content
stringlengths
4
1.04M
input_ids
sequencelengths
2
1.02k
attention_mask
sequencelengths
2
1.02k
class ZCL_RT_TASK definition public final create public . public section. *"* public components of class ZCL_RT_TASK *"* do not include other source files here!!! constants TYPE_MATCH type I value 0. "#EC NOTEXT constants TYPE_SKIP type I value 1. "#EC NOTEXT constants TYPE_CAPTURE type I value 2. "#EC NOTEXT data TYPE type I . data TEXT type STRING . data CAPTURE type STRINGTAB . data ICON type ICON_TEXT . type-pools ABAP . data SOLVED type ABAP_BOOL . methods CLONE returning value(RETURNING) type ref to ZCL_RT_TASK . protected section. *"* protected components of class ZCL_RT_TASK *"* do not include other source files here!!! private section. *"* private components of class ZCL_RT_TASK *"* do not include other source files here!!! ENDCLASS. CLASS ZCL_RT_TASK IMPLEMENTATION. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_RT_TASK->CLONE * +-------------------------------------------------------------------------------------------------+ * | [<-()] RETURNING TYPE REF TO ZCL_RT_TASK * +--------------------------------------------------------------------------------------</SIGNATURE> method clone. */** * Returns an exact copy of itself */ create object returning. returning->type = me->type. returning->text = me->text. returning->capture = me->capture. returning->icon = me->icon. returning->solved = me->solved. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 6770, 201, 198, 220, 1171, 201, 198, 220, 2457, 201, 198, 220, 2251, 1171, 764, 201, 198, 201, 198, 11377, 2665, 13, 201, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 201, 198, 220, 38491, 41876, 62, 44, 11417, 2099, 314, 1988, 657, 13, 25113, 2943, 5626, 13918, 201, 198, 220, 38491, 41876, 62, 18831, 4061, 2099, 314, 1988, 352, 13, 25113, 2943, 5626, 13918, 201, 198, 220, 38491, 41876, 62, 33177, 51, 11335, 2099, 314, 1988, 362, 13, 25113, 2943, 5626, 13918, 201, 198, 220, 1366, 41876, 2099, 314, 764, 201, 198, 220, 1366, 40383, 2099, 19269, 2751, 764, 201, 198, 220, 1366, 20176, 51, 11335, 2099, 19269, 2751, 5603, 33, 764, 201, 198, 220, 1366, 314, 10943, 2099, 314, 10943, 62, 32541, 764, 201, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 201, 198, 220, 1366, 36817, 53, 1961, 2099, 9564, 2969, 62, 8202, 3535, 764, 201, 198, 201, 198, 220, 5050, 7852, 11651, 201, 198, 220, 220, 220, 8024, 201, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 4261, 15871, 8, 2099, 1006, 284, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 764, 201, 198, 24326, 2665, 13, 201, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 19734, 2665, 13, 201, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 10619, 31631, 13, 201, 198, 201, 198, 201, 198, 201, 198, 31631, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 30023, 2538, 10979, 6234, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 3784, 5097, 11651, 201, 198, 9, 1343, 10097, 3880, 19529, 201, 198, 9, 930, 685, 27, 12, 3419, 60, 30826, 4261, 15871, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1168, 5097, 62, 14181, 62, 51, 1921, 42, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 17271, 13, 201, 198, 16208, 1174, 201, 198, 9, 16409, 281, 2748, 4866, 286, 2346, 201, 198, 16208, 201, 198, 220, 2251, 2134, 8024, 13, 201, 198, 220, 8024, 3784, 4906, 796, 502, 3784, 4906, 13, 201, 198, 220, 8024, 3784, 5239, 796, 502, 3784, 5239, 13, 201, 198, 220, 8024, 3784, 27144, 495, 796, 502, 3784, 27144, 495, 13, 201, 198, 220, 8024, 3784, 4749, 796, 502, 3784, 4749, 13, 201, 198, 220, 8024, 3784, 82, 5634, 796, 502, 3784, 82, 5634, 13, 201, 198, 437, 24396, 13, 201, 198, 10619, 31631, 13, 201, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_AOF_AOC_CHECK_55 definition public create public . public section. interfaces ZIF_AOF_FIXER . PROTECTED SECTION. METHODS previous_to_comma IMPORTING !iv_line TYPE sci_line CHANGING !ct_code TYPE string_table . METHODS remove_preceding_empty_lines CHANGING !cv_line TYPE sci_line !ct_code TYPE string_table . PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOF_AOC_CHECK_55 IMPLEMENTATION. METHOD previous_to_comma. DATA: lv_line TYPE sci_line, lv_length TYPE i. FIELD-SYMBOLS: <lv_code> LIKE LINE OF ct_code. lv_line = iv_line - 1. READ TABLE ct_code INDEX lv_line ASSIGNING <lv_code>. ASSERT sy-subrc = 0. IF <lv_code> CP '*.'. lv_length = strlen( <lv_code> ) - 1. <lv_code> = replace( val = <lv_code> off = lv_length len = 1 with = ',' ). ENDIF. IF <lv_code> NP '*DATA:*'. REPLACE FIRST OCCURRENCE OF 'DATA' IN <lv_code> WITH 'DATA:'. ENDIF. ENDMETHOD. METHOD remove_preceding_empty_lines. DATA: lv_line TYPE sci_line. FIELD-SYMBOLS: <lv_code> LIKE LINE OF ct_code. lv_line = cv_line - 1. DO. READ TABLE ct_code INDEX lv_line ASSIGNING <lv_code>. ASSERT sy-subrc = 0. IF <lv_code> <> ''. EXIT. ENDIF. DELETE ct_code INDEX lv_line. lv_line = lv_line - 1. cv_line = cv_line - 1. ENDDO. ENDMETHOD. METHOD zif_aof_fixer~is_fixable. rv_fixable = boolc( is_result-test = 'ZCL_AOC_CHECK_55' ). ENDMETHOD. METHOD zif_aof_fixer~run. FIELD-SYMBOLS: <ls_result> LIKE LINE OF rs_data-results, <ls_change> LIKE LINE OF rs_data-changes, <lv_line> LIKE LINE OF <ls_change>-code_after. rs_data = is_data. SORT rs_data-results BY sobjtype ASCENDING sobjname ASCENDING line DESCENDING. LOOP AT rs_data-results ASSIGNING <ls_result>. READ TABLE rs_data-changes ASSIGNING <ls_change> WITH KEY sobjtype = <ls_result>-sobjtype sobjname = <ls_result>-sobjname. ASSERT sy-subrc = 0. remove_preceding_empty_lines( CHANGING cv_line = <ls_result>-line ct_code = <ls_change>-code_after ). READ TABLE <ls_change>-code_after ASSIGNING <lv_line> INDEX <ls_result>-line. ASSERT sy-subrc = 0. REPLACE FIRST OCCURRENCE OF 'DATA:' IN <lv_line> WITH ` `. IF sy-subrc <> 0. REPLACE FIRST OCCURRENCE OF 'DATA' IN <lv_line> WITH ` `. ENDIF. IF sy-subrc = 0. previous_to_comma( EXPORTING iv_line = <ls_result>-line CHANGING ct_code = <ls_change>-code_after ). ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 32, 19238, 62, 32, 4503, 62, 50084, 62, 2816, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 20314, 1168, 5064, 62, 32, 19238, 62, 47084, 1137, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 2180, 62, 1462, 62, 785, 2611, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 41876, 20681, 62, 1370, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 8189, 41876, 4731, 62, 11487, 764, 198, 220, 220, 220, 337, 36252, 50, 4781, 62, 3866, 771, 278, 62, 28920, 62, 6615, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 33967, 62, 1370, 41876, 20681, 62, 1370, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 8189, 41876, 4731, 62, 11487, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 19238, 62, 32, 4503, 62, 50084, 62, 2816, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2180, 62, 1462, 62, 785, 2611, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 1370, 220, 220, 41876, 20681, 62, 1370, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 13664, 41876, 1312, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 6780, 62, 8189, 29, 34178, 48920, 3963, 269, 83, 62, 8189, 13, 628, 198, 220, 220, 220, 300, 85, 62, 1370, 796, 21628, 62, 1370, 532, 352, 13, 628, 220, 220, 220, 20832, 43679, 269, 83, 62, 8189, 24413, 6369, 300, 85, 62, 1370, 24994, 3528, 15871, 1279, 6780, 62, 8189, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 16876, 1279, 6780, 62, 8189, 29, 16932, 705, 9, 2637, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 13664, 796, 965, 11925, 7, 1279, 6780, 62, 8189, 29, 1267, 532, 352, 13, 628, 220, 220, 220, 220, 220, 1279, 6780, 62, 8189, 29, 796, 6330, 7, 1188, 220, 796, 1279, 6780, 62, 8189, 29, 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, 572, 220, 796, 300, 85, 62, 13664, 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, 18896, 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, 351, 796, 705, 4032, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 1279, 6780, 62, 8189, 29, 28498, 705, 9, 26947, 25, 9, 4458, 198, 220, 220, 220, 220, 220, 45285, 11598, 31328, 440, 4093, 31302, 18310, 3963, 705, 26947, 6, 3268, 1279, 6780, 62, 8189, 29, 13315, 705, 26947, 25, 4458, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4781, 62, 3866, 771, 278, 62, 28920, 62, 6615, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 1370, 41876, 20681, 62, 1370, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 6780, 62, 8189, 29, 34178, 48920, 3963, 269, 83, 62, 8189, 13, 628, 198, 220, 220, 220, 300, 85, 62, 1370, 796, 269, 85, 62, 1370, 532, 352, 13, 628, 220, 220, 220, 8410, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 269, 83, 62, 8189, 24413, 6369, 300, 85, 62, 1370, 24994, 3528, 15871, 1279, 6780, 62, 8189, 28401, 198, 220, 220, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 16876, 1279, 6780, 62, 8189, 29, 1279, 29, 705, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 5550, 2538, 9328, 269, 83, 62, 8189, 24413, 6369, 300, 85, 62, 1370, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 1370, 796, 300, 85, 62, 1370, 532, 352, 13, 198, 220, 220, 220, 220, 220, 269, 85, 62, 1370, 796, 269, 85, 62, 1370, 532, 352, 13, 198, 220, 220, 220, 23578, 18227, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 64, 1659, 62, 13049, 263, 93, 271, 62, 13049, 540, 13, 628, 220, 220, 220, 374, 85, 62, 13049, 540, 796, 20512, 66, 7, 318, 62, 20274, 12, 9288, 796, 705, 57, 5097, 62, 32, 4503, 62, 50084, 62, 2816, 6, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 64, 1659, 62, 13049, 263, 93, 5143, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 20274, 29, 34178, 48920, 3963, 44608, 62, 7890, 12, 43420, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 3803, 29, 34178, 48920, 3963, 44608, 62, 7890, 12, 36653, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 1370, 29, 220, 220, 34178, 48920, 3963, 1279, 7278, 62, 3803, 29, 12, 8189, 62, 8499, 13, 628, 198, 220, 220, 220, 44608, 62, 7890, 796, 318, 62, 7890, 13, 628, 220, 220, 220, 311, 9863, 44608, 62, 7890, 12, 43420, 11050, 198, 220, 220, 220, 220, 220, 27355, 73, 4906, 25400, 10619, 2751, 198, 220, 220, 220, 220, 220, 27355, 73, 3672, 25400, 10619, 2751, 198, 220, 220, 220, 220, 220, 1627, 22196, 34, 10619, 2751, 13, 628, 220, 220, 220, 17579, 3185, 5161, 44608, 62, 7890, 12, 43420, 24994, 3528, 15871, 1279, 7278, 62, 20274, 28401, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! @testing /DMO/CL_I_TRAVEL_TUM "! @testing /DMO/CL_C_TRAVEL_TUM "! @testing /DMO/CL_FLIGHT_LEGACY12 "! @testing FUGR:/DMO/FLIGHT_TRAVEL_API12 CLASS ltc DEFINITION FINAL INHERITING FROM /dmo/tc_flight_travel_api12 FOR TESTING RISK LEVEL HARMLESS DURATION MEDIUM. ENDCLASS.
[ 40484, 2488, 33407, 1220, 35, 11770, 14, 5097, 62, 40, 62, 51, 3861, 18697, 62, 51, 5883, 198, 40484, 2488, 33407, 1220, 35, 11770, 14, 5097, 62, 34, 62, 51, 3861, 18697, 62, 51, 5883, 198, 40484, 2488, 33407, 1220, 35, 11770, 14, 5097, 62, 3697, 9947, 62, 2538, 38, 43300, 1065, 198, 40484, 2488, 33407, 376, 7340, 49, 14079, 35, 11770, 14, 3697, 9947, 62, 51, 3861, 18697, 62, 17614, 1065, 198, 31631, 300, 23047, 5550, 20032, 17941, 25261, 3268, 16879, 2043, 2751, 16034, 1220, 67, 5908, 14, 23047, 62, 22560, 62, 35927, 62, 15042, 1065, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 26112, 41796, 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 ]
** ** Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. ** ** This file is part of ewm-cloud-robotics ** (see https://github.com/SAP/ewm-cloud-robotics). ** ** This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file (https://github.com/SAP/ewm-cloud-robotics/blob/master/LICENSE) ** function zget_assigned_robot_who . *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(IV_LGNUM) TYPE /SCWM/LGNUM *" REFERENCE(IV_RSRC) TYPE /SCWM/DE_RSRC *" EXPORTING *" REFERENCE(ET_WO_RSRC_TY) TYPE /SCWM/TT_WO_RSRC_TY *"---------------------------------------------------------------------- * Get Warehouse Orders which are assigned to the robot ressource select * from /scwm/wo_rsrc_ty where lgnum = @iv_lgnum and rsrc = @iv_rsrc order by lsd ascending, priority descending into table @et_wo_rsrc_ty. if sy-subrc <> 0. clear et_wo_rsrc_ty. endif. endfunction.
[ 1174, 198, 1174, 15069, 357, 66, 8, 13130, 48323, 7946, 393, 281, 48323, 17375, 1664, 13, 1439, 2489, 10395, 13, 198, 1174, 198, 1174, 770, 2393, 318, 636, 286, 304, 26377, 12, 17721, 12, 305, 13645, 873, 198, 1174, 357, 3826, 3740, 1378, 12567, 13, 785, 14, 50, 2969, 14, 413, 76, 12, 17721, 12, 305, 13645, 873, 737, 198, 1174, 198, 1174, 770, 2393, 318, 11971, 739, 262, 24843, 10442, 13789, 11, 410, 13, 362, 2845, 355, 4367, 4306, 287, 262, 38559, 24290, 2393, 357, 5450, 1378, 12567, 13, 785, 14, 50, 2969, 14, 413, 76, 12, 17721, 12, 305, 13645, 873, 14, 2436, 672, 14, 9866, 14, 43, 2149, 24290, 8, 198, 1174, 198, 8818, 1976, 1136, 62, 562, 3916, 62, 305, 13645, 62, 8727, 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, 4526, 24302, 18310, 7, 3824, 62, 43, 16630, 5883, 8, 41876, 220, 1220, 6173, 22117, 14, 43, 16630, 5883, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 3824, 62, 6998, 7397, 8, 41876, 220, 1220, 6173, 22117, 14, 7206, 62, 6998, 7397, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2767, 62, 54, 46, 62, 6998, 7397, 62, 9936, 8, 41876, 220, 1220, 6173, 22117, 14, 15751, 62, 54, 46, 62, 6998, 7397, 62, 9936, 198, 9, 1, 10097, 23031, 198, 198, 9, 3497, 45927, 30689, 543, 389, 8686, 284, 262, 9379, 581, 10459, 198, 220, 2922, 1635, 422, 1220, 1416, 26377, 14, 21638, 62, 3808, 6015, 62, 774, 198, 220, 220, 220, 810, 198, 220, 220, 220, 220, 220, 300, 4593, 388, 796, 2488, 452, 62, 75, 4593, 388, 290, 198, 220, 220, 220, 220, 220, 374, 10677, 796, 2488, 452, 62, 3808, 6015, 198, 220, 220, 220, 1502, 416, 300, 21282, 41988, 11, 8475, 31491, 198, 220, 220, 220, 656, 3084, 2488, 316, 62, 21638, 62, 3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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_MQBA_SHM_AREA definition public inheriting from CL_SHM_AREA final create private global friends CL_SHM_AREA . public section. constants AREA_NAME type SHM_AREA_NAME value 'ZCL_MQBA_SHM_AREA' ##NO_TEXT. data ROOT type ref to ZCL_MQBA_SHM_DATA_ROOT read-only . class-methods CLASS_CONSTRUCTOR . class-methods GET_GENERATOR_VERSION returning value(GENERATOR_VERSION) type I . class-methods ATTACH_FOR_READ importing !INST_NAME type SHM_INST_NAME default CL_SHM_AREA=>DEFAULT_INSTANCE preferred parameter INST_NAME returning value(HANDLE) type ref to ZCL_MQBA_SHM_AREA raising CX_SHM_INCONSISTENT CX_SHM_NO_ACTIVE_VERSION CX_SHM_READ_LOCK_ACTIVE CX_SHM_EXCLUSIVE_LOCK_ACTIVE CX_SHM_PARAMETER_ERROR CX_SHM_CHANGE_LOCK_ACTIVE . class-methods ATTACH_FOR_WRITE importing !INST_NAME type SHM_INST_NAME default CL_SHM_AREA=>DEFAULT_INSTANCE !ATTACH_MODE type SHM_ATTACH_MODE default CL_SHM_AREA=>ATTACH_MODE_DEFAULT !WAIT_TIME type I default 0 preferred parameter INST_NAME returning value(HANDLE) type ref to ZCL_MQBA_SHM_AREA raising CX_SHM_EXCLUSIVE_LOCK_ACTIVE CX_SHM_VERSION_LIMIT_EXCEEDED CX_SHM_CHANGE_LOCK_ACTIVE CX_SHM_PARAMETER_ERROR CX_SHM_PENDING_LOCK_REMOVED . class-methods ATTACH_FOR_UPDATE importing !INST_NAME type SHM_INST_NAME default CL_SHM_AREA=>DEFAULT_INSTANCE !ATTACH_MODE type SHM_ATTACH_MODE default CL_SHM_AREA=>ATTACH_MODE_DEFAULT !WAIT_TIME type I default 0 preferred parameter INST_NAME returning value(HANDLE) type ref to ZCL_MQBA_SHM_AREA raising CX_SHM_INCONSISTENT CX_SHM_NO_ACTIVE_VERSION CX_SHM_EXCLUSIVE_LOCK_ACTIVE CX_SHM_VERSION_LIMIT_EXCEEDED CX_SHM_CHANGE_LOCK_ACTIVE CX_SHM_PARAMETER_ERROR CX_SHM_PENDING_LOCK_REMOVED . class-methods DETACH_AREA importing !CLIENT type SHM_CLIENT optional returning value(RC) type SHM_RC . class-methods INVALIDATE_INSTANCE importing !CLIENT type SHM_CLIENT optional !INST_NAME type SHM_INST_NAME default CL_SHM_AREA=>DEFAULT_INSTANCE !TERMINATE_CHANGER type ABAP_BOOL default ABAP_TRUE preferred parameter INST_NAME returning value(RC) type SHM_RC raising CX_SHM_PARAMETER_ERROR . class-methods INVALIDATE_AREA importing !CLIENT type SHM_CLIENT optional !TERMINATE_CHANGER type ABAP_BOOL default ABAP_TRUE returning value(RC) type SHM_RC raising CX_SHM_PARAMETER_ERROR . class-methods FREE_INSTANCE importing !CLIENT type SHM_CLIENT optional !INST_NAME type SHM_INST_NAME default CL_SHM_AREA=>DEFAULT_INSTANCE !TERMINATE_CHANGER type ABAP_BOOL default ABAP_TRUE preferred parameter INST_NAME returning value(RC) type SHM_RC raising CX_SHM_PARAMETER_ERROR . class-methods FREE_AREA importing !CLIENT type SHM_CLIENT optional !TERMINATE_CHANGER type ABAP_BOOL default ABAP_TRUE returning value(RC) type SHM_RC raising CX_SHM_PARAMETER_ERROR . class-methods GET_INSTANCE_INFOS importing !INST_NAME type SHM_INST_NAME optional !CLIENT type SHM_CLIENT optional preferred parameter CLIENT returning value(INFOS) type SHM_INST_INFOS . class-methods BUILD importing !INST_NAME type SHM_INST_NAME default CL_SHM_AREA=>DEFAULT_INSTANCE raising CX_SHMA_NOT_CONFIGURED CX_SHMA_INCONSISTENT CX_SHM_BUILD_FAILED . methods SET_ROOT importing !ROOT type ref to ZCL_MQBA_SHM_DATA_ROOT raising CX_SHM_INITIAL_REFERENCE CX_SHM_WRONG_HANDLE . methods GET_ROOT redefinition . protected section. private section. constants _VERSION_ type I value 23 ##NO_TEXT. class-data _TRACE_SERVICE type ref to IF_SHM_TRACE . class-data _TRACE_ACTIVE type ABAP_BOOL value ABAP_FALSE ##NO_TEXT. constants _TRANSACTIONAL type ABAP_BOOL value ABAP_FALSE ##NO_TEXT. constants _CLIENT_DEPENDENT type ABAP_BOOL value ABAP_TRUE ##NO_TEXT. constants _LIFE_CONTEXT type SHM_LIFE_CONTEXT value CL_SHM_AREA=>LIFE_CONTEXT_APPSERVER ##NO_TEXT. ENDCLASS. CLASS ZCL_MQBA_SHM_AREA IMPLEMENTATION. method ATTACH_FOR_READ. DATA: l_attributes TYPE shma_attributes, l_root TYPE REF TO object, l_cx TYPE REF TO cx_root, l_client TYPE shm_client, l_client_supplied TYPE abap_bool. "#EC NEEDED * check if tracing should be activated/de-activated IF ( NOT _trace_service IS INITIAL ). TRY. _trace_active = cl_shm_service=>trace_is_variant_active( _trace_service->variant-def_name ). CATCH cx_root. "#EC NO_HANDLER "#EC CATCH_ALL ENDTRY. ENDIF. mc_set_shm_client_attach_only. IF _trace_active = abap_false OR _trace_service->variant-attach_for_read = abap_false. * > CREATE OBJECT handle. handle->client = l_client. handle->inst_name = inst_name. * try sneak mode first handle->_attach_read71( EXPORTING area_name = area_name sneak_mode = abap_true life_context = _life_context IMPORTING root = l_root ). IF l_root IS INITIAL. * no root object returned, sneak mode was not successful. * -> read area properties from database and try again. cl_shm_service=>initialize( EXPORTING area_name = handle->area_name client = l_client IMPORTING attributes = l_attributes ). handle->properties = l_attributes-properties. handle->_attach_read71( EXPORTING area_name = area_name sneak_mode = abap_false life_context = _life_context IMPORTING root = l_root ). ENDIF. handle->root ?= l_root. * < ELSE. TRY. * > CREATE OBJECT handle. handle->client = l_client. handle->inst_name = inst_name. handle->_attach_read71( EXPORTING area_name = area_name sneak_mode = abap_true life_context = _life_context IMPORTING root = l_root ). IF l_root IS INITIAL. * no root object returned, sneak mode was not successful. * -> read area properties from database and try again. cl_shm_service=>initialize( EXPORTING area_name = handle->area_name client = l_client IMPORTING attributes = l_attributes ). handle->properties = l_attributes-properties. handle->_attach_read71( EXPORTING area_name = area_name sneak_mode = abap_false life_context = _life_context IMPORTING root = l_root ). ENDIF. handle->root ?= l_root. * < _trace_service->trin_attach_for_read( area_name = area_name inst_name = inst_name client = l_client ). CLEANUP INTO l_cx. _trace_service->trcx_attach_for_read( area_name = area_name inst_name = inst_name client = l_client cx = l_cx ). ENDTRY. ENDIF. handle->inst_trace_service = _trace_service. handle->inst_trace_active = _trace_active. endmethod. method ATTACH_FOR_UPDATE. DATA: l_attributes TYPE shma_attributes, l_root TYPE REF TO object, l_cx TYPE REF TO cx_root, l_client TYPE shm_client, l_client_supplied TYPE abap_bool, "#EC NEEDED l_wait_time TYPE i, l_wait_time_per_loop TYPE i, l_wait_time_per_loop_sec TYPE f. l_wait_time = wait_time. * check if tracing should be activated/de-activated IF ( NOT _trace_service IS INITIAL ). TRY. _trace_active = cl_shm_service=>trace_is_variant_active( _trace_service->variant-def_name ). CATCH cx_root. "#EC NO_HANDLER "#EC CATCH_ALL ENDTRY. ENDIF. mc_set_shm_client_attach_only. IF _trace_active = abap_false OR _trace_service->variant-attach_for_upd = abap_false. * > CREATE OBJECT handle. handle->client = l_client. handle->inst_name = inst_name. cl_shm_service=>initialize( EXPORTING area_name = handle->area_name client = l_client IMPORTING attributes = l_attributes ). handle->properties = l_attributes-properties. handle->_attach_update70( EXPORTING area_name = handle->area_name mode = attach_mode IMPORTING root = l_root CHANGING wait_time = l_wait_time ). IF abap_true = l_attributes-properties-has_versions AND handle->_lock IS NOT INITIAL. * we may need a second try in case of class constructors handle->_attach_update70( EXPORTING area_name = handle->area_name mode = attach_mode IMPORTING root = l_root CHANGING wait_time = l_wait_time ). ENDIF. IF attach_mode = cl_shm_area=>attach_mode_wait AND handle->_lock IS INITIAL. l_wait_time_per_loop = l_wait_time / 10. * wait_time_per_loop should be at least 2 * SHMATTACHWRITE_MAXACTIVEWAIT IF l_wait_time_per_loop < 2000. l_wait_time_per_loop = 2000. ELSEIF l_wait_time_per_loop > 300000. l_wait_time_per_loop = 300000. ENDIF. l_wait_time_per_loop_sec = l_wait_time_per_loop / 1000. WHILE handle->_lock IS INITIAL. IF l_wait_time_per_loop > l_wait_time. l_wait_time_per_loop = l_wait_time. l_wait_time_per_loop_sec = l_wait_time_per_loop / 1000. ENDIF. WAIT UP TO l_wait_time_per_loop_sec SECONDS. l_wait_time = l_wait_time - l_wait_time_per_loop. handle->_attach_update70( EXPORTING area_name = handle->area_name mode = cl_shm_area=>attach_mode_wait_2nd_try IMPORTING root = l_root CHANGING wait_time = l_wait_time ). IF abap_true = l_attributes-properties-has_versions AND handle->_lock IS NOT INITIAL. * we may need a second try in case of class constructors handle->_attach_update70( EXPORTING area_name = handle->area_name mode = cl_shm_area=>attach_mode_wait_2nd_try IMPORTING root = l_root CHANGING wait_time = l_wait_time ). ENDIF. ENDWHILE. ENDIF. handle->root ?= l_root. * < ELSE. TRY. * > CREATE OBJECT handle. handle->client = l_client. handle->inst_name = inst_name. cl_shm_service=>initialize( EXPORTING area_name = handle->area_name client = l_client IMPORTING attributes = l_attributes ). handle->properties = l_attributes-properties. handle->_attach_update70( EXPORTING area_name = handle->area_name mode = attach_mode IMPORTING root = l_root CHANGING wait_time = l_wait_time ). IF abap_true = l_attributes-properties-has_versions AND handle->_lock IS NOT INITIAL. * we may need a second try in case of class constructors handle->_attach_update70( EXPORTING area_name = handle->area_name mode = attach_mode IMPORTING root = l_root CHANGING wait_time = l_wait_time ). ENDIF. IF attach_mode = cl_shm_area=>attach_mode_wait AND handle->_lock IS INITIAL. l_wait_time_per_loop = l_wait_time / 10. * wait_time_per_loop should be at least 2 * SHMATTACHWRITE_MAXACTIVEWAIT IF l_wait_time_per_loop < 2000. l_wait_time_per_loop = 2000. ELSEIF l_wait_time_per_loop > 300000. l_wait_time_per_loop = 300000. ENDIF. l_wait_time_per_loop_sec = l_wait_time_per_loop / 1000. WHILE handle->_lock IS INITIAL. IF l_wait_time_per_loop > l_wait_time. l_wait_time_per_loop = l_wait_time. l_wait_time_per_loop_sec = l_wait_time_per_loop / 1000. ENDIF. WAIT UP TO l_wait_time_per_loop_sec SECONDS. l_wait_time = l_wait_time - l_wait_time_per_loop. handle->_attach_update70( EXPORTING area_name = handle->area_name mode = cl_shm_area=>attach_mode_wait_2nd_try IMPORTING root = l_root CHANGING wait_time = l_wait_time ). IF abap_true = l_attributes-properties-has_versions AND handle->_lock IS NOT INITIAL. * we may need a second try in case of class constructors handle->_attach_update70( EXPORTING area_name = handle->area_name mode = cl_shm_area=>attach_mode_wait_2nd_try IMPORTING root = l_root CHANGING wait_time = l_wait_time ). ENDIF. ENDWHILE. ENDIF. handle->root ?= l_root. * < _trace_service->trin_attach_for_update( area_name = area_name inst_name = inst_name client = l_client mode = attach_mode wait_time = wait_time ). CLEANUP INTO l_cx. _trace_service->trcx_attach_for_update( area_name = area_name inst_name = inst_name client = l_client mode = attach_mode wait_time = wait_time cx = l_cx ). ENDTRY. ENDIF. handle->inst_trace_service = _trace_service. handle->inst_trace_active = _trace_active. endmethod. method ATTACH_FOR_WRITE. DATA: l_attributes TYPE shma_attributes, l_cx TYPE REF TO cx_root, l_client TYPE shm_client, l_client_supplied TYPE abap_bool, "#EC NEEDED l_wait_time TYPE i, l_wait_time_per_loop TYPE i, l_wait_time_per_loop_sec TYPE f. l_wait_time = wait_time. * check if tracing should be activated/de-activated IF ( NOT _trace_service IS INITIAL ). TRY. _trace_active = cl_shm_service=>trace_is_variant_active( _trace_service->variant-def_name ). CATCH cx_root. "#EC NO_HANDLER "#EC CATCH_ALL ENDTRY. ENDIF. mc_set_shm_client_attach_only. IF _trace_active = abap_false OR _trace_service->variant-attach_for_write = abap_false. * > CREATE OBJECT handle. handle->client = l_client. handle->inst_name = inst_name. cl_shm_service=>initialize( EXPORTING area_name = handle->area_name client = l_client IMPORTING attributes = l_attributes ). handle->properties = l_attributes-properties. handle->_attach_write70( EXPORTING area_name = handle->area_name mode = attach_mode CHANGING wait_time = l_wait_time ). IF attach_mode = cl_shm_area=>attach_mode_wait AND handle->_lock IS INITIAL. l_wait_time_per_loop = l_wait_time / 10. * wait_time_per_loop should be at least 2 * SHMATTACHWRITE_MAXACTIVEWAIT IF l_wait_time_per_loop < 2000. l_wait_time_per_loop = 2000. ELSEIF l_wait_time_per_loop > 300000. l_wait_time_per_loop = 300000. ENDIF. l_wait_time_per_loop_sec = l_wait_time_per_loop / 1000. WHILE handle->_lock IS INITIAL. IF l_wait_time_per_loop > l_wait_time. l_wait_time_per_loop = l_wait_time. l_wait_time_per_loop_sec = l_wait_time_per_loop / 1000. ENDIF. WAIT UP TO l_wait_time_per_loop_sec SECONDS. l_wait_time = l_wait_time - l_wait_time_per_loop. handle->_attach_write70( EXPORTING area_name = handle->area_name mode = cl_shm_area=>attach_mode_wait_2nd_try CHANGING wait_time = l_wait_time ). ENDWHILE. ENDIF. * < ELSE. TRY. * > CREATE OBJECT handle. handle->client = l_client. handle->inst_name = inst_name. cl_shm_service=>initialize( EXPORTING area_name = handle->area_name client = l_client IMPORTING attributes = l_attributes ). handle->properties = l_attributes-properties. handle->_attach_write70( EXPORTING area_name = handle->area_name mode = attach_mode CHANGING wait_time = l_wait_time ). IF attach_mode = cl_shm_area=>attach_mode_wait AND handle->_lock IS INITIAL. l_wait_time_per_loop = l_wait_time / 10. * wait_time_per_loop should be at least 2 * SHMATTACHWRITE_MAXACTIVEWAIT IF l_wait_time_per_loop < 2000. l_wait_time_per_loop = 2000. ELSEIF l_wait_time_per_loop > 300000. l_wait_time_per_loop = 300000. ENDIF. l_wait_time_per_loop_sec = l_wait_time_per_loop / 1000. WHILE handle->_lock IS INITIAL. IF l_wait_time_per_loop > l_wait_time. l_wait_time_per_loop = l_wait_time. l_wait_time_per_loop_sec = l_wait_time_per_loop / 1000. ENDIF. WAIT UP TO l_wait_time_per_loop_sec SECONDS. l_wait_time = l_wait_time - l_wait_time_per_loop. handle->_attach_write70( EXPORTING area_name = handle->area_name mode = cl_shm_area=>attach_mode_wait_2nd_try CHANGING wait_time = l_wait_time ). ENDWHILE. ENDIF. * < _trace_service->trin_attach_for_write( area_name = area_name inst_name = inst_name client = l_client mode = attach_mode wait_time = wait_time ). CLEANUP INTO l_cx. _trace_service->trcx_attach_for_write( area_name = area_name inst_name = inst_name client = l_client mode = attach_mode wait_time = wait_time cx = l_cx ). ENDTRY. ENDIF. handle->inst_trace_service = _trace_service. handle->inst_trace_active = _trace_active. endmethod. method BUILD. DATA: l_cls_name TYPE shm_auto_build_class_name, l_cx TYPE REF TO cx_root. IF _trace_active = abap_false OR _trace_service->variant-build = abap_false. * > l_cls_name = cl_shm_service=>get_auto_build_class_name( area_name ). CALL METHOD (l_cls_name)=>if_shm_build_instance~build EXPORTING inst_name = inst_name. * < ELSE. TRY. * > l_cls_name = cl_shm_service=>get_auto_build_class_name( area_name ). CALL METHOD (l_cls_name)=>if_shm_build_instance~build EXPORTING inst_name = inst_name. * < _trace_service->trin_build( area_name = area_name inst_name = inst_name ). CLEANUP INTO l_cx. _trace_service->trcx_build( area_name = area_name inst_name = inst_name cx = l_cx ). ENDTRY. ENDIF. endmethod. method CLASS_CONSTRUCTOR. * TRACE { DO NOT REMOVE THIS LINE ! _trace_active = abap_false. TRY. _trace_service = cl_shm_service=>trace_get_service( area_name ). IF NOT _trace_service IS INITIAL. _trace_active = cl_shm_service=>trace_is_variant_active( _trace_service->variant-def_name ). ENDIF. CATCH cx_root. "#EC NO_HANDLER "#EC CATCH_ALL ENDTRY. * TRACE } DO NOT REMOVE THIS LINE ! endmethod. method DETACH_AREA. DATA: l_client TYPE shm_client, l_client_supplied TYPE abap_bool VALUE abap_false. mc_set_shm_client. * > rc = _detach_area71( area_name = area_name client = l_client client_supplied = l_client_supplied client_dependent = _client_dependent life_context = _life_context ). * < IF _trace_active = abap_true. IF _trace_service->variant-detach_area = abap_true. _trace_service->trin_detach_area( area_name = area_name client = l_client rc = rc ). ENDIF. ENDIF. endmethod. method FREE_AREA. DATA: l_client TYPE shm_client, l_client_supplied TYPE abap_bool VALUE abap_false. CONSTANTS: affect_server TYPE shm_affect_server VALUE cl_shm_area=>affect_local_server. mc_set_shm_client. * > rc = _free_area71( area_name = area_name client = l_client client_supplied = l_client_supplied client_dependent = _client_dependent transactional = _transactional terminate_changer = terminate_changer affect_server = affect_server life_context = _life_context ). * < IF _trace_active = abap_true. IF _trace_service->variant-free_area = abap_true. _trace_service->trin_free_area( area_name = area_name client = l_client terminate_changer = terminate_changer affect_server = affect_server rc = rc ). ENDIF. ENDIF. endmethod. method FREE_INSTANCE. DATA: l_client TYPE shm_client, l_client_supplied TYPE abap_bool VALUE abap_false. CONSTANTS: affect_server TYPE shm_affect_server VALUE cl_shm_area=>affect_local_server. mc_set_shm_client. * > rc = _free_instance71( area_name = area_name inst_name = inst_name client = l_client client_supplied = l_client_supplied client_dependent = _client_dependent transactional = _transactional terminate_changer = terminate_changer affect_server = affect_server life_context = _life_context ). * < IF _trace_active = abap_true. IF _trace_service->variant-free_instance = abap_true. _trace_service->trin_free_instance( area_name = area_name inst_name = inst_name client = l_client terminate_changer = terminate_changer affect_server = affect_server rc = rc ). ENDIF. ENDIF. endmethod. method GET_GENERATOR_VERSION. generator_version = _version_. endmethod. method GET_INSTANCE_INFOS. DATA: l_client TYPE shm_client, l_client_supplied TYPE abap_bool VALUE abap_false, l_inst_name_supplied TYPE abap_bool VALUE abap_false. mc_set_shm_client. IF inst_name IS SUPPLIED. l_inst_name_supplied = abap_true. ENDIF. * > TRY. CALL METHOD ('_GET_INSTANCE_INFOS804') EXPORTING area_name = area_name client = l_client client_supplied = l_client_supplied client_dependent = _client_dependent life_context = _life_context inst_name = inst_name inst_name_supplied = l_inst_name_supplied RECEIVING infos = infos. CATCH cx_sy_dyn_call_illegal_method. * New kernel and/or new basis SP missing -> use slow fallback infos = _get_instance_infos71( area_name = area_name client = l_client client_supplied = l_client_supplied client_dependent = _client_dependent life_context = _life_context ). IF abap_true = l_inst_name_supplied. DELETE infos WHERE name <> inst_name. ENDIF. ENDTRY. * < IF _trace_active = abap_true. IF _trace_service->variant-get_instance_inf = abap_true. _trace_service->trin_get_instance_infos( area_name = area_name inst_name = inst_name client = l_client infos = infos ). ENDIF. ENDIF. endmethod. method GET_ROOT. DATA: l_cx TYPE REF TO cx_root, l_area_name TYPE string, l_inst_name TYPE string, l_client TYPE string. IF _trace_active = abap_false OR _trace_service->variant-get_root = abap_false. * > IF is_valid( ) = abap_false. l_area_name = me->area_name. l_inst_name = me->inst_name. l_client = me->client. RAISE EXCEPTION TYPE cx_shm_already_detached EXPORTING area_name = l_area_name inst_name = l_inst_name client = l_client. ENDIF. root = me->root. * < ELSE. TRY. * > IF is_valid( ) = abap_false. l_area_name = me->area_name. l_inst_name = me->inst_name. l_client = me->client. RAISE EXCEPTION TYPE cx_shm_already_detached EXPORTING area_name = l_area_name inst_name = l_inst_name client = l_client. ENDIF. root = me->root. * < _trace_service->trin_get_root( area_name = area_name ). CLEANUP INTO l_cx. _trace_service->trcx_get_root( area_name = area_name cx = l_cx ). ENDTRY. ENDIF. endmethod. method INVALIDATE_AREA. DATA: l_client TYPE shm_client, l_client_supplied TYPE abap_bool VALUE abap_false. CONSTANTS: affect_server TYPE shm_affect_server VALUE cl_shm_area=>affect_local_server. mc_set_shm_client. * > rc = _invalidate_area71( area_name = area_name client = l_client client_supplied = l_client_supplied client_dependent = _client_dependent transactional = _transactional terminate_changer = terminate_changer affect_server = affect_server life_context = _life_context ). * < IF _trace_active = abap_true. IF _trace_service->variant-invalidate_area = abap_true. _trace_service->trin_invalidate_area( area_name = area_name client = l_client terminate_changer = terminate_changer affect_server = affect_server rc = rc ). ENDIF. ENDIF. endmethod. method INVALIDATE_INSTANCE. DATA: l_client TYPE shm_client, l_client_supplied TYPE abap_bool value abap_false. CONSTANTS: affect_server TYPE shm_affect_server VALUE cl_shm_area=>affect_local_server. mc_set_shm_client. * > rc = _invalidate_instance71( area_name = area_name inst_name = inst_name client = l_client client_supplied = l_client_supplied client_dependent = _client_dependent transactional = _transactional terminate_changer = terminate_changer affect_server = affect_server life_context = _life_context ). * < IF _trace_active = abap_true. IF _trace_service->variant-invalidate_inst = abap_true. _trace_service->trin_invalidate_instance( area_name = area_name inst_name = inst_name client = l_client terminate_changer = terminate_changer affect_server = affect_server rc = rc ). ENDIF. ENDIF. endmethod. method SET_ROOT. DATA: l_cx TYPE REF TO cx_root. IF _trace_active = abap_false OR _trace_service->variant-set_root = abap_false. * > _set_root( root ). me->root = root. * < ELSE. TRY. * > _set_root( root ). me->root = root. * < _trace_service->trin_set_root( area_name = area_name inst_name = inst_name root = root ). CLEANUP INTO l_cx. _trace_service->trcx_set_root( area_name = area_name inst_name = inst_name root = root cx = l_cx ). ENDTRY. ENDIF. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 49215, 4339, 62, 9693, 44, 62, 12203, 32, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 7852, 62, 9693, 44, 62, 12203, 32, 198, 220, 2457, 198, 220, 2251, 2839, 628, 220, 3298, 2460, 7852, 62, 9693, 44, 62, 12203, 32, 764, 198, 198, 11377, 2665, 13, 628, 220, 38491, 15986, 32, 62, 20608, 2099, 6006, 44, 62, 12203, 32, 62, 20608, 1988, 705, 57, 5097, 62, 49215, 4339, 62, 9693, 44, 62, 12203, 32, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 15107, 2394, 2099, 1006, 284, 1168, 5097, 62, 49215, 4339, 62, 9693, 44, 62, 26947, 62, 13252, 2394, 1100, 12, 8807, 764, 628, 220, 1398, 12, 24396, 82, 42715, 62, 10943, 46126, 1581, 764, 198, 220, 1398, 12, 24396, 82, 17151, 62, 35353, 1137, 25633, 62, 43717, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 35353, 1137, 25633, 62, 43717, 8, 2099, 314, 764, 198, 220, 1398, 12, 24396, 82, 26195, 16219, 62, 13775, 62, 15675, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 38604, 62, 20608, 2099, 6006, 44, 62, 38604, 62, 20608, 4277, 7852, 62, 9693, 44, 62, 12203, 32, 14804, 7206, 38865, 62, 38604, 19240, 198, 220, 220, 220, 9871, 11507, 40589, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 39, 6981, 2538, 8, 2099, 1006, 284, 1168, 5097, 62, 49215, 4339, 62, 9693, 44, 62, 12203, 32, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 1268, 10943, 50, 8808, 3525, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 15285, 62, 10659, 9306, 62, 43717, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 15675, 62, 36840, 62, 10659, 9306, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 6369, 28332, 9306, 62, 36840, 62, 10659, 9306, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 27082, 2390, 2767, 1137, 62, 24908, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 3398, 27746, 62, 36840, 62, 10659, 9306, 764, 198, 220, 1398, 12, 24396, 82, 26195, 16219, 62, 13775, 62, 18564, 12709, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 38604, 62, 20608, 2099, 6006, 44, 62, 38604, 62, 20608, 4277, 7852, 62, 9693, 44, 62, 12203, 32, 14804, 7206, 38865, 62, 38604, 19240, 198, 220, 220, 220, 220, 220, 5145, 17139, 16219, 62, 49058, 2099, 6006, 44, 62, 17139, 16219, 62, 49058, 4277, 7852, 62, 9693, 44, 62, 12203, 32, 14804, 17139, 16219, 62, 49058, 62, 7206, 38865, 198, 220, 220, 220, 220, 220, 5145, 15543, 2043, 62, 34694, 2099, 314, 4277, 657, 198, 220, 220, 220, 9871, 11507, 40589, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 39, 6981, 2538, 8, 2099, 1006, 284, 1168, 5097, 62, 49215, 4339, 62, 9693, 44, 62, 12203, 32, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 6369, 28332, 9306, 62, 36840, 62, 10659, 9306, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 43717, 62, 43, 3955, 2043, 62, 6369, 5222, 1961, 1961, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 3398, 27746, 62, 36840, 62, 10659, 9306, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 27082, 2390, 2767, 1137, 62, 24908, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 47, 10619, 2751, 62, 36840, 62, 40726, 8874, 1961, 764, 198, 220, 1398, 12, 24396, 82, 26195, 16219, 62, 13775, 62, 16977, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 38604, 62, 20608, 2099, 6006, 44, 62, 38604, 62, 20608, 4277, 7852, 62, 9693, 44, 62, 12203, 32, 14804, 7206, 38865, 62, 38604, 19240, 198, 220, 220, 220, 220, 220, 5145, 17139, 16219, 62, 49058, 2099, 6006, 44, 62, 17139, 16219, 62, 49058, 4277, 7852, 62, 9693, 44, 62, 12203, 32, 14804, 17139, 16219, 62, 49058, 62, 7206, 38865, 198, 220, 220, 220, 220, 220, 5145, 15543, 2043, 62, 34694, 2099, 314, 4277, 657, 198, 220, 220, 220, 9871, 11507, 40589, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 39, 6981, 2538, 8, 2099, 1006, 284, 1168, 5097, 62, 49215, 4339, 62, 9693, 44, 62, 12203, 32, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 1268, 10943, 50, 8808, 3525, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 15285, 62, 10659, 9306, 62, 43717, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 6369, 28332, 9306, 62, 36840, 62, 10659, 9306, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 43717, 62, 43, 3955, 2043, 62, 6369, 5222, 1961, 1961, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 3398, 27746, 62, 36840, 62, 10659, 9306, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 27082, 2390, 2767, 1137, 62, 24908, 198, 220, 220, 220, 220, 220, 327, 55, 62, 9693, 44, 62, 47, 10619, 2751, 62, 36840, 62, 40726, 8874, 1961, 764, 198, 220, 1398, 12, 24396, 82, 38267, 16219, 62, 12203, 32, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 5097, 28495, 2099, 6006, 44, 62, 5097, 28495, 11902, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 7397, 8, 2099, 6006, 44, 62, 7397, 764, 198, 220, 1398, 12, 24396, 82, 3268, 23428, 2389, 6158, 62, 38604, 19240, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 5097, 28495, 2099, 6006, 44, 62, 5097, 28495, 11902, 198, 220, 220, 220, 220, 220, 5145, 38604, 62, 20608, 2099, 6006, 44, 62, 38604, 62, 20608, 4277, 7852, 62, 9693, 44, 62, 12203, 32, 14804, 7206, 38865, 62, 38604, 19240, 198, 220, 220, 220, 220, 220, 5145, 5781, 23678, 6158, 62, 3398, 15567, 1137, 2099, 9564, 2969, 62, 8202, 3535 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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any iv_ignore_empty TYPE abap_bool DEFAULT abap_true iv_node_type TYPE string OPTIONAL RAISING zcx_abapgit_ajson_error. METHODS set_boolean IMPORTING iv_path TYPE string iv_val TYPE any RAISING zcx_abapgit_ajson_error. METHODS set_string IMPORTING iv_path TYPE string iv_val TYPE clike RAISING zcx_abapgit_ajson_error. METHODS set_integer IMPORTING iv_path TYPE string iv_val TYPE i RAISING zcx_abapgit_ajson_error. METHODS set_date IMPORTING iv_path TYPE string iv_val TYPE d RAISING zcx_abapgit_ajson_error. METHODS set_null IMPORTING iv_path TYPE string RAISING zcx_abapgit_ajson_error. METHODS delete IMPORTING iv_path TYPE string RAISING zcx_abapgit_ajson_error. METHODS touch_array IMPORTING iv_path TYPE string iv_clear TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_ajson_error. METHODS push IMPORTING iv_path TYPE string iv_val TYPE any RAISING zcx_abapgit_ajson_error. METHODS stringify IMPORTING iv_indent TYPE i DEFAULT 0 RETURNING VALUE(rv_json) TYPE string RAISING zcx_abapgit_ajson_error. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 1228, 1559, 62, 16002, 198, 220, 44731, 764, 628, 220, 337, 36252, 50, 1598, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 900, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 21628, 62, 2100, 41876, 597, 198, 220, 220, 220, 220, 220, 21628, 62, 46430, 62, 28920, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 21628, 62, 17440, 62, 4906, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 900, 62, 2127, 21052, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 21628, 62, 2100, 41876, 597, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 900, 62, 8841, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 21628, 62, 2100, 41876, 537, 522, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 900, 62, 41433, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 21628, 62, 2100, 41876, 1312, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 900, 62, 4475, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 21628, 62, 2100, 41876, 288, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 900, 62, 8423, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 12233, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 3638, 62, 18747, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 21628, 62, 20063, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 4574, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 41876, 4731, 198, 220, 220, 220, 220, 220, 21628, 62, 2100, 41876, 597, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 13, 628, 220, 337, 36252, 50, 4731, 1958, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 521, 298, 41876, 1312, 5550, 38865, 657, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 17752, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1228, 1559, 62, 18224, 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,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, 1, 1, 1 ]
INTERFACE zif_abapgit_dot_abapgit PUBLIC. TYPES: BEGIN OF ty_requirement, component TYPE dlvunit, min_release TYPE saprelease, min_patch TYPE sappatchlv, END OF ty_requirement . TYPES: ty_requirement_tt TYPE STANDARD TABLE OF ty_requirement WITH DEFAULT KEY . TYPES: BEGIN OF ty_dot_abapgit, master_language TYPE spras, i18n_languages TYPE zif_abapgit_definitions=>ty_languages, starting_folder TYPE string, folder_logic TYPE string, ignore TYPE STANDARD TABLE OF string WITH DEFAULT KEY, requirements TYPE ty_requirement_tt, END OF ty_dot_abapgit . CONSTANTS: BEGIN OF c_folder_logic, prefix TYPE string VALUE 'PREFIX', full TYPE string VALUE 'FULL', END OF c_folder_logic . ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 44731, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8897, 24615, 11, 198, 220, 220, 220, 220, 220, 7515, 220, 220, 41876, 288, 6780, 20850, 11, 198, 220, 220, 220, 220, 220, 949, 62, 20979, 41876, 473, 3866, 1274, 11, 198, 220, 220, 220, 220, 220, 949, 62, 17147, 220, 220, 41876, 473, 381, 963, 6780, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 8897, 24615, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 8897, 24615, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 8897, 24615, 13315, 5550, 38865, 35374, 764, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 26518, 62, 397, 499, 18300, 11, 198, 220, 220, 220, 220, 220, 4958, 62, 16129, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 7500, 292, 11, 198, 220, 220, 220, 220, 220, 1312, 1507, 77, 62, 75, 33213, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 75, 33213, 11, 198, 220, 220, 220, 220, 220, 3599, 62, 43551, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 9483, 62, 6404, 291, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 8856, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 5359, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 8897, 24615, 62, 926, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 26518, 62, 397, 499, 18300, 764, 628, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 347, 43312, 3963, 269, 62, 43551, 62, 6404, 291, 11, 198, 220, 220, 220, 220, 220, 21231, 41876, 4731, 26173, 8924, 705, 47, 31688, 10426, 3256, 198, 220, 220, 220, 220, 220, 1336, 220, 220, 41876, 4731, 26173, 8924, 705, 37, 9994, 3256, 198, 220, 220, 220, 23578, 3963, 269, 62, 43551, 62, 6404, 291, 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,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LASS ltcl_find_remote_dot_abapgit DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. CONSTANTS: c_dummy_repo_key TYPE zif_abapgit_persistence=>ty_value VALUE '000000001'. METHODS: positive FOR TESTING RAISING cx_static_check, negative FOR TESTING RAISING cx_static_check, given_any_repo, when_find_remote_dot_abapgit, then_dot_abapgit_is_bound, then_no_exception_is_raised, given_dot_abapgit_file, given_no_dot_abapgit_file, then_dot_abapgit_is_not_bound, then_exception_is_raised. DATA: mo_repo TYPE REF TO zcl_abapgit_repo, mx_error TYPE REF TO zcx_abapgit_exception, mo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit. ENDCLASS. CLASS ltcl_find_remote_dot_abapgit IMPLEMENTATION. METHOD positive. given_any_repo( ). given_dot_abapgit_file( ). when_find_remote_dot_abapgit( ). then_dot_abapgit_is_bound( ). then_no_exception_is_raised( ). ENDMETHOD. METHOD negative. given_any_repo( ). given_no_dot_abapgit_file( ). when_find_remote_dot_abapgit( ). then_dot_abapgit_is_not_bound( ). then_exception_is_raised( ). ENDMETHOD. METHOD given_any_repo. DATA: ls_data TYPE zif_abapgit_persistence=>ty_repo. ls_data-key = c_dummy_repo_key. " online/offline doesn't matter... CREATE OBJECT mo_repo TYPE zcl_abapgit_repo_offline EXPORTING is_data = ls_data. ENDMETHOD. METHOD given_dot_abapgit_file. DATA: lt_files TYPE zif_abapgit_definitions=>ty_files_tt, ls_file LIKE LINE OF lt_files. ls_file-path = zif_abapgit_definitions=>c_root_dir. ls_file-filename = zif_abapgit_definitions=>c_dot_abapgit. ls_file-data = zcl_abapgit_convert=>string_to_xstring( |<?xml version="1.0" encoding="utf-8"?>| && |<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">| && | <asx:values>| && | <DATA>| && | <MASTER_LANGUAGE>E</MASTER_LANGUAGE>| && | <STARTING_FOLDER>/src/</STARTING_FOLDER>| && | <FOLDER_LOGIC>PREFIX</FOLDER_LOGIC>| && | <IGNORE>| && | <item>/.gitignore</item>| && | <item>/LICENSE</item>| && | <item>/README.md</item>| && | <item>/package.json</item>| && | <item>/.travis.yml</item>| && | </IGNORE>| && | </DATA>| && | </asx:values>| && |</asx:abap>| ). INSERT ls_file INTO TABLE lt_files. mo_repo->set_files_remote( lt_files ). ENDMETHOD. METHOD given_no_dot_abapgit_file. ENDMETHOD. METHOD when_find_remote_dot_abapgit. TRY. mo_dot_abapgit = mo_repo->find_remote_dot_abapgit( ). CATCH zcx_abapgit_exception INTO mx_error. ENDTRY. ENDMETHOD. METHOD then_dot_abapgit_is_bound. cl_abap_unit_assert=>assert_bound( mo_dot_abapgit ). ENDMETHOD. METHOD then_no_exception_is_raised. cl_abap_unit_assert=>assert_not_bound( mx_error ). ENDMETHOD. METHOD then_dot_abapgit_is_not_bound. cl_abap_unit_assert=>assert_not_bound( mo_dot_abapgit ). ENDMETHOD. METHOD then_exception_is_raised. cl_abap_unit_assert=>assert_bound( mx_error ). ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 31631, 300, 83, 565, 62, 19796, 62, 47960, 62, 26518, 62, 397, 499, 18300, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 67, 13513, 62, 260, 7501, 62, 2539, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 8367, 26173, 8924, 705, 8269, 16, 4458, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 3967, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 4633, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 628, 220, 220, 220, 220, 220, 1813, 62, 1092, 62, 260, 7501, 11, 198, 220, 220, 220, 220, 220, 618, 62, 19796, 62, 47960, 62, 26518, 62, 397, 499, 18300, 11, 198, 220, 220, 220, 220, 220, 788, 62, 26518, 62, 397, 499, 18300, 62, 271, 62, 7784, 11, 198, 220, 220, 220, 220, 220, 788, 62, 3919, 62, 1069, 4516, 62, 271, 62, 49309, 11, 198, 220, 220, 220, 220, 220, 1813, 62, 26518, 62, 397, 499, 18300, 62, 7753, 11, 198, 220, 220, 220, 220, 220, 1813, 62, 3919, 62, 26518, 62, 397, 499, 18300, 62, 7753, 11, 198, 220, 220, 220, 220, 220, 788, 62, 26518, 62, 397, 499, 18300, 62, 271, 62, 1662, 62, 7784, 11, 198, 220, 220, 220, 220, 220, 788, 62, 1069, 4516, 62, 271, 62, 49309, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 6941, 62, 260, 7501, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 11, 198, 220, 220, 220, 220, 220, 285, 87, 62, 18224, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 6941, 62, 26518, 62, 397, 499, 18300, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 19796, 62, 47960, 62, 26518, 62, 397, 499, 18300, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3967, 13, 628, 220, 220, 220, 1813, 62, 1092, 62, 260, 7501, 7, 6739, 198, 220, 220, 220, 1813, 62, 26518, 62, 397, 499, 18300, 62, 7753, 7, 6739, 628, 220, 220, 220, 618, 62, 19796, 62, 47960, 62, 26518, 62, 397, 499, 18300, 7, 220, 6739, 628, 220, 220, 220, 788, 62, 26518, 62, 397, 499, 18300, 62, 271, 62, 7784, 7, 6739, 198, 220, 220, 220, 788, 62, 3919, 62, 1069, 4516, 62, 271, 62, 49309, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4633, 13, 628, 220, 220, 220, 1813, 62, 1092, 62, 260, 7501, 7, 6739, 198, 220, 220, 220, 1813, 62, 3919, 62, 26518, 62, 397, 499, 18300, 62, 7753, 7, 6739, 628, 220, 220, 220, 618, 62, 19796, 62, 47960, 62, 26518, 62, 397, 499, 18300, 7, 220, 6739, 628, 220, 220, 220, 788, 62, 26518, 62, 397, 499, 18300, 62, 271, 62, 1662, 62, 7784, 7, 6739, 198, 220, 220, 220, 788, 62, 1069, 4516, 62, 271, 62, 49309, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1813, 62, 1092, 62, 260, 7501, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 7890, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 13, 628, 220, 220, 220, 43979, 62, 7890, 12, 2539, 796, 269, 62, 67, 13513, 62, 260, 7501, 62, 2539, 13, 628, 220, 220, 220, 366, 2691, 14, 2364, 1370, 1595, 470, 2300, 986, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 260, 7501, 41876, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 2364, 1370, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 7890, 796, 43979, 62, 7890, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1813, 62, 26518, 62, 397, 499, 18300, 62, 7753, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 83, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 7753, 220, 34178, 48920, 3963, 300, 83, 62, 16624, 13, 628, 220, 220, 220, 43979, 62, 7753, 12, 6978, 796, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 15763, 62, 15908, 13, 198, 220, 220, 220, 43979, 62, 7753, 12, 34345, 796, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 66, 62, 26518, 62, 397, 499, 18300, 13, 198, 220, 220, 220, 43979, 62, 7753, 12, 7890, 796, 1976, 565, 62, 397, 499, 18300, 62, 1102, 1851, 14804, 8841, 62, 1462, 62, 87, 8841, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 47934, 19875, 2196, 2625, 16, 13, 15, 1, 21004, 2625, 40477, 12, 23, 13984, 29, 91, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11405, 930, 27, 292, 87, 25, 397, 499, 35555, 5907, 25, 292, 87, 2625, 4023, 1378, 2503, 13, 82, 499, 13, 785, 14, 397, 499, 19875, 1, 2196, 2625, 16, 13, 15, 5320, 91, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11405, 930, 1279, 292, 87, 25, 27160, 29, 91, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11405, 930, 220, 1279, 26947, 29, 91, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_advent2020_day11_hvam DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_advent2020_hvam . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_advent2020_day11_hvam IMPLEMENTATION. METHOD zif_advent2020_hvam~solve. output = 'todo'. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 324, 1151, 42334, 62, 820, 1157, 62, 71, 85, 321, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 324, 1151, 42334, 62, 71, 85, 321, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 324, 1151, 42334, 62, 820, 1157, 62, 71, 85, 321, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 324, 1151, 42334, 62, 71, 85, 321, 93, 82, 6442, 13, 628, 220, 220, 220, 5072, 796, 705, 83, 24313, 4458, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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/agency26 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/agency26. "#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/agency26 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 = 'info@sunshine-travel.sap ' ) ( 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 = 'info@flyhigh.sap ' ) ( 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 = 'info@haphop.sap ' ) ( 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 = 'info@pinkpanther.sap ' ) ( 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 = 'info@yc.sap' ) ( 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 = 'info@tours.it/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 = 'info@hst.co.au' ) ( 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 = 'info@burns-burns-burns.sg' ) ( 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 = 'info@honauer.at' ) ( 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 = 'info@starfleet.ufp' ) ( 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 = 'info@ben-mcCloskey.co.uk' ) ( 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 = 'info@pi-pa-tri.sap' ) ( 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 = 'info@hopp.sap ' ) ( 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 = 'info@neu.schwanstein.sap ' ) ( 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 = 'info@ali.sap ' ) ( 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 = 'info@super.sap' ) ( 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 = 'info@wang.chong.sap' ) ( 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 = 'info@atw.sap' ) ( 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 = 'info@bye-bye.sap ' ) ( 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 = 'info@sap.com ' ) ( 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 = 'info@cuba-libre.sap ' ) ( 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 = 'info@asia-by-plane.co.jp' ) ( 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 = 'info@everywhere.sap' ) ( 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 = 'info@haphol.sap' ) ( 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 = 'info@nn.sap' ) ( 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 = 'info@fly-low.sap' ) ( 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 = 'info@down-under.sap' ) ( 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 = 'info@una.sap ' ) ( 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 = 'info@twt.sap ' ) ( 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 = 'info@ruebennase.sap ' ) ( 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 = 'info@s3.sap ' ) ( 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 = 'info@fly-and-smile.sap ' ) ( 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 = 'info@supercheap.sap ' ) ( 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 = 'info@42.sap ' ) ( 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 = 'info@fn-pl.sap ' ) ( 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 = 'info@reweva.sap ' ) ( 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 = 'info@cap-travels.co.za' ) ( 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 = 'info@windy.sap/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 = 'info@women-only.sap ' ) ( 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 = 'info@maxitrip.sap' ) ( 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 = 'info@thulan.sap ' ) ( 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 = 'info@intertravel.sap ' ) ( 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 = 'info@ultimate-goal.sap ' ) ( 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 = 'info@sar.sap ' ) ( 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 = 'info@essen.sap/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 = 'info@abap.sap ' ) ( 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 = 'info@frank.furter.sap ' ) ( 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 = 'info@mam.sap' ) ( 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 = 'info@nobb.sap' ) ). ENDMETHOD. ENDCLASS. CLASS lcl_airport_data_generator DEFINITION CREATE PRIVATE. PUBLIC SECTION. INTERFACES: lif_data_generator. TYPES: tt_airport TYPE STANDARD TABLE OF /dmo/airport26 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/airport26. "#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/airport26 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/carrier26 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/carrier26. "#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/carrier26 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_26 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_26. 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_26. "#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_26 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_26 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/flight26 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_id26, seats_max TYPE /dmo/plane_seats_max26, long_distance TYPE abap_bool, index TYPE int1, END OF ty_plane_type, BEGIN OF ty_flight_info, id TYPE /dmo/plane_type_id26, long_distance TYPE abap_bool, seats_max TYPE /dmo/plane_seats_max26, seats_occupied TYPE /dmo/plane_seats_occupied26, price TYPE /dmo/flight_price26, END OF ty_flight_info, BEGIN OF ty_connection_recurrency, id TYPE /dmo/connection_id26, recurrency TYPE STANDARD TABLE OF /dmo/flight_date26 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_id26 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/flight26. "#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/flight26 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/flight26( 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/flight26-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_26=>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_date26( lv_datum + 217 ) ). " flight_date_min is a Monday 5 months in the past flight_date_min = calc_next_monday( CONV /dmo/flight_date26( 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_date26( 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_name26, END OF ty_last_name. TYPES: tt_customer TYPE STANDARD TABLE OF /dmo/customer26 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_name26, gender TYPE c LENGTH 1, END OF ty_first_name, BEGIN OF ty_name, first_name TYPE /dmo/first_name26, last_name TYPE /dmo/last_name26, title TYPE /dmo/title26, END OF ty_name, " Addresses BEGIN OF ty_city, country TYPE land1, postal_code TYPE /dmo/postal_code26, city TYPE /dmo/city26, END OF ty_city, tt_street_per_country TYPE STANDARD TABLE OF /dmo/street26 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_code26, city TYPE /dmo/city26, street TYPE /dmo/street26, phone_number TYPE /dmo/phone_number26, email_address TYPE /dmo/email_address26, 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/customer26. "#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/customer26 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/title26( 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_26 WITH KEY supplement_id, tt_supplement_text TYPE STANDARD TABLE OF /dmo/suppl_te_26 WITH KEY supplement_id. " Merged types TYPES BEGIN OF ty_supplement_complete. INCLUDE TYPE /dmo/suppleme_26. TYPES language_code TYPE spras. TYPES description TYPE /dmo/description26. 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_26. "#EC CI_NOWHERE DELETE FROM /dmo/suppl_te_26. "#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_26 FROM TABLE @( CORRESPONDING tt_supplement( lt_data ) ). INSERT /dmo/suppl_te_26 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_26 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/travel26 WITH KEY travel_id, tt_bookings TYPE STANDARD TABLE OF /dmo/booking26 WITH KEY travel_id booking_id, tt_booking_supplements TYPE STANDARD TABLE OF /dmo/book_sup_26 WITH KEY travel_id booking_id booking_supplement_id. " Build nested tables TYPES BEGIN OF ty_booking_complete. INCLUDE TYPE /dmo/booking26. 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/travel26. 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/booking26-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/flight26 OPTIONAL RETURNING VALUE(rs_flight) TYPE /dmo/flight26, generate_booking_supplements IMPORTING iv_travel_id TYPE /dmo/booking26-travel_id iv_booking_id TYPE /dmo/booking26-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/travel26-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/travel26-booking_fee, generate_travel_customer_id IMPORTING it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete RETURNING VALUE(rv_customer_id) TYPE /dmo/travel26-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/travel26. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Delete Booking Content.' ). ENDIF. DELETE FROM /dmo/booking26. "#EC CI_NOWHERE IF out IS BOUND. out->write( '--> Delete Booking Supplement Content.' ). ENDIF. DELETE FROM /dmo/book_sup_26. "#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/travel26( ls_travel ) TO lt_travels. LOOP AT ls_travel-bookings INTO DATA(ls_booking). APPEND CORRESPONDING /dmo/booking26( 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/travel26 FROM TABLE @lt_travels. IF out IS BOUND. out->write( '--> Insert Booking Content' ). ENDIF. INSERT /dmo/booking26 FROM TABLE @lt_bookings. IF out IS BOUND. out->write( '--> Insert Booking Supplement Content' ). ENDIF. INSERT /dmo/book_sup_26 FROM TABLE @lt_booking_supplements. IF out IS BOUND. out->write( '--> Done.' ). ENDIF. ENDMETHOD. METHOD get_data. DATA: lv_travel_id TYPE /dmo/booking26-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/travel26-total_price( INIT sum = 0 FOR booking IN lt_bookings NEXT sum = sum + booking-flight_price + REDUCE /dmo/flight_price26( 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/travel26-status( go_ran_status_description->get_next( ) WHEN 1 OR 2 THEN /dmo/if_flight_legacy26=>travel_status-new WHEN 3 THEN /dmo/if_flight_legacy26=>travel_status-booked WHEN 4 THEN /dmo/if_flight_legacy26=>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/customer26-customer_id WITH EMPTY KEY. DATA: lv_booking_id TYPE /dmo/booking26-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/booking26-booking_date( <flight>-flight_date - go_ran_booking_date->get_next( ) ). DATA(lv_price) = /dmo/cl_flight_data_generat_26=>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/booking26-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_26-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/customer26 WITH UNIQUE KEY customer_id. rv_description = SWITCH /dmo/travel26-description( go_ran_travel_description->get_next( ) WHEN 1 THEN `Business Trip for ` && REDUCE /dmo/travel26-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/travel26-description( WHEN i < lines( it_bookings ) THEN `, ` ) i = i + 1 ) WHEN 2 THEN `Vacation for ` && REDUCE /dmo/travel26-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/travel26-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/travel26-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, 2075, 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, 2075, 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, 2075, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_abapgit_object_view DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_VIEW IMPLEMENTATION. METHOD zif_abapgit_object~changed_by. SELECT SINGLE as4user FROM dd25l INTO rv_user WHERE viewname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_objname TYPE rsedd0-ddobjname. lv_objname = ms_item-obj_name. CALL FUNCTION 'RS_DD_DELETE_OBJ' EXPORTING no_ask = abap_true objname = lv_objname objtype = 'V' 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, VIEW' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_name TYPE ddobjname, ls_dd25v TYPE dd25v, ls_dd09l TYPE dd09l, lt_dd26v TYPE TABLE OF dd26v, lt_dd27p TYPE TABLE OF dd27p, lt_dd28j TYPE TABLE OF dd28j, lt_dd28v TYPE TABLE OF dd28v. io_xml->read( EXPORTING iv_name = 'DD25V' CHANGING cg_data = ls_dd25v ). io_xml->read( EXPORTING iv_name = 'DD09L' CHANGING cg_data = ls_dd09l ). io_xml->read( EXPORTING iv_name = 'DD26V_TABLE' CHANGING cg_data = lt_dd26v ). io_xml->read( EXPORTING iv_name = 'DD27P_TABLE' CHANGING cg_data = lt_dd27p ). io_xml->read( EXPORTING iv_name = 'DD28J_TABLE' CHANGING cg_data = lt_dd28j ). io_xml->read( EXPORTING iv_name = 'DD28V_TABLE' CHANGING cg_data = lt_dd28v ). corr_insert( iv_package ). lv_name = ms_item-obj_name. " type conversion CALL FUNCTION 'DDIF_VIEW_PUT' EXPORTING name = lv_name dd25v_wa = ls_dd25v dd09l_wa = ls_dd09l TABLES dd26v_tab = lt_dd26v dd27p_tab = lt_dd27p dd28j_tab = lt_dd28j dd28v_tab = lt_dd28v EXCEPTIONS view_not_found = 1 name_inconsistent = 2 view_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_VIEW_PUT' ). ENDIF. zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_viewname TYPE dd25l-viewname, lv_ddl_view TYPE abap_bool. SELECT SINGLE viewname FROM dd25l INTO lv_viewname WHERE viewname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. rv_bool = boolc( sy-subrc = 0 ). IF rv_bool = abap_true. TRY. CALL METHOD ('CL_DD_DDL_UTILITIES')=>('CHECK_FOR_DDL_VIEW') EXPORTING objname = lv_viewname RECEIVING is_ddl_view = lv_ddl_view. IF lv_ddl_view = abap_true. rv_bool = abap_false. ENDIF. CATCH cx_root ##NO_HANDLER. ENDTRY. ENDIF. 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 dd25l INTO (lv_date, lv_time) WHERE viewname = 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 ). IF rv_changed = abap_true. RETURN. ENDIF. SELECT SINGLE as4date as4time FROM dd09l INTO (lv_date, lv_time) WHERE tabname = 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-VIMA' iv_field = 'RSRD1-VIMA_VAL' ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, ls_dd25v TYPE dd25v, ls_dd09l TYPE dd09l, lt_dd26v TYPE TABLE OF dd26v, lt_dd27p TYPE TABLE OF dd27p, lt_dd28j TYPE TABLE OF dd28j, lt_dd28v TYPE TABLE OF dd28v. FIELD-SYMBOLS: <ls_dd27p> LIKE LINE OF lt_dd27p. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_VIEW_GET' EXPORTING name = lv_name state = 'A' langu = mv_language IMPORTING dd25v_wa = ls_dd25v dd09l_wa = ls_dd09l TABLES dd26v_tab = lt_dd26v dd27p_tab = lt_dd27p dd28j_tab = lt_dd28j dd28v_tab = lt_dd28v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_VIEW_GET' ). ENDIF. IF ls_dd25v IS INITIAL. RETURN. " does not exist in system ENDIF. CLEAR: ls_dd25v-as4user, ls_dd25v-as4date, ls_dd25v-as4time. CLEAR: ls_dd09l-as4user, ls_dd09l-as4date, ls_dd09l-as4time. LOOP AT lt_dd27p ASSIGNING <ls_dd27p>. CLEAR: <ls_dd27p>-ddtext, <ls_dd27p>-reptext, <ls_dd27p>-scrtext_s, <ls_dd27p>-scrtext_m, <ls_dd27p>-scrtext_l, <ls_dd27p>-outputlen, <ls_dd27p>-decimals, <ls_dd27p>-lowercase, <ls_dd27p>-convexit, <ls_dd27p>-signflag, <ls_dd27p>-flength, <ls_dd27p>-domname, <ls_dd27p>-datatype, <ls_dd27p>-entitytab, <ls_dd27p>-inttype, <ls_dd27p>-intlen, <ls_dd27p>-headlen, <ls_dd27p>-scrlen1, <ls_dd27p>-scrlen2, <ls_dd27p>-scrlen3, <ls_dd27p>-memoryid. ENDLOOP. io_xml->add( iv_name = 'DD25V' ig_data = ls_dd25v ). io_xml->add( iv_name = 'DD09L' ig_data = ls_dd09l ). io_xml->add( ig_data = lt_dd26v iv_name = 'DD26V_TABLE' ). io_xml->add( ig_data = lt_dd27p iv_name = 'DD27P_TABLE' ). io_xml->add( ig_data = lt_dd28j iv_name = 'DD28J_TABLE' ). io_xml->add( ig_data = lt_dd28v iv_name = 'DD28V_TABLE' ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1177, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 28206, 30023, 2538, 10979, 6234, 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, 355, 19, 7220, 16034, 49427, 1495, 75, 39319, 374, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 33411, 1570, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 355, 19, 12001, 796, 705, 32, 6, 198, 220, 220, 220, 220, 220, 5357, 355, 19, 690, 796, 705, 2388, 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, 5589, 533, 62, 1462, 62, 47960, 62, 9641, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 785, 1845, 1653, 62, 20274, 41876, 1976, 565, 62, 397, 499, 18300, 62, 785, 1845, 1653, 62, 8423, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 26801, 3672, 41876, 44608, 6048, 15, 12, 1860, 26801, 3672, 13, 628, 198, 220, 220, 220, 300, 85, 62, 26801, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6998, 62, 16458, 62, 7206, 2538, 9328, 62, 9864, 41, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 2093, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 26801, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 53, 6, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 407, 62, 18558, 7241, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 9275, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 23599, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 7170, 62, 32165, 495, 220, 220, 796, 604, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 18224, 422, 19340, 62, 16458, 62, 7206, 2538, 9328, 62, 9864, 41, 11, 49880, 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, 3672, 220, 41876, 49427, 26801, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1860, 1495, 85, 41876, 49427, 1495, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 1860, 2931, 75, 41876, 49427, 2931, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2075, 85, 41876, 43679, 3963, 49427, 2075, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 1983, 79, 41876, 43679, 3963, 49427, 1983, 79, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2078, 73, 41876, 43679, 3963, 49427, 2078, 73, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2078, 85, 41876, 43679, 3963, 49427, 2078, 85, 13, 628, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 1495, 53, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 269, 70, 62, 7890, 796, 43979, 62, 1860, 1495, 85, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 2931, 43, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 269, 70, 62, 7890, 796, 43979, 62, 1860, 2931, 75, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 2075, 53, 62, 38148, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 269, 70, 62, 7890, 796, 300, 83, 62, 1860, 2075, 85, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 1983, 47, 62, 38148, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 269, 70, 62, 7890, 796, 300, 83, 62, 1860, 1983, 79, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 2078, 41, 62, 38148, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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E(value) TYPE i. PRIVATE SECTION. ENDCLASS. CLASS zcl_resistor_color IMPLEMENTATION. METHOD resistor_color. CASE color_code. WHEN 'black'. value = 0. WHEN 'brown'. value = 1. WHEN 'red'. value = 2. WHEN 'orange'. value = 3. WHEN 'yellow'. value = 4. WHEN 'green'. value = 5. WHEN 'blue'. value = 6. WHEN 'violet'. value = 7. WHEN 'grey'. value = 8. WHEN 'white'. value = 9. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 411, 32380, 62, 8043, 5550, 20032, 17941, 44731, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 45032, 62, 8043, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3124, 62, 8189, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 8367, 8, 41876, 1312, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 565, 62, 411, 32380, 62, 8043, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 45032, 62, 8043, 13, 198, 220, 220, 220, 42001, 3124, 62, 8189, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 13424, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 657, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 33282, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 352, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 445, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 362, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 43745, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 513, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 36022, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 604, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 14809, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 642, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 17585, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 718, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 85, 19194, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 767, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 49502, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 807, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 11186, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 796, 860, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! <p class="shorttext synchronized" lang="en">oData operations handler for any entity set.</p> "! <p>Requires whole data to be selected and passed in to the methods, so it is useful "! in reasonable cases like small data sets. </p> "! <p>An entity set can be processed in one touch using <em>handle_set_query_options</em> "! or using specific methods - <em>order_by</em>, <em>apply_paging</em> and <em>filter_set</em>.</p> "! <p>Handles $filter, $top, $skip, $orderby, $count, $inlinecount query options</p> "! <p>Example usage in DPC_EXT class:</p> "! <p>SELECT * FROM my_table INTO TABLE et_entityset.<br/> "! DATA(operations) = NEW zcl_gw_entityset_operations( <br/> "! &nbsp;&nbsp;data_provider = me <br/> "! &nbsp;&nbsp;&nbsp;&nbsp;response_context = es_response_context <br/> "! &nbsp;&nbsp;&nbsp;&nbsp;technical_context = io_tech_request_context ). <br/> "! <br/> "! operations-&gt;handle_set_query_options( CHANGING entity_set = et_entityset ). <br/> "! </p> CLASS zcl_gw_entityset_operations DEFINITION PUBLIC CREATE PUBLIC. PUBLIC SECTION. METHODS: "! <p class="shorttext synchronized" lang="en">Constructor.</p> "! @parameter data_provider | <p class="shorttext synchronized" lang="en">DPC_EXT instance</p> "! @parameter technical_context | <p class="shorttext synchronized" lang="en">io_tech_request_context object from the DPC_EXT method</p> "! @parameter response_context | <p class="shorttext synchronized" lang="en">es_response_context from the DPC_EXT method</p> constructor IMPORTING data_provider TYPE REF TO /iwbep/if_mgw_conv_srv_runtime technical_context TYPE REF TO /iwbep/if_mgw_req_entityset response_context TYPE /iwbep/if_mgw_appl_srv_runtime=>ty_s_mgw_response_context, "! <p class="shorttext synchronized" lang="en"> "! Handles filtering, sorting, paging and counting. "! </p> "! <p>Handles filtering ($filter), sorting ($orderby), paging ($top, $skip) and counting ($count, $inlinecount)</p> "! "! @parameter multiple_filters_operator | <p class="shorttext synchronized">Operator used if multiple filters are present</p> "! @parameter entity_set | <p class="shorttext synchronized" lang="en">Entity set table (whole data set)</p> "! @raising /iwbep/cx_mgw_tech_exception | <p class="shorttext synchronized" lang="en">Gateway technical exception</p> handle_set_query_options IMPORTING multiple_filters_operator TYPE string DEFAULT 'OR' CHANGING entity_set TYPE STANDARD TABLE RAISING /iwbep/cx_mgw_tech_exception, "! <p class="shorttext synchronized" lang="en">Filters ($filter) entity set</p> "! <p>Please note: filtering is case-insensitive, multiple filters are handled with OR logic by default (multiple_filters_operator "! parameter)</p> "! "! @parameter filter_select_options | <p class="shorttext synchronized" lang="en">Filter select options</p> "! @parameter multiple_filters_operator | <p class="shorttext synchronized">Operator used if multiple filters are present</p> "! @parameter entity_set | <p class="shorttext synchronized" lang="en">Entity set table (whole data set)</p> "! @raising /iwbep/cx_mgw_tech_exception | <p class="shorttext synchronized" lang="en">Gateway technical exception</p> filter_set IMPORTING filter_select_options TYPE /iwbep/t_mgw_select_option multiple_filters_operator TYPE string DEFAULT 'OR' CHANGING entity_set TYPE STANDARD TABLE RAISING /iwbep/cx_mgw_tech_exception, "! <p class="shorttext synchronized" lang="en">Filters entity set, AND logic for multiple filters</p> "! <p>Note: filtering is case-insensitive</p> "! "! @parameter filter_select_options | <p class="shorttext synchronized" lang="en">Filter select options</p> "! @parameter entity_set | <p class="shorttext synchronized" lang="en">Entity set table (whole data set)</p> "! @raising /iwbep/cx_mgw_tech_exception | <p class="shorttext synchronized" lang="en">Gateway technical exception</p> filter_set_with_and IMPORTING filter_select_options TYPE /iwbep/t_mgw_select_option CHANGING entity_set TYPE STANDARD TABLE RAISING /iwbep/cx_mgw_tech_exception, "! <p class="shorttext synchronized" lang="en">Filters entity set, OR logic for multiple filters</p> "! "! <p>Note: filtering is case-insensitive</p> "! "! @parameter filter_select_options | <p class="shorttext synchronized" lang="en">Filter select options</p> "! @parameter entity_set | <p class="shorttext synchronized" lang="en">Entity set table (whole data set)</p> "! @raising /iwbep/cx_mgw_tech_exception | <p class="shorttext synchronized" lang="en">Gateway technical exception</p> filter_set_with_or IMPORTING filter_select_options TYPE /iwbep/t_mgw_select_option CHANGING entity_set TYPE STANDARD TABLE RAISING /iwbep/cx_mgw_tech_exception, "! <p class="shorttext synchronized" lang="en">Applies paging ($top,$skip) to the entity set</p> "! <p>Forwards to <em>/iwbep/cl_mgw_data_util=&gt;paging</em></p> "! "! @parameter paging_preferences | <p class="shorttext synchronized" lang="en">Top and Skip values</p> "! @parameter entity_set | <p class="shorttext synchronized" lang="en">Entity set table (whole data set)</p> apply_paging IMPORTING paging_preferences TYPE /iwbep/s_mgw_paging CHANGING entity_set TYPE STANDARD TABLE, "! <p class="shorttext synchronized" lang="en"></p> "! "! @parameter order_criteria | <p class="shorttext synchronized" lang="en">Ordering, io_tech_request_context-&gt;get_orderby( )</p> "! @parameter entity_set | <p class="shorttext synchronized" lang="en">Entity set table (whole data set)</p> order_by IMPORTING order_criteria TYPE /iwbep/t_mgw_tech_order CHANGING entity_set TYPE STANDARD TABLE. PRIVATE SECTION. DATA: data_provider TYPE REF TO /iwbep/if_mgw_conv_srv_runtime, technical_context TYPE REF TO /iwbep/if_mgw_req_entityset, response_context TYPE /iwbep/if_mgw_appl_srv_runtime=>ty_s_mgw_response_context, entity_name TYPE string. ENDCLASS. CLASS zcl_gw_entityset_operations IMPLEMENTATION. METHOD apply_paging. /iwbep/cl_mgw_data_util=>paging( EXPORTING is_paging = paging_preferences CHANGING ct_data = entity_set ). ENDMETHOD. METHOD constructor. me->data_provider = data_provider. me->response_context = response_context. me->technical_context = technical_context. me->entity_name = technical_context->get_entity_type_name( ). ENDMETHOD. METHOD filter_set. DATA(filters_count) = lines( filter_select_options ). IF filters_count = 0. RETURN. ENDIF. IF multiple_filters_operator = 'AND'. filter_set_with_and( EXPORTING filter_select_options = filter_select_options CHANGING entity_set = entity_set ). ELSE. filter_set_with_or( EXPORTING filter_select_options = filter_select_options CHANGING entity_set = entity_set ). ENDIF. ENDMETHOD. METHOD filter_set_with_and. TYPES: BEGIN OF ty_hits, row_index TYPE i, no_hits TYPE i, END OF ty_hits. DATA: value TYPE string, final_table TYPE REF TO data, table_index TYPE i, hits TYPE STANDARD TABLE OF ty_hits WITH KEY row_index, hit LIKE LINE OF hits, filter_loop_count TYPE i. FIELD-SYMBOLS: <checked_value> TYPE data, <final_table> TYPE table, <input_table_line> TYPE data. DATA(filters_count) = lines( filter_select_options ). IF filters_count = 0. RETURN. ENDIF. DATA(data_provider_facade) = me->data_provider->get_dp_facade( ). DATA(data_provider_model) = CAST /iwbep/if_mgw_dp_int_facade( data_provider_facade )->get_model( ). DATA(entity_properties) = data_provider_model->get_entity_type( CONV #( entity_name ) )->get_properties( ). DATA(table_description) = CAST cl_abap_tabledescr( cl_abap_datadescr=>describe_by_data( entity_set ) ). CREATE DATA final_table TYPE HANDLE table_description. ASSIGN final_table->* TO <final_table>. LOOP AT filter_select_options INTO DATA(filter_select_option). filter_loop_count = sy-tabix. READ TABLE entity_properties INTO DATA(entity_property) WITH KEY technical_name = filter_select_option-property. IF sy-subrc = 0. LOOP AT entity_set ASSIGNING <input_table_line>. table_index = sy-tabix. ASSIGN COMPONENT entity_property-technical_name OF STRUCTURE <input_table_line> TO <checked_value>. IF sy-subrc = 0 AND <checked_value> IS ASSIGNED. value = <checked_value>. value = to_upper( <checked_value> ). LOOP AT filter_select_option-select_options ASSIGNING FIELD-SYMBOL(<select_option>). <select_option>-low = to_upper( <select_option>-low ). <select_option>-high = to_upper( <select_option>-high ). ENDLOOP. IF value IN filter_select_option-select_options. READ TABLE hits INTO hit WITH KEY row_index = table_index. IF sy-subrc = 0. hit-no_hits = hit-no_hits + 1. MODIFY TABLE hits FROM hit. ELSE. hit-no_hits = 1. hit-row_index = table_index. APPEND hit TO hits. ENDIF. ENDIF. ENDIF. ENDLOOP. ENDIF. ENDLOOP. LOOP AT hits ASSIGNING FIELD-SYMBOL(<hit>). IF <hit>-no_hits = filters_count. READ TABLE entity_set ASSIGNING <input_table_line> INDEX <hit>-row_index. APPEND <input_table_line> TO <final_table>. ENDIF. ENDLOOP. entity_set = <final_table>. ENDMETHOD. METHOD filter_set_with_or. DATA: checked_value TYPE string, result_table TYPE REF TO data, entity_set_table_loop_index TYPE i, filter_loop_count TYPE i. FIELD-SYMBOLS: <entity_line_checked_value> TYPE data, <result_table> TYPE table, <entity_set_table_line> TYPE data. DATA(filters_count) = lines( filter_select_options ). IF filters_count = 0. RETURN. ENDIF. DATA(data_provider_facade) = me->data_provider->get_dp_facade( ). DATA(data_provider_model) = CAST /iwbep/if_mgw_dp_int_facade( data_provider_facade )->get_model( ). DATA(entity_properties) = data_provider_model->get_entity_type( CONV #( entity_name ) )->get_properties( ). DATA(table_description) = CAST cl_abap_tabledescr( cl_abap_datadescr=>describe_by_data( entity_set ) ). CREATE DATA result_table TYPE HANDLE table_description. ASSIGN result_table->* TO <result_table>. LOOP AT filter_select_options INTO DATA(filter_select_options_line). filter_loop_count = sy-tabix. READ TABLE entity_properties INTO DATA(entity_properties_line) WITH KEY technical_name = filter_select_options_line-property. IF sy-subrc = 0. LOOP AT entity_set ASSIGNING <entity_set_table_line>. entity_set_table_loop_index = sy-tabix. ASSIGN COMPONENT entity_properties_line-technical_name OF STRUCTURE <entity_set_table_line> TO <entity_line_checked_value>. IF sy-subrc = 0 AND <entity_line_checked_value> IS ASSIGNED. checked_value = <entity_line_checked_value>. checked_value = to_upper( <entity_line_checked_value> ). LOOP AT filter_select_options_line-select_options ASSIGNING FIELD-SYMBOL(<filter_select_option>). <filter_select_option>-low = to_upper( <filter_select_option>-low ). <filter_select_option>-high = to_upper( <filter_select_option>-high ). ENDLOOP. IF checked_value NOT IN filter_select_options_line-select_options. IF filters_count = filter_loop_count. "last filter. DELETE entity_set INDEX entity_set_table_loop_index. ENDIF. ELSE. APPEND <entity_set_table_line> TO <result_table>. ENDIF. ENDIF. ENDLOOP. ENDIF. ENDLOOP. entity_set = <result_table>. ENDMETHOD. METHOD handle_set_query_options. IF entity_set IS NOT INITIAL. DATA(filters) = technical_context->get_filter( )->get_filter_select_options( ). IF filters IS NOT INITIAL. filter_set( EXPORTING filter_select_options = filters multiple_filters_operator = 'OR' CHANGING entity_set = entity_set ). ENDIF. IF technical_context->has_inlinecount( ) = abap_true. DESCRIBE TABLE entity_set LINES response_context-inlinecount. ENDIF. apply_paging( EXPORTING paging_preferences = VALUE #( top = technical_context->get_top( ) skip = technical_context->get_skip( ) ) CHANGING entity_set = entity_set ). DATA(order) = technical_context->get_orderby( ). order_by( EXPORTING order_criteria = order CHANGING entity_set = entity_set ). IF technical_context->has_count( ) = abap_true. DESCRIBE TABLE entity_set LINES response_context-count. ENDIF. ENDIF. ENDMETHOD. METHOD order_by. DATA: sort_order TYPE abap_sortorder_tab, sort_order_line TYPE abap_sortorder. LOOP AT order_criteria INTO DATA(order_criteria_line). sort_order_line-name = order_criteria_line-property. IF order_criteria_line-order = 'desc'. sort_order_line-descending = abap_true. ELSE. sort_order_line-descending = abap_false. ENDIF. APPEND sort_order_line TO sort_order. ENDLOOP. SORT entity_set BY (sort_order). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 78, 6601, 4560, 21360, 329, 597, 9312, 900, 25970, 79, 29, 198, 40484, 1279, 79, 29, 39618, 2187, 1366, 284, 307, 6163, 290, 3804, 287, 284, 262, 5050, 11, 523, 340, 318, 4465, 198, 40484, 287, 6397, 2663, 588, 1402, 1366, 5621, 13, 7359, 79, 29, 198, 40484, 1279, 79, 29, 2025, 9312, 900, 460, 307, 13686, 287, 530, 3638, 1262, 1279, 368, 29, 28144, 62, 2617, 62, 22766, 62, 25811, 3556, 368, 29, 198, 40484, 393, 1262, 2176, 5050, 532, 1279, 368, 29, 2875, 62, 1525, 3556, 368, 22330, 1279, 368, 29, 39014, 62, 79, 3039, 3556, 368, 29, 290, 1279, 368, 29, 24455, 62, 2617, 3556, 368, 29, 25970, 79, 29, 198, 40484, 1279, 79, 29, 12885, 829, 720, 24455, 11, 720, 4852, 11, 720, 48267, 11, 720, 2875, 1525, 11, 720, 9127, 11, 720, 45145, 9127, 12405, 3689, 3556, 79, 29, 198, 40484, 1279, 79, 29, 16281, 8748, 287, 360, 5662, 62, 13918, 1398, 25, 3556, 79, 29, 198, 40484, 1279, 79, 29, 46506, 1635, 16034, 616, 62, 11487, 39319, 43679, 2123, 62, 26858, 2617, 29847, 1671, 15913, 198, 40484, 42865, 7, 3575, 602, 8, 796, 12682, 1976, 565, 62, 70, 86, 62, 26858, 2617, 62, 3575, 602, 7, 1279, 1671, 15913, 198, 40484, 1222, 77, 24145, 26, 5, 77, 24145, 26, 7890, 62, 15234, 1304, 796, 502, 1279, 1671, 15913, 198, 40484, 1222, 77, 24145, 26, 5, 77, 24145, 26, 5, 77, 24145, 26, 5, 77, 24145, 26, 26209, 62, 22866, 796, 1658, 62, 26209, 62, 22866, 1279, 1671, 15913, 198, 40484, 1222, 77, 24145, 26, 5, 77, 24145, 26, 5, 77, 24145, 26, 5, 77, 24145, 26, 47944, 62, 22866, 796, 33245, 62, 13670, 62, 25927, 62, 22866, 6739, 1279, 1671, 15913, 198, 40484, 1279, 1671, 15913, 198, 40484, 4560, 12, 5, 13655, 26, 28144, 62, 2617, 62, 22766, 62, 25811, 7, 5870, 15567, 2751, 9312, 62, 2617, 796, 2123, 62, 26858, 2617, 6739, 1279, 1671, 15913, 198, 40484, 7359, 79, 29, 198, 31631, 1976, 565, 62, 70, 86, 62, 26858, 2617, 62, 3575, 602, 5550, 20032, 17941, 44731, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 42316, 273, 25970, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 1366, 62, 15234, 1304, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 35, 5662, 62, 13918, 4554, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 6276, 62, 22866, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 952, 62, 13670, 62, 25927, 62, 22866, 2134, 422, 262, 360, 5662, 62, 13918, 2446, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 2882, 62, 22866, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 274, 62, 26209, 62, 22866, 422, 262, 360, 5662, 62, 13918, 2446, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 23772, 30023, 9863, 2751, 1366, 62, 15234, 1304, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 42946, 62, 27891, 85, 62, 43282, 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, 6276, 62, 22866, 41876, 4526, 37, 5390, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 42180, 62, 26858, 2617, 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, 2882, 62, 22866, 220, 41876, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 1324, 75, 62, 27891, 85, 62, 43282, 14804, 774, 62, 82, 62, 11296, 86, 62, 26209, 62, 22866, 11, 628, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 198, 220, 220, 220, 220, 220, 366, 0, 7157, 829, 25431, 11, 29407, 11, 279, 3039, 290, 14143, 13, 198, 220, 220, 220, 220, 220, 366, 0, 7359, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 1279, 79, 29, 12885, 829, 25431, 7198, 24455, 828, 29407, 7198, 2875, 1525, 828, 279, 3039, 7198, 4852, 11, 720, 48267, 8, 290, 14143, 7198, 9127, 11, 720, 45145, 9127, 36475, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 3294, 62, 10379, 1010, 62, 46616, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 5320, 18843, 1352, 973, 611, 3294, 16628, 389, 1944, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 17143, 2357, 9312, 62, 2617, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 32398, 900, 3084, 357, 1929, 2305, 1366, 900, 36475, 79, 29, 198, 220, 220, 220, 220, 220, 366, 0, 2488, 32741, 1220, 14246, 65, 538, 14, 66, 87, 62, 11296, 86, 62, 13670, 62, 1069, 4516, 930, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 22628, 1014, 6276, 6631, 3556, 79, 29, 198, 220, 220, 220, 220, 220, 5412, 62, 2617, 62, 22766, 62, 25811, 30023, 9863, 2751, 3294, 62, 10379, 1010, 62, 46616, 41876, 4731, 5550, 38865, 705, 1581, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 9312, 62, 2617, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 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, 17926, 1797, 2751, 220, 220, 1220, 14246, 65, 538, 14, 66, 87, 62, 11296, 86, 62, 13670 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_ABAK_FORMAT_XML definition public final create public . public section. interfaces ZIF_ABAK_FORMAT . PROTECTED SECTION. private section. methods CONVERT_XML_K_2_K importing !IT_XML_K type ZABAK_XML_K_T returning value(RT_K) type ZABAK_K_T . methods LOAD_XML importing !I_XML type STRING exporting !ET_XML_K type ZABAK_XML_K_T !E_NAME type STRING raising ZCX_ABAK . ENDCLASS. CLASS ZCL_ABAK_FORMAT_XML IMPLEMENTATION. METHOD CONVERT_XML_K_2_K. DATA: s_k LIKE LINE OF rt_k, s_v LIKE LINE OF s_k-t_kv. FIELD-SYMBOLS: <s_xml_k> LIKE LINE OF it_xml_k. LOOP AT it_xml_k ASSIGNING <s_xml_k>. MOVE-CORRESPONDING <s_xml_k> TO s_k. IF <s_xml_k>-value IS NOT INITIAL. CLEAR s_v. s_v-sign = 'I'. s_v-option = 'EQ'. s_v-low = <s_xml_k>-value. INSERT s_v INTO TABLE s_k-t_kv. ENDIF. INSERT LINES OF <s_xml_k>-t_kv INTO TABLE s_k-t_kv. INSERT s_k INTO TABLE rt_k. ENDLOOP. ENDMETHOD. "#EC CI_VALPAR METHOD load_xml. DATA: o_exp TYPE REF TO cx_st_error. TRY. CALL TRANSFORMATION zabak_format_xml SOURCE XML i_xml RESULT constants = et_xml_k name = e_name. CATCH cx_st_error INTO o_exp. RAISE EXCEPTION TYPE zcx_abak EXPORTING previous = o_exp. ENDTRY. ENDMETHOD. METHOD zif_abak_format~convert. DATA: t_xml_k TYPE zabak_xml_k_t. LOG-POINT ID zabak SUBKEY 'format_xml.convert' FIELDS i_data. load_xml( EXPORTING i_xml = i_data IMPORTING et_xml_k = t_xml_k e_name = e_name ). IF et_k IS SUPPLIED. et_k = convert_xml_k_2_k( t_xml_k ). ENDIF. ENDMETHOD. METHOD zif_abak_format~get_type. r_format_type = zif_abak_consts=>format_type-xml. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 32, 4339, 42, 62, 21389, 1404, 62, 55, 5805, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 20314, 1168, 5064, 62, 32, 4339, 42, 62, 21389, 1404, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 19734, 2665, 13, 628, 220, 5050, 7102, 15858, 62, 55, 5805, 62, 42, 62, 17, 62, 42, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 2043, 62, 55, 5805, 62, 42, 2099, 1168, 32, 4339, 42, 62, 55, 5805, 62, 42, 62, 51, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 14181, 62, 42, 8, 2099, 1168, 32, 4339, 42, 62, 42, 62, 51, 764, 198, 220, 5050, 17579, 2885, 62, 55, 5805, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 55, 5805, 2099, 19269, 2751, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 2767, 62, 55, 5805, 62, 42, 2099, 1168, 32, 4339, 42, 62, 55, 5805, 62, 42, 62, 51, 198, 220, 220, 220, 220, 220, 5145, 36, 62, 20608, 2099, 19269, 2751, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 32, 4339, 42, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4339, 42, 62, 21389, 1404, 62, 55, 5805, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 7102, 15858, 62, 55, 5805, 62, 42, 62, 17, 62, 42, 13, 628, 220, 220, 220, 42865, 25, 264, 62, 74, 34178, 48920, 3963, 374, 83, 62, 74, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 62, 85, 34178, 48920, 3963, 264, 62, 74, 12, 83, 62, 74, 85, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 82, 62, 19875, 62, 74, 29, 34178, 48920, 3963, 340, 62, 19875, 62, 74, 13, 628, 220, 220, 220, 17579, 3185, 5161, 340, 62, 19875, 62, 74, 24994, 3528, 15871, 1279, 82, 62, 19875, 62, 74, 28401, 628, 220, 220, 220, 220, 220, 13070, 6089, 12, 44879, 19535, 47, 18672, 2751, 1279, 82, 62, 19875, 62, 74, 29, 5390, 264, 62, 74, 13, 628, 220, 220, 220, 220, 220, 16876, 1279, 82, 62, 19875, 62, 74, 29, 12, 8367, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30301, 1503, 264, 62, 85, 13, 198, 220, 220, 220, 220, 220, 220, 220, 264, 62, 85, 12, 12683, 796, 705, 40, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 264, 62, 85, 12, 18076, 796, 705, 36, 48, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 264, 62, 85, 12, 9319, 796, 1279, 82, 62, 19875, 62, 74, 29, 12, 8367, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 264, 62, 85, 39319, 43679, 264, 62, 74, 12, 83, 62, 74, 85, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 29194, 17395, 43277, 1546, 3963, 1279, 82, 62, 19875, 62, 74, 29, 12, 83, 62, 74, 85, 39319, 43679, 264, 62, 74, 12, 83, 62, 74, 85, 13, 628, 220, 220, 220, 220, 220, 29194, 17395, 264, 62, 74, 39319, 43679, 374, 83, 62, 74, 13, 628, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 25113, 2943, 14514, 62, 23428, 27082, 628, 198, 220, 337, 36252, 3440, 62, 19875, 13, 198, 220, 220, 220, 42865, 25, 267, 62, 11201, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 301, 62, 18224, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42815, 44069, 35036, 1976, 397, 461, 62, 18982, 62, 19875, 198, 220, 220, 220, 220, 220, 220, 220, 220, 311, 31033, 23735, 1312, 62, 19875, 198, 220, 220, 220, 220, 220, 220, 220, 220, 15731, 16724, 38491, 796, 2123, 62, 19875, 62, 74, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 796, 304, 62, 3672, 13, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 301, 62, 18224, 39319, 267, 62, 11201, 13, 198, 220, 220, 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, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2180, 796, 267, 62, 11201, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 49273, 1976, 361, 62, 397, 461, 62, 18982, 93, 1102, 1851, 13, 198, 220, 42865, 25, 256, 62, 19875, 62, 74, 41876, 1976, 397, 461, 62, 19875, 62, 74, 62, 83, 13, 628, 220, 41605, 12, 16402, 12394, 4522, 1976, 397, 461, 28932, 20373, 705, 18982, 62, 19875, 13, 1102, 1851, 6, 18930, 3698, 5258, 1312, 62, 7890, 13, 628, 220, 3440, 62, 19875, 7, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 19875, 220, 220, 220, 796, 1312, 62, 7890, 198, 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, 2123, 62, 19875, 62, 74, 796, 256, 62, 19875, 62, 74, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 3672, 220, 220, 796, 304, 62, 3672, 6739, 628, 220, 16876, 2123, 62, 74, 3180, 19549, 49094, 13, 198, 220, 220, 220, 2123, 62, 74, 796, 10385, 62, 19875, 62, 74, 62, 17, 62, 74, 7, 256, 62, 19875, 62, 74, 6739, 198, 220, 23578, 5064, 13, 198, 198, 10619, 49273, 13, 628, 198, 49273, 1976, 361, 62, 397, 461, 62, 18982, 93, 1136, 62, 4906, 13, 198, 220, 374, 62, 18982, 62, 4906, 796, 1976, 361, 62, 397, 461, 62, 1102, 6448, 14804, 18982, 62, 4906, 12, 19875, 13, 198, 10619, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
* IMPORTING * !I_FILTERS type /IWBEP/T_MGW_SELECT_OPTION * !I_PROPERTY type ANY * * RETURNING * VALUE(E_VALUE) type bapilawrge. METHOD OBTAIN_FILTER. DATA: ls_filter TYPE /iwbep/s_mgw_select_option, ls_so TYPE /iwbep/s_cod_select_option. " Obtener filtro READ TABLE i_filters WITH TABLE KEY property = i_property INTO ls_filter. CLEAR: e_value. IF sy-subrc EQ 0. LOOP AT ls_filter-select_options INTO ls_so. MOVE-CORRESPONDING ls_so TO e_value. ENDLOOP. ENDIF. ENDMETHOD.
[ 9, 30023, 9863, 2751, 198, 9, 220, 220, 220, 220, 220, 5145, 40, 62, 46700, 51, 4877, 2099, 1220, 40, 45607, 8905, 14, 51, 62, 20474, 54, 62, 46506, 62, 3185, 24131, 198, 9, 220, 220, 220, 220, 220, 5145, 40, 62, 4805, 31054, 9936, 2099, 15529, 198, 9, 198, 9, 30826, 4261, 15871, 198, 9, 220, 26173, 8924, 7, 36, 62, 39488, 8, 2099, 275, 499, 346, 707, 81, 469, 13, 198, 198, 49273, 25334, 30339, 62, 46700, 5781, 13, 198, 198, 26947, 25, 43979, 62, 24455, 41876, 1220, 14246, 65, 538, 14, 82, 62, 11296, 86, 62, 19738, 62, 18076, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 568, 220, 220, 220, 220, 41876, 1220, 14246, 65, 538, 14, 82, 62, 19815, 62, 19738, 62, 18076, 13, 628, 220, 366, 1835, 83, 877, 1226, 23528, 198, 220, 20832, 43679, 1312, 62, 10379, 1010, 13315, 43679, 35374, 3119, 796, 1312, 62, 26745, 39319, 43979, 62, 24455, 13, 198, 220, 30301, 1503, 25, 304, 62, 8367, 13, 198, 220, 16876, 827, 12, 7266, 6015, 36529, 657, 13, 198, 220, 220, 220, 17579, 3185, 5161, 43979, 62, 24455, 12, 19738, 62, 25811, 39319, 43979, 62, 568, 13, 198, 220, 220, 220, 220, 220, 13070, 6089, 12, 44879, 19535, 47, 18672, 2751, 43979, 62, 568, 5390, 304, 62, 8367, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 5064, 13, 198, 198, 10619, 49273, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 LZGUIDRASIL_CONTROL_TEXTF01. *----------------------------------------------------------------------* FORM init_text_control . IF gr_container IS INITIAL. CREATE OBJECT gr_container EXPORTING container_name = 'CC_TEXT'. ENDIF. IF gr_text IS INITIAL. CREATE OBJECT gr_text EXPORTING parent = gr_container name = 'POPUP'. PERFORM apply_text_attributes. gr_text->set_textstream( |{ gs_settings_text-text }| ). ENDIF. ENDFORM. FORM init_docu_control. IF gr_docu IS INITIAL. CREATE OBJECT gr_docu EXPORTING parent = NEW cl_gui_custom_container( container_name = 'DOCU' ). gr_docu->set_textstream( gs_settings_text-docu ). ENDIF. ENDFORM. FORM apply_text_attributes. IF gr_text IS BOUND. gr_text->set_readonly_mode( zguidrasil_setting_textp-readonly ). gr_text->set_toolbar_mode( zguidrasil_setting_textp-toolbar ). gr_text->set_statusbar_mode( zguidrasil_setting_textp-statusbar ). gr_text->set_wordwrap_behavior( wordwrap_mode = zguidrasil_setting_textp-wordwrap ). ENDIF. ENDFORM.
[ 9, 10097, 23031, 9, 198, 8162, 1268, 5097, 52, 7206, 406, 57, 38, 27586, 49, 1921, 4146, 62, 10943, 5446, 3535, 62, 51, 6369, 10234, 486, 13, 198, 9, 10097, 23031, 9, 198, 21389, 2315, 62, 5239, 62, 13716, 764, 628, 220, 16876, 1036, 62, 34924, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 1036, 62, 34924, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 9290, 62, 3672, 796, 705, 4093, 62, 32541, 4458, 198, 220, 23578, 5064, 13, 628, 220, 16876, 1036, 62, 5239, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 1036, 62, 5239, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2560, 796, 1036, 62, 34924, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 796, 705, 47, 3185, 8577, 4458, 198, 220, 220, 220, 19878, 21389, 4174, 62, 5239, 62, 1078, 7657, 13, 198, 220, 220, 220, 1036, 62, 5239, 3784, 2617, 62, 5239, 5532, 7, 930, 90, 308, 82, 62, 33692, 62, 5239, 12, 5239, 1782, 91, 6739, 628, 220, 23578, 5064, 13, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 2315, 62, 15390, 84, 62, 13716, 13, 628, 220, 16876, 1036, 62, 15390, 84, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 1036, 62, 15390, 84, 7788, 15490, 2751, 2560, 796, 12682, 537, 62, 48317, 62, 23144, 62, 34924, 7, 9290, 62, 3672, 796, 705, 38715, 52, 6, 6739, 198, 220, 220, 220, 1036, 62, 15390, 84, 3784, 2617, 62, 5239, 5532, 7, 308, 82, 62, 33692, 62, 5239, 12, 15390, 84, 6739, 198, 220, 23578, 5064, 13, 628, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 4174, 62, 5239, 62, 1078, 7657, 13, 628, 220, 16876, 1036, 62, 5239, 3180, 347, 15919, 13, 198, 220, 220, 220, 1036, 62, 5239, 3784, 2617, 62, 961, 8807, 62, 14171, 7, 1976, 5162, 312, 8847, 346, 62, 33990, 62, 5239, 79, 12, 961, 8807, 6739, 198, 220, 220, 220, 1036, 62, 5239, 3784, 2617, 62, 25981, 5657, 62, 14171, 7, 1976, 5162, 312, 8847, 346, 62, 33990, 62, 5239, 79, 12, 25981, 5657, 6739, 198, 220, 220, 220, 1036, 62, 5239, 3784, 2617, 62, 13376, 5657, 62, 14171, 7, 1976, 5162, 312, 8847, 346, 62, 33990, 62, 5239, 79, 12, 13376, 5657, 6739, 198, 220, 220, 220, 1036, 62, 5239, 3784, 2617, 62, 4775, 37150, 62, 46571, 7, 1573, 37150, 62, 14171, 796, 1976, 5162, 312, 8847, 346, 62, 33990, 62, 5239, 79, 12, 4775, 37150, 6739, 198, 220, 23578, 5064, 13, 198, 198, 1677, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 if_sxml_open_element PUBLIC. INTERFACES if_sxml_node. DATA: BEGIN OF qname, name TYPE string, END OF qname. METHODS get_attributes RETURNING VALUE(attr) TYPE if_sxml_attribute=>attributes. ENDINTERFACE.
[ 41358, 49836, 611, 62, 82, 19875, 62, 9654, 62, 30854, 44731, 13, 198, 220, 23255, 37, 2246, 1546, 611, 62, 82, 19875, 62, 17440, 13, 628, 220, 42865, 25, 347, 43312, 3963, 10662, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 10662, 3672, 13, 628, 220, 337, 36252, 50, 651, 62, 1078, 7657, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 35226, 8, 41876, 611, 62, 82, 19875, 62, 42348, 14804, 1078, 7657, 13, 198, 10619, 41358, 49836, 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 ]
"! <p> "! Validates a Google certificate in the Personal Security Environment (PSE). "! The validation only comprises measures to test the availability of the "! certificate in the PSE and ensure that it is still valid, i.e. has <em>not "! expired</em> yet. It does <em>not</em> ensure the trust and acceptance by a "! Google Server. "! </p> "! "! <p> "! Author: Sebastian Machhausen, SAP SE <br/> "! Version: 0.0.4<br/> "! </p> "! "! See https://developers.google.com/drive/ class zcl_googlepoc_cert_validation definition public create public final. public section. "! Constructs a new Google certificate validation instance. methods constructor. "! Determines if a Google certificate is available in the PSE. "! "! @parameter rv_is_available | abap_true if a Google certificate is "! available; abap_false otherwise. methods is_available returning value(rv_is_available) type abap_bool. "! Determines if a Google certificate in the PSE is valid, i.e. has "! <em>not expired</em>. "! "! @parameter rv_is_valid | abap_true if a Google certificate is valid; "! abap_false otherwise. methods is_valid returning value(rv_is_valid) type abap_bool. private section. "! The PSE Application to use for validation. constants c_pse_application type ssfappl value `ANONYM`. "#EC NOTEXT "! The PSE Context to use for validation. constants c_pse_context type psecontext value `SSLC`. "#EC NOTEXT "! The common name (cn) of the Google certificate to address. constants c_google_cn type string value `CN=Google Internet Authority`. "#EC NOTEXT "! The stored certificate. data mo_certificate type ref to cl_abap_x509_certificate. "! Gets the certificate. "! "! @parameter ro_certificate | The retrieved certificate. methods get_certificate returning value(ro_certificate) type ref to cl_abap_x509_certificate. "! Determines if the Personal Security Environment (PSE) is available. "! "! @parameter rv_is_available | abap_true if the PSE is available; "! abap_false otherwise. methods is_pse_available returning value(rv_is_available) type abap_bool. endclass. class zcl_googlepoc_cert_validation implementation. method constructor. if me->is_pse_available( ) = abap_true. me->mo_certificate = me->get_certificate( ). endif. endmethod. method get_certificate. try. data(lo_pse) = new cl_abap_pse( iv_context = c_pse_context iv_application = c_pse_application ). lo_pse->get_trusted_certificates( importing et_certificate_list = data(lt_certificates_binaries) et_certificate_list_typed = data(lt_certificates) ). loop at lt_certificates assigning field-symbol(<ls_certificate>) where subject cp |*{ c_google_cn }*|. "#EC NOTEXT data(lv_certificate_index) = sy-tabix. exit. endloop. if lv_certificate_index is not initial. read table lt_certificates_binaries index lv_certificate_index assigning field-symbol(<lv_certificate_binary>). if sy-subrc = 0 and <lv_certificate_binary> is assigned. try. ro_certificate = cl_abap_x509_certificate=>get_instance( <lv_certificate_binary> ). catch cx_abap_x509_certificate ##NO_HANDLER. endtry. endif. endif. catch cx_abap_pse ##NO_HANDLER. endtry. endmethod. method is_available. rv_is_available = cond abap_bool( when me->mo_certificate is bound then abap_true else abap_false ). endmethod. method is_pse_available. rv_is_available = abap_false. try. cl_abap_pse=>get_pse_info( exporting iv_context = c_pse_context iv_application = c_pse_application importing ev_profile = data(lv_profile) ). rv_is_available = abap_true. catch cx_abap_pse ##NO_HANDLER. endtry. endmethod. method is_valid. rv_is_valid = abap_false. if me->mo_certificate is bound. try. me->mo_certificate->get_valid_to( importing ef_date = data(lv_valid_to_date) ef_time = data(lv_valid_to_time) ). if sy-datum <= lv_valid_to_date. rv_is_valid = abap_true. elseif sy-datum = lv_valid_to_date and sy-uzeit <= lv_valid_to_time. rv_is_valid = abap_true. endif. catch cx_abap_x509_certificate ##NO_HANDLER. endtry. endif. endmethod. endclass.
[ 40484, 1279, 79, 29, 198, 40484, 3254, 37051, 257, 3012, 10703, 287, 262, 15644, 4765, 9344, 357, 3705, 36, 737, 198, 40484, 383, 21201, 691, 28800, 5260, 284, 1332, 262, 11500, 286, 262, 198, 40484, 10703, 287, 262, 350, 5188, 290, 4155, 326, 340, 318, 991, 4938, 11, 1312, 13, 68, 13, 468, 1279, 368, 29, 1662, 198, 40484, 21350, 3556, 368, 29, 1865, 13, 632, 857, 1279, 368, 29, 1662, 3556, 368, 29, 4155, 262, 3774, 290, 13427, 416, 257, 198, 40484, 3012, 9652, 13, 198, 40484, 7359, 79, 29, 198, 40484, 198, 40484, 1279, 79, 29, 198, 40484, 6434, 25, 220, 26190, 7080, 30404, 268, 11, 48323, 7946, 1279, 1671, 15913, 198, 40484, 10628, 25, 657, 13, 15, 13, 19, 27, 1671, 15913, 198, 40484, 7359, 79, 29, 198, 40484, 198, 40484, 4091, 3740, 1378, 16244, 364, 13, 13297, 13, 785, 14, 19472, 14, 198, 4871, 1976, 565, 62, 13297, 79, 420, 62, 22583, 62, 12102, 341, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 198, 220, 2457, 13, 628, 198, 220, 1171, 2665, 13, 628, 220, 220, 220, 366, 0, 28407, 82, 257, 649, 3012, 10703, 21201, 4554, 13, 198, 220, 220, 220, 5050, 23772, 13, 628, 220, 220, 220, 366, 0, 360, 13221, 274, 611, 257, 3012, 10703, 318, 1695, 287, 262, 350, 5188, 13, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 271, 62, 15182, 930, 450, 499, 62, 7942, 611, 257, 3012, 10703, 318, 198, 220, 220, 220, 366, 0, 1695, 26, 450, 499, 62, 9562, 4306, 13, 198, 220, 220, 220, 5050, 318, 62, 15182, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 81, 85, 62, 271, 62, 15182, 8, 2099, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 366, 0, 360, 13221, 274, 611, 257, 3012, 10703, 287, 262, 350, 5188, 318, 4938, 11, 1312, 13, 68, 13, 468, 198, 220, 220, 220, 366, 0, 1279, 368, 29, 1662, 21350, 3556, 368, 28401, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 271, 62, 12102, 930, 450, 499, 62, 7942, 611, 257, 3012, 10703, 318, 4938, 26, 198, 220, 220, 220, 366, 0, 450, 499, 62, 9562, 4306, 13, 198, 220, 220, 220, 5050, 318, 62, 12102, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 81, 85, 62, 271, 62, 12102, 8, 2099, 450, 499, 62, 30388, 13, 628, 198, 220, 2839, 2665, 13, 628, 220, 220, 220, 366, 0, 383, 350, 5188, 15678, 284, 779, 329, 21201, 13, 198, 220, 220, 220, 38491, 269, 62, 7752, 62, 31438, 2099, 264, 28202, 1324, 75, 1988, 4600, 1565, 40508, 44, 44646, 25113, 2943, 5626, 13918, 628, 220, 220, 220, 366, 0, 383, 350, 5188, 30532, 284, 779, 329, 21201, 13, 198, 220, 220, 220, 38491, 269, 62, 7752, 62, 22866, 2099, 15838, 22866, 1988, 4600, 5432, 5639, 44646, 220, 220, 25113, 2943, 5626, 13918, 628, 220, 220, 220, 366, 0, 383, 2219, 1438, 357, 31522, 8, 286, 262, 3012, 10703, 284, 2209, 13, 198, 220, 220, 220, 38491, 269, 62, 13297, 62, 31522, 2099, 4731, 1988, 4600, 44175, 28, 11708, 4455, 11416, 44646, 25113, 2943, 5626, 13918, 628, 220, 220, 220, 366, 0, 383, 8574, 10703, 13, 198, 220, 220, 220, 1366, 6941, 62, 22583, 22460, 2099, 1006, 284, 537, 62, 397, 499, 62, 87, 29022, 62, 22583, 22460, 13, 628, 220, 220, 220, 366, 0, 29620, 262, 10703, 13, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 686, 62, 22583, 22460, 930, 383, 29517, 10703, 13, 198, 220, 220, 220, 5050, 651, 62, 22583, 22460, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 305, 62, 22583, 22460, 8, 2099, 1006, 284, 537, 62, 397, 499, 62, 87, 29022, 62, 22583, 22460, 13, 628, 220, 220, 220, 366, 0, 360, 13221, 274, 611, 262, 15644, 4765, 9344, 357, 3705, 36, 8, 318, 1695, 13, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 271, 62, 15182, 930, 450, 499, 62, 7942, 611, 262, 350, 5188, 318, 1695, 26, 198, 220, 220, 220, 366, 0, 450, 499, 62, 9562, 4306, 13, 198, 220, 220, 220, 5050, 318, 62, 7752, 62, 15182, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 81, 85, 62, 271, 62, 15182, 8, 2099, 450, 499, 62, 30388, 13, 628, 198, 437, 4871, 13, 628, 198, 4871, 1976, 565, 62, 13297, 79, 420, 62, 22583, 62, 12102, 341, 7822, 13, 628, 198, 220, 2446, 23772, 13, 198, 220, 220, 220, 611, 502, 3784, 271, 62, 7752, 62, 15182, 7, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 502, 3784, 5908, 62, 22583, 22460, 796, 502, 3784, 1136, 62, 22583, 22460, 7, 6739, 198, 220, 220, 220, 45762, 13, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 651, 62, 22583, 22460, 13, 198, 220, 220, 220, 1949, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 7, 5439, 62, 7752, 8, 796, 649, 537, 62, 397, 499, 62, 7752, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 22866, 220, 220, 220, 220, 796, 269, 62, 7752, 62, 22866, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 31438, 796, 269, 62, 7752, 62, 31438, 198, 220, 220, 220, 220, 220, 220, 220, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 7752, 3784, 1136, 62, 2213, 8459, 62, 22583, 811, 689, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 22583, 22460, 62, 4868, 220, 220, 220, 220, 220, 220, 796, 1366, 7, 2528, 62, 22583, 811, 689, 62, 8800, 3166, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 22583, 22460, 62, 4868 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_aoc_check_63 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super_root CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS run REDEFINITION . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_63 IMPLEMENTATION. METHOD constructor. super->constructor( ). version = '001'. position = '063'. has_documentation = abap_true. has_attributes = abap_true. attributes_ok = abap_true. add_obj_type( 'CLAS' ). add_obj_type( 'INTF' ). insert_scimessage( iv_code = '003' iv_text = '&1'(m01) ). ENDMETHOD. METHOD run. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lo_instance TYPE REF TO object, lr_data TYPE REF TO data. FIELD-SYMBOLS: <lt_log> TYPE STANDARD TABLE, <lv_type> TYPE string, <lv_text> TYPE string, <lg_log> TYPE any. IF object_type <> 'CLAS' AND object_type <> 'INTF'. RETURN. ENDIF. TRY. CREATE DATA lr_data TYPE ('CL_SEDI_ABAP_DOC_LOGGER=>TY_LOG_TAB'). ASSIGN lr_data->* TO <lt_log>. CATCH cx_root ##CATCH_ALL. RETURN. ENDTRY. CALL METHOD ('CL_SEDI_ABAP_DOC_READ_ELEMINFO')=>('CREATE_INSTANCE') RECEIVING result = lo_instance. CASE object_type. WHEN 'INTF'. CALL METHOD lo_instance->('READ_EI_GLOBAL_INTERFACE') EXPORTING interface_name = object_name IMPORTING read_log = <lt_log>. WHEN 'CLAS'. CALL METHOD lo_instance->('READ_EI_GLOBAL_CLASS') EXPORTING class_name = object_name IMPORTING read_log = <lt_log>. WHEN OTHERS. ASSERT 0 = 1. ENDCASE. LOOP AT <lt_log> ASSIGNING <lg_log>. ASSIGN COMPONENT 'TYPE' OF STRUCTURE <lg_log> TO <lv_type>. ASSERT sy-subrc = 0. IF <lv_type> = 'E'. ASSIGN COMPONENT 'TEXT' OF STRUCTURE <lg_log> TO <lv_text>. ASSERT sy-subrc = 0. IF <lv_text> CP 'active version cannot be read*'. CONTINUE. ENDIF. inform( p_sub_obj_type = object_type p_sub_obj_name = object_name p_kind = mv_errty p_test = myname p_code = '001' p_param_1 = <lv_text> ). ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 5066, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 62, 15763, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 1057, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 5066, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 2196, 220, 220, 220, 220, 220, 220, 220, 796, 705, 8298, 4458, 198, 220, 220, 220, 2292, 220, 220, 220, 220, 220, 220, 796, 705, 3312, 18, 4458, 628, 220, 220, 220, 468, 62, 22897, 341, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 468, 62, 1078, 7657, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 12608, 62, 482, 220, 796, 450, 499, 62, 7942, 13, 628, 220, 220, 220, 751, 62, 26801, 62, 4906, 7, 705, 5097, 1921, 6, 6739, 198, 220, 220, 220, 751, 62, 26801, 62, 4906, 7, 705, 1268, 10234, 6, 6739, 628, 220, 220, 220, 7550, 62, 1416, 320, 7589, 7, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8189, 796, 705, 11245, 6, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 5239, 796, 705, 5, 16, 6, 7, 76, 486, 8, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1057, 13, 198, 198, 9, 450, 499, 11505, 7376, 4657, 198, 9, 3740, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 397, 499, 11505, 7376, 4657, 198, 9, 17168, 13789, 628, 220, 220, 220, 42865, 25, 2376, 62, 39098, 41876, 4526, 37, 5390, 2134, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 81, 62, 7890, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 2528, 62, 6404, 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, 6780, 62, 4906, 29, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 5239, 29, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 75, 70, 62, 6404, 29, 220, 41876, 597, 13, 628, 198, 220, 220, 220, 16876, 2134, 62, 4906, 1279, 29, 705, 5097, 1921, 6, 5357, 2134, 62, 4906, 1279, 29, 705, 1268, 10234, 4458, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 42865, 300, 81, 62, 7890, 41876, 19203, 5097, 62, 50, 1961, 40, 62, 6242, 2969, 62, 38715, 62, 25294, 30373, 14804, 9936, 62, 25294, 62, 5603, 33, 27691, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 300, 81, 62, 7890, 3784, 9, 5390, 1279, 2528, 62, 6404, 28401, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 15763, 22492, 34, 11417, 62, 7036, 13, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 42815, 337, 36252, 19203, 5097, 62, 50, 1961, 40, 62, 6242, 2969, 62, 38715, 62, 15675, 62, 36, 2538, 44, 10778, 11537, 14804, 10786, 43387, 6158, 62, 38604, 19240, 11537, 198, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 2376, 62, 39098, 13, 628, 220, 220, 220, 42001, 2134, 62, 4906, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 1268, 10234, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 2376, 62, 39098, 3784, 10786, 15675, 62, 36, 40, 62, 8763, 9864, 1847, 62, 41358, 49836, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7071, 62, 3672, 796, 2134, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1100, 62, 6404, 220, 220, 220, 220, 220, 220, 796, 1279, 2528, 62, 6404, 28401, 198, 220, 220, 220, 220, 220, 42099, 705, 5097, 1921, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 2376, 62, 39098, 3784, 10786, 15675, 62, 36, 40, 62, 8763, 9864, 1847, 62, 31631, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 3672, 796, 2134, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1100, 62, 6404, 220, 220, 796, 1279, 2528, 62, 6404, 28401, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 17395, 657, 796, 352, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 628, 220, 220, 220, 17579, 3185, 5161, 1279, 2528, 62, 6404, 29, 24994, 3528, 15871, 1279, 75, 70, 62, 6404, 28401, 198, 220, 220, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 705, 25216, 6, 3963, 19269, 18415, 11335, 1279, 75, 70, 62, 6404, 29, 5390, 1279, 6780, 62, 4906, 28401, 198, 220, 220, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 16876, 1279, 6780, 62, 4906, 29, 796, 705, 36, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 705, 32541, 6, 3963, 19269, 18415, 11335 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
"! <p class="shorttext synchronized" lang="en">Abstract filter character reader (delegation)</p> CLASS zcl_io_filter_c_reader DEFINITION PUBLIC ABSTRACT CREATE PUBLIC GLOBAL FRIENDS zcl_io_c_reader . PUBLIC SECTION. INTERFACES zif_io_c_reader. METHODS constructor IMPORTING reader TYPE REF TO zif_io_c_reader. ALIASES close FOR zif_io_close_resource~close . ALIASES data_available FOR zif_io_reader~data_available . ALIASES delete_mark FOR zif_io_reader~delete_mark . ALIASES is_closed FOR zif_io_close_resource~is_closed . ALIASES is_mark_supported FOR zif_io_reader~is_mark_supported . ALIASES is_reset_supported FOR zif_io_reader~is_reset_supported . ALIASES is_x_reader FOR zif_io_reader~is_x_reader . ALIASES read FOR zif_io_c_reader~read . ALIASES reset FOR zif_io_reader~reset . ALIASES reset_to_mark FOR zif_io_reader~reset_to_mark . ALIASES set_mark FOR zif_io_reader~set_mark . ALIASES skip FOR zif_io_reader~skip . DATA mo_reader TYPE REF TO zif_io_c_reader READ-ONLY. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_io_filter_c_reader IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_reader = reader. ENDMETHOD. METHOD zif_io_close_resource~close. mo_reader->close( ). ENDMETHOD. METHOD zif_io_reader~data_available. available = mo_reader->data_available( ). ENDMETHOD. METHOD zif_io_reader~delete_mark. mo_reader->delete_mark( ). ENDMETHOD. METHOD zif_io_close_resource~is_closed. closed = mo_reader->is_closed( ). ENDMETHOD. METHOD zif_io_reader~is_mark_supported. res = mo_reader->is_mark_supported( ). ENDMETHOD. METHOD zif_io_reader~is_reset_supported. result = mo_reader->is_reset_supported( ). ENDMETHOD. METHOD zif_io_reader~is_x_reader. result = mo_reader->is_x_reader( ). ENDMETHOD. METHOD zif_io_reader~read. read_data = mo_reader->read( length ). ENDMETHOD. METHOD zif_io_reader~reset. mo_reader->reset( ). ENDMETHOD. METHOD zif_io_reader~reset_to_mark. mo_reader->reset_to_mark( ). ENDMETHOD. METHOD zif_io_reader~set_mark. mo_reader->set_mark( ). ENDMETHOD. METHOD zif_io_reader~skip. mo_reader->skip( length ). ENDMETHOD. METHOD zif_io_reader~is_auto_close_enabled. result = mo_reader->zif_io_reader~is_auto_close_enabled( ). ENDMETHOD. METHOD zif_io_c_reader~read. result = mo_reader->read( length ). ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 23839, 8106, 2095, 9173, 357, 2934, 1455, 341, 36475, 79, 29, 198, 31631, 1976, 565, 62, 952, 62, 24455, 62, 66, 62, 46862, 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, 952, 62, 66, 62, 46862, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 952, 62, 66, 62, 46862, 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, 9173, 41876, 4526, 37, 5390, 1976, 361, 62, 952, 62, 66, 62, 46862, 13, 628, 220, 220, 220, 8355, 43429, 1546, 1969, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 19836, 62, 31092, 93, 19836, 764, 198, 220, 220, 220, 8355, 43429, 1546, 1366, 62, 15182, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 7890, 62, 15182, 764, 198, 220, 220, 220, 8355, 43429, 1546, 12233, 62, 4102, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 33678, 62, 4102, 764, 198, 220, 220, 220, 8355, 43429, 1546, 318, 62, 20225, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 19836, 62, 31092, 93, 271, 62, 20225, 764, 198, 220, 220, 220, 8355, 43429, 1546, 318, 62, 4102, 62, 15999, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 271, 62, 4102, 62, 15999, 764, 198, 220, 220, 220, 8355, 43429, 1546, 318, 62, 42503, 62, 15999, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 271, 62, 42503, 62, 15999, 764, 198, 220, 220, 220, 8355, 43429, 1546, 318, 62, 87, 62, 46862, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 271, 62, 87, 62, 46862, 764, 198, 220, 220, 220, 8355, 43429, 1546, 1100, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 66, 62, 46862, 93, 961, 764, 198, 220, 220, 220, 8355, 43429, 1546, 13259, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 42503, 764, 198, 220, 220, 220, 8355, 43429, 1546, 13259, 62, 1462, 62, 4102, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 42503, 62, 1462, 62, 4102, 764, 198, 220, 220, 220, 8355, 43429, 1546, 900, 62, 4102, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 2617, 62, 4102, 764, 198, 220, 220, 220, 8355, 43429, 1546, 14267, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 952, 62, 46862, 93, 48267, 764, 628, 220, 220, 220, 42865, 6941, 62, 46862, 41876, 4526, 37, 5390, 1976, 361, 62, 952, 62, 66, 62, 46862, 20832, 12, 1340, 11319, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 952, 62, 24455, 62, 66, 62, 46862, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 6941, 62, 46862, 796, 9173, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 952, 62, 19836, 62, 31092, 93, 19836, 13, 198, 220, 220, 220, 6941, 62, 46862, 3784, 19836, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 7890, 62, 15182, 13, 198, 220, 220, 220, 1695, 796, 6941, 62, 46862, 3784, 7890, 62, 15182, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 33678, 62, 4102, 13, 198, 220, 220, 220, 6941, 62, 46862, 3784, 33678, 62, 4102, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 19836, 62, 31092, 93, 271, 62, 20225, 13, 198, 220, 220, 220, 4838, 796, 6941, 62, 46862, 3784, 271, 62, 20225, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 271, 62, 4102, 62, 15999, 13, 198, 220, 220, 220, 581, 796, 6941, 62, 46862, 3784, 271, 62, 4102, 62, 15999, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 271, 62, 42503, 62, 15999, 13, 198, 220, 220, 220, 1255, 796, 6941, 62, 46862, 3784, 271, 62, 42503, 62, 15999, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 271, 62, 87, 62, 46862, 13, 198, 220, 220, 220, 1255, 796, 6941, 62, 46862, 3784, 271, 62, 87, 62, 46862, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 961, 13, 198, 220, 220, 220, 1100, 62, 7890, 796, 6941, 62, 46862, 3784, 961, 7, 4129, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 42503, 13, 198, 220, 220, 220, 6941, 62, 46862, 3784, 42503, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 42503, 62, 1462, 62, 4102, 13, 198, 220, 220, 220, 6941, 62, 46862, 3784, 42503, 62, 1462, 62, 4102, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 2617, 62, 4102, 13, 198, 220, 220, 220, 6941, 62, 46862, 3784, 2617, 62, 4102, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 48267, 13, 198, 220, 220, 220, 6941, 62, 46862, 3784, 48267, 7, 4129, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 952, 62, 46862, 93, 271, 62, 23736, 62, 19836, 62, 25616, 13, 198, 220, 220, 220, 1255, 796, 6941, 62, 46862, 3784, 89, 361, 62, 952, 62, 46862, 93, 271, 62, 23736 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_hello_world_example DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_oo_adt_classrun . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_hello_world_example IMPLEMENTATION. METHOD if_oo_adt_classrun~main. out->write( 'Hello, World!' ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 31373, 62, 6894, 62, 20688, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 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, 31373, 62, 6894, 62, 20688, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 93, 12417, 13, 198, 220, 220, 220, 503, 3784, 13564, 7, 705, 15496, 11, 2159, 13679, 6739, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*"* use this source file for your ABAP unit test classes CLASS ltcl_apack_manifest_reader DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS: setup RAISING cx_static_check, manifest_descriptor FOR TESTING RAISING cx_static_check, verify_own_descriptor IMPORTING is_manifest_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor. DATA: mo_manifest_reader TYPE REF TO zcl_abapgit_apack_reader. ENDCLASS. CLASS ltcl_apack_manifest_reader IMPLEMENTATION. METHOD manifest_descriptor. verify_own_descriptor( is_manifest_descriptor = mo_manifest_reader->get_manifest_descriptor( ) ). ENDMETHOD. METHOD setup. DATA: ls_apack_manifest_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor. ls_apack_manifest_descriptor-group_id = 'github.com/larshp'. ls_apack_manifest_descriptor-artifact_id = 'abapGit'. ls_apack_manifest_descriptor-version = '1.42'. ls_apack_manifest_descriptor-git_url = 'https://github.com/larshp/abapGit.git'. me->mo_manifest_reader = zcl_abapgit_apack_reader=>create_instance( '$TMP' ). me->mo_manifest_reader->set_manifest_descriptor( ls_apack_manifest_descriptor ). ENDMETHOD. METHOD verify_own_descriptor. cl_abap_unit_assert=>assert_not_initial( is_manifest_descriptor ). cl_abap_unit_assert=>assert_equals( exp = 'github.com/larshp' act = is_manifest_descriptor-group_id ). cl_abap_unit_assert=>assert_equals( exp = 'abapGit' act = is_manifest_descriptor-artifact_id ). cl_abap_unit_assert=>assert_equals( exp = '1.42' act = is_manifest_descriptor-version ). " Repository type is added automatically by serializer later cl_abap_unit_assert=>assert_initial( is_manifest_descriptor-repository_type ). cl_abap_unit_assert=>assert_equals( exp = 'https://github.com/larshp/abapGit.git' act = is_manifest_descriptor-git_url ). cl_abap_unit_assert=>assert_initial( is_manifest_descriptor-dependencies ). ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 31631, 300, 83, 565, 62, 499, 441, 62, 805, 8409, 62, 46862, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 10561, 62, 20147, 1968, 273, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 11767, 62, 593, 62, 20147, 1968, 273, 30023, 9863, 2751, 318, 62, 805, 8409, 62, 20147, 1968, 273, 41876, 1976, 361, 62, 397, 499, 18300, 62, 499, 441, 62, 4299, 50101, 14804, 774, 62, 20147, 1968, 273, 13, 628, 220, 220, 220, 42865, 25, 6941, 62, 805, 8409, 62, 46862, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 46862, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 499, 441, 62, 805, 8409, 62, 46862, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 10561, 62, 20147, 1968, 273, 13, 198, 220, 220, 220, 11767, 62, 593, 62, 20147, 1968, 273, 7, 318, 62, 805, 8409, 62, 20147, 1968, 273, 796, 6941, 62, 805, 8409, 62, 46862, 3784, 1136, 62, 805, 8409, 62, 20147, 1968, 273, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 42865, 25, 43979, 62, 499, 441, 62, 805, 8409, 62, 20147, 1968, 273, 41876, 1976, 361, 62, 397, 499, 18300, 62, 499, 441, 62, 4299, 50101, 14804, 774, 62, 20147, 1968, 273, 13, 628, 220, 220, 220, 43979, 62, 499, 441, 62, 805, 8409, 62, 20147, 1968, 273, 12, 8094, 62, 312, 796, 705, 12567, 13, 785, 14, 75, 5406, 79, 4458, 198, 220, 220, 220, 43979, 62, 499, 441, 62, 805, 8409, 62, 20147, 1968, 273, 12, 433, 29660, 62, 312, 796, 705, 397, 499, 38, 270, 4458, 198, 220, 220, 220, 43979, 62, 499, 441, 62, 805, 8409, 62, 20147, 1968, 273, 12, 9641, 796, 705, 16, 13, 3682, 4458, 198, 220, 220, 220, 43979, 62, 499, 441, 62, 805, 8409, 62, 20147, 1968, 273, 12, 18300, 62, 6371, 796, 705, 5450, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 397, 499, 38, 270, 13, 18300, 4458, 628, 220, 220, 220, 502, 3784, 5908, 62, 805, 8409, 62, 46862, 796, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 46862, 14804, 17953, 62, 39098, 7, 705, 3, 51, 7378, 6, 6739, 198, 220, 220, 220, 502, 3784, 5908, 62, 805, 8409, 62, 46862, 3784, 2617, 62, 805, 8409, 62, 20147, 1968, 273, 7, 43979, 62, 499, 441, 62, 805, 8409, 62, 20147, 1968, 273, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 11767, 62, 593, 62, 20147, 1968, 273, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 318, 62, 805, 8409, 62, 20147, 1968, 273, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 705, 12567, 13, 785, 14, 75, 5406, 79, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 719, 796, 318, 62, 805, 8409, 62, 20147, 1968, 273, 12, 8094, 62, 312, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 705, 397, 499, 38, 270, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 719, 796, 318, 62, 805, 8409, 62, 20147, 1968, 273, 12, 433, 29660, 62, 312, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 705, 16, 13, 3682, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 719, 796, 318, 62, 805, 8409, 62, 20147, 1968, 273, 12, 9641, 6739, 198, 220, 220, 220, 366, 1432, 13264, 2099, 318, 2087, 6338, 416, 11389, 7509, 1568, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 36733, 7, 318, 62, 805, 8409, 62, 20147, 1968, 273, 12, 260, 1930, 37765, 62, 4906, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 1033, 796, 705, 5450, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 397, 499, 38, 270, 13, 18300, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 719, 796, 318, 62, 805, 8409, 62, 20147, 1968, 273, 12, 18300, 62, 6371, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 36733, 7, 318, 62, 805, 8409, 62, 20147, 1968, 273, 12, 45841, 3976, 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,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<p class="shorttext synchronized" lang="en">English</p> "! CLASS zcl_csr_8859_1_en DEFINITION PUBLIC INHERITING FROM zcl_csr_8859_1 CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS get_language REDEFINITION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_csr_8859_1_en IMPLEMENTATION. METHOD constructor. super->constructor( ). CONCATENATE '20612020616E20626520636F20666F20686120686520696E206D61206F6620707220726520736120737420746820746F' '207768616964616C20616E20616E64617320617420617465617469642061642074652061652073652074656420656E74' '657220657320666F72686174686520686572696420696E20696E67696F6E6973206E20616E20746E64206E67206E7420' '6F66206F6E206F722072652072732073206173207473616973742074207474657274686174686574696F746F20747320' INTO ngrams. ENDMETHOD. METHOD get_language. language = 'en'. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15823, 3556, 79, 29, 198, 40484, 198, 31631, 1976, 565, 62, 6359, 81, 62, 3459, 3270, 62, 16, 62, 268, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 6359, 81, 62, 3459, 3270, 62, 16, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 16129, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 6359, 81, 62, 3459, 3270, 62, 16, 62, 268, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 39962, 1404, 1677, 6158, 198, 220, 220, 220, 705, 22136, 10232, 22136, 1433, 36, 22136, 22980, 22136, 2623, 37, 1238, 27310, 37, 1238, 33808, 10232, 3104, 2996, 1238, 38205, 36, 22136, 35, 43610, 3312, 37, 2791, 1238, 2154, 4761, 22745, 22980, 22745, 2623, 1065, 2998, 2718, 27211, 4524, 3104, 22745, 3510, 37, 6, 198, 220, 220, 220, 705, 1238, 3324, 33808, 22172, 27720, 1433, 34, 22136, 1433, 36, 22136, 1433, 36, 27720, 1558, 19504, 21, 22985, 22136, 22985, 37466, 22985, 3388, 2414, 22136, 23237, 1238, 4524, 2996, 22136, 20986, 22745, 24760, 1238, 4524, 2996, 2414, 1238, 37466, 36, 4524, 6, 198, 220, 220, 220, 705, 2996, 4761, 1238, 2996, 4790, 1238, 27310, 37, 22, 2075, 4521, 22985, 3104, 2996, 1238, 3104, 37680, 26276, 2414, 1238, 38205, 36, 1238, 38205, 36, 3134, 38205, 37, 21, 36, 3388, 4790, 22136, 36, 22136, 1433, 36, 22745, 3510, 36, 2414, 22136, 36, 3134, 22136, 36, 4524, 1238, 6, 198, 220, 220, 220, 705, 21, 37, 2791, 22136, 37, 21, 36, 22136, 37, 4761, 22745, 22980, 22745, 1983, 19504, 4790, 22136, 1558, 19504, 48882, 2623, 1433, 5607, 2718, 27211, 4524, 22745, 38652, 37680, 28857, 33808, 22985, 3104, 2996, 4524, 38205, 37, 22, 3510, 37, 22745, 2857, 19504, 6, 198, 220, 220, 220, 39319, 299, 4546, 82, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 16129, 13, 628, 220, 220, 220, 3303, 796, 705, 268, 4458, 628, 220, 23578, 49273, 13, 628, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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ID "! @parameter et_messages | Table of occurred messages "! FUNCTION /DMO/FLIGHT_TRAVEL_SET_BOOK_19. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(IV_TRAVEL_ID) TYPE /DMO/TRAVEL19-TRAVEL_ID *" EXPORTING *" REFERENCE(ET_MESSAGES) TYPE /DMO/IF_FLIGHT_LEGACY19=>TT_MESSAGE *"---------------------------------------------------------------------- CLEAR et_messages. /dmo/cl_flight_legacy19=>get_instance( )->set_status_to_booked( EXPORTING iv_travel_id = iv_travel_id IMPORTING et_messages = DATA(lt_messages) ). /dmo/cl_flight_legacy19=>get_instance( )->convert_messages( EXPORTING it_messages = lt_messages IMPORTING et_messages = et_messages ). ENDFUNCTION.
[ 40484, 7824, 329, 25700, 257, 13524, 284, 1279, 368, 29, 2070, 276, 3556, 368, 28401, 198, 40484, 198, 40484, 2488, 17143, 2357, 21628, 62, 35927, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 13524, 4522, 198, 40484, 2488, 17143, 2357, 2123, 62, 37348, 1095, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 8655, 286, 5091, 6218, 198, 40484, 198, 42296, 4177, 2849, 1220, 35, 11770, 14, 3697, 9947, 62, 51, 3861, 18697, 62, 28480, 62, 39453, 62, 1129, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 3824, 62, 51, 3861, 18697, 62, 2389, 8, 41876, 220, 1220, 35, 11770, 14, 51, 3861, 18697, 1129, 12, 51, 3861, 18697, 62, 2389, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2767, 62, 44, 1546, 4090, 48075, 8, 41876, 220, 1220, 35, 11770, 14, 5064, 62, 3697, 9947, 62, 2538, 38, 43300, 1129, 14804, 15751, 62, 44, 1546, 4090, 8264, 198, 9, 1, 10097, 23031, 198, 220, 30301, 1503, 2123, 62, 37348, 1095, 13, 628, 220, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 1129, 14804, 1136, 62, 39098, 7, 1267, 3784, 2617, 62, 13376, 62, 1462, 62, 2070, 276, 7, 7788, 15490, 2751, 21628, 62, 35927, 62, 312, 796, 21628, 62, 35927, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 2123, 62, 37348, 1095, 220, 796, 42865, 7, 2528, 62, 37348, 1095, 8, 6739, 628, 220, 1220, 67, 5908, 14, 565, 62, 22560, 62, 1455, 1590, 1129, 14804, 1136, 62, 39098, 7, 1267, 3784, 1102, 1851, 62, 37348, 1095, 7, 7788, 15490, 2751, 340, 62, 37348, 1095, 220, 796, 300, 83, 62, 37348, 1095, 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, 30023, 9863, 2751, 2123, 62, 37348, 1095, 220, 796, 2123, 62, 37348, 1095, 6739, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_jobd DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. PRIVATE SECTION. TYPES: ty_jd_name TYPE c LENGTH 32. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_JOBD IMPLEMENTATION. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lo_job_definition TYPE REF TO object, lv_name TYPE c LENGTH 32. lv_name = ms_item-obj_name. TRY. CREATE OBJECT lo_job_definition TYPE ('CL_JR_JOB_DEFINITION') EXPORTING im_jd_name = lv_name. CALL METHOD lo_job_definition->('DELETE_JD'). CATCH cx_root. zcx_abapgit_exception=>raise( |Error deleting JOBD| ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lr_job_definition TYPE REF TO data, lo_job_definition TYPE REF TO object, lv_name TYPE ty_jd_name. FIELD-SYMBOLS: <lg_job_definition> TYPE any, <lg_field> TYPE any. lv_name = ms_item-obj_name. TRY. CREATE DATA lr_job_definition TYPE ('CL_JR_JOB_DEFINITION=>TY_JOB_DEFINITION'). ASSIGN lr_job_definition->* TO <lg_job_definition>. ASSERT sy-subrc = 0. io_xml->read( EXPORTING iv_name = 'JOBD' CHANGING cg_data = <lg_job_definition> ). CREATE OBJECT lo_job_definition TYPE ('CL_JR_JOB_DEFINITION') EXPORTING im_jd_name = lv_name. ASSIGN COMPONENT 'JDPACKAGE' OF STRUCTURE <lg_job_definition> TO <lg_field>. <lg_field> = iv_package. CALL METHOD lo_job_definition->('CREATE_JD') EXPORTING im_jd_attributes = <lg_job_definition>. CATCH cx_root. zcx_abapgit_exception=>raise( |Error deserializing JOBD| ). ENDTRY. zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_name TYPE ty_jd_name. lv_name = ms_item-obj_name. TRY. CALL METHOD ('CL_JR_JD_MANAGER')=>('CHECK_JD_EXISTENCE') EXPORTING im_jd_name = lv_name IMPORTING ex_is_existing = rv_bool. CATCH cx_root. zcx_abapgit_exception=>raise( |JOBD not supported| ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lv_obj_name TYPE e071-obj_name. lv_obj_name = ms_item-obj_name. CALL FUNCTION 'TR_OBJECT_JUMP_TO_TOOL' EXPORTING iv_pgmid = 'R3TR' iv_object = ms_item-obj_type iv_obj_name = lv_obj_name iv_action = 'SHOW' EXCEPTIONS jump_not_possible = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from TR_OBJECT_JUMP_TO_TOOL, JOBD| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lr_job_definition TYPE REF TO data, lo_job_definition TYPE REF TO object, lv_name TYPE ty_jd_name. FIELD-SYMBOLS: <lg_job_definition> TYPE any, <lg_field> TYPE any. lv_name = ms_item-obj_name. TRY. CREATE DATA lr_job_definition TYPE ('CL_JR_JOB_DEFINITION=>TY_JOB_DEFINITION'). ASSIGN lr_job_definition->* TO <lg_job_definition>. ASSERT sy-subrc = 0. CREATE OBJECT lo_job_definition TYPE ('CL_JR_JOB_DEFINITION') EXPORTING im_jd_name = lv_name. CALL METHOD lo_job_definition->('GET_JD_ATTRIBUTES') IMPORTING ex_jd_attributes = <lg_job_definition>. ASSIGN COMPONENT 'JDPACKAGE' OF STRUCTURE <lg_job_definition> TO <lg_field>. CLEAR <lg_field>. ASSIGN COMPONENT 'BTCJOB_USER' OF STRUCTURE <lg_job_definition> TO <lg_field>. CLEAR <lg_field>. ASSIGN COMPONENT 'OWNER' OF STRUCTURE <lg_job_definition> TO <lg_field>. CLEAR <lg_field>. ASSIGN COMPONENT 'CREATED_DATE' OF STRUCTURE <lg_job_definition> TO <lg_field>. CLEAR <lg_field>. ASSIGN COMPONENT 'CREATED_TIME' OF STRUCTURE <lg_job_definition> TO <lg_field>. CLEAR <lg_field>. ASSIGN COMPONENT 'CHANGED_DATE' OF STRUCTURE <lg_job_definition> TO <lg_field>. CLEAR <lg_field>. ASSIGN COMPONENT 'CHANGED_TIME' OF STRUCTURE <lg_job_definition> TO <lg_field>. CLEAR <lg_field>. io_xml->add( iv_name = 'JOBD' ig_data = <lg_job_definition> ). CATCH cx_root. zcx_abapgit_exception=>raise( |Error serializing JOBD| ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = abap_false. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 21858, 67, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 73, 67, 62, 3672, 41876, 269, 406, 49494, 3933, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 41, 9864, 35, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5589, 533, 62, 1462, 62, 47960, 62, 9641, 13, 628, 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, 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, 2376, 62, 21858, 62, 46758, 41876, 4526, 37, 5390, 2134, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 406, 49494, 3933, 13, 628, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 21858, 62, 46758, 41876, 19203, 5097, 62, 44817, 62, 41, 9864, 62, 7206, 20032, 17941, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 73, 67, 62, 3672, 796, 300, 85, 62, 3672, 13, 628, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 2376, 62, 21858, 62, 46758, 3784, 10786, 7206, 2538, 9328, 62, 37882, 27691, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 12331, 34817, 449, 9864, 35, 91, 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, 81, 62, 21858, 62, 46758, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 21858, 62, 46758, 41876, 4526, 37, 5390, 2134, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 73, 67, 62, 3672, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 75, 70, 62, 21858, 62, 46758, 29, 41876, 597, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 75, 70, 62, 3245, 29, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 597, 13, 628, 198, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 42865, 300, 81, 62, 21858, 62, 46758, 41876, 19203, 5097, 62, 44817, 62, 41, 9864, 62, 7206, 20032, 17941, 14804, 9936, 62, 41, 9864, 62, 7206, 20032, 17941, 27691, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 300, 81, 62, 21858, 62, 46758, 3784, 9, 5390, 1279, 75, 70, 62, 21858, 62, 46758, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 41, 9864, 35, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 70, 62, 7890, 796, 1279, 75, 70, 62, 21858, 62, 46758, 29, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 21858, 62, 46758, 41876, 19203, 5097, 62, 44817, 62, 41, 9864, 62, 7206, 20032, 17941, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 73, 67, 62, 3672, 796, 300, 85, 62, 3672, 13, 628, 220, 220, 220, 220, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 705, 41, 6322, 8120, 11879, 6, 3963, 19269, 18415, 11335, 1279, 75, 70, 62, 21858, 62, 46758, 29, 5390, 1279, 75, 70, 62, 3245, 28401, 628, 220, 220, 220, 220, 220, 220, 220, 1279, 75, 70, 62, 3245, 29, 796, 21628, 62, 26495, 13, 628, 220, 220, 220, 220, 220, 220, 220, 42815, 337, 36252, 2376, 62, 21858, 62, 46758, 3784, 10786, 43387, 6158, 62, 37882, 11537, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 545, 62, 73, 67, 62, 1078, 7657, 796, 1279, 75, 70, 62, 21858, 62, 46758, 28401, 628, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 12331, 748, 48499, 2890, 449, 9864, 35, 91, 6739, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 220, 220, 1976, 565 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Local class definition - General for Transaction Processing *&---------------------------------------------------------------------* ********************************************************************** ********************************************************************** ********************************************************************** CLASS lcl_tools DEFINITION. PUBLIC SECTION. CLASS-METHODS are_fields_different IMPORTING ir_data1 TYPE REF TO data ir_data2 TYPE REF TO data it_fields TYPE lif_ef_types=>tt_field_name RETURNING VALUE(rv_result) TYPE lif_ef_types=>tv_condition RAISING cx_udm_message. CLASS-METHODS are_structures_different IMPORTING ir_data1 TYPE REF TO data ir_data2 TYPE REF TO data RETURNING VALUE(rv_result) TYPE lif_ef_types=>tv_condition RAISING cx_udm_message. CLASS-METHODS convert_datetime_to_utc IMPORTING iv_datetime TYPE timestamp iv_timezone TYPE timezone RETURNING VALUE(rv_datetime_utc) TYPE char15. CLASS-METHODS convert_to_external_amount IMPORTING iv_currency TYPE waers_curc iv_internal TYPE any RETURNING VALUE(rv_external) TYPE lif_ef_types=>tv_currency_amnt. CLASS-METHODS get_field_of_structure IMPORTING ir_struct_data TYPE REF TO data iv_field_name TYPE clike RETURNING VALUE(rv_value) TYPE char50 RAISING cx_udm_message. CLASS-METHODS get_errors_log IMPORTING io_umd_message TYPE REF TO cx_udm_message iv_appsys TYPE c EXPORTING es_bapiret TYPE bapiret2. CLASS-METHODS get_local_timestamp IMPORTING iv_date TYPE any DEFAULT sy-datum iv_time TYPE any DEFAULT sy-uzeit RETURNING VALUE(rv_timestamp) TYPE /saptrx/event_exp_datetime. CLASS-METHODS get_pretty_value IMPORTING iv_value TYPE any RETURNING VALUE(rv_pretty) TYPE /saptrx/paramval200. CLASS-METHODS get_system_time_zone RETURNING VALUE(rv_tzone) TYPE timezone RAISING cx_udm_message. CLASS-METHODS get_system_date_time RETURNING VALUE(rv_datetime) TYPE string RAISING cx_udm_message. CLASS-METHODS get_valid_datetime IMPORTING iv_timestamp TYPE timestamp RETURNING VALUE(rv_datetime) TYPE char15. CLASS-METHODS is_date IMPORTING iv_value TYPE any RETURNING VALUE(rv_result) TYPE abap_bool. CLASS-METHODS is_number IMPORTING iv_value TYPE any RETURNING VALUE(rv_result) TYPE abap_bool. CLASS-METHODS is_object_changed IMPORTING is_app_object TYPE trxas_appobj_ctab_wa io_ef_parameters TYPE REF TO lif_ef_parameters it_check_tables TYPE lif_ef_types=>tt_strucdatadef OPTIONAL iv_key_field TYPE clike iv_upd_field TYPE clike iv_chk_mastertab TYPE abap_bool DEFAULT abap_false RETURNING VALUE(rv_result) TYPE abap_bool RAISING cx_udm_message. CLASS-METHODS is_table IMPORTING iv_value TYPE any RETURNING VALUE(rv_result) TYPE abap_bool. CLASS-METHODS is_timestamp IMPORTING iv_value TYPE any RETURNING VALUE(rv_result) TYPE abap_bool. CLASS-METHODS log_exception IMPORTING io_udm_message TYPE REF TO cx_udm_message iv_log_name TYPE balnrext OPTIONAL iv_object TYPE balobj_d iv_subobject TYPE balsubobj. CLASS-METHODS throw_exception IMPORTING iv_textid TYPE sotr_conc DEFAULT '' RAISING cx_udm_message. PRIVATE SECTION. CLASS-METHODS is_structure_changed IMPORTING ir_struct TYPE REF TO data iv_upd_field TYPE clike RETURNING VALUE(rv_result) TYPE abap_bool RAISING cx_udm_message. CLASS-METHODS is_table_changed IMPORTING ir_table TYPE REF TO data iv_key_field TYPE clike iv_upd_field TYPE clike iv_key_value TYPE any RETURNING VALUE(rv_result) TYPE abap_bool RAISING cx_udm_message. ENDCLASS. CLASS lcl_tools IMPLEMENTATION. METHOD are_fields_different. FIELD-SYMBOLS: <ls_data1> TYPE any, <ls_data2> TYPE any, <lv_value1> TYPE any, <lv_value2> TYPE any. ASSIGN ir_data1->* TO <ls_data1>. ASSIGN ir_data2->* TO <ls_data2>. rv_result = lif_ef_constants=>cs_condition-false. LOOP AT it_fields ASSIGNING FIELD-SYMBOL(<lv_field>). ASSIGN COMPONENT <lv_field> OF STRUCTURE <ls_data1> TO <lv_value1>. ASSIGN COMPONENT <lv_field> OF STRUCTURE <ls_data2> TO <lv_value2>. IF <lv_value1> IS ASSIGNED AND <lv_value2> IS ASSIGNED. IF <lv_value1> <> <lv_value2>. rv_result = lif_ef_constants=>cs_condition-true. EXIT. ENDIF. UNASSIGN: <lv_value1>, <lv_value2>. ELSE. MESSAGE e001(zpof_gtt) WITH <lv_field> '' INTO DATA(lv_dummy). lcl_tools=>throw_exception( ). ENDIF. ENDLOOP. ENDMETHOD. METHOD are_structures_different. DATA: lt_fields TYPE cl_abap_structdescr=>component_table, lv_dummy TYPE char100. FIELD-SYMBOLS: <ls_data1> TYPE any, <ls_data2> TYPE any, <lv_value1> TYPE any, <lv_value2> TYPE any. ASSIGN ir_data1->* TO <ls_data1>. ASSIGN ir_data2->* TO <ls_data2>. IF <ls_data1> IS ASSIGNED AND <ls_data2> IS ASSIGNED. lt_fields = CAST cl_abap_structdescr( cl_abap_typedescr=>describe_by_data( p_data = <ls_data1> ) )->get_components( ). rv_result = lif_ef_constants=>cs_condition-false. LOOP AT lt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>). ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_data1> TO <lv_value1>. ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_data2> TO <lv_value2>. IF <lv_value1> IS ASSIGNED AND <lv_value2> IS ASSIGNED. IF <lv_value1> <> <lv_value2>. rv_result = lif_ef_constants=>cs_condition-true. EXIT. ENDIF. ELSE. MESSAGE e001(zpof_gtt) WITH <ls_fields>-name '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ENDLOOP. ELSE. MESSAGE e002(zpof_gtt) WITH '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ENDMETHOD. METHOD convert_datetime_to_utc. DATA: lv_datetime_utc TYPE timestamp. CALL FUNCTION '/SAPAPO/TIMESTAMP_ZONE_TO_UTC' EXPORTING iv_timezone = iv_timezone iv_timestamp = iv_datetime IMPORTING ev_timestamp = lv_datetime_utc. rv_datetime_utc = get_valid_datetime( iv_timestamp = lv_datetime_utc ). ENDMETHOD. METHOD convert_to_external_amount. DATA: lv_external TYPE bapicurr_d. CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL' EXPORTING currency = iv_currency amount_internal = iv_internal IMPORTING amount_external = lv_external. rv_external = round( val = lv_external dec = 2 ). ENDMETHOD. METHOD get_field_of_structure. DATA: lv_dummy TYPE char100. FIELD-SYMBOLS: <ls_struct> TYPE any, <lv_value> TYPE any. ASSIGN ir_struct_data->* TO <ls_struct>. IF <ls_struct> IS ASSIGNED. ASSIGN COMPONENT iv_field_name OF STRUCTURE <ls_struct> TO <lv_value>. IF <lv_value> IS ASSIGNED. rv_value = <lv_value>. ELSE. MESSAGE e001(zpof_gtt) WITH iv_field_name '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ELSE. MESSAGE e002(zpof_gtt) WITH '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ENDMETHOD. METHOD get_errors_log. es_bapiret-id = io_umd_message->m_msgid. es_bapiret-number = io_umd_message->m_msgno. es_bapiret-type = io_umd_message->m_msgty. es_bapiret-message_v1 = io_umd_message->m_msgv1. es_bapiret-message_v1 = io_umd_message->m_msgv1. es_bapiret-message_v1 = io_umd_message->m_msgv1. es_bapiret-message_v1 = io_umd_message->m_msgv1. es_bapiret-system = iv_appsys. ENDMETHOD. METHOD get_local_timestamp. rv_timestamp = COND #( WHEN iv_date IS NOT INITIAL THEN |0{ iv_date }{ iv_time }| ). ENDMETHOD. METHOD get_pretty_value. rv_pretty = COND #( WHEN lcl_tools=>is_date( iv_value = iv_value ) = abap_true THEN COND #( WHEN iv_value IS NOT INITIAL THEN iv_value ELSE '' ) WHEN lcl_tools=>is_timestamp( iv_value = iv_value ) = abap_true THEN COND #( WHEN iv_value IS NOT INITIAL THEN get_valid_datetime( iv_timestamp = iv_value ) ELSE '' ) WHEN lcl_tools=>is_number( iv_value = iv_value ) = abap_true THEN |{ iv_value }| ELSE iv_value ). ENDMETHOD. METHOD get_system_time_zone. CALL FUNCTION 'GET_SYSTEM_TIMEZONE' IMPORTING timezone = rv_tzone EXCEPTIONS customizing_missing = 1 OTHERS = 2. IF sy-subrc <> 0. MESSAGE e003(zpof_gtt) INTO DATA(lv_dummy). lcl_tools=>throw_exception( ). ENDIF. ENDMETHOD. METHOD get_system_date_time. rv_datetime = |0{ sy-datum }{ sy-uzeit }|. ENDMETHOD. METHOD get_valid_datetime. rv_datetime = COND #( WHEN iv_timestamp <= 0 THEN '' WHEN iv_timestamp <= 99991231235959 THEN |0{ iv_timestamp }| ELSE iv_timestamp ). ENDMETHOD. METHOD is_date. DATA(lo_type) = cl_abap_typedescr=>describe_by_data( p_data = iv_value ). rv_result = boolc( lo_type->type_kind = cl_abap_typedescr=>typekind_date ). ENDMETHOD. METHOD is_number. DATA(lo_type) = cl_abap_typedescr=>describe_by_data( p_data = iv_value ). rv_result = SWITCH #( lo_type->type_kind WHEN cl_abap_typedescr=>typekind_decfloat OR cl_abap_typedescr=>typekind_decfloat16 OR cl_abap_typedescr=>typekind_decfloat34 OR cl_abap_typedescr=>typekind_float OR cl_abap_typedescr=>typekind_int OR cl_abap_typedescr=>typekind_int1 OR cl_abap_typedescr=>typekind_int2 OR cl_abap_typedescr=>typekind_int8 OR cl_abap_typedescr=>typekind_num OR cl_abap_typedescr=>typekind_numeric OR cl_abap_typedescr=>typekind_packed THEN abap_true ELSE abap_false ). ENDMETHOD. METHOD is_object_changed. DATA: lv_ebeln TYPE ekko-ebeln, lv_dummy TYPE char255. FIELD-SYMBOLS: <ls_maintab> TYPE any, <lv_key_value> TYPE any. rv_result = abap_false. IF is_app_object-update_indicator IS NOT INITIAL. IF is_structure_changed( ir_struct = is_app_object-maintabref iv_upd_field = iv_upd_field ) = abap_true. rv_result = abap_true. ELSEIF iv_chk_mastertab = abap_true AND is_app_object-mastertabref IS BOUND AND is_structure_changed( ir_struct = is_app_object-mastertabref iv_upd_field = iv_upd_field ) = abap_true. rv_result = abap_true. ELSE. ASSIGN is_app_object-maintabref->* TO <ls_maintab>. IF <ls_maintab> IS ASSIGNED. ASSIGN COMPONENT iv_key_field OF STRUCTURE <ls_maintab> TO <lv_key_value>. IF <lv_key_value> IS ASSIGNED. LOOP AT it_check_tables ASSIGNING FIELD-SYMBOL(<ls_tables>). IF is_table_changed( ir_table = io_ef_parameters->get_appl_table( iv_tabledef = <ls_tables> ) iv_key_field = iv_key_field iv_upd_field = iv_upd_field iv_key_value = <lv_key_value> ) = abap_true. rv_result = abap_true. EXIT. ENDIF. ENDLOOP. ELSE. MESSAGE e001(zpof_gtt) WITH iv_key_field is_app_object-maintabdef INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ELSE. MESSAGE e002(zpof_gtt) WITH '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ENDIF. ENDIF. ENDMETHOD. METHOD is_structure_changed. DATA: lv_fname TYPE char5, lv_dummy TYPE char100. FIELD-SYMBOLS: <ls_struct> TYPE any, <lv_updkz> TYPE any. rv_result = abap_false. ASSIGN ir_struct->* TO <ls_struct>. IF <ls_struct> IS ASSIGNED. ASSIGN COMPONENT iv_upd_field OF STRUCTURE <ls_struct> TO <lv_updkz>. IF <lv_updkz> IS ASSIGNED. rv_result = boolc( <lv_updkz> IS NOT INITIAL ). ELSE. MESSAGE e001(zpof_gtt) WITH iv_upd_field '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ELSE. MESSAGE e002(zpof_gtt) WITH '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ENDMETHOD. METHOD is_table. DATA(lo_type) = cl_abap_typedescr=>describe_by_data( p_data = iv_value ). rv_result = boolc( lo_type->type_kind = cl_abap_typedescr=>typekind_table ). ENDMETHOD. METHOD is_timestamp. DATA lo_elem TYPE REF TO cl_abap_elemdescr. DATA(lo_type) = cl_abap_typedescr=>describe_by_data( p_data = iv_value ). IF lo_type IS INSTANCE OF cl_abap_elemdescr. lo_elem ?= lo_type. rv_result = boolc( lo_elem->help_id = lif_ef_constants=>cs_date_types-timestamp ). ELSE. rv_result = abap_false. ENDIF. ENDMETHOD. METHOD is_table_changed. DATA: lv_fname TYPE char5, lv_dummy TYPE char100. FIELD-SYMBOLS: <lt_table> TYPE ANY TABLE, <ls_table> TYPE any, <lv_key_value> TYPE any, <lv_upd_value> TYPE any. rv_result = abap_false. ASSIGN ir_table->* TO <lt_table>. IF <lt_table> IS ASSIGNED. LOOP AT <lt_table> ASSIGNING <ls_table>. ASSIGN COMPONENT iv_key_field OF STRUCTURE <ls_table> TO <lv_key_value>. ASSIGN COMPONENT iv_upd_field OF STRUCTURE <ls_table> TO <lv_upd_value>. IF <lv_key_value> IS ASSIGNED AND <lv_upd_value> IS ASSIGNED. IF <lv_key_value> = iv_key_value AND <lv_upd_value> IS NOT INITIAL. rv_result = abap_true. EXIT. ENDIF. ELSE. lv_fname = COND #( WHEN <lv_key_value> IS NOT ASSIGNED THEN iv_key_field ELSE iv_upd_field ). MESSAGE e001(zpof_gtt) WITH lv_fname '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ENDLOOP. ELSE. MESSAGE e002(zpof_gtt) WITH '' INTO lv_dummy. lcl_tools=>throw_exception( ). ENDIF. ENDMETHOD. METHOD log_exception. DATA: ls_log TYPE bal_s_log, lv_handle TYPE balloghndl, ls_msg TYPE bal_s_msg, lt_handle TYPE bal_t_logh. TRY. cl_reca_guid=>guid_create( IMPORTING ed_guid_22 = DATA(lv_guid) ). " open application log ls_log-object = iv_object. ls_log-subobject = iv_subobject. ls_log-extnumber = lv_handle. ls_log-aldate = sy-datum. ls_log-altime = sy-uzeit. ls_log-aluser = sy-uname. ls_log-altcode = sy-tcode. CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = lv_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2. IF sy-subrc <> 0. RETURN. ENDIF. " add message to application log ls_msg = VALUE #( msgty = io_udm_message->m_msgty msgid = io_udm_message->m_msgid msgno = io_udm_message->m_msgno msgv1 = io_udm_message->m_msgv1 msgv2 = io_udm_message->m_msgv2 msgv3 = io_udm_message->m_msgv3 msgv4 = io_udm_message->m_msgv4 ). GET TIME STAMP FIELD ls_msg-time_stmp. CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = lv_handle i_s_msg = ls_msg EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4. IF sy-subrc <> 0. RETURN. ENDIF. " save application log CLEAR lt_handle[]. INSERT lv_handle INTO TABLE lt_handle. CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_in_update_task = ' ' i_t_log_handle = lt_handle EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4. IF sy-subrc <> 0. RETURN. ENDIF. CATCH cx_cacs_bal_ex. ENDTRY. ENDMETHOD. METHOD throw_exception. RAISE EXCEPTION TYPE cx_udm_message EXPORTING textid = iv_textid m_msgid = sy-msgid m_msgty = sy-msgty m_msgno = sy-msgno m_msgv1 = sy-msgv1 m_msgv2 = sy-msgv2 m_msgv3 = sy-msgv3 m_msgv4 = sy-msgv4. ENDMETHOD. ENDCLASS. ********************************************************************** ********************************************************************** ********************************************************************** CLASS lcl_ef_performer DEFINITION. PUBLIC SECTION. CLASS-METHODS check_relevance IMPORTING is_definition TYPE lif_ef_types=>ts_definition io_bo_factory TYPE REF TO lif_factory iv_appsys TYPE /saptrx/applsystem is_app_obj_types TYPE /saptrx/aotypes it_all_appl_tables TYPE trxas_tabcontainer it_app_type_cntl_tabs TYPE trxas_apptype_tabs OPTIONAL it_app_objects TYPE trxas_appobj_ctabs RETURNING VALUE(rv_result) TYPE sy-binpt RAISING cx_udm_message. CLASS-METHODS get_control_data IMPORTING is_definition TYPE lif_ef_types=>ts_definition io_bo_factory TYPE REF TO lif_factory iv_appsys TYPE /saptrx/applsystem is_app_obj_types TYPE /saptrx/aotypes it_all_appl_tables TYPE trxas_tabcontainer it_app_type_cntl_tabs TYPE trxas_apptype_tabs it_app_objects TYPE trxas_appobj_ctabs CHANGING ct_control_data TYPE lif_ef_types=>tt_control_data RAISING cx_udm_message. CLASS-METHODS get_planned_events IMPORTING is_definition TYPE lif_ef_types=>ts_definition io_factory TYPE REF TO lif_factory iv_appsys TYPE /saptrx/applsystem is_app_obj_types TYPE /saptrx/aotypes it_all_appl_tables TYPE trxas_tabcontainer it_app_type_cntl_tabs TYPE trxas_apptype_tabs it_app_objects TYPE trxas_appobj_ctabs CHANGING ct_expeventdata TYPE lif_ef_types=>tt_expeventdata ct_measrmntdata TYPE lif_ef_types=>tt_measrmntdata ct_infodata TYPE lif_ef_types=>tt_infodata RAISING cx_udm_message. CLASS-METHODS get_track_id_data IMPORTING is_definition TYPE lif_ef_types=>ts_definition io_bo_factory TYPE REF TO lif_factory iv_appsys TYPE /saptrx/applsystem is_app_obj_types TYPE /saptrx/aotypes it_all_appl_tables TYPE trxas_tabcontainer it_app_type_cntl_tabs TYPE trxas_apptype_tabs it_app_objects TYPE trxas_appobj_ctabs EXPORTING et_track_id_data TYPE lif_ef_types=>tt_track_id_data RAISING cx_udm_message. ENDCLASS. CLASS lcl_ef_performer IMPLEMENTATION. METHOD check_relevance. DATA: lo_ef_processor TYPE REF TO lif_ef_processor. " get instance of extractor function processor lo_ef_processor = io_bo_factory->get_ef_processor( is_definition = is_definition io_bo_factory = io_bo_factory iv_appsys = iv_appsys is_app_obj_types = is_app_obj_types it_all_appl_tables = it_all_appl_tables it_app_type_cntl_tabs = it_app_type_cntl_tabs it_app_objects = it_app_objects ). " check i_app_objects : is maintabdef correct? lo_ef_processor->check_app_objects( ). " check relevance rv_result = lo_ef_processor->check_relevance( ). ENDMETHOD. METHOD get_control_data. DATA: lo_ef_processor TYPE REF TO lif_ef_processor. " get instance of extractor function processor lo_ef_processor = io_bo_factory->get_ef_processor( is_definition = is_definition io_bo_factory = io_bo_factory iv_appsys = iv_appsys is_app_obj_types = is_app_obj_types it_all_appl_tables = it_all_appl_tables it_app_type_cntl_tabs = it_app_type_cntl_tabs it_app_objects = it_app_objects ). " check i_app_objects : is maintabdef correct? lo_ef_processor->check_app_objects( ). " fill control data from business object data lo_ef_processor->get_control_data( CHANGING ct_control_data = ct_control_data[] ). ENDMETHOD. METHOD get_planned_events. DATA: lo_ef_processor TYPE REF TO lif_ef_processor. " get instance of extractor function processor lo_ef_processor = io_factory->get_ef_processor( is_definition = is_definition io_bo_factory = io_factory iv_appsys = iv_appsys is_app_obj_types = is_app_obj_types it_all_appl_tables = it_all_appl_tables it_app_type_cntl_tabs = it_app_type_cntl_tabs it_app_objects = it_app_objects ). " check i_app_objects : is maintabdef correct? lo_ef_processor->check_app_objects( ). " fill planned events data lo_ef_processor->get_planned_events( CHANGING ct_expeventdata = ct_expeventdata ct_measrmntdata = ct_measrmntdata ct_infodata = ct_infodata ). ENDMETHOD. METHOD get_track_id_data. DATA: lo_ef_processor TYPE REF TO lif_ef_processor. CLEAR: et_track_id_data[]. " get instance of extractor function processor lo_ef_processor = io_bo_factory->get_ef_processor( is_definition = is_definition io_bo_factory = io_bo_factory iv_appsys = iv_appsys is_app_obj_types = is_app_obj_types it_all_appl_tables = it_all_appl_tables it_app_type_cntl_tabs = it_app_type_cntl_tabs it_app_objects = it_app_objects ). " check i_app_objects : is maintabdef correct? lo_ef_processor->check_app_objects( ). " fill controll data from PO Header data lo_ef_processor->get_track_id_data( IMPORTING et_track_id_data = et_track_id_data ). ENDMETHOD. ENDCLASS. ********************************************************************** ********************************************************************** ********************************************************************** CLASS lcl_ef_processor DEFINITION. PUBLIC SECTION. INTERFACES lif_ef_processor. METHODS constructor IMPORTING io_ef_parameters TYPE REF TO lif_ef_parameters io_bo_reader TYPE REF TO lif_bo_reader io_pe_filler TYPE REF TO lif_pe_filler is_definition TYPE lif_ef_types=>ts_definition. PRIVATE SECTION. DATA: mo_ef_parameters TYPE REF TO lif_ef_parameters, mo_bo_reader TYPE REF TO lif_bo_reader, mo_pe_filler TYPE REF TO lif_pe_filler, ms_definition TYPE lif_ef_types=>ts_definition. METHODS add_struct_to_control_data IMPORTING ir_bo_data TYPE REF TO data iv_appobjid TYPE /saptrx/aoid CHANGING ct_control_data TYPE lif_ef_types=>tt_control_data RAISING cx_udm_message. METHODS add_sys_attr_to_control_data IMPORTING iv_appobjid TYPE /saptrx/aoid CHANGING ct_control_data TYPE lif_ef_types=>tt_control_data RAISING cx_udm_message. ENDCLASS. CLASS lcl_ef_processor IMPLEMENTATION. METHOD add_struct_to_control_data. DATA: lt_fields TYPE cl_abap_structdescr=>component_table, ls_control_data TYPE lif_ef_types=>ts_control_data, lr_mapping TYPE REF TO data, lv_dummy TYPE char100. FIELD-SYMBOLS: <ls_bo_data> TYPE any, <ls_mapping> TYPE any, <lt_value> TYPE ANY TABLE, <lv_value> TYPE any, <lv_paramname> TYPE any. ASSIGN ir_bo_data->* TO <ls_bo_data>. IF <ls_bo_data> IS ASSIGNED. " get fields list of the structure, which provided by reader class lt_fields = CAST cl_abap_structdescr( cl_abap_typedescr=>describe_by_data( p_data = <ls_bo_data> ) )->get_components( ). " assign mapping table to use it in converting of field names into external format lr_mapping = mo_bo_reader->get_mapping_structure( ). ASSIGN lr_mapping->* TO <ls_mapping>. IF <ls_mapping> IS ASSIGNED. " fill generic parameters ls_control_data-appsys = mo_ef_parameters->get_appsys( ). ls_control_data-appobjtype = mo_ef_parameters->get_app_obj_types( )-aotype. ls_control_data-language = sy-langu. ls_control_data-appobjid = iv_appobjid. " walk around fields list and copy values one by one LOOP AT lt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>). ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_bo_data> TO <lv_value>. ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_mapping> TO <lv_paramname>. IF <lv_value> IS ASSIGNED AND <lv_paramname> IS ASSIGNED. ls_control_data-paramname = <lv_paramname>. " cycled copy for table values IF lcl_tools=>is_table( iv_value = <lv_value> ) = abap_true. ASSIGN <lv_value> TO <lt_value>. CLEAR: ls_control_data-paramindex. LOOP AT <lt_value> ASSIGNING <lv_value>. ADD 1 TO ls_control_data-paramindex. ls_control_data-value = lcl_tools=>get_pretty_value( iv_value = <lv_value> ). APPEND ls_control_data TO ct_control_data. ENDLOOP. " add clearing value, when multivalues table is empty IF <lt_value>[] IS INITIAL AND mo_bo_reader->get_field_parameter( iv_field_name = <lv_paramname> iv_parameter = lif_ef_constants=>cs_parameter_id-key_field ) = abap_true. ls_control_data-paramindex = 1. ls_control_data-value = ''. APPEND ls_control_data TO ct_control_data. ENDIF. " simple copy for usual values ELSEIF <lv_value> IS NOT INITIAL OR mo_bo_reader->get_field_parameter( iv_field_name = <lv_paramname> iv_parameter = lif_ef_constants=>cs_parameter_id-no_empty_tag ) = abap_false. ls_control_data-value = lcl_tools=>get_pretty_value( iv_value = <lv_value> ). APPEND ls_control_data TO ct_control_data. ELSEIF ( lcl_tools=>is_date( iv_value = <lv_value> ) = abap_true OR lcl_tools=>is_timestamp( iv_value = <lv_value> ) = abap_true ). ls_control_data-value = ''. APPEND ls_control_data TO ct_control_data. ENDIF. ELSEIF <lv_value> IS NOT ASSIGNED. MESSAGE e001(zpof_gtt) WITH <ls_fields>-name 'data table' INTO lv_dummy ##NO_TEXT. lcl_tools=>throw_exception( ). ELSE. MESSAGE e001(zpof_gtt) WITH <ls_fields>-name 'mapping table' INTO lv_dummy ##NO_TEXT. lcl_tools=>throw_exception( ). ENDIF. ENDLOOP. ELSE. MESSAGE e002(zpof_gtt) WITH 'mapping table' INTO lv_dummy ##NO_TEXT. lcl_tools=>throw_exception( ). ENDIF. ELSE. MESSAGE e002(zpof_gtt) WITH 'data table' INTO lv_dummy ##NO_TEXT. lcl_tools=>throw_exception( ). ENDIF. ENDMETHOD. METHOD add_sys_attr_to_control_data. DATA: ls_control_data TYPE lif_ef_types=>ts_control_data. ls_control_data-appsys = mo_ef_parameters->get_appsys( ). ls_control_data-appobjtype = mo_ef_parameters->get_app_obj_types( )-aotype. ls_control_data-language = sy-langu. ls_control_data-appobjid = iv_appobjid. ls_control_data-paramname = lif_ef_constants=>cs_system_fields-actual_bisiness_timezone. ls_control_data-value = lcl_tools=>get_system_time_zone( ). APPEND ls_control_data TO ct_control_data. ls_control_data-paramname = lif_ef_constants=>cs_system_fields-actual_bisiness_datetime. ls_control_data-value = lcl_tools=>get_system_date_time( ). APPEND ls_control_data TO ct_control_data. ls_control_data-paramname = lif_ef_constants=>cs_system_fields-actual_technical_timezone. ls_control_data-value = lcl_tools=>get_system_time_zone( ). APPEND ls_control_data TO ct_control_data. ls_control_data-paramname = lif_ef_constants=>cs_system_fields-actual_technical_datetime. ls_control_data-value = lcl_tools=>get_system_date_time( ). APPEND ls_control_data TO ct_control_data. ENDMETHOD. METHOD constructor. mo_ef_parameters = io_ef_parameters. mo_bo_reader = io_bo_reader. mo_pe_filler = io_pe_filler. ms_definition = is_definition. ENDMETHOD. METHOD lif_ef_processor~check_app_objects. DATA: lr_app_objects TYPE REF TO data, lv_dummy TYPE char100. FIELD-SYMBOLS: <lt_app_objects> TYPE trxas_appobj_ctabs. lr_app_objects = mo_ef_parameters->get_app_objects( ). ASSIGN lr_app_objects->* TO <lt_app_objects>. LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>). IF <ls_app_objects>-maintabdef <> ms_definition-maintab. MESSAGE e087(/saptrx/asc) WITH <ls_app_objects>-maintabdef mo_ef_parameters->get_app_obj_types( )-controldatafunc lif_ef_constants=>cv_aot mo_ef_parameters->get_appsys( ) INTO lv_dummy. lcl_tools=>throw_exception( iv_textid = lif_ef_constants=>cs_errors-table_determination ). ELSEIF ms_definition-mastertab IS NOT INITIAL AND <ls_app_objects>-mastertabdef <> ms_definition-mastertab. MESSAGE e088(/saptrx/asc) WITH <ls_app_objects>-maintabdef mo_ef_parameters->get_app_obj_types( )-controldatafunc lif_ef_constants=>cv_aot mo_ef_parameters->get_appsys( ) INTO lv_dummy. lcl_tools=>throw_exception( iv_textid = lif_ef_constants=>cs_errors-table_determination ). ENDIF. ENDLOOP. ENDMETHOD. METHOD lif_ef_processor~check_relevance. DATA(lr_app_objects) = mo_ef_parameters->get_app_objects( ). FIELD-SYMBOLS <lt_app_objects> TYPE trxas_appobj_ctabs. ASSIGN lr_app_objects->* TO <lt_app_objects>. rv_result = lif_ef_constants=>cs_condition-false. LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>). rv_result = mo_bo_reader->check_relevance( is_app_object = <ls_app_objects> ). IF rv_result = lif_ef_constants=>cs_condition-false AND mo_pe_filler IS BOUND. rv_result = mo_pe_filler->check_relevance( is_app_objects = <ls_app_objects> ). ENDIF. IF rv_result = lif_ef_constants=>cs_condition-true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD lif_ef_processor~get_control_data. DATA: lt_control_data TYPE lif_ef_types=>tt_control_data, lr_app_objects TYPE REF TO data, lr_bo_data TYPE REF TO data. FIELD-SYMBOLS: <lt_app_objects> TYPE trxas_appobj_ctabs. lr_app_objects = mo_ef_parameters->get_app_objects( ). ASSIGN lr_app_objects->* TO <lt_app_objects>. LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>) WHERE maintabdef = ms_definition-maintab. lr_bo_data = mo_bo_reader->get_data( EXPORTING is_app_object = <ls_app_objects> ). add_struct_to_control_data( EXPORTING ir_bo_data = lr_bo_data iv_appobjid = <ls_app_objects>-appobjid CHANGING ct_control_data = lt_control_data ). add_sys_attr_to_control_data( EXPORTING iv_appobjid = <ls_app_objects>-appobjid CHANGING ct_control_data = lt_control_data ). ENDLOOP. " Add all the changes to result tables in the end of the method, " so that in case of exceptions there will be no inconsistent data in them IF lt_control_data[] IS NOT INITIAL. ct_control_data[] = VALUE #( BASE ct_control_data ( LINES OF lt_control_data ) ). ENDIF. ENDMETHOD. METHOD lif_ef_processor~get_planned_events. DATA: lt_expeventdata TYPE lif_ef_types=>tt_expeventdata, lt_measrmntdata TYPE lif_ef_types=>tt_measrmntdata, lt_infodata TYPE lif_ef_types=>tt_infodata, lr_app_objects TYPE REF TO data. FIELD-SYMBOLS: <lt_app_objects> TYPE trxas_appobj_ctabs. lr_app_objects = mo_ef_parameters->get_app_objects( ). ASSIGN lr_app_objects->* TO <lt_app_objects>. LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>) WHERE maintabdef = ms_definition-maintab. mo_pe_filler->get_planed_events( EXPORTING is_app_objects = <ls_app_objects> CHANGING ct_expeventdata = lt_expeventdata ct_measrmntdata = lt_measrmntdata ct_infodata = lt_infodata ). ENDLOOP. " Add all the changes to result tables in the end of the method, " so that in case of exceptions there will be no inconsistent data in them IF lt_expeventdata[] IS NOT INITIAL. ct_expeventdata[] = VALUE #( BASE ct_expeventdata ( LINES OF lt_expeventdata ) ). ENDIF. IF lt_measrmntdata[] IS NOT INITIAL. ct_measrmntdata[] = VALUE #( BASE ct_measrmntdata ( LINES OF lt_measrmntdata ) ). ENDIF. IF lt_expeventdata[] IS NOT INITIAL. lt_infodata[] = VALUE #( BASE ct_infodata ( LINES OF lt_infodata ) ). ENDIF. ENDMETHOD. METHOD lif_ef_processor~get_track_id_data. DATA: lr_app_objects TYPE REF TO data, lt_track_id_data TYPE lif_ef_types=>tt_track_id_data, lr_bo_data TYPE REF TO data. FIELD-SYMBOLS: <lt_app_objects> TYPE trxas_appobj_ctabs. CLEAR: et_track_id_data[]. lr_app_objects = mo_ef_parameters->get_app_objects( ). ASSIGN lr_app_objects->* TO <lt_app_objects>. LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>) WHERE maintabdef = ms_definition-maintab. mo_bo_reader->get_track_id_data( EXPORTING is_app_object = <ls_app_objects> IMPORTING et_track_id_data = lt_track_id_data ). et_track_id_data = VALUE #( BASE et_track_id_data ( LINES OF lt_track_id_data ) ). ENDLOOP. ENDMETHOD. ENDCLASS. ********************************************************************** ********************************************************************** ********************************************************************** CLASS lcl_ef_parameters DEFINITION. PUBLIC SECTION. INTERFACES lif_ef_parameters. METHODS constructor IMPORTING iv_appsys TYPE /saptrx/applsystem is_app_obj_types TYPE /saptrx/aotypes it_all_appl_tables TYPE trxas_tabcontainer it_app_type_cntl_tabs TYPE trxas_apptype_tabs OPTIONAL it_app_objects TYPE trxas_appobj_ctabs. PRIVATE SECTION. DATA: mv_appsys TYPE /saptrx/applsystem, ms_app_obj_types TYPE /saptrx/aotypes, mr_all_appl_tables TYPE REF TO data, "trxas_tabcontainer, mr_app_type_cntl_tabs TYPE REF TO data, "trxas_apptype_tabs, mr_app_objects TYPE REF TO data. "trxas_appobj_ctabs. ENDCLASS. CLASS lcl_ef_parameters IMPLEMENTATION. METHOD constructor. mv_appsys = iv_appsys. ms_app_obj_types = is_app_obj_types. mr_all_appl_tables = REF #( it_all_appl_tables ). IF it_app_type_cntl_tabs IS SUPPLIED. mr_app_type_cntl_tabs = REF #( it_app_type_cntl_tabs ). ENDIF. mr_app_objects = REF #( it_app_objects ). ENDMETHOD. METHOD lif_ef_parameters~get_appl_table. TRY. FIELD-SYMBOLS: <lt_all_appl_tables> TYPE trxas_tabcontainer. ASSIGN mr_all_appl_tables->* TO <lt_all_appl_tables>. rr_data = <lt_all_appl_tables>[ tabledef = iv_tabledef ]-tableref. CATCH cx_sy_itab_line_not_found. MESSAGE e008(/saptrx/asc) WITH iv_tabledef ms_app_obj_types-aotype INTO DATA(lv_dummy). lcl_tools=>throw_exception( iv_textid = lif_ef_constants=>cs_errors-stop_processing ). ENDTRY. ENDMETHOD. METHOD lif_ef_parameters~get_app_obj_types. rs_app_obj_types = ms_app_obj_types. ENDMETHOD. METHOD lif_ef_parameters~get_app_objects. rr_data = mr_app_objects. ENDMETHOD. METHOD lif_ef_parameters~get_appsys. rv_appsys = mv_appsys. ENDMETHOD. ENDCLASS. ********************************************************************** ********************************************************************** ********************************************************************** CLASS lcl_factory DEFINITION ABSTRACT. PUBLIC SECTION. INTERFACES lif_factory ABSTRACT METHODS get_bo_reader get_pe_filler. ENDCLASS. CLASS lcl_factory IMPLEMENTATION. METHOD lif_factory~get_ef_parameters. ro_ef_parameters = NEW lcl_ef_parameters( iv_appsys = iv_appsys is_app_obj_types = is_app_obj_types it_all_appl_tables = it_all_appl_tables it_app_type_cntl_tabs = it_app_type_cntl_tabs it_app_objects = it_app_objects ). ENDMETHOD. METHOD lif_factory~get_ef_processor. DATA: lo_ef_parameters TYPE REF TO lif_ef_parameters, lo_bo_reader TYPE REF TO lif_bo_reader, lo_pe_filler TYPE REF TO lif_pe_filler. lo_ef_parameters = lif_factory~get_ef_parameters( iv_appsys = iv_appsys is_app_obj_types = is_app_obj_types it_all_appl_tables = it_all_appl_tables it_app_type_cntl_tabs = it_app_type_cntl_tabs it_app_objects = it_app_objects ). lo_bo_reader = lif_factory~get_bo_reader( io_ef_parameters = lo_ef_parameters ). " filler is not obligatory TRY. lo_pe_filler = lif_factory~get_pe_filler( io_ef_parameters = lo_ef_parameters io_bo_reader = lo_bo_reader ). CATCH cx_udm_message. ENDTRY. ro_ef_processor = NEW lcl_ef_processor( io_ef_parameters = lo_ef_parameters io_bo_reader = lo_bo_reader io_pe_filler = lo_pe_filler is_definition = is_definition ). ENDMETHOD. ENDCLASS.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 10714, 1398, 6770, 532, 3611, 329, 45389, 28403, 198, 9, 5, 10097, 30934, 9, 198, 198, 17174, 17174, 2466, 1174, 198, 17174, 17174, 2466, 1174, 198, 17174, 17174, 2466, 1174, 198, 31631, 300, 565, 62, 31391, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 389, 62, 25747, 62, 39799, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 7890, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 7890, 17, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 25747, 220, 220, 220, 220, 220, 220, 220, 41876, 3868, 62, 891, 62, 19199, 14804, 926, 62, 3245, 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, 20274, 8, 41876, 3868, 62, 891, 62, 19199, 14804, 14981, 62, 31448, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 463, 76, 62, 20500, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 389, 62, 7249, 942, 62, 39799, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 7890, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 7890, 17, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 20274, 8, 41876, 3868, 62, 891, 62, 19199, 14804, 14981, 62, 31448, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 463, 76, 62, 20500, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 10385, 62, 19608, 8079, 62, 1462, 62, 315, 66, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 19608, 8079, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 41033, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2435, 11340, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 640, 11340, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 19608, 8079, 62, 315, 66, 8, 41876, 1149, 1314, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 10385, 62, 1462, 62, 22615, 62, 17287, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 34415, 220, 220, 220, 220, 220, 220, 220, 41876, 2082, 364, 62, 22019, 66, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 32538, 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, 22615, 8, 41876, 3868, 62, 891, 62, 19199, 14804, 14981, 62, 34415, 62, 321, 429, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 3245, 62, 1659, 62, 301, 5620, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 7249, 62, 7890, 220, 41876, 4526, 37, 5390, 1366, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 3245, 62, 3672, 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, 81, 85, 62, 8367, 8, 41876, 1149, 1120, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 463, 76, 62, 20500, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 48277, 62, 6404, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 388, 67, 62, 20500, 41876, 4526, 37, 5390, 43213, 62, 463, 76, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 41876, 269, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 65, 499, 557, 83, 220, 220, 220, 220, 41876, 275, 499, 557, 83, 17, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 12001, 62, 16514, 27823, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 4475, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 597, 5550, 38865, 827, 12, 19608, 388, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 2435, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 597, 5550, 38865, 827, 12, 84, 2736, 270, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 16514, 27823, 8, 41876, 1220, 82, 2373, 40914, 14, 15596, 62, 11201, 62, 19608, 8079, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 37784, 62, 8367, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8367, 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, 37784, 8, 41876, 1220, 82, 2373, 40914, 14, 17143, 2100, 2167, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 10057, 62, 2435, 62, 11340, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 83, 11340, 8, 41876, 640, 11340, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui_page_commit DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_page FINAL CREATE PUBLIC . PUBLIC SECTION. CONSTANTS: BEGIN OF c_action, commit_post TYPE string VALUE 'commit_post', commit_cancel TYPE string VALUE 'commit_cancel', END OF c_action . METHODS constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online io_stage TYPE REF TO zcl_abapgit_stage RAISING zcx_abapgit_exception. METHODS zif_abapgit_gui_event_handler~on_event REDEFINITION . PROTECTED SECTION. CLASS-METHODS parse_commit_request IMPORTING !ii_event TYPE REF TO zif_abapgit_gui_event RETURNING VALUE(rs_commit) TYPE zif_abapgit_services_git=>ty_commit_fields RAISING zcx_abapgit_exception . METHODS render_content REDEFINITION . PRIVATE SECTION. DATA mo_repo TYPE REF TO zcl_abapgit_repo_online . DATA mo_stage TYPE REF TO zcl_abapgit_stage . DATA ms_commit TYPE zif_abapgit_services_git=>ty_commit_fields . METHODS render_menu RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS render_stage RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS render_form RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . METHODS render_text_input IMPORTING !iv_name TYPE string !iv_label TYPE string !iv_value TYPE string OPTIONAL !iv_max_length TYPE string OPTIONAL RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html . METHODS get_comment_default RETURNING VALUE(rv_text) TYPE string . METHODS get_comment_object IMPORTING !it_stage TYPE zif_abapgit_definitions=>ty_stage_tt RETURNING VALUE(rv_text) TYPE string . METHODS get_comment_file IMPORTING !it_stage TYPE zif_abapgit_definitions=>ty_stage_tt RETURNING VALUE(rv_text) TYPE string . METHODS render_scripts RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_gui_page_commit IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_repo = io_repo. mo_stage = io_stage. ms_control-page_title = 'Commit'. ENDMETHOD. METHOD get_comment_default. DATA: lo_settings TYPE REF TO zcl_abapgit_settings, lt_stage TYPE zif_abapgit_definitions=>ty_stage_tt. " Get setting for default comment text lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). rv_text = lo_settings->get_commitmsg_comment_default( ). IF rv_text IS INITIAL. RETURN. ENDIF. " Determine texts for scope of commit lt_stage = mo_stage->get_all( ). REPLACE '$FILE' IN rv_text WITH get_comment_file( lt_stage ). REPLACE '$OBJECT' IN rv_text WITH get_comment_object( lt_stage ). ENDMETHOD. METHOD get_comment_file. DATA: lv_count TYPE i, lv_value TYPE c LENGTH 10. FIELD-SYMBOLS: <ls_stage> LIKE LINE OF it_stage. lv_count = lines( it_stage ). IF lv_count = 1. " Just one file so we use the file name READ TABLE it_stage ASSIGNING <ls_stage> INDEX 1. ASSERT sy-subrc = 0. rv_text = <ls_stage>-file-filename. ELSE. " For multiple file we use the count instead WRITE lv_count TO lv_value LEFT-JUSTIFIED. CONCATENATE lv_value 'files' INTO rv_text SEPARATED BY space. ENDIF. ENDMETHOD. METHOD get_comment_object. DATA: lv_count TYPE i, lv_value TYPE c LENGTH 10, ls_item TYPE zif_abapgit_definitions=>ty_item, lt_items TYPE zif_abapgit_definitions=>ty_items_tt. FIELD-SYMBOLS: <ls_stage> LIKE LINE OF it_stage. " Get objects LOOP AT it_stage ASSIGNING <ls_stage>. CLEAR ls_item. ls_item-obj_type = <ls_stage>-status-obj_type. ls_item-obj_name = <ls_stage>-status-obj_name. COLLECT ls_item INTO lt_items. ENDLOOP. lv_count = lines( lt_items ). IF lv_count = 1. " Just one object so we use the object name READ TABLE lt_items INTO ls_item INDEX 1. ASSERT sy-subrc = 0. CONCATENATE ls_item-obj_type ls_item-obj_name INTO rv_text SEPARATED BY space. ELSE. " For multiple objects we use the count instead WRITE lv_count TO lv_value LEFT-JUSTIFIED. CONCATENATE lv_value 'objects' INTO rv_text SEPARATED BY space. ENDIF. ENDMETHOD. METHOD parse_commit_request. DATA lo_map TYPE REF TO zcl_abapgit_string_map. lo_map = ii_event->form_data( ). lo_map->to_abap( CHANGING cs_container = rs_commit ). REPLACE ALL OCCURRENCES OF zif_abapgit_definitions=>c_crlf IN rs_commit-body WITH zif_abapgit_definitions=>c_newline. ENDMETHOD. METHOD render_content. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div class="repo">' ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo iv_show_package = abap_false ) ). ri_html->add( render_menu( ) ). ri_html->add( render_form( ) ). ri_html->add( render_stage( ) ). ri_html->add( '</div>' ). register_deferred_script( render_scripts( ) ). ENDMETHOD. METHOD render_form. CONSTANTS: lc_body_col_max TYPE i VALUE 150. DATA: li_user TYPE REF TO zif_abapgit_persist_user. DATA: lv_user TYPE string. DATA: lv_email TYPE string. DATA: lv_s_param TYPE string. DATA: lo_settings TYPE REF TO zcl_abapgit_settings. DATA: lv_body_size TYPE i. DATA: lv_comment TYPE string. DATA: lv_body TYPE string. DATA: lv_author_name TYPE string. DATA: lv_author_email TYPE string. * see https://git-scm.com/book/ch5-2.html * commit messages should be max 50 characters * body should wrap at 72 characters li_user = zcl_abapgit_persistence_user=>get_instance( ). lv_user = li_user->get_repo_git_user_name( mo_repo->get_url( ) ). IF lv_user IS INITIAL. lv_user = li_user->get_default_git_user_name( ). ENDIF. IF lv_user IS INITIAL. " get default from user record lv_user = zcl_abapgit_user_record=>get_instance( sy-uname )->get_name( ). ENDIF. lv_email = li_user->get_repo_git_user_email( mo_repo->get_url( ) ). IF lv_email IS INITIAL. lv_email = li_user->get_default_git_user_email( ). ENDIF. IF lv_email IS INITIAL. " get default from user record lv_email = zcl_abapgit_user_record=>get_instance( sy-uname )->get_email( ). ENDIF. IF ms_commit IS NOT INITIAL. lv_user = ms_commit-committer_name. lv_email = ms_commit-committer_email. lv_comment = ms_commit-comment. lv_body = ms_commit-body. lv_author_name = ms_commit-author_name. lv_author_email = ms_commit-author_email. ENDIF. IF lv_comment IS INITIAL. lv_comment = get_comment_default( ). ENDIF. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->add( '<div class="form-container">' ). ri_html->add( '<form id="commit_form" class="aligned-form"' && ' method="post" action="sapevent:commit_post">' ). ri_html->add( render_text_input( iv_name = 'committer_name' iv_label = 'Committer Name' iv_value = lv_user ) ). ri_html->add( render_text_input( iv_name = 'committer_email' iv_label = 'Committer E-mail' iv_value = lv_email ) ). lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). lv_s_param = lo_settings->get_commitmsg_comment_length( ). ri_html->add( render_text_input( iv_name = 'comment' iv_label = 'Comment' iv_value = lv_comment iv_max_length = lv_s_param ) ). ri_html->add( '<div class="row">' ). ri_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. ri_html->add( |<textarea id="c-body" name="body" rows="10" cols="| && |{ lv_body_size }">{ lv_body }</textarea>| ). ri_html->add( '<input type="submit" class="hidden-submit">' ). ri_html->add( '</div>' ). ri_html->add( '<div class="row">' ). ri_html->add( '<span class="cell"></span>' ). ri_html->add( '<span class="cell sub-title">Optionally,' && ' specify author (same as committer by default)</span>' ). ri_html->add( '</div>' ). ri_html->add( render_text_input( iv_name = 'author_name' iv_label = 'Author Name' iv_value = lv_author_name ) ). ri_html->add( render_text_input( iv_name = 'author_email' iv_label = 'Author E-mail' iv_value = lv_author_email ) ). ri_html->add( '</form>' ). ri_html->add( '</div>' ). ENDMETHOD. METHOD render_menu. DATA lo_toolbar TYPE REF TO zcl_abapgit_html_toolbar. CREATE OBJECT ri_html TYPE zcl_abapgit_html. CREATE OBJECT lo_toolbar. lo_toolbar->add( iv_act = 'submitFormById(''commit_form'');' iv_txt = 'Commit' iv_typ = zif_abapgit_html=>c_action_type-onclick iv_opt = zif_abapgit_html=>c_html_opt-strong ). lo_toolbar->add( iv_act = c_action-commit_cancel iv_txt = 'Cancel' iv_opt = zif_abapgit_html=>c_html_opt-cancel ). ri_html->add( '<div class="paddings">' ). ri_html->add( lo_toolbar->render( ) ). ri_html->add( '</div>' ). ENDMETHOD. METHOD render_scripts. CREATE OBJECT ri_html TYPE zcl_abapgit_html. ri_html->set_title( cl_abap_typedescr=>describe_by_object_ref( me )->get_relative_name( ) ). ri_html->add( 'setInitialFocus("comment");' ). ENDMETHOD. METHOD render_stage. DATA: lt_stage TYPE zif_abapgit_definitions=>ty_stage_tt. FIELD-SYMBOLS: <ls_stage> LIKE LINE OF lt_stage. CREATE OBJECT ri_html TYPE zcl_abapgit_html. lt_stage = mo_stage->get_all( ). ri_html->add( '<table class="stage_tab">' ). ri_html->add( '<thead>' ). ri_html->add( '<tr>' ). ri_html->add( '<th colspan="3">Staged Files</th>' ). ri_html->add( '</tr>' ). ri_html->add( '</thead>' ). ri_html->add( '<tbody>' ). LOOP AT lt_stage ASSIGNING <ls_stage>. ri_html->add( '<tr>' ). ri_html->add( '<td>' ). ri_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state( iv_lstate = <ls_stage>-status-lstate iv_rstate = <ls_stage>-status-rstate ) ). ri_html->add( '</td>' ). ri_html->add( '<td class="method">' ). ri_html->add( |<b>{ zcl_abapgit_stage=>method_description( <ls_stage>-method ) }</b>| ). ri_html->add( '</td>' ). ri_html->add( '<td>' ). ri_html->add( <ls_stage>-file-path && <ls_stage>-file-filename ). ri_html->add( '</td>' ). ri_html->add( '</tr>' ). ENDLOOP. ri_html->add( '</tbody>' ). ri_html->add( '</table>' ). ENDMETHOD. METHOD render_text_input. DATA lv_attrs TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. IF iv_value IS NOT INITIAL AND iv_max_length IS NOT INITIAL. lv_attrs = | value="{ iv_value }" maxlength="{ iv_max_length }"|. ELSEIF iv_value IS NOT INITIAL. lv_attrs = | value="{ iv_value }"|. ELSEIF iv_max_length IS NOT INITIAL. lv_attrs = | maxlength="{ iv_max_length }"|. ENDIF. ri_html->add( '<div class="row">' ). ri_html->add( |<label for="{ iv_name }">{ iv_label }</label>| ). ri_html->add( |<input id="{ iv_name }" name="{ iv_name }" type="text"{ lv_attrs }>| ). ri_html->add( '</div>' ). ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. CASE ii_event->mv_action. WHEN c_action-commit_post. ms_commit = parse_commit_request( ii_event ). ms_commit-repo_key = mo_repo->get_key( ). zcl_abapgit_services_git=>commit( is_commit = ms_commit io_repo = mo_repo io_stage = mo_stage ). MESSAGE 'Commit was successful' TYPE 'S'. rs_handled-state = zcl_abapgit_gui=>c_event_state-go_back_to_bookmark. WHEN c_action-commit_cancel. rs_handled-state = zcl_abapgit_gui=>c_event_state-go_back. WHEN OTHERS. rs_handled = super->zif_abapgit_gui_event_handler~on_event( ii_event ). ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 41509, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4589, 62, 7353, 220, 220, 41876, 4731, 26173, 8924, 705, 41509, 62, 7353, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 4589, 62, 66, 21130, 41876, 4731, 26173, 8924, 705, 41509, 62, 66, 21130, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 764, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 260, 7501, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 14247, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 93, 261, 62, 15596, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 41509, 62, 25927, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 15596, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 41509, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 30416, 62, 18300, 14804, 774, 62, 41509, 62, 25747, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 23848, 36, 20032, 17941, 764, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 764, 198, 220, 220, 220, 42865, 6941, 62, 14247, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 764, 198, 220, 220, 220, 42865, 13845, 62, 41509, 41876, 1976, 361, 62, 397, 499, 18300, 62, 30416, 62, 18300, 14804, 774, 62, 41509, 62, 25747, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 26272, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 14247, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 687, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 5239, 62, 15414, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18242, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8367, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9806, 62, 13664, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6494, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 23893, 62, 12286, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 5239, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 23893, 62, 15252, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 14247, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 14247, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 5239, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 23893, 62, 7753, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 14247, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 14247, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 5239, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sfpf DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. CLASS-METHODS: fix_oref IMPORTING ii_document TYPE REF TO if_ixml_document. PRIVATE SECTION. METHODS: load RETURNING VALUE(ri_wb_form) TYPE REF TO if_fp_wb_form RAISING zcx_abapgit_exception, form_to_xstring RETURNING VALUE(rv_xstr) TYPE xstring RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_sfpf IMPLEMENTATION. METHOD fix_oref. DATA: li_iterator TYPE REF TO if_ixml_node_iterator, lv_new TYPE n LENGTH 3, lv_old TYPE string, lt_map TYPE STANDARD TABLE OF string WITH DEFAULT KEY, li_attr_map TYPE REF TO if_ixml_named_node_map, li_attr TYPE REF TO if_ixml_node, li_node TYPE REF TO if_ixml_node. DEFINE _lookup. READ TABLE lt_map FROM &1 TRANSPORTING NO FIELDS. IF sy-subrc <> 0. APPEND &1 TO lt_map. READ TABLE lt_map FROM &1 TRANSPORTING NO FIELDS. ENDIF. lv_new = sy-tabix + 100. END-OF-DEFINITION. li_iterator = ii_document->create_iterator( ). li_node = li_iterator->get_next( ). WHILE NOT li_node IS INITIAL. li_attr_map = li_node->get_attributes( ). IF li_attr_map IS BOUND. li_attr = li_attr_map->get_named_item_ns( 'href' ). IF li_attr IS BOUND. lv_old = li_attr->get_value( ). IF lv_old(2) = '#o'. _lookup lv_old+1. li_attr->set_value( '#o' && lv_new ). ENDIF. ENDIF. li_attr = li_attr_map->get_named_item_ns( 'id' ). IF li_attr IS BOUND. lv_old = li_attr->get_value( ). IF lv_old(1) = 'o'. _lookup lv_old. li_attr->set_value( 'o' && lv_new ). ENDIF. ENDIF. ENDIF. li_node = li_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD form_to_xstring. DATA: li_fp_form TYPE REF TO if_fp_form, li_wb_form TYPE REF TO if_fp_wb_form. TRY. li_wb_form = load( ). li_fp_form ?= li_wb_form->get_object( ). rv_xstr = cl_fp_helper=>convert_form_to_xstring( li_fp_form ). CATCH cx_fp_api. zcx_abapgit_exception=>raise( 'SFPF error, form_to_xstring' ). ENDTRY. ENDMETHOD. METHOD load. DATA: lv_name TYPE fpname. lv_name = ms_item-obj_name. TRY. ri_wb_form = cl_fp_wb_form=>load( lv_name ). CATCH cx_fp_api. zcx_abapgit_exception=>raise( 'SFPF error, load' ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE lastuser FROM fplayout INTO rv_user WHERE name = ms_item-obj_name AND state = 'A'. IF rv_user IS INITIAL. SELECT SINGLE firstuser FROM fplayout INTO rv_user WHERE name = ms_item-obj_name AND state = 'A'. ENDIF. IF rv_user IS INITIAL. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_name TYPE fpname, lo_wb_form TYPE REF TO cl_fp_wb_form. lo_wb_form ?= load( ). lv_name = ms_item-obj_name. TRY. lo_wb_form->delete( lv_name ). CATCH cx_fp_api. zcx_abapgit_exception=>raise( 'SFPI error, delete' ). ENDTRY. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_xstr TYPE xstring, lv_name TYPE fpname, li_wb_object TYPE REF TO if_fp_wb_form, li_form TYPE REF TO if_fp_form. lv_name = ms_item-obj_name. lv_xstr = cl_ixml_80_20=>render_to_xstring( io_xml->get_raw( ) ). TRY. li_form = cl_fp_helper=>convert_xstring_to_form( lv_xstr ). tadir_insert( iv_package ). li_wb_object = cl_fp_wb_form=>create( i_name = lv_name i_form = li_form ). li_wb_object->save( ). li_wb_object->free( ). CATCH cx_fp_api. zcx_abapgit_exception=>raise( 'SFPF error, deserialize' ). ENDTRY. zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_name TYPE fpname. SELECT SINGLE name FROM fplayout INTO lv_name WHERE name = ms_item-obj_name AND state = 'A'. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = ms_item-obj_type. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_xstr TYPE xstring, li_document TYPE REF TO if_ixml_document. lv_xstr = form_to_xstring( ). li_document = cl_ixml_80_20=>parse_to_document( stream_xstring = lv_xstr ). fix_oref( li_document ). io_xml->set_raw( li_document->get_root_element( ) ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. DATA: lv_object TYPE seqg3-garg. lv_object = |{ ms_item-obj_name }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'EFPFORM' iv_argument = lv_object ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 28202, 79, 69, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 4259, 62, 382, 69, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 22897, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 3440, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 39346, 62, 687, 8, 41876, 4526, 37, 5390, 611, 62, 46428, 62, 39346, 62, 687, 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, 1296, 62, 1462, 62, 87, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 87, 2536, 8, 41876, 2124, 8841, 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, 79, 69, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 4259, 62, 382, 69, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 48727, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 62, 48727, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3605, 220, 220, 220, 220, 220, 41876, 299, 406, 49494, 513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 727, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 8899, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 35226, 62, 8899, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 13190, 62, 17440, 62, 8899, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 35226, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 17440, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 13, 628, 220, 220, 220, 23449, 8881, 4808, 5460, 929, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 300, 83, 62, 8899, 16034, 1222, 16, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43504, 10619, 1222, 16, 5390, 300, 83, 62, 8899, 13, 198, 220, 220, 220, 220, 220, 220, 220, 20832, 43679, 300, 83, 62, 8899, 16034, 1222, 16, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 3605, 796, 827, 12, 8658, 844, 1343, 1802, 13, 198, 220, 220, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 198, 220, 220, 220, 7649, 62, 48727, 796, 21065, 62, 22897, 3784, 17953, 62, 48727, 7, 6739, 198, 220, 220, 220, 7649, 62, 17440, 796, 7649, 62, 48727, 3784, 1136, 62, 19545, 7, 6739, 198, 220, 220, 220, 7655, 41119, 5626, 7649, 62, 17440, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 7649, 62, 35226, 62, 8899, 796, 7649, 62, 17440, 3784, 1136, 62, 1078, 7657, 7, 6739, 628, 220, 220, 220, 220, 220, 16876, 7649, 62, 35226, 62, 8899, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 35226, 796, 7649, 62, 35226, 62, 8899, 3784, 1136, 62, 13190, 62, 9186, 62, 5907, 7, 705, 33257, 6, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 7649, 62, 35226, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 727, 796, 7649, 62, 35226, 3784, 1136, 62, 8367, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 300, 85, 62, 727, 7, 17, 8, 796, 705, 2, 78, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 5460, 929, 300, 85, 62, 727, 10, 16, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 35226, 3784, 2617, 62, 8367, 7, 705, 2, 78, 6, 11405, 300, 85, 62, 3605, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 35226, 796, 7649, 62, 35226, 62, 8899, 3784, 1136, 62, 13190, 62, 9186, 62, 5907, 7, 705, 312, 6, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 7649, 62, 35226, 3180, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 727, 796, 7649, 62, 35226, 3784, 1136, 62, 8367, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 300, 85, 62, 727, 7, 16, 8, 796, 705, 78, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4808, 5460, 929, 300, 85, 62, 727, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 35226, 3784, 2617, 62, 8367, 7, 705, 78, 6, 11405, 300, 85, 62, 3605, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_versioning_demo DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_oo_adt_classrun. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_versioning_demo IMPLEMENTATION. METHOD if_oo_adt_classrun~main. DATA: lt_properties TYPE cmis_t_client_property, ls_property LIKE LINE OF lt_properties, ls_user TYPE string, lo_cmis_client TYPE REF TO if_cmis_client, ls_value LIKE LINE OF ls_property-values, ls_content TYPE cmis_s_content_raw, lv_print TYPE string, ls_cmis_object TYPE cmis_s_object, lv_object_id TYPE cmis_id. ********************************************************************** * Get the CMIS Client * ********************************************************************** lo_cmis_client = z_cl_get_cmis_client=>get_client( ). ********************************************************************** *Get the repository * ********************************************************************** CALL METHOD lo_cmis_client->get_repository_info EXPORTING iv_repository_id = 'Test_Repo' "pass the id of the created repository IMPORTING es_repository_info = DATA(ls_repository). ********************************************************************** * Create a document * ********************************************************************** CLEAR: ls_property, ls_value. ls_property-id = cl_cmis_property_ids=>object_type_id. ls_value-string_value = cl_cmis_constants=>base_type_id-cmis_document. "specify the type as cmis:document APPEND ls_value TO ls_property-values. APPEND ls_property TO lt_properties. CLEAR: ls_property, ls_value. ls_property-id = cl_cmis_property_ids=>name. "specify the name ls_value-string_value = |Doc{ cl_abap_context_info=>get_system_date( ) }{ cl_abap_context_info=>get_system_time( ) }.txt|. APPEND ls_value TO ls_property-values. APPEND ls_property TO lt_properties. "specify the content-stream details ls_content-filename = 'content'. ls_content-mime_type = 'text/plain'. lv_print = ' This is a new file'. ls_content-stream = cl_abap_conv_codepage=>create_out( codepage = `UTF-8`)->convert( source = lv_print ). "Call create_document "createDocument in a versioned repo will always create a "major" version CALL METHOD lo_cmis_client->create_document( EXPORTING iv_repository_id = ls_repository-id it_properties = lt_properties is_content = ls_content iv_folder_id = ls_repository-root_folder_id IMPORTING es_object = ls_cmis_object ). out->write('Document created successfully.'). DATA(lv_properties) = ls_cmis_object-properties-properties. READ TABLE lv_properties INTO DATA(ls_prop) WITH KEY id = cl_cmis_property_ids=>name. READ TABLE ls_prop-value INTO DATA(lv_prop) INDEX 1. lv_print = |Document name : { lv_prop-string_value }|. out->write( lv_print ). READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>version_label. READ TABLE ls_prop-value INTO lv_prop INDEX 1. lv_print = |Documennt version : { lv_prop-string_value }|. out->write( lv_print ). out->write( '-----------------------------------------------------') . "Get the id of the created document lv_properties = ls_cmis_object-properties-properties. READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>object_id. READ TABLE ls_prop-value INTO lv_prop INDEX 1. lv_object_id = lv_prop-string_value. ********************************************************************** * Checkout a document * ********************************************************************** CALL METHOD lo_cmis_client->check_out( EXPORTING iv_repository_id = ls_repository-id iv_object_id = lv_object_id IMPORTING es_object = ls_cmis_object "the checked-out document or the Private Working Copy ). "Get the id of the created document "for versioned repository, when a file is checked-out a PWC is created "edit operations are done on the PWC and the new file is checked-in lv_properties = ls_cmis_object-properties-properties. "properties of the newly-created document READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>object_id. READ TABLE ls_prop-value INTO lv_prop INDEX 1. CLEAR: lv_object_id. lv_object_id = lv_prop-string_value. "id of the PWC ********************************************************************** * Check-in a minor-version * ********************************************************************** CLEAR: ls_property, ls_value. "specify the content-stream details ls_content-filename = 'content'. ls_content-mime_type = 'text/plain'. "file-type should be the same as the file that is being updated lv_print = ' This is a minor version '. ls_content-stream = cl_abap_conv_codepage=>create_out( codepage = `UTF-8`)->convert( source = lv_print ). CALL METHOD lo_cmis_client->check_in( EXPORTING iv_repository_id = ls_repository-id iv_object_id = lv_object_id iv_checkin_comment = 'This is a minor version' iv_major = abap_false "if iv_major is false, then it is a minor version is_content = ls_content IMPORTING es_object = ls_cmis_object ). out->write('Minor-version created successfully.'). lv_properties = ls_cmis_object-properties-properties. "properties of the newly-created document lv_properties = ls_cmis_object-properties-properties. READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>name. READ TABLE ls_prop-value INTO lv_prop INDEX 1. lv_print = |Document name : { lv_prop-string_value }|. out->write( lv_print ). READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>version_label. READ TABLE ls_prop-value INTO lv_prop INDEX 1. lv_print = |Documennt version : { lv_prop-string_value }|. out->write( lv_print ). out->write( '-----------------------------------------------------') . lv_properties = ls_cmis_object-properties-properties. "properties of the newly-created document READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>object_id. READ TABLE ls_prop-value INTO lv_prop INDEX 1. CLEAR: lv_object_id. lv_object_id = lv_prop-string_value. "id of the PWC ********************************************************************** * Checkout a document * ********************************************************************** CALL METHOD lo_cmis_client->check_out( EXPORTING iv_repository_id = ls_repository-id iv_object_id = lv_object_id IMPORTING es_object = ls_cmis_object "the checked-out document or the Private Working Copy ). "Get the id of the created document "for versioned repository, when a file is checked-out a PWC is created "edit operations are done on the PWC and the new file is checked-in lv_properties = ls_cmis_object-properties-properties. "properties of the newly-created document READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>object_id. READ TABLE ls_prop-value INTO lv_prop INDEX 1. CLEAR: lv_object_id. lv_object_id = lv_prop-string_value. "id of the PWC ********************************************************************** * Check-in a major-version * ********************************************************************** "The new version will have a different id CLEAR: lv_object_id. lv_properties = ls_cmis_object-properties-properties. "properties of the newly-created document READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>object_id. READ TABLE ls_prop-value INTO lv_prop INDEX 1. lv_object_id = lv_prop-string_value. "id of the minor version CLEAR: ls_property, ls_value. "specify the content-stream details ls_content-filename = 'content'. "name of the content-stream ls_content-mime_type = 'text/plain'. "file-type should be the same as the file that is being updated lv_print = ' This is a major version '. ls_content-stream = cl_abap_conv_codepage=>create_out( codepage = `UTF-8`)->convert( source = lv_print ). CALL METHOD lo_cmis_client->check_in( EXPORTING iv_repository_id = ls_repository-id iv_object_id = lv_object_id iv_checkin_comment = 'This is a major version' iv_major = abap_true "iv_major is true, so it is major version is_content = ls_content IMPORTING es_object = ls_cmis_object ). out->write('Major-version created successfully.'). lv_properties = ls_cmis_object-properties-properties. "properties of the newly-created document READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>name. READ TABLE ls_prop-value INTO lv_prop INDEX 1. lv_print = |Document name : { lv_prop-string_value }|. out->write( lv_print ). READ TABLE lv_properties INTO ls_prop WITH KEY id = cl_cmis_property_ids=>version_label. READ TABLE ls_prop-value INTO lv_prop INDEX 1. lv_print = |Documennt version : { lv_prop-string_value }|. out->write( lv_print ). out->write( '-----------------------------------------------------') . "check delete_action for cancelCheckOut code. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 9641, 278, 62, 9536, 78, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 9641, 278, 62, 9536, 78, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 611, 62, 2238, 62, 324, 83, 62, 4871, 5143, 93, 12417, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 300, 83, 62, 48310, 220, 41876, 12067, 271, 62, 83, 62, 16366, 62, 26745, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 26745, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 48310, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 11215, 271, 62, 16366, 41876, 4526, 37, 5390, 611, 62, 11215, 271, 62, 16366, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 8367, 220, 220, 220, 220, 220, 220, 34178, 48920, 3963, 43979, 62, 26745, 12, 27160, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 11299, 220, 220, 220, 220, 41876, 12067, 271, 62, 82, 62, 11299, 62, 1831, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 4798, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 11215, 271, 62, 15252, 41876, 12067, 271, 62, 82, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 15252, 62, 312, 220, 220, 41876, 12067, 271, 62, 312, 13, 198, 17174, 17174, 2466, 1174, 198, 9, 3497, 262, 16477, 1797, 20985, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 2466, 1174, 198, 220, 220, 220, 2376, 62, 11215, 271, 62, 16366, 796, 1976, 62, 565, 62, 1136, 62, 11215, 271, 62, 16366, 14804, 1136, 62, 16366, 7, 220, 6739, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 3855, 262, 16099, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 2466, 1174, 198, 220, 220, 220, 42815, 337, 36252, 2376, 62, 11215, 271, 62, 16366, 3784, 1136, 62, 260, 1930, 37765, 62, 10951, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 21628, 62, 260, 1930, 37765, 62, 312, 796, 705, 14402, 62, 6207, 78, 6, 366, 6603, 262, 4686, 286, 262, 2727, 16099, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 260, 1930, 37765, 62, 10951, 796, 42865, 7, 7278, 62, 260, 1930, 37765, 737, 198, 17174, 17174, 2466, 1174, 198, 9, 13610, 257, 3188, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 2466, 1174, 628, 220, 220, 220, 30301, 1503, 25, 43979, 62, 26745, 11, 220, 43979, 62, 8367, 13, 198, 220, 220, 220, 43979, 62, 26745, 12, 312, 220, 220, 220, 220, 220, 220, 220, 796, 537, 62, 11215, 271, 62, 26745, 62, 2340, 14804, 15252, 62, 4906, 62, 312, 13, 198, 220, 220, 220, 43979, 62, 8367, 12, 8841, 62, 8367, 796, 537, 62, 11215, 271, 62, 9979, 1187, 14804, 8692, 62, 4906, 62, 312, 12, 11215, 271, 62, 22897, 13, 366, 16684, 1958, 262, 2099, 355, 12067, 271, 25, 22897, 198, 220, 220, 220, 43504, 10619, 43979, 62, 8367, 5390, 43979, 62, 26745, 12, 27160, 13, 198, 220, 220, 220, 43504, 10619, 43979, 62, 26745, 5390, 300, 83, 62, 48310, 13, 628, 220, 220, 220, 30301, 1503, 25, 43979, 62, 26745, 11, 220, 43979, 62, 8367, 13, 628, 220, 220, 220, 43979, 62, 26745, 12, 312, 220, 220, 220, 220, 220, 220, 220, 796, 537, 62, 11215, 271, 62, 26745, 62, 2340, 14804, 3672, 13, 366, 16684, 1958, 262, 1438, 198, 220, 220, 220, 43979, 62, 8367, 12, 8841, 62, 8367, 796, 930, 23579, 90, 220, 537, 62, 397, 499, 62, 22866, 62, 10951, 14804, 1136, 62, 10057, 62, 4475, 7, 1267, 1782, 90, 537, 62, 397, 499, 62, 22866, 62, 10951, 14804, 1136, 62, 10057, 62, 2435, 7, 1267, 1782, 13, 14116, 91, 13, 198, 220, 220, 220, 43504, 10619, 43979, 62, 8367, 5390, 43979, 62, 26745, 12, 27160, 13, 198, 220, 220, 220, 43504, 10619, 43979, 62, 26745, 5390, 300, 83, 62, 48310, 13, 628, 220, 220, 220, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS lcl_gui_mock DEFINITION. PUBLIC SECTION. TYPES: BEGIN OF ty_cache_signature, url TYPE string, type TYPE string, data TYPE string, END OF ty_cache_signature. DATA ms_last_cache_signature TYPE ty_cache_signature. INTERFACES zif_abapgit_gui_services. ENDCLASS. CLASS lcl_gui_mock IMPLEMENTATION. METHOD zif_abapgit_gui_services~cache_asset. ms_last_cache_signature-url = iv_url. ms_last_cache_signature-type = iv_type && '/' && iv_subtype. ms_last_cache_signature-data = iv_text. ENDMETHOD. ENDCLASS. CLASS ltcl_html_processor_test DEFINITION DEFERRED. CLASS zcl_abapgit_gui_html_processor DEFINITION LOCAL FRIENDS ltcl_html_processor_test. CLASS ltcl_html_processor_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. DATA mv_source TYPE string. DATA mo_cut TYPE REF TO zcl_abapgit_gui_html_processor. DATA mo_gui_mock TYPE REF TO lcl_gui_mock. METHODS render_html IMPORTING iv_src TYPE string RETURNING VALUE(rv_html) TYPE string. METHODS setup. METHODS process_typical FOR TESTING RAISING zcx_abapgit_exception. METHODS process_with_preserve FOR TESTING RAISING zcx_abapgit_exception. METHODS process_no_css FOR TESTING RAISING zcx_abapgit_exception. METHODS process_fails FOR TESTING RAISING zcx_abapgit_exception. METHODS find_head_closing_tag FOR TESTING RAISING zcx_abapgit_exception. ENDCLASS. CLASS ltcl_html_processor_test IMPLEMENTATION. METHOD render_html. rv_html = iv_src. REPLACE ALL OCCURRENCES OF '\n' IN rv_html WITH cl_abap_char_utilities=>newline. ENDMETHOD. METHOD setup. DATA lo_asset_man TYPE REF TO zcl_abapgit_gui_asset_manager. CREATE OBJECT lo_asset_man. lo_asset_man->register_asset( iv_url = 'css/style1.css' iv_type = 'text/css' iv_inline = 'dummy1' ). lo_asset_man->register_asset( iv_url = 'css/style2.css' iv_type = 'text/css' iv_inline = 'dummy2' ). lo_asset_man->register_asset( iv_url = 'css/style3.css' iv_type = 'text/css' iv_inline = 'dummy3' ). CREATE OBJECT mo_cut EXPORTING ii_asset_man = lo_asset_man. CREATE OBJECT mo_gui_mock. mv_source = render_html( `<html>\n` && ` <head>\n` && ` <title>abapGit</title>\n` && ` <LINK rel="stylesheet" type="text/css" href="css/style1.css">\n` && " +case & extra space ` <link rel="stylesheet" type="text/css" href="css/style2.css">\n` && ` <link rel="stylesheet" type="text/css" href="css/style3.css">\n` && ` <script type="text/javascript" src="js/common.js"></script>\n` && ` </head>\n` && ` <body>hello</body>\n` && `</html>\n` ). ENDMETHOD. METHOD process_typical. DATA lv_act TYPE string. lv_act = mo_cut->zif_abapgit_gui_html_processor~process( iv_html = mv_source ii_gui_services = mo_gui_mock ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = render_html( `<html>\n` && ` <head>\n` && ` <title>abapGit</title>\n` && ` <!--<LINK rel="stylesheet" type="text/css" href="css/style1.css">-->\n` && ` <!--<link rel="stylesheet" type="text/css" href="css/style2.css">-->\n` && ` <!--<link rel="stylesheet" type="text/css" href="css/style3.css">-->\n` && ` <script type="text/javascript" src="js/common.js"></script>\n` && ` <!-- abapgit HTML preprocessor -->\n` && ` <link rel="stylesheet" type="text/css" href="css/bundle.css">\n` && ` </head>\n` && ` <body>hello</body>\n` && `</html>\n` ) ). " GUI call checks cl_abap_unit_assert=>assert_equals( act = mo_gui_mock->ms_last_cache_signature-url exp = 'css/bundle.css' ). cl_abap_unit_assert=>assert_equals( act = mo_gui_mock->ms_last_cache_signature-type exp = 'text/css' ). cl_abap_unit_assert=>assert_equals( act = mo_gui_mock->ms_last_cache_signature-data exp = render_html( 'dummy1\ndummy2\ndummy3' ) ). ENDMETHOD. METHOD process_with_preserve. DATA lv_act TYPE string. mo_cut->preserve_css( 'css/style2.css' ). lv_act = mo_cut->zif_abapgit_gui_html_processor~process( iv_html = mv_source ii_gui_services = mo_gui_mock ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = render_html( `<html>\n` && ` <head>\n` && ` <title>abapGit</title>\n` && ` <!--<LINK rel="stylesheet" type="text/css" href="css/style1.css">-->\n` && ` <link rel="stylesheet" type="text/css" href="css/style2.css">\n` && " Preserved ` <!--<link rel="stylesheet" type="text/css" href="css/style3.css">-->\n` && ` <script type="text/javascript" src="js/common.js"></script>\n` && ` <!-- abapgit HTML preprocessor -->\n` && ` <link rel="stylesheet" type="text/css" href="css/bundle.css">\n` && ` </head>\n` && ` <body>hello</body>\n` && `</html>\n` ) ). ENDMETHOD. METHOD process_no_css. DATA lv_act TYPE string. lv_act = mo_cut->zif_abapgit_gui_html_processor~process( iv_html = '<html><head></head></html>' ii_gui_services = mo_gui_mock ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = '<html><head></head></html>' ). ENDMETHOD. METHOD process_fails. TRY. " BTW this is valid HTML, maybe refactor the code ... mo_cut->zif_abapgit_gui_html_processor~process( iv_html = '<html><body></body></html>' ii_gui_services = mo_gui_mock ). cl_abap_unit_assert=>fail( ). CATCH zcx_abapgit_exception ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD find_head_closing_tag. "given DATA: lv_head_end TYPE i, lv_html TYPE string. lv_html = '<!DOCTYPE html><html><head><title>abapGit</title><link rel="stylesheet" type="text/css" ' && 'href="css/common.css"><link rel="stylesheet" type="text/css" href="css/ag-icons.css">' && '<link rel="stylesheet" type="text/css" href="css/theme-default.css"><script type="text/javascript"' && ' src="js/common.js"></script></head>'. "when TRY. lv_head_end = mo_cut->find_head_offset( iv_html = lv_html ). CATCH zcx_abapgit_exception. cl_abap_unit_assert=>fail( msg = 'HEAD closing tag could not be found' ). ENDTRY. "then cl_abap_unit_assert=>assert_equals( act = lv_head_end exp = 299 msg = 'Head closing tag was not found' ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 565, 62, 48317, 62, 76, 735, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 23870, 62, 12683, 1300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 23870, 62, 12683, 1300, 13, 198, 220, 220, 220, 42865, 13845, 62, 12957, 62, 23870, 62, 12683, 1300, 41876, 1259, 62, 23870, 62, 12683, 1300, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 48317, 62, 76, 735, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 30416, 93, 23870, 62, 562, 316, 13, 198, 220, 220, 220, 13845, 62, 12957, 62, 23870, 62, 12683, 1300, 12, 6371, 220, 796, 21628, 62, 6371, 13, 198, 220, 220, 220, 13845, 62, 12957, 62, 23870, 62, 12683, 1300, 12, 4906, 796, 21628, 62, 4906, 11405, 31051, 6, 11405, 21628, 62, 7266, 4906, 13, 198, 220, 220, 220, 13845, 62, 12957, 62, 23870, 62, 12683, 1300, 12, 7890, 796, 21628, 62, 5239, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 6494, 62, 41341, 62, 9288, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 6494, 62, 41341, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 6494, 62, 41341, 62, 9288, 13, 198, 198, 31631, 300, 83, 565, 62, 6494, 62, 41341, 62, 9288, 5550, 20032, 17941, 198, 220, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 285, 85, 62, 10459, 41876, 4731, 13, 198, 220, 220, 220, 42865, 6941, 62, 8968, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 6494, 62, 41341, 13, 198, 220, 220, 220, 42865, 6941, 62, 48317, 62, 76, 735, 41876, 4526, 37, 5390, 300, 565, 62, 48317, 62, 76, 735, 13, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 6494, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 10677, 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, 6494, 8, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 9058, 13, 198, 220, 220, 220, 337, 36252, 50, 1429, 62, 28004, 605, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 1429, 62, 4480, 62, 18302, 3760, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 1429, 62, 3919, 62, 25471, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 1429, 62, 69, 1768, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 2256, 62, 565, 2752, 62, 12985, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 6494, 62, 41341, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 8543, 62, 6494, 13, 198, 220, 220, 220, 374, 85, 62, 6494, 796, 21628, 62, 10677, 13, 198, 220, 220, 220, 45285, 11598, 11096, 440, 4093, 31302, 24181, 1546, 3963, 705, 59, 77, 6, 3268, 374, 85, 62, 6494, 13315, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 3605, 1370, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 9058, 13, 628, 220, 220, 220, 42865, 2376, 62, 562, 316, 62, 805, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 562, 316, 62, 37153, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 562, 316, 62, 805, 13, 198, 220, 220, 220, 2376, 62, 562, 316, 62, 805, 3784, 30238, 62, 562, 316, 7, 21628, 62, 6371, 796, 705, 25471, 14, 7635, 16, 13, 25471, 6, 21628, 62, 4906, 796, 705, 5239, 14, 25471, 6, 21628, 62, 45145, 796, 705, 67, 13513, 16, 6, 6739, 198, 220, 220, 220, 2376, 62, 562, 316, 62, 805, 3784, 30238, 62, 562, 316, 7, 21628, 62, 6371, 796, 705, 25471, 14, 7635, 17, 13, 25471, 6, 21628, 62, 4906, 796, 705, 5239, 14, 25471, 6, 21628, 62, 45145, 796, 705, 67, 13513, 17, 6, 6739, 198, 220, 220, 220, 2376, 62, 562, 316, 62, 805, 3784, 30238, 62, 562, 316, 7, 21628, 62, 6371, 796, 705, 25471, 14, 7635, 18, 13, 25471, 6, 21628, 62, 4906, 796, 705, 5239, 14, 25471, 6, 21628, 62, 45145, 796, 705, 67, 13513, 18, 6, 6739, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 8968, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 562, 316, 62, 805, 796, 2376, 62, 562, 316, 62, 805, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 48317, 62, 76, 735, 13, 628, 220, 220, 220, 285, 85, 62, 10459, 796, 8543, 62, 6494, 7, 198, 220, 220, 220, 220, 220, 4600, 27, 6494, 29, 59, 77, 63, 11405, 198, 220, 220, 220, 220, 220, 4600, 220, 1279, 2256, 29, 59, 77, 63, 11405, 198, 220, 220, 220, 220, 220, 4600, 220, 220, 220, 1279, 7839, 29, 397, 499, 38, 270, 3556, 7839, 29, 59, 77, 63 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
******************************************************************* * System-defined Include-files. * ******************************************************************* INCLUDE LZADCOSET_PARALLELTOP. " Global Declarations INCLUDE LZADCOSET_PARALLELUXX. " Function Modules ******************************************************************* * User-defined Include-files (if necessary). * ******************************************************************* * INCLUDE LZADCOSET_PARALLELF... " Subroutines * INCLUDE LZADCOSET_PARALLELO... " PBO-Modules * INCLUDE LZADCOSET_PARALLELI... " PAI-Modules * INCLUDE LZADCOSET_PARALLELE... " Events * INCLUDE LZADCOSET_PARALLELP... " Local class implement. * INCLUDE LZADCOSET_PARALLELT99. " ABAP Unit tests
[ 17174, 17174, 8162, 198, 9, 220, 220, 4482, 12, 23211, 40348, 12, 16624, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 220, 3268, 5097, 52, 7206, 406, 57, 2885, 34, 2640, 2767, 62, 27082, 1847, 2538, 27734, 3185, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8060, 16691, 24355, 198, 220, 3268, 5097, 52, 7206, 406, 57, 2885, 34, 2640, 2767, 62, 27082, 1847, 2538, 41596, 8051, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 15553, 3401, 5028, 198, 198, 17174, 17174, 8162, 198, 9, 220, 220, 11787, 12, 23211, 40348, 12, 16624, 357, 361, 3306, 737, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 9, 3268, 5097, 52, 7206, 406, 57, 2885, 34, 2640, 2767, 62, 27082, 1847, 2538, 43, 37, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3834, 81, 448, 1127, 198, 9, 3268, 5097, 52, 7206, 406, 57, 2885, 34, 2640, 2767, 62, 27082, 1847, 2538, 21982, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 350, 8202, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 406, 57, 2885, 34, 2640, 2767, 62, 27082, 1847, 2538, 31271, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8147, 40, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 406, 57, 2885, 34, 2640, 2767, 62, 27082, 1847, 2538, 2538, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18715, 198, 9, 3268, 5097, 52, 7206, 406, 57, 2885, 34, 2640, 2767, 62, 27082, 1847, 2538, 19930, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 3494, 13, 198, 9, 3268, 5097, 52, 7206, 406, 57, 2885, 34, 2640, 2767, 62, 27082, 1847, 2538, 27734, 2079, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 9564, 2969, 11801, 5254, 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,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1, 1, 1, 1, 1, 1 ]
CLASS y_check_sub_assign_read_table DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. ENDCLASS. CLASS Y_CHECK_SUB_ASSIGN_READ_TABLE IMPLEMENTATION. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC SUB_ASSIGN' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 0. settings-documentation = |{ c_docs_path-checks }sub-assign-read-table.md|. set_check_message( '"READ TABLE" with subsequent memory assignment should not be used!' ). ENDMETHOD. METHOD inspect_tokens. DATA fieldname TYPE string VALUE IS INITIAL. CHECK get_token_abs( statement-from ) = 'READ' AND get_token_abs( statement-from + 1 ) = 'TABLE'. " First Read Table LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING FIELD-SYMBOL(<token>) FROM statement-from TO statement-to. IF <token>-str CP 'FIELD-SYMBOL(<*>)'. fieldname = <token>-str. REPLACE 'FIELD-SYMBOL(' IN fieldname WITH ''. REPLACE ')' IN fieldname WITH ''. ENDIF. ENDLOOP. IF fieldname IS INITIAL. RETURN. ENDIF. " Second Read Table DATA(position) = index + 1. LOOP AT ref_scan_manager->get_statements( ) ASSIGNING FIELD-SYMBOL(<statement>) FROM structure-stmnt_from TO structure-stmnt_to. IF statement-to > <statement>-to. CONTINUE. ENDIF. IF get_token_abs( <statement>-from ) <> 'READ' AND get_token_abs( <statement>-from + 1 ) <> 'TABLE'. position = position + 1. CONTINUE. ENDIF. LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING <token> FROM <statement>-from TO <statement>-to. IF <token>-str <> fieldname. CONTINUE. ENDIF. DATA(check_configuration) = detect_check_configuration( <statement> ). IF check_configuration IS INITIAL. CONTINUE. ENDIF. raise_error( statement_level = <statement>-level statement_index = position statement_from = <statement>-from error_priority = check_configuration-prio ). ENDLOOP. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 7266, 62, 562, 570, 62, 961, 62, 11487, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 50, 10526, 62, 10705, 16284, 62, 15675, 62, 38148, 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, 28932, 62, 10705, 16284, 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, 7266, 12, 562, 570, 12, 961, 12, 11487, 13, 9132, 91, 13, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 1, 15675, 43679, 1, 351, 8840, 4088, 16237, 815, 407, 307, 973, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 628, 220, 220, 220, 42865, 2214, 3672, 41876, 4731, 26173, 8924, 3180, 3268, 2043, 12576, 13, 628, 220, 220, 220, 5870, 25171, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1267, 796, 705, 15675, 6, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1343, 352, 1267, 796, 705, 38148, 4458, 628, 220, 220, 220, 366, 3274, 4149, 8655, 198, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 83, 482, 641, 7, 1267, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 30001, 43734, 198, 220, 220, 220, 16034, 2643, 12, 6738, 5390, 2643, 12, 1462, 13, 198, 220, 220, 220, 220, 220, 16876, 1279, 30001, 29, 12, 2536, 16932, 705, 44603, 12, 23060, 10744, 3535, 7, 27, 9, 43734, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 3672, 796, 1279, 30001, 29, 12, 2536, 13, 198, 220, 220, 220, 220, 220, 220, 220, 45285, 11598, 705, 44603, 12, 23060, 10744, 3535, 10786, 3268, 2214, 3672, 13315, 705, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 45285, 11598, 705, 33047, 3268, 2214, 3672, 13315, 705, 4458, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 16876, 2214, 3672, 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, 366, 5498, 4149, 8655, 198, 220, 220, 220, 42865, 7, 9150, 8, 796, 6376, 1343, 352, 13, 628, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 14269, 3196, 7, 1267, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 26090, 43734, 198, 220, 220, 220, 16034, 4645, 12, 301, 76, 429, 62, 6738, 5390, 4645, 12, 301, 76, 429, 62, 1462, 13, 628, 220, 220, 220, 220, 220, 16876, 2643, 12, 1462, 1875, 1279, 26090, 29, 12, 1462, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 16876, 651, 62, 30001, 62, 8937, 7, 1279, 26090, 29, 12, 6738, 1267, 1279, 29, 705, 15675, 6, 198, 220, 220, 220, 220, 220, 5357, 651, 62, 30001, 62, 8937, 7, 1279, 26090, 29, 12, 6738, 1343, 352, 1267, 1279, 29, 705, 38148, 4458, 628, 220, 220, 220, 220, 220, 220, 220, 2292, 796, 2292, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 62, 37153, 3784, 1136, 62, 83, 482, 641, 7, 1267, 24994, 3528, 15871, 1279, 30001, 29, 198, 220, 220, 220, 220, 220, 16034, 1279, 26090, 29, 12, 6738, 5390, 1279, 26090, 29, 12, 1462, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 1279, 30001, 29, 12, 2536, 1279, 29, 2214, 3672, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 1279, 26090, 29, 6739, 198, 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, 43659, 8924, 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, 1279, 26090, 29, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 220, 220, 220, 220, 796, 2292, 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, 1279, 26090, 29, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 49336, 220, 220, 220, 220, 220, 796, 2198, 62, 11250, 3924, 12, 3448, 78, 6739, 628, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_json DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. METHODS object_two_keys FOR TESTING RAISING cx_static_check. METHODS basic_array FOR TESTING RAISING cx_static_check. METHODS nested_object FOR TESTING RAISING cx_static_check. METHODS test2 FOR TESTING RAISING cx_static_check. ENDCLASS. CLASS ltcl_json IMPLEMENTATION. METHOD object_two_keys. DATA lo_json TYPE REF TO zcl_oapi_json. CREATE OBJECT lo_json EXPORTING iv_json = '{"key1": "value1", "key2": "value2"}'. cl_abap_unit_assert=>assert_equals( act = lines( lo_json->members( '/' ) ) exp = 2 ). cl_abap_unit_assert=>assert_true( lo_json->exists( '/key1' ) ). cl_abap_unit_assert=>assert_equals( act = lo_json->value_string( '/key1' ) exp = 'value1' ). ENDMETHOD. METHOD basic_array. DATA lo_json TYPE REF TO zcl_oapi_json. CREATE OBJECT lo_json EXPORTING iv_json = '[42, 43]'. cl_abap_unit_assert=>assert_equals( act = lines( lo_json->members( '/' ) ) exp = 2 ). cl_abap_unit_assert=>assert_true( lo_json->exists( '/1' ) ). cl_abap_unit_assert=>assert_equals( act = lo_json->value_string( '/1' ) exp = '42' ). ENDMETHOD. METHOD nested_object. DATA lo_json TYPE REF TO zcl_oapi_json. CREATE OBJECT lo_json EXPORTING iv_json = '{"key1": {"key2": "value2"}}'. cl_abap_unit_assert=>assert_equals( act = lo_json->value_string( '/key1/key2' ) exp = 'value2' ). cl_abap_unit_assert=>assert_equals( act = lines( lo_json->members( '/key1/' ) ) exp = 1 ). ENDMETHOD. METHOD test2. DATA lo_json TYPE REF TO zcl_oapi_json. CREATE OBJECT lo_json EXPORTING iv_json = '{"key1": {"key2": "value2"}, "key3": 2}'. cl_abap_unit_assert=>assert_equals( act = lo_json->value_string( '/key3' ) exp = '2' ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 17752, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 25261, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 2134, 62, 11545, 62, 13083, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 4096, 62, 18747, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 28376, 62, 15252, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 17, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 17752, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 2134, 62, 11545, 62, 13083, 13, 628, 220, 220, 220, 42865, 2376, 62, 17752, 41876, 4526, 37, 5390, 1976, 565, 62, 78, 15042, 62, 17752, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 17752, 7788, 15490, 2751, 21628, 62, 17752, 796, 705, 4895, 2539, 16, 1298, 366, 8367, 16, 1600, 366, 2539, 17, 1298, 366, 8367, 17, 20662, 4458, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 3951, 7, 2376, 62, 17752, 3784, 30814, 7, 31051, 6, 1267, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 362, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 7942, 7, 2376, 62, 17752, 3784, 1069, 1023, 7, 31051, 2539, 16, 6, 1267, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2376, 62, 17752, 3784, 8367, 62, 8841, 7, 31051, 2539, 16, 6, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 8367, 16, 6, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4096, 62, 18747, 13, 628, 220, 220, 220, 42865, 2376, 62, 17752, 41876, 4526, 37, 5390, 1976, 565, 62, 78, 15042, 62, 17752, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 17752, 7788, 15490, 2751, 21628, 62, 17752, 796, 44438, 3682, 11, 5946, 60, 4458, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 3951, 7, 2376, 62, 17752, 3784, 30814, 7, 31051, 6, 1267, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 362, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 7942, 7, 2376, 62, 17752, 3784, 1069, 1023, 7, 31051, 16, 6, 1267, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2376, 62, 17752, 3784, 8367, 62, 8841, 7, 31051, 16, 6, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 3682, 6, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 28376, 62, 15252, 13, 628, 220, 220, 220, 42865, 2376, 62, 17752, 41876, 4526, 37, 5390, 1976, 565, 62, 78, 15042, 62, 17752, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 17752, 7788, 15490, 2751, 21628, 62, 17752, 796, 705, 4895, 2539, 16, 1298, 19779, 2539, 17, 1298, 366, 8367, 17, 1, 11709, 4458, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2376, 62, 17752, 3784, 8367, 62, 8841, 7, 31051, 2539, 16, 14, 2539, 17, 6, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 8367, 17, 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, 719, 796, 3951, 7, 2376, 62, 17752, 3784, 30814, 7, 31051, 2539, 16, 14, 6, 1267, 1267, 198, 220, 220, 220, 220, 220, 220, 1033, 796, 352, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1332, 17, 13, 628, 220, 220, 220, 42865, 2376, 62, 17752, 41876, 4526, 37, 5390, 1976, 565, 62, 78, 15042, 62, 17752, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 17752, 7788, 15490, 2751, 21628, 62, 17752, 796, 705, 4895, 2539, 16, 1298, 19779, 2539, 17, 1298, 366, 8367, 17, 25719, 366, 2539, 18, 1298, 362, 92, 4458, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2376, 62, 17752, 3784, 8367, 62, 8841, 7, 31051, 2539, 18, 6, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 17, 6, 6739, 628, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 YDK_CL_MAIL_SEND definition public final create public . public section. types: ty_uid_tab TYPE STANDARD TABLE OF twb_uname WITH DEFAULT KEY . types: ty_email_tab TYPE STANDARD TABLE OF adr6-smtp_addr WITH DEFAULT KEY . data SEND_REQUEST type ref to CL_BCS . data DOCUMENT type ref to CL_DOCUMENT_BCS . constants: BEGIN OF cemail_by_uid, detect_email_by_uid_and_send TYPE c LENGTH 1 VALUE 'X', send_both_by_uid_and_email TYPE c LENGTH 1 VALUE 'Y', END OF cemail_by_uid . constants: BEGIN OF cbody_type, text TYPE so_obj_tp VALUE 'TXT', html TYPE so_obj_tp VALUE 'HTM', END OF cbody_type . methods CONSTRUCTOR importing !SUBJECT type STRING !BODY_TYPE type SO_OBJ_TP !BODY type STRING !SENDER_UID type SYUNAME optional !SENDER_MAIL type ADR6-SMTP_ADDR optional . methods ADD_ATTACHMENT importing !FILE_EXT type STRING !FILE_NAME type STRING !CONTENT type ANY !IS_TEXT type FLAG . methods ADD_RECIPIENT importing !RECIPIENT_UID type SYUNAME optional !RECIPIENT_MAIL type ADR6-SMTP_ADDR optional !RECIPIENT_ANY type CLIKE optional !EMAIL_BY_UID type C optional !RECIPIENT_UID_TAB type TY_UID_TAB optional !RECIPIENT_EMAIL_TAB type TY_EMAIL_TAB optional . methods SEND importing !SEND_IMMEDIATELY type FLAG optional returning value(SENT_TO_ALL) type OS_BOOLEAN . class-methods GET_EMAIL_BY_UID importing !UID type SYUNAME returning value(EMAIL) type STRING . protected section. private section. types: BEGIN OF ty_attachment, type TYPE soodk-objtp, subject TYPE sood-objdes, contetnt TYPE string, contetntx TYPE xstring, END OF ty_attachment . types: ty_attachment_tab TYPE STANDARD TABLE OF ty_attachment . ENDCLASS. CLASS YDK_CL_MAIL_SEND IMPLEMENTATION. METHOD add_attachment. IF is_text = 'X'. document->add_attachment( i_attachment_type = CONV #( file_ext ) i_attachment_subject = CONV #( file_name ) i_attachment_size = CONV #( strlen( content ) ) i_att_content_text = cl_bcs_convert=>string_to_soli( content ) i_attachment_header = VALUE #( ( |&SO_FILENAME={ file_name }.{ file_ext }| ) ) ). ELSE. document->add_attachment( i_attachment_type = CONV #( file_ext ) i_attachment_subject = CONV #( file_name ) i_attachment_size = CONV #( xstrlen( content ) ) i_att_content_hex = cl_bcs_convert=>xstring_to_solix( content ) i_attachment_header = VALUE #( ( |&SO_FILENAME={ file_name }.{ file_ext }| ) ) ). ENDIF. ENDMETHOD. METHOD add_recipient. DATA: lo_recipient TYPE REF TO if_recipient_bcs. DATA: email TYPE string. DO 3 TIMES. CASE sy-index. WHEN 1. CHECK recipient_uid IS SUPPLIED. IF email_by_uid CA 'XY'. email = get_email_by_uid( recipient_uid ). IF NOT email IS INITIAL. lo_recipient = cl_cam_address_bcs=>create_internet_address( CONV #( email ) ). ENDIF. ENDIF. CHECK email_by_uid <> 'X'. lo_recipient = cl_sapuser_bcs=>create( recipient_uid ). WHEN 2. CHECK recipient_mail IS SUPPLIED. lo_recipient = cl_cam_address_bcs=>create_internet_address( recipient_mail ). WHEN 3. CHECK recipient_any IS SUPPLIED. IF recipient_any CS '@'. lo_recipient = cl_cam_address_bcs=>create_internet_address( CONV #( recipient_any ) ). ELSE. IF email_by_uid CA 'XY'. email = get_email_by_uid( CONV #( recipient_any ) ). IF NOT email IS INITIAL. lo_recipient = cl_cam_address_bcs=>create_internet_address( CONV #( email ) ). send_request->add_recipient( i_recipient = lo_recipient i_express = 'X' ). ENDIF. ENDIF. CHECK email_by_uid <> 'X'. lo_recipient = cl_sapuser_bcs=>create( CONV #( recipient_any ) ). ENDIF. ENDCASE. send_request->add_recipient( i_recipient = lo_recipient i_express = 'X' ). ENDDO. IF recipient_uid_tab IS SUPPLIED. LOOP AT recipient_uid_tab ASSIGNING FIELD-SYMBOL(<uid>). IF email_by_uid CA 'XY'. email = get_email_by_uid( <uid>-uname ). IF NOT email IS INITIAL. lo_recipient = cl_cam_address_bcs=>create_internet_address( CONV #( email ) ). send_request->add_recipient( i_recipient = lo_recipient i_express = 'X' ). ENDIF. ENDIF. CHECK email_by_uid <> 'X'. lo_recipient = cl_sapuser_bcs=>create( <uid>-uname ). send_request->add_recipient( i_recipient = lo_recipient i_express = 'X' ). ENDLOOP. ENDIF. IF recipient_email_tab IS SUPPLIED. LOOP AT recipient_email_tab ASSIGNING FIELD-SYMBOL(<recipient_email>). lo_recipient = cl_cam_address_bcs=>create_internet_address( <recipient_email> ). send_request->add_recipient( i_recipient = lo_recipient i_express = 'X' ). ENDLOOP. ENDIF. ENDMETHOD. METHOD constructor. DATA: lt_text TYPE bcsy_text. DATA: lo_sender TYPE REF TO if_sender_bcs. send_request = cl_bcs=>create_persistent( ). send_request->set_message_subject( ip_subject = subject ). CALL METHOD cl_bcs_convert=>string_to_soli EXPORTING iv_string = body RECEIVING et_soli = lt_text. document = cl_document_bcs=>create_document( i_type = body_type i_text = lt_text i_length = CONV #( strlen( body ) ) i_subject = CONV #( subject ) ). IF sender_mail IS NOT INITIAL. lo_sender = cl_cam_address_bcs=>create_internet_address( sender_mail ). ELSEIF sender_uid IS NOT INITIAL. lo_sender = cl_sapuser_bcs=>create( sender_uid ). ELSE. lo_sender = cl_sapuser_bcs=>create( sy-uname ). ENDIF. send_request->set_sender( i_sender = lo_sender ). ENDMETHOD. METHOD get_email_by_uid. SELECT SINGLE adr6~smtp_addr INTO email FROM usr21 JOIN adr6 ON adr6~persnumber = usr21~persnumber AND adr6~addrnumber = usr21~addrnumber WHERE usr21~bname = uid AND adr6~date_from = '00010101' AND adr6~smtp_addr <> ''. CHECK sy-subrc <> 0. DATA: pernr TYPE pa0105-pernr. SELECT SINGLE pernr INTO pernr FROM pa0105 WHERE usrid = uid AND subty = '0001' AND endda >= sy-datum AND begda <= sy-datum. CHECK sy-subrc = 0. SELECT SINGLE usrid INTO email FROM pa0105 WHERE pernr = pernr AND subty = 'MAIL' AND endda >= sy-datum AND begda <= sy-datum. ENDMETHOD. METHOD send. send_request->set_document( document ). IF send_immediately = 'X'. send_request->set_send_immediately( 'X' ). ENDIF. sent_to_all = send_request->send( i_with_error_screen = 'X' ). COMMIT WORK. ENDMETHOD. ENDCLASS.
[ 4871, 575, 48510, 62, 5097, 62, 5673, 4146, 62, 50, 10619, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 3858, 25, 198, 220, 220, 220, 1259, 62, 27112, 62, 8658, 41876, 49053, 9795, 43679, 3963, 665, 65, 62, 403, 480, 220, 13315, 5550, 38865, 35374, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 1259, 62, 12888, 62, 8658, 41876, 49053, 9795, 43679, 3963, 512, 81, 21, 12, 5796, 34788, 62, 29851, 13315, 5550, 38865, 35374, 764, 628, 220, 1366, 311, 10619, 62, 2200, 35780, 2099, 1006, 284, 7852, 62, 2749, 50, 764, 198, 220, 1366, 37760, 5883, 3525, 2099, 1006, 284, 7852, 62, 38715, 5883, 3525, 62, 2749, 50, 764, 198, 220, 38491, 25, 198, 220, 220, 220, 347, 43312, 3963, 269, 12888, 62, 1525, 62, 27112, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4886, 62, 12888, 62, 1525, 62, 27112, 62, 392, 62, 21280, 41876, 269, 406, 49494, 352, 26173, 8924, 705, 55, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 3758, 62, 16885, 62, 1525, 62, 27112, 62, 392, 62, 12888, 220, 220, 41876, 269, 406, 49494, 352, 26173, 8924, 705, 56, 3256, 198, 220, 220, 220, 220, 220, 23578, 220, 220, 3963, 269, 12888, 62, 1525, 62, 27112, 764, 198, 220, 38491, 25, 198, 220, 220, 220, 347, 43312, 3963, 269, 2618, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 41876, 523, 62, 26801, 62, 34788, 26173, 8924, 705, 51, 25010, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27711, 41876, 523, 62, 26801, 62, 34788, 26173, 8924, 705, 6535, 44, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 220, 220, 3963, 269, 2618, 62, 4906, 764, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 50, 10526, 23680, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 33, 33076, 62, 25216, 2099, 12809, 62, 9864, 41, 62, 7250, 198, 220, 220, 220, 220, 220, 5145, 33, 33076, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 62, 27586, 2099, 19704, 4944, 10067, 11902, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 1137, 62, 5673, 4146, 2099, 5984, 49, 21, 12, 12310, 7250, 62, 2885, 7707, 11902, 764, 198, 220, 5050, 27841, 62, 17139, 16219, 10979, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 25664, 62, 13918, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 25664, 62, 20608, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 37815, 3525, 2099, 15529, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 32541, 2099, 9977, 4760, 764, 198, 220, 5050, 27841, 62, 38827, 4061, 28495, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 38827, 4061, 28495, 62, 27586, 2099, 19704, 4944, 10067, 11902, 198, 220, 220, 220, 220, 220, 5145, 38827, 4061, 28495, 62, 5673, 4146, 2099, 5984, 49, 21, 12, 12310, 7250, 62, 2885, 7707, 11902, 198, 220, 220, 220, 220, 220, 5145, 38827, 4061, 28495, 62, 31827, 2099, 43749, 7336, 11902, 198, 220, 220, 220, 220, 220, 5145, 27630, 4146, 62, 17513, 62, 27586, 2099, 327, 11902, 198, 220, 220, 220, 220, 220, 5145, 38827, 4061, 28495, 62, 27586, 62, 5603, 33, 2099, 24412, 62, 27586, 62, 5603, 33, 11902, 198, 220, 220, 220, 220, 220, 5145, 38827, 4061, 28495, 62, 27630, 4146, 62, 5603, 33, 2099, 24412, 62, 27630, 4146, 62, 5603, 33, 11902, 764, 198, 220, 5050, 311, 10619, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 50, 10619, 62, 3955, 30733, 40, 1404, 30943, 2099, 9977, 4760, 11902, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 50, 3525, 62, 10468, 62, 7036, 8, 2099, 7294, 62, 33, 6684, 2538, 1565, 764, 198, 220, 1398, 12, 24396, 82, 17151, 62, 27630, 4146, 62, 17513, 62, 27586, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 27586, 2099, 19704, 4944, 10067, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 27630, 4146, 8, 2099, 19269, 2751, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 628, 220, 3858, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 1078, 15520, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 41876, 523, 375, 74, 12, 26801, 34788, 11, 198, 220, 220, 220, 220, 220, 2426, 220, 220, 41876, 523, 375, 12, 26801, 8906, 11, 198, 220, 220, 220, 220, 220, 542, 316, 429, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 542, 316, 429, 87, 41876, 2124, 8841, 11, 198, 220, 220, 220, 23578, 220, 220, 3963, 1259, 62, 1078, 15520, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 1259, 62, 1078, 15520, 62, 8658, 41876, 49053, 9795, 43679, 3963, 1259, 62, 1078, 15520, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 48510, 62, 5097, 62, 5673, 4146, 62, 50, 10619, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 751, 62, 1078, 15520, 13, 198, 220, 220, 220, 16876, 318, 62, 5239, 796, 705, 55, 4458, 198, 220, 220, 220, 220, 220, 3188, 3784, 2860, 62, 1078, 15520, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1078, 15520, 62, 4906, 220, 220, 220, 796, 7102, 53, 1303, 7, 2393, 62, 2302, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1078, 15520, 62, 32796, 796, 7102, 53, 1303, 7, 2393, 62, 3672, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1078, 15520, 62, 7857, 220, 220, 220, 796, 7102, 53, 1303, 7, 965, 11925, 7, 2695, 1267, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1078, 62, 11299, 62, 5239, 220, 220, 796, 537, 62, 65, 6359, 62, 1102, 1851, 14804, 8841, 62, 1462, 62, 82, 11106, 7, 2695, 1267, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_MQBA_PINS_MQTT_PROTOCOL definition public create public . public section. interfaces ZIF_MQBA_API_MQTT_PROXY . interfaces IF_MQTT_EVENT_HANDLER . methods CONSTRUCTOR . class-methods CREATE returning value(RR_PROXY) type ref to ZIF_MQBA_API_MQTT_PROXY . protected section. data MS_CONFIG_APC type APC_CONNECT_OPTIONS . data MS_WILL_TOPIC type ZMQBA_API_S_EBR_MSG . data MT_REC_MSG type ZMQBA_API_T_EBR_MSG . data MV_CLIENT_ID type STRING . data MV_KEEP_ALIVE type I value 60 ##NO_TEXT. data MV_PREFIX type STRING . data MR_CFG type ref to ZIF_MQBA_CFG_BROKER . data MR_CLIENT type ref to IF_MQTT_CLIENT . data MV_ERROR type I . data MV_ERROR_TEXT type STRING . data MR_CALLBACK_NMSG type ref to ZIF_MQBA_CALLBACK_NEW_MSG . methods ERROR_RESET . methods ERROR_SET importing !IV_TEXT type DATA !IV_CODE type I default 500 . methods TOPIC_TO_EXTERNAL importing !IV_TOPIC type STRING returning value(RV_TOPIC) type STRING . methods TOPIC_TO_INTERNAL importing !IV_TOPIC type STRING returning value(RV_TOPIC) type STRING . private section. ENDCLASS. CLASS ZCL_MQBA_PINS_MQTT_PROTOCOL IMPLEMENTATION. method CONSTRUCTOR. mv_client_id = |MQBA{ sy-sysid }{ sy-mandt }{ sy-datum }{ sy-uzeit }|. endmethod. method CREATE. rr_proxy = new ZCL_MQBA_PINS_MQTT_PROTOCOL( ). endmethod. method ERROR_RESET. clear: mv_error, mv_error_text. endmethod. method ERROR_SET. mv_error_text = iv_text. mv_error = iv_code. endmethod. method IF_MQTT_EVENT_HANDLER~ON_CONNECT. error_reset( ). endmethod. method IF_MQTT_EVENT_HANDLER~ON_DISCONNECT. get TIME STAMP FIELD data(lv_now). error_set( iv_text = |Disconnected: { lv_now } - { i_status->get_text( ) }| iv_code = 500 ). endmethod. METHOD if_mqtt_event_handler~on_message. * --------- local data DATA: ls_message TYPE zmqba_api_s_ebr_msg. * --------- try to forward/save TRY. * create msg ls_message-topic = topic_to_internal( i_topic_name ). ls_message-qos = CONV #( i_message->get_qos( ) ). ls_message-retain = i_message->get_retain( ). ls_message-payload = i_message->get_text( ). ls_message-msg_id = i_envelope->get_message_number( ). * check for direct forwarding IF mr_callback_nmsg IS NOT INITIAL. IF mr_callback_nmsg->on_message( ls_message ) EQ abap_false. * fallback: add to internal table and process later APPEND ls_message TO mt_rec_msg. ENDIF. ELSE. * store APPEND ls_message TO mt_rec_msg. ENDIF. CATCH cx_mqtt_error INTO DATA(lx_mqtt_error). mv_error_text = |ERROR: { lx_mqtt_error->get_text( ) }|. mv_error = 500. ENDTRY. ENDMETHOD. method IF_MQTT_EVENT_HANDLER~ON_PUBLISH. endmethod. method IF_MQTT_EVENT_HANDLER~ON_SUBSCRIBE. endmethod. method IF_MQTT_EVENT_HANDLER~ON_UNSUBSCRIBE. endmethod. METHOD topic_to_external. rv_topic = iv_topic. CHECK iv_topic IS NOT INITIAL. CHECK mr_cfg IS NOT INITIAL. DATA(ls_cfg) = mr_cfg->get_config( ). CHECK ls_cfg-prefix IS NOT INITIAL. DATA(lv_prefix) = |{ ls_cfg-prefix }|. IF NOT iv_topic CP '*/' AND NOT iv_topic CP '/*'. rv_topic = ls_cfg-prefix && '/' && iv_topic. ELSE. rv_topic = ls_cfg-prefix && iv_topic. ENDIF. IF rv_topic CS '//'. REPLACE ALL OCCURRENCES OF '//' IN rv_topic WITH '/'. ENDIF. ENDMETHOD. METHOD topic_to_internal. rv_topic = iv_topic. CHECK mr_cfg IS NOT INITIAL. DATA(ls_cfg) = mr_cfg->get_config( ). CHECK ls_cfg-prefix IS NOT INITIAL. DATA(lv_check) = ls_cfg-prefix && '*'. CHECK iv_topic CP lv_check. DATA(lv_len) = strlen( ls_cfg-prefix ). rv_topic = iv_topic+lv_len. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~connect. * ------ local data DATA: ls_proxy TYPE apc_proxy. * ------ init/check rv_success = abap_false. error_set( 'mqtt connect' ). CHECK mr_client IS INITIAL. CHECK mr_cfg IS NOT INITIAL. CHECK mv_client_id IS NOT INITIAL. * ------- prepare DATA(ls_cfg) = mr_cfg->get_config( ). IF ls_cfg-proxy_host IS NOT INITIAL. ls_proxy-host = ls_cfg-proxy_host. ls_proxy-port = ls_cfg-proxy_port. ls_proxy-username = ls_cfg-proxy_user. ls_proxy-password = ls_cfg-proxy_pw. ENDIF. * ------- create client TRY. " set HTTP(S) proxy setting, if specified mr_client = cl_mqtt_client_manager=>create_by_url( i_url = CONV string( ls_cfg-broker_url ) * i_protocol_version = pversion i_event_handler = me i_proxy = ls_proxy * i_ssl_id = sslid ). " MQTT Client " MQTT connect options DATA(lo_mqtt_connect_options) = cl_mqtt_connect_options=>create( ). lo_mqtt_connect_options->set_client_id( mv_client_id ). lo_mqtt_connect_options->set_username( CONV string( ls_cfg-broker_user ) ). lo_mqtt_connect_options->set_password_as_text( CONV string( ls_cfg-broker_pw ) ). lo_mqtt_connect_options->set_keep_alive( mv_keep_alive ). * " set MQTT connection options last will IF ms_will_topic IS NOT INITIAL. DATA(lo_will_message) = cl_mqtt_message=>create( ). lo_will_message->set_qos( CONV if_mqtt_types=>ty_mqtt_qos( ms_will_topic-qos ) ). lo_will_message->set_retain( ms_will_topic-retain ). lo_will_message->set_text( ms_will_topic-payload ). lo_mqtt_connect_options->set_will( i_topic_name = ms_will_topic-topic i_message = lo_will_message ). ENDIF. * ------------ connect mr_client->connect( EXPORTING i_mqtt_options = lo_mqtt_connect_options " MQTT connect options i_apc_options = ms_config_apc ). " Structure APC connect options * ------------- log LOG-POINT ID zmqba_gw SUBKEY 'ZIF_MQBA_API_MQTT_PROXY~CONNECT' FIELDS ls_cfg-broker_url. CATCH cx_mqtt_error INTO DATA(lx_error). error_set( lx_error->get_text( ) ). CLEAR mr_client. RETURN. ENDTRY. * ----- success error_reset( ). rv_success = abap_true. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~destroy. zif_mqba_api_mqtt_proxy~disconnect( ). ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~disconnect. * ------ init rv_success = abap_false. error_set( 'mqtt disconnect' ). * ------- check client IF mr_client IS BOUND. TRY. mr_client->disconnect( ). CATCH cx_mqtt_error INTO DATA(lx_mqtt_error). DATA(lv_error_text) = lx_mqtt_error->get_text( ). error_set( lv_error_text ). RETURN. ENDTRY. CLEAR mr_client. ENDIF. * ------ success error_reset( ). rv_success = abap_true. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~get_client_id. rv_client_id = mv_client_id. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~get_client_state. * ------- check client IF mr_client IS INITIAL. rv_state = zif_mqba_api_mqtt_proxy~c_state_not_initialized. RETURN. ENDIF. * check TRY. DATA(lv_conn_state) = mr_client->get_context( )->get_connection_state( ). CASE lv_conn_state. WHEN if_mqtt_types=>connection_state-connecting. rv_state = zif_mqba_api_mqtt_proxy~c_state_connecting. WHEN if_mqtt_types=>connection_state-connected. rv_state = zif_mqba_api_mqtt_proxy~c_state_connected. WHEN if_mqtt_types=>connection_state-disconnecting. rv_state = zif_mqba_api_mqtt_proxy~c_state_disconnecting. WHEN if_mqtt_types=>connection_state-disconnected. rv_state = zif_mqba_api_mqtt_proxy~c_state_disconnected. WHEN OTHERS. rv_state = zif_mqba_api_mqtt_proxy~c_state_unknown. ENDCASE. CATCH cx_mqtt_error INTO DATA(lx_mqtt_error). rv_state = zif_mqba_api_mqtt_proxy~c_state_error && '_' && lx_mqtt_error->get_text( ). ENDTRY. ENDMETHOD. method ZIF_MQBA_API_MQTT_PROXY~GET_ERROR. rv_error = mv_error. endmethod. method ZIF_MQBA_API_MQTT_PROXY~GET_ERROR_TEXT. rv_error = mv_error_text. endmethod. METHOD zif_mqba_api_mqtt_proxy~get_received_messages. rt_msg = mt_rec_msg. IF iv_delete EQ abap_true. CLEAR: mt_rec_msg. ENDIF. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~is_connected. * init error_reset( ). rv_success = abap_false. IF mr_client IS INITIAL. error_set( 'mqtt is not initialized' ). RETURN. ENDIF. * check TRY. DATA(lv_conn_state) = mr_client->get_context( )->get_connection_state( ). DATA(lv_conn_id) = mr_client->get_context( )->get_connection_id( ). CASE lv_conn_state. WHEN if_mqtt_types=>connection_state-connecting OR if_mqtt_types=>connection_state-connected OR if_mqtt_types=>connection_state-disconnecting. rv_success = abap_true. WHEN if_mqtt_types=>connection_state-disconnected. WHEN OTHERS. ENDCASE. CATCH cx_mqtt_error INTO DATA(lx_mqtt_error). DATA(lv_error_text) = lx_mqtt_error->get_text( ). error_set( lv_error_text ). RETURN. ENDTRY. ENDMETHOD. method ZIF_MQBA_API_MQTT_PROXY~IS_ERROR. rv_error = cond #( when mv_error eq 0 and mv_error_text is INITIAL then abap_false else abap_true ). endmethod. METHOD zif_mqba_api_mqtt_proxy~publish. * -------- check rv_success = abap_false. IF mr_client IS INITIAL AND zif_mqba_api_mqtt_proxy~is_connected( ) EQ abap_false. RETURN. ENDIF. * -------- publish TRY. DATA(lr_msg) = cl_mqtt_message=>create( ). lr_msg->set_text( iv_payload ). lr_msg->set_qos( i_qos = CONV if_mqtt_types=>ty_mqtt_qos( iv_qos ) ). lr_msg->set_retain( iv_retain ). DATA(lv_topic) = topic_to_external( iv_topic ). "DO dy_publish_send_nr TIMES. mr_client->publish( EXPORTING i_topic_name = lv_topic i_message = lr_msg IMPORTING e_envelope = DATA(lr_envelope) ). "dy_publish_message_nr = lo_envelope_publish->get_message_number( ). "ENDDO. rv_success = abap_true. CATCH cx_mqtt_error INTO DATA(lx_mqtt_error). DATA(lv_error_text) = lx_mqtt_error->get_text( ). rv_success = abap_false. ENDTRY. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~reconnect. * disconnect zif_mqba_api_mqtt_proxy~disconnect( ). * connect rv_success = zif_mqba_api_mqtt_proxy~connect( ). ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~set_callback_new_msg. mr_callback_nmsg = ir_callback. rr_self = me. ENDMETHOD. method ZIF_MQBA_API_MQTT_PROXY~SET_CLIENT_ID. mv_client_id = iv_client_id. rr_self = me. endmethod. METHOD zif_mqba_api_mqtt_proxy~set_config. * init rv_success = abap_false. CHECK mr_cfg IS INITIAL. CHECK ir_cfg IS NOT INITIAL. * check config DATA(ls_cfg) = ir_cfg->get_config( ). CHECK ls_cfg IS NOT INITIAL AND ls_cfg-broker_url IS NOT INITIAL. * set some important infos IF ls_cfg-client_id IS NOT INITIAL. mv_client_id = ls_cfg-client_id. ENDIF. IF ls_cfg-prefix IS NOT INITIAL. mv_prefix = ls_cfg-prefix. ENDIF. IF ls_cfg-keep_alive GT 0. mv_keep_alive = ls_cfg-keep_alive. ENDIF. * set to internal and leave mr_cfg = ir_cfg. rv_success = abap_true. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~set_config_apc. ms_config_apc = is_apc. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~set_last_will. ms_will_topic-topic = iv_topic. ms_will_topic-payload = iv_payload. ms_will_topic-qos = iv_qos. ms_will_topic-retain = iv_retain. ENDMETHOD. METHOD zif_mqba_api_mqtt_proxy~subscribe_to. * ------ init rv_success = abap_false. CHECK iv_topic IS NOT INITIAL. CHECK zif_mqba_api_mqtt_proxy~is_connected( ) EQ abap_true. * ------ subscribe TRY. DATA(lv_topic) = CONV string( iv_topic ). IF iv_use_prefix EQ abap_true. lv_topic = topic_to_external( iv_topic ). ENDIF. DATA: lt_topic_filter_qos TYPE if_mqtt_types=>tt_mqtt_topic_filter_qos. lt_topic_filter_qos = VALUE #( ( topic_filter = lv_topic qos = CONV if_mqtt_types=>ty_mqtt_qos( iv_qos ) ) ). mr_client->subscribe( EXPORTING i_topic_filter_qos = lt_topic_filter_qos IMPORTING e_envelope = DATA(lo_envelope_subscribe) ). DATA(lv_id) = lo_envelope_subscribe->get_message_number( ). rv_success = abap_true. CATCH cx_mqtt_error INTO DATA(lx_mqtt_error). mv_error_text = lx_mqtt_error->get_text( ). mv_error = 500. ENDTRY. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 49215, 4339, 62, 47, 20913, 62, 49215, 15751, 62, 4805, 2394, 4503, 3535, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 20314, 1168, 5064, 62, 49215, 4339, 62, 17614, 62, 49215, 15751, 62, 31190, 34278, 764, 198, 220, 20314, 16876, 62, 49215, 15751, 62, 20114, 3525, 62, 39, 6981, 39878, 764, 628, 220, 5050, 7102, 46126, 1581, 764, 198, 220, 1398, 12, 24396, 82, 29244, 6158, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 21095, 62, 31190, 34278, 8, 2099, 1006, 284, 1168, 5064, 62, 49215, 4339, 62, 17614, 62, 49215, 15751, 62, 31190, 34278, 764, 198, 24326, 2665, 13, 628, 220, 1366, 6579, 62, 10943, 16254, 62, 2969, 34, 2099, 3486, 34, 62, 10943, 48842, 62, 3185, 51, 11053, 764, 198, 220, 1366, 6579, 62, 54, 8267, 62, 35222, 2149, 2099, 1168, 49215, 4339, 62, 17614, 62, 50, 62, 36, 11473, 62, 5653, 38, 764, 198, 220, 1366, 19308, 62, 38827, 62, 5653, 38, 2099, 1168, 49215, 4339, 62, 17614, 62, 51, 62, 36, 11473, 62, 5653, 38, 764, 198, 220, 1366, 32947, 62, 5097, 28495, 62, 2389, 2099, 19269, 2751, 764, 198, 220, 1366, 32947, 62, 42, 35238, 62, 1847, 9306, 2099, 314, 1988, 3126, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 32947, 62, 47, 31688, 10426, 2099, 19269, 2751, 764, 198, 220, 1366, 17242, 62, 22495, 38, 2099, 1006, 284, 1168, 5064, 62, 49215, 4339, 62, 22495, 38, 62, 11473, 11380, 1137, 764, 198, 220, 1366, 17242, 62, 5097, 28495, 2099, 1006, 284, 16876, 62, 49215, 15751, 62, 5097, 28495, 764, 198, 220, 1366, 32947, 62, 24908, 2099, 314, 764, 198, 220, 1366, 32947, 62, 24908, 62, 32541, 2099, 19269, 2751, 764, 198, 220, 1366, 17242, 62, 34, 7036, 31098, 62, 45, 5653, 38, 2099, 1006, 284, 1168, 5064, 62, 49215, 4339, 62, 34, 7036, 31098, 62, 13965, 62, 5653, 38, 764, 628, 220, 5050, 33854, 62, 19535, 2767, 764, 198, 220, 5050, 33854, 62, 28480, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 32541, 2099, 42865, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 34, 16820, 2099, 314, 4277, 5323, 764, 198, 220, 5050, 28662, 2149, 62, 10468, 62, 6369, 31800, 1847, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 35222, 2149, 2099, 19269, 2751, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 35222, 2149, 8, 2099, 19269, 2751, 764, 198, 220, 5050, 28662, 2149, 62, 10468, 62, 1268, 31800, 1847, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 35222, 2149, 2099, 19269, 2751, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 35222, 2149, 8, 2099, 19269, 2751, 764, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 49215, 4339, 62, 47, 20913, 62, 49215, 15751, 62, 4805, 2394, 4503, 3535, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 7102, 46126, 1581, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 16366, 62, 312, 796, 930, 49215, 4339, 90, 827, 12, 17597, 312, 1782, 90, 827, 12, 22249, 83, 1782, 90, 827, 12, 19608, 388, 1782, 90, 827, 12, 84, 2736, 270, 1782, 91, 13, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 29244, 6158, 13, 198, 220, 220, 220, 374, 81, 62, 36436, 796, 649, 1168, 5097, 62, 49215, 4339, 62, 47, 20913, 62, 49215, 15751, 62, 4805, 2394, 4503, 3535, 7, 6739, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 33854, 62, 19535, 2767, 13, 198, 220, 220, 220, 1598, 25, 285, 85, 62, 18224, 11, 285, 85, 62, 18224, 62, 5239, 13, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 33854, 62, 28480, 13, 198, 220, 220, 220, 285, 85, 62, 18224, 62, 5239, 796, 21628, 62, 5239, 13, 198, 220, 220, 220, 285, 85, 62, 18224, 220, 220, 220, 220, 220, 796, 21628, 62, 8189, 13, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 16876, 62, 49215, 15751, 62, 20114, 3525, 62, 39, 6981, 39878, 93, 1340, 62, 10943, 48842, 13, 198, 220, 220, 220, 4049, 62, 42503, 7, 6739, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 16876, 62, 49215, 15751, 62, 20114, 3525, 62, 39, 6981, 39878, 93, 1340, 62, 26288, 10943, 48842, 13, 198, 220, 220, 220, 651, 20460, 3563, 23518, 18930, 24639, 1366, 7, 6780, 62, 2197, 737, 198, 220, 220, 220, 4049, 62, 2617, 7, 21628, 62, 5239, 796, 220, 930, 7279, 15236, 25, 1391, 300, 85, 62, 2197, 1782, 532, 1391, 1312, 62, 13376, 3784, 1136, 62, 5239, 7, 1267, 1782, 91, 220, 21628, 62, 8189, 796, 5323, 6739, 198, 220, 886, 24396, 13, 628, 198, 220, 337, 36252, 611, 62, 76, 80, 926, 62, 15596, 62, 30281, 93, 261, 62, 20500, 13, 198, 198, 9, 45337, 1957, 1366, 198, 220, 220, 220, 42865, 25, 43979, 62, 20500, 41876, 1976, 76, 80, 7012, 62, 15042, 62, 82, 62, 68, 1671, 62, 19662, 13, 198, 198, 9, 45337, 1949, 284, 2651, 14, 21928, 198, 220, 220, 220, 7579, 56, 13, 198, 198, 9, 220, 220, 220, 220, 220, 220, 2251, 31456, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20500, 12, 26652, 220, 220, 220, 220, 220, 796, 7243, 62, 1462, 62, 32538, 7, 1312, 62, 26652, 62, 3672, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20500, 12, 80, 418, 220, 220, 220, 220, 220, 220, 220, 796, 7102, 53, 1303, 7, 1312, 62, 20500, 3784, 1136, 62, 80, 418, 7, 1267, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20500, 12, 1186, 391, 220, 220, 220, 220, 796, 1312, 62, 20500, 3784, 1136, 62, 1186, 391, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20500, 12, 15577, 2220, 220, 220, 220, 796, 1312, 62, 20500, 3784, 1136, 62, 5239, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20500, 12, 19662, 62, 312, 220, 220, 220, 220, 796 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
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 *' OR ls_statement-str = '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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 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_html_action_utils DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS field_keys_to_upper CHANGING !ct_fields TYPE tihttpnvp . CLASS-METHODS parse_fields IMPORTING !iv_string TYPE clike 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 add_field IMPORTING !iv_name TYPE string !ig_field TYPE any CHANGING !ct_field TYPE tihttpnvp . CLASS-METHODS get_field IMPORTING !iv_name TYPE string !it_field TYPE tihttpnvp 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 jump_decode IMPORTING !iv_string TYPE clike EXPORTING !ev_obj_type TYPE tadir-object !ev_obj_name TYPE tadir-obj_name RAISING zcx_abapgit_exception . CLASS-METHODS dir_encode IMPORTING !iv_path TYPE string RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS dir_decode IMPORTING !iv_string TYPE clike RETURNING VALUE(rv_path) TYPE string RAISING zcx_abapgit_exception . CLASS-METHODS file_encode IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !ig_file TYPE any "assuming ty_file RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS obj_encode IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key !ig_object TYPE any "assuming ty_item RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS file_obj_decode IMPORTING !iv_string TYPE clike EXPORTING !ev_key TYPE zif_abapgit_persistence=>ty_repo-key !eg_file TYPE any "assuming ty_file !eg_object TYPE any "assuming ty_item RAISING zcx_abapgit_exception . CLASS-METHODS dbkey_encode IMPORTING !is_key TYPE zif_abapgit_persistence=>ty_content RETURNING VALUE(rv_string) TYPE string . CLASS-METHODS dbkey_decode IMPORTING !iv_string TYPE clike RETURNING VALUE(rs_key) TYPE zif_abapgit_persistence=>ty_content . CLASS-METHODS stage_decode IMPORTING !iv_getdata TYPE clike EXPORTING !ev_key TYPE zif_abapgit_persistence=>ty_repo-key !ev_seed TYPE string RAISING zcx_abapgit_exception . PRIVATE SECTION. 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_decode. DATA: lt_fields TYPE tihttpnvp. lt_fields = parse_fields_upper_case_name( cl_http_utility=>unescape_url( |{ iv_string }| ) ). get_field( EXPORTING iv_name = 'TYPE' it_field = lt_fields CHANGING cg_field = rs_key-type ). get_field( EXPORTING iv_name = 'VALUE' it_field = lt_fields CHANGING cg_field = rs_key-value ). 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_decode. DATA: lt_fields TYPE tihttpnvp. lt_fields = parse_fields( iv_string ). get_field( EXPORTING iv_name = 'PATH' it_field = lt_fields CHANGING cg_field = rv_path ). 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 file_obj_decode. DATA: lt_fields TYPE tihttpnvp. ASSERT eg_file IS SUPPLIED OR eg_object IS SUPPLIED. CLEAR: ev_key, eg_file, eg_object. lt_fields = parse_fields_upper_case_name( iv_string ). get_field( EXPORTING iv_name = 'KEY' it_field = lt_fields CHANGING cg_field = ev_key ). IF eg_file IS SUPPLIED. get_field( EXPORTING iv_name = 'PATH' it_field = lt_fields CHANGING cg_field = eg_file ). get_field( EXPORTING iv_name = 'FILENAME' it_field = lt_fields CHANGING cg_field = eg_file ). ENDIF. IF eg_object IS SUPPLIED. get_field( EXPORTING iv_name = 'OBJ_TYPE' it_field = lt_fields CHANGING cg_field = eg_object ). get_field( EXPORTING iv_name = 'OBJ_NAME' it_field = lt_fields CHANGING cg_field = eg_object ). ENDIF. ENDMETHOD. METHOD get_field. 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. CASE cl_abap_typedescr=>describe_by_data( cg_field )->kind. WHEN cl_abap_typedescr=>kind_elem. cg_field = <ls_field>-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> = <ls_field>-value. WHEN OTHERS. ASSERT 0 = 1. ENDCASE. ENDMETHOD. METHOD jump_decode. DATA: lt_fields TYPE tihttpnvp. lt_fields = parse_fields( iv_string ). get_field( EXPORTING iv_name = 'TYPE' it_field = lt_fields CHANGING cg_field = ev_obj_type ). get_field( EXPORTING iv_name = 'NAME' it_field = lt_fields CHANGING cg_field = ev_obj_name ). 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 stringtab, 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. ls_field-name = substring_before( val = <lv_substring> sub = '=' ). ls_field-name = unescape( ls_field-name ). ls_field-value = substring_after( val = <lv_substring> sub = '=' ). ls_field-value = unescape( ls_field-value ). INSERT ls_field INTO TABLE rt_fields. ENDLOOP. ENDMETHOD. METHOD parse_fields_upper_case_name. rt_fields = parse_fields( iv_string ). field_keys_to_upper( CHANGING ct_fields = rt_fields ). ENDMETHOD. METHOD stage_decode. DATA: lt_fields TYPE tihttpnvp. lt_fields = parse_fields_upper_case_name( iv_getdata ). get_field( EXPORTING iv_name = 'KEY' it_field = lt_fields CHANGING cg_field = ev_key ). get_field( EXPORTING iv_name = 'SEED' it_field = lt_fields CHANGING cg_field = ev_seed ). ASSERT NOT ev_key IS INITIAL. 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 '?'. 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, 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, 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, 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, 751, 62, 3245, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 328, 62, 3245, 220, 220, 41876, 597, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 3245, 220, 220, 41876, 46668, 4023, 77, 36133, 764, 198, 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, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 3245, 41876, 46668, 4023, 77, 36133, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 66, 70, 62, 3245, 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, 4391, 62, 12501, 1098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8841, 220, 220, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1990, 62, 26801, 62, 4906, 41876, 36264, 343, 12, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1990, 62, 26801, 62, 3672, 41876, 36264, 343, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 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, 198, 220, 220, 220, 42715, 12, 49273, 50, 26672, 62, 12501, 1098, 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, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 6978, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 32935, 1259, 62, 7753, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class zcl_beer_song definition public. public section. methods: recite importing initial_bottles_count type i take_down_count type i returning value(result) type string_table. private section. methods: create_verse importing bottle type i returning value(result) type string_table, create_verse_for_positive importing bottle type i returning value(result) type string_table, create_verse_for_zero returning value(result) type string_table. endclass. class zcl_beer_song implementation. method recite. data(current_bottle) = initial_bottles_count. do take_down_count times. append lines of create_verse( current_bottle ) to result. current_bottle -= 1. if current_bottle <> initial_bottles_count - take_down_count. append `` to result. endif. enddo. endmethod. method create_verse. result = cond #( when bottle > 0 then create_verse_for_positive( bottle ) else create_verse_for_zero( ) ). endmethod. method create_verse_for_positive. data(bottle_count_with_unit) = |{ bottle } bottle{ cond #( when bottle > 1 then 's' ) }|. data(what_to_take_down) = cond #( when bottle > 1 then 'one' else 'it' ). data(bottles_left) = switch #( bottle - 1 when 0 then 'no more bottles' when 1 then '1 bottle' else |{ bottle - 1 } bottles| ). result = value #( ( |{ bottle_count_with_unit } of beer on the wall, { bottle_count_with_unit } of beer.| ) ( |Take { what_to_take_down } down and pass it around, { bottles_left } of beer on the wall.| ) ). endmethod. method create_verse_for_zero. result = value #( ( `No more bottles of beer on the wall, no more bottles of beer.` ) ( `Go to the store and buy some more, 99 bottles of beer on the wall.` ) ). endmethod. endclass.
[ 4871, 1976, 565, 62, 42428, 62, 34050, 6770, 1171, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 46528, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 4238, 62, 10985, 829, 62, 9127, 2099, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1011, 62, 2902, 62, 9127, 220, 220, 220, 220, 220, 220, 2099, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 1988, 7, 20274, 8, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 4731, 62, 11487, 13, 628, 220, 2839, 2665, 13, 198, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 2251, 62, 4399, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 9294, 220, 220, 220, 220, 220, 220, 220, 2099, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 1988, 7, 20274, 8, 2099, 4731, 62, 11487, 11, 628, 220, 220, 220, 220, 220, 2251, 62, 4399, 62, 1640, 62, 24561, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 9294, 220, 220, 220, 220, 220, 220, 220, 2099, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 1988, 7, 20274, 8, 2099, 4731, 62, 11487, 11, 628, 220, 220, 220, 220, 220, 2251, 62, 4399, 62, 1640, 62, 22570, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 1988, 7, 20274, 8, 2099, 4731, 62, 11487, 13, 198, 437, 4871, 13, 628, 198, 4871, 1976, 565, 62, 42428, 62, 34050, 7822, 13, 198, 220, 2446, 46528, 13, 198, 220, 220, 220, 1366, 7, 14421, 62, 10985, 293, 8, 796, 4238, 62, 10985, 829, 62, 9127, 13, 628, 220, 220, 220, 466, 1011, 62, 2902, 62, 9127, 1661, 13, 198, 220, 220, 220, 220, 220, 24443, 3951, 286, 2251, 62, 4399, 7, 1459, 62, 10985, 293, 1267, 284, 1255, 13, 198, 220, 220, 220, 220, 220, 1459, 62, 10985, 293, 48185, 352, 13, 628, 220, 220, 220, 220, 220, 611, 1459, 62, 10985, 293, 1279, 29, 4238, 62, 10985, 829, 62, 9127, 532, 1011, 62, 2902, 62, 9127, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 7559, 284, 1255, 13, 198, 220, 220, 220, 220, 220, 45762, 13, 198, 220, 220, 220, 886, 4598, 13, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 2251, 62, 4399, 13, 198, 220, 220, 220, 1255, 796, 1779, 1303, 7, 198, 220, 220, 220, 220, 220, 618, 9294, 1875, 657, 788, 2251, 62, 4399, 62, 1640, 62, 24561, 7, 9294, 1267, 198, 220, 220, 220, 220, 220, 2073, 2251, 62, 4399, 62, 1640, 62, 22570, 7, 220, 1267, 198, 220, 220, 220, 6739, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 2251, 62, 4399, 62, 1640, 62, 24561, 13, 198, 220, 220, 220, 1366, 7, 10985, 293, 62, 9127, 62, 4480, 62, 20850, 8, 796, 930, 90, 9294, 1782, 9294, 90, 1779, 1303, 7, 618, 9294, 1875, 352, 788, 705, 82, 6, 1267, 1782, 91, 13, 198, 220, 220, 220, 1366, 7, 10919, 62, 1462, 62, 20657, 62, 2902, 8, 796, 1779, 1303, 7, 618, 9294, 1875, 352, 788, 705, 505, 6, 2073, 705, 270, 6, 6739, 198, 220, 220, 220, 1366, 7, 10985, 829, 62, 9464, 8, 796, 5078, 1303, 7, 9294, 532, 352, 198, 220, 220, 220, 220, 220, 618, 657, 788, 705, 3919, 517, 14096, 6, 198, 220, 220, 220, 220, 220, 618, 352, 788, 705, 16, 9294, 6, 198, 220, 220, 220, 220, 220, 2073, 930, 90, 9294, 532, 352, 1782, 14096, 91, 198, 220, 220, 220, 6739, 628, 220, 220, 220, 1255, 796, 1988, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 930, 90, 9294, 62, 9127, 62, 4480, 62, 20850, 1782, 286, 6099, 319, 262, 3355, 11, 1391, 9294, 62, 9127, 62, 4480, 62, 20850, 1782, 286, 6099, 13, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 12322, 1391, 644, 62, 1462, 62, 20657, 62, 2902, 1782, 866, 290, 1208, 340, 1088, 11, 1391, 14096, 62, 9464, 1782, 286, 6099, 319, 262, 3355, 13, 91, 1267, 198, 220, 220, 220, 6739, 198, 220, 886, 24396, 13, 628, 198, 220, 2446, 2251, 62, 4399, 62, 1640, 62, 22570, 13, 198, 220, 220, 220, 1255, 796, 1988, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 4600, 2949, 517, 14096, 286, 6099, 319, 262, 3355, 11, 645, 517, 14096, 286, 6099, 13, 63, 1267, 198, 220, 220, 220, 220, 220, 357, 4600, 5247, 284, 262, 3650, 290, 2822, 617, 517, 11, 7388, 14096, 286, 6099, 319, 262, 3355, 13, 63, 1267, 198, 220, 220, 220, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 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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ION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_object . ALIASES mo_files FOR zif_abapgit_object~mo_files . PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_param_values TYPE STANDARD TABLE OF rsparam WITH NON-UNIQUE DEFAULT KEY , ty_tstca TYPE STANDARD TABLE OF tstca WITH DEFAULT KEY. CONSTANTS: c_oo_program TYPE c LENGTH 9 VALUE '\PROGRAM=' ##NO_TEXT, c_oo_class TYPE c LENGTH 7 VALUE '\CLASS=' ##NO_TEXT, c_oo_method TYPE c LENGTH 8 VALUE '\METHOD=' ##NO_TEXT, c_oo_tcode TYPE tcode VALUE 'OS_APPLICATION' ##NO_TEXT, c_oo_frclass TYPE c LENGTH 30 VALUE 'CLASS' ##NO_TEXT, c_oo_frmethod TYPE c LENGTH 30 VALUE 'METHOD' ##NO_TEXT, c_oo_frupdtask TYPE c LENGTH 30 VALUE 'UPDATE_MODE' ##NO_TEXT, c_oo_synchron TYPE c VALUE 'S' ##NO_TEXT, c_oo_asynchron TYPE c VALUE 'U' ##NO_TEXT, c_true TYPE c VALUE 'X' ##NO_TEXT, c_false TYPE c VALUE space ##NO_TEXT, BEGIN OF c_variant_type, dialog TYPE rglif-docutype VALUE 'D' ##NO_TEXT, report TYPE rglif-docutype VALUE 'R' ##NO_TEXT, variant TYPE rglif-docutype VALUE 'V' ##NO_TEXT, parameters TYPE rglif-docutype VALUE 'P' ##NO_TEXT, object TYPE rglif-docutype VALUE 'O' ##NO_TEXT, END OF c_variant_type. DATA: mt_bcdata TYPE STANDARD TABLE OF bdcdata . METHODS transaction_read IMPORTING iv_transaction TYPE tcode EXPORTING es_transaction TYPE tstc es_gui_attr TYPE tstcc RAISING zcx_abapgit_exception. METHODS shift_param CHANGING !ct_rsparam TYPE s_param !cs_tstcp TYPE tstcp . METHODS add_data IMPORTING !iv_fnam TYPE bdcdata-fnam !iv_fval TYPE clike . METHODS call_se93 RAISING zcx_abapgit_exception . METHODS set_oo_parameters IMPORTING !it_rsparam TYPE s_param CHANGING !cs_rsstcd TYPE rsstcd . METHODS split_parameters CHANGING !ct_rsparam TYPE s_param !cs_rsstcd TYPE rsstcd !cs_tstcp TYPE tstcp !cs_tstc TYPE tstc . METHODS split_parameters_comp IMPORTING !ig_type TYPE any !ig_param TYPE any CHANGING !cg_value TYPE any . METHODS serialize_texts IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_texts IMPORTING !io_xml TYPE REF TO zif_abapgit_xml_input RAISING zcx_abapgit_exception . METHODS deserialize_oo_transaction IMPORTING !iv_package TYPE devclass !is_tstc TYPE tstc !is_tstcc TYPE tstcc !is_tstct TYPE tstct !is_rsstcd TYPE rsstcd RAISING zcx_abapgit_exception . METHODS save_authorizations IMPORTING iv_transaction TYPE tstc-tcode it_authorizations TYPE ty_tstca RAISING zcx_abapgit_exception. METHODS clear_functiongroup_globals. METHODS is_variant_transaction IMPORTING is_tstcp TYPE tstcp RETURNING VALUE(rv_variant_transaction) TYPE abap_bool. ENDCLASS. CLASS zcl_abapgit_object_tran IMPLEMENTATION. METHOD add_data. DATA: ls_bcdata LIKE LINE OF mt_bcdata. ls_bcdata-fnam = iv_fnam. ls_bcdata-fval = iv_fval. APPEND ls_bcdata TO mt_bcdata. ENDMETHOD. METHOD call_se93. DATA: lt_message TYPE STANDARD TABLE OF bdcmsgcoll. FIELD-SYMBOLS: <ls_message> TYPE bdcmsgcoll. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' EXPORTING tcode = 'SE93' mode_val = 'N' TABLES using_tab = mt_bcdata mess_tab = lt_message EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error deserializing { ms_item-obj_type } { ms_item-obj_name }| ). ENDIF. LOOP AT lt_message ASSIGNING <ls_message> WHERE msgtyp CA 'EAX'. MESSAGE ID <ls_message>-msgid TYPE <ls_message>-msgtyp NUMBER <ls_message>-msgnr WITH <ls_message>-msgv1 <ls_message>-msgv2 <ls_message>-msgv3 <ls_message>-msgv4 INTO sy-msgli. zcx_abapgit_exception=>raise_t100( ). ENDLOOP. ENDMETHOD. METHOD clear_functiongroup_globals. TYPES ty_param_vari TYPE abap_bool. DATA lt_error_list TYPE STANDARD TABLE OF rsmp_check WITH DEFAULT KEY. FIELD-SYMBOLS <lv_param_vari> TYPE ty_param_vari. " only way to clear global fields in function group CALL FUNCTION 'RS_TRANSACTION_INCONSISTENCIES' EXPORTING transaction_code = 'ZTHISTCODENEVEREXIST' TABLES error_list = lt_error_list EXCEPTIONS object_not_found = 1 OTHERS = 2. IF sy-subrc <> 0. "Expected - fine " but there is no other way to clear this field ASSIGN ('(SAPLSEUK)PARAM_VARI') TO <lv_param_vari>. IF sy-subrc = 0. CLEAR <lv_param_vari>. ENDIF. ENDIF. ENDMETHOD. METHOD deserialize_oo_transaction. " You should remember that we don't use batch input just for fun, " but because FM RPY_TRANSACTION_INSERT doesn't support OO transactions. DATA: ls_bcdata TYPE bdcdata. CLEAR mt_bcdata. ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0390'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'TSTC-TCODE' iv_fval = is_tstc-tcode ). IF zif_abapgit_object~exists( ) = abap_true. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=CHNG' ). ELSE. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ADD' ). ENDIF. ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0300'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'TSTCT-TTEXT' iv_fval = is_tstct-ttext ). add_data( iv_fnam = 'RSSTCD-S_CLASS' iv_fval = 'X' ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ENTR' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'RSSTCD-S_TRFRAME' iv_fval = is_rsstcd-s_trframe ). add_data( iv_fnam = 'RSSTCD-S_UPDTASK' iv_fval = is_rsstcd-s_updtask ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=TR_FRAMEWORK' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'RSSTCD-CLASSNAME' iv_fval = is_rsstcd-classname ). add_data( iv_fnam = 'RSSTCD-METHOD' iv_fval = is_rsstcd-method ). IF is_rsstcd-s_local IS NOT INITIAL. add_data( iv_fnam = 'RSSTCD-S_LOCAL' iv_fval = is_rsstcd-s_local ). ENDIF. IF is_rsstcd-s_updlok IS NOT INITIAL. add_data( iv_fnam = 'RSSTCD-S_UPDLOK' iv_fval = is_rsstcd-s_updlok ). ENDIF. add_data( iv_fnam = 'TSTC-PGMNA' iv_fval = is_tstc-pgmna ). IF is_tstcc-s_webgui = '2'. add_data( iv_fnam = 'G_IAC_EWT' iv_fval = abap_true ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = 'MAKE_PROFI' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. ELSEIF is_tstcc-s_webgui IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_WEBGUI' iv_fval = is_tstcc-s_webgui ). ENDIF. IF is_tstcc-s_pervas IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_PERVAS' iv_fval = is_tstcc-s_pervas ). ENDIF. IF is_tstcc-s_service IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_SERVICE' iv_fval = is_tstcc-s_service ). ENDIF. IF is_tstcc-s_platin IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_PLATIN' iv_fval = is_tstcc-s_platin ). ENDIF. IF is_tstcc-s_win32 IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_WIN32' iv_fval = is_tstcc-s_win32 ). ENDIF. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_SAVE' ). ls_bcdata-program = 'SAPLSTRD'. ls_bcdata-dynpro = '0100'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'KO007-L_DEVCLASS' iv_fval = iv_package ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ADD' ). ls_bcdata-program = 'BDC_OKCODE'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_BACK' ). ls_bcdata-program = 'BDC_OKCODE'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_BACK' ). call_se93( ). ENDMETHOD. METHOD deserialize_texts. DATA lt_tpool_i18n TYPE TABLE OF tstct. FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n. " Read XML-files data io_xml->read( EXPORTING iv_name = 'I18N_TPOOL' CHANGING cg_data = lt_tpool_i18n ). " Force t-code name (security reasons) LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>. <ls_tpool>-tcode = ms_item-obj_name. ENDLOOP. IF lines( lt_tpool_i18n ) > 0. MODIFY tstct FROM TABLE lt_tpool_i18n. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Update of t-code translations failed' ). ENDIF. ENDIF. ENDMETHOD. METHOD is_variant_transaction. rv_variant_transaction = boolc( is_tstcp-param(1) = '@' ). ENDMETHOD. METHOD save_authorizations. CONSTANTS: lc_hex_chk TYPE x VALUE '04'. DATA: ls_transaction TYPE tstc. transaction_read( EXPORTING iv_transaction = iv_transaction IMPORTING es_transaction = ls_transaction ). DELETE FROM tstca WHERE tcode = iv_transaction. IF ls_transaction IS NOT INITIAL. INSERT tstca FROM TABLE it_authorizations. ls_transaction-cinfo = ls_transaction-cinfo + lc_hex_chk. UPDATE tstc SET cinfo = ls_transaction-cinfo WHERE tcode = ls_transaction-tcode. ENDIF. ENDMETHOD. METHOD serialize_texts. DATA lt_tpool_i18n TYPE TABLE OF tstct. IF io_xml->i18n_params( )-main_language_only = abap_true. RETURN. ENDIF. " Skip main language - it was already serialized " Don't serialize t-code itself SELECT sprsl ttext INTO CORRESPONDING FIELDS OF TABLE lt_tpool_i18n FROM tstct WHERE sprsl <> mv_language AND tcode = ms_item-obj_name ##TOO_MANY_ITAB_FIELDS. "#EC CI_GENBUFF IF lines( lt_tpool_i18n ) > 0. SORT lt_tpool_i18n BY sprsl ASCENDING. io_xml->add( iv_name = 'I18N_TPOOL' ig_data = lt_tpool_i18n ). ENDIF. ENDMETHOD. METHOD set_oo_parameters. DATA: ls_param LIKE LINE OF it_rsparam. IF cs_rsstcd-call_tcode = c_oo_tcode. cs_rsstcd-s_trframe = c_true. LOOP AT it_rsparam INTO ls_param. CASE ls_param-field. WHEN c_oo_frclass. cs_rsstcd-classname = ls_param-value. WHEN c_oo_frmethod. cs_rsstcd-method = ls_param-value. WHEN c_oo_frupdtask. IF ls_param-value = c_oo_synchron. cs_rsstcd-s_upddir = c_true. cs_rsstcd-s_updtask = c_false. cs_rsstcd-s_updlok = c_false. ELSEIF ls_param-value = c_oo_asynchron. cs_rsstcd-s_upddir = c_false. cs_rsstcd-s_updtask = c_true. cs_rsstcd-s_updlok = c_false. ELSE. cs_rsstcd-s_upddir = c_false. cs_rsstcd-s_updtask = c_false. cs_rsstcd-s_updlok = c_true. ENDIF. ENDCASE. ENDLOOP. ENDIF. ENDMETHOD. METHOD shift_param. DATA: ls_param LIKE LINE OF ct_rsparam, lv_length TYPE i. FIELD-SYMBOLS <lg_f> TYPE any. DO 254 TIMES. IF cs_tstcp-param = space. EXIT. ENDIF. CLEAR ls_param. IF cs_tstcp-param CA '='. CHECK sy-fdpos <> 0. ASSIGN cs_tstcp-param(sy-fdpos) TO <lg_f>. ls_param-field = <lg_f>. IF ls_param-field(1) = space. SHIFT ls_param-field. ENDIF. sy-fdpos = sy-fdpos + 1. SHIFT cs_tstcp-param BY sy-fdpos PLACES. IF cs_tstcp-param CA ';'. IF sy-fdpos <> 0. ASSIGN cs_tstcp-param(sy-fdpos) TO <lg_f>. ls_param-value = <lg_f>. IF ls_param-value(1) = space. SHIFT ls_param-value. ENDIF. ENDIF. sy-fdpos = sy-fdpos + 1. SHIFT cs_tstcp-param BY sy-fdpos PLACES. APPEND ls_param TO ct_rsparam. ELSE. lv_length = strlen( cs_tstcp-param ). CHECK lv_length > 0. ASSIGN cs_tstcp-param(lv_length) TO <lg_f>. ls_param-value = <lg_f>. IF ls_param-value(1) = space. SHIFT ls_param-value. ENDIF. lv_length = lv_length + 1. SHIFT cs_tstcp-param BY lv_length PLACES. APPEND ls_param TO ct_rsparam. ENDIF. ENDIF. ENDDO. ENDMETHOD. METHOD split_parameters. * see subroutine split_parameters in include LSEUKF01 DATA: lv_off TYPE i, lv_param_beg TYPE i. CLEAR cs_rsstcd-s_vari. IF cs_tstcp-param(1) = '\'. " OO-Transaktion ohne FR split_parameters_comp( EXPORTING ig_type = c_oo_program ig_param = cs_tstcp-param CHANGING cg_value = cs_tstc-pgmna ). split_parameters_comp( EXPORTING ig_type = c_oo_class ig_param = cs_tstcp-param CHANGING cg_value = cs_rsstcd-classname ). split_parameters_comp( EXPORTING ig_type = c_oo_method ig_param = cs_tstcp-param CHANGING cg_value = cs_rsstcd-method ). IF NOT cs_tstc-pgmna IS INITIAL. cs_rsstcd-s_local = c_true. ENDIF. RETURN. ELSEIF cs_tstcp-param(1) = '@'. " Transaktionsvariante cs_rsstcd-s_vari = c_true. IF cs_tstcp-param(2) = '@@'. cs_rsstcd-s_ind_vari = c_true. lv_off = 2. ELSE. CLEAR cs_rsstcd-s_ind_vari. lv_off = 1. ENDIF. IF cs_tstcp-param CA ' '. ENDIF. sy-fdpos = sy-fdpos - lv_off. IF sy-fdpos > 0. cs_rsstcd-call_tcode = cs_tstcp-param+lv_off(sy-fdpos). sy-fdpos = sy-fdpos + 1 + lv_off. cs_rsstcd-variant = cs_tstcp-param+sy-fdpos. ENDIF. ELSEIF cs_tstcp-param(1) = '/'. cs_rsstcd-st_tcode = c_true. cs_rsstcd-st_prog = space. IF cs_tstcp-param+1(1) = '*'. cs_rsstcd-st_skip_1 = c_true. ELSE. CLEAR cs_rsstcd-st_skip_1. ENDIF. IF cs_tstcp-param CA ' '. ENDIF. lv_param_beg = sy-fdpos + 1. sy-fdpos = sy-fdpos - 2. IF sy-fdpos > 0. cs_rsstcd-call_tcode = cs_tstcp-param+2(sy-fdpos). ENDIF. SHIFT cs_tstcp-param BY lv_param_beg PLACES. ELSE. cs_rsstcd-st_tcode = space. cs_rsstcd-st_prog = c_true. ENDIF. shift_param( CHANGING ct_rsparam = ct_rsparam cs_tstcp = cs_tstcp ). set_oo_parameters( EXPORTING it_rsparam = ct_rsparam CHANGING cs_rsstcd = cs_rsstcd ). ENDMETHOD. METHOD split_parameters_comp. DATA: lv_off TYPE i. IF ig_param CS ig_type. lv_off = sy-fdpos + strlen( ig_type ). cg_value = ig_param+lv_off. IF cg_value CA '\'. CLEAR cg_value+sy-fdpos. ENDIF. ENDIF. ENDMETHOD. METHOD transaction_read. DATA: lt_tcodes TYPE TABLE OF tstc, lt_gui_attr TYPE TABLE OF tstcc. CLEAR: es_transaction, es_gui_attr. CALL FUNCTION 'RPY_TRANSACTION_READ' EXPORTING transaction = iv_transaction TABLES tcodes = lt_tcodes gui_attributes = lt_gui_attr EXCEPTIONS permission_error = 1 cancelled = 2 not_found = 3 object_not_found = 4 OTHERS = 5. IF sy-subrc = 4 OR sy-subrc = 3. RETURN. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. READ TABLE lt_tcodes INDEX 1 INTO es_transaction. ASSERT sy-subrc = 0. READ TABLE lt_gui_attr INDEX 1 INTO es_gui_attr. ASSERT sy-subrc = 0. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_transaction TYPE tstc-tcode. lv_transaction = ms_item-obj_name. CALL FUNCTION 'RPY_TRANSACTION_DELETE' EXPORTING transaction = lv_transaction EXCEPTIONS not_excecuted = 1 object_not_found = 0 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. CONSTANTS: lc_hex_tra TYPE x VALUE '00', * lc_hex_men TYPE x VALUE '01', lc_hex_par TYPE x VALUE '02', lc_hex_rep TYPE x VALUE '80', * lc_hex_rpv TYPE x VALUE '10', lc_hex_obj TYPE x VALUE '08'. DATA: lv_dynpro TYPE d020s-dnum, ls_tstc TYPE tstc, lv_type TYPE rglif-docutype, ls_tstct TYPE tstct, ls_tstcc TYPE tstcc, ls_tstcp TYPE tstcp, lt_tstca TYPE ty_tstca, lt_param_values TYPE ty_param_values, ls_rsstcd TYPE rsstcd. IF zif_abapgit_object~exists( ) = abap_true. zif_abapgit_object~delete( iv_package = iv_package iv_transport = iv_transport ). ENDIF. io_xml->read( EXPORTING iv_name = 'TSTC' CHANGING cg_data = ls_tstc ). io_xml->read( EXPORTING iv_name = 'TSTCC' CHANGING cg_data = ls_tstcc ). io_xml->read( EXPORTING iv_name = 'TSTCT' CHANGING cg_data = ls_tstct ). io_xml->read( EXPORTING iv_name = 'TSTCP' CHANGING cg_data = ls_tstcp ). io_xml->read( EXPORTING iv_name = 'AUTHORIZATIONS' CHANGING cg_data = lt_tstca ). lv_dynpro = ls_tstc-dypno. IF ls_tstc-cinfo O lc_hex_rep. lv_type = c_variant_type-report. ELSEIF ls_tstc-cinfo O lc_hex_obj. lv_type = c_variant_type-object. ELSEIF ls_tstc-cinfo O lc_hex_par. IF is_variant_transaction( ls_tstcp ) = abap_true. lv_type = c_variant_type-variant. ELSE. lv_type = c_variant_type-parameters. ENDIF. ELSEIF ls_tstc-cinfo O lc_hex_tra. lv_type = c_variant_type-dialog. ELSE. zcx_abapgit_exception=>raise( 'Transaction, unknown CINFO' ). ENDIF. IF ls_tstcp IS NOT INITIAL. split_parameters( CHANGING ct_rsparam = lt_param_values cs_rsstcd = ls_rsstcd cs_tstcp = ls_tstcp cs_tstc = ls_tstc ). ENDIF. CASE lv_type. WHEN c_variant_type-object. deserialize_oo_transaction( iv_package = iv_package is_tstc = ls_tstc is_tstcc = ls_tstcc is_tstct = ls_tstct is_rsstcd = ls_rsstcd ). WHEN OTHERS. clear_functiongroup_globals( ). corr_insert( iv_package ). CALL FUNCTION 'RPY_TRANSACTION_INSERT' EXPORTING transaction = ls_tstc-tcode program = ls_tstc-pgmna dynpro = lv_dynpro language = mv_language development_class = iv_package transaction_type = lv_type shorttext = ls_tstct-ttext called_transaction = ls_rsstcd-call_tcode called_transaction_skip = ls_rsstcd-st_skip_1 variant = ls_rsstcd-variant cl_independend = ls_rsstcd-s_ind_vari html_enabled = ls_tstcc-s_webgui java_enabled = ls_tstcc-s_platin wingui_enabled = ls_tstcc-s_win32 suppress_corr_insert = abap_true TABLES param_values = lt_param_values EXCEPTIONS cancelled = 1 already_exist = 2 permission_error = 3 name_not_allowed = 4 name_conflict = 5 illegal_type = 6 object_inconsistent = 7 db_access_error = 8 OTHERS = 9. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDCASE. IF lt_tstca IS NOT INITIAL. save_authorizations( iv_transaction = ls_tstc-tcode it_authorizations = lt_tstca ). ENDIF. " Texts deserializing (translations) deserialize_texts( io_xml ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_tcode TYPE tstc-tcode. SELECT SINGLE tcode FROM tstc INTO lv_tcode WHERE tcode = ms_item-obj_name. "#EC CI_GENBUFF rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. DATA: lv_object TYPE eqegraarg. lv_object = |TN{ ms_item-obj_name }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'EEUDB' iv_argument = lv_object ). ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lt_bdcdata TYPE TABLE OF bdcdata. FIELD-SYMBOLS: <ls_bdcdata> LIKE LINE OF lt_bdcdata. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-program = 'SAPLSEUK'. <ls_bdcdata>-dynpro = '0390'. <ls_bdcdata>-dynbegin = abap_true. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'BDC_OKCODE'. <ls_bdcdata>-fval = '=SHOW'. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'TSTC-TCODE'. <ls_bdcdata>-fval = ms_item-obj_name. zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input( iv_tcode = 'SE93' it_bdcdata = lt_bdcdata ). rv_exit = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_transaction TYPE tstc-tcode, ls_tcode TYPE tstc, ls_tstct TYPE tstct, ls_tstcp TYPE tstcp, lt_tstca TYPE ty_tstca, ls_gui_attr TYPE tstcc. lv_transaction = ms_item-obj_name. transaction_read( EXPORTING iv_transaction = lv_transaction IMPORTING es_transaction = ls_tcode es_gui_attr = ls_gui_attr ). IF ls_tcode IS INITIAL. RETURN. ENDIF. SELECT SINGLE * FROM tstct INTO ls_tstct WHERE sprsl = mv_language AND tcode = lv_transaction. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT SINGLE * FROM tstcp INTO ls_tstcp WHERE tcode = lv_transaction. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT * FROM tstca INTO TABLE lt_tstca WHERE tcode = lv_transaction. IF sy-subrc <> 0. CLEAR: lt_tstca. ENDIF. io_xml->add( iv_name = 'TSTC' ig_data = ls_tcode ). io_xml->add( iv_name = 'TSTCC' ig_data = ls_gui_attr ). io_xml->add( iv_name = 'TSTCT' ig_data = ls_tstct ). IF ls_tstcp IS NOT INITIAL. io_xml->add( iv_name = 'TSTCP' ig_data = ls_tstcp ). ENDIF. io_xml->add( iv_name = 'AUTHORIZATIONS' ig_data = lt_tstca ). " Texts serializing (translations) serialize_texts( io_xml ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 2213, 272, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 764, 628, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 17143, 62, 27160, 41876, 49053, 9795, 43679, 3963, 44608, 17143, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 837, 198, 220, 220, 220, 220, 220, 1259, 62, 83, 301, 6888, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 256, 301, 6888, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 23065, 220, 220, 41876, 269, 406, 49494, 860, 26173, 8924, 705, 59, 4805, 7730, 24115, 11639, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 4871, 220, 220, 220, 220, 41876, 269, 406, 49494, 767, 26173, 8924, 705, 59, 31631, 11639, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 24396, 220, 220, 220, 41876, 269, 406, 49494, 807, 26173, 8924, 705, 59, 49273, 11639, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 83, 8189, 220, 220, 220, 220, 41876, 256, 8189, 26173, 8924, 705, 2640, 62, 2969, 31484, 6234, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 8310, 4871, 220, 220, 41876, 269, 406, 49494, 1542, 26173, 8924, 705, 31631, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 8310, 24396, 220, 41876, 269, 406, 49494, 1542, 26173, 8924, 705, 49273, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 69, 12618, 28664, 2093, 41876, 269, 406, 49494, 1542, 26173, 8924, 705, 16977, 62, 49058, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 28869, 11413, 220, 41876, 269, 26173, 8924, 705, 50, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 292, 24871, 41876, 269, 26173, 8924, 705, 52, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 7942, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 26173, 8924, 705, 55, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 269, 62, 9562, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 26173, 8924, 2272, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 25641, 415, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 17310, 220, 220, 220, 220, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 35, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 989, 220, 220, 220, 220, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 49, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15304, 220, 220, 220, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 53, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10007, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 47, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 41876, 374, 4743, 361, 12, 15390, 315, 2981, 26173, 8924, 705, 46, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 25641, 415, 62, 4906, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 15630, 7890, 41876, 49053, 9795, 43679, 3963, 275, 17896, 7890, 764, 628, 220, 220, 220, 337, 36252, 50, 8611, 62, 961, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7645, 2673, 41876, 256, 8189, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 7645, 2673, 41876, 256, 301, 66, 198, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 48317, 62, 35226, 220, 220, 220, 41876, 256, 301, 535, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 220, 220, 337, 36252, 50, 6482, 62, 17143, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 3808, 17143, 41876, 264, 62, 17143, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 83, 301, 13155, 220, 220, 41876, 256, 301, 13155, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 69, 7402, 41876, 275, 17896, 7890, 12, 69, 7402, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 69, 2100, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 869, 62, 325, 6052, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
REPORT zabap_test_0012 NO STANDARD PAGE HEADING. TYPES t_type TYPE c LENGTH 6. DATA: gv_type TYPE t_type. gv_type = 'foobar' ##NO_TEXT. WRITE gv_type.
[ 2200, 15490, 1976, 397, 499, 62, 9288, 62, 405, 1065, 8005, 49053, 9795, 48488, 39837, 2751, 13, 198, 198, 9936, 47, 1546, 256, 62, 4906, 41876, 269, 406, 49494, 718, 13, 198, 198, 26947, 25, 308, 85, 62, 4906, 41876, 256, 62, 4906, 13, 198, 198, 70, 85, 62, 4906, 796, 705, 6513, 30973, 6, 22492, 15285, 62, 32541, 13, 198, 198, 18564, 12709, 308, 85, 62, 4906, 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 ]
method /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_ENTITY. *&----------------------------------------------------------------------------------------------* *& Include /IWBEP/DPC_TEMP_CRT_ENTITY_BASE *&* This class has been generated on 10.11.2018 15:31:33 in client 200 *&* *&* WARNING--> NEVER MODIFY THIS CLASS <--WARNING *&* If you want to change the DPC implementation, use the *&* generated methods inside the DPC provider subclass - ZCL_ZAS_EMP_DPC_EXT *&-----------------------------------------------------------------------------------------------* DATA zas_empset_create_entity TYPE zcl_zas_emp_mpc=>ts_zas_emp. DATA zas_empnomset_create_entity TYPE zcl_zas_emp_mpc=>ts_zas_empnom. DATA lv_entityset_name TYPE string. lv_entityset_name = io_tech_request_context->get_entity_set_name( ). CASE lv_entityset_name. *-------------------------------------------------------------------------* * EntitySet - ZAS_EMPSet *-------------------------------------------------------------------------* WHEN 'ZAS_EMPSet'. * Call the entity set generated method zas_empset_create_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name io_data_provider = io_data_provider it_key_tab = it_key_tab it_navigation_path = it_navigation_path io_tech_request_context = io_tech_request_context IMPORTING er_entity = zas_empset_create_entity ). * Send specific entity data to the caller interfaces copy_data_to_ref( EXPORTING is_data = zas_empset_create_entity CHANGING cr_data = er_entity ). *-------------------------------------------------------------------------* * EntitySet - ZAS_EMPnomSet *-------------------------------------------------------------------------* WHEN 'ZAS_EMPnomSet'. * Call the entity set generated method zas_empnomset_create_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name io_data_provider = io_data_provider it_key_tab = it_key_tab it_navigation_path = it_navigation_path io_tech_request_context = io_tech_request_context IMPORTING er_entity = zas_empnomset_create_entity ). * Send specific entity data to the caller interfaces copy_data_to_ref( EXPORTING is_data = zas_empnomset_create_entity CHANGING cr_data = er_entity ). when others. super->/iwbep/if_mgw_appl_srv_runtime~create_entity( EXPORTING iv_entity_name = iv_entity_name iv_entity_set_name = iv_entity_set_name iv_source_name = iv_source_name io_data_provider = io_data_provider it_key_tab = it_key_tab it_navigation_path = it_navigation_path IMPORTING er_entity = er_entity ). ENDCASE. endmethod.
[ 220, 2446, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 2969, 6489, 62, 12562, 53, 62, 49, 4944, 34694, 93, 43387, 6158, 62, 3525, 9050, 13, 198, 9, 5, 10097, 1783, 26171, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1220, 40, 45607, 8905, 14, 35, 5662, 62, 51, 39494, 62, 9419, 51, 62, 3525, 9050, 62, 33, 11159, 198, 9, 5, 9, 770, 1398, 468, 587, 7560, 319, 838, 13, 1157, 13, 7908, 1315, 25, 3132, 25, 2091, 287, 5456, 939, 198, 9, 5, 9, 198, 9, 5, 9, 220, 220, 220, 220, 220, 220, 39410, 46904, 33602, 19164, 5064, 56, 12680, 42715, 1279, 438, 31502, 198, 9, 5, 9, 220, 220, 1002, 345, 765, 284, 1487, 262, 360, 5662, 7822, 11, 779, 262, 198, 9, 5, 9, 220, 220, 7560, 5050, 2641, 262, 360, 5662, 10131, 47611, 532, 1168, 5097, 62, 57, 1921, 62, 39494, 62, 35, 5662, 62, 13918, 198, 9, 5, 10097, 1783, 24305, 9, 628, 42865, 1976, 292, 62, 368, 862, 316, 62, 17953, 62, 26858, 41876, 1976, 565, 62, 89, 292, 62, 45787, 62, 3149, 66, 14804, 912, 62, 89, 292, 62, 45787, 13, 198, 42865, 1976, 292, 62, 368, 21999, 296, 2617, 62, 17953, 62, 26858, 41876, 1976, 565, 62, 89, 292, 62, 45787, 62, 3149, 66, 14804, 912, 62, 89, 292, 62, 368, 21999, 296, 13, 198, 42865, 300, 85, 62, 26858, 2617, 62, 3672, 41876, 4731, 13, 198, 198, 6780, 62, 26858, 2617, 62, 3672, 796, 33245, 62, 13670, 62, 25927, 62, 22866, 3784, 1136, 62, 26858, 62, 2617, 62, 3672, 7, 6739, 198, 198, 34, 11159, 300, 85, 62, 26858, 2617, 62, 3672, 13, 198, 9, 10097, 45537, 9, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20885, 7248, 532, 220, 1168, 1921, 62, 3620, 3705, 316, 198, 9, 10097, 45537, 9, 198, 220, 220, 220, 220, 42099, 705, 57, 1921, 62, 3620, 3705, 316, 4458, 198, 9, 220, 220, 220, 220, 4889, 262, 9312, 900, 7560, 2446, 198, 220, 220, 220, 1976, 292, 62, 368, 862, 316, 62, 17953, 62, 26858, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 26858, 62, 3672, 220, 220, 220, 220, 796, 21628, 62, 26858, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26858, 62, 2617, 62, 3672, 796, 21628, 62, 26858, 62, 2617, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 10459, 62, 3672, 220, 220, 220, 220, 796, 21628, 62, 10459, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 7890, 62, 15234, 1304, 220, 220, 796, 33245, 62, 7890, 62, 15234, 1304, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2539, 62, 8658, 220, 220, 220, 220, 220, 220, 220, 220, 796, 340, 62, 2539, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 28341, 7065, 62, 6978, 796, 340, 62, 28341, 7065, 62, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 13670, 62, 25927, 62, 22866, 796, 33245, 62, 13670, 62, 25927, 62, 22866, 198, 220, 220, 220, 220, 220, 220, 220, 197, 30023, 9863, 2751, 1931, 62, 26858, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1976, 292, 62, 368, 862, 316, 62, 17953, 62, 26858, 198, 220, 220, 220, 6739, 198, 9, 220, 220, 220, 220, 16290, 2176, 9312, 1366, 284, 262, 24955, 20314, 198, 220, 220, 220, 4866, 62, 7890, 62, 1462, 62, 5420, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 7890, 796, 1976, 292, 62, 368, 862, 316, 62, 17953, 62, 26858, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1067, 62, 7890, 796, 1931, 62, 26858, 198, 220, 220, 6739, 198, 198, 9, 10097, 45537, 9, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20885, 7248, 532, 220, 1168, 1921, 62, 39494, 26601, 7248, 198, 9, 10097, 45537, 9, 198, 220, 220, 220, 220, 42099, 705, 57, 1921, 62, 39494, 26601, 7248, 4458, 198, 9, 220, 220, 220, 220, 4889, 262, 9312, 900, 7560, 2446, 198, 220, 220, 220, 1976, 292, 62, 368, 21999, 296, 2617, 62, 17953, 62, 26858, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 21628, 62, 26858, 62, 3672, 220, 220, 220, 220, 796, 21628, 62, 26858, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26858, 62, 2617, 62, 3672, 796, 21628, 62, 26858, 62, 2617, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 10459, 62, 3672, 220, 220, 220, 220, 796, 21628, 62, 10459, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 7890, 62, 15234, 1304, 220, 220, 796, 33245, 62, 7890, 62, 15234, 1304, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 2539, 62, 8658, 220, 220, 220, 220, 220, 220, 220, 220, 796, 340, 62, 2539, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 28341, 7065, 62, 6978, 796, 340, 62, 28341, 7065, 62, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 13670, 62, 25927, 62, 22866, 796, 33245, 62, 13670, 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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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_tran DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PROTECTED SECTION. PRIVATE SECTION. TYPES: tty_param_values TYPE STANDARD TABLE OF rsparam WITH NON-UNIQUE DEFAULT KEY . CONSTANTS: c_oo_program(9) VALUE '\PROGRAM=' ##NO_TEXT. CONSTANTS: c_oo_class(7) VALUE '\CLASS=' ##NO_TEXT. CONSTANTS: c_oo_method(8) VALUE '\METHOD=' ##NO_TEXT. CONSTANTS c_oo_tcode TYPE tcode VALUE 'OS_APPLICATION' ##NO_TEXT. CONSTANTS: c_oo_frclass(30) VALUE 'CLASS' ##NO_TEXT. CONSTANTS: c_oo_frmethod(30) VALUE 'METHOD' ##NO_TEXT. CONSTANTS: c_oo_frupdtask(30) VALUE 'UPDATE_MODE' ##NO_TEXT. CONSTANTS c_oo_synchron TYPE c VALUE 'S' ##NO_TEXT. CONSTANTS c_oo_asynchron TYPE c VALUE 'U' ##NO_TEXT. CONSTANTS c_true TYPE c VALUE 'X' ##NO_TEXT. CONSTANTS c_false TYPE c VALUE space ##NO_TEXT. DATA: mt_bcdata TYPE STANDARD TABLE OF bdcdata . METHODS shift_param CHANGING !ct_rsparam TYPE s_param !cs_tstcp TYPE tstcp . METHODS add_data IMPORTING !iv_fnam TYPE bdcdata-fnam !iv_fval TYPE clike . METHODS call_se93 RAISING zcx_abapgit_exception . METHODS set_oo_parameters IMPORTING !it_rsparam TYPE s_param CHANGING !cs_rsstcd TYPE rsstcd . METHODS split_parameters CHANGING !ct_rsparam TYPE s_param !cs_rsstcd TYPE rsstcd !cs_tstcp TYPE tstcp !cs_tstc TYPE tstc . METHODS split_parameters_comp IMPORTING !ig_type TYPE any !ig_param TYPE any CHANGING !cg_value TYPE any . METHODS serialize_texts IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_output RAISING zcx_abapgit_exception . METHODS deserialize_texts IMPORTING !io_xml TYPE REF TO zcl_abapgit_xml_input RAISING zcx_abapgit_exception . METHODS deserialize_oo_transaction IMPORTING !iv_package TYPE devclass !is_tstc TYPE tstc !is_tstcc TYPE tstcc !is_tstct TYPE tstct !is_rsstcd TYPE rsstcd RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_TRAN IMPLEMENTATION. METHOD add_data. DATA: ls_bcdata LIKE LINE OF mt_bcdata. ls_bcdata-fnam = iv_fnam. ls_bcdata-fval = iv_fval. APPEND ls_bcdata TO mt_bcdata. ENDMETHOD. METHOD call_se93. DATA: lt_message TYPE STANDARD TABLE OF bdcmsgcoll. FIELD-SYMBOLS: <ls_message> TYPE bdcmsgcoll. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' EXPORTING tcode = 'SE93' mode_val = 'N' TABLES using_tab = mt_bcdata mess_tab = lt_message EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error deserializing { ms_item-obj_type } { ms_item-obj_name }| ). ENDIF. LOOP AT lt_message ASSIGNING <ls_message> WHERE msgtyp CA 'EAX'. MESSAGE ID <ls_message>-msgid TYPE <ls_message>-msgtyp NUMBER <ls_message>-msgnr WITH <ls_message>-msgv1 <ls_message>-msgv2 <ls_message>-msgv3 <ls_message>-msgv4 INTO sy-msgli. zcx_abapgit_exception=>raise_t100( ). ENDLOOP. ENDMETHOD. METHOD deserialize_oo_transaction. " You should remember that we don't use batch input just for fun, " but because FM RPY_TRANSACTION_INSERT doesn't support OO transactions. DATA: ls_bcdata TYPE bdcdata. CLEAR mt_bcdata. ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0390'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'TSTC-TCODE' iv_fval = is_tstc-tcode ). IF zif_abapgit_object~exists( ) = abap_true. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=CHNG' ). ELSE. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ADD' ). ENDIF. ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0300'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'TSTCT-TTEXT' iv_fval = is_tstct-ttext ). add_data( iv_fnam = 'RSSTCD-S_CLASS' iv_fval = 'X' ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ENTR' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'RSSTCD-S_TRFRAME' iv_fval = is_rsstcd-s_trframe ). add_data( iv_fnam = 'RSSTCD-S_UPDTASK' iv_fval = is_rsstcd-s_updtask ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=TR_FRAMEWORK' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'RSSTCD-CLASSNAME' iv_fval = is_rsstcd-classname ). add_data( iv_fnam = 'RSSTCD-METHOD' iv_fval = is_rsstcd-method ). IF is_rsstcd-s_local IS NOT INITIAL. add_data( iv_fnam = 'RSSTCD-S_LOCAL' iv_fval = is_rsstcd-s_local ). ENDIF. IF is_rsstcd-s_updlok IS NOT INITIAL. add_data( iv_fnam = 'RSSTCD-S_UPDLOK' iv_fval = is_rsstcd-s_updlok ). ENDIF. add_data( iv_fnam = 'TSTC-PGMNA' iv_fval = is_tstc-pgmna ). IF is_tstcc-s_webgui = '2'. add_data( iv_fnam = 'G_IAC_EWT' iv_fval = abap_true ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = 'MAKE_PROFI' ). ls_bcdata-program = 'SAPLSEUK'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. ELSEIF is_tstcc-s_webgui IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_WEBGUI' iv_fval = is_tstcc-s_webgui ). ENDIF. IF is_tstcc-s_pervas IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_PERVAS' iv_fval = is_tstcc-s_pervas ). ENDIF. IF is_tstcc-s_service IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_SERVICE' iv_fval = is_tstcc-s_service ). ENDIF. IF is_tstcc-s_platin IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_PLATIN' iv_fval = is_tstcc-s_platin ). ENDIF. IF is_tstcc-s_win32 IS NOT INITIAL. add_data( iv_fnam = 'TSTCC-S_WIN32' iv_fval = is_tstcc-s_win32 ). ENDIF. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_SAVE' ). ls_bcdata-program = 'SAPLSTRD'. ls_bcdata-dynpro = '0100'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'KO007-L_DEVCLASS' iv_fval = iv_package ). add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=ADD' ). ls_bcdata-program = 'BDC_OKCODE'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_BACK' ). ls_bcdata-program = 'BDC_OKCODE'. ls_bcdata-dynpro = '0360'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO mt_bcdata. add_data( iv_fnam = 'BDC_OKCODE' iv_fval = '=WB_BACK' ). call_se93( ). ENDMETHOD. METHOD deserialize_texts. DATA lt_tpool_i18n TYPE TABLE OF tstct. FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n. " Read XML-files data io_xml->read( EXPORTING iv_name = 'I18N_TPOOL' CHANGING cg_data = lt_tpool_i18n ). " Force t-code name (security reasons) LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>. <ls_tpool>-tcode = ms_item-obj_name. ENDLOOP. IF lines( lt_tpool_i18n ) > 0. MODIFY tstct FROM TABLE lt_tpool_i18n. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Update of t-code translations failed' ). ENDIF. ENDIF. ENDMETHOD. METHOD serialize_texts. DATA lt_tpool_i18n TYPE TABLE OF tstct. " Skip master language - it was already serialized " Don't serialize t-code itself SELECT sprsl ttext INTO CORRESPONDING FIELDS OF TABLE lt_tpool_i18n FROM tstct WHERE sprsl <> mv_language AND tcode = ms_item-obj_name. "#EC CI_GENBUFF IF lines( lt_tpool_i18n ) > 0. SORT lt_tpool_i18n BY sprsl ASCENDING. io_xml->add( iv_name = 'I18N_TPOOL' ig_data = lt_tpool_i18n ). ENDIF. ENDMETHOD. METHOD set_oo_parameters. DATA: ls_param LIKE LINE OF it_rsparam. IF cs_rsstcd-call_tcode = c_oo_tcode. cs_rsstcd-s_trframe = c_true. LOOP AT it_rsparam INTO ls_param. CASE ls_param-field. WHEN c_oo_frclass. cs_rsstcd-classname = ls_param-value. WHEN c_oo_frmethod. cs_rsstcd-method = ls_param-value. WHEN c_oo_frupdtask. IF ls_param-value = c_oo_synchron. cs_rsstcd-s_upddir = c_true. cs_rsstcd-s_updtask = c_false. cs_rsstcd-s_updlok = c_false. ELSEIF ls_param-value = c_oo_asynchron. cs_rsstcd-s_upddir = c_false. cs_rsstcd-s_updtask = c_true. cs_rsstcd-s_updlok = c_false. ELSE. cs_rsstcd-s_upddir = c_false. cs_rsstcd-s_updtask = c_false. cs_rsstcd-s_updlok = c_true. ENDIF. ENDCASE. ENDLOOP. ENDIF. ENDMETHOD. METHOD shift_param. DATA: ls_param LIKE LINE OF ct_rsparam, lv_length TYPE i. FIELD-SYMBOLS <lg_f> TYPE any. DO 254 TIMES. IF cs_tstcp-param = space. EXIT. ENDIF. CLEAR ls_param. IF cs_tstcp-param CA '='. CHECK sy-fdpos <> 0. ASSIGN cs_tstcp-param(sy-fdpos) TO <lg_f>. ls_param-field = <lg_f>. IF ls_param-field(1) = space. SHIFT ls_param-field. ENDIF. sy-fdpos = sy-fdpos + 1. SHIFT cs_tstcp-param BY sy-fdpos PLACES. IF cs_tstcp-param CA ';'. IF sy-fdpos <> 0. ASSIGN cs_tstcp-param(sy-fdpos) TO <lg_f>. ls_param-value = <lg_f>. IF ls_param-value(1) = space. SHIFT ls_param-value. ENDIF. ENDIF. sy-fdpos = sy-fdpos + 1. SHIFT cs_tstcp-param BY sy-fdpos PLACES. APPEND ls_param TO ct_rsparam. ELSE. lv_length = strlen( cs_tstcp-param ). CHECK lv_length > 0. ASSIGN cs_tstcp-param(lv_length) TO <lg_f>. ls_param-value = <lg_f>. IF ls_param-value(1) = space. SHIFT ls_param-value. ENDIF. lv_length = lv_length + 1. SHIFT cs_tstcp-param BY lv_length PLACES. APPEND ls_param TO ct_rsparam. ENDIF. ENDIF. ENDDO. ENDMETHOD. METHOD split_parameters. * see subroutine split_parameters in include LSEUKF01 DATA: lv_off TYPE i, lv_param_beg TYPE i. CLEAR cs_rsstcd-s_vari. IF cs_tstcp-param(1) = '\'. " OO-Transaktion ohne FR split_parameters_comp( EXPORTING ig_type = c_oo_program ig_param = cs_tstcp-param CHANGING cg_value = cs_tstc-pgmna ). split_parameters_comp( EXPORTING ig_type = c_oo_class ig_param = cs_tstcp-param CHANGING cg_value = cs_rsstcd-classname ). split_parameters_comp( EXPORTING ig_type = c_oo_method ig_param = cs_tstcp-param CHANGING cg_value = cs_rsstcd-method ). IF NOT cs_tstc-pgmna IS INITIAL. cs_rsstcd-s_local = c_true. ENDIF. RETURN. ELSEIF cs_tstcp-param(1) = '@'. " Transaktionsvariante cs_rsstcd-s_vari = c_true. IF cs_tstcp-param(2) = '@@'. cs_rsstcd-s_ind_vari = c_true. lv_off = 2. ELSE. CLEAR cs_rsstcd-s_ind_vari. lv_off = 1. ENDIF. IF cs_tstcp-param CA ' '. ENDIF. sy-fdpos = sy-fdpos - lv_off. IF sy-fdpos > 0. cs_rsstcd-call_tcode = cs_tstcp-param+lv_off(sy-fdpos). sy-fdpos = sy-fdpos + 1 + lv_off. cs_rsstcd-variant = cs_tstcp-param+sy-fdpos. ENDIF. ELSEIF cs_tstcp-param(1) = '/'. cs_rsstcd-st_tcode = c_true. cs_rsstcd-st_prog = space. IF cs_tstcp-param+1(1) = '*'. cs_rsstcd-st_skip_1 = c_true. ELSE. CLEAR cs_rsstcd-st_skip_1. ENDIF. IF cs_tstcp-param CA ' '. ENDIF. lv_param_beg = sy-fdpos + 1. sy-fdpos = sy-fdpos - 2. IF sy-fdpos > 0. cs_rsstcd-call_tcode = cs_tstcp-param+2(sy-fdpos). ENDIF. SHIFT cs_tstcp-param BY lv_param_beg PLACES. ELSE. cs_rsstcd-st_tcode = space. cs_rsstcd-st_prog = c_true. ENDIF. shift_param( CHANGING ct_rsparam = ct_rsparam cs_tstcp = cs_tstcp ). set_oo_parameters( EXPORTING it_rsparam = ct_rsparam CHANGING cs_rsstcd = cs_rsstcd ). ENDMETHOD. METHOD split_parameters_comp. DATA: lv_off TYPE i. IF ig_param CS ig_type. lv_off = sy-fdpos + strlen( ig_type ). cg_value = ig_param+lv_off. IF cg_value CA '\'. CLEAR cg_value+sy-fdpos. ENDIF. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_transaction TYPE tstc-tcode. lv_transaction = ms_item-obj_name. CALL FUNCTION 'RPY_TRANSACTION_DELETE' EXPORTING transaction = lv_transaction EXCEPTIONS not_excecuted = 1 object_not_found = 0 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RPY_TRANSACTION_DELETE' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. CONSTANTS: lc_hex_tra TYPE x VALUE '00', * c_hex_men TYPE x VALUE '01', lc_hex_par TYPE x VALUE '02', lc_hex_rep TYPE x VALUE '80', * c_hex_rpv TYPE x VALUE '10', lc_hex_obj TYPE x VALUE '08'. DATA: lv_dynpro TYPE d020s-dnum, ls_tstc TYPE tstc, lv_type TYPE rglif-docutype, ls_tstct TYPE tstct, ls_tstcc TYPE tstcc, ls_tstcp TYPE tstcp, lt_param_values TYPE tty_param_values, ls_rsstcd TYPE rsstcd. IF zif_abapgit_object~exists( ) = abap_true. zif_abapgit_object~delete( ). ENDIF. io_xml->read( EXPORTING iv_name = 'TSTC' CHANGING cg_data = ls_tstc ). io_xml->read( EXPORTING iv_name = 'TSTCC' CHANGING cg_data = ls_tstcc ). io_xml->read( EXPORTING iv_name = 'TSTCT' CHANGING cg_data = ls_tstct ). io_xml->read( EXPORTING iv_name = 'TSTCP' CHANGING cg_data = ls_tstcp ). lv_dynpro = ls_tstc-dypno. CASE ls_tstc-cinfo. WHEN lc_hex_tra. lv_type = ststc_c_type_dialog. WHEN lc_hex_rep. lv_type = ststc_c_type_report. WHEN lc_hex_par. lv_type = ststc_c_type_parameters. WHEN lc_hex_obj. lv_type = ststc_c_type_object. * todo, or ststc_c_type_variant? WHEN OTHERS. zcx_abapgit_exception=>raise( 'Transaction, unknown CINFO' ). ENDCASE. IF ls_tstcp IS NOT INITIAL. split_parameters( CHANGING ct_rsparam = lt_param_values cs_rsstcd = ls_rsstcd cs_tstcp = ls_tstcp cs_tstc = ls_tstc ). ENDIF. CASE lv_type. WHEN ststc_c_type_object. deserialize_oo_transaction( iv_package = iv_package is_tstc = ls_tstc is_tstcc = ls_tstcc is_tstct = ls_tstct is_rsstcd = ls_rsstcd ). WHEN OTHERS. CALL FUNCTION 'RPY_TRANSACTION_INSERT' EXPORTING transaction = ls_tstc-tcode program = ls_tstc-pgmna dynpro = lv_dynpro language = mv_language development_class = iv_package transaction_type = lv_type shorttext = ls_tstct-ttext called_transaction = ls_rsstcd-call_tcode called_transaction_skip = ls_rsstcd-st_skip_1 variant = ls_rsstcd-variant cl_independend = ls_rsstcd-s_ind_vari html_enabled = ls_tstcc-s_webgui java_enabled = ls_tstcc-s_platin wingui_enabled = ls_tstcc-s_win32 TABLES param_values = lt_param_values EXCEPTIONS cancelled = 1 already_exist = 2 permission_error = 3 name_not_allowed = 4 name_conflict = 5 illegal_type = 6 object_inconsistent = 7 db_access_error = 8 OTHERS = 9. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RPY_TRANSACTION_INSERT' ). ENDIF. ENDCASE. " Texts deserializing (translations) deserialize_texts( io_xml ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_tcode TYPE tstc-tcode. SELECT SINGLE tcode FROM tstc INTO lv_tcode WHERE tcode = ms_item-obj_name. "#EC CI_GENBUFF rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. DATA: ls_meta TYPE zif_abapgit_definitions=>ty_metadata. ls_meta = zif_abapgit_object~get_metadata( ). IF ls_meta-late_deser = abap_true. APPEND zif_abapgit_object=>gc_step_id-late TO rt_steps. ELSEIF ls_meta-ddic = abap_true. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps. ELSE. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. DATA: lv_object TYPE eqegraarg. lv_object = |TN{ ms_item-obj_name }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'EEUDB' iv_argument = lv_object ). ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lt_bdcdata TYPE TABLE OF bdcdata. FIELD-SYMBOLS: <ls_bdcdata> LIKE LINE OF lt_bdcdata. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-program = 'SAPLSEUK'. <ls_bdcdata>-dynpro = '0390'. <ls_bdcdata>-dynbegin = abap_true. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'BDC_OKCODE'. <ls_bdcdata>-fval = '=SHOW'. APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>. <ls_bdcdata>-fnam = 'TSTC-TCODE'. <ls_bdcdata>-fval = ms_item-obj_name. CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'GIT' EXPORTING tcode = 'SE93' mode_val = 'E' TABLES using_tab = lt_bdcdata EXCEPTIONS system_failure = 1 communication_failure = 2 resource_failure = 3 OTHERS = 4 ##fm_subrc_ok. "#EC CI_SUBRC ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_transaction TYPE tstc-tcode, lt_tcodes TYPE TABLE OF tstc, ls_tcode LIKE LINE OF lt_tcodes, ls_tstct TYPE tstct, ls_tstcp TYPE tstcp, lt_gui_attr TYPE TABLE OF tstcc, ls_gui_attr LIKE LINE OF lt_gui_attr. lv_transaction = ms_item-obj_name. CALL FUNCTION 'RPY_TRANSACTION_READ' EXPORTING transaction = lv_transaction TABLES tcodes = lt_tcodes gui_attributes = lt_gui_attr EXCEPTIONS permission_error = 1 cancelled = 2 not_found = 3 object_not_found = 4 OTHERS = 5. IF sy-subrc = 4 OR sy-subrc = 3. RETURN. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from RPY_TRANSACTION_READ' ). ENDIF. SELECT SINGLE * FROM tstct INTO ls_tstct WHERE sprsl = mv_language AND tcode = lv_transaction. "#EC CI_SUBRC "#EC CI_GENBUFF SELECT SINGLE * FROM tstcp INTO ls_tstcp WHERE tcode = lv_transaction. "#EC CI_SUBRC "#EC CI_GENBUFF READ TABLE lt_tcodes INDEX 1 INTO ls_tcode. ASSERT sy-subrc = 0. READ TABLE lt_gui_attr INDEX 1 INTO ls_gui_attr. ASSERT sy-subrc = 0. io_xml->add( iv_name = 'TSTC' ig_data = ls_tcode ). io_xml->add( iv_name = 'TSTCC' ig_data = ls_gui_attr ). io_xml->add( iv_name = 'TSTCT' ig_data = ls_tstct ). IF ls_tstcp IS NOT INITIAL. io_xml->add( iv_name = 'TSTCP' ig_data = ls_tstcp ). ENDIF. " Texts serializing (translations) serialize_texts( io_xml ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 2213, 272, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 774, 62, 17143, 62, 27160, 41876, 49053, 9795, 43679, 3963, 44608, 17143, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 23065, 7, 24, 8, 26173, 8924, 705, 59, 4805, 7730, 24115, 11639, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 4871, 7, 22, 8, 26173, 8924, 705, 59, 31631, 11639, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 24396, 7, 23, 8, 26173, 8924, 705, 59, 49273, 11639, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 2238, 62, 83, 8189, 41876, 256, 8189, 26173, 8924, 705, 2640, 62, 2969, 31484, 6234, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 8310, 4871, 7, 1270, 8, 26173, 8924, 705, 31631, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 8310, 24396, 7, 1270, 8, 26173, 8924, 705, 49273, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 62, 2238, 62, 69, 12618, 28664, 2093, 7, 1270, 8, 26173, 8924, 705, 16977, 62, 49058, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 2238, 62, 28869, 11413, 41876, 269, 26173, 8924, 705, 50, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 2238, 62, 292, 24871, 41876, 269, 26173, 8924, 705, 52, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 7942, 41876, 269, 26173, 8924, 705, 55, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 9562, 41876, 269, 26173, 8924, 2272, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 15630, 7890, 41876, 49053, 9795, 43679, 3963, 275, 17896, 7890, 764, 628, 220, 220, 220, 337, 36252, 50, 6482, 62, 17143, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 3808, 17143, 41876, 264, 62, 17143, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 83, 301, 13155, 220, 220, 41876, 256, 301, 13155, 764, 198, 220, 220, 220, 337, 36252, 50, 751, 62, 7890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 69, 7402, 41876, 275, 17896, 7890, 12, 69, 7402, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 69, 2100, 41876, 537, 522, 764, 198, 220, 220, 220, 337, 36252, 50, 869, 62, 325, 6052, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 2238, 62, 17143, 7307, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 3808, 17143, 41876, 264, 62, 17143, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 3808, 301, 10210, 220, 41876, 44608, 301, 10210, 764, 198, 220, 220, 220, 337, 36252, 50, 6626, 62, 17143, 7307, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 3808, 17143, 41876, 264, 62, 17143, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 3808, 301, 10210, 220, 41876, 44608, 301, 10210, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 83, 301, 13155, 220, 220, 41876, 256, 301, 13155, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6359, 62, 83, 301, 66, 220, 220, 220, 41876, 256, 301, 66, 764, 198, 220, 220, 220, 337, 36252, 50, 6626, 62, 17143, 7307, 62, 5589, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 328, 62, 4906, 220, 41876, 597, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 328, 62, 17143, 41876, 597, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 66, 70, 62, 8367, 41876, 597, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 19875, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19875, 62, 22915, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 5239, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION CONVERSION_EXIT_YDK17_INPUT . *"-------------------------------------------------------------------- *"*"Локальный интерфейс: *" IMPORTING *" REFERENCE(INPUT) *" EXPORTING *" REFERENCE(OUTPUT) *"-------------------------------------------------------------------- * see FM YDK_CONVERSION_EXIT_REGISTER PERFORM input USING '17' input CHANGING output. ENDFUNCTION.
[ 42296, 4177, 2849, 7102, 43717, 62, 6369, 2043, 62, 35755, 42, 1558, 62, 1268, 30076, 764, 198, 9, 1, 10097, 650, 198, 9, 1, 9, 1, 140, 249, 25443, 118, 16142, 30143, 45367, 22177, 45035, 140, 117, 12466, 116, 22177, 20375, 16843, 21169, 141, 226, 16843, 140, 117, 21727, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 1268, 30076, 8, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 2606, 7250, 3843, 8, 198, 9, 1, 10097, 650, 198, 9, 766, 18695, 575, 48510, 62, 10943, 43717, 62, 6369, 2043, 62, 31553, 41517, 198, 220, 19878, 21389, 5128, 1294, 2751, 705, 1558, 6, 5128, 5870, 15567, 2751, 5072, 13, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_run_checks DEFINITION DEFERRED. CLASS zcl_abapgit_file_status DEFINITION LOCAL FRIENDS ltcl_run_checks. CLASS ltcl_util DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PUBLIC SECTION. CLASS-METHODS check_contains IMPORTING ii_log TYPE REF TO zif_abapgit_log iv_pattern TYPE string. ENDCLASS. CLASS ltcl_util IMPLEMENTATION. METHOD check_contains. DATA lt_messages TYPE zif_abapgit_log=>ty_log_outs. DATA ls_message LIKE LINE OF lt_messages. DATA lv_contains TYPE abap_bool. lt_messages = ii_log->get_messages( ). LOOP AT lt_messages INTO ls_message. IF ls_message-text CP iv_pattern. lv_contains = abap_true. EXIT. ENDIF. ENDLOOP. cl_abap_unit_assert=>assert_equals( act = lv_contains exp = abap_true ). ENDMETHOD. ENDCLASS. CLASS ltcl_run_checks DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. DATA: mt_results TYPE zif_abapgit_definitions=>ty_results_tt, mo_dot TYPE REF TO zcl_abapgit_dot_abapgit, mi_log TYPE REF TO zif_abapgit_log. METHODS: append_result IMPORTING iv_obj_type TYPE trobjtype iv_obj_name TYPE sobj_name iv_match TYPE abap_bool iv_lstate TYPE char1 iv_rstate TYPE char1 iv_package TYPE devclass iv_path TYPE string iv_filename TYPE string iv_packmove TYPE abap_bool OPTIONAL, setup, positive FOR TESTING RAISING zcx_abapgit_exception, neg_diff_path_for_same_obj FOR TESTING RAISING zcx_abapgit_exception, neg_incorrect_path_vs_pack FOR TESTING RAISING zcx_abapgit_exception, neg_similar_filenames FOR TESTING RAISING zcx_abapgit_exception, neg_empty_filenames FOR TESTING RAISING zcx_abapgit_exception, package_move FOR TESTING RAISING zcx_abapgit_exception, check_namespace FOR TESTING RAISING zcx_abapgit_exception. ENDCLASS. CLASS ltcl_run_checks IMPLEMENTATION. METHOD append_result. DATA ls_result LIKE LINE OF mt_results. ls_result-inactive = abap_false. ls_result-obj_type = iv_obj_type. ls_result-obj_name = iv_obj_name. ls_result-match = iv_match. ls_result-lstate = iv_lstate. ls_result-rstate = iv_rstate. ls_result-package = iv_package. ls_result-path = iv_path. ls_result-filename = iv_filename. ls_result-packmove = iv_packmove. APPEND ls_result TO mt_results. ENDMETHOD. METHOD setup. CREATE OBJECT mi_log TYPE zcl_abapgit_log. mo_dot = zcl_abapgit_dot_abapgit=>build_default( ). mo_dot->set_starting_folder( '/' ). " assumed by unit tests ENDMETHOD. METHOD positive. " 0 Positive append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma1.doma.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA2' iv_match = ' ' iv_lstate = 'M' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma2.doma.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 0 ). ENDMETHOD. METHOD neg_diff_path_for_same_obj. " 1 Negative, different path for same object append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/sub' iv_filename = 'zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma1.doma.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA2' iv_match = ' ' iv_lstate = 'M' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma2.doma.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). " This one is not pure - incorrect path also triggers path vs package check cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 2 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Files for object *| ). ENDMETHOD. METHOD neg_incorrect_path_vs_pack. " 2 Negative, incorrect path vs package append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/sub' iv_filename = '$$zdoma1.doma.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA2' iv_match = ' ' iv_lstate = 'M' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zdoma2.doma.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 1 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Package and path does not match for object, *| ). ENDMETHOD. METHOD neg_similar_filenames. " 3 Negative, similar filenames append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zdoma1.doma.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA2' iv_match = ' ' iv_lstate = 'M' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zdoma1.doma.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 1 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Multiple files with same filename, *| ). ENDMETHOD. METHOD neg_empty_filenames. " 4 Negative, empty filenames append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.abap' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = '$$ZCLASS1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '$$zclass1.clas.xml' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_match = 'X' iv_lstate = ' ' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = '' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 1 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Filename is empty for object *| ). ENDMETHOD. METHOD package_move. " 5 Changed package assignment append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.abap' iv_packmove = 'X' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = 'A' iv_rstate = ' ' iv_package = '$Z$SUB' iv_path = '/sub' iv_filename = 'zclass1.clas.abap' iv_packmove = 'X' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$' iv_path = '/' iv_filename = 'zclass1.clas.xml' iv_packmove = 'X' ). append_result( iv_obj_type = 'CLAS' iv_obj_name = 'ZCLASS1' iv_match = ' ' iv_lstate = 'A' iv_rstate = ' ' iv_package = '$Z$SUB' iv_path = '/sub' iv_filename = 'zclass1.clas.xml' iv_packmove = 'X' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA1' iv_match = ' ' iv_lstate = 'A' iv_rstate = ' ' iv_package = '$Z$' iv_path = '/' iv_filename = 'zdoma1.doma.xml' iv_packmove = 'X' ). append_result( iv_obj_type = 'DOMA' iv_obj_name = 'ZDOMA2' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '$Z$SUB' iv_path = '/sub' iv_filename = 'zdoma1.doma.xml' iv_packmove = 'X' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '$Z$' ). " Three files, but only two msg (for two changed objects) cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 2 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Changed package assignment for object*| ). ENDMETHOD. METHOD check_namespace. " 6 Missing namespace append_result( iv_obj_type = 'CLAS' iv_obj_name = '/NOTEXIST/ZCLASS1' iv_match = ' ' iv_lstate = ' ' iv_rstate = 'A' iv_package = '/NOTEXIST/Z' iv_path = '/' iv_filename = '#notexist#zclass1.clas.xml' ). zcl_abapgit_file_status=>run_checks( ii_log = mi_log it_results = mt_results io_dot = mo_dot iv_top = '/NOTEXIST/Z' ). cl_abap_unit_assert=>assert_equals( act = mi_log->count( ) exp = 1 ). ltcl_util=>check_contains( ii_log = mi_log iv_pattern = |Namespace *| ). ENDMETHOD. ENDCLASS. CLASS lcl_status_result DEFINITION. PUBLIC SECTION. METHODS: constructor IMPORTING it_results TYPE zif_abapgit_definitions=>ty_results_tt, get_line IMPORTING iv_line TYPE i RETURNING VALUE(rs_data) TYPE zif_abapgit_definitions=>ty_result, assert_lines IMPORTING iv_lines TYPE i iv_msg TYPE csequence OPTIONAL. PRIVATE SECTION. DATA: mt_results TYPE zif_abapgit_definitions=>ty_results_tt. ENDCLASS. CLASS lcl_status_result IMPLEMENTATION. METHOD constructor. mt_results = it_results. SORT mt_results BY path filename. ENDMETHOD. METHOD get_line. READ TABLE mt_results INDEX iv_line INTO rs_data. cl_abap_unit_assert=>assert_subrc( ). ENDMETHOD. METHOD assert_lines. cl_abap_unit_assert=>assert_equals( act = lines( mt_results ) exp = iv_lines msg = iv_msg ). ENDMETHOD. ENDCLASS. CLASS ltcl_status_helper DEFINITION DEFERRED. CLASS zcl_abapgit_file_status DEFINITION LOCAL FRIENDS ltcl_status_helper. CLASS ltcl_status_helper DEFINITION FOR TESTING. PUBLIC SECTION. INTERFACES: zif_abapgit_tadir. METHODS: constructor, add_tadir IMPORTING iv_obj_type TYPE tadir-object iv_obj_name TYPE tadir-obj_name iv_devclass TYPE tadir-devclass, add_remote IMPORTING iv_path TYPE string DEFAULT '/' iv_filename TYPE string iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1, add_local IMPORTING iv_path TYPE string DEFAULT '/' iv_filename TYPE string iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1 iv_obj_type TYPE tadir-object OPTIONAL iv_obj_name TYPE tadir-obj_name OPTIONAL iv_devclass TYPE devclass DEFAULT '$Z$', add_state IMPORTING iv_path TYPE string DEFAULT '/' iv_filename TYPE string iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1, run IMPORTING iv_devclass TYPE devclass DEFAULT '$Z$' RETURNING VALUE(ro_result) TYPE REF TO lcl_status_result RAISING zcx_abapgit_exception. PRIVATE SECTION. TYPES: BEGIN OF ty_tadir, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, devclass TYPE tadir-devclass, END OF ty_tadir. DATA: mt_tadir TYPE STANDARD TABLE OF ty_tadir WITH DEFAULT KEY, mt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, mt_remote TYPE zif_abapgit_definitions=>ty_files_tt, mt_state TYPE zif_abapgit_definitions=>ty_file_signatures_tt. ENDCLASS. CLASS ltcl_status_helper IMPLEMENTATION. METHOD constructor. zcl_abapgit_injector=>set_tadir( me ). ENDMETHOD. METHOD add_tadir. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF mt_tadir. APPEND INITIAL LINE TO mt_tadir ASSIGNING <ls_tadir>. <ls_tadir>-obj_type = iv_obj_type. <ls_tadir>-obj_name = iv_obj_name. <ls_tadir>-devclass = iv_devclass. ENDMETHOD. METHOD zif_abapgit_tadir~get_object_package. DATA: ls_tadir LIKE LINE OF mt_tadir. IF lines( mt_tadir ) > 0. READ TABLE mt_tadir INTO ls_tadir WITH KEY obj_type = iv_object obj_name = iv_obj_name. cl_abap_unit_assert=>assert_subrc( ). rv_devclass = ls_tadir-devclass. ENDIF. ENDMETHOD. METHOD zif_abapgit_tadir~read. cl_abap_unit_assert=>fail( ). ENDMETHOD. METHOD zif_abapgit_tadir~read_single. cl_abap_unit_assert=>fail( ). ENDMETHOD. METHOD add_remote. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote. APPEND INITIAL LINE TO mt_remote ASSIGNING <ls_remote>. <ls_remote>-path = iv_path. <ls_remote>-filename = iv_filename. <ls_remote>-sha1 = iv_sha1. ENDMETHOD. METHOD add_local. FIELD-SYMBOLS: <ls_local> LIKE LINE OF mt_local. APPEND INITIAL LINE TO mt_local ASSIGNING <ls_local>. <ls_local>-item-obj_type = iv_obj_type. <ls_local>-item-obj_name = iv_obj_name. <ls_local>-item-devclass = iv_devclass. <ls_local>-file-path = iv_path. <ls_local>-file-filename = iv_filename. <ls_local>-file-sha1 = iv_sha1. ENDMETHOD. METHOD add_state. FIELD-SYMBOLS: <ls_state> LIKE LINE OF mt_state. APPEND INITIAL LINE TO mt_state ASSIGNING <ls_state>. <ls_state>-path = iv_path. <ls_state>-filename = iv_filename. <ls_state>-sha1 = iv_sha1. ENDMETHOD. METHOD run. DATA: lt_results TYPE zif_abapgit_definitions=>ty_results_tt, lo_dot TYPE REF TO zcl_abapgit_dot_abapgit. lo_dot = zcl_abapgit_dot_abapgit=>build_default( ). lo_dot->set_starting_folder( '/' ). " assumed by unit tests lt_results = zcl_abapgit_file_status=>calculate_status( iv_devclass = iv_devclass io_dot = lo_dot it_local = mt_local it_remote = mt_remote it_cur_state = mt_state ). CREATE OBJECT ro_result EXPORTING it_results = lt_results. ENDMETHOD. ENDCLASS. CLASS ltcl_calculate_status DEFINITION DEFERRED. CLASS zcl_abapgit_file_status DEFINITION LOCAL FRIENDS ltcl_calculate_status. CLASS ltcl_calculate_status DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. DATA: mo_helper TYPE REF TO ltcl_status_helper, mo_result TYPE REF TO lcl_status_result. METHODS: setup, only_remote FOR TESTING RAISING zcx_abapgit_exception, only_local FOR TESTING RAISING zcx_abapgit_exception, match FOR TESTING RAISING zcx_abapgit_exception, diff FOR TESTING RAISING zcx_abapgit_exception, moved FOR TESTING RAISING zcx_abapgit_exception, local_outside_main FOR TESTING RAISING zcx_abapgit_exception, complete FOR TESTING RAISING zcx_abapgit_exception, complete_local, complete_remote, complete_state, deleted_remotely FOR TESTING RAISING zcx_abapgit_exception. ENDCLASS. CLASS ltcl_calculate_status IMPLEMENTATION. METHOD setup. CREATE OBJECT mo_helper. ENDMETHOD. METHOD moved. mo_helper->add_local( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_filename = '$$zdoma1.doma.xml' iv_path = '/foo/' iv_devclass = 'FOO' iv_sha1 = 'D1' ). mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_path = '/bar/' iv_sha1 = 'D1' ). mo_helper->add_tadir( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_devclass = 'FOO' ). mo_result = mo_helper->run( iv_devclass = 'FOO' ). mo_result->assert_lines( iv_lines = 2 iv_msg = 'there must be a status calculated for both files, they are in different folders' ). ENDMETHOD. METHOD only_remote. mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_sha1 = 'D1' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-rstate exp = zif_abapgit_definitions=>c_state-added ). ENDMETHOD. METHOD only_local. mo_helper->add_local( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_filename = '$$zdoma1.doma.xml' iv_sha1 = 'D1' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-lstate exp = zif_abapgit_definitions=>c_state-added ). ENDMETHOD. METHOD match. mo_helper->add_local( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_filename = '$$zdoma1.doma.xml' iv_sha1 = 'D1' ). mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_sha1 = 'D1' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-match exp = abap_true ). ENDMETHOD. METHOD diff. mo_helper->add_local( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_filename = '$$zdoma1.doma.xml' iv_sha1 = '12345' ). mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_sha1 = '54321' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-lstate exp = zif_abapgit_definitions=>c_state-modified ). cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-rstate exp = zif_abapgit_definitions=>c_state-modified ). ENDMETHOD. METHOD local_outside_main. mo_helper->add_tadir( iv_obj_type = 'DOMA' iv_obj_name = '$$ZDOMA1' iv_devclass = '$OUTSIDE$' ). mo_helper->add_remote( iv_filename = '$$zdoma1.doma.xml' iv_sha1 = '54321' ). mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). " it should appear as not existing locally cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-rstate exp = zif_abapgit_definitions=>c_state-added ). ENDMETHOD. METHOD complete_local. mo_helper->add_local( iv_path = '/' iv_filename = '.abapgit.xml' iv_sha1 = '1017' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_created_locally.prog.abap' iv_sha1 = '1001' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_created_locally.prog.xml' iv_sha1 = '1022' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.abap' iv_sha1 = '1016' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.xml' iv_sha1 = '1003' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.abap' iv_sha1 = '1028' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.xml' iv_sha1 = '1032' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.abap' iv_sha1 = '1023' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.xml' iv_sha1 = '1033' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.abap' iv_sha1 = '1018' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.xml' iv_sha1 = '1011' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_mod_del.prog.abap' iv_sha1 = '1012' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_mod_del.prog.xml' iv_sha1 = '1006' ). mo_helper->add_local( iv_path = '/src/' iv_filename = 'package.devc.xml' iv_sha1 = '1027' ). mo_helper->add_local( iv_path = '/src/sub/' iv_filename = 'ztest_move_package.prog.xml' iv_sha1 = '1040' ). mo_helper->add_local( iv_path = '/src/sub/' iv_filename = 'package.devc.xml' iv_sha1 = '1041' ). mo_helper->add_local( iv_path = '/src/sub/' iv_filename = 'ztest_move_package_w_change.prog.xml' iv_sha1 = '1042' ). ENDMETHOD. METHOD complete_remote. mo_helper->add_remote( iv_path = '/' iv_filename = '.abapgit.xml' iv_sha1 = '1017' ). mo_helper->add_remote( iv_path = '/' iv_filename = 'README.md' iv_sha1 = '1007' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'package.devc.xml' iv_sha1 = '1027' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_created_remotely.prog.abap' iv_sha1 = '1025' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_created_remotely.prog.xml' iv_sha1 = '1015' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_del_mod.prog.abap' iv_sha1 = '1024' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_del_mod.prog.xml' iv_sha1 = '1013' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_deleted_locally.prog.abap' iv_sha1 = '1008' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_deleted_locally.prog.xml' iv_sha1 = '1009' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.abap' iv_sha1 = '1002' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.xml' iv_sha1 = '1030' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.abap' iv_sha1 = '1026' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.xml' iv_sha1 = '1021' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.abap' iv_sha1 = '1019' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.xml' iv_sha1 = '1031' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_move_package.prog.xml' iv_sha1 = '1040' ). mo_helper->add_remote( iv_path = '/src/sub/' iv_filename = 'package.devc.xml' iv_sha1 = '1041' ). mo_helper->add_remote( iv_path = '/src/' iv_filename = 'ztest_move_package_w_change.prog.xml' iv_sha1 = '2042' ). ENDMETHOD. METHOD complete_state. mo_helper->add_state( iv_path = '/' iv_filename = '.abapgit.xml' iv_sha1 = '1017' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'package.devc.xml' iv_sha1 = '1027' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_locally.prog.abap' iv_sha1 = '1008' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_locally.prog.xml' iv_sha1 = '1009' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.abap' iv_sha1 = '1016' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.xml' iv_sha1 = '1003' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_del_mod.prog.abap' iv_sha1 = '1020' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_del_mod.prog.xml' iv_sha1 = '1029' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.abap' iv_sha1 = '1010' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_both.prog.xml' iv_sha1 = '1004' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.abap' iv_sha1 = '1026' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_locally.prog.xml' iv_sha1 = '1021' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.abap' iv_sha1 = '1018' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_modified_remotely.prog.xml' iv_sha1 = '1011' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_mod_del.prog.abap' iv_sha1 = '1014' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_mod_del.prog.xml' iv_sha1 = '1005' ). mo_helper->add_state( iv_path = '/src/sub/' iv_filename = 'ztest_move_package.prog.xml' iv_sha1 = '1040' ). mo_helper->add_state( iv_path = '/src/sub/' iv_filename = 'package.devc.xml' iv_sha1 = '1041' ). mo_helper->add_state( iv_path = '/src/sub/' iv_filename = 'ztest_move_package_w_change.prog.xml' iv_sha1 = '1042' ). ENDMETHOD. METHOD complete. DATA: ls_line TYPE zif_abapgit_definitions=>ty_result, lv_act TYPE c LENGTH 4, lv_exp TYPE c LENGTH 4. complete_local( ). complete_remote( ). complete_state( ). mo_result = mo_helper->run( ). mo_result->assert_lines( 26 ). DO 26 TIMES. ls_line = mo_result->get_line( sy-index ). lv_act+0(1) = ls_line-match. lv_act+1(1) = ls_line-lstate. lv_act+2(1) = ls_line-rstate. lv_act+3(1) = ls_line-packmove. CASE sy-index. WHEN 1. lv_exp = 'X '. " no changes WHEN 2. lv_exp = ' A'. " add remote WHEN 3. lv_exp = 'X '. " no change WHEN 4 OR 5. lv_exp = ' A '. " add local WHEN 6 OR 7. lv_exp = ' A'. " add remote WHEN 8 OR 9. lv_exp = ' DM'. " delete local, modify remote WHEN 10 OR 11. lv_exp = ' D '. " delete local WHEN 12 OR 13. lv_exp = ' D'. " delete remote WHEN 14 OR 15. lv_exp = ' MD'. " modify local, delete remote WHEN 16 OR 17. lv_exp = ' MM'. " modify both sides WHEN 18 OR 19. lv_exp = ' M '. " modify local WHEN 20 OR 21. lv_exp = ' M'. " modify remote WHEN 22. lv_exp = ' D X'. " package move (no change) WHEN 23. lv_exp = ' D '. " package move with change WHEN 24. lv_exp = 'X '. " no chagen WHEN 25. lv_exp = ' A X'. " package move (no change) WHEN 26. lv_exp = ' A '. " package move with change ENDCASE. cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp msg = |Line { sy-index }: { ls_line-filename }| ). ENDDO. ENDMETHOD. METHOD deleted_remotely. mo_helper->add_local( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.abap' iv_sha1 = '1016' ). mo_helper->add_state( iv_path = '/src/' iv_filename = 'ztest_deleted_remotely.prog.abap' iv_sha1 = '2016' ). " different checksum mo_result = mo_helper->run( ). mo_result->assert_lines( 1 ). " it should appear as deleted remotely cl_abap_unit_assert=>assert_equals( act = mo_result->get_line( 1 )-rstate exp = zif_abapgit_definitions=>c_state-deleted ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 5143, 62, 42116, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 7753, 62, 13376, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 5143, 62, 42116, 13, 198, 198, 31631, 300, 83, 565, 62, 22602, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 25261, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 2198, 62, 3642, 1299, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21065, 62, 6404, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 33279, 41876, 4731, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 22602, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 2198, 62, 3642, 1299, 13, 198, 220, 220, 220, 42865, 300, 83, 62, 37348, 1095, 41876, 1976, 361, 62, 397, 499, 18300, 62, 6404, 14804, 774, 62, 6404, 62, 5269, 13, 198, 220, 220, 220, 42865, 43979, 62, 20500, 34178, 48920, 3963, 300, 83, 62, 37348, 1095, 13, 198, 220, 220, 220, 42865, 300, 85, 62, 3642, 1299, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 300, 83, 62, 37348, 1095, 796, 21065, 62, 6404, 3784, 1136, 62, 37348, 1095, 7, 6739, 198, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 37348, 1095, 39319, 43979, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 16876, 43979, 62, 20500, 12, 5239, 16932, 21628, 62, 33279, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3642, 1299, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 300, 85, 62, 3642, 1299, 198, 220, 220, 220, 220, 220, 1033, 796, 450, 499, 62, 7942, 6739, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 5143, 62, 42116, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 198, 220, 360, 4261, 6234, 6006, 9863, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 45079, 62, 43420, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 43420, 62, 926, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6941, 62, 26518, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21504, 62, 6404, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 24443, 62, 20274, 30023, 9863, 2751, 21628, 62, 26801, 62, 4906, 41876, 4161, 50007, 4906, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26801, 62, 3672, 41876, 27355, 73, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 15699, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 75, 5219, 220, 220, 41876, 1149, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 81, 5219, 220, 220, 41876, 1149, 16, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26495, 220, 41876, 1614, 4871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 6978, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 34345, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8002, 21084, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 11, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 3967, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 2469, 62, 26069, 62, 6978, 62, 1640, 62, 31642, 62, 26801, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 2469, 62, 1939, 47315, 62, 6978, 62, 14259, 62, 8002, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 2469, 62, 38610, 62, 10379, 268, 1047, 7473, 43001, 2751, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 2469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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION-POOL zdbbr_favorite_menu. "MESSAGE-ID .. TABLES: sscrfields. DATA: ok_code TYPE sy-ucomm. ********************************************************************** *** Global variables ********************************************************************** DATA: gs_favmode TYPE zdbbr_browser_mode_data. ********************************************************************** *** controller references ********************************************************************** DATA: gr_export_fav_controller TYPE REF TO zcl_dbbr_export_favmenu_ctrl . ********************************************************************** *** Selection screen definitions ********************************************************************** SELECTION-SCREEN BEGIN OF SCREEN 1100 TITLE TEXT-s01. SELECTION-SCREEN BEGIN OF BLOCK options NO INTERVALS. PARAMETERS: p_xfglb TYPE boolean AS CHECKBOX, p_xfprv TYPE boolean AS CHECKBOX. SELECTION-SCREEN END OF BLOCK options. SELECTION-SCREEN END OF SCREEN 1100.
[ 42296, 4177, 2849, 12, 16402, 3535, 1976, 9945, 1671, 62, 35200, 62, 26272, 13, 220, 220, 220, 220, 220, 220, 220, 220, 366, 44, 1546, 4090, 8264, 12, 2389, 11485, 198, 198, 5603, 9148, 1546, 25, 264, 1416, 81, 25747, 13, 198, 198, 26947, 25, 12876, 62, 8189, 41876, 827, 12, 84, 9503, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 8162, 8060, 9633, 198, 17174, 17174, 2466, 1174, 198, 26947, 25, 308, 82, 62, 69, 615, 14171, 41876, 1976, 9945, 1671, 62, 40259, 62, 14171, 62, 7890, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 8162, 10444, 10288, 198, 17174, 17174, 2466, 1174, 198, 26947, 25, 1036, 62, 39344, 62, 69, 615, 62, 36500, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 39344, 62, 69, 615, 26272, 62, 44755, 198, 220, 220, 220, 220, 220, 764, 198, 198, 17174, 17174, 2466, 1174, 198, 8162, 29538, 3159, 17336, 198, 17174, 17174, 2466, 1174, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 6374, 2200, 1677, 36566, 37977, 2538, 40383, 12, 82, 486, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 3689, 8005, 23255, 53, 23333, 13, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 26152, 4743, 65, 41876, 25131, 7054, 5870, 25171, 39758, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 26152, 1050, 85, 41876, 25131, 7054, 5870, 25171, 39758, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 3689, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 6374, 2200, 1677, 36566, 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 ]
CLASS zcl_aoc_check_23 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. METHODS check REDEFINITION. METHODS get_message_text REDEFINITION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_23 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lv_code TYPE sci_errc, lt_statements LIKE it_statements, lv_include TYPE program. FIELD-SYMBOLS: <ls_statement> LIKE LINE OF it_statements, <ls_token> LIKE LINE OF it_tokens. lt_statements = it_statements. LOOP AT lt_statements ASSIGNING <ls_statement> WHERE coloncol <> 0 AND type <> scan_stmnt_type-pragma. CLEAR lv_code. READ TABLE it_tokens ASSIGNING <ls_token> INDEX <ls_statement>-from. IF sy-subrc <> 0. CONTINUE. ENDIF. IF <ls_token>-str <> 'TYPES' AND <ls_token>-str <> 'DATA' AND <ls_token>-str <> 'CLASS-DATA' AND <ls_token>-str <> 'STATICS' AND <ls_token>-str <> 'WRITE' AND <ls_token>-str <> 'MOVE' " anyhow obsolete AND <ls_token>-str <> 'RANGES' " anyhow obsolete AND <ls_token>-str <> 'METHODS' AND <ls_token>-str <> 'CLEAR' AND <ls_token>-str <> 'PERFORM' AND <ls_token>-str <> 'REFRESH' AND <ls_token>-str <> 'UNASSIGN' AND <ls_token>-str <> 'FREE' AND <ls_token>-str <> 'CONSTANTS' AND <ls_token>-str <> 'TABLES' AND <ls_token>-str <> 'PARAMETERS' AND <ls_token>-str <> 'PARAMETER' AND <ls_token>-str <> 'INTERFACES' AND <ls_token>-str <> 'SELECT-OPTIONS' AND <ls_token>-str <> 'SELECTION-SCREEN' AND <ls_token>-str <> 'ALIASES' AND <ls_token>-str <> 'INCLUDE' AND <ls_token>-str <> 'TYPE-POOLS' AND <ls_token>-str <> 'CLASS-METHODS' AND <ls_token>-str <> 'FIELD-SYMBOLS'. lv_code = '001'. ENDIF. IF lv_code IS INITIAL AND strlen( <ls_token>-str ) + <ls_token>-col <> <ls_statement>-coloncol AND <ls_token>-str <> 'PERFORM'. lv_code = '002'. ENDIF. IF lv_code IS INITIAL. LOOP AT it_tokens ASSIGNING <ls_token> FROM <ls_statement>-from TO <ls_statement>-to WHERE row = <ls_statement>-colonrow. IF <ls_token>-col = <ls_statement>-coloncol + 1. lv_code = '003'. EXIT. " current loop ENDIF. ENDLOOP. ENDIF. IF NOT lv_code IS INITIAL. lv_include = get_include( p_level = <ls_statement>-level ). inform( p_sub_obj_type = c_type_include p_sub_obj_name = lv_include p_line = <ls_token>-row p_kind = mv_errty p_test = myname p_code = lv_code ). * do not report multiple errors for the same chanined statement DELETE lt_statements WHERE level = <ls_statement>-level AND colonrow = <ls_statement>-colonrow AND coloncol = <ls_statement>-coloncol. ENDIF. ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). description = 'Chained Statements'. "#EC NOTEXT category = 'ZCL_AOC_CATEGORY'. version = '001'. position = '023'. has_attributes = abap_true. attributes_ok = abap_true. enable_rfc( ). mv_errty = c_error. ENDMETHOD. "CONSTRUCTOR METHOD get_message_text. CLEAR p_text. CASE p_code. WHEN '001'. p_text = 'Use chained statements mainly for declarations'. "#EC NOTEXT WHEN '002'. p_text = 'Space before colon'. "#EC NOTEXT WHEN '003'. p_text = 'Missing space after colon'. "#EC NOTEXT WHEN OTHERS. super->get_message_text( EXPORTING p_test = p_test p_code = p_code IMPORTING p_text = p_text ). ENDCASE. ENDMETHOD. "GET_MESSAGE_TEXT ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 1954, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 220, 220, 337, 36252, 50, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 20500, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 1954, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 13, 198, 198, 9, 450, 499, 11505, 7376, 4657, 198, 9, 3740, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 397, 499, 11505, 7376, 4657, 198, 9, 17168, 13789, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 8189, 220, 220, 220, 220, 220, 220, 41876, 20681, 62, 263, 6015, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 14269, 3196, 34178, 340, 62, 14269, 3196, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 17256, 220, 220, 220, 41876, 1430, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 26090, 29, 34178, 48920, 3963, 340, 62, 14269, 3196, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 29, 220, 220, 220, 220, 34178, 48920, 3963, 340, 62, 83, 482, 641, 13, 628, 198, 220, 220, 220, 300, 83, 62, 14269, 3196, 796, 340, 62, 14269, 3196, 13, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 14269, 3196, 24994, 3528, 15871, 1279, 7278, 62, 26090, 29, 198, 220, 220, 220, 220, 220, 220, 220, 33411, 7633, 4033, 1279, 29, 657, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 1279, 29, 9367, 62, 301, 76, 429, 62, 4906, 12, 1050, 363, 2611, 13, 628, 220, 220, 220, 220, 220, 30301, 1503, 300, 85, 62, 8189, 13, 628, 220, 220, 220, 220, 220, 20832, 43679, 340, 62, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 29, 24413, 6369, 1279, 7278, 62, 26090, 29, 12, 6738, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 16876, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 9936, 47, 1546, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 26947, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 31631, 12, 26947, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 35744, 19505, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 18564, 12709, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 11770, 6089, 6, 220, 366, 597, 4919, 26533, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 49, 15567, 1546, 6, 366, 597, 4919, 26533, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 49273, 50, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 29931, 1503, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 18973, 21389, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 2200, 10913, 44011, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 4944, 10705, 16284, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 39274, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 10943, 2257, 1565, 4694, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 5603, 9148, 1546, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 27082, 2390, 2767, 4877, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 27082, 2390, 2767, 1137, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 41358, 37, 2246, 1546, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 46506, 12, 3185, 51, 11053, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 46506, 2849, 12, 6173, 2200, 1677, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 1847, 43429, 1546, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 1268, 5097, 52, 7206, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 1279, 29, 705, 25216, 12 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_dynscreen_button DEFINITION PUBLIC INHERITING FROM zcl_dynscreen_io_element FINAL CREATE PUBLIC. PUBLIC SECTION. INTERFACES: zif_dynscreen_uc_event. METHODS: constructor IMPORTING io_parent TYPE REF TO zcl_dynscreen_screen_base iv_text TYPE textpooltx OPTIONAL iv_pos TYPE i OPTIONAL iv_length TYPE i OPTIONAL RAISING zcx_dynscreen_incompatible zcx_dynscreen_too_many_elems, set_position IMPORTING iv_pos TYPE i, get_position RETURNING VALUE(rv_pos) TYPE i, set_length IMPORTING iv_length TYPE i, get_length RETURNING VALUE(rv_length) TYPE i. EVENTS: button_click. PROTECTED SECTION. METHODS: generate_open REDEFINITION, generate_close REDEFINITION. PRIVATE SECTION. TYPES: mty_n2 TYPE n LENGTH 2. DATA: mv_position TYPE mty_n2, mv_length TYPE mty_n2. ENDCLASS. CLASS zcl_dynscreen_button IMPLEMENTATION. METHOD constructor. * --------------------------------------------------------------------- super->constructor( io_parent = io_parent iv_text = iv_text iv_type = mc_type_generic is_generic_type = VALUE #( datatype = mc_type-c length = 1 ) ). * --------------------------------------------------------------------- mv_is_variable = abap_false. set_position( iv_pos ). IF iv_length IS NOT SUPPLIED. set_length( 8 ). ELSE. set_length( iv_length ). ENDIF. * --------------------------------------------------------------------- ENDMETHOD. METHOD generate_close ##NEEDED. * --------------------------------------------------------------------- * --------------------------------------------------------------------- ENDMETHOD. METHOD generate_open. * --------------------------------------------------------------------- APPEND mc_syn-selscreen && ` SKIP 1.` TO mt_source. APPEND mc_syn-selscreen && ` ` && mc_syn-button && ` ` && mv_position && `(` && mv_length && `) ` && mc_syn-btn_prefix && mv_id && ` ` && mc_syn-ucomm && ` ` && mc_syn-ucm_prefix && mv_id && ` ` && mc_syn-modif && ` ` && base10_to_22( mv_id ) && '.' TO mt_source. * --------------------------------------------------------------------- IF mv_text IS NOT INITIAL. APPEND mc_syn-btn_prefix && mv_id && ` = '` && mv_text && `'.` TO ms_source_eve-t_init. ENDIF. * --------------------------------------------------------------------- append_uc_event_src( ). * --------------------------------------------------------------------- ENDMETHOD. METHOD get_length. * --------------------------------------------------------------------- rv_length = mv_length. * --------------------------------------------------------------------- ENDMETHOD. METHOD get_position. * --------------------------------------------------------------------- rv_pos = mv_position. * --------------------------------------------------------------------- ENDMETHOD. METHOD set_length. * --------------------------------------------------------------------- IF iv_length < 1. mv_length = 1. ELSEIF iv_length > 83. mv_length = 83. ELSE. mv_length = iv_length. ENDIF. * --------------------------------------------------------------------- ENDMETHOD. METHOD set_position. * --------------------------------------------------------------------- IF iv_pos < 1. mv_position = 1. ELSEIF iv_pos > 83. mv_position = 83. ELSE. mv_position = iv_pos. ENDIF. * --------------------------------------------------------------------- ENDMETHOD. METHOD zif_dynscreen_uc_event~raise. * --------------------------------------------------------------------- RAISE EVENT button_click. * --------------------------------------------------------------------- ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 67, 2047, 9612, 62, 16539, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 67, 2047, 9612, 62, 952, 62, 30854, 25261, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 198, 220, 220, 220, 220, 220, 1976, 361, 62, 67, 2047, 9612, 62, 1229, 62, 15596, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 30023, 9863, 2751, 33245, 62, 8000, 41876, 4526, 37, 5390, 1976, 565, 62, 67, 2047, 9612, 62, 9612, 62, 8692, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 5239, 220, 220, 41876, 2420, 7742, 17602, 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, 21628, 62, 1930, 220, 220, 220, 41876, 1312, 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, 21628, 62, 13664, 41876, 1312, 39852, 2849, 1847, 198, 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, 67, 2047, 9612, 62, 259, 38532, 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, 1976, 66, 87, 62, 67, 2047, 9612, 62, 18820, 62, 21834, 62, 11129, 907, 11, 198, 220, 220, 220, 220, 220, 900, 62, 9150, 30023, 9863, 2751, 21628, 62, 1930, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 651, 62, 9150, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 1930, 8, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 900, 62, 13664, 30023, 9863, 2751, 21628, 62, 13664, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 651, 62, 13664, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 13664, 8, 41876, 1312, 13, 198, 220, 220, 220, 22399, 25, 198, 220, 220, 220, 220, 220, 4936, 62, 12976, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 7716, 62, 9654, 23848, 36, 20032, 17941, 11, 198, 220, 220, 220, 220, 220, 7716, 62, 19836, 23848, 36, 20032, 17941, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 285, 774, 62, 77, 17, 41876, 299, 406, 49494, 362, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 9150, 41876, 285, 774, 62, 77, 17, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 13664, 220, 220, 41876, 285, 774, 62, 77, 17, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 67, 2047, 9612, 62, 16539, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 198, 9, 16529, 30934, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 33245, 62, 8000, 220, 220, 220, 220, 220, 220, 796, 33245, 62, 8000, 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, 5239, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 796, 36650, 62, 4906, 62, 41357, 198, 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, 41357, 62, 4906, 796, 26173, 8924, 1303, 7, 4818, 265, 2981, 796, 36650, 62, 4906, 12, 66, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4129, 220, 220, 796, 352, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 6739, 198, 198, 9, 16529, 30934, 198, 220, 220, 220, 285, 85, 62, 271, 62, 45286, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 900, 62, 9150, 7, 21628, 62, 1930, 6739, 198, 220, 220, 220, 16876, 21628, 62, 13664, 3180, 5626, 19549, 49094, 13, 198, 220, 220, 220, 220, 220, 900, 62, 13664, 7, 807, 6739, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 900, 62, 13664, 7, 21628, 62, 13664, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 198, 9, 16529, 30934, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 7716, 62, 19836, 22492, 12161, 1961, 1961, 13, 198, 9, 16529, 30934, 198, 9, 16529, 30934, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 7716, 62, 9654, 13, 198, 9, 16529, 30934, 198, 220, 220, 220, 43504, 10619, 36650, 62, 28869, 12, 741, 9612, 11405, 4600, 14277, 4061, 352, 13, 63, 5390, 45079, 62, 10459, 13, 198, 220, 220, 220, 43504, 10619, 36650, 62, 28869, 12, 741, 9612, 11405, 4600, 4600, 11405, 36650, 62, 28869, 12, 16539, 11405, 4600, 4600, 11405, 285, 85, 62, 9150, 11405, 4600, 7, 63, 11405, 285, 85, 62, 13664, 11405, 4600, 8, 4600, 11405, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 36650, 62, 28869, 12, 46118, 62, 40290, 11405, 285, 85, 62, 312, 11405, 4600, 4600, 11405, 36650, 62, 28869, 12, 84, 9503, 11405, 4600, 4600, 11405, 36650, 62, 28869, 12, 1229, 76, 62, 40290, 11405, 285, 85, 62, 312, 11405, 198, 220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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*----------------------------------------------------------------------* * MODULE set_title_9000 OUTPUT *----------------------------------------------------------------------* * *----------------------------------------------------------------------* module set_title_9000 output. set titlebar 'TI_9000'. endmodule. " SET_TITLE_9000 OUTPUT module set_status_9000 output. set pf-status 'ST9000'. endmodule. " SET_TITLE_9000 OUTPUT
[ 9, 10097, 23031, 9, 198, 9, 220, 33893, 900, 62, 7839, 62, 24, 830, 16289, 30076, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 21412, 900, 62, 7839, 62, 24, 830, 5072, 13, 198, 220, 900, 3670, 5657, 705, 25621, 62, 24, 830, 4458, 198, 437, 21412, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 25823, 62, 49560, 2538, 62, 24, 830, 220, 16289, 30076, 198, 198, 21412, 900, 62, 13376, 62, 24, 830, 5072, 13, 198, 220, 220, 220, 900, 279, 69, 12, 13376, 705, 2257, 24, 830, 4458, 198, 437, 21412, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 25823, 62, 49560, 2538, 62, 24, 830, 220, 16289, 30076, 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 ]
CLASS zcl_rest_framework DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_rest_framework . INTERFACES if_serializable_object . ALIASES execute FOR zif_rest_framework~execute . ALIASES set_binary_body FOR zif_rest_framework~set_binary_body . ALIASES set_request_header FOR zif_rest_framework~set_request_header . ALIASES set_request_headers FOR zif_rest_framework~set_request_headers . ALIASES set_string_body FOR zif_rest_framework~set_string_body . ALIASES set_uri FOR zif_rest_framework~set_uri . METHODS constructor IMPORTING !interface_name TYPE zinterface_id !business_identifier TYPE zbusinessid OPTIONAL !method TYPE zinterface_method !logdata_in_updatetask TYPE char1 OPTIONAL RAISING zcx_interace_config_missing zcx_http_client_failed . METHODS get_callingprogram RETURNING VALUE(zeclassname) TYPE zclassname . METHODS get_callingmethod RETURNING VALUE(zemethod) TYPE zclassname . METHODS get_starttime RETURNING VALUE(rv_starttime) TYPE sy-uzeit . METHODS get_startdate RETURNING VALUE(rv_startdate) TYPE sy-datum . METHODS get_submittime RETURNING VALUE(rv_submittime) TYPE sy-uzeit . METHODS get_submitdate RETURNING VALUE(rv_submitdate) TYPE sy-datum . METHODS get_endtime RETURNING VALUE(rv_endtime) TYPE sy-uzeit . METHODS get_endate RETURNING VALUE(rv_enddate) TYPE datum . METHODS get_response_header IMPORTING !iv_name TYPE string RETURNING VALUE(rv_value) TYPE string . METHODS get_response_headers RETURNING VALUE(rt_header_fields) TYPE tihttpnvp . METHODS create_message_id RETURNING VALUE(e_message_id) TYPE guid_16 . METHODS get_user RETURNING VALUE(rv_user) TYPE sy-uname . METHODS get_status RETURNING VALUE(rv_status) TYPE i . METHODS get_http_client RETURNING VALUE(result) TYPE REF TO if_http_client . METHODS get_rest_client RETURNING VALUE(result) TYPE REF TO cl_rest_http_client . METHODS is_retry RETURNING VALUE(e_is_retry) TYPE abap_bool . METHODS get_request RETURNING VALUE(result) TYPE REF TO if_rest_entity . METHODS get_guid RETURNING VALUE(e_message_id) TYPE guid_16 . METHODS get_interface RETURNING VALUE(interface_name) TYPE zinterface_id . METHODS get_businessid RETURNING VALUE(result) TYPE zbusinessid . METHODS set_callingprogram IMPORTING !ziclassname TYPE zclassname . METHODS set_callingmethod IMPORTING !zimethodname TYPE zmethodname . METHODS get_uri RETURNING VALUE(result) TYPE zuri . METHODS get_retrynum RETURNING VALUE(result) TYPE zq_counte . METHODS get_method RETURNING VALUE(result) TYPE char20 . METHODS get_duration RETURNING VALUE(r_secs) TYPE tzntstmpl . METHODS get_program_headers RETURNING VALUE(result) TYPE tihttpnvp . METHODS close . PROTECTED SECTION. PRIVATE SECTION. *"* private components of class ZCL_REST_FRAMEWORK *"* do not include other source files here!!! DATA calling_program_name TYPE zclassname . DATA calling_method_name TYPE zclassname . DATA rest_client TYPE REF TO cl_rest_http_client . DATA http_client TYPE REF TO if_http_client . DATA submit_date TYPE sy-datum . DATA submit_time TYPE sy-uzeit . DATA start_time TYPE sy-uzeit . DATA start_date TYPE sy-datum . DATA end_time TYPE sy-uzeit . DATA end_date TYPE sy-datum . DATA message_id TYPE guid_16 . DATA retry TYPE abap_bool . DATA user TYPE uname . DATA gwa_log TYPE zrest_monitor . DATA request TYPE REF TO if_rest_entity . DATA response TYPE REF TO if_rest_entity . CLASS-DATA interface TYPE zinterface_id . CLASS-DATA businessid TYPE zbusinessid . CLASS-DATA uri_final TYPE zuri . CLASS-DATA retry_cnt TYPE zq_counte . CLASS-DATA method_call TYPE zinterface_method . CLASS-DATA pre_timestamp TYPE timestampl . CLASS-DATA pro_timestamp TYPE timestampl . CLASS-DATA duration TYPE tzntstmpl . CLASS-DATA log_update_task TYPE char1 . CLASS-DATA program_headers TYPE tihttpnvp . METHODS set_interface_id IMPORTING !interface TYPE zinterface_id . METHODS log_end_params . METHODS log_start_params . METHODS log_submit_params . METHODS set_user . METHODS set_enddate IMPORTING !iv_endate TYPE datum . METHODS set_endtime IMPORTING !iv_endtime TYPE sy-uzeit . METHODS set_startdate . METHODS set_submitdate . METHODS set_submittime . METHODS set_starttime . METHODS createhttpclient IMPORTING !interface TYPE zinterface_id !method TYPE zinterface_method RETURNING VALUE(http_client) TYPE REF TO if_http_client RAISING zcx_interace_config_missing zcx_http_client_failed . METHODS save_log . METHODS createrestclient IMPORTING !iv_http_client TYPE REF TO if_http_client RETURNING VALUE(rv_rest_client) TYPE REF TO cl_rest_http_client . METHODS create_request_entity IMPORTING !iv_multipart TYPE abap_bool DEFAULT abap_false RETURNING VALUE(ro_entity) TYPE REF TO if_rest_entity . METHODS get_response_entity RETURNING VALUE(ro_response_entity) TYPE REF TO if_rest_entity . ENDCLASS. CLASS zcl_rest_framework IMPLEMENTATION. METHOD close. DATA: rest_exception TYPE REF TO cx_rest_client_exception. TRY. rest_client->if_rest_client~close( ). CATCH cx_rest_client_exception INTO rest_exception. ENDTRY. ENDMETHOD. METHOD constructor. ** Create the unique guid . This is used across all the tables for storing ** and retrieving the information related to REST calls * message_id = me->set_guid( ). * Set the calling interface.This needs to be provided by while creating instance DATA: cx_interface_missing TYPE REF TO zcx_interace_config_missing, cx_http_client_failed TYPE REF TO zcx_http_client_failed. CREATE OBJECT: cx_interface_missing, cx_http_client_failed. interface = interface_name. businessid = business_identifier. method_call = method. log_update_task = logdata_in_updatetask . * Create the HTTP client and raise exception if interface is not found in the config * Propagate the error to the calling program TRY . http_client = createhttpclient( interface = interface_name method = method ). CATCH zcx_interace_config_missing INTO cx_interface_missing. RAISE EXCEPTION cx_interface_missing. CATCH zcx_http_client_failed INTO cx_http_client_failed. RAISE EXCEPTION cx_http_client_failed. ENDTRY. * Set the protocol method as HTTP 1.1--Hard code this..Not gonna change http_client->request->set_version( if_http_request=>co_protocol_version_1_1 ). * Set the request create_request_entity( ). ENDMETHOD. METHOD createhttpclient. * Start loggin the request set_interface_id( interface = interface ). * Check against the configuration table ZREST_CONFIG and see if there exists entry. if not * Raise an exception if either destination is missing or inteface Id is missing.There is no * point in proceeding further.Calling program would need to catch this exception ! DATA: wa_config TYPE zrest_srtuct_config. * DATA(wa_config) = zcl_rest_utility_class=>get_config_data( exporting interface_id = interface method = method ). v-jobpau wa_config = zcl_rest_utility_class=>get_config_data( interface_id = interface method = method ). IF sy-subrc NE 0. RAISE EXCEPTION TYPE zcx_interace_config_missing. ELSEIF wa_config-destination IS INITIAL. RAISE EXCEPTION TYPE zcx_interace_config_missing. ENDIF. * Create the http client by destination cl_http_client=>create_by_destination( EXPORTING destination = wa_config-destination IMPORTING client = http_client EXCEPTIONS argument_not_found = 1 destination_not_found = 2 destination_no_authority = 3 plugin_not_active = 4 internal_error = 5 OTHERS = 6 ). CASE sy-subrc. WHEN 1 OR 2 OR 3 OR 4 OR 5 OR 6. RAISE EXCEPTION TYPE zcx_http_client_failed. ENDCASE. * Go ahead with processign and create the http client http_client->propertytype_logon_popup = http_client->co_disabled. rest_client = createrestclient( iv_http_client = http_client ). ENDMETHOD. METHOD createrestclient. TRY . CREATE OBJECT rv_rest_client EXPORTING io_http_client = iv_http_client. gwa_log-status = 'E'. gwa_log-reason = 'REST Client Created' . CATCH cx_root. gwa_log-status = 'E'. gwa_log-reason = 'Failed to create REST Client' . ENDTRY. ENDMETHOD. METHOD create_request_entity. **To allow GET and DELETE request entity in REST call IF method_call EQ zif_rest_http_constants=>c_http_method_get OR method_call EQ zif_rest_http_constants=>c_http_method_delete. ELSE. request = rest_client->if_rest_client~create_request_entity( iv_multipart ). ENDIF. ENDMETHOD. METHOD get_businessid. result = businessid. ENDMETHOD. METHOD get_callingmethod. zemethod = calling_method_name. ENDMETHOD. METHOD get_callingprogram. zeclassname = calling_program_name. ENDMETHOD. METHOD get_duration. r_secs = duration. r_secs = r_secs * -1000. "microseconds ENDMETHOD. METHOD get_endate. rv_enddate = end_date. ENDMETHOD. METHOD get_endtime. rv_endtime = end_time. ENDMETHOD. METHOD get_guid. e_message_id = me->message_id. ENDMETHOD. METHOD get_http_client. result = http_client. ENDMETHOD. METHOD get_interface. interface_name = interface. ENDMETHOD. METHOD get_method. result = method_call. ENDMETHOD. METHOD get_program_headers. result = program_headers. REFRESH program_headers. "v-javeda | MS2K948978 ENDMETHOD. METHOD get_request. result = request. ENDMETHOD. METHOD get_response_entity. ro_response_entity = me->rest_client->if_rest_client~get_response_entity( ). response = ro_response_entity. ENDMETHOD. METHOD get_response_header. rv_value = rest_client->if_rest_client~get_response_header( iv_name = iv_name ). ENDMETHOD. METHOD get_response_headers. rt_header_fields = me->rest_client->if_rest_client~get_response_headers( ). ENDMETHOD. METHOD get_rest_client. result = rest_client. ENDMETHOD. METHOD get_retrynum. result = retry_cnt. ENDMETHOD. METHOD get_startdate. rv_startdate = start_date. ENDMETHOD. METHOD get_starttime. rv_starttime = start_time. ENDMETHOD. METHOD get_status. IF rest_client IS BOUND. rv_status = rest_client->if_rest_client~get_status( ). ENDIF. ENDMETHOD. METHOD get_submitdate. rv_submitdate = submit_date. ENDMETHOD. METHOD get_submittime. rv_submittime = submit_time. ENDMETHOD. METHOD get_uri. result = uri_final. ENDMETHOD. METHOD get_user. rv_user = user. ENDMETHOD. METHOD is_retry. e_is_retry = me->retry. ENDMETHOD. METHOD log_end_params. set_enddate( iv_endate = sy-datum ). set_endtime( iv_endtime = sy-uzeit ). ENDMETHOD. METHOD log_start_params. set_user( ). set_startdate( ). set_starttime( ). ENDMETHOD. METHOD log_submit_params. set_submitdate( ). set_submittime( ). ENDMETHOD. METHOD save_log. CALL FUNCTION 'ZSAVE_REST_LOG' EXPORTING framework_class = me update_task = log_update_task. ENDMETHOD. METHOD set_callingmethod. calling_method_name = zimethodname. ENDMETHOD. METHOD set_callingprogram. calling_program_name = ziclassname. ENDMETHOD. METHOD set_enddate. end_date = iv_endate . ENDMETHOD. METHOD set_endtime. end_time = iv_endtime. ENDMETHOD. METHOD create_message_id. TRY. e_message_id = cl_system_uuid=>create_uuid_x16_static( ). CATCH cx_uuid_error. e_message_id = sy-datum && sy-uzeit. ENDTRY. ENDMETHOD. METHOD set_interface_id. gwa_log-interface_id = interface. ENDMETHOD. METHOD set_startdate. start_date = sy-datum. ENDMETHOD. METHOD set_starttime. start_time = sy-uzeit. ENDMETHOD. METHOD set_submitdate. submit_date = sy-datum. ENDMETHOD. METHOD set_submittime. start_date = sy-datum. ENDMETHOD. METHOD set_user. user = sy-uname. ENDMETHOD. METHOD zif_rest_framework~execute. DATA: lwa_config_data TYPE zrest_srtuct_config, rest_exception TYPE REF TO cx_rest_client_exception. CREATE OBJECT rest_exception. GET TIME STAMP FIELD pre_timestamp. * Is this a retry ? me->retry = is_retry. * Change only for the retry sceario. IF is_retry( ) = abap_true. me->message_id = messageid. retry_cnt = retry_count + 1. ELSE. * Create the unique guid . This is used across all the tables for storing * and retrieving the information related to REST calls me->message_id = me->create_message_id( ). ENDIF. * This method will execute GET,POST,PUT ...ased on the configuration set for the inteface. If Async is set , Request will * in the wating status till the async program flushes this out. Apart from executing the calls , this method will hold * the metrics of data * Get the configuration data for the inteface. lwa_config_data = zcl_rest_utility_class=>get_config_data( interface_id = interface method = method_call ). * Get the static headers from the configuration rest_client->if_rest_client~set_request_headers( zcl_rest_utility_class=>get_static_headers( interface_id = interface ) ). * Set the corelation id DATA lv_value TYPE string. lv_value = message_id. rest_client->if_rest_client~set_request_header( iv_name = 'id-sap-restfrmwrk' iv_value = lv_value ). * Set the basic log parameters log_start_params( ). gwa_log-method = method. * If it's Async , record and exit IF async EQ abap_false. TRY . CASE lwa_config_data-method. WHEN zif_rest_http_constants=>c_http_method_head. rest_client->if_rest_resource~head( ). WHEN zif_rest_http_constants=>c_http_method_get. rest_client->if_rest_resource~get( ). WHEN zif_rest_http_constants=>c_http_method_delete. rest_client->if_rest_resource~delete( ). WHEN zif_rest_http_constants=>c_http_method_options. rest_client->if_rest_resource~options( ). WHEN zif_rest_http_constants=>c_http_method_post. rest_client->if_rest_resource~post( request ). WHEN zif_rest_http_constants=>c_http_method_put. rest_client->if_rest_resource~put( request ). ENDCASE. log_end_params( ). CATCH cx_rest_client_exception INTO rest_exception. log_end_params( ). gwa_log-reason = rest_exception->get_text( ). ENDTRY. *Read the respomse and set the appropriate reason response = rest_client->if_rest_client~get_response_entity( ). IF response IS BOUND. gwa_log-reason = 'Endpoint Called' . ENDIF. ELSE. *Log the submitted time log_submit_params( ). gwa_log-reason = 'Async-Waiting'. ENDIF. * duration = duration * -1000. " Convert to microseconds GET TIME STAMP FIELD pro_timestamp. duration = cl_abap_tstmp=>subtract( tstmp1 = pre_timestamp tstmp2 = pro_timestamp ). * Save the log to database for further reporing save_log( ). ENDMETHOD. METHOD zif_rest_framework~set_binary_body. IF body IS NOT INITIAL. request->set_binary_data( body ). ENDIF. ENDMETHOD. METHOD zif_rest_framework~set_request_header. DATA lv_tihttpnvp TYPE LINE OF tihttpnvp. lv_tihttpnvp-name = iv_name. lv_tihttpnvp-value = iv_value. APPEND lv_tihttpnvp TO program_headers. CLEAR lv_tihttpnvp. http_client->request->set_header_field( name = iv_name value = iv_value ). ENDMETHOD. METHOD zif_rest_framework~set_request_headers. DATA: lv_tihttpnvp TYPE LINE OF tihttpnvp, wa_modified_headers TYPE ihttpnvp. LOOP AT it_header_fields INTO wa_modified_headers. lv_tihttpnvp-name = wa_modified_headers-name. lv_tihttpnvp-value = wa_modified_headers-value. APPEND lv_tihttpnvp TO program_headers. CLEAR lv_tihttpnvp. ENDLOOP. http_client->request->set_header_fields( it_header_fields ). ENDMETHOD. METHOD zif_rest_framework~set_string_body. IF body IS NOT INITIAL. http_client->request->set_cdata( body ). ENDIF. ENDMETHOD. METHOD zif_rest_framework~set_uri. CHECK uri IS NOT INITIAL. cl_http_utility=>set_request_uri( request = http_client->request " HTTP Framework (iHTTP) HTTP Request uri = uri ). " URI String (in the Form of /path?query-string) uri_final = uri. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 2118, 62, 30604, 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, 2118, 62, 30604, 764, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 46911, 13821, 62, 15252, 764, 628, 220, 220, 220, 8355, 43429, 1546, 12260, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 2118, 62, 30604, 93, 41049, 764, 198, 220, 220, 220, 8355, 43429, 1546, 900, 62, 39491, 62, 2618, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 2118, 62, 30604, 93, 2617, 62, 39491, 62, 2618, 764, 198, 220, 220, 220, 8355, 43429, 1546, 900, 62, 25927, 62, 25677, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 2118, 62, 30604, 93, 2617, 62, 25927, 62, 25677, 764, 198, 220, 220, 220, 8355, 43429, 1546, 900, 62, 25927, 62, 50145, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 2118, 62, 30604, 93, 2617, 62, 25927, 62, 50145, 764, 198, 220, 220, 220, 8355, 43429, 1546, 900, 62, 8841, 62, 2618, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 2118, 62, 30604, 93, 2617, 62, 8841, 62, 2618, 764, 198, 220, 220, 220, 8355, 43429, 1546, 900, 62, 9900, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 2118, 62, 30604, 93, 2617, 62, 9900, 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, 39994, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 39994, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 22680, 62, 738, 7483, 220, 220, 41876, 1976, 22680, 312, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 24396, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 39994, 62, 24396, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 6404, 7890, 62, 259, 62, 929, 19608, 316, 2093, 41876, 1149, 16, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 3849, 558, 62, 11250, 62, 45688, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 4023, 62, 16366, 62, 47904, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 44714, 23065, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 2736, 4871, 3672, 8, 41876, 1976, 4871, 3672, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 44714, 24396, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 89, 19261, 2065, 8, 41876, 1976, 4871, 3672, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 9688, 2435, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 9688, 2435, 8, 41876, 827, 12, 84, 2736, 270, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 9688, 4475, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 9688, 4475, 8, 41876, 827, 12, 19608, 388, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 7266, 20124, 524, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 7266, 20124, 524, 8, 41876, 827, 12, 84, 2736, 270, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 46002, 4475, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 46002, 4475, 8, 41876, 827, 12, 19608, 388, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 437, 2435, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 437, 2435, 8, 41876, 827, 12, 84, 2736, 270, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 437, 378, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 437, 4475, 8, 41876, 4818, 388, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26209, 62, 25677, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 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, 8367, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26209, 62, 50145, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 25677, 62, 25747, 8, 41876, 46668, 4023, 77, 36133, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 20500, 62, 312, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 68, 62, 20500, 62, 312, 8, 41876, 10103, 62, 1433, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 7220, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 7220, 8, 41876, 827, 12, 403, 480, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 13376, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 13376, 8, 41876, 1312, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 764, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_ABAK_DATA_NORMAL definition public inheriting from ZCL_ABAK_DATA final create public global friends ZCL_ABAK_FACTORY . public section. methods CONSTRUCTOR importing !IO_FORMAT type ref to ZIF_ABAK_FORMAT !IO_SOURCE type ref to zif_abak_source raising ZCX_ABAK . protected section. methods INVALIDATE_AUX redefinition . methods LOAD_DATA_AUX redefinition . PRIVATE SECTION. DATA go_format TYPE REF TO zif_abak_format . DATA go_source TYPE REF TO zif_abak_source . ENDCLASS. CLASS ZCL_ABAK_DATA_NORMAL IMPLEMENTATION. METHOD constructor. super->constructor( ). IF io_format IS NOT BOUND OR IO_SOURCE IS NOT BOUND. RAISE EXCEPTION TYPE zcx_abak EXPORTING textid = zcx_abak=>invalid_parameters. ENDIF. go_format = io_format. go_source = IO_SOURCE. ENDMETHOD. METHOD invalidate_aux. go_source->invalidate( ). ENDMETHOD. METHOD load_data_aux. rt_k = go_format->convert( go_source->get( ) ). ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 32, 4339, 42, 62, 26947, 62, 35510, 42126, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 32, 4339, 42, 62, 26947, 198, 220, 2457, 198, 220, 2251, 1171, 628, 220, 3298, 2460, 1168, 5097, 62, 32, 4339, 42, 62, 37, 10659, 15513, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 21389, 1404, 2099, 1006, 284, 1168, 5064, 62, 32, 4339, 42, 62, 21389, 1404, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 47690, 2099, 1006, 284, 1976, 361, 62, 397, 461, 62, 10459, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 32, 4339, 42, 764, 198, 24326, 2665, 13, 628, 220, 5050, 3268, 23428, 2389, 6158, 62, 26830, 55, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 17579, 2885, 62, 26947, 62, 26830, 55, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 467, 62, 18982, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 461, 62, 18982, 764, 198, 220, 220, 220, 42865, 467, 62, 10459, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 461, 62, 10459, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4339, 42, 62, 26947, 62, 35510, 42126, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 16876, 33245, 62, 18982, 3180, 5626, 347, 15919, 6375, 24418, 62, 47690, 3180, 5626, 347, 15919, 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, 220, 220, 220, 220, 220, 220, 220, 2420, 312, 796, 1976, 66, 87, 62, 397, 461, 14804, 259, 12102, 62, 17143, 7307, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 467, 62, 18982, 796, 33245, 62, 18982, 13, 198, 220, 220, 220, 467, 62, 10459, 796, 24418, 62, 47690, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 12515, 378, 62, 14644, 13, 198, 220, 220, 220, 467, 62, 10459, 3784, 259, 12102, 378, 7, 6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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
******************************************************************* * System-defined Include-files. * ******************************************************************* INCLUDE LZDBBR_SH_EXITTOP. " Global Data INCLUDE LZDBBR_SH_EXITUXX. " Function Modules ******************************************************************* * User-defined Include-files (if necessary). * ******************************************************************* * INCLUDE LZDBBR_SH_EXITF... " Subroutines * INCLUDE LZDBBR_SH_EXITO... " PBO-Modules * INCLUDE LZDBBR_SH_EXITI... " PAI-Modules * INCLUDE LZDBBR_SH_EXITE... " Events * INCLUDE LZDBBR_SH_EXITP... " Local class implement. * INCLUDE LZDBBR_SH_EXITT99. " ABAP Unit tests include zuitb_data_cache.
[ 17174, 17174, 8162, 198, 9, 220, 220, 4482, 12, 23211, 40348, 12, 16624, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 220, 3268, 5097, 52, 7206, 406, 57, 11012, 11473, 62, 9693, 62, 6369, 22470, 3185, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8060, 6060, 198, 220, 3268, 5097, 52, 7206, 406, 57, 11012, 11473, 62, 9693, 62, 6369, 2043, 52, 8051, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 15553, 3401, 5028, 198, 198, 17174, 17174, 8162, 198, 9, 220, 220, 11787, 12, 23211, 40348, 12, 16624, 357, 361, 3306, 737, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 9, 3268, 5097, 52, 7206, 406, 57, 11012, 11473, 62, 9693, 62, 6369, 2043, 37, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3834, 81, 448, 1127, 198, 9, 3268, 5097, 52, 7206, 406, 57, 11012, 11473, 62, 9693, 62, 6369, 2043, 46, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 350, 8202, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 406, 57, 11012, 11473, 62, 9693, 62, 6369, 2043, 40, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8147, 40, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 406, 57, 11012, 11473, 62, 9693, 62, 6369, 12709, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18715, 198, 9, 3268, 5097, 52, 7206, 406, 57, 11012, 11473, 62, 9693, 62, 6369, 2043, 47, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 10714, 1398, 3494, 13, 198, 9, 3268, 5097, 52, 7206, 406, 57, 11012, 11473, 62, 9693, 62, 6369, 22470, 2079, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 9564, 2969, 11801, 5254, 198, 198, 17256, 1976, 5013, 65, 62, 7890, 62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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_git_branch_list DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !iv_data TYPE string RAISING zcx_abapgit_exception . METHODS find_by_name IMPORTING !iv_branch_name TYPE clike RETURNING VALUE(rs_branch) TYPE zif_abapgit_definitions=>ty_git_branch RAISING zcx_abapgit_exception . METHODS get_head_symref RETURNING VALUE(rv_head_symref) TYPE string . METHODS get_all RETURNING VALUE(rt_branches) TYPE zif_abapgit_definitions=>ty_git_branch_list_tt RAISING zcx_abapgit_exception . METHODS get_branches_only RETURNING VALUE(rt_branches) TYPE zif_abapgit_definitions=>ty_git_branch_list_tt RAISING zcx_abapgit_exception . METHODS get_tags_only " For potential future use RETURNING VALUE(rt_tags) TYPE zif_abapgit_definitions=>ty_git_branch_list_tt RAISING zcx_abapgit_exception . CLASS-METHODS get_display_name IMPORTING !iv_branch_name TYPE clike RETURNING VALUE(rv_display_name) TYPE string . CLASS-METHODS get_type IMPORTING !iv_branch_name TYPE clike !it_result TYPE string_table OPTIONAL !iv_current_row_index TYPE sy-tabix OPTIONAL RETURNING VALUE(rv_type) TYPE zif_abapgit_definitions=>ty_git_branch_type . CLASS-METHODS complete_heads_branch_name IMPORTING !iv_branch_name TYPE clike RETURNING VALUE(rv_name) TYPE string . CLASS-METHODS normalize_branch_name IMPORTING !iv_branch_name TYPE clike RETURNING VALUE(rv_name) TYPE string . PROTECTED SECTION. PRIVATE SECTION. DATA mt_branches TYPE zif_abapgit_definitions=>ty_git_branch_list_tt . DATA mv_head_symref TYPE string . CLASS-METHODS skip_first_pkt IMPORTING !iv_data TYPE string RETURNING VALUE(rv_data) TYPE string . METHODS find_tag_by_name IMPORTING !iv_branch_name TYPE string RETURNING VALUE(rs_branch) TYPE zif_abapgit_definitions=>ty_git_branch RAISING zcx_abapgit_exception . CLASS-METHODS parse_branch_list IMPORTING !iv_data TYPE string EXPORTING !et_list TYPE zif_abapgit_definitions=>ty_git_branch_list_tt !ev_head_symref TYPE string RAISING zcx_abapgit_exception . CLASS-METHODS parse_head_params IMPORTING !iv_data TYPE string RETURNING VALUE(rv_head_symref) TYPE string . ENDCLASS. CLASS ZCL_ABAPGIT_GIT_BRANCH_LIST IMPLEMENTATION. METHOD complete_heads_branch_name. IF iv_branch_name CP zif_abapgit_definitions=>c_git_branch-heads. rv_name = iv_branch_name. ELSE. rv_name = zif_abapgit_definitions=>c_git_branch-heads_prefix && iv_branch_name. ENDIF. ENDMETHOD. METHOD constructor. parse_branch_list( EXPORTING iv_data = iv_data IMPORTING et_list = me->mt_branches ev_head_symref = me->mv_head_symref ). ENDMETHOD. METHOD find_by_name. IF iv_branch_name IS INITIAL. zcx_abapgit_exception=>raise( 'Branch name empty' ). ENDIF. IF iv_branch_name CP zif_abapgit_definitions=>c_git_branch-tags. rs_branch = find_tag_by_name( iv_branch_name ). ELSE. READ TABLE mt_branches INTO rs_branch WITH KEY name = iv_branch_name. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Branch { get_display_name( iv_branch_name ) } not found. Use 'Branch' > 'Switch' to select a different branch| ). ENDIF. ENDIF. ENDMETHOD. METHOD find_tag_by_name. DATA: lv_branch_name TYPE string. lv_branch_name = iv_branch_name && '^{}'. READ TABLE mt_branches INTO rs_branch WITH KEY name = lv_branch_name. IF sy-subrc <> 0. READ TABLE mt_branches INTO rs_branch WITH KEY name = iv_branch_name. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Branch not found' ). ENDIF. ENDIF. ENDMETHOD. METHOD get_all. rt_branches = mt_branches. ENDMETHOD. METHOD get_branches_only. FIELD-SYMBOLS <ls_branch> LIKE LINE OF mt_branches. LOOP AT mt_branches ASSIGNING <ls_branch>. IF <ls_branch>-type = zif_abapgit_definitions=>c_git_branch_type-branch. APPEND <ls_branch> TO rt_branches. ENDIF. ENDLOOP. ENDMETHOD. METHOD get_display_name. rv_display_name = iv_branch_name. IF rv_display_name CP zif_abapgit_definitions=>c_git_branch-heads. REPLACE FIRST OCCURRENCE OF zif_abapgit_definitions=>c_git_branch-heads_prefix IN rv_display_name WITH ''. ELSEIF rv_display_name CP zif_abapgit_definitions=>c_git_branch-tags. REPLACE FIRST OCCURRENCE OF zif_abapgit_definitions=>c_git_branch-prefix IN rv_display_name WITH ''. ENDIF. ENDMETHOD. METHOD get_head_symref. rv_head_symref = mv_head_symref. ENDMETHOD. METHOD get_tags_only. FIELD-SYMBOLS <ls_branch> LIKE LINE OF mt_branches. LOOP AT mt_branches ASSIGNING <ls_branch> WHERE type = zif_abapgit_definitions=>c_git_branch_type-lightweight_tag OR type = zif_abapgit_definitions=>c_git_branch_type-annotated_tag. APPEND <ls_branch> TO rt_tags. ENDLOOP. ENDMETHOD. METHOD get_type. DATA: lv_annotated_tag_with_suffix TYPE string. FIELD-SYMBOLS: <lv_result> TYPE LINE OF string_table. rv_type = zif_abapgit_definitions=>c_git_branch_type-other. IF iv_branch_name CP zif_abapgit_definitions=>c_git_branch-heads OR iv_branch_name = zif_abapgit_definitions=>c_head_name. rv_type = zif_abapgit_definitions=>c_git_branch_type-branch. ELSEIF iv_branch_name CP zif_abapgit_definitions=>c_git_branch-tags. lv_annotated_tag_with_suffix = iv_branch_name && '^{}'. READ TABLE it_result ASSIGNING <lv_result> INDEX iv_current_row_index + 1. IF sy-subrc = 0 AND <lv_result> CP '*' && lv_annotated_tag_with_suffix. rv_type = zif_abapgit_definitions=>c_git_branch_type-annotated_tag. ELSE. rv_type = zif_abapgit_definitions=>c_git_branch_type-lightweight_tag. ENDIF. ENDIF. ENDMETHOD. METHOD normalize_branch_name. rv_name = iv_branch_name. " Force convert to string REPLACE ALL OCCURRENCES OF ` ` IN rv_name WITH '-'. " Disallow space in branch name ENDMETHOD. METHOD parse_branch_list. DATA: lt_result TYPE TABLE OF string, lv_hash TYPE zif_abapgit_definitions=>ty_sha1, lv_name TYPE string, lv_head_params TYPE string, lv_char TYPE c, lv_data LIKE LINE OF lt_result, lv_current_row_index TYPE syst-tabix. FIELD-SYMBOLS: <ls_branch> LIKE LINE OF et_list. CLEAR: et_list, ev_head_symref. lv_data = skip_first_pkt( iv_data ). SPLIT lv_data AT zif_abapgit_definitions=>c_newline INTO TABLE lt_result. LOOP AT lt_result INTO lv_data. lv_current_row_index = sy-tabix. IF sy-tabix = 1 AND strlen( lv_data ) > 49. lv_hash = lv_data+8. lv_name = lv_data+49. lv_char = zcl_abapgit_git_utils=>get_null( ). SPLIT lv_name AT lv_char INTO lv_name lv_head_params. ev_head_symref = parse_head_params( lv_head_params ). ELSEIF sy-tabix > 1 AND strlen( lv_data ) > 45. lv_hash = lv_data+4. lv_name = lv_data+45. ELSEIF sy-tabix = 1 AND strlen( lv_data ) = 8 AND lv_data(8) = '00000000'. zcx_abapgit_exception=>raise( 'No branches, create branch manually by adding file' ). ELSE. CONTINUE. ENDIF. ASSERT lv_name IS NOT INITIAL. APPEND INITIAL LINE TO et_list ASSIGNING <ls_branch>. <ls_branch>-sha1 = lv_hash. <ls_branch>-name = lv_name. <ls_branch>-display_name = get_display_name( lv_name ). <ls_branch>-type = get_type( iv_branch_name = lv_name it_result = lt_result iv_current_row_index = lv_current_row_index ). IF <ls_branch>-name = zif_abapgit_definitions=>c_head_name OR <ls_branch>-name = ev_head_symref. <ls_branch>-is_head = abap_true. ENDIF. ENDLOOP. ENDMETHOD. METHOD parse_head_params. DATA: ls_match TYPE match_result, ls_submatch LIKE LINE OF ls_match-submatches. FIND FIRST OCCURRENCE OF REGEX '\ssymref=HEAD:([^\s]+)' IN iv_data RESULTS ls_match. READ TABLE ls_match-submatches INTO ls_submatch INDEX 1. IF sy-subrc IS INITIAL. rv_head_symref = iv_data+ls_submatch-offset(ls_submatch-length). ENDIF. ENDMETHOD. METHOD skip_first_pkt. DATA: lv_hex TYPE x LENGTH 1, lv_length TYPE i. * channel ASSERT iv_data(2) = '00'. lv_hex = to_upper( iv_data+2(2) ). lv_length = lv_hex. rv_data = iv_data+lv_length. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 18300, 62, 1671, 3702, 62, 4868, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7890, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 1525, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 220, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 1671, 3702, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 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, 651, 62, 2256, 62, 37047, 5420, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2256, 62, 37047, 5420, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 439, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 1671, 12140, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 1671, 3702, 62, 4868, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 1671, 12140, 62, 8807, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 1671, 12140, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 1671, 3702, 62, 4868, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 31499, 62, 8807, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 1114, 2785, 2003, 779, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 31499, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 1671, 3702, 62, 4868, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 13812, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 220, 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, 81, 85, 62, 13812, 62, 3672, 8, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 4906, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 220, 220, 220, 220, 220, 220, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 20274, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 62, 11487, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 14421, 62, 808, 62, 9630, 41876, 827, 12, 8658, 844, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 4906, 8, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 18300, 62, 1671, 3702, 62, 4906, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1844, 62, 16600, 62, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 3672, 8, 220, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 3487, 1096, 62, 1671, 3702, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 3672, 8, 220, 41876, 4731, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 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, 285, 85, 62, 2256, 62, 37047, 5420, 41876, 4731, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 14267, 62, 11085, 62, 79, 21841, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7890, 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, 7890, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Report Z_ABAPB2E_MACROS_05 *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT z_abapb2e_macros_05. INCLUDE z_abapb2e_macros_05_macros. DATA : lt_flights TYPE TABLE OF flightm WITH HEADER LINE, go_alvgrid TYPE REF TO cl_gui_alv_grid. SELECT-OPTIONS : s_dcity FOR lt_flights-dcity. START-OF-SELECTION. *--Select the data SELECT * FROM flightm INTO TABLE lt_flights WHERE dcity IN s_dcity. *--Display the data in ALV grid PERFORM display_alv TABLES lt_flights. INCLUDE z_abapb2e_macros_05_displayf01. INCLUDE z_abapb2e_macros_05_pai.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 1168, 62, 6242, 2969, 33, 17, 36, 62, 44721, 49, 2640, 62, 2713, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1976, 62, 397, 499, 65, 17, 68, 62, 20285, 4951, 62, 2713, 13, 198, 1268, 5097, 52, 7206, 1976, 62, 397, 499, 65, 17, 68, 62, 20285, 4951, 62, 2713, 62, 20285, 4951, 13, 198, 198, 26947, 1058, 300, 83, 62, 2704, 2337, 41876, 43679, 3963, 5474, 76, 13315, 39837, 1137, 48920, 11, 198, 220, 220, 220, 220, 220, 220, 467, 62, 282, 85, 25928, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 282, 85, 62, 25928, 13, 628, 198, 198, 46506, 12, 3185, 51, 11053, 1058, 264, 62, 17896, 414, 7473, 300, 83, 62, 2704, 2337, 12, 17896, 414, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 9, 438, 17563, 262, 1366, 198, 220, 33493, 1635, 16034, 5474, 76, 39319, 43679, 300, 83, 62, 2704, 2337, 198, 220, 33411, 288, 19205, 3268, 264, 62, 17896, 414, 13, 198, 198, 9, 438, 23114, 262, 1366, 287, 8355, 53, 10706, 198, 220, 19878, 21389, 3359, 62, 282, 85, 309, 6242, 28378, 300, 83, 62, 2704, 2337, 13, 628, 198, 220, 3268, 5097, 52, 7206, 1976, 62, 397, 499, 65, 17, 68, 62, 20285, 4951, 62, 2713, 62, 13812, 69, 486, 13, 198, 220, 3268, 5097, 52, 7206, 1976, 62, 397, 499, 65, 17, 68, 62, 20285, 4951, 62, 2713, 62, 49712, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_oo_serializer DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS serialize_abap_clif_source IMPORTING !is_class_key TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception cx_sy_dyn_call_error . METHODS are_test_classes_skipped RETURNING VALUE(rv_return) TYPE abap_bool . METHODS serialize_locals_imp IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_locals_def IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_testclasses IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_macros IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. DATA mv_skip_testclass TYPE abap_bool . METHODS calculate_skip_testclass IMPORTING !it_source TYPE zif_abapgit_definitions=>ty_string_tt RETURNING VALUE(rv_skip_testclass) TYPE abap_bool . METHODS serialize_abap_old IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_abap_new IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception cx_sy_dyn_call_error . METHODS remove_signatures CHANGING !ct_source TYPE zif_abapgit_definitions=>ty_string_tt . METHODS read_include IMPORTING !is_clskey TYPE seoclskey !iv_type TYPE seop_include_ext_app RETURNING VALUE(rt_source) TYPE seop_source_string . METHODS reduce CHANGING !ct_source TYPE zif_abapgit_definitions=>ty_string_tt . ENDCLASS. CLASS ZCL_ABAPGIT_OO_SERIALIZER IMPLEMENTATION. METHOD are_test_classes_skipped. rv_return = mv_skip_testclass. ENDMETHOD. METHOD calculate_skip_testclass. DATA: lv_line1 LIKE LINE OF it_source, lv_line2 LIKE LINE OF it_source. * when creating classes in Eclipse it automatically generates the * testclass include, but it is not needed, so skip to avoid * creating an extra file in the repository. * Also remove it if the content is manually removed, but * the class still thinks it contains tests rv_skip_testclass = abap_false. IF lines( it_source ) = 2. READ TABLE it_source INDEX 1 INTO lv_line1. ASSERT sy-subrc = 0. READ TABLE it_source INDEX 2 INTO lv_line2. ASSERT sy-subrc = 0. IF strlen( lv_line1 ) >= 3 AND lv_line1(3) = '*"*' AND lv_line2 IS INITIAL. rv_skip_testclass = abap_true. ENDIF. ELSEIF lines( it_source ) = 1. READ TABLE it_source INDEX 1 INTO lv_line1. ASSERT sy-subrc = 0. IF lv_line1 IS INITIAL OR ( strlen( lv_line1 ) >= 3 AND lv_line1(3) = '*"*' ) OR ( strlen( lv_line1 ) = 1 AND lv_line1(1) = '*' ). rv_skip_testclass = abap_true. ENDIF. ELSEIF lines( it_source ) = 0. rv_skip_testclass = abap_true. ENDIF. ENDMETHOD. METHOD read_include. DATA: ls_include TYPE progstruc. ASSERT iv_type = seop_ext_class_locals_def OR iv_type = seop_ext_class_locals_imp OR iv_type = seop_ext_class_macros OR iv_type = seop_ext_class_testclasses. ls_include-rootname = is_clskey-clsname. TRANSLATE ls_include-rootname USING ' ='. ls_include-categorya = iv_type(1). ls_include-codea = iv_type+1(4). * it looks like there is an issue in function module SEO_CLASS_GET_INCLUDE_SOURCE * on 750 kernels, where the READ REPORT without STATE addition does not * return the active version, this method is a workaround for this issue READ REPORT ls_include INTO rt_source STATE 'A'. ENDMETHOD. METHOD reduce. DATA: lv_source LIKE LINE OF ct_source, lv_found TYPE abap_bool. * skip files that only contain the standard comments lv_found = abap_false. LOOP AT ct_source INTO lv_source. IF strlen( lv_source ) >= 3 AND lv_source(3) <> '*"*'. lv_found = abap_true. ENDIF. ENDLOOP. IF lv_found = abap_false. CLEAR ct_source. ENDIF. ENDMETHOD. METHOD remove_signatures. * signatures messes up in CL_OO_SOURCE when deserializing and serializing * within same session DATA: lv_begin TYPE string, lv_end TYPE string, lv_remove TYPE abap_bool, lv_source LIKE LINE OF ct_source. "@TODO: Put under test CONCATENATE '* <SIGNATURE>------------------------------------' '---------------------------------------------------+' INTO lv_begin. CONCATENATE '* +------------------------------------------------' '--------------------------------------</SIGNATURE>' INTO lv_end. lv_remove = abap_false. LOOP AT ct_source INTO lv_source. IF lv_source = lv_begin. lv_remove = abap_true. ENDIF. IF lv_remove = abap_true. DELETE ct_source INDEX sy-tabix. ENDIF. IF lv_source = lv_end. lv_remove = abap_false. ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_abap_clif_source. TRY. rt_source = serialize_abap_new( is_class_key ). CATCH cx_sy_dyn_call_error. rt_source = serialize_abap_old( is_class_key ). ENDTRY. ENDMETHOD. METHOD serialize_abap_new. DATA: lo_source TYPE REF TO object, lo_instance TYPE REF TO object. * do not call the class/methods statically, as it will * give syntax errors on old versions CALL METHOD ('CL_OO_FACTORY')=>('CREATE_INSTANCE') RECEIVING result = lo_instance. CALL METHOD lo_instance->('CREATE_CLIF_SOURCE') EXPORTING clif_name = is_clskey-clsname version = 'A' RECEIVING result = lo_source. CALL METHOD lo_source->('GET_SOURCE') IMPORTING source = rt_source. ENDMETHOD. METHOD serialize_abap_old. * for old ABAP AS versions DATA: lo_source TYPE REF TO cl_oo_source. CREATE OBJECT lo_source EXPORTING clskey = is_clskey EXCEPTIONS class_not_existing = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Error from CL_OO_SOURCE. Subrc = { sy-subrc }| ). ENDIF. lo_source->read( 'A' ). rt_source = lo_source->get_old_source( ). remove_signatures( CHANGING ct_source = rt_source ). ENDMETHOD. METHOD serialize_locals_def. rt_source = read_include( is_clskey = is_clskey iv_type = seop_ext_class_locals_def ). reduce( CHANGING ct_source = rt_source ). ENDMETHOD. METHOD serialize_locals_imp. rt_source = read_include( is_clskey = is_clskey iv_type = seop_ext_class_locals_imp ). reduce( CHANGING ct_source = rt_source ). ENDMETHOD. METHOD serialize_macros. rt_source = read_include( is_clskey = is_clskey iv_type = seop_ext_class_macros ). reduce( CHANGING ct_source = rt_source ). ENDMETHOD. METHOD serialize_testclasses. rt_source = read_include( is_clskey = is_clskey iv_type = seop_ext_class_testclasses ). mv_skip_testclass = calculate_skip_testclass( rt_source ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 2238, 62, 46911, 7509, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 397, 499, 62, 565, 361, 62, 10459, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 4871, 62, 2539, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 18224, 764, 198, 220, 220, 220, 337, 36252, 50, 389, 62, 9288, 62, 37724, 62, 8135, 3949, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 7783, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 17946, 874, 62, 11011, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 17946, 874, 62, 4299, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 9288, 37724, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 20285, 4951, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 48267, 62, 9288, 4871, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 337, 36252, 50, 15284, 62, 48267, 62, 9288, 4871, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 10459, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 48267, 62, 9288, 4871, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 397, 499, 62, 727, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 397, 499, 62, 3605, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 565, 82, 2539, 220, 220, 220, 220, 220, 220, 41876, 384, 420, 7278, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 10459, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8841, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62 ]
[ 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]
class ZCL_MQBA_GUI_WIDGET_SWT definition public inheriting from ZCL_MQBA_GUI_WIDGET create public . public section. methods ZIF_MQBA_GUI_SUBSCREEN~PAI redefinition . methods ZIF_MQBA_GUI_WIDGET~HANDLE_OKCODE redefinition . methods ZIF_MQBA_GUI_WIDGET~SET_FROM_CFG redefinition . methods ZIF_MQBA_GUI_WIDGET~UPDATE_UI redefinition . protected section. data M_VALUE_ON type STRING . data M_VALUE_OFF type STRING . data C_ICON_RED type ICON_D value '@5C@' ##NO_TEXT. data C_ICON_GREEN type ICON_D value '@5B@' ##NO_TEXT. data C_ICON_YELLOW type ICON_D value '@5D@' ##NO_TEXT. methods INITIALIZE redefinition . private section. ENDCLASS. CLASS ZCL_MQBA_GUI_WIDGET_SWT IMPLEMENTATION. METHOD INITIALIZE. * ------- call super super->initialize( ). * ------- prepare subscreen mode m_subscreen_program = 'SAPLZMQBA_GUI_WIDGET'. m_subscreen_bdynnr = '2100'. ENDMETHOD. METHOD zif_mqba_gui_subscreen~pai. * ---- call super super->zif_mqba_gui_subscreen~pai( CHANGING cs_uidata = cs_uidata cv_ucomm = cv_ucomm ). * ---- check for button and append my index CHECK sy-ucomm NE 'RFSH'. IF sy-ucomm EQ 'BT_SWITCH'. IF m_publish IS NOT INITIAL. * switch DATA(lv_payload) = COND #( WHEN m_cur = m_value_on THEN m_value_off ELSE m_value_on ). * publish IF publish( lv_payload ) EQ abap_true. CLEAR cv_ucomm. ENDIF. ENDIF. ENDIF. ENDMETHOD. method ZIF_MQBA_GUI_WIDGET~HANDLE_OKCODE. *CALL METHOD SUPER->ZIF_MQBA_GUI_WIDGET~HANDLE_OKCODE * CHANGING * CV_OKCODE = * . endmethod. METHOD zif_mqba_gui_widget~set_from_cfg. * get additional data switch get_prop_from_cfg_struc( EXPORTING is_cfg = is_config iv_name = 'VALON' CHANGING cv_prop = m_value_on ). get_prop_from_cfg_struc( EXPORTING is_cfg = is_config iv_name = 'VALOF' CHANGING cv_prop = m_value_off ). * call super rr_self = super->zif_mqba_gui_widget~set_from_cfg( is_config ). ENDMETHOD. METHOD zif_mqba_gui_widget~update_ui. DEFINE set_field. set_ui_field( EXPORTING iv_name = &1 iv_value = &2 iv_subscreen = iv_subscreen CHANGING cs_uidata = cs_uidata ). END-OF-DEFINITION. * ------ call super super->zif_mqba_gui_widget~update_ui( EXPORTING iv_subscreen = iv_subscreen CHANGING cs_uidata = cs_uidata ). * ------ additional icon DATA: lv_icon TYPE zmqba_gui_icon. IF m_cur = m_value_on. lv_icon = c_icon_green. ELSEIF m_cur = m_value_off. lv_icon = c_icon_red. ELSE. lv_icon = c_icon_yellow. ENDIF. set_field 'ICON' lv_icon. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 62, 17887, 51, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 12564, 4462, 43387, 1677, 93, 4537, 40, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 93, 39, 6981, 2538, 62, 11380, 34, 16820, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 93, 28480, 62, 10913, 2662, 62, 22495, 38, 198, 220, 220, 220, 34087, 17750, 764, 198, 220, 5050, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 93, 16977, 62, 10080, 198, 220, 220, 220, 34087, 17750, 764, 198, 24326, 2665, 13, 628, 220, 1366, 337, 62, 39488, 62, 1340, 2099, 19269, 2751, 764, 198, 220, 1366, 337, 62, 39488, 62, 27977, 2099, 19269, 2751, 764, 198, 220, 1366, 327, 62, 2149, 1340, 62, 22083, 2099, 314, 10943, 62, 35, 1988, 705, 31, 20, 34, 31, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 327, 62, 2149, 1340, 62, 43016, 2099, 314, 10943, 62, 35, 1988, 705, 31, 20, 33, 31, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 327, 62, 2149, 1340, 62, 56, 23304, 3913, 2099, 314, 10943, 62, 35, 1988, 705, 31, 20, 35, 31, 6, 22492, 15285, 62, 32541, 13, 628, 220, 5050, 3268, 2043, 12576, 35400, 198, 220, 220, 220, 34087, 17750, 764, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 62, 17887, 51, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 3268, 2043, 12576, 35400, 13, 198, 198, 9, 35656, 869, 2208, 198, 220, 220, 220, 2208, 3784, 36733, 1096, 7, 6739, 198, 198, 9, 35656, 8335, 5294, 1361, 4235, 198, 220, 220, 220, 285, 62, 7266, 9612, 62, 23065, 796, 705, 50, 2969, 43, 57, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 4458, 198, 220, 220, 220, 285, 62, 7266, 9612, 62, 17457, 2047, 48624, 220, 796, 705, 2481, 405, 4458, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 76, 80, 7012, 62, 48317, 62, 7266, 9612, 93, 49712, 13, 198, 198, 9, 13498, 869, 2208, 198, 220, 220, 220, 2208, 3784, 89, 361, 62, 76, 80, 7012, 62, 48317, 62, 7266, 9612, 93, 49712, 7, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 50115, 62, 27112, 1045, 796, 50115, 62, 27112, 1045, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 84, 9503, 220, 796, 220, 269, 85, 62, 84, 9503, 198, 220, 220, 220, 6739, 198, 198, 9, 13498, 2198, 329, 4936, 290, 24443, 616, 6376, 198, 220, 220, 220, 5870, 25171, 827, 12, 84, 9503, 10635, 705, 32754, 9693, 4458, 198, 220, 220, 220, 16876, 827, 12, 84, 9503, 36529, 705, 19313, 62, 17887, 31949, 4458, 198, 220, 220, 220, 220, 220, 16876, 285, 62, 12984, 1836, 3180, 5626, 3268, 2043, 12576, 13, 198, 9, 220, 220, 220, 220, 220, 220, 220, 5078, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 6780, 62, 15577, 2220, 8, 796, 7102, 35, 1303, 7, 42099, 285, 62, 22019, 796, 285, 62, 8367, 62, 261, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 42243, 285, 62, 8367, 62, 2364, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 285, 62, 8367, 62, 261, 6739, 198, 9, 220, 220, 220, 220, 220, 220, 220, 7715, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 7715, 7, 300, 85, 62, 15577, 2220, 1267, 36529, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30301, 1503, 269, 85, 62, 84, 9503, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 2446, 1168, 5064, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 93, 39, 6981, 2538, 62, 11380, 34, 16820, 13, 198, 9, 34, 7036, 337, 36252, 33088, 3784, 57, 5064, 62, 49215, 4339, 62, 40156, 62, 54, 2389, 18851, 93, 39, 6981, 2538, 62, 11380, 34, 16820, 198, 9, 220, 5870, 15567, 2751, 198, 9, 220, 220, 220, 26196, 62, 11380, 34, 16820, 796, 198, 9, 220, 220, 220, 764, 198, 220, 886, 24396, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 76, 80, 7012, 62, 48317, 62, 42655, 93, 2617, 62, 6738, 62, 37581, 13, 198, 198, 9, 220, 220, 651, 3224, 1366, 5078, 198, 220, 220, 220, 651, 62, 22930, 62, 6738, 62, 37581, 62, 19554, 66, 7, 7788, 15490, 2751, 318, 62, 37581, 220, 796, 318, 62, 11250, 21628, 62, 3672, 796, 705, 23428, 1340, 6, 220, 220, 5870, 15567, 2751, 269, 85, 62, 22930, 796, 285, 62, 8367, 62, 261, 6739, 198, 220, 220, 220, 651, 62, 22930, 62, 6738, 62, 37581, 62, 19554, 66, 7, 7788, 15490, 2751, 318, 62, 37581, 220, 796, 318, 62, 11250, 21628, 62, 3672, 796, 705, 23428, 19238, 6, 220, 220, 5870, 15567, 2751, 269, 85, 62, 22930, 796, 285, 62, 8367, 62, 2364, 6739, 198, 198, 9, 220, 220, 869, 2208, 198, 220, 220, 220, 374, 81, 62, 944, 796, 2208, 3784, 89, 361, 62, 76, 80, 7012, 62, 48317, 62, 42655, 93, 2617, 62, 6738, 62, 37581, 7, 318, 62, 11250, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 76, 80, 7012, 62, 48317, 62, 42655, 93, 19119, 62, 9019 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Include ZABAPGIT_OBJECT_ENHS *&---------------------------------------------------------------------* *----------------------------------------------------------------------* * CLASS lcl_object_enhs DEFINITION *----------------------------------------------------------------------* CLASS lcl_object_enhs DEFINITION INHERITING FROM lcl_objects_super FINAL. PUBLIC SECTION. INTERFACES lif_object. ALIASES mo_files FOR lif_object~mo_files. ENDCLASS. "lcl_object_enhs *----------------------------------------------------------------------* * CLASS lcl_object_enhs IMPLEMENTATION *----------------------------------------------------------------------* CLASS lcl_object_enhs IMPLEMENTATION. METHOD lif_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. "lif_object~has_changed_since METHOD lif_object~changed_by. DATA: lv_spot_name TYPE enhspotname, li_spot_ref TYPE REF TO if_enh_spot_tool. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ). li_spot_ref->get_attributes( IMPORTING changedby = rv_user ). CATCH cx_enh_root. rv_user = c_user_unknown. ENDTRY. ENDMETHOD. METHOD lif_object~deserialize. DATA: lv_message TYPE string, lv_parent TYPE enhspotcompositename, lv_spot_name TYPE enhspotname, lv_enh_shtext TYPE string, ls_enh_badi TYPE enh_badi_data, lt_enh_badi TYPE enh_badi_data_it, lx_root TYPE REF TO cx_root, lv_package LIKE iv_package, li_spot_ref TYPE REF TO if_enh_spot_tool, lo_badidef_tool TYPE REF TO cl_enh_tool_badi_def. lv_spot_name = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'PARENT_COMP' CHANGING cg_data = lv_parent ). io_xml->read( EXPORTING iv_name = 'SHORTTEXT' CHANGING cg_data = lv_enh_shtext ). io_xml->read( EXPORTING iv_name = 'BADI_DATA' CHANGING cg_data = lt_enh_badi ). IF lif_object~exists( ) = abap_true. lif_object~delete( ). ENDIF. lv_package = iv_package. TRY. cl_enh_factory=>create_enhancement_spot( EXPORTING spot_name = lv_spot_name tooltype = cl_enh_tool_badi_def=>tooltype dark = abap_true compositename = lv_parent IMPORTING spot = li_spot_ref CHANGING devclass = lv_package ). lo_badidef_tool ?= li_spot_ref. lo_badidef_tool->if_enh_object_docu~set_shorttext( lv_enh_shtext ). LOOP AT lt_enh_badi INTO ls_enh_badi. lo_badidef_tool->add_badi_def( ls_enh_badi ). ENDLOOP. lo_badidef_tool->if_enh_object~save( ). lo_badidef_tool->if_enh_object~activate( ). lo_badidef_tool->if_enh_object~unlock( ). CATCH cx_enh_root INTO lx_root. lv_message = `Error occured while deserializing EHNS: ` && lx_root->get_text( ) ##NO_TEXT. lcx_exception=>raise( lv_message ). ENDTRY. ENDMETHOD. "deserialize METHOD lif_object~serialize. DATA: lv_spot_name TYPE enhspotname, lv_enh_shtext TYPE string, lv_parent TYPE enhspotcompositename, lt_enh_badi TYPE enh_badi_data_it, lv_tool TYPE enhspottooltype, lx_root TYPE REF TO cx_root, li_spot_ref TYPE REF TO if_enh_spot_tool, lo_badidef_tool TYPE REF TO cl_enh_tool_badi_def. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ). lv_tool = li_spot_ref->get_tool( ). lo_badidef_tool ?= li_spot_ref. lv_enh_shtext = lo_badidef_tool->if_enh_object_docu~get_shorttext( ). "get parent = composite enhs (ENHC) lv_parent = cl_r3standard_persistence=>enh_find_parent_composite( lv_spot_name ). "get subsequent BADI definitions lt_enh_badi = lo_badidef_tool->get_badi_defs( ). io_xml->add( ig_data = lv_tool iv_name = 'TOOL' ). io_xml->add( ig_data = lv_parent iv_name = 'PARENT_COMP' ). io_xml->add( ig_data = lv_enh_shtext iv_name = 'SHORTTEXT' ). io_xml->add( ig_data = lt_enh_badi iv_name = 'BADI_DATA' ). CATCH cx_enh_root INTO lx_root. lcx_exception=>raise( `Error occured while serializing EHNS: ` && lx_root->get_text( ) ) ##NO_TEXT. ENDTRY. ENDMETHOD. "serialize METHOD lif_object~exists. DATA: lv_spot_name TYPE enhspotname, lv_tool TYPE enhspottooltype, li_spot_ref TYPE REF TO if_enh_spot_tool. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ). lv_tool = li_spot_ref->get_tool( ). CASE lv_tool. WHEN cl_enh_tool_badi_def=>tooltype. rv_bool = abap_true. WHEN OTHERS. * todo: implement additional tool types rv_bool = abap_false. ENDCASE. CATCH cx_enh_root. rv_bool = abap_false. ENDTRY. ENDMETHOD. "exists METHOD lif_object~delete. DATA: lv_spot_name TYPE enhspotname, lx_root TYPE REF TO cx_root, li_spot_ref TYPE REF TO if_enh_spot_tool, lo_badidef_tool TYPE REF TO cl_enh_tool_badi_def. lv_spot_name = ms_item-obj_name. TRY. li_spot_ref = cl_enh_factory=>get_enhancement_spot( spot_name = lv_spot_name lock = abap_true ). IF li_spot_ref IS BOUND. lo_badidef_tool ?= li_spot_ref. lo_badidef_tool->if_enh_object~delete( nevertheless_delete = abap_true run_dark = abap_true ). ENDIF. lo_badidef_tool->if_enh_object~unlock( ). CATCH cx_enh_root INTO lx_root. lcx_exception=>raise( `Error occured while deleting EHNS: ` && lx_root->get_text( ) ) ##NO_TEXT. ENDTRY. ENDMETHOD. "delete METHOD lif_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. "get_metadata METHOD lif_object~jump. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'ENHS' in_new_window = abap_true. ENDMETHOD. "jump METHOD lif_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE lcl_null_comparison_result. ENDMETHOD. ENDCLASS. "lcl_object_enhs
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 1677, 7998, 198, 9, 5, 10097, 30934, 9, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 15252, 62, 268, 11994, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 15252, 62, 268, 11994, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 300, 565, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 3868, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 3868, 62, 15252, 93, 5908, 62, 16624, 13, 198, 198, 10619, 31631, 13, 366, 75, 565, 62, 15252, 62, 268, 11994, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 15252, 62, 268, 11994, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 15252, 62, 268, 11994, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3868, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 13, 198, 220, 220, 220, 374, 85, 62, 40985, 796, 450, 499, 62, 7942, 13, 198, 220, 23578, 49273, 13, 220, 366, 36195, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 628, 220, 337, 36252, 3868, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 20485, 62, 3672, 41876, 5881, 20485, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 20485, 62, 25981, 13, 628, 198, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 796, 537, 62, 16550, 62, 69, 9548, 14804, 1136, 62, 16550, 590, 434, 62, 20485, 7, 300, 85, 62, 20485, 62, 3672, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 3784, 1136, 62, 1078, 7657, 7, 30023, 9863, 2751, 3421, 1525, 796, 374, 85, 62, 7220, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 16550, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 20500, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 8000, 220, 220, 220, 220, 220, 220, 41876, 5881, 20485, 785, 1930, 270, 12453, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 220, 220, 220, 41876, 5881, 20485, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 16550, 62, 1477, 5239, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 16550, 62, 65, 9189, 220, 220, 220, 220, 41876, 5881, 62, 65, 9189, 62, 7890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 16550, 62, 65, 9189, 220, 220, 220, 220, 41876, 5881, 62, 65, 9189, 62, 7890, 62, 270, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 87, 62, 15763, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 15763, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 26495, 220, 220, 220, 220, 220, 34178, 21628, 62, 26495, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 20485, 62, 5420, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 16550, 62, 20485, 62, 25981, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 14774, 485, 69, 62, 25981, 41876, 4526, 37, 5390, 537, 62, 16550, 62, 25981, 62, 65, 9189, 62, 4299, 13, 628, 198, 220, 220, 220, 300, 85, 62, 20485, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 27082, 3525, 62, 9858, 47, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 85, 62, 8000, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 9693, 9863, 32541, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 85, 62, 16550, 62, 1477, 5239, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 33, 2885, 40, 62, 26947, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 269, 70, 62, 7890, 796, 300, 83, 62, 16550, 62, 65, 9189, 6739, 628, 220, 220, 220, 16876, 3868, 62, 15252, 93, 1069, 1023, 7, 1267, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 3868, 62, 15252, 93, 33678, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 300, 85, 62, 26495, 796, 21628, 62, 26495, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 537, 62, 16550, 62, 69, 9548, 14804, 17953, 62, 16550, 590, 434, 62, 20485, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4136, 62, 3672, 220, 220, 220, 220, 220, 796, 300, 85, 62, 20485, 62, 3672, 198, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"! abapGit general error CLASS zcx_abapgit_exception DEFINITION PUBLIC INHERITING FROM cx_static_check CREATE PUBLIC . PUBLIC SECTION. INTERFACES if_t100_message . CONSTANTS: BEGIN OF c_section_text, cause TYPE string VALUE `Cause`, system_response TYPE string VALUE `System response`, what_to_do TYPE string VALUE `Procedure`, sys_admin TYPE string VALUE `System administration`, END OF c_section_text . CONSTANTS: BEGIN OF c_section_token, cause TYPE string VALUE `&CAUSE&`, system_response TYPE string VALUE `&SYSTEM_RESPONSE&`, what_to_do TYPE string VALUE `&WHAT_TO_DO&`, sys_admin TYPE string VALUE `&SYS_ADMIN&`, END OF c_section_token . DATA msgv1 TYPE symsgv READ-ONLY . DATA msgv2 TYPE symsgv READ-ONLY . DATA msgv3 TYPE symsgv READ-ONLY . DATA msgv4 TYPE symsgv READ-ONLY . DATA mt_callstack TYPE abap_callstack READ-ONLY . DATA mi_log TYPE REF TO zif_abapgit_log READ-ONLY. "! Raise exception with text "! @parameter iv_text | Text "! @parameter ix_previous | Previous exception "! @raising zcx_abapgit_exception | Exception CLASS-METHODS raise IMPORTING !iv_text TYPE clike !ix_previous TYPE REF TO cx_root OPTIONAL !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RAISING zcx_abapgit_exception . "! Raise exception with T100 message "! <p> "! Will default to sy-msg* variables. These need to be set right before calling this method. "! </p> "! @parameter iv_msgid | Message ID "! @parameter iv_msgno | Message number "! @parameter iv_msgv1 | Message variable 1 "! @parameter iv_msgv2 | Message variable 2 "! @parameter iv_msgv3 | Message variable 3 "! @parameter iv_msgv4 | Message variable 4 "! @raising zcx_abapgit_exception | Exception CLASS-METHODS raise_t100 IMPORTING VALUE(iv_msgid) TYPE symsgid DEFAULT sy-msgid VALUE(iv_msgno) TYPE symsgno DEFAULT sy-msgno VALUE(iv_msgv1) TYPE symsgv DEFAULT sy-msgv1 VALUE(iv_msgv2) TYPE symsgv DEFAULT sy-msgv2 VALUE(iv_msgv3) TYPE symsgv DEFAULT sy-msgv3 VALUE(iv_msgv4) TYPE symsgv DEFAULT sy-msgv4 !ii_log TYPE REF TO zif_abapgit_log OPTIONAL !ix_previous TYPE REF TO cx_root OPTIONAL RAISING zcx_abapgit_exception . CLASS-METHODS raise_with_text IMPORTING !ix_previous TYPE REF TO cx_root RAISING zcx_abapgit_exception . METHODS constructor IMPORTING !textid LIKE if_t100_message=>t100key OPTIONAL !previous LIKE previous OPTIONAL !ii_log TYPE REF TO zif_abapgit_log OPTIONAL !msgv1 TYPE symsgv OPTIONAL !msgv2 TYPE symsgv OPTIONAL !msgv3 TYPE symsgv OPTIONAL !msgv4 TYPE symsgv OPTIONAL . METHODS get_source_position REDEFINITION . METHODS if_message~get_longtext REDEFINITION . PROTECTED SECTION. PRIVATE SECTION. CONSTANTS c_generic_error_msg TYPE string VALUE `An error occured (ZCX_ABAPGIT_EXCEPTION)` ##NO_TEXT. CLASS-METHODS split_text_to_symsg IMPORTING !iv_text TYPE string RETURNING VALUE(rs_msg) TYPE symsg . METHODS save_callstack . METHODS itf_to_string IMPORTING !it_itf TYPE tline_tab RETURNING VALUE(rv_result) TYPE string . METHODS get_t100_longtext_itf RETURNING VALUE(rt_itf) TYPE tline_tab . METHODS remove_empty_section IMPORTING !iv_tabix_from TYPE i !iv_tabix_to TYPE i CHANGING !ct_itf TYPE tline_tab . METHODS replace_section_head_with_text CHANGING !cs_itf TYPE tline . ENDCLASS. CLASS ZCX_ABAPGIT_EXCEPTION IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. super->constructor( previous = previous ). me->msgv1 = msgv1. me->msgv2 = msgv2. me->msgv3 = msgv3. me->msgv4 = msgv4. me->mi_log = ii_log. CLEAR me->textid. IF textid IS INITIAL. if_t100_message~t100key = if_t100_message=>default_textid. ELSE. if_t100_message~t100key = textid. ENDIF. save_callstack( ). ENDMETHOD. METHOD get_source_position. FIELD-SYMBOLS: <ls_callstack> TYPE abap_callstack_line. READ TABLE mt_callstack ASSIGNING <ls_callstack> INDEX 1. IF sy-subrc = 0. program_name = <ls_callstack>-mainprogram. include_name = <ls_callstack>-include. source_line = <ls_callstack>-line. ELSE. super->get_source_position( IMPORTING program_name = program_name include_name = include_name source_line = source_line ). ENDIF. ENDMETHOD. METHOD get_t100_longtext_itf. DATA: lv_docu_key TYPE doku_obj. FIELD-SYMBOLS <lv_msgv> TYPE any. lv_docu_key = if_t100_message~t100key-msgid && if_t100_message~t100key-msgno. CALL FUNCTION 'DOCU_GET' EXPORTING id = 'NA' langu = sy-langu object = lv_docu_key typ = 'E' TABLES line = rt_itf EXCEPTIONS OTHERS = 1. IF sy-subrc = 0. ASSIGN me->(if_t100_message~t100key-attr1) TO <lv_msgv>. IF sy-subrc = 0. REPLACE ALL OCCURRENCES OF '&V1&' IN TABLE rt_itf WITH <lv_msgv>. ENDIF. ASSIGN me->(if_t100_message~t100key-attr2) TO <lv_msgv>. IF sy-subrc = 0. REPLACE ALL OCCURRENCES OF '&V2&' IN TABLE rt_itf WITH <lv_msgv>. ENDIF. ASSIGN me->(if_t100_message~t100key-attr3) TO <lv_msgv>. IF sy-subrc = 0. REPLACE ALL OCCURRENCES OF '&V3&' IN TABLE rt_itf WITH <lv_msgv>. ENDIF. ASSIGN me->(if_t100_message~t100key-attr4) TO <lv_msgv>. IF sy-subrc = 0. REPLACE ALL OCCURRENCES OF '&V4&' IN TABLE rt_itf WITH <lv_msgv>. ENDIF. ENDIF. ENDMETHOD. METHOD if_message~get_longtext. result = super->get_longtext( ). IF if_t100_message~t100key IS NOT INITIAL. result = itf_to_string( get_t100_longtext_itf( ) ). ENDIF. ENDMETHOD. METHOD itf_to_string. CONSTANTS: lc_format_section TYPE string VALUE 'U1'. DATA: lt_stream TYPE TABLE OF tdline, lt_string TYPE TABLE OF string, lv_string LIKE LINE OF lt_string, lt_itf TYPE tline_tab, lv_has_content TYPE abap_bool, lv_tabix_from TYPE syst-tabix, lv_tabix_to TYPE syst-tabix. FIELD-SYMBOLS: <ls_itf_section> TYPE tline, <ls_itf_section_item> TYPE tline. lt_itf = it_itf. " You should remember that we replace the U1 format because " that preserves the section header of longtexts. LOOP AT lt_itf ASSIGNING <ls_itf_section> WHERE tdformat = lc_format_section. CLEAR: lv_has_content, lv_tabix_to. lv_tabix_from = sy-tabix. LOOP AT lt_itf ASSIGNING <ls_itf_section_item> FROM sy-tabix + 1. IF <ls_itf_section_item>-tdformat = lc_format_section. lv_tabix_to = sy-tabix. EXIT. ELSEIF <ls_itf_section_item>-tdline IS NOT INITIAL. lv_has_content = abap_true. ENDIF. ENDLOOP. IF lv_has_content = abap_false. remove_empty_section( EXPORTING iv_tabix_from = lv_tabix_from iv_tabix_to = lv_tabix_to CHANGING ct_itf = lt_itf ). CONTINUE. ENDIF. replace_section_head_with_text( CHANGING cs_itf = <ls_itf_section> ). ENDLOOP. CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT' EXPORTING lf = 'X' IMPORTING stream_lines = lt_string TABLES itf_text = lt_itf text_stream = lt_stream. LOOP AT lt_string INTO lv_string. IF sy-tabix = 1. rv_result = lv_string. ELSE. CONCATENATE rv_result lv_string INTO rv_result SEPARATED BY cl_abap_char_utilities=>newline. ENDIF. ENDLOOP. ENDMETHOD. METHOD raise. DATA lv_text TYPE string. IF iv_text IS INITIAL. lv_text = c_generic_error_msg. ELSE. lv_text = iv_text. ENDIF. split_text_to_symsg( lv_text ). raise_t100( ii_log = ii_log ix_previous = ix_previous ). ENDMETHOD. METHOD raise_t100. DATA: ls_t100_key TYPE scx_t100key. ls_t100_key-msgid = iv_msgid. ls_t100_key-msgno = iv_msgno. ls_t100_key-attr1 = 'MSGV1'. ls_t100_key-attr2 = 'MSGV2'. ls_t100_key-attr3 = 'MSGV3'. ls_t100_key-attr4 = 'MSGV4'. IF iv_msgid IS INITIAL. CLEAR ls_t100_key. ENDIF. RAISE EXCEPTION TYPE zcx_abapgit_exception EXPORTING textid = ls_t100_key ii_log = ii_log msgv1 = iv_msgv1 msgv2 = iv_msgv2 msgv3 = iv_msgv3 msgv4 = iv_msgv4 previous = ix_previous. ENDMETHOD. METHOD raise_with_text. raise( iv_text = ix_previous->get_text( ) ix_previous = ix_previous ). ENDMETHOD. METHOD remove_empty_section. IF iv_tabix_to BETWEEN iv_tabix_from AND lines( ct_itf ). DELETE ct_itf FROM iv_tabix_from TO iv_tabix_to. ELSE. DELETE ct_itf FROM iv_tabix_from. ENDIF. ENDMETHOD. METHOD replace_section_head_with_text. CASE cs_itf-tdline. WHEN c_section_token-cause. cs_itf-tdline = c_section_text-cause. WHEN c_section_token-system_response. cs_itf-tdline = c_section_text-system_response. WHEN c_section_token-what_to_do. cs_itf-tdline = c_section_text-what_to_do. WHEN c_section_token-sys_admin. cs_itf-tdline = c_section_text-sys_admin. ENDCASE. ENDMETHOD. METHOD save_callstack. FIELD-SYMBOLS: <ls_callstack> TYPE abap_callstack_line. CALL FUNCTION 'SYSTEM_CALLSTACK' IMPORTING callstack = mt_callstack. " You should remember that the first lines are from zcx_abapgit_exception " and are removed so that highest level in the callstack is the position where " the exception is raised. " " For the merged report it's hard to do that, because zcx_abapgit_exception " isn't visible in the callstack. Therefore we have to check the Events. LOOP AT mt_callstack ASSIGNING <ls_callstack>. IF <ls_callstack>-mainprogram CP |ZCX_ABAPGIT_EXCEPTION*| " full OR <ls_callstack>-blockname = `SAVE_CALLSTACK` " merged OR <ls_callstack>-blockname = `CONSTRUCTOR` " merged OR <ls_callstack>-blockname CP `RAISE*`. "merged DELETE TABLE mt_callstack FROM <ls_callstack>. ELSE. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD split_text_to_symsg. CONSTANTS: lc_length_of_msgv TYPE i VALUE 50, lc_offset_of_last_character TYPE i VALUE 49. DATA: lv_text TYPE c LENGTH 200, lv_rest TYPE c LENGTH 200, ls_msg TYPE symsg, lv_msg_var TYPE c LENGTH lc_length_of_msgv, lv_index TYPE sy-index. lv_text = iv_text. DO 4 TIMES. lv_index = sy-index. CALL FUNCTION 'TEXT_SPLIT' EXPORTING length = lc_length_of_msgv text = lv_text IMPORTING line = lv_msg_var rest = lv_rest. IF lv_msg_var+lc_offset_of_last_character(1) = space OR lv_text+lc_length_of_msgv(1) = space. " keep the space at the beginning of the rest " because otherwise it's lost lv_rest = | { lv_rest }|. ENDIF. lv_text = lv_rest. CASE lv_index. WHEN 1. ls_msg-msgv1 = lv_msg_var. WHEN 2. ls_msg-msgv2 = lv_msg_var. WHEN 3. ls_msg-msgv3 = lv_msg_var. WHEN 4. ls_msg-msgv4 = lv_msg_var. ENDCASE. ENDDO. " Set syst using generic error message MESSAGE e001(00) WITH ls_msg-msgv1 ls_msg-msgv2 ls_msg-msgv3 ls_msg-msgv4 INTO sy-lisel. rs_msg = ls_msg. ENDMETHOD. ENDCLASS.
[ 40484, 450, 499, 38, 270, 2276, 4049, 198, 31631, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 12708, 62, 9122, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 83, 3064, 62, 20500, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 5458, 62, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2728, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 4600, 42323, 47671, 198, 220, 220, 220, 220, 220, 220, 220, 1080, 62, 26209, 41876, 4731, 26173, 8924, 4600, 11964, 2882, 47671, 198, 220, 220, 220, 220, 220, 220, 220, 644, 62, 1462, 62, 4598, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 4600, 2964, 771, 495, 47671, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 62, 28482, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 4600, 11964, 3662, 47671, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 5458, 62, 5239, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 5458, 62, 30001, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2728, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 4600, 5, 8141, 19108, 5, 47671, 198, 220, 220, 220, 220, 220, 220, 220, 1080, 62, 26209, 41876, 4731, 26173, 8924, 4600, 5, 23060, 25361, 62, 19535, 47, 1340, 5188, 5, 47671, 198, 220, 220, 220, 220, 220, 220, 220, 644, 62, 1462, 62, 4598, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 4600, 5, 32971, 62, 10468, 62, 18227, 5, 47671, 198, 220, 220, 220, 220, 220, 220, 220, 25064, 62, 28482, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 4600, 5, 50, 16309, 62, 2885, 23678, 5, 47671, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 5458, 62, 30001, 764, 198, 220, 220, 220, 42865, 31456, 85, 16, 41876, 827, 19662, 85, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42865, 31456, 85, 17, 41876, 827, 19662, 85, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42865, 31456, 85, 18, 41876, 827, 19662, 85, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42865, 31456, 85, 19, 41876, 827, 19662, 85, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42865, 45079, 62, 13345, 25558, 41876, 450, 499, 62, 13345, 25558, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42865, 21504, 62, 6404, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 20832, 12, 1340, 11319, 13, 628, 220, 220, 220, 366, 0, 35123, 6631, 351, 2420, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 5239, 930, 8255, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 220, 844, 62, 3866, 1442, 930, 21801, 6631, 198, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 930, 35528, 198, 220, 220, 220, 42715, 12, 49273, 50, 5298, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 5239, 220, 220, 220, 220, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 844, 62, 3866, 1442, 41876, 4526, 37, 5390, 43213, 62, 15763, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 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, 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, 366, 0, 35123, 6631, 351, 309, 3064, 3275, 198, 220, 220, 220, 366, 0, 1279, 79, 29, 198, 220, 220, 220, 366, 0, 2561, 4277, 284, 827, 12, 19662, 9, 9633, 13, 2312, 761, 284, 307, 900, 826, 878, 4585, 428, 2446, 13, 198, 220, 220, 220, 366, 0, 7359, 79, 29, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 312, 930, 16000, 4522, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 3919, 930, 16000, 1271, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 85, 16, 930, 16000, 7885, 352, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 85, 17, 930, 16000, 7885, 362, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 85, 18, 930, 16000, 7885, 513, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 19662, 85, 19, 930, 16000, 7885, 604, 198, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 930, 35528, 198, 220, 220, 220, 42715, 12, 49273, 50, 5298, 62, 83, 3064, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 312, 8, 41876, 827, 19662, 312, 5550, 38865, 827, 12, 19662, 312, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 3919, 8, 41876, 827, 19662, 3919, 5550, 38865, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 85, 16, 8, 41876, 827, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 16, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 85, 17, 8, 41876, 827, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 17, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 85, 18, 8, 41876, 827, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 18, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 19662, 85, 19, 8, 41876, 827, 19662, 85, 5550, 38865, 827, 12, 19662, 85, 19, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS cx_ci_atc_invalid_comp_unit DEFINITION PUBLIC INHERITING FROM cx_dynamic_check FINAL CREATE PUBLIC . PUBLIC SECTION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS cx_ci_atc_invalid_comp_unit IMPLEMENTATION. ENDCLASS.
[ 31631, 43213, 62, 979, 62, 265, 66, 62, 259, 12102, 62, 5589, 62, 20850, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 43213, 62, 67, 28995, 62, 9122, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 198, 198, 5105, 32936, 44513, 13, 198, 198, 4805, 2394, 9782, 1961, 44513, 13, 198, 4805, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 43213, 62, 979, 62, 265, 66, 62, 259, 12102, 62, 5589, 62, 20850, 30023, 2538, 10979, 6234, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_UNIX_STATIC definition public final create public . *"* public components of class ZCL_UNIX_STATIC *"* do not include other source files here!!! public section. type-pools ABAP . class-methods RUN importing !I_COMMAND type SIMPLE !I_PARAMS type SIMPLE optional !I_RFC type ABAP_BOOL default ABAP_TRUE returning value(ET_RESULT) type STRINGTAB raising ZCX_GENERIC . class-methods LIST importing !I_PATH type DATA returning value(ET_RESULT) type STRINGTAB raising ZCX_GENERIC . class-methods COPY importing !I_FROM type DATA !I_TO type DATA raising ZCX_GENERIC . class-methods DELETE importing !I_PATH type DATA returning value(ET_RESULT) type STRINGTAB raising ZCX_GENERIC . class-methods IS_FILE_EXIST importing !I_PATH type STRING returning value(E_EXIST) type ABAP_BOOL raising ZCX_GENERIC . class-methods IS_DIRECTORY_EXIST importing !I_PATH type SIMPLE returning value(E_EXIST) type ABAP_BOOL raising ZCX_GENERIC . class-methods CREATE_DIRECTORY importing !I_PATH type SIMPLE raising ZCX_GENERIC . class-methods DELETE_DIRECTORY importing !I_PATH type DATA raising ZCX_GENERIC . class-methods CHMOD importing !I_PATH type SIMPLE !I_RECURSIVE type ABAP_BOOL default ABAP_TRUE !I_OWNER type C default '7' !I_GROUP type C default '7' !I_ANYBODY type C default '7' raising ZCX_GENERIC . protected section. *"* protected components of class ZATMCL_UNIX_STATIC *"* do not include other source files here!!! private section. *"* private components of class ZCL_UNIX_STATIC *"* do not include other source files here!!! class-data DEST type RFCDEST value 'NONE' ##NO_TEXT. ENDCLASS. CLASS ZCL_UNIX_STATIC IMPLEMENTATION. method chmod. data l_permissions(3). concatenate i_owner i_group i_anybody into l_permissions. data l_params type string. concatenate '-R' l_permissions i_path into l_params separated by space. run( i_command = 'chmod' i_params = l_params ). endmethod. method copy. data l_params type string. concatenate i_from i_to into l_params separated by space. run( i_command = 'cp' i_params = l_params ). endmethod. method create_directory. data l_params type string. concatenate '-p' i_path into l_params separated by space. run( i_command = 'mkdir' i_params = l_params ). endmethod. method delete. run( i_command = 'rm' i_params = i_path ). endmethod. method delete_directory. data l_params type string. concatenate '-r' i_path into l_params separated by space. run( i_command = 'rm' i_params = l_params ). endmethod. method is_directory_exist. data l_params type string. concatenate '-d' i_path into l_params separated by space. data lt_result type stringtab. lt_result = run( i_command = 'test' i_params = l_params ). if lt_result is initial. e_exist = abap_true. endif. endmethod. method is_file_exist. data l_params type string. concatenate '-f' i_path into l_params separated by space. data lt_result type stringtab. lt_result = run( i_command = 'test' i_params = l_params ). if lt_result is initial. e_exist = abap_true. endif. endmethod. method list. data l_params type string. concatenate '-la' i_path into l_params separated by space. et_result = run( i_command = 'ls' i_params = l_params ). endmethod. method run. if i_rfc eq abap_true. data l_rfc_command type string. l_rfc_command = i_command. data l_rfc_params type string. l_rfc_params = i_params. data lt_messages type zimessages. call function 'Z_SRM_UNIX_RUN' destination dest exporting i_command = l_rfc_command i_params = l_rfc_params importing et_result = et_result et_messages = lt_messages. loop at lt_messages transporting no fields where msgty ca 'EAX'. zcx_generic=>raise( it_messages = lt_messages ). endloop. else. data l_extprog type btcxpgpgm. l_extprog = i_command. data l_params type btcxpgpar. l_params = i_params. data l_strtstat type btcxpgstat. data l_xpgid type btcxpgid. data l_convid type gwy_struct-convid. data l_exitstat type btcxpgstat. data l_exitcode type btcxpgexit. data l_last_proc type wpinfo-wp_pid. data l_last_host type rfchost. data l_last_proc_num type wpinfo-wp_no. data lt_log type table of btcxpglog. call function 'SXPG_STEP_XPG_START' exporting extprog = l_extprog params = l_params stdincntl = 'R' stdoutcntl = 'M' stderrcntl = 'M' tracecntl = '0' termcntl = 'C' importing strtstat = l_strtstat xpgid = l_xpgid convid = l_convid exitstat = l_exitstat exitcode = l_exitcode last_proc = l_last_proc last_host = l_last_host last_proc_num = l_last_proc_num tables log = lt_log exceptions communication_error = 1 system_error = 2 unknown_error = 3 cannot_get_rfc_dest = 4 job_update_failed = 5 job_does_not_exist = 6 program_start_error = 7 no_permission = 8 others = 9. if sy-subrc ne 0. zcx_generic=>raise( ). endif. *** data lt_result type table of text255. *** call 'SYSTEM' *** id 'COMMAND' field l_command *** id 'TAB' field lt_result. *** if sy-subrc ne 0. *** message e091 with l_command into dummy. *** zcx_generic=>raise( ). *** endif. zcl_abap_static=>list2list( exporting it_data = lt_log importing et_data = et_result ). endif. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 4944, 10426, 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, 4944, 10426, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 628, 220, 1398, 12, 24396, 82, 32494, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 9858, 44, 6981, 2099, 23749, 16437, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 27082, 40834, 2099, 23749, 16437, 11902, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 41150, 2099, 9564, 2969, 62, 8202, 3535, 4277, 9564, 2969, 62, 5446, 8924, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 2767, 62, 19535, 16724, 8, 2099, 19269, 2751, 5603, 33, 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, 39498, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 34219, 2099, 42865, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 2767, 62, 19535, 16724, 8, 2099, 19269, 2751, 5603, 33, 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, 27975, 56, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 10913, 2662, 2099, 42865, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 10468, 2099, 42865, 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, 5550, 2538, 9328, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 34219, 2099, 42865, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 2767, 62, 19535, 16724, 8, 2099, 19269, 2751, 5603, 33, 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, 3180, 62, 25664, 62, 6369, 8808, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 34219, 2099, 19269, 2751, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 36, 62, 6369, 8808, 8, 2099, 9564, 2969, 62, 8202, 3535, 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, 3180, 62, 17931, 23988, 15513, 62, 6369, 8808, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 34219, 2099, 23749, 16437, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 36, 62, 6369, 8808, 8, 2099, 9564, 2969, 62, 8202, 3535, 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, 29244, 6158, 62, 17931, 23988, 15513, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 34219, 2099, 23749, 16437, 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, 5550, 2538, 9328, 62, 17931, 23988, 15513, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 34219, 2099, 42865, 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, 5870, 33365, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 34219, 2099, 23749, 16437, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 38827, 4261, 50, 9306, 2099, 9564, 2969, 62, 8202, 3535, 4277, 9564, 2969, 62, 5446, 8924, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 14165, 1137, 2099, 327, 4277, 705, 22, 6, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 46846, 2099, 327, 4277, 705, 22, 6, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 31827, 33, 33076, 2099, 327, 4277, 705, 22, 6, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 1168, 34, 55, 62, 35353, 1137, 2149, 764, 198, 220, 6861, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 1404, 44, 5097, 62, 4944, 10426, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 19734, 2665, 13, 198, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 4944, 10426, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 1398, 12, 7890, 360, 6465, 2099, 30978, 35, 6465, 1988, 705, 45, 11651, 6, 22492, 15285, 62, 32541, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 4944, 10426, 62, 35744, 2149, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 442, 4666, 13, 628, 220, 220, 220, 1366, 300, 62, 525, 8481, 7, 18, 737, 198, 220, 220, 220, 1673, 36686, 378, 1312, 62, 18403, 1312, 62, 8094, 1312, 62, 1092, 2618, 656, 300, 62, 525, 8481, 13, 628, 220, 220, 220, 1366, 300, 62, 37266, 2099, 4731, 13, 198, 220, 220, 220, 1673, 36686, 378, 705, 12, 49, 6, 300, 62, 525, 8481, 1312, 62, 6978, 656, 300, 62, 37266, 11266, 416, 2272, 13, 628, 220, 220, 220, 1057, 7, 198, 220, 220, 220, 220, 220, 1312, 62, 21812, 796, 705, 354, 4666, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 37266, 220, 796, 300, 62, 37266, 6739, 628, 220, 886, 24396, 13, 628, 198, 220, 2446, 4866, 13, 628, 220, 220, 220, 1366, 300, 62, 37266, 2099, 4731, 13, 198, 220, 220, 220, 1673, 36686, 378, 1312, 62, 6738, 1312, 62, 1462, 656, 300, 62, 37266, 11266, 416, 2272, 13, 628, 220, 220, 220, 1057, 7, 198, 220, 220, 220, 220, 220, 1312, 62, 21812, 796, 705, 13155, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 37266, 220, 796 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 FORM routines * generation date: 21.11.2020 at 10:41:08 * view maintenance generator version: #001407# *---------------------------------------------------------------------* * base table related FORM-routines............. INCLUDE LSVIMFTX .
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1570, 3519, 49144, 31878, 198, 9, 220, 220, 5270, 3128, 25, 2310, 13, 1157, 13, 42334, 379, 838, 25, 3901, 25, 2919, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 198, 9, 2779, 3084, 3519, 49144, 12, 81, 448, 1127, 44274, 198, 1268, 5097, 52, 7206, 30948, 53, 3955, 9792, 55, 764, 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 ]
"! HTML screen event handler to deal with user interaction during the HTML "! presentation. It will decode the request and process it depending on the "! requested action. For example, it will navigate to the requested source code. CLASS zcl_timem_gui_handler DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !gui TYPE REF TO zcl_timem_gui . "! Handler method "! @parameter action | Action "! @parameter getdata | Data details METHODS on_sapevent FOR EVENT sapevent OF cl_gui_html_viewer IMPORTING !action !getdata . PROTECTED SECTION. PRIVATE SECTION. DATA gui TYPE REF TO zcl_timem_gui. DATA userexits TYPE REF TO zcl_timem_userexits. METHODS display_request IMPORTING request TYPE trkorr. METHODS display_user IMPORTING user TYPE uname. METHODS display_source IMPORTING type TYPE versobjtyp object_name TYPE versobjnam. METHODS display_version. METHODS decode_source_type_and_name IMPORTING i_getdata TYPE c EXPORTING e_type TYPE versobjtyp e_object_name TYPE versobjnam. METHODS revert IMPORTING ts TYPE timestamp. ENDCLASS. CLASS ZCL_TIMEM_GUI_HANDLER IMPLEMENTATION. METHOD constructor. me->gui = gui. userexits = NEW #( ). ENDMETHOD. METHOD decode_source_type_and_name. DATA mtdkey TYPE seocpdkey. SPLIT i_getdata AT '|' INTO e_type e_object_name. SHIFT e_type LEFT DELETING LEADING space. SHIFT e_object_name LEFT DELETING LEADING space. CASE e_type. WHEN 'CPUB'. e_object_name = cl_oo_classname_service=>get_pubsec_name( CONV #( e_object_name ) ). e_type = 'PROG'. WHEN 'CPRO'. e_object_name = cl_oo_classname_service=>get_prosec_name( CONV #( e_object_name ) ). e_type = 'PROG'. WHEN 'CPRI'. e_object_name = cl_oo_classname_service=>get_prisec_name( CONV #( e_object_name ) ). e_type = 'PROG'. WHEN 'CDEF' OR 'CINC' OR 'CMAC' OR 'REPS' OR 'CCAU'. " object_name is already the include so treat it as a program e_type = 'PROG'. WHEN 'METH'. SPLIT e_object_name AT space INTO mtdkey-clsname mtdkey-cpdname. cl_oo_classname_service=>get_method_include( EXPORTING mtdkey = mtdkey RECEIVING result = e_object_name EXCEPTIONS class_not_existing = 1 method_not_existing = 2 OTHERS = 3 ). IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. e_type = 'PROG'. WHEN OTHERS. RETURN. ENDCASE. ENDMETHOD. METHOD display_request. CALL FUNCTION 'TR_DISPLAY_REQUEST' EXPORTING i_trkorr = request. ENDMETHOD. METHOD display_source. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = object_name object_type = type EXCEPTIONS not_executed = 1 invalid_object_type = 2 OTHERS = 3. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDMETHOD. METHOD display_user. CALL FUNCTION 'SUID_IDENTITY_MAINT' EXPORTING i_username = user i_tcode_mode = 6. ENDMETHOD. METHOD display_version. TRY. gui->display( ). CATCH zcx_timem. " Ignore error ASSERT 1 = 1. ENDTRY. ENDMETHOD. METHOD on_sapevent. DATA ts TYPE timestamp. action = condense( action ). getdata = condense( getdata ). CASE action. WHEN 'author'. display_user( CONV #( getdata ) ). WHEN 'request'. display_request( CONV #( getdata ) ). WHEN 'revert'. " Revert to the requested timestmap ts = CONV #( getdata+7 ). revert( ts ). " And then display the new present time GET TIME STAMP FIELD ts. zcl_timem_options=>get_instance( )->set( timestamp = ts ). display_version( ). WHEN 'source'. decode_source_type_and_name( EXPORTING i_getdata = getdata IMPORTING e_type = DATA(type) e_object_name = DATA(object_name) ). display_source( type = type object_name = object_name ). WHEN 'timestamp'. " Depending on the link, getdata may be just the timestamp xxx or be like timestamp=xxx ts = COND #( WHEN getdata(10) = 'timestamp=' THEN getdata+10 ELSE getdata ). zcl_timem_options=>get_instance( )->set( timestamp = ts ). display_version( ). WHEN OTHERS. userexits->on_sapevent( action = action getdata = getdata ). ENDCASE. ENDMETHOD. METHOD revert. TRY. gui->revert( ts ). CATCH zcx_timem INTO DATA(exc). DATA(text) = exc->get_text( ). MESSAGE text TYPE 'E'. ENDTRY. ENDMETHOD. ENDCLASS.
[ 40484, 11532, 3159, 1785, 21360, 284, 1730, 351, 2836, 10375, 1141, 262, 11532, 198, 40484, 10470, 13, 632, 481, 36899, 262, 2581, 290, 1429, 340, 6906, 319, 262, 198, 40484, 9167, 2223, 13, 1114, 1672, 11, 340, 481, 16500, 284, 262, 9167, 2723, 2438, 13, 198, 31631, 1976, 565, 62, 16514, 368, 62, 48317, 62, 30281, 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, 48317, 41876, 4526, 37, 5390, 1976, 565, 62, 16514, 368, 62, 48317, 764, 628, 220, 220, 220, 366, 0, 32412, 2446, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 2223, 930, 7561, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 651, 7890, 930, 6060, 3307, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 82, 1758, 1151, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 473, 431, 1151, 3963, 537, 62, 48317, 62, 6494, 62, 1177, 263, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 2673, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5145, 1136, 7890, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 11774, 41876, 4526, 37, 5390, 1976, 565, 62, 16514, 368, 62, 48317, 13, 198, 220, 220, 220, 42865, 779, 21510, 896, 41876, 4526, 37, 5390, 1976, 565, 62, 16514, 368, 62, 1904, 21510, 896, 13, 628, 220, 220, 220, 337, 36252, 50, 3359, 62, 25927, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2581, 41876, 491, 74, 38890, 13, 628, 220, 220, 220, 337, 36252, 50, 3359, 62, 7220, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2836, 41876, 555, 480, 13, 628, 220, 220, 220, 337, 36252, 50, 3359, 62, 10459, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 41876, 3326, 568, 50007, 28004, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 3672, 41876, 3326, 568, 50007, 7402, 13, 628, 220, 220, 220, 337, 36252, 50, 3359, 62, 9641, 13, 628, 220, 220, 220, 337, 36252, 50, 36899, 62, 10459, 62, 4906, 62, 392, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1136, 7890, 220, 220, 220, 220, 41876, 269, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 41876, 3326, 568, 50007, 28004, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 15252, 62, 3672, 41876, 3326, 568, 50007, 7402, 13, 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, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 51, 3955, 3620, 62, 40156, 62, 39, 6981, 39878, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 502, 3784, 48317, 796, 11774, 13, 198, 220, 220, 220, 779, 21510, 896, 796, 12682, 1303, 7, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 36899, 62, 10459, 62, 4906, 62, 392, 62, 3672, 13, 198, 220, 220, 220, 42865, 285, 8671, 2539, 41876, 384, 420, 30094, 2539, 13, 198, 220, 220, 220, 46341, 2043, 1312, 62, 1136, 7890, 5161, 705, 91, 6, 39319, 304, 62, 4906, 304, 62, 15252, 62, 3672, 13, 198, 220, 220, 220, 6006, 32297, 304, 62, 4906, 12509, 9792, 5550, 28882, 2751, 12509, 2885, 2751, 2272, 13, 198, 220, 220, 220, 6006, 32297, 304, 62, 15252, 62, 3672, 12509, 9792, 5550, 28882, 2751, 12509, 2885, 2751, 2272, 13, 628, 220, 220, 220, 42001, 304, 62, 4906, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 36037, 33, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 15252, 62, 3672, 796, 537, 62, 2238, 62, 4871, 3672, 62, 15271, 14804, 1136, 62, 12984, 2363, 62, 3672, 7, 7102, 53, 1303, 7, 304, 62, 15252, 62, 3672, 1267, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 4906, 796, 705, 4805, 7730, 4458, 628, 220, 220, 220, 220, 220, 42099, 705, 34, 31190, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 15252, 62, 3672, 796, 537, 62, 2238, 62, 4871, 3672, 62, 15271, 14804, 1136, 62, 1676, 2363, 62, 3672, 7, 7102, 53, 1303, 7, 304, 62, 15252, 62, 3672, 1267, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 4906, 796, 705, 4805, 7730, 4458, 628, 220, 220, 220, 220, 220, 42099, 705, 34, 4805, 40, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 15252, 62, 3672, 796, 537, 62, 2238, 62, 4871, 3672, 62, 15271, 14804, 1136, 62, 1050, 27866, 62, 3672, 7, 7102, 53, 1303, 7, 304, 62, 15252, 62, 3672, 1267, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 4906, 796, 705, 4805, 7730, 4458, 628, 220, 220, 220, 220, 220, 42099, 705, 34, 32988, 6, 6375, 705, 34, 30158, 6, 6375, 705, 24187, 2246, 6, 6375, 705, 2200, 3705, 6, 6375, 705, 4093, 26830, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 366, 2134, 62, 3672, 318, 1541, 262, 2291, 523, 2190, 340, 355, 257, 1430, 198, 220, 220, 220, 220, 220, 220, 220, 304, 62, 4906, 796, 705, 4805, 7730, 4458, 628, 220, 220, 220, 220, 220, 42099, 705, 44, 20702, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 46341, 2043, 304, 62, 15252, 62, 3672, 5161, 2272, 39319, 285, 8671, 2539, 12, 565, 82, 3672, 285, 8671, 2539, 12, 13155, 67, 3672, 13, 198, 220, 220, 220, 220, 220, 220, 220, 537, 62, 2238, 62, 4871, 3672, 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, 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METHODS: identity FOR TESTING RAISING zcx_abapgit_exception, ignore FOR TESTING, i18n FOR TESTING. ENDCLASS. CLASS ltcl_dot_abapgit IMPLEMENTATION. METHOD identity. DATA: lo_dot TYPE REF TO zcl_abapgit_dot_abapgit, ls_before TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit, ls_after TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit. lo_dot = zcl_abapgit_dot_abapgit=>build_default( ). ls_before = lo_dot->ms_data. lo_dot = zcl_abapgit_dot_abapgit=>deserialize( lo_dot->serialize( ) ). ls_after = lo_dot->ms_data. cl_abap_unit_assert=>assert_equals( act = ls_after exp = ls_before ). ENDMETHOD. METHOD ignore. CONSTANTS: lc_path TYPE string VALUE '/src/', lc_root TYPE string VALUE '/', lc_filename TYPE string VALUE 'foobar.txt'. DATA: lv_ignored TYPE abap_bool, lo_dot TYPE REF TO zcl_abapgit_dot_abapgit. lo_dot = zcl_abapgit_dot_abapgit=>build_default( ). " Any file in default starting folder /src/ should not be ignored lv_ignored = lo_dot->is_ignored( iv_path = lc_path iv_filename = lc_filename ). cl_abap_unit_assert=>assert_equals( act = lv_ignored exp = abap_false ). " Add file to ignore list -> expect to be ignored lo_dot->add_ignore( iv_path = lc_path iv_filename = lc_filename ). lv_ignored = lo_dot->is_ignored( iv_path = lc_path iv_filename = lc_filename ). cl_abap_unit_assert=>assert_equals( act = lv_ignored exp = abap_true ). " Remove file from ignore list -> expect to be allowed lo_dot->remove_ignore( iv_path = lc_path iv_filename = lc_filename ). lv_ignored = lo_dot->is_ignored( iv_path = lc_path iv_filename = lc_filename ). cl_abap_unit_assert=>assert_equals( act = lv_ignored exp = abap_false ). " .abapgit.xml and .apack-manifest.xml must always be allowed lv_ignored = lo_dot->is_ignored( iv_path = lc_root iv_filename = zif_abapgit_definitions=>c_dot_abapgit ). cl_abap_unit_assert=>assert_equals( act = lv_ignored exp = abap_false ). lv_ignored = lo_dot->is_ignored( iv_path = lc_root iv_filename = zif_abapgit_apack_definitions=>c_dot_apack_manifest ). cl_abap_unit_assert=>assert_equals( act = lv_ignored exp = abap_false ). " File in root must be ignored since it's not under starting folder lv_ignored = lo_dot->is_ignored( iv_path = lc_root iv_filename = 'abaplint.json' ). cl_abap_unit_assert=>assert_equals( act = lv_ignored exp = abap_true ). " File under starting folder must not be ignored lv_ignored = lo_dot->is_ignored( iv_path = lc_path iv_filename = 'ztest.prog.abap' ). cl_abap_unit_assert=>assert_equals( act = lv_ignored exp = abap_false ). ENDMETHOD. METHOD i18n. DATA lo_dot TYPE REF TO zcl_abapgit_dot_abapgit. lo_dot = zcl_abapgit_dot_abapgit=>build_default( ). lo_dot->ms_data-master_language = 'E'. cl_abap_unit_assert=>assert_equals( act = lo_dot->ms_data-i18n_langs exp = '' ). lo_dot->set_i18n_langs( 'en , de, es' ). cl_abap_unit_assert=>assert_equals( act = lo_dot->ms_data-i18n_langs exp = 'DE,ES' ). cl_abap_unit_assert=>assert_equals( act = lo_dot->get_i18n_langs( ) exp = 'DE,ES' ). lo_dot->ms_data-i18n_langs = `en , DE, es `. cl_abap_unit_assert=>assert_equals( act = lo_dot->get_i18n_langs( ) exp = 'DE,ES' ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 26518, 62, 397, 499, 18300, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 83, 565, 62, 26518, 62, 397, 499, 18300, 13, 198, 198, 31631, 300, 83, 565, 62, 26518, 62, 397, 499, 18300, 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, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 5369, 7473, 43001, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 8856, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1312, 1507, 77, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 26518, 62, 397, 499, 18300, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 5369, 13, 628, 220, 220, 220, 42865, 25, 2376, 62, 26518, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 19052, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 26518, 62, 397, 499, 18300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 8499, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 774, 62, 26518, 62, 397, 499, 18300, 13, 628, 198, 220, 220, 220, 2376, 62, 26518, 796, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 11249, 62, 12286, 7, 6739, 198, 220, 220, 220, 43979, 62, 19052, 796, 2376, 62, 26518, 3784, 907, 62, 7890, 13, 628, 220, 220, 220, 2376, 62, 26518, 796, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 8906, 48499, 1096, 7, 2376, 62, 26518, 3784, 46911, 1096, 7, 1267, 6739, 198, 220, 220, 220, 43979, 62, 8499, 796, 2376, 62, 26518, 3784, 907, 62, 7890, 13, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 43979, 62, 8499, 198, 220, 220, 220, 220, 220, 1033, 796, 43979, 62, 19052, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 8856, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 300, 66, 62, 6978, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 31051, 10677, 14, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 66, 62, 15763, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 31051, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 66, 62, 34345, 41876, 4731, 26173, 8924, 705, 6513, 30973, 13, 14116, 4458, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 570, 1850, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 26518, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 13, 628, 198, 220, 220, 220, 2376, 62, 26518, 796, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 14804, 11249, 62, 12286, 7, 6739, 628, 220, 220, 220, 366, 4377, 2393, 287, 4277, 3599, 9483, 1220, 10677, 14, 815, 407, 307, 9514, 198, 220, 220, 220, 300, 85, 62, 570, 1850, 796, 2376, 62, 26518, 3784, 271, 62, 570, 1850, 7, 21628, 62, 6978, 796, 300, 66, 62, 6978, 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, 21628, 62, 34345, 796, 300, 66, 62, 34345, 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, 300, 85, 62, 570, 1850, 198, 220, 220, 220, 220, 220, 1033, 796, 450, 499, 62, 9562, 6739, 198, 198, 1, 3060, 2393, 284, 8856, 1351, 4613, 1607, 284, 307, 9514, 198, 220, 220, 220, 2376, 62, 26518, 3784, 2860, 62, 46430, 7, 21628, 62, 6978, 796, 300, 66, 62, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 34345, 796, 300, 66, 62, 34345, 6739, 628, 220, 220, 220, 300, 85, 62, 570, 1850, 796, 2376, 62, 26518, 3784, 271, 62, 570, 1850, 7, 21628, 62, 6978, 796, 300, 66, 62, 6978, 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, 21628, 62, 34345, 796, 300, 66, 62, 34345, 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, 300, 85, 62, 570, 1850, 198, 220, 220, 220, 220, 220, 1033, 796, 450, 499, 62, 7942, 6739, 198, 198, 1, 17220, 2393, 422, 8856, 1351, 4613, 1607, 284, 307, 3142, 198, 220, 220, 220, 2376, 62, 26518, 3784, 28956, 62, 46430, 7, 21628, 62, 6978, 796, 300, 66, 62, 6978, 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, 21628, 62, 34345, 796, 300, 66, 62, 34345, 6739, 628, 220, 220, 220, 300, 85, 62, 570, 1850, 796, 2376, 62, 26518, 3784, 271, 62, 570, 1850, 7, 21628, 62, 6978, 796, 300, 66, 62, 6978, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Include ZEX_I01 *&---------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Module user_command_9001 INPUT *&---------------------------------------------------------------------* * Screen 9001 PAI *----------------------------------------------------------------------* MODULE user_command_9001 INPUT. CASE ok_code. WHEN 'BACK' OR 'EXIT'. PERFORM check_editor_initial. " check if any text written in editor WHEN 'CANCEL'. LEAVE PROGRAM. WHEN 'EXECUTE'. PERFORM exec_html. ENDCASE. ENDMODULE. " user_command_9001 INPUT
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 6369, 62, 40, 486, 198, 9, 5, 10097, 30934, 9, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 19937, 220, 2836, 62, 21812, 62, 24, 8298, 220, 3268, 30076, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 15216, 860, 8298, 8147, 40, 198, 9, 10097, 23031, 9, 198, 33365, 24212, 2836, 62, 21812, 62, 24, 8298, 3268, 30076, 13, 198, 220, 42001, 12876, 62, 8189, 13, 198, 220, 220, 220, 42099, 705, 31098, 6, 6375, 705, 6369, 2043, 4458, 198, 220, 220, 220, 220, 220, 19878, 21389, 2198, 62, 35352, 62, 36733, 13, 366, 2198, 611, 597, 2420, 3194, 287, 5464, 198, 220, 220, 220, 42099, 705, 34, 20940, 3698, 4458, 198, 220, 220, 220, 220, 220, 12509, 32, 6089, 46805, 13, 198, 220, 220, 220, 42099, 705, 6369, 2943, 37780, 4458, 198, 220, 220, 220, 220, 220, 19878, 21389, 2452, 62, 6494, 13, 198, 220, 23578, 34, 11159, 13, 198, 10619, 33365, 24212, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2836, 62, 21812, 62, 24, 8298, 220, 3268, 30076, 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 ]
CLASS y_check_method_output_param DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. PROTECTED SECTION. METHODS inspect_tokens REDEFINITION. PRIVATE SECTION. DATA has_exporting_parameter TYPE abap_bool. DATA has_changing_parameter TYPE abap_bool. DATA has_returning_parameter TYPE abap_bool. METHODS has_error RETURNING VALUE(result) TYPE abap_bool. ENDCLASS. CLASS Y_CHECK_METHOD_OUTPUT_PARAM IMPLEMENTATION. METHOD has_error. DATA(sum) = 0. IF has_exporting_parameter = abap_true. sum = sum + 1. ENDIF. IF has_changing_parameter = abap_true. sum = sum + 1. ENDIF. IF has_returning_parameter = abap_true. sum = sum + 1. ENDIF. IF sum > 1. result = abap_true. ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). settings-pseudo_comment = '"#EC PARAMETER_OUT' ##NO_TEXT. settings-disable_threshold_selection = abap_true. settings-threshold = 1. settings-documentation = |{ c_docs_path-checks }method-output-parameter.md|. relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-class_definition ) ( scan_struc_stmnt_type-interface ) ). relevant_structure_types = VALUE #( ). set_check_message( 'Combination of parameters(RETURNING/EXPORTING) should not be used!' ). ENDMETHOD. METHOD inspect_tokens. CHECK get_token_abs( statement-from ) = 'METHODS' OR get_token_abs( statement-from ) = 'CLASS-METHODS'. has_exporting_parameter = abap_false. has_changing_parameter = abap_false. has_returning_parameter = abap_false. LOOP AT ref_scan->tokens ASSIGNING FIELD-SYMBOL(<token>) FROM statement-from TO statement-to. CASE <token>-str. WHEN 'EXPORTING'. has_exporting_parameter = abap_true. WHEN 'RETURNING'. has_returning_parameter = abap_true. WHEN 'CHANGING'. has_changing_parameter = abap_true. ENDCASE. ENDLOOP. IF has_error( ) = abap_false. RETURN. ENDIF. DATA(check_configuration) = detect_check_configuration( statement ). raise_error( statement_level = statement-level statement_index = index statement_from = statement-from check_configuration = check_configuration ). ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 24396, 62, 22915, 62, 17143, 5550, 20032, 17941, 44731, 220, 3268, 16879, 2043, 2751, 16034, 331, 62, 9122, 62, 8692, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 10104, 62, 83, 482, 641, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 468, 62, 1069, 26527, 62, 17143, 2357, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 42865, 468, 62, 22954, 62, 17143, 2357, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 42865, 468, 62, 7783, 278, 62, 17143, 2357, 41876, 450, 499, 62, 30388, 13, 628, 220, 220, 220, 337, 36252, 50, 468, 62, 18224, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 62, 50084, 62, 49273, 62, 2606, 7250, 3843, 62, 27082, 2390, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 468, 62, 18224, 13, 198, 220, 220, 220, 42865, 7, 16345, 8, 796, 657, 13, 198, 220, 220, 220, 16876, 468, 62, 1069, 26527, 62, 17143, 2357, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 2160, 796, 2160, 1343, 352, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 468, 62, 22954, 62, 17143, 2357, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 2160, 796, 2160, 1343, 352, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 468, 62, 7783, 278, 62, 17143, 2357, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 2160, 796, 2160, 1343, 352, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 2160, 1875, 352, 13, 198, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 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, 29463, 2390, 2767, 1137, 62, 12425, 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, 352, 13, 198, 220, 220, 220, 6460, 12, 22897, 341, 796, 930, 90, 269, 62, 31628, 62, 6978, 12, 42116, 1782, 24396, 12, 22915, 12, 17143, 2357, 13, 9132, 91, 13, 628, 220, 220, 220, 5981, 62, 26090, 62, 19199, 796, 26173, 8924, 1303, 7, 357, 9367, 62, 19554, 66, 62, 301, 76, 429, 62, 4906, 12, 4871, 62, 46758, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 9367, 62, 19554, 66, 62, 301, 76, 429, 62, 4906, 12, 39994, 1267, 6739, 628, 220, 220, 220, 5981, 62, 301, 5620, 62, 19199, 796, 26173, 8924, 1303, 7, 6739, 628, 220, 220, 220, 900, 62, 9122, 62, 20500, 7, 705, 20575, 1883, 286, 10007, 7, 26087, 4261, 15871, 14, 6369, 15490, 2751, 8, 815, 407, 307, 973, 13679, 6739, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 10104, 62, 83, 482, 641, 13, 198, 220, 220, 220, 5870, 25171, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1267, 796, 705, 49273, 50, 6, 198, 220, 220, 220, 220, 220, 220, 6375, 651, 62, 30001, 62, 8937, 7, 2643, 12, 6738, 1267, 796, 705, 31631, 12, 49273, 50, 4458, 628, 220, 220, 220, 468, 62, 1069, 26527, 62, 17143, 2357, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 468, 62, 22954, 62, 17143, 2357, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 468, 62, 7783, 278, 62, 17143, 2357, 796, 450, 499, 62, 9562, 13, 628, 220, 220, 220, 17579, 3185, 5161, 1006, 62, 35836, 3784, 83, 482, 641, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 30001, 43734, 198, 220, 220, 220, 220, 220, 16034, 2643, 12, 6738, 5390, 2643, 12, 1462, 13, 628, 220, 220, 220, 220, 220, 42001, 1279, 30001, 29, 12, 2536, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 705, 6369, 15490, 2751, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 468, 62, 1069, 26527, 62, 17143, 2357, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 705, 26087, 4261, 15871, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 468, 62, 7783, 278, 62, 17143, 2357, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 705, 3398, 15567, 2751, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 468, 62, 22954, 62, 17143, 2357, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 23578, 34, 11159, 13, 628, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 16876, 468, 62, 18224, 7, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 42865, 7, 9122, 62, 11250, 3924, 8, 796, 4886, 62, 9122, 62, 11250, 3924, 7, 2643, 6739, 628, 220, 220, 220, 5298, 62, 18224, 7, 2643, 62, 5715, 796, 2643, 12, 5715, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 9630, 796, 6376, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2643, 62, 6738, 796, 2643, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2198, 62, 11250, 3924, 796, 2198, 62, 11250, 3924, 6739, 198, 220, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ltc_same_variable 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_same_variable IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_unit_test_assert( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS sum FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD sum. ' ) ( ' " given ' ) ( ' DATA(first) = 10. ' ) ( ' DATA(second) = 10. ' ) ( ' " when ' ) ( ' DATA(sum) = first + second. ' ) ( ' " then ' ) ( ' cl_abap_unit_assert=>assert_equals( act = sum ' ) ( ' exp = sum ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS sum FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD sum. ' ) ( ' " given ' ) ( ' DATA(first) = 10. ' ) ( ' DATA(second) = 10. ' ) ( ' " when ' ) ( ' DATA(sum) = first + second. ' ) ( ' " then ' ) ( ' cl_abap_unit_assert=>assert_equals( act = sum ' ) ( ' exp = 20 ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS sum FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD sum. ' ) ( ' " given ' ) ( ' DATA(first) = 10. ' ) ( ' DATA(second) = 10. ' ) ( ' " when ' ) ( ' DATA(sum) = first + second. ' ) ( ' " then ' ) ( ' cl_abap_unit_assert=>assert_equals( act = sum ' ) ( ' exp = sum ). "#EC UT_ASSERT ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_hardcoded_number 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_hardcoded_number IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_unit_test_assert( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS sum FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD sum. ' ) ( ' " given ' ) ( ' DATA(first) = 10. ' ) ( ' DATA(second) = 10. ' ) ( ' " when ' ) ( ' DATA(sum) = first + second. ' ) ( ' " then ' ) ( ' cl_aunit_assert=>assert_differs( act = 10 ' ) ( ' exp = 20 ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS sum FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD sum. ' ) ( ' " given ' ) ( ' DATA(first) = 10. ' ) ( ' DATA(second) = 10. ' ) ( ' " when ' ) ( ' DATA(sum) = first + second. ' ) ( ' " then ' ) ( ' cl_aunit_assert=>assert_differs( act = 10 ' ) ( ' exp = sum ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS sum FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD sum. ' ) ( ' " given ' ) ( ' DATA(first) = 10. ' ) ( ' DATA(second) = 10. ' ) ( ' " when ' ) ( ' DATA(sum) = first + second. ' ) ( ' " then ' ) ( ' cl_aunit_assert=>assert_differs( act = 10 ' ) ( ' exp = 20 ). "#EC UT_ASSERT ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_hardcoded_string 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_hardcoded_string IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_unit_test_assert( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( | cl_aunit_assert=>assert_differs( act = 'A' | ) ( | exp = 'B' ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA(system) = sy-sysid. ' ) ( | cl_aunit_assert=>assert_differs( act = system | ) ( | exp = 'B' ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( | cl_aunit_assert=>assert_differs( act = 'A' | ) ( | exp = 'B' ). "#EC UT_ASSERT | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_public_classdata DEFINITION INHERITING FROM ltc_hardcoded_string FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_public_classdata IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' CLASS-DATA system TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( | cl_aunit_assert=>assert_differs( act = system | ) ( | exp = 'B' ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_protected_data DEFINITION INHERITING FROM ltc_hardcoded_string FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_protected_data IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' PROTECTED SECTION. ' ) ( ' DATA system TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( | cl_aunit_assert=>assert_differs( act = system | ) ( | exp = 'system' ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_comments DEFINITION INHERITING FROM ltc_same_variable FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_comments IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' PROTECTED SECTION. ' ) ( ' DATA system TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( |* cl_aunit_assert=>assert_differs( act = system | ) ( |* exp = system ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_non_standard_assert DEFINITION INHERITING FROM ltc_same_variable 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_non_standard_assert IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_unit_test_assert( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_assert DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' CLASS-METHODS assert IMPORTING VALUE(exp) TYPE any ' ) ( ' VALUE(act) TYPE any ' ) ( ' RETURNING VALUE(result) TYPE abap_bool. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_assert IMPLEMENTATION. ' ) ( ' METHOD assert. ' ) ( ' result = cl_abap_unit_assert=>assert_equals( exp = exp ' ) ( ' act = act ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' PROTECTED SECTION. ' ) ( ' DATA system TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' y_assert=>assert( act = system ' ) ( ' exp = system ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_assert DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' CLASS-METHODS assert IMPORTING VALUE(exp) TYPE any ' ) ( ' VALUE(act) TYPE any ' ) ( ' RETURNING VALUE(result) TYPE abap_bool. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_assert IMPLEMENTATION. ' ) ( ' METHOD assert. ' ) ( ' result = cl_abap_unit_assert=>assert_equals( exp = exp ' ) ( ' act = act ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' PROTECTED SECTION. ' ) ( ' DATA system TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' y_assert=>assert( act = sy-sysid ' ) ( ' exp = system ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_assert DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' CLASS-METHODS assert IMPORTING VALUE(exp) TYPE any ' ) ( ' VALUE(act) TYPE any ' ) ( ' RETURNING VALUE(result) TYPE abap_bool. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_assert IMPLEMENTATION. ' ) ( ' METHOD assert. ' ) ( ' result = cl_abap_unit_assert=>assert_equals( exp = exp ' ) ( ' act = act ). ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' PROTECTED SECTION. ' ) ( ' DATA system TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' y_assert=>assert( act = system ' ) ( ' exp = system ). "#EC UT_ASSERT ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_lines DEFINITION INHERITING FROM ltc_hardcoded_string FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_lines IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( ' DATA atc_tadir TYPE TABLE OF tadir. ' ) ( ' DATA exp_tadir TYPE TABLE OF tadir. ' ) ( | cl_aunit_assert=>assert_equals( act = lines( atc_tadir ) | ) ( | exp = lines( exp_tadir ) ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_call_static DEFINITION INHERITING FROM ltc_hardcoded_string FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_with_issue REDEFINITION. ENDCLASS. CLASS ltc_call_static IMPLEMENTATION. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_fake DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' CLASS-METHODS get_fullname IMPORTING name TYPE string ' ) ( ' surname TYPE string ' ) ( ' RETURNING VALUE(result) TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_fake IMPLEMENTATION. ' ) ( ' METHOD get_fullname. ' ) ( ' result = |{ name } { surname }|. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( | cl_aunit_assert=>assert_equals( act = y_fake=>get_fullname( name = 'code pal' surname = 'for ABAP' ) | ) ( | exp = y_fake=>get_fullname( name = 'code pal' | ) ( | surname = 'for ABAP' ) ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_assert_fail DEFINITION INHERITING FROM ltc_hardcoded_string FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_assert_fail IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( | cl_aunit_assert=>fail( msg = 'method ended unexpectedly' ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_assert_empty DEFINITION INHERITING FROM ltc_hardcoded_string FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_with_issue REDEFINITION. ENDCLASS. CLASS ltc_assert_empty IMPLEMENTATION. METHOD get_code_with_issue. result = VALUE #( ( ' REPORT y_example. ' ) ( ' CLASS y_example DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS example FOR TESTING. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example IMPLEMENTATION. ' ) ( ' METHOD example. ' ) ( | cl_aunit_assert=>assert_equals( act = '' exp = '' ). | ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 23047, 62, 31642, 62, 45286, 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, 31642, 62, 45286, 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, 20850, 62, 9288, 62, 30493, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 4480, 62, 21949, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 39099, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 50, 2160, 7473, 43001, 2751, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 2160, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 366, 1813, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 11085, 8, 796, 838, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 12227, 8, 796, 838, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 366, 618, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 16345, 8, 796, 717, 1343, 1218, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 366, 788, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2160, 220, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 2160, 6739, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 19419, 62, 21949, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 39099, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 50, 2160, 7473, 43001, 2751, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 2160, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 366, 1813, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 11085, 8, 796, 838, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 12227, 8, 796, 838, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 366, 618, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42865, 7, 16345, 8, 796, 717, 1343, 1218, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 366, 788, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 719, 796, 2160, 220, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1033, 796, 1160, 6739, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 4480, 62, 1069, 11221, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 39099, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 13, 705, 1267, 198, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 zabap_test_0063 NO STANDARD PAGE HEADING. TYPES: BEGIN OF st_structure, foo TYPE i, END OF st_structure. DATA: lt_table TYPE TABLE OF st_structure, lv_lines TYPE i, ls_structure TYPE st_structure. CLEAR ls_structure. ls_structure-foo = 7. APPEND ls_structure TO lt_table. APPEND ls_structure TO lt_table. APPEND ls_structure TO lt_table. DESCRIBE TABLE lt_table LINES lv_lines. WRITE: / lv_lines.
[ 2200, 15490, 1976, 397, 499, 62, 9288, 62, 405, 5066, 8005, 49053, 9795, 48488, 39837, 2751, 13, 198, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 336, 62, 301, 5620, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 22944, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 336, 62, 301, 5620, 13, 198, 198, 26947, 25, 300, 83, 62, 11487, 220, 220, 220, 220, 41876, 43679, 3963, 336, 62, 301, 5620, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 6615, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 301, 5620, 41876, 336, 62, 301, 5620, 13, 198, 198, 29931, 1503, 43979, 62, 301, 5620, 13, 198, 7278, 62, 301, 5620, 12, 21943, 796, 767, 13, 198, 24805, 10619, 43979, 62, 301, 5620, 5390, 300, 83, 62, 11487, 13, 198, 24805, 10619, 43979, 62, 301, 5620, 5390, 300, 83, 62, 11487, 13, 198, 24805, 10619, 43979, 62, 301, 5620, 5390, 300, 83, 62, 11487, 13, 198, 198, 30910, 34, 7112, 12473, 43679, 300, 83, 62, 11487, 43277, 1546, 300, 85, 62, 6615, 13, 198, 18564, 12709, 25, 1220, 300, 85, 62, 6615, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_number_utils DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. TYPE-POOLS: abap. METHODS: constructor. METHODS: is_numeric IMPORTING value TYPE any RETURNING VALUE(result) TYPE abap_bool. PROTECTED SECTION. PRIVATE SECTION. DATA: numeric_types TYPE SORTED TABLE OF abap_typekind WITH UNIQUE KEY table_line. ENDCLASS. CLASS zcl_number_utils IMPLEMENTATION. METHOD constructor. DATA: numeric_kind_names TYPE STANDARD TABLE OF string, dynamic_name TYPE string. FIELD-SYMBOLS: <typekind> TYPE string, <kind_value> TYPE c. APPEND: 'TYPEKIND_DECFLOAT' TO numeric_kind_names, 'TYPEKIND_DECFLOAT16' TO numeric_kind_names, 'TYPEKIND_DECFLOAT34' TO numeric_kind_names, 'TYPEKIND_FLOAT' TO numeric_kind_names, 'TYPEKIND_INT' TO numeric_kind_names, 'TYPEKIND_INT1' TO numeric_kind_names, 'TYPEKIND_INT2' TO numeric_kind_names, 'TYPEKIND_INT8' TO numeric_kind_names, 'TYPEKIND_NUM' TO numeric_kind_names, 'TYPEKIND_NUMERIC' TO numeric_kind_names, 'TYPEKIND_PACKED' TO numeric_kind_names. LOOP AT numeric_kind_names ASSIGNING <typekind>. CONCATENATE 'CL_ABAP_TYPEDESCR=>' <typekind> INTO dynamic_name. ASSIGN (dynamic_name) TO <kind_value>. IF <kind_value> IS ASSIGNED. INSERT <kind_value> INTO TABLE me->numeric_types. ENDIF. UNASSIGN: <kind_value>. ENDLOOP. ENDMETHOD. METHOD is_numeric. DATA: type_descr TYPE REF TO cl_abap_typedescr. type_descr = cl_abap_typedescr=>describe_by_data( value ). READ TABLE me->numeric_types TRANSPORTING NO FIELDS WITH TABLE KEY table_line = type_descr->type_kind. IF sy-subrc EQ 0. result = abap_true. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 17618, 62, 26791, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 41876, 12, 16402, 3535, 50, 25, 450, 499, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 628, 220, 220, 220, 220, 220, 23772, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 318, 62, 77, 39223, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 1988, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 597, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 25, 35575, 62, 19199, 41876, 311, 9863, 1961, 43679, 3963, 450, 499, 62, 4906, 11031, 13315, 4725, 33866, 8924, 35374, 3084, 62, 1370, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 17618, 62, 26791, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 42865, 25, 35575, 62, 11031, 62, 14933, 41876, 49053, 9795, 43679, 3963, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8925, 62, 3672, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 4906, 11031, 29, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 11031, 62, 8367, 29, 41876, 269, 13, 628, 220, 220, 220, 43504, 10619, 25, 705, 25216, 42, 12115, 62, 41374, 3697, 46, 1404, 6, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 41374, 3697, 46, 1404, 1433, 6, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 41374, 3697, 46, 1404, 2682, 6, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 3697, 46, 1404, 6, 220, 220, 220, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 12394, 6, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 12394, 16, 6, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 12394, 17, 6, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 12394, 23, 6, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 41359, 6, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 41359, 1137, 2149, 6, 220, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 25216, 42, 12115, 62, 47, 8120, 1961, 6, 220, 220, 220, 220, 220, 220, 5390, 35575, 62, 11031, 62, 14933, 13, 628, 220, 220, 220, 17579, 3185, 5161, 35575, 62, 11031, 62, 14933, 24994, 3528, 15871, 1279, 4906, 11031, 28401, 198, 220, 220, 220, 220, 220, 39962, 1404, 1677, 6158, 705, 5097, 62, 6242, 2969, 62, 9936, 47, 1961, 1546, 9419, 14804, 6, 1279, 4906, 11031, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 8925, 62, 3672, 13, 628, 220, 220, 220, 220, 220, 24994, 16284, 357, 67, 28995, 62, 3672, 8, 5390, 1279, 11031, 62, 8367, 28401, 628, 220, 220, 220, 220, 220, 16876, 1279, 11031, 62, 8367, 29, 3180, 24994, 16284, 1961, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 1279, 11031, 62, 8367, 29, 39319, 43679, 502, 3784, 77, 39223, 62, 19199, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 4725, 10705, 16284, 25, 1279, 11031, 62, 8367, 28401, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 77, 39223, 13, 628, 220, 220, 220, 42865, 25, 2099, 62, 20147, 81, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 13, 198, 220, 220, 220, 2099, 62, 20147, 81, 796, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 7890, 7, 1988, 6739, 628, 220, 220, 220, 20832, 43679, 502, 3784, 77, 39223, 62, 19199, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13315, 43679, 35374, 3084, 62, 1370, 796, 2099, 62, 20147, 81, 3784, 4906, 62, 11031, 13, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 36529, 657, 13, 198, 220, 220, 220, 220, 220, 1255, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*--------------------------------------------------------------------* * REPORT ZDEMO_EXCEL26 * Demo for method zcl_excel_worksheet-bind_object: * export data from ALV (CL_GUI_ALV_GRID) object or cl_salv_table object * to Excel. *--------------------------------------------------------------------* report zdemo_excel26. *----------------------------------------------------------------------* * CLASS lcl_handle_events DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* class lcl_handle_events definition. public section. methods: on_user_command for event added_function of cl_salv_events importing e_salv_function. endclass. "lcl_handle_events DEFINITION *----------------------------------------------------------------------* * CLASS lcl_handle_events IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* class lcl_handle_events implementation. method on_user_command. perform user_command." using e_salv_function text-i08. endmethod. "on_user_command endclass. "lcl_handle_events IMPLEMENTATION *--------------------------------------------------------------------* * DATA DECLARATION *--------------------------------------------------------------------* data: lo_excel type ref to zcl_excel, lo_worksheet type ref to zcl_excel_worksheet, lo_salv type ref to cl_salv_table, gr_events type ref to lcl_handle_events, lr_events type ref to cl_salv_events_table, gt_sbook type table of sbook. data: l_path type string, " local dir lv_workdir type string, lv_file_separator type c. constants: lv_default_file_name type string value '26_Bind_ALV.xlsx'. *--------------------------------------------------------------------* *START-OF-SELECTION *--------------------------------------------------------------------* start-of-selection. * get data * ------------------------------------------ select * into table gt_sbook[] from sbook "#EC CI_NOWHERE up to 10 rows. * Display ALV * ------------------------------------------ try. cl_salv_table=>factory( exporting list_display = abap_false importing r_salv_table = lo_salv changing t_table = gt_sbook[] ). catch cx_salv_msg . endtry. try. lo_salv->set_screen_status( exporting report = sy-repid pfstatus = 'ALV_STATUS' set_functions = lo_salv->c_functions_all ). catch cx_salv_msg . endtry. lr_events = lo_salv->get_event( ). create object gr_events. set handler gr_events->on_user_command for lr_events. lo_salv->display( ). *&---------------------------------------------------------------------* *& Form USER_COMMAND *&---------------------------------------------------------------------* * ALV user command *--------------------------------------------------------------------* form user_command . if sy-ucomm = 'EXCEL'. * get save file path cl_gui_frontend_services=>get_sapgui_workdir( changing sapworkdir = l_path ). cl_gui_cfw=>flush( ). cl_gui_frontend_services=>directory_browse( exporting initial_folder = l_path changing selected_folder = l_path ). if l_path is initial. cl_gui_frontend_services=>get_sapgui_workdir( changing sapworkdir = lv_workdir ). l_path = lv_workdir. endif. cl_gui_frontend_services=>get_file_separator( changing file_separator = lv_file_separator ). concatenate l_path lv_file_separator lv_default_file_name into l_path. * export file to save file path perform export_to_excel. endif. endform. " USER_COMMAND *--------------------------------------------------------------------* * FORM EXPORT_TO_EXCEL *--------------------------------------------------------------------* * This subroutine is principal demo session *--------------------------------------------------------------------* form export_to_excel raising zcx_excel. * create zcl_excel_worksheet object create object lo_excel. lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( ip_title = 'Sheet1' ). * write to excel using method Bin_object try. lo_worksheet->bind_alv( io_alv = lo_salv it_table = gt_sbook i_top = 2 i_left = 1 ). catch zcx_excel . endtry. perform write_file. endform. "EXPORT_TO_EXCEL *&---------------------------------------------------------------------* *& Form WRITE_FILE *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form write_file . data: lt_file type solix_tab, l_bytecount type i, l_file type xstring. data: lo_excel_writer type ref to zif_excel_writer. data: ls_seoclass type seoclass. create object lo_excel_writer type zcl_excel_writer_2007. l_file = lo_excel_writer->write_file( lo_excel ). select single * into ls_seoclass from seoclass where clsname = 'CL_BCS_CONVERT'. if sy-subrc = 0. call method (ls_seoclass-clsname)=>xstring_to_solix exporting iv_xstring = l_file receiving et_solix = lt_file. l_bytecount = xstrlen( l_file ). else. " Convert to binary call function 'SCMS_XSTRING_TO_BINARY' exporting buffer = l_file importing output_length = l_bytecount tables binary_tab = lt_file. endif. cl_gui_frontend_services=>gui_download( exporting bin_filesize = l_bytecount filename = l_path filetype = 'BIN' changing data_tab = lt_file ). endform. " WRITE_FILE
[ 9, 10097, 650, 9, 198, 9, 39099, 220, 1168, 39429, 46, 62, 6369, 34, 3698, 2075, 198, 9, 34588, 329, 2446, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 12, 21653, 62, 15252, 25, 198, 9, 10784, 1366, 422, 8355, 53, 357, 5097, 62, 40156, 62, 1847, 53, 62, 10761, 2389, 8, 2134, 393, 537, 62, 21680, 85, 62, 11487, 2134, 198, 9, 284, 24134, 13, 198, 9, 10097, 650, 9, 198, 13116, 220, 1976, 9536, 78, 62, 1069, 5276, 2075, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 28144, 62, 31534, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 4871, 300, 565, 62, 28144, 62, 31534, 6770, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 319, 62, 7220, 62, 21812, 329, 1785, 2087, 62, 8818, 286, 537, 62, 21680, 85, 62, 31534, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 304, 62, 21680, 85, 62, 8818, 13, 198, 437, 4871, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 28144, 62, 31534, 5550, 20032, 17941, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 28144, 62, 31534, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 4871, 300, 565, 62, 28144, 62, 31534, 7822, 13, 198, 220, 2446, 319, 62, 7220, 62, 21812, 13, 198, 220, 220, 220, 1620, 2836, 62, 21812, 526, 1262, 304, 62, 21680, 85, 62, 8818, 2420, 12, 72, 2919, 13, 198, 220, 886, 24396, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 261, 62, 7220, 62, 21812, 198, 437, 4871, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 28144, 62, 31534, 30023, 2538, 10979, 6234, 198, 198, 9, 10097, 650, 9, 198, 9, 42865, 27196, 43, 1503, 6234, 198, 9, 10097, 650, 9, 198, 198, 7890, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 220, 220, 220, 220, 220, 2099, 1006, 284, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 21680, 85, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 537, 62, 21680, 85, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 1036, 62, 31534, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 300, 565, 62, 28144, 62, 31534, 11, 198, 220, 220, 220, 220, 220, 300, 81, 62, 31534, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 537, 62, 21680, 85, 62, 31534, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 308, 83, 62, 82, 2070, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 3084, 286, 264, 2070, 13, 198, 198, 7890, 25, 300, 62, 6978, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 4731, 11, 220, 366, 1957, 26672, 198, 220, 220, 220, 220, 220, 300, 85, 62, 1818, 15908, 220, 220, 220, 220, 220, 220, 220, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7753, 62, 25512, 1352, 2099, 269, 13, 198, 198, 9979, 1187, 25, 198, 220, 220, 220, 220, 220, 300, 85, 62, 12286, 62, 7753, 62, 3672, 2099, 4731, 1988, 705, 2075, 62, 36180, 62, 1847, 53, 13, 87, 7278, 87, 4458, 198, 9, 10097, 650, 9, 198, 9, 2257, 7227, 12, 19238, 12, 46506, 2849, 198, 9, 10097, 650, 9, 198, 198, 9688, 12, 1659, 12, 49283, 13, 198, 198, 9, 651, 1366, 198, 9, 20368, 35937, 628, 220, 2922, 1635, 198, 220, 220, 220, 220, 220, 656, 3084, 308, 83, 62, 82, 2070, 21737, 198, 220, 220, 220, 220, 220, 422, 264, 2070, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 198, 220, 220, 220, 220, 220, 510, 284, 838, 15274, 13, 198, 198, 9, 16531, 8355, 53, 198, 9, 20368, 35937, 628, 220, 1949, 13, 198, 220, 220, 220, 220, 220, 537, 62, 21680, 85, 62, 11487, 14804, 69, 9548, 7, 198, 220, 220, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1351, 62, 13812, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 62, 21680, 85, 62, 11487, 796, 2376, 62, 21680, 85, 198, 220, 220, 220, 220, 220, 220, 220, 5609, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 62, 11487, 220, 220, 220, 220, 220, 796, 308, 83, 62, 82, 2070, 21737, 6739, 198, 220, 220, 220, 4929, 43213, 62, 21680, 85, 62, 19662, 764, 198, 220, 886, 28311, 13, 628, 220, 1949, 13, 198, 220, 220, 220, 220, 220, 2376, 62, 21680, 85, 3784, 2617, 62, 9612, 62, 13376, 7, 198, 220, 220, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 989, 220, 220, 220, 220, 220, 220, 220, 796, 827, 12, 7856, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 69, 13376, 220, 220, 220, 220, 220, 796, 705, 1847, 53, 62, 35744, 2937, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 900, 62, 12543, 2733, 796, 2376, 62, 21680, 85, 3784, 66, 62, 12543, 2733, 62, 439, 6739, 198, 220, 220, 220, 4929, 43213, 62, 21680, 85, 62, 19662, 764, 198, 220, 886, 28311, 13, 628, 220, 300, 81, 62, 31534, 796, 2376, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_persistence_user DEFINITION PUBLIC CREATE PRIVATE . PUBLIC SECTION. TYPES tt_favorites TYPE zif_abapgit_persistence=>tt_repo_keys . CLASS-METHODS get_instance IMPORTING !iv_user TYPE xubname DEFAULT sy-uname RETURNING VALUE(ro_user) TYPE REF TO zcl_abapgit_persistence_user . METHODS get_changes_only RETURNING VALUE(rv_changes_only) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_default_git_user_email RETURNING VALUE(rv_email) TYPE string RAISING zcx_abapgit_exception . METHODS get_default_git_user_name RETURNING VALUE(rv_username) TYPE string RAISING zcx_abapgit_exception . METHODS get_diff_unified RETURNING VALUE(rv_diff_unified) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_favorites RETURNING VALUE(rt_favorites) TYPE tt_favorites RAISING zcx_abapgit_exception . METHODS get_hide_files RETURNING VALUE(rv_hide) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS get_repo_git_user_email IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_email) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_git_user_name IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_username) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_last_change_seen IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_version) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_login IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rv_login) TYPE string RAISING zcx_abapgit_exception . METHODS get_repo_show RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS is_favorite_repo IMPORTING !iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key RETURNING VALUE(rv_yes) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS set_default_git_user_email IMPORTING !iv_email TYPE string RAISING zcx_abapgit_exception . METHODS set_default_git_user_name IMPORTING !iv_username TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_git_user_email IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_email TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_git_user_name IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_username TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_last_change_seen IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_version TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_login IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !iv_login TYPE string RAISING zcx_abapgit_exception . METHODS set_repo_show IMPORTING !iv_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS toggle_changes_only RETURNING VALUE(rv_changes_only) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS toggle_diff_unified RETURNING VALUE(rv_diff_unified) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS toggle_favorite IMPORTING !iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception . METHODS toggle_hide_files RETURNING VALUE(rv_hide) TYPE abap_bool RAISING zcx_abapgit_exception . PRIVATE SECTION. TYPES: BEGIN OF ty_repo_config, url TYPE zif_abapgit_persistence=>ty_repo-url, login TYPE string, git_user TYPE zif_abapgit_definitions=>ty_git_user, last_change_seen TYPE string, END OF ty_repo_config . TYPES: ty_repo_config_tt TYPE STANDARD TABLE OF ty_repo_config WITH DEFAULT KEY . TYPES: BEGIN OF ty_user, default_git_user TYPE zif_abapgit_definitions=>ty_git_user, repo_show TYPE zif_abapgit_persistence=>ty_repo-key, hide_files TYPE abap_bool, changes_only TYPE abap_bool, diff_unified TYPE abap_bool, favorites TYPE tt_favorites, repo_config TYPE ty_repo_config_tt, END OF ty_user . DATA mv_user TYPE xubname . CLASS-DATA go_current_user TYPE REF TO zcl_abapgit_persistence_user . METHODS constructor IMPORTING !iv_user TYPE xubname DEFAULT sy-uname . METHODS from_xml IMPORTING !iv_xml TYPE string RETURNING VALUE(rs_user) TYPE ty_user RAISING zcx_abapgit_exception . METHODS read RETURNING VALUE(rs_user) TYPE ty_user RAISING zcx_abapgit_exception . METHODS read_repo_config IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url RETURNING VALUE(rs_repo_config) TYPE ty_repo_config RAISING zcx_abapgit_exception . METHODS to_xml IMPORTING !is_user TYPE ty_user RETURNING VALUE(rv_xml) TYPE string . METHODS update IMPORTING !is_user TYPE ty_user RAISING zcx_abapgit_exception . METHODS update_repo_config IMPORTING !iv_url TYPE zif_abapgit_persistence=>ty_repo-url !is_repo_config TYPE ty_repo_config RAISING zcx_abapgit_exception . ENDCLASS. CLASS ZCL_ABAPGIT_PERSISTENCE_USER IMPLEMENTATION. METHOD constructor. mv_user = iv_user. ENDMETHOD. METHOD from_xml. DATA: lv_xml TYPE string. lv_xml = iv_xml. * fix downward compatibility REPLACE ALL OCCURRENCES OF '<_--28C_TYPE_USER_--29>' IN lv_xml WITH '<USER>'. REPLACE ALL OCCURRENCES OF '</_--28C_TYPE_USER_--29>' IN lv_xml WITH '</USER>'. CALL TRANSFORMATION id OPTIONS value_handling = 'accept_data_loss' SOURCE XML lv_xml RESULT user = rs_user ##NO_TEXT. ENDMETHOD. METHOD get_changes_only. rv_changes_only = read( )-changes_only. ENDMETHOD. "get_changes_only METHOD get_default_git_user_email. rv_email = read( )-default_git_user-email. ENDMETHOD. METHOD get_default_git_user_name. rv_username = read( )-default_git_user-name. ENDMETHOD. METHOD get_diff_unified. rv_diff_unified = read( )-diff_unified. ENDMETHOD. "get_diff_unified METHOD get_favorites. rt_favorites = read( )-favorites. ENDMETHOD. "get_favorites METHOD get_hide_files. rv_hide = read( )-hide_files. ENDMETHOD. "get_hide_files METHOD get_instance. IF iv_user = sy-uname ##USER_OK. IF go_current_user IS NOT BOUND. CREATE OBJECT go_current_user. ENDIF. ro_user = go_current_user. ELSE. CREATE OBJECT ro_user EXPORTING iv_user = iv_user. ENDIF. ENDMETHOD. METHOD get_repo_git_user_email. rv_email = read_repo_config( iv_url )-git_user-email. ENDMETHOD. "get_repo_email METHOD get_repo_git_user_name. rv_username = read_repo_config( iv_url )-git_user-name. ENDMETHOD. "get_repo_username METHOD get_repo_last_change_seen. rv_version = read_repo_config( iv_url )-last_change_seen. ENDMETHOD. "get_last_change_seen METHOD get_repo_login. rv_login = read_repo_config( iv_url )-login. ENDMETHOD. "get_repo_login METHOD get_repo_show. rv_key = read( )-repo_show. ENDMETHOD. METHOD is_favorite_repo. DATA: lt_favorites TYPE tt_favorites. lt_favorites = get_favorites( ). READ TABLE lt_favorites TRANSPORTING NO FIELDS WITH KEY table_line = iv_repo_key. rv_yes = boolc( sy-subrc = 0 ). ENDMETHOD. " is_favorite_repo. METHOD read. DATA: lv_xml TYPE string. TRY. lv_xml = zcl_abapgit_persistence_db=>get_instance( )->read( iv_type = zcl_abapgit_persistence_db=>c_type_user iv_value = mv_user ). CATCH zcx_abapgit_not_found. RETURN. ENDTRY. rs_user = from_xml( lv_xml ). ENDMETHOD. METHOD read_repo_config. DATA: lt_repo_config TYPE ty_repo_config_tt, lv_key TYPE string. lv_key = to_lower( iv_url ). lt_repo_config = read( )-repo_config. READ TABLE lt_repo_config INTO rs_repo_config WITH KEY url = lv_key. ENDMETHOD. "read_repo_config METHOD set_default_git_user_email. DATA: ls_user TYPE ty_user. ls_user = read( ). ls_user-default_git_user-email = iv_email. update( ls_user ). ENDMETHOD. METHOD set_default_git_user_name. DATA: ls_user TYPE ty_user. ls_user = read( ). ls_user-default_git_user-name = iv_username. update( ls_user ). ENDMETHOD. METHOD set_repo_git_user_email. DATA: ls_repo_config TYPE ty_repo_config. ls_repo_config = read_repo_config( iv_url ). ls_repo_config-git_user-email = iv_email. update_repo_config( iv_url = iv_url is_repo_config = ls_repo_config ). ENDMETHOD. "set_repo_email METHOD set_repo_git_user_name. DATA: ls_repo_config TYPE ty_repo_config. ls_repo_config = read_repo_config( iv_url ). ls_repo_config-git_user-name = iv_username. update_repo_config( iv_url = iv_url is_repo_config = ls_repo_config ). ENDMETHOD. "set_repo_username METHOD set_repo_last_change_seen. DATA: ls_repo_config TYPE ty_repo_config. ls_repo_config = read_repo_config( iv_url ). ls_repo_config-last_change_seen = iv_version. update_repo_config( iv_url = iv_url is_repo_config = ls_repo_config ). ENDMETHOD. "set_last_change_seen METHOD set_repo_login. DATA: ls_repo_config TYPE ty_repo_config. ls_repo_config = read_repo_config( iv_url ). ls_repo_config-login = iv_login. update_repo_config( iv_url = iv_url is_repo_config = ls_repo_config ). ENDMETHOD. "set_repo_login METHOD set_repo_show. DATA: ls_user TYPE ty_user. ls_user = read( ). ls_user-repo_show = iv_key. update( ls_user ). COMMIT WORK AND WAIT. ENDMETHOD. METHOD toggle_changes_only. DATA ls_user TYPE ty_user. ls_user = read( ). ls_user-changes_only = boolc( ls_user-changes_only = abap_false ). update( ls_user ). rv_changes_only = ls_user-changes_only. ENDMETHOD. "toggle_changes_only METHOD toggle_diff_unified. DATA ls_user TYPE ty_user. ls_user = read( ). ls_user-diff_unified = boolc( ls_user-diff_unified = abap_false ). update( ls_user ). rv_diff_unified = ls_user-diff_unified. ENDMETHOD. "toggle_diff_unified METHOD toggle_favorite. DATA: ls_user TYPE ty_user. ls_user = read( ). READ TABLE ls_user-favorites TRANSPORTING NO FIELDS WITH KEY table_line = iv_repo_key. IF sy-subrc = 0. DELETE ls_user-favorites INDEX sy-tabix. ELSE. APPEND iv_repo_key TO ls_user-favorites. ENDIF. update( ls_user ). ENDMETHOD. " toggle_favorite. METHOD toggle_hide_files. DATA ls_user TYPE ty_user. ls_user = read( ). ls_user-hide_files = boolc( ls_user-hide_files = abap_false ). update( ls_user ). rv_hide = ls_user-hide_files. ENDMETHOD. "toggle_hide_files METHOD to_xml. CALL TRANSFORMATION id SOURCE user = is_user RESULT XML rv_xml. ENDMETHOD. METHOD update. DATA: lv_xml TYPE string. lv_xml = to_xml( is_user ). zcl_abapgit_persistence_db=>get_instance( )->modify( iv_type = zcl_abapgit_persistence_db=>c_type_user iv_value = mv_user iv_data = lv_xml ). ENDMETHOD. METHOD update_repo_config. DATA: ls_user TYPE ty_user, lv_key TYPE string. FIELD-SYMBOLS <ls_repo_config> TYPE ty_repo_config. ls_user = read( ). lv_key = to_lower( iv_url ). READ TABLE ls_user-repo_config ASSIGNING <ls_repo_config> WITH KEY url = lv_key. IF sy-subrc IS NOT INITIAL. APPEND INITIAL LINE TO ls_user-repo_config ASSIGNING <ls_repo_config>. ENDIF. <ls_repo_config> = is_repo_config. <ls_repo_config>-url = lv_key. update( ls_user ). COMMIT WORK AND WAIT. ENDMETHOD. "update_repo_config ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 7220, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 69, 5570, 2737, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 926, 62, 260, 7501, 62, 13083, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 651, 62, 39098, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7220, 220, 220, 220, 220, 220, 220, 41876, 2124, 549, 3672, 5550, 38865, 827, 12, 403, 480, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 7220, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 7220, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 36653, 62, 8807, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 36653, 62, 8807, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 12286, 62, 18300, 62, 7220, 62, 12888, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 12888, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 12286, 62, 18300, 62, 7220, 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, 29460, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26069, 62, 403, 1431, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26069, 62, 403, 1431, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 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, 69, 5570, 2737, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 69, 5570, 2737, 8, 41876, 256, 83, 62, 69, 5570, 2737, 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, 24717, 62, 16624, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 24717, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 18300, 62, 7220, 62, 12888, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 12888, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 18300, 62, 7220, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 29460, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 12957, 62, 3803, 62, 15898, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 9641, 8, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 260, 7501, 62, 38235, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 6371, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 38235, 8 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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aoc_super CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. METHODS check REDEFINITION. METHODS get_attributes REDEFINITION. METHODS get_message_text REDEFINITION. METHODS if_ci_test~query_attributes REDEFINITION. METHODS put_attributes REDEFINITION. PROTECTED SECTION. TYPES: BEGIN OF ty_field, name TYPE string, level TYPE i, row TYPE token_row, END OF ty_field . TYPES: ty_fields_tt TYPE STANDARD TABLE OF ty_field WITH NON-UNIQUE DEFAULT KEY . DATA mv_skip_radio TYPE sychar01 . METHODS strip IMPORTING !iv_input TYPE string RETURNING VALUE(rv_output) TYPE string . METHODS analyze IMPORTING !io_scan TYPE REF TO zcl_aoc_scan !it_fields TYPE ty_fields_tt . METHODS find_fields IMPORTING !it_tokens TYPE stokesx_tab !it_statements TYPE sstmnt_tab RETURNING VALUE(rt_fields) TYPE ty_fields_tt . PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_25 IMPLEMENTATION. METHOD analyze. * this might not be 100% correct but will work for most cases DATA: lv_include TYPE program, lv_name TYPE string, lt_fields LIKE it_fields. FIELD-SYMBOLS: <ls_statement> LIKE LINE OF io_scan->statements, <ls_field> LIKE LINE OF it_fields, <ls_token> LIKE LINE OF io_scan->tokens. lt_fields = it_fields. LOOP AT io_scan->statements ASSIGNING <ls_statement>. LOOP AT io_scan->tokens ASSIGNING <ls_token> FROM <ls_statement>-from TO <ls_statement>-to WHERE type <> io_scan->gc_token-comment AND type <> io_scan->gc_token-literal. lv_name = strip( <ls_token>-str ). DELETE lt_fields WHERE name = lv_name AND ( row <> <ls_token>-row OR level <> <ls_statement>-level ). ENDLOOP. ENDLOOP. LOOP AT lt_fields ASSIGNING <ls_field>. lv_include = io_scan->get_include( <ls_field>-level ). inform( p_sub_obj_name = lv_include p_line = <ls_field>-row p_kind = mv_errty p_test = myname p_code = '001' p_param_1 = <ls_field>-name ). ENDLOOP. ENDMETHOD. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lt_fields TYPE ty_fields_tt. lt_fields = find_fields( it_tokens = io_scan->tokens it_statements = io_scan->statements ). analyze( io_scan = io_scan it_fields = lt_fields ). ENDMETHOD. METHOD constructor. super->constructor( ). version = '001'. position = '025'. has_attributes = abap_true. attributes_ok = abap_true. enable_rfc( ). mv_skip_radio = abap_true. ENDMETHOD. METHOD find_fields. DATA: lv_keyword TYPE string, lt_code TYPE string_table, ls_result TYPE zcl_aoc_parser=>ty_result, ls_field LIKE LINE OF rt_fields, lv_statement TYPE string. FIELD-SYMBOLS: <ls_statement> LIKE LINE OF it_statements, <ls_rt> LIKE LINE OF ls_result-tokens, <ls_token> LIKE LINE OF it_tokens. LOOP AT it_statements ASSIGNING <ls_statement> WHERE type = zcl_aoc_scan=>gc_statement-standard. CLEAR lv_keyword. CLEAR lv_statement. LOOP AT it_tokens ASSIGNING <ls_token> FROM <ls_statement>-from TO <ls_statement>-to WHERE type <> zcl_aoc_scan=>gc_token-comment. IF lv_keyword IS INITIAL. lv_keyword = <ls_token>-str. ENDIF. IF lv_statement IS INITIAL. lv_statement = <ls_token>-str. ELSE. CONCATENATE lv_statement <ls_token>-str INTO lv_statement SEPARATED BY space. ENDIF. ENDLOOP. IF lv_keyword <> 'PARAMETERS' AND lv_keyword <> 'PARAMETER' AND lv_keyword <> 'SELECT-OPTIONS'. CONTINUE. " current loop ENDIF. CLEAR lt_code. APPEND lv_statement TO lt_code. ls_result = zcl_aoc_parser=>run( it_code = lt_code iv_rule = lv_keyword ). IF ls_result-match = abap_false. CONTINUE. ENDIF. LOOP AT ls_result-tokens ASSIGNING <ls_rt> WHERE value = zcl_aoc_parser=>c_role-fielddefid AND type = zcl_aoc_parser=>c_type-role. IF mv_skip_radio = abap_true. READ TABLE ls_result-tokens WITH KEY type = zcl_aoc_parser=>c_type-terminal code = 'RADIOBUTTON' TRANSPORTING NO FIELDS. IF sy-subrc = 0. CONTINUE. ENDIF. ENDIF. CLEAR ls_field. ls_field-name = strip( <ls_rt>-code ). ls_field-level = <ls_statement>-level. ls_field-row = <ls_token>-row. APPEND ls_field TO rt_fields. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD get_attributes. EXPORT mv_errty = mv_errty mv_skip_radio = mv_skip_radio TO DATA BUFFER p_attributes. ENDMETHOD. METHOD get_message_text. CLEAR p_text. CASE p_code. WHEN '001'. p_text = '&1 not referenced statically'. "#EC NOTEXT WHEN OTHERS. super->get_message_text( EXPORTING p_test = p_test p_code = p_code IMPORTING p_text = p_text ). ENDCASE. ENDMETHOD. "GET_MESSAGE_TEXT METHOD if_ci_test~query_attributes. zzaoc_top. zzaoc_fill_att mv_errty 'Error Type' ''. "#EC NOTEXT zzaoc_fill_att mv_skip_radio 'Skip radio buttons' 'C'. "#EC NOTEXT zzaoc_popup. ENDMETHOD. METHOD put_attributes. IMPORT mv_errty = mv_errty mv_skip_radio = mv_skip_radio FROM DATA BUFFER p_attributes. "#EC CI_USE_WANTED ASSERT sy-subrc = 0. ENDMETHOD. METHOD strip. DATA: lv_offset TYPE i, lv_length TYPE i. rv_output = iv_input. FIND FIRST OCCURRENCE OF '[' IN rv_output MATCH OFFSET lv_offset. IF sy-subrc = 0. rv_output = rv_output(lv_offset). ENDIF. FIND FIRST OCCURRENCE OF '+' IN rv_output MATCH OFFSET lv_offset. IF sy-subrc = 0. rv_output = rv_output(lv_offset). ENDIF. lv_length = strlen( rv_output ) - 1. IF strlen( rv_output ) > 1 AND rv_output(1) = '(' AND rv_output+lv_length(1) = ')'. lv_length = lv_length - 1. rv_output = rv_output+1(lv_length). ELSE. FIND FIRST OCCURRENCE OF '(' IN rv_output MATCH OFFSET lv_offset. IF sy-subrc = 0. rv_output = rv_output(lv_offset). ENDIF. ENDIF. IF strlen( rv_output ) > 1 AND rv_output(1) = '@'. rv_output = rv_output+1. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 1495, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 220, 220, 337, 36252, 50, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 20500, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 22766, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 220, 220, 337, 36252, 50, 1234, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 3245, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1241, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5752, 220, 220, 41876, 11241, 62, 808, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 3245, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 25747, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 3245, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 764, 628, 220, 220, 220, 42865, 285, 85, 62, 48267, 62, 37004, 41876, 827, 10641, 486, 764, 628, 220, 220, 220, 337, 36252, 50, 10283, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 15414, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 22915, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 16602, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 35836, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 35836, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 25747, 41876, 1259, 62, 25747, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 25747, 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, 220, 220, 41876, 336, 3369, 87, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 14269, 3196, 220, 220, 41876, 264, 301, 76, 429, 62, 8658, 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, 1259, 62, 25747, 62, 926, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 1495, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 16602, 13, 198, 198, 9, 428, 1244, 407, 307, 1802, 4, 3376, 475, 481, 670, 329, 749, 2663, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 17256, 41876, 1430, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 25747, 220, 34178, 340, 62, 25747, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 26090, 29, 34178, 48920, 3963, 33245, 62, 35836, 3784, 14269, 3196, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 3245, 29, 220, 220, 220, 220, 34178, 48920, 3963, 340, 62, 25747, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 29, 220, 220, 220, 220, 34178, 48920, 3963, 33245, 62, 35836, 3784, 83, 482, 641, 13, 628, 198, 220, 220, 220, 300, 83, 62, 25747, 796, 340, 62, 25747, 13, 628, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 14269, 3196, 24994, 3528, 15871, 1279, 7278, 62, 26090, 28401, 198, 220, 220, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 1279, 7278, 62, 26090, 29, 12, 6738, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5390, 1279, 7278, 62, 26090, 29, 12, 1462, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 30001, 12, 23893, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 30001, 12, 18250, 1691, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 796, 10283, 7, 1279, 7278, 62, 30001, 29, 12, 2536, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 300, 83, 62, 25747, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 1438, 796, 300, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 357, 5752, 1279, 29, 1279, 7278, 62, 30001, 29, 12, 808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 1241, 1279, 29, 1279, 7278, 62, 26090, 29, 12, 5715, 6739, 198, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 25747, 24994, 3528, 15871, 1279, 7278, 62, 3245, 28401, 628, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_badi_conflu_export DEFINITION PUBLIC CREATE PUBLIC. PUBLIC SECTION. INTERFACES if_badi_interface. INTERFACES zif_badi_conflu_export. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_badi_conflu_export IMPLEMENTATION. METHOD zif_badi_conflu_export~create_http_client. cl_http_client=>create_by_destination( EXPORTING destination = zif_conflu_constants=>rfc_destination IMPORTING client = ri_result EXCEPTIONS argument_not_found = 1 destination_not_found = 2 destination_no_authority = 3 plugin_not_active = 4 internal_error = 5 OTHERS = 6 ). IF sy-subrc <> 0. zcx_conflu_rest=>raise_system( ). ENDIF. ENDMETHOD. METHOD zif_badi_conflu_export~get_api_key. " Redefine to fill API Key ENDMETHOD. METHOD zif_badi_conflu_export~get_base_uri. rv_result = `/rest/api`. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 65, 9189, 62, 10414, 2290, 62, 39344, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 65, 9189, 62, 39994, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 65, 9189, 62, 10414, 2290, 62, 39344, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 65, 9189, 62, 10414, 2290, 62, 39344, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 65, 9189, 62, 10414, 2290, 62, 39344, 93, 17953, 62, 4023, 62, 16366, 13, 628, 220, 220, 220, 537, 62, 4023, 62, 16366, 14804, 17953, 62, 1525, 62, 16520, 1883, 7, 198, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 10965, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1976, 361, 62, 10414, 2290, 62, 9979, 1187, 14804, 81, 16072, 62, 16520, 1883, 198, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 5456, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 374, 72, 62, 20274, 198, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 4578, 62, 1662, 62, 9275, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 10965, 62, 1662, 62, 9275, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 10965, 62, 3919, 62, 9800, 414, 796, 513, 198, 220, 220, 220, 220, 220, 220, 13877, 62, 1662, 62, 5275, 220, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 5387, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 718, 6739, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 10414, 2290, 62, 2118, 14804, 40225, 62, 10057, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 65, 9189, 62, 10414, 2290, 62, 39344, 93, 1136, 62, 15042, 62, 2539, 13, 628, 220, 220, 220, 366, 2297, 891, 500, 284, 6070, 7824, 7383, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 65, 9189, 62, 10414, 2290, 62, 39344, 93, 1136, 62, 8692, 62, 9900, 13, 628, 220, 220, 220, 374, 85, 62, 20274, 796, 4600, 14, 2118, 14, 15042, 44646, 628, 220, 23578, 49273, 13, 628, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Sample for Baking with OO Goodness - the Factory Pattern *& based on Head First Design Patterns: Chapter 4 *&---------------------------------------------------------------------* REPORT yy_head_first_factory_simple. *&---------------------------------------------------------------------* *& This is the product of the factory: pizza! *&---------------------------------------------------------------------* *& We've defined Pizza as an abstract class with some helpful *& implementations that can be overridden. *&---------------------------------------------------------------------* CLASS lcl_pizza DEFINITION ABSTRACT. PUBLIC SECTION. METHODS: name RETURNING VALUE(rv_name) TYPE string, prepare, bake, cut, box, description RETURNING VALUE(rv_text) TYPE string. PROTECTED SECTION. DATA: " Each pizza has a name, a type of dough, a type of sauce, " and a set of toppings. mv_name TYPE string, mv_dough TYPE string, mv_sauce TYPE string, mt_toppings TYPE table_of_strings. ENDCLASS. CLASS lcl_pizza IMPLEMENTATION. METHOD name. rv_name = mv_name. ENDMETHOD. METHOD prepare. cl_demo_output=>write( |Preparing { mv_name }...| ). ENDMETHOD. METHOD bake. cl_demo_output=>write( |Baking { mv_name }...| ). ENDMETHOD. METHOD cut. cl_demo_output=>write( |Cutting { mv_name }...| ). ENDMETHOD. METHOD box. cl_demo_output=>write( |Boxing { mv_name }...| ). ENDMETHOD. METHOD description. rv_text = |---- { mv_name } ----\n| & |{ mv_dough }\n| & |{ mv_sauce }\n| && concat_lines_of( table = mt_toppings sep = |\n| ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete product: Cheese pizza *&---------------------------------------------------------------------* *& Each product needs to implement the Pizza interface (which in *& this case means 'inherit from the abstract Pizza class') and *& also be concrete. As long as that's the case, it can be created *& by the factory and handed back to the client. *&---------------------------------------------------------------------* CLASS lcl_cheese_pizza DEFINITION FINAL INHERITING FROM lcl_pizza. PUBLIC SECTION. METHODS constructor. ENDCLASS. CLASS lcl_cheese_pizza IMPLEMENTATION. METHOD constructor. super->constructor( ). mv_name = |Cheese Pizza|. mv_dough = |Regular Crust|. mv_sauce = |Marinara Pizza Sauce|. mt_toppings = VALUE #( ( |Fresh Mozzarella| ) ( |Grated Parmesan Cheese| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete product: Classic pepperoni pizza *&---------------------------------------------------------------------* CLASS lcl_pepperoni_pizza DEFINITION FINAL INHERITING FROM lcl_pizza. PUBLIC SECTION. METHODS constructor. ENDCLASS. CLASS lcl_pepperoni_pizza IMPLEMENTATION. METHOD constructor. super->constructor( ). mv_name = |Pepperoni Pizza|. mv_dough = |Crust|. mv_sauce = |Marinara sauce|. mt_toppings = VALUE #( ( |Sliced Pepperoni| ) ( |Sliced Onion| ) ( |Grated Parmesan Cheese| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete product: Trendy clam pizza *&---------------------------------------------------------------------* CLASS lcl_clam_pizza DEFINITION FINAL INHERITING FROM lcl_pizza. PUBLIC SECTION. METHODS constructor. ENDCLASS. CLASS lcl_clam_pizza IMPLEMENTATION. METHOD constructor. super->constructor( ). mv_name = |Clam Pizza|. mv_dough = |Thin crust|. mv_sauce = |White garlic sauce|. mt_toppings = VALUE #( ( |Clams| ) ( |Grated Parmesan Cheese| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Concrete product: Veggie pizza *&---------------------------------------------------------------------* CLASS lcl_veggie_pizza DEFINITION FINAL INHERITING FROM lcl_pizza. PUBLIC SECTION. METHODS constructor. ENDCLASS. CLASS lcl_veggie_pizza IMPLEMENTATION. METHOD constructor. super->constructor( ). mv_name = |Veggie Pizza|. mv_dough = |Crust|. mv_sauce = |Marinara sauce|. mt_toppings = VALUE #( ( |Diced Onion| ) ( |Sliced Mushrooms| ) ( |Sliced Red pepper| ) ( |Sliced Black olives| ) ( |Shredded Mozzarella| ) ( |Grated Parmesan Cheese| ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& This is the factory where we create pizzas; it should be the only *& part of our application that refers to concrete Pizza classes. *&---------------------------------------------------------------------* CLASS lcl_simple_pizza_factory DEFINITION FINAL. PUBLIC SECTION. " We define a create_pizza() method in the factory. This is the " method all clients will use to instantiate new objects. METHODS create_pizza " This code is parameterized by the type of the pizza, just " like our Pizza Store order_pizza() method is. IMPORTING iv_type TYPE string RETURNING VALUE(ro_pizza) TYPE REF TO lcl_pizza. ENDCLASS. CLASS lcl_simple_pizza_factory IMPLEMENTATION. METHOD create_pizza. " Based on the type of pizza, we instantiate the correct concrete " class and assign it to the pizza return variable. Note that each " pizza here has to implement the Pizza interface. ro_pizza = SWITCH #( iv_type WHEN 'cheese' THEN NEW lcl_cheese_pizza( ) WHEN 'pepperoni' THEN NEW lcl_pepperoni_pizza( ) WHEN 'clam' THEN NEW lcl_clam_pizza( ) WHEN 'veggie' THEN NEW lcl_veggie_pizza( ) ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& This is the client of the factory. Pizza Store goes through the *& Simple Pizza Factory to get intances of pizza. *&---------------------------------------------------------------------* CLASS lcl_pizza_store DEFINITION FINAL. PUBLIC SECTION. METHODS: " Pizza Store gets the factory passed to it in the constructor. constructor IMPORTING io_factory TYPE REF TO lcl_simple_pizza_factory, " We're passing in the type of pizza to order_pizza() order_pizza IMPORTING iv_type TYPE string RETURNING VALUE(ro_pizza) TYPE REF TO lcl_pizza. PRIVATE SECTION. " We give Pizza Store a reference to a Simple Pizza Factory DATA mo_factory TYPE REF TO lcl_simple_pizza_factory. ENDCLASS. CLASS lcl_pizza_store IMPLEMENTATION. METHOD constructor. mo_factory = io_factory. ENDMETHOD. METHOD order_pizza. " And the order_pizza() method uses the factory to create its " pizzas by simply passing on the type of the order. ro_pizza = mo_factory->create_pizza( iv_type ). " Once we have a Pizza, we prepare it (you know, roll the dough, " put on the sauce and add the toppings & cheese), then we bake " it, cut it, and box it. Each Pizza subtype (Cheese Pizza, Veggie " Pizza, etc.) knows how to prepare itself! ro_pizza->prepare( ). ro_pizza->bake( ). ro_pizza->cut( ). ro_pizza->box( ). ENDMETHOD. ENDCLASS. *&---------------------------------------------------------------------* *& Cutting-edge pizza store demonstration *&---------------------------------------------------------------------* CLASS lcl_pizza_test_drive DEFINITION FINAL. PUBLIC SECTION. CLASS-METHODS main. ENDCLASS. CLASS lcl_pizza_test_drive IMPLEMENTATION. METHOD main. DATA(lo_factory) = NEW lcl_simple_pizza_factory( ). DATA(lo_store) = NEW lcl_pizza_store( lo_factory ). DATA(lo_pizza) = lo_store->order_pizza( |cheese| ). cl_demo_output=>write_text( |We ordered a | && lo_pizza->name( ) ). cl_demo_output=>write( lo_pizza->description( ) ). cl_demo_output=>line( ). lo_pizza = lo_store->order_pizza( |veggie| ). cl_demo_output=>write_text( |We ordered a | && lo_pizza->name( ) ). cl_demo_output=>write( lo_pizza->description( ) ). cl_demo_output=>line( ). ENDMETHOD. ENDCLASS. START-OF-SELECTION. cl_demo_output=>begin_section( |Baking with OO Goodness - the Simple Factory Pattern| ). cl_demo_output=>line( ). lcl_pizza_test_drive=>main( ). cl_demo_output=>display( ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 27565, 329, 347, 868, 351, 440, 46, 4599, 1108, 532, 262, 19239, 23939, 198, 9, 5, 220, 220, 220, 1912, 319, 7123, 3274, 8495, 47020, 25, 7006, 604, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 331, 88, 62, 2256, 62, 11085, 62, 69, 9548, 62, 36439, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 770, 318, 262, 1720, 286, 262, 8860, 25, 14256, 0, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 775, 1053, 5447, 20952, 355, 281, 12531, 1398, 351, 617, 7613, 198, 9, 5, 220, 25504, 326, 460, 307, 23170, 4651, 13, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 79, 9990, 5550, 20032, 17941, 9564, 18601, 10659, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1438, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 3672, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 8335, 11, 28450, 11, 2005, 11, 3091, 11, 198, 220, 220, 220, 220, 220, 6764, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 5239, 8, 41876, 4731, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 366, 5501, 14256, 468, 257, 1438, 11, 257, 2099, 286, 15756, 11, 257, 2099, 286, 10746, 11, 198, 220, 220, 220, 220, 220, 366, 290, 257, 900, 286, 23126, 654, 13, 198, 220, 220, 220, 220, 220, 285, 85, 62, 3672, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 67, 619, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 285, 85, 62, 82, 559, 344, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 45079, 62, 1462, 37840, 41876, 3084, 62, 1659, 62, 37336, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 79, 9990, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1438, 13, 198, 220, 220, 220, 374, 85, 62, 3672, 796, 285, 85, 62, 3672, 13, 198, 220, 23578, 49273, 13, 198, 220, 337, 36252, 8335, 13, 198, 220, 220, 220, 537, 62, 9536, 78, 62, 22915, 14804, 13564, 7, 930, 37534, 1723, 1391, 285, 85, 62, 3672, 1782, 986, 91, 6739, 198, 220, 23578, 49273, 13, 198, 220, 337, 36252, 28450, 13, 198, 220, 220, 220, 537, 62, 9536, 78, 62, 22915, 14804, 13564, 7, 930, 33, 868, 1391, 285, 85, 62, 3672, 1782, 986, 91, 6739, 198, 220, 23578, 49273, 13, 198, 220, 337, 36252, 2005, 13, 198, 220, 220, 220, 537, 62, 9536, 78, 62, 22915, 14804, 13564, 7, 930, 26254, 889, 1391, 285, 85, 62, 3672, 1782, 986, 91, 6739, 198, 220, 23578, 49273, 13, 198, 220, 337, 36252, 3091, 13, 198, 220, 220, 220, 537, 62, 9536, 78, 62, 22915, 14804, 13564, 7, 930, 14253, 278, 1391, 285, 85, 62, 3672, 1782, 986, 91, 6739, 198, 220, 23578, 49273, 13, 198, 220, 337, 36252, 6764, 13, 198, 220, 220, 220, 374, 85, 62, 5239, 796, 930, 650, 1391, 285, 85, 62, 3672, 1782, 13498, 59, 77, 91, 1222, 198, 220, 220, 220, 220, 220, 930, 90, 285, 85, 62, 67, 619, 1782, 59, 77, 91, 1222, 930, 90, 285, 85, 62, 82, 559, 344, 1782, 59, 77, 91, 11405, 198, 220, 220, 220, 220, 220, 1673, 265, 62, 6615, 62, 1659, 7, 3084, 796, 45079, 62, 1462, 37840, 41767, 796, 930, 59, 77, 91, 6739, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 1482, 38669, 1720, 25, 27601, 14256, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 5501, 1720, 2476, 284, 3494, 262, 20952, 7071, 357, 4758, 287, 198, 9, 5, 220, 428, 1339, 1724, 705, 259, 372, 270, 422, 262, 12531, 20952, 1398, 11537, 290, 198, 9, 5, 220, 635, 307, 10017, 13, 1081, 890, 355, 326, 338, 262, 1339, 11, 340, 460, 307, 2727, 198, 9, 5, 220, 416, 262, 8860, 290, 10158, 736, 284, 262, 5456, 13, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 2395, 2771, 62, 79, 9990, 5550, 20032, 17941, 25261, 3268, 16879, 2043, 2751, 16034, 300, 565, 62, 79, 9990, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 2395, 2771, 62, 79, 9990, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 285, 85, 62, 3672, 796, 930, 7376, 2771, 20952, 91, 13, 198, 220, 220, 220, 285, 85, 62, 67, 619, 796, 930, 40164, 3864, 436, 91, 13, 198, 220, 220, 220, 285, 85, 62, 82, 559, 344, 796, 930, 7676, 259, 3301, 20952, 37618, 91, 13, 198, 220, 220, 220, 45079, 62, 1462, 37840, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 930, 35857, 4270, 3019, 45494, 91, 1267, 198, 220, 220, 220, 220, 220, 357, 930, 38, 4111, 47796, 42890, 27601, 91, 1267, 6739, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 1482, 38669, 1720, 25, 13449, 13385, 14651, 14256, 198, 9, 5, 10097, 30934, 9, 198, 31631, 300, 565, 62, 431, 2848, 14651, 62, 79, 9990, 5550, 20032, 17941, 25261, 3268, 16879, 2043, 2751, 16034, 300, 565, 62, 79, 9990, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 431, 2848, 14651, 62, 79, 9990, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 285, 85, 62, 3672, 796, 930, 6435, 2848, 14651, 20952, 91, 13, 198, 220, 220, 220, 285, 85, 62, 67, 619, 796, 930, 34, 11469, 91, 13, 198, 220, 220, 220, 285, 85, 62, 82, 559, 344, 796, 930, 7676, 259, 3301, 10746, 91, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 zmm_criticidad no standard page heading. include zmm_criticidad_top. include zmm_criticidad_form. *&---------------------------------------------------------------------* *& Validaciones de Pantalla *&---------------------------------------------------------------------* at selection-screen on value-request for archivo. perform set_filepath changing archivo. *&---------------------------------------------------------------------* *& INITIALIZATION *&---------------------------------------------------------------------* initialization. *&---------------------------------------------------------------------* *& START-OF-SELECTION *&---------------------------------------------------------------------* start-of-selection. perform upload_excel_it using archivo changing ti_data. if ti_data[] is initial. message text-e02 type 'I' display like 'E'. else. perform cargar_alv. endif. end-of-selection. *&---------------------------------------------------------------------* *& END-OF-SELECTION *&---------------------------------------------------------------------*
[ 13116, 220, 1976, 3020, 62, 22213, 291, 32482, 645, 3210, 2443, 9087, 13, 198, 198, 17256, 1976, 3020, 62, 22213, 291, 32482, 62, 4852, 13, 198, 17256, 1976, 3020, 62, 22213, 291, 32482, 62, 687, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 48951, 49443, 274, 390, 11427, 30315, 198, 9, 5, 10097, 30934, 9, 198, 265, 6356, 12, 9612, 319, 1988, 12, 25927, 329, 3934, 23593, 13, 198, 220, 1620, 900, 62, 7753, 6978, 5609, 3934, 23593, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 3268, 2043, 12576, 14887, 6234, 198, 9, 5, 10097, 30934, 9, 198, 36733, 1634, 13, 198, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 33303, 12, 19238, 12, 46506, 2849, 198, 9, 5, 10097, 30934, 9, 198, 9688, 12, 1659, 12, 49283, 13, 628, 220, 1620, 9516, 62, 1069, 5276, 62, 270, 1262, 3934, 23593, 5609, 46668, 62, 7890, 13, 628, 611, 46668, 62, 7890, 21737, 318, 4238, 13, 198, 220, 220, 220, 3275, 2420, 12, 68, 2999, 2099, 705, 40, 6, 3359, 588, 705, 36, 4458, 198, 220, 2073, 13, 198, 220, 220, 220, 1620, 269, 853, 283, 62, 282, 85, 13, 198, 220, 45762, 13, 628, 628, 220, 886, 12, 1659, 12, 49283, 13, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 23578, 12, 19238, 12, 46506, 2849, 198, 9, 5, 10097, 30934, 9, 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 ]
*&---------------------------------------------------------------------* *& Include ZDOP_TABSTRIP_I01 *&---------------------------------------------------------------------* *&---------------------------------------------------------------------* *& Module USER_COMMAND_0100 INPUT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* MODULE user_command_0100 INPUT. CASE sy-ucomm. WHEN 'BACK' OR 'EXIT'. LEAVE TO SCREEN 0. WHEN 'TAB1'. tb_id-activetab = 'TAB1'. WHEN 'TAB2'. tb_id-activetab = 'TAB2'. ENDCASE. ENDMODULE.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 35, 3185, 62, 5603, 33, 18601, 4061, 62, 40, 486, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 220, 220, 220, 220, 19937, 220, 1294, 1137, 62, 9858, 44, 6981, 62, 39103, 220, 3268, 30076, 198, 9, 5, 10097, 30934, 9, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 198, 9, 10097, 23031, 9, 198, 33365, 24212, 2836, 62, 21812, 62, 39103, 3268, 30076, 13, 198, 220, 42001, 827, 12, 84, 9503, 13, 198, 220, 220, 220, 42099, 705, 31098, 6, 6375, 705, 6369, 2043, 4458, 198, 220, 220, 220, 220, 220, 12509, 32, 6089, 5390, 6374, 2200, 1677, 657, 13, 198, 220, 220, 220, 42099, 705, 5603, 33, 16, 4458, 198, 220, 220, 220, 220, 220, 256, 65, 62, 312, 12, 5275, 8658, 796, 705, 5603, 33, 16, 4458, 198, 220, 220, 220, 42099, 705, 5603, 33, 17, 4458, 198, 220, 220, 220, 220, 220, 256, 65, 62, 312, 12, 5275, 8658, 796, 705, 5603, 33, 17, 4458, 198, 220, 23578, 34, 11159, 13, 198, 10619, 33365, 24212, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_syntax_highlighter DEFINITION PUBLIC ABSTRACT CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS create IMPORTING !iv_filename TYPE string RETURNING VALUE(ro_instance) TYPE REF TO zcl_abapgit_syntax_highlighter . METHODS process_line IMPORTING !iv_line TYPE string RETURNING VALUE(rv_line) TYPE string . PROTECTED SECTION. TYPES: BEGIN OF ty_match, token TYPE c LENGTH 1, " Type of matches offset TYPE i, " Beginning position of the string that should be formatted length TYPE i, " Length of the string that should be formatted text_tag TYPE string, " Type of text tag END OF ty_match . TYPES: ty_match_tt TYPE STANDARD TABLE OF ty_match WITH DEFAULT KEY . TYPES: BEGIN OF ty_rule, regex TYPE REF TO cl_abap_regex, token TYPE c LENGTH 1, style TYPE string, relevant_submatch TYPE i, END OF ty_rule . CONSTANTS c_token_none TYPE c VALUE '.' ##NO_TEXT. DATA: mt_rules TYPE STANDARD TABLE OF ty_rule . METHODS add_rule IMPORTING !iv_regex TYPE string !iv_token TYPE c !iv_style TYPE string !iv_submatch TYPE i OPTIONAL . METHODS parse_line IMPORTING !iv_line TYPE string RETURNING VALUE(rt_matches) TYPE ty_match_tt . METHODS order_matches ABSTRACT IMPORTING !iv_line TYPE string CHANGING !ct_matches TYPE ty_match_tt . METHODS extend_matches IMPORTING !iv_line TYPE string CHANGING !ct_matches TYPE ty_match_tt . METHODS format_line IMPORTING !iv_line TYPE string !it_matches TYPE ty_match_tt RETURNING VALUE(rv_line) TYPE string . METHODS apply_style IMPORTING !iv_line TYPE string !iv_class TYPE string RETURNING VALUE(rv_line) TYPE string . METHODS is_whitespace IMPORTING !iv_string TYPE string RETURNING VALUE(rv_result) TYPE abap_bool . PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_SYNTAX_HIGHLIGHTER IMPLEMENTATION. METHOD add_rule. DATA ls_rule LIKE LINE OF mt_rules. IF NOT iv_regex IS INITIAL. CREATE OBJECT ls_rule-regex EXPORTING pattern = iv_regex ignore_case = abap_true. ENDIF. ls_rule-token = iv_token. ls_rule-style = iv_style. ls_rule-relevant_submatch = iv_submatch. APPEND ls_rule TO mt_rules. ENDMETHOD. METHOD apply_style. DATA lv_escaped TYPE string. lv_escaped = escape( val = iv_line format = cl_abap_format=>e_html_attr ). IF iv_class IS NOT INITIAL. rv_line = |<span class="{ iv_class }">{ lv_escaped }</span>|. ELSE. rv_line = lv_escaped. ENDIF. ENDMETHOD. METHOD create. " Create instance of highighter dynamically dependent on syntax type IF iv_filename CP '*.abap'. CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_abap. ELSEIF iv_filename CP '*.xml' OR iv_filename CP '*.html'. CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_xml. ELSEIF iv_filename CP '*.css'. CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_css. ELSEIF iv_filename CP '*.js'. CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_js. ELSEIF iv_filename CP '*.json'. CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_json. ELSE. CLEAR ro_instance. ENDIF. ENDMETHOD. METHOD extend_matches. DATA: lv_line_len TYPE i, lv_last_pos TYPE i VALUE 0, lv_length TYPE i, ls_match TYPE ty_match. FIELD-SYMBOLS <ls_match> TYPE ty_match. lv_line_len = strlen( iv_line ). SORT ct_matches BY offset. " Add entries refering to parts of text that should not be formatted LOOP AT ct_matches ASSIGNING <ls_match>. IF <ls_match>-offset > lv_last_pos. lv_length = <ls_match>-offset - lv_last_pos. ls_match-token = c_token_none. ls_match-offset = lv_last_pos. ls_match-length = lv_length. INSERT ls_match INTO ct_matches INDEX sy-tabix. ENDIF. lv_last_pos = <ls_match>-offset + <ls_match>-length. ENDLOOP. " Add remainder of the string IF lv_line_len > lv_last_pos. lv_length = lv_line_len - lv_last_pos. ls_match-token = c_token_none. ls_match-offset = lv_last_pos. ls_match-length = lv_length. APPEND ls_match TO ct_matches. ENDIF. ENDMETHOD. METHOD format_line. DATA: lv_chunk TYPE string, ls_rule LIKE LINE OF mt_rules. FIELD-SYMBOLS <ls_match> TYPE ty_match. LOOP AT it_matches ASSIGNING <ls_match>. lv_chunk = substring( val = iv_line off = <ls_match>-offset len = <ls_match>-length ). CLEAR ls_rule. " Failed read equals no style READ TABLE mt_rules INTO ls_rule WITH KEY token = <ls_match>-token. lv_chunk = me->apply_style( iv_line = lv_chunk iv_class = ls_rule-style ). rv_line = rv_line && lv_chunk. ENDLOOP. ENDMETHOD. METHOD is_whitespace. DATA: lv_whitespace TYPE string. "/^\s+$/ lv_whitespace = ` ` && cl_abap_char_utilities=>horizontal_tab && cl_abap_char_utilities=>cr_lf. IF iv_string CO lv_whitespace. rv_result = abap_true. ELSE. rv_result = abap_false. ENDIF. ENDMETHOD. METHOD parse_line. DATA: lo_regex TYPE REF TO cl_abap_regex, lo_matcher TYPE REF TO cl_abap_matcher, lt_result TYPE match_result_tab, ls_match TYPE ty_match. FIELD-SYMBOLS: <ls_regex> LIKE LINE OF mt_rules, <ls_result> TYPE match_result, <ls_submatch> LIKE LINE OF <ls_result>-submatches. " Process syntax-dependent regex table and find all matches LOOP AT mt_rules ASSIGNING <ls_regex> WHERE regex IS BOUND. lo_regex = <ls_regex>-regex. lo_matcher = lo_regex->create_matcher( text = iv_line ). lt_result = lo_matcher->find_all( ). " Save matches into custom table with predefined tokens LOOP AT lt_result ASSIGNING <ls_result>. CLEAR: ls_match. IF <ls_regex>-relevant_submatch = 0. ls_match-token = <ls_regex>-token. ls_match-offset = <ls_result>-offset. ls_match-length = <ls_result>-length. APPEND ls_match TO rt_matches. ELSE. READ TABLE <ls_result>-submatches ASSIGNING <ls_submatch> INDEX <ls_regex>-relevant_submatch. "submatch might be empty if only discarted parts matched IF sy-subrc = 0 AND <ls_submatch>-offset >= 0 AND <ls_submatch>-length > 0. ls_match-token = <ls_regex>-token. ls_match-offset = <ls_submatch>-offset. ls_match-length = <ls_submatch>-length. APPEND ls_match TO rt_matches. ENDIF. ENDIF. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD process_line. DATA: lt_matches TYPE ty_match_tt. IF iv_line IS INITIAL OR is_whitespace( iv_line ) = abap_true. rv_line = iv_line. RETURN. ENDIF. lt_matches = me->parse_line( iv_line ). me->order_matches( EXPORTING iv_line = iv_line CHANGING ct_matches = lt_matches ). me->extend_matches( EXPORTING iv_line = iv_line CHANGING ct_matches = lt_matches ). rv_line = me->format_line( iv_line = iv_line it_matches = lt_matches ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 2251, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 34345, 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, 39098, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 8929, 75, 4799, 764, 198, 220, 220, 220, 337, 36252, 50, 1429, 62, 1370, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 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, 1370, 8, 41876, 4731, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 15699, 11, 198, 220, 220, 220, 220, 220, 220, 220, 11241, 220, 220, 220, 41876, 269, 406, 49494, 352, 11, 220, 366, 5994, 286, 7466, 198, 220, 220, 220, 220, 220, 220, 220, 11677, 220, 220, 41876, 1312, 11, 220, 220, 220, 220, 220, 366, 25976, 2292, 286, 262, 4731, 326, 815, 307, 39559, 198, 220, 220, 220, 220, 220, 220, 220, 4129, 220, 220, 41876, 1312, 11, 220, 220, 220, 220, 220, 366, 22313, 286, 262, 4731, 326, 815, 307, 39559, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 62, 12985, 41876, 4731, 11, 366, 5994, 286, 2420, 7621, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 15699, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 15699, 62, 926, 220, 41876, 49053, 9795, 43679, 3963, 1259, 62, 15699, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 25135, 11, 198, 220, 220, 220, 220, 220, 220, 220, 40364, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 260, 25636, 11, 198, 220, 220, 220, 220, 220, 220, 220, 11241, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3918, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5981, 62, 7266, 15699, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 25135, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 30001, 62, 23108, 41876, 269, 26173, 8924, 705, 2637, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 45079, 62, 38785, 41876, 49053, 9795, 43679, 3963, 1259, 62, 25135, 764, 628, 220, 220, 220, 337, 36252, 50, 751, 62, 25135, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 260, 25636, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 30001, 220, 220, 220, 41876, 269, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7635, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 7266, 15699, 41876, 1312, 39852, 2849, 1847, 764, 198, 220, 220, 220, 337, 36252, 50, 21136, 62, 1370, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 6759, 2052, 8, 41876, 1259, 62, 15699, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 1502, 62, 6759, 2052, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9564, 18601, 10659, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 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, 6759, 2052, 41876, 1259, 62, 15699, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 9117, 62, 6759, 2052, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 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, 6759, 2052, 41876, 1259, 62, 15699, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 5794, 62, 1370, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 6759, 2052, 220, 220, 220, 41876, 1259, 62, 15699, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 1370, 8, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 4174, 62, 7635, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1370, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 4871, 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, 1370, 8, 41876, 4731, 764, 198, 220, 220, 220, 337 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Include ZBCX_RELTRS_LIST_VW *&---------------------------------------------------------------------* SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE t_b1. SELECT-OPTIONS: s_trkorr FOR e070-trkorr, s_user FOR e070-as4user DEFAULT sy-uname, s_date FOR e070-as4date. SELECTION-SCREEN SKIP. SELECTION-SCREEN BEGIN OF BLOCK b11 WITH FRAME TITLE t_b11. PARAMETERS: p_tpk TYPE c AS CHECKBOX DEFAULT 'X', p_tpw TYPE c AS CHECKBOX, p_tpt TYPE c AS CHECKBOX. SELECTION-SCREEN END OF BLOCK b11. SELECTION-SCREEN SKIP. SELECTION-SCREEN BEGIN OF BLOCK b12 WITH FRAME TITLE t_b12. PARAMETERS: p_lb TYPE c AS CHECKBOX DEFAULT 'X', p_md TYPE c AS CHECKBOX. SELECTION-SCREEN END OF BLOCK b12. SELECTION-SCREEN END OF BLOCK b1.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 2749, 55, 62, 16448, 5446, 50, 62, 45849, 62, 30133, 198, 9, 5, 10097, 30934, 9, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 16, 13315, 8782, 10067, 37977, 2538, 256, 62, 65, 16, 13, 198, 46506, 12, 3185, 51, 11053, 25, 264, 62, 2213, 74, 38890, 7473, 304, 43509, 12, 2213, 74, 38890, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 62, 7220, 220, 220, 7473, 304, 43509, 12, 292, 19, 7220, 5550, 38865, 827, 12, 403, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 62, 4475, 220, 220, 7473, 304, 43509, 12, 292, 19, 4475, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 14277, 4061, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 1157, 13315, 8782, 10067, 37977, 2538, 256, 62, 65, 1157, 13, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 34788, 74, 41876, 269, 7054, 5870, 25171, 39758, 5550, 38865, 705, 55, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 34788, 86, 41876, 269, 7054, 5870, 25171, 39758, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 83, 457, 41876, 269, 7054, 5870, 25171, 39758, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 1157, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 14277, 4061, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 347, 43312, 3963, 9878, 11290, 275, 1065, 13315, 8782, 10067, 37977, 2538, 256, 62, 65, 1065, 13, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 23160, 41876, 269, 7054, 5870, 25171, 39758, 5550, 38865, 705, 55, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 9132, 41876, 269, 7054, 5870, 25171, 39758, 13, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 1065, 13, 198, 198, 46506, 2849, 12, 6173, 2200, 1677, 23578, 3963, 9878, 11290, 275, 16, 13, 198 ]
[ 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 ]
CLASS zcl_abaplint_deps_git DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !iv_git_url TYPE string !it_packages TYPE tab_packages !iv_git_name TYPE string !iv_git_email TYPE string !iv_git_comment TYPE string . METHODS run IMPORTING !iv_test TYPE abap_bool DEFAULT abap_false !iv_depth TYPE i !it_additional TYPE zif_abapgit_definitions=>ty_tadir_tt RAISING zcx_abapgit_exception zcx_abaplint_error . PROTECTED SECTION. TYPES: BEGIN OF ty_stage, comment TYPE zif_abapgit_definitions=>ty_comment, stage TYPE REF TO zcl_abapgit_stage, END OF ty_stage . DATA mv_git_url TYPE string . DATA mt_packages TYPE tab_packages . DATA mv_git_name TYPE string . DATA mv_git_email TYPE string . DATA mv_git_comment TYPE string . METHODS build_stage IMPORTING !it_local TYPE zif_abapgit_definitions=>ty_files_tt !it_remote TYPE zif_abapgit_definitions=>ty_files_tt RETURNING VALUE(rs_stage) TYPE ty_stage RAISING zcx_abapgit_exception . METHODS get_local IMPORTING !it_additional TYPE zif_abapgit_definitions=>ty_tadir_tt RETURNING VALUE(rt_local) TYPE zif_abapgit_definitions=>ty_files_tt RAISING zcx_abapgit_exception zcx_abaplint_error . PRIVATE SECTION. DATA mv_depth TYPE i . ENDCLASS. CLASS ZCL_ABAPLINT_DEPS_GIT IMPLEMENTATION. METHOD build_stage. DATA ls_remote LIKE LINE OF it_remote. DATA ls_local LIKE LINE OF it_local. FIELD-SYMBOLS: <r> LIKE ls_remote. rs_stage-comment-committer-email = mv_git_email. rs_stage-comment-committer-name = mv_git_name. rs_stage-comment-comment = mv_git_comment. CREATE OBJECT rs_stage-stage. LOOP AT it_local INTO ls_local. READ TABLE it_remote WITH KEY path = ls_local-path filename = ls_local-filename ASSIGNING <r>. IF sy-subrc <> 0. WRITE: / 'Add', ls_local-path, ls_local-filename. rs_stage-stage->add( iv_path = ls_local-path iv_filename = ls_local-filename iv_data = ls_local-data ). ELSEIF <r>-sha1 <> ls_local-sha1. WRITE: / 'Changed', ls_local-path, ls_local-filename. rs_stage-stage->add( iv_path = ls_local-path iv_filename = ls_local-filename iv_data = ls_local-data ). ENDIF. ENDLOOP. LOOP AT it_remote INTO ls_remote. READ TABLE it_local WITH KEY path = ls_remote-path filename = ls_remote-filename TRANSPORTING NO FIELDS. IF sy-subrc <> 0. WRITE: / 'Remove', ls_remote-path, ls_remote-filename. rs_stage-stage->rm( iv_path = ls_remote-path iv_filename = ls_remote-filename ). ENDIF. ENDLOOP. ENDMETHOD. METHOD constructor. mv_git_url = iv_git_url. mt_packages = it_packages. mv_git_name = iv_git_name. mv_git_email = iv_git_email. mv_git_comment = iv_git_comment. ENDMETHOD. METHOD get_local. DATA lo_dep_find TYPE REF TO zcl_abaplint_deps_find. DATA lo_dep_ser TYPE REF TO zcl_abaplint_deps_serializer. DATA lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt. DATA lt_local TYPE zif_abapgit_definitions=>ty_files_tt. DATA ls_options TYPE zcl_abaplint_deps_find=>ty_options. FIELD-SYMBOLS <ls_local> LIKE LINE OF rt_local. ls_options-depth = mv_depth. CREATE OBJECT lo_dep_find EXPORTING is_options = ls_options. CREATE OBJECT lo_dep_ser EXPORTING is_options = ls_options. lt_tadir = lo_dep_find->find_by_packages( mt_packages ). APPEND LINES OF it_additional TO lt_tadir. lt_local = lo_dep_ser->serialize( lt_tadir ). APPEND LINES OF lt_local TO rt_local. * recalculate SHA1, as file contents is changed after serialization LOOP AT rt_local ASSIGNING <ls_local>. <ls_local>-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob iv_data = <ls_local>-data ). ENDLOOP. ENDMETHOD. METHOD run. DATA lt_local TYPE zif_abapgit_definitions=>ty_files_tt. DATA ls_remote TYPE zcl_abapgit_git_porcelain=>ty_pull_result. DATA lv_branch_name TYPE string. DATA ls_stage TYPE ty_stage. mv_depth = iv_depth. lt_local = get_local( it_additional ). cl_progress_indicator=>progress_indicate( i_text = |GIT, Pulling files from Repository| i_processed = 1 i_total = 3 i_output_immediately = abap_true ). lv_branch_name = zcl_abapgit_git_transport=>branches( mv_git_url )->get_head_symref( ). ls_remote = zcl_abapgit_git_porcelain=>pull_by_branch( iv_url = mv_git_url iv_branch_name = lv_branch_name ). * dont push to repositories containing abapgit code * everything will be overwritten in the remote repo READ TABLE ls_remote-files WITH KEY path = '/' filename = '.abapgit.xml' TRANSPORTING NO FIELDS. ASSERT sy-subrc <> 0. DELETE ls_remote-files WHERE path NP '/src/*'. cl_progress_indicator=>progress_indicate( i_text = |GIT, Staging files| i_processed = 2 i_total = 3 i_output_immediately = abap_true ). ls_stage = build_stage( it_local = lt_local it_remote = ls_remote-files ). IF ls_stage-stage->count( ) > 0 AND iv_test = abap_false. cl_progress_indicator=>progress_indicate( i_text = |GIT, Pushing files to Repository| i_processed = 3 i_total = 3 i_output_immediately = abap_true ). zcl_abapgit_git_porcelain=>push( is_comment = ls_stage-comment io_stage = ls_stage-stage it_old_objects = ls_remote-objects iv_parent = ls_remote-commit iv_url = mv_git_url iv_branch_name = lv_branch_name ). ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 15498, 489, 600, 62, 10378, 82, 62, 18300, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18300, 62, 6371, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 43789, 220, 220, 220, 41876, 7400, 62, 43789, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18300, 62, 3672, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18300, 62, 12888, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18300, 62, 23893, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 1057, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9288, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 18053, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 2860, 1859, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 83, 324, 343, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 15498, 489, 600, 62, 18224, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 14247, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2912, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 23893, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3800, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 14247, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 14247, 764, 628, 220, 220, 220, 42865, 285, 85, 62, 18300, 62, 6371, 41876, 4731, 764, 198, 220, 220, 220, 42865, 45079, 62, 43789, 41876, 7400, 62, 43789, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 18300, 62, 3672, 41876, 4731, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 18300, 62, 12888, 41876, 4731, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 18300, 62, 23893, 41876, 4731, 764, 628, 220, 220, 220, 337, 36252, 50, 1382, 62, 14247, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 12001, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 47960, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 14247, 8, 41876, 1259, 62, 14247, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 2860, 1859, 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, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 12001, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 15498, 489, 600, 62, 18224, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 18053, 41876, 1312, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 43, 12394, 62, 7206, 3705, 62, 38, 2043, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 14247, 13, 628, 220, 220, 220, 42865, 43979, 62, 47960, 34178, 48920, 3963, 340, 62, 47960, 13, 198, 220, 220, 220, 42865, 43979, 62, 12001, 34178, 48920, 3963, 340, 62, 12001, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 81, 29, 34178, 43979, 62, 47960, 13, 628, 220, 220, 220, 44608, 62, 14247, 12, 23893, 12, 9503, 1967, 12, 12888, 796, 285, 85, 62, 18300, 62, 12888, 13, 198, 220, 220, 220, 44608, 62, 14247, 12, 23893, 12, 9503, 1967, 12, 3672, 796, 285, 85, 62, 18300, 62, 3672, 13, 198, 220, 220, 220, 44608, 62, 14247, 12, 23893, 12, 23893, 796, 285, 85, 62, 18300, 62, 23893, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 44608, 62, 14247, 12, 14247, 13, 628, 220, 220, 220, 17579, 3185, 5161, 340, 62, 12001, 39319, 43979, 62, 12001, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 340, 62, 47960, 13315, 35374, 198, 220, 220, 220, 220, 220, 220, 220, 3108, 796, 43979, 62, 12001, 12, 6978, 198, 220, 220, 220, 220, 220, 220, 220, 29472, 796, 43979, 62, 12001, 12, 34345, 198, 220, 220, 220, 220, 220, 220, 220, 24994, 3528, 15871, 1279, 81, 28401, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 44423, 25, 1220, 705, 4550, 3256, 43979, 62, 12001, 12, 6978, 11, 43979, 62, 12001, 12, 34345, 13, 198, 220, 220, 220, 220, 220, 220, 220, 44608, 62, 14247, 12, 14247, 3784, 2860 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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if_abapgit_persistence=>ty_repo-key, committer_name TYPE string, committer_email TYPE string, author_name TYPE string, author_email TYPE string, comment TYPE string, body TYPE string, END OF ty_commit_fields. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 30416, 62, 18300, 44731, 13, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 41509, 62, 25747, 11, 198, 220, 220, 220, 220, 220, 29924, 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, 11, 198, 220, 220, 220, 220, 220, 725, 1967, 62, 3672, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 725, 1967, 62, 12888, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1772, 62, 3672, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1772, 62, 12888, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2912, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1767, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 41509, 62, 25747, 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 ]
*&---------------------------------------------------------------------* *& Report YDYNPSOURCE_GENERATE *& *&---------------------------------------------------------------------* *& Generate YDYNPSOURCE* table contents *& Refer to: *& Include LSVIMF45 *& Line 185 *&---------------------------------------------------------------------* REPORT ydynpsource_generate. PARAMETERS i_min_ln TYPE i DEFAULT 20000 OBLIGATORY. " Minimal lines to be submitted to Database DATA: lv_log_s TYPE string, lv_log TYPE string. DATA: lt_dynpsource TYPE STANDARD TABLE OF dynpsource, ls_dynpsource TYPE dynpsource. DATA: h TYPE d020s, f TYPE STANDARD TABLE OF d021s, e TYPE STANDARD TABLE OF d022s, m TYPE STANDARD TABLE OF d023s, dynid(44) TYPE c. DATA: lv_count TYPE i, lv_lines TYPE i, ls_f TYPE d021s, ls_e TYPE d022s, ls_m TYPE d023s, ls_yd021s TYPE ydynpsourced021s, ls_yd022s TYPE ydynpsourced022s, ls_yd023s TYPE ydynpsourced023s. DATA: gt_db_d021s TYPE STANDARD TABLE OF ydynpsourced021s, gt_db_d022s TYPE STANDARD TABLE OF ydynpsourced022s, gt_db_d023s TYPE STANDARD TABLE OF ydynpsourced023s, gv_dbcnt_d021s TYPE i VALUE 0, gv_dbcnt_d022s TYPE i VALUE 0, gv_dbcnt_d023s TYPE i VALUE 0. MESSAGE 'Start to load progname dynpnumber' TYPE 'I'. SELECT progname dynpnumber FROM dynpsource INTO CORRESPONDING FIELDS OF TABLE lt_dynpsource. MESSAGE 'Finished loading progname dynpnumber' TYPE 'I'. LOOP AT lt_dynpsource INTO ls_dynpsource. " Write Job Log MOVE sy-tabix TO lv_log_s. CONCATENATE 'seq = ' lv_log_s ': Processing for dynpro ' ls_dynpsource-progname ls_dynpsource-dynpnumber INTO lv_log RESPECTING BLANKS. MESSAGE lv_log TYPE 'I'. CLEAR: h, f, e, m, dynid. dynid = ls_dynpsource-progname. dynid+40(4) = ls_dynpsource-dynpnumber. IMPORT DYNPRO h f e m ID dynid. IF f IS NOT INITIAL. lv_count = 1. LOOP AT f INTO ls_f. ls_yd021s-progname = ls_dynpsource-progname. ls_yd021s-dynpnumber = ls_dynpsource-dynpnumber. ls_yd021s-seq = lv_count. MOVE-CORRESPONDING ls_f TO ls_yd021s. APPEND ls_yd021s TO gt_db_d021s. lv_count = lv_count + 1. ENDLOOP. ENDIF. IF e IS NOT INITIAL. lv_count = 1. LOOP AT e INTO ls_e. ls_yd022s-progname = ls_dynpsource-progname. ls_yd022s-dynpnumber = ls_dynpsource-dynpnumber. ls_yd022s-seq = lv_count. MOVE-CORRESPONDING ls_e TO ls_yd022s. APPEND ls_yd022s TO gt_db_d022s. lv_count = lv_count + 1. ENDLOOP. ENDIF. IF m IS NOT INITIAL. lv_count = 1. LOOP AT m INTO ls_m. ls_yd023s-progname = ls_dynpsource-progname. ls_yd023s-dynpnumber = ls_dynpsource-dynpnumber. ls_yd023s-seq = lv_count. MOVE ls_m-content TO ls_yd023s-content. APPEND ls_yd023s TO gt_db_d023s. lv_count = lv_count + 1. ENDLOOP. ENDIF. " Save to Database - Group the save into a big package according to i_min_ln DESCRIBE TABLE gt_db_d021s LINES lv_lines. IF lv_lines >= i_min_ln. PERFORM save_d021s. ENDIF. DESCRIBE TABLE gt_db_d022s LINES lv_lines. IF lv_lines >= i_min_ln. PERFORM save_d022s. ENDIF. DESCRIBE TABLE gt_db_d023s LINES lv_lines. IF lv_lines >= i_min_ln. PERFORM save_d023s. ENDIF. ENDLOOP. IF gt_db_d021s IS NOT INITIAL. PERFORM save_d021s. ENDIF. IF gt_db_d022s IS NOT INITIAL. PERFORM save_d022s. ENDIF. IF gt_db_d023s IS NOT INITIAL. PERFORM save_d023s. ENDIF. *&---------------------------------------------------------------------* *& Form save_d021s *&---------------------------------------------------------------------* * Save D021S *----------------------------------------------------------------------* FORM save_d021s. DATA: lv_dbcnt TYPE int4, lv_dbcnt_s TYPE string, lv_log TYPE string. DESCRIBE TABLE gt_db_d021s LINES lv_dbcnt. MOVE lv_dbcnt TO lv_dbcnt_s. gv_dbcnt_d021s = gv_dbcnt_d021s + lv_dbcnt. INSERT ydynpsourced021s FROM TABLE gt_db_d021s ACCEPTING DUPLICATE KEYS. COMMIT WORK. CLEAR gt_db_d021s. " Write Job Log CONDENSE lv_dbcnt_s. CONCATENATE 'SAVE D021S: Saved to ydynpsourced021s, record count = ' lv_dbcnt_s INTO lv_log. MESSAGE lv_log TYPE 'I'. ENDFORM. "save_d021s *&---------------------------------------------------------------------* *& Form save_d022s *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM save_d022s. DATA: lv_dbcnt TYPE int4, lv_dbcnt_s TYPE string, lv_log TYPE string. DESCRIBE TABLE gt_db_d022s LINES lv_dbcnt. MOVE lv_dbcnt TO lv_dbcnt_s. gv_dbcnt_d022s = gv_dbcnt_d022s + lv_dbcnt. INSERT ydynpsourced022s FROM TABLE gt_db_d022s ACCEPTING DUPLICATE KEYS. COMMIT WORK. CLEAR gt_db_d022s. " Write Job Log CONDENSE lv_dbcnt_s. CONCATENATE 'SAVE D022S: Saved to ydynpsourced022s, record count = ' lv_dbcnt_s INTO lv_log. MESSAGE lv_log TYPE 'I'. ENDFORM. "save_d022s *&---------------------------------------------------------------------* *& Form save_d023s *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM save_d023s. DATA: lv_dbcnt TYPE int4, lv_dbcnt_s TYPE string, lv_log TYPE string. DESCRIBE TABLE gt_db_d023s LINES lv_dbcnt. MOVE lv_dbcnt TO lv_dbcnt_s. gv_dbcnt_d023s = gv_dbcnt_d023s + lv_dbcnt. INSERT ydynpsourced023s FROM TABLE gt_db_d023s ACCEPTING DUPLICATE KEYS. COMMIT WORK. CLEAR gt_db_d023s. " Write Job Log CONDENSE lv_dbcnt_s. CONCATENATE 'SAVE D023S: Saved to ydynpsourced023s, record count = ' lv_dbcnt_s INTO lv_log. MESSAGE lv_log TYPE 'I'. ENDFORM. "save_d023s
[ 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 6358, 220, 575, 35, 40760, 3705, 31033, 62, 35353, 1137, 6158, 201, 198, 9, 5, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 2980, 378, 575, 35, 40760, 3705, 31033, 9, 3084, 10154, 201, 198, 9, 5, 33973, 284, 25, 201, 198, 9, 5, 220, 220, 40348, 30948, 53, 3955, 37, 2231, 201, 198, 9, 5, 220, 220, 6910, 220, 220, 220, 22855, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 201, 198, 2200, 15490, 331, 67, 2047, 862, 1668, 62, 8612, 378, 13, 201, 198, 201, 198, 27082, 2390, 2767, 4877, 1312, 62, 1084, 62, 18755, 220, 220, 220, 220, 41876, 1312, 5550, 38865, 220, 939, 405, 440, 9148, 3528, 1404, 15513, 13, 220, 366, 1855, 4402, 3951, 284, 307, 8948, 284, 24047, 201, 198, 201, 198, 201, 198, 26947, 25, 300, 85, 62, 6404, 62, 82, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 201, 198, 220, 220, 220, 220, 220, 300, 85, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 201, 198, 26947, 25, 300, 83, 62, 67, 2047, 862, 1668, 220, 220, 41876, 49053, 9795, 43679, 3963, 37860, 862, 1668, 11, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 67, 2047, 862, 1668, 220, 220, 41876, 37860, 862, 1668, 13, 201, 198, 26947, 25, 289, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 288, 33618, 82, 11, 201, 198, 220, 220, 220, 220, 220, 277, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 288, 46821, 82, 11, 201, 198, 220, 220, 220, 220, 220, 304, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 288, 44087, 82, 11, 201, 198, 220, 220, 220, 220, 220, 285, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 288, 45310, 82, 11, 201, 198, 220, 220, 220, 220, 220, 37860, 312, 7, 2598, 8, 220, 220, 220, 220, 220, 220, 41876, 269, 13, 201, 198, 26947, 25, 300, 85, 62, 9127, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 201, 198, 220, 220, 220, 220, 220, 300, 85, 62, 6615, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 11, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 69, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 288, 46821, 82, 11, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 68, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 288, 44087, 82, 11, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 76, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 288, 45310, 82, 11, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 5173, 46821, 82, 220, 220, 220, 220, 220, 220, 41876, 331, 67, 2047, 862, 30555, 46821, 82, 11, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 5173, 44087, 82, 220, 220, 220, 220, 220, 220, 41876, 331, 67, 2047, 862, 30555, 44087, 82, 11, 201, 198, 220, 220, 220, 220, 220, 43979, 62, 5173, 45310, 82, 220, 220, 220, 220, 220, 220, 41876, 331, 67, 2047, 862, 30555, 45310, 82, 13, 201, 198, 26947, 25, 308, 83, 62, 9945, 62, 67, 46821, 82, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 331, 67, 2047, 862, 30555, 46821, 82, 11, 201, 198, 220, 220, 220, 220, 220, 308, 83, 62, 9945, 62, 67, 44087, 82, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 331, 67, 2047, 862, 30555, 44087, 82, 11, 201, 198, 220, 220, 220, 220, 220, 308, 83, 62, 9945, 62, 67, 45310, 82, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 331, 67, 2047, 862, 30555, 45310, 82, 11, 201, 198, 220, 220, 220, 220, 220, 308, 85, 62, 9945, 66, 429, 62, 67, 46821, 82, 220, 41876, 1312, 26173, 8924, 657, 11, 201, 198, 220, 220, 220, 220, 220, 308, 85, 62, 9945, 66, 429, 62, 67, 44087, 82, 220, 41876, 1312, 26173, 8924, 657, 11, 201, 198, 220, 220, 220, 220, 220, 308, 85, 62, 9945, 66, 429, 62, 67, 45310, 82, 220, 41876, 1312, 26173, 8924, 657, 13, 201, 198, 201, 198, 44, 1546, 4090, 8264, 705, 10434, 284, 3440, 1172, 3672, 37860, 79, 17618, 6, 41876, 705, 40, 4458, 201, 198, 46506, 1172, 3672, 37860, 79, 17618, 16034, 37860, 862, 1668, 201, 198, 220, 39319, 23929, 19535, 47, 18672, 2751, 18930, 3698, 5258, 3963, 43679, 300, 83, 62, 67, 2047, 862, 1668, 13, 201, 198, 44, 1546, 4090, 8264, 705, 18467, 1348, 11046, 1172, 3672, 37860, 79, 17618, 6, 41876, 705, 40, 4458, 201, 198, 201, 198, 21982, 3185, 5161, 300, 83, 62, 67, 2047, 862, 1668, 39319, 43979, 62, 67, 2047, 862, 1668, 13, 201, 198, 201, 198, 220, 366, 19430, 15768, 5972, 201, 198, 220, 13070, 6089, 827, 12, 8658, 844, 5390, 300, 85, 62, 6404, 62, 82, 13, 201, 198, 220, 39962, 1404, 1677, 6158, 705, 41068, 796, 705, 300, 85, 62, 6404, 62, 82, 705, 25, 28403, 329, 37860, 1676, 705, 201, 198, 220, 220, 220, 220, 43979, 62, 67, 2047, 862, 1668, 12, 1676, 70, 3672, 201, 198, 220, 220, 220, 220, 43979, 62, 67, 2047, 862, 1668, 12, 67, 2047, 79, 17618, 201, 198, 220, 220, 220, 220, 39319, 300, 85, 62, 6404, 47203, 9782, 2751, 9878, 15154, 50, 13, 201, 198, 220, 337, 1546, 4090, 8264, 300, 85, 62, 6404, 41876, 705, 40, 4458, 201, 198, 201, 198, 220, 30301, 1503, 25, 289, 11, 277, 11, 304, 11, 285, 11, 37860, 312, 13, 201, 198, 220, 37860, 312, 796, 43979, 62, 67, 2047, 862, 1668, 12, 1676, 70, 3672, 13, 201, 198, 220, 37860, 312, 10, 1821, 7, 19, 8, 796, 43979, 62, 67, 2047, 862, 1668, 12, 67, 2047, 79, 17618, 13, 201, 198, 220, 30023, 9863, 360, 40760, 31190, 289, 277, 304, 285, 4522, 37860, 312, 13, 201, 198, 201, 198, 220, 16876, 277, 3180 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
interface /HEC1/IF_BOPF_CONFIG_MODEL public . interfaces /HEC1/IF_BOPF_CONFIG_MODEL_ACT . interfaces /HEC1/IF_BOPF_CONFIG_MODEL_GE . interfaces /HEC1/IF_BOPF_CONFIG_MODEL_GET . interfaces /HEC1/IF_BOPF_CONFIG_MODEL_SE . interfaces /HEC1/IF_BOPF_CONFIG_MODEL_SET . methods CREATE_NEW_CONFIG . methods COMPARE_CHANGES importing !IV_NO_API_QUEUE type BOOLE_D optional returning value(RS_CONFIG_CHANGES) type /HEC1/S_BOPF_CONFIG_CHANGES . methods SAVE returning value(RV_SUCCESS) type BOOLE_D . methods SAVE_NEW_VERSION importing !IS_CONFIG type /HEC1/S_CONFIG_ROOT_CS exporting !EV_NEW_HEC_CONF_VERSION type /HEC1/CONFIG_VERSION returning value(RV_SUCCESS) type BOOLE_D . methods SET_ROOT_KEY importing !IS_ROOT_KEY type /HEC1/S_KEY_ROOT . methods SET_LOCK_MODE importing !IV_LOCK_MODE type /BOBF/CONF_EDIT_MODE . methods SET_CREATE_NEW_VERSION importing !IV_CREATE_NEW_VERSION type BOOLE_D . endinterface.
[ 39994, 1220, 39, 2943, 16, 14, 5064, 62, 33, 3185, 37, 62, 10943, 16254, 62, 33365, 3698, 198, 220, 1171, 764, 628, 198, 220, 20314, 1220, 39, 2943, 16, 14, 5064, 62, 33, 3185, 37, 62, 10943, 16254, 62, 33365, 3698, 62, 10659, 764, 198, 220, 20314, 1220, 39, 2943, 16, 14, 5064, 62, 33, 3185, 37, 62, 10943, 16254, 62, 33365, 3698, 62, 8264, 764, 198, 220, 20314, 1220, 39, 2943, 16, 14, 5064, 62, 33, 3185, 37, 62, 10943, 16254, 62, 33365, 3698, 62, 18851, 764, 198, 220, 20314, 1220, 39, 2943, 16, 14, 5064, 62, 33, 3185, 37, 62, 10943, 16254, 62, 33365, 3698, 62, 5188, 764, 198, 220, 20314, 1220, 39, 2943, 16, 14, 5064, 62, 33, 3185, 37, 62, 10943, 16254, 62, 33365, 3698, 62, 28480, 764, 628, 220, 5050, 29244, 6158, 62, 13965, 62, 10943, 16254, 764, 198, 220, 5050, 24301, 12203, 62, 3398, 15567, 1546, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 15285, 62, 17614, 62, 48, 8924, 8924, 2099, 347, 6684, 2538, 62, 35, 11902, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 6998, 62, 10943, 16254, 62, 3398, 15567, 1546, 8, 2099, 1220, 39, 2943, 16, 14, 50, 62, 33, 3185, 37, 62, 10943, 16254, 62, 3398, 15567, 1546, 764, 198, 220, 5050, 14719, 6089, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 12564, 4093, 7597, 8, 2099, 347, 6684, 2538, 62, 35, 764, 198, 220, 5050, 14719, 6089, 62, 13965, 62, 43717, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 10943, 16254, 2099, 1220, 39, 2943, 16, 14, 50, 62, 10943, 16254, 62, 13252, 2394, 62, 7902, 198, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 5145, 20114, 62, 13965, 62, 39, 2943, 62, 10943, 37, 62, 43717, 2099, 1220, 39, 2943, 16, 14, 10943, 16254, 62, 43717, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 12564, 4093, 7597, 8, 2099, 347, 6684, 2538, 62, 35, 764, 198, 220, 5050, 25823, 62, 13252, 2394, 62, 20373, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 13252, 2394, 62, 20373, 2099, 1220, 39, 2943, 16, 14, 50, 62, 20373, 62, 13252, 2394, 764, 198, 220, 5050, 25823, 62, 36840, 62, 49058, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 36840, 62, 49058, 2099, 1220, 8202, 29499, 14, 10943, 37, 62, 24706, 62, 49058, 764, 198, 220, 5050, 25823, 62, 43387, 6158, 62, 13965, 62, 43717, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 43387, 6158, 62, 13965, 62, 43717, 2099, 347, 6684, 2538, 62, 35, 764, 198, 437, 39994, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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! Converts <strong>ABAP Date/Time</strong> values with optional UTC offset to <strong>RFC 3339 "! compliant Date/Time</strong> values. "! </p> "! "! <p> "! See RFC 3339 at https://tools.ietf.org/html/rfc3339 "! </p> "! "! <p> "! Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. "! <br> "! This file is licensed under the SAP SAMPLE CODE LICENSE AGREEMENT except as noted otherwise in "! the LICENSE FILE "! (https://github.com/SAP-samples/abap-alv-google-upload-sheet/blob/master/LICENSES/Apache-2.0.txt). "! <br> "! <br> "! Note that the sample code includes calls to the Google Drive APIs which calls are licensed under "! the Creative Commons Attribution 3.0 License (https://creativecommons.org/licenses/by/3.0/) in "! accordance with Google's Developer Site Policies "! (https://developers.google.com/terms/site-policies). Furthermore, the use of the Google Drive "! service is subject to applicable agreements with Google Inc. "! </p> class zcl_googlepoc_rfc3339_datetime definition public create public final. public section. types: "! Type describing a <em>Date/Time</em> value. begin of date_time, "! The date part. date type d, "! The time part. time type t, "! The time difference from the UTC reference time in minutes, e.g. -90 for a local to UTC "! difference of -1:30 hours. local_to_utc_difference type i, end of date_time. "! Converts the given <strong>ABAP Date/Time</strong> to an <strong>RFC 3339 Date/Time</strong> "! value. "! "! @parameter input | The input <strong>ABAP Date/Time</strong> value. "! @parameter result | The output <strong>RFC 3339 Date/Time</strong> value. methods convert importing input type date_time returning value(result) type string. private section. "! The number of minutes in one hour. constants minutes_per_hour type i value 60. endclass. class zcl_googlepoc_rfc3339_datetime implementation. method convert. data hours type string. data minutes type string. result = |{ input-date(4) }-{ input-date+4(2) }-{ input-date+6(2) }| ##NO_TEXT. if input-time is not initial. result = result && |T{ input-time(2) }:{ input-time+2(2) }:{ input-time+4(2) }| ##NO_TEXT. if input-local_to_utc_difference is initial. result = result && `Z` ##NO_TEXT. else. hours = |{ abs( input-local_to_utc_difference div minutes_per_hour ) }|. minutes = |{ abs( input-local_to_utc_difference mod minutes_per_hour ) }|. if input-local_to_utc_difference < 0. result = result && |-{ hours alpha = in width = 2 }:{ minutes alpha = in width = 2 }| ##NO_TEXT. else. result = result && |+{ hours alpha = in width = 2 }:{ minutes alpha = in width = 2 }| ##NO_TEXT. endif. endif. endif. endmethod. endclass.
[ 40484, 1279, 79, 29, 198, 40484, 1482, 24040, 1279, 11576, 29, 6242, 2969, 7536, 14, 7575, 3556, 11576, 29, 3815, 351, 11902, 18119, 11677, 284, 1279, 11576, 29, 41150, 23460, 24, 198, 40484, 31332, 7536, 14, 7575, 3556, 11576, 29, 3815, 13, 198, 40484, 7359, 79, 29, 198, 40484, 198, 40484, 1279, 79, 29, 198, 40484, 4091, 30978, 23460, 24, 379, 3740, 1378, 31391, 13, 1155, 69, 13, 2398, 14, 6494, 14, 81, 16072, 2091, 2670, 198, 40484, 7359, 79, 29, 198, 40484, 198, 40484, 1279, 79, 29, 198, 40484, 15069, 357, 66, 8, 33448, 48323, 7946, 393, 281, 48323, 17375, 1664, 13, 1439, 2489, 10395, 13, 198, 40484, 1279, 1671, 29, 198, 40484, 770, 2393, 318, 11971, 739, 262, 48323, 28844, 16437, 42714, 38559, 24290, 13077, 2200, 12529, 2845, 355, 4367, 4306, 287, 198, 40484, 262, 38559, 24290, 45811, 198, 40484, 357, 5450, 1378, 12567, 13, 785, 14, 50, 2969, 12, 82, 12629, 14, 397, 499, 12, 282, 85, 12, 13297, 12, 25850, 12, 21760, 14, 2436, 672, 14, 9866, 14, 43, 2149, 16938, 1546, 14, 25189, 4891, 12, 17, 13, 15, 13, 14116, 737, 198, 40484, 1279, 1671, 29, 198, 40484, 1279, 1671, 29, 198, 40484, 5740, 326, 262, 6291, 2438, 3407, 3848, 284, 262, 3012, 9974, 23113, 543, 3848, 389, 11971, 739, 198, 40484, 262, 17404, 13815, 45336, 513, 13, 15, 13789, 357, 5450, 1378, 20123, 425, 9503, 684, 13, 2398, 14, 677, 4541, 14, 1525, 14, 18, 13, 15, 34729, 287, 198, 40484, 10213, 351, 3012, 338, 23836, 14413, 42283, 198, 40484, 357, 5450, 1378, 16244, 364, 13, 13297, 13, 785, 14, 38707, 14, 15654, 12, 79, 4160, 444, 737, 11399, 11, 262, 779, 286, 262, 3012, 9974, 198, 40484, 2139, 318, 2426, 284, 9723, 11704, 351, 3012, 3457, 13, 198, 40484, 7359, 79, 29, 198, 4871, 1976, 565, 62, 13297, 79, 420, 62, 81, 16072, 2091, 2670, 62, 19608, 8079, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 198, 220, 2457, 13, 628, 198, 220, 1171, 2665, 13, 628, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 366, 0, 5994, 12059, 257, 1279, 368, 29, 10430, 14, 7575, 3556, 368, 29, 1988, 13, 198, 220, 220, 220, 220, 220, 2221, 286, 3128, 62, 2435, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 0, 383, 3128, 636, 13, 198, 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, 2099, 288, 11, 628, 220, 220, 220, 220, 220, 220, 220, 366, 0, 383, 640, 636, 13, 198, 220, 220, 220, 220, 220, 220, 220, 640, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 256, 11, 628, 220, 220, 220, 220, 220, 220, 220, 366, 0, 383, 640, 3580, 422, 262, 18119, 4941, 640, 287, 2431, 11, 304, 13, 70, 13, 532, 3829, 329, 257, 1957, 284, 18119, 198, 220, 220, 220, 220, 220, 220, 220, 366, 0, 3580, 286, 532, 16, 25, 1270, 2250, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1957, 62, 1462, 62, 315, 66, 62, 26069, 1945, 2099, 1312, 11, 198, 220, 220, 220, 220, 220, 886, 286, 3128, 62, 2435, 13, 628, 220, 220, 220, 366, 0, 1482, 24040, 262, 1813, 1279, 11576, 29, 6242, 2969, 7536, 14, 7575, 3556, 11576, 29, 284, 281, 1279, 11576, 29, 41150, 23460, 24, 7536, 14, 7575, 3556, 11576, 29, 198, 220, 220, 220, 366, 0, 1988, 13, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 5128, 930, 383, 5128, 1279, 11576, 29, 6242, 2969, 7536, 14, 7575, 3556, 11576, 29, 1988, 13, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 1255, 930, 383, 5072, 1279, 11576, 29, 41150, 23460, 24, 7536, 14, 7575, 3556, 11576, 29, 1988, 13, 198, 220, 220, 220, 5050, 10385, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5128, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 3128, 62, 2435, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 20274, 8, 2099, 4731, 13, 628, 198, 220, 2839, 2665, 13, 628, 220, 220, 220, 366, 0, 383, 1271, 286, 2431, 287, 530, 1711, 13, 198, 220, 220, 220, 38491, 2431, 62, 525, 62, 9769, 2099, 1312, 1988, 3126, 13, 628, 198, 437, 4871, 13, 628, 198, 4871, 1976, 565, 62, 13297, 79, 420, 62, 81, 16072, 2091, 2670, 62, 19608, 8079, 7822, 13, 628, 198, 220, 2446, 10385, 13, 198, 220, 220, 220, 1366, 2250, 2099, 4731, 13, 198, 220, 220, 220, 1366, 2431, 2099, 4731, 13, 628, 220, 220, 220, 1255, 796, 930, 90, 5128, 12, 4475, 7, 19, 8, 1782, 12, 90, 5128, 12, 4475, 10, 19, 7, 17, 8, 1782, 12, 90, 5128, 12, 4475, 10, 21, 7, 17, 8, 1782, 91, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 611, 5128, 12, 2435, 318, 407, 4238, 13, 198, 220, 220, 220, 220, 220, 1255, 796, 1255, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11405, 930, 51, 90, 5128, 12, 2435, 7, 17, 8, 1782, 29164, 5128, 12, 2435, 10, 17, 7, 17, 8, 1782, 29164, 5128, 12, 2435, 10, 19, 7, 17, 8, 1782, 91, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 220, 220, 611, 5128, 12, 12001, 62, 1462, 62, 315, 66, 62, 26069, 1945, 318, 4238, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1255, 796, 1255, 11405, 4600, 57, 63, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 220, 220, 2073, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2250, 796, 930, 90, 2352, 7, 5128, 12, 12001, 62, 1462, 62, 315, 66, 62, 26069, 1945, 2659, 2431, 62, 525, 62, 9769, 1267, 1782, 91, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2431, 796, 930, 90, 2352, 7, 5128, 12, 12001, 62, 1462, 62, 315, 66, 62, 26069, 1945, 953, 2431, 62, 525, 62, 9769, 1267, 1782, 91, 13, 628, 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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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_auth PUBLIC. TYPES: ty_authorization TYPE string. CONSTANTS: BEGIN OF c_authorization, uninstall TYPE ty_authorization VALUE 'UNINSTALL', create_repo TYPE ty_authorization VALUE 'CREATE_REPO', transport_to_branch TYPE ty_authorization VALUE 'TRANSPORT_TO_BRANCH', update_local_checksum TYPE ty_authorization VALUE 'UPDATE_LOCAL_CHECKSUM', END OF c_authorization. METHODS: is_allowed IMPORTING iv_authorization TYPE ty_authorization iv_param TYPE string OPTIONAL RETURNING VALUE(rv_allowed) TYPE abap_bool. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 18439, 44731, 13, 628, 220, 24412, 47, 1546, 25, 1259, 62, 9800, 1634, 41876, 4731, 13, 628, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 269, 62, 9800, 1634, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43194, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 9800, 1634, 26173, 8924, 705, 4944, 38604, 7036, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2251, 62, 260, 7501, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 9800, 1634, 26173, 8924, 705, 43387, 6158, 62, 2200, 16402, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4839, 62, 1462, 62, 1671, 3702, 220, 220, 41876, 1259, 62, 9800, 1634, 26173, 8924, 705, 5446, 1565, 4303, 9863, 62, 10468, 62, 11473, 1565, 3398, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 12001, 62, 42116, 388, 41876, 1259, 62, 9800, 1634, 26173, 8924, 705, 16977, 62, 29701, 1847, 62, 50084, 50, 5883, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 9800, 1634, 13, 628, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 318, 62, 40845, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 9800, 1634, 220, 41876, 1259, 62, 9800, 1634, 198, 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, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 40845, 8, 41876, 450, 499, 62, 30388, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_objects_program DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super. PUBLIC SECTION. TYPES: BEGIN OF ty_progdir, name TYPE progdir-name, state TYPE progdir-state, sqlx TYPE progdir-sqlx, edtx TYPE progdir-edtx, varcl TYPE progdir-varcl, dbapl TYPE progdir-dbapl, dbna TYPE progdir-dbna, clas TYPE progdir-clas, type TYPE progdir-type, occurs TYPE progdir-occurs, subc TYPE progdir-subc, appl TYPE progdir-appl, secu TYPE progdir-secu, cnam TYPE progdir-cnam, cdat TYPE progdir-cdat, unam TYPE progdir-unam, udat TYPE progdir-udat, vern TYPE progdir-vern, levl TYPE progdir-levl, rstat TYPE progdir-rstat, rmand TYPE progdir-rmand, rload TYPE progdir-rload, fixpt TYPE progdir-fixpt, sset TYPE progdir-sset, sdate TYPE progdir-sdate, stime TYPE progdir-stime, idate TYPE progdir-idate, itime TYPE progdir-itime, ldbname TYPE progdir-ldbname, uccheck TYPE progdir-uccheck, END OF ty_progdir. METHODS serialize_program IMPORTING io_xml TYPE REF TO zif_abapgit_xml_output OPTIONAL is_item TYPE zif_abapgit_definitions=>ty_item io_files TYPE REF TO zcl_abapgit_objects_files iv_program TYPE programm OPTIONAL iv_extra TYPE clike OPTIONAL RAISING zcx_abapgit_exception. METHODS read_progdir IMPORTING iv_program TYPE programm RETURNING VALUE(rs_progdir) TYPE ty_progdir. METHODS deserialize_program IMPORTING is_progdir TYPE ty_progdir it_source TYPE abaptxt255_tab it_tpool TYPE textpool_table iv_package TYPE devclass RAISING zcx_abapgit_exception. PROTECTED SECTION. TYPES: ty_spaces_tt TYPE STANDARD TABLE OF i WITH DEFAULT KEY . TYPES: BEGIN OF ty_dynpro, header TYPE rpy_dyhead, containers TYPE dycatt_tab, fields TYPE dyfatc_tab, flow_logic TYPE swydyflow, spaces TYPE ty_spaces_tt, END OF ty_dynpro . TYPES: ty_dynpro_tt TYPE STANDARD TABLE OF ty_dynpro WITH DEFAULT KEY . TYPES: BEGIN OF ty_cua, adm TYPE rsmpe_adm, sta TYPE STANDARD TABLE OF rsmpe_stat WITH DEFAULT KEY, fun TYPE STANDARD TABLE OF rsmpe_funt WITH DEFAULT KEY, men TYPE STANDARD TABLE OF rsmpe_men WITH DEFAULT KEY, mtx TYPE STANDARD TABLE OF rsmpe_mnlt WITH DEFAULT KEY, act TYPE STANDARD TABLE OF rsmpe_act WITH DEFAULT KEY, but TYPE STANDARD TABLE OF rsmpe_but WITH DEFAULT KEY, pfk TYPE STANDARD TABLE OF rsmpe_pfk WITH DEFAULT KEY, set TYPE STANDARD TABLE OF rsmpe_staf WITH DEFAULT KEY, doc TYPE STANDARD TABLE OF rsmpe_atrt WITH DEFAULT KEY, tit TYPE STANDARD TABLE OF rsmpe_titt WITH DEFAULT KEY, biv TYPE STANDARD TABLE OF rsmpe_buts WITH DEFAULT KEY, END OF ty_cua . METHODS strip_generation_comments CHANGING ct_source TYPE abaptxt255_tab. METHODS serialize_dynpros IMPORTING !iv_program_name TYPE programm RETURNING VALUE(rt_dynpro) TYPE ty_dynpro_tt RAISING zcx_abapgit_exception . METHODS serialize_cua IMPORTING !iv_program_name TYPE programm RETURNING VALUE(rs_cua) TYPE ty_cua RAISING zcx_abapgit_exception . METHODS deserialize_dynpros IMPORTING !it_dynpros TYPE ty_dynpro_tt RAISING zcx_abapgit_exception . METHODS deserialize_textpool IMPORTING !iv_program TYPE programm !it_tpool TYPE textpool_table !iv_language TYPE sy-langu OPTIONAL !iv_is_include TYPE abap_bool DEFAULT abap_false RAISING zcx_abapgit_exception . METHODS deserialize_cua IMPORTING !iv_program_name TYPE programm !is_cua TYPE ty_cua RAISING zcx_abapgit_exception . METHODS is_any_dynpro_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_any_dynpro_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_cua_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_cua_locked) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS is_text_locked IMPORTING !iv_program TYPE programm RETURNING VALUE(rv_is_text_locked) TYPE abap_bool RAISING zcx_abapgit_exception . CLASS-METHODS add_tpool IMPORTING !it_tpool TYPE textpool_table RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt . CLASS-METHODS read_tpool IMPORTING !it_tpool TYPE zif_abapgit_definitions=>ty_tpool_tt RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt . PRIVATE SECTION. METHODS: uncondense_flow IMPORTING it_flow TYPE swydyflow it_spaces TYPE ty_spaces_tt RETURNING VALUE(rt_flow) TYPE swydyflow. CLASS-METHODS auto_correct_cua_adm IMPORTING is_cua TYPE ty_cua CHANGING cs_adm TYPE rsmpe_adm. METHODS get_program_title IMPORTING !it_tpool TYPE textpool_table RETURNING VALUE(rv_title) TYPE repti . METHODS insert_program IMPORTING !is_progdir TYPE ty_progdir !it_source TYPE abaptxt255_tab !iv_title TYPE repti !iv_package TYPE devclass RAISING zcx_abapgit_exception . METHODS update_program IMPORTING !is_progdir TYPE ty_progdir !it_source TYPE abaptxt255_tab !iv_title TYPE repti RAISING zcx_abapgit_exception . METHODS update_progdir IMPORTING !is_progdir TYPE ty_progdir RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_objects_program IMPLEMENTATION. METHOD add_tpool. FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool, <ls_tpool_out> LIKE LINE OF rt_tpool. LOOP AT it_tpool ASSIGNING <ls_tpool_in>. APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>. MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>. IF <ls_tpool_out>-id = 'S'. <ls_tpool_out>-split = <ls_tpool_out>-entry. <ls_tpool_out>-entry = <ls_tpool_out>-entry+8. ENDIF. ENDLOOP. ENDMETHOD. METHOD auto_correct_cua_adm. " issue #1807 automatic correction of CUA interfaces saved incorrectly in the past (ADM was not saved in the XML) CONSTANTS: lc_num_n_space TYPE string VALUE ' 0123456789', lc_num_only TYPE string VALUE '0123456789'. FIELD-SYMBOLS: <ls_pfk> TYPE rsmpe_pfk, <ls_act> TYPE rsmpe_act, <ls_men> TYPE rsmpe_men. IF cs_adm IS NOT INITIAL AND cs_adm-actcode CO lc_num_n_space AND cs_adm-mencode CO lc_num_n_space AND cs_adm-pfkcode CO lc_num_n_space. "Check performed in form check_adm of include LSMPIF03 RETURN. ENDIF. LOOP AT is_cua-act ASSIGNING <ls_act>. IF <ls_act>-code+6(14) IS INITIAL AND <ls_act>-code(6) CO lc_num_only. cs_adm-actcode = <ls_act>-code. ENDIF. ENDLOOP. LOOP AT is_cua-men ASSIGNING <ls_men>. IF <ls_men>-code+6(14) IS INITIAL AND <ls_men>-code(6) CO lc_num_only. cs_adm-mencode = <ls_men>-code. ENDIF. ENDLOOP. LOOP AT is_cua-pfk ASSIGNING <ls_pfk>. IF <ls_pfk>-code+6(14) IS INITIAL AND <ls_pfk>-code(6) CO lc_num_only. cs_adm-pfkcode = <ls_pfk>-code. ENDIF. ENDLOOP. ENDMETHOD. METHOD deserialize_cua. DATA: ls_tr_key TYPE trkey, ls_adm TYPE rsmpe_adm. IF lines( is_cua-sta ) = 0 AND lines( is_cua-fun ) = 0 AND lines( is_cua-men ) = 0 AND lines( is_cua-mtx ) = 0 AND lines( is_cua-act ) = 0 AND lines( is_cua-but ) = 0 AND lines( is_cua-pfk ) = 0 AND lines( is_cua-set ) = 0 AND lines( is_cua-doc ) = 0 AND lines( is_cua-tit ) = 0 AND lines( is_cua-biv ) = 0. RETURN. ENDIF. SELECT SINGLE devclass INTO ls_tr_key-devclass FROM tadir WHERE pgmid = 'R3TR' AND object = ms_item-obj_type AND obj_name = ms_item-obj_name. "#EC CI_GENBUFF IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'not found in tadir' ). ENDIF. ls_tr_key-obj_type = ms_item-obj_type. ls_tr_key-obj_name = ms_item-obj_name. ls_tr_key-sub_type = 'CUAD'. ls_tr_key-sub_name = iv_program_name. ls_adm = is_cua-adm. auto_correct_cua_adm( EXPORTING is_cua = is_cua CHANGING cs_adm = ls_adm ). sy-tcode = 'SE41' ##write_ok. " evil hack, workaround to handle fixes in note 2159455 CALL FUNCTION 'RS_CUA_INTERNAL_WRITE' EXPORTING program = iv_program_name language = mv_language tr_key = ls_tr_key adm = ls_adm state = 'I' TABLES sta = is_cua-sta fun = is_cua-fun men = is_cua-men mtx = is_cua-mtx act = is_cua-act but = is_cua-but pfk = is_cua-pfk set = is_cua-set doc = is_cua-doc tit = is_cua-tit biv = is_cua-biv EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc <> 0. * if moving code from SAPlink, see https://github.com/abapGit/abapGit/issues/562 zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_objects_activation=>add( iv_type = 'CUAD' iv_name = iv_program_name ). ENDMETHOD. METHOD deserialize_dynpros. CONSTANTS lc_rpyty_force_off TYPE c LENGTH 1 VALUE '/'. DATA: lv_name TYPE dwinactiv-obj_name, lt_d020s_to_delete TYPE TABLE OF d020s, ls_d020s LIKE LINE OF lt_d020s_to_delete, ls_dynpro LIKE LINE OF it_dynpros. FIELD-SYMBOLS: <ls_field> TYPE rpy_dyfatc. " Delete DYNPROs which are not in the list CALL FUNCTION 'RS_SCREEN_LIST' EXPORTING dynnr = '' progname = ms_item-obj_name TABLES dynpros = lt_d020s_to_delete EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc = 2. zcx_abapgit_exception=>raise_t100( ). ENDIF. SORT lt_d020s_to_delete BY dnum ASCENDING. * ls_dynpro is changed by the function module, a field-symbol will cause * the program to dump since it_dynpros cannot be changed LOOP AT it_dynpros INTO ls_dynpro. READ TABLE lt_d020s_to_delete WITH KEY dnum = ls_dynpro-header-screen TRANSPORTING NO FIELDS BINARY SEARCH. IF sy-subrc = 0. DELETE lt_d020s_to_delete INDEX sy-tabix. ENDIF. " todo: kept for compatibility, remove after grace period #3680 ls_dynpro-flow_logic = uncondense_flow( it_flow = ls_dynpro-flow_logic it_spaces = ls_dynpro-spaces ). LOOP AT ls_dynpro-fields ASSIGNING <ls_field>. * if the DDIC element has a PARAMETER_ID and the flag "from_dict" is active * the import will enable the SET-/GET_PARAM flag. In this case: "force off" IF <ls_field>-param_id IS NOT INITIAL AND <ls_field>-from_dict = abap_true. IF <ls_field>-set_param IS INITIAL. <ls_field>-set_param = lc_rpyty_force_off. ENDIF. IF <ls_field>-get_param IS INITIAL. <ls_field>-get_param = lc_rpyty_force_off. ENDIF. ENDIF. * If the previous conditions are met the value 'F' will be taken over * during de-serialization potentially overlapping other fields in the screen, * we set the tag to the correct value 'X' IF <ls_field>-type = 'CHECK' AND <ls_field>-from_dict = abap_true AND <ls_field>-text IS INITIAL AND <ls_field>-modific IS INITIAL. <ls_field>-modific = 'X'. ENDIF. "fix for issue #2747: IF <ls_field>-foreignkey IS INITIAL. <ls_field>-foreignkey = lc_rpyty_force_off. ENDIF. ENDLOOP. CALL FUNCTION 'RPY_DYNPRO_INSERT' EXPORTING header = ls_dynpro-header suppress_exist_checks = abap_true TABLES containers = ls_dynpro-containers fields_to_containers = ls_dynpro-fields flow_logic = ls_dynpro-flow_logic EXCEPTIONS cancelled = 1 already_exists = 2 program_not_exists = 3 not_executed = 4 missing_required_field = 5 illegal_field_value = 6 field_not_allowed = 7 not_generated = 8 illegal_field_position = 9 OTHERS = 10. IF sy-subrc <> 2 AND sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. * todo, RPY_DYNPRO_UPDATE? CONCATENATE ls_dynpro-header-program ls_dynpro-header-screen INTO lv_name RESPECTING BLANKS. ASSERT NOT lv_name IS INITIAL. zcl_abapgit_objects_activation=>add( iv_type = 'DYNP' iv_name = lv_name ). ENDLOOP. " Delete obsolete screens LOOP AT lt_d020s_to_delete INTO ls_d020s. CALL FUNCTION 'RS_SCRP_DELETE' EXPORTING dynnr = ls_d020s-dnum progname = ms_item-obj_name with_popup = abap_false EXCEPTIONS enqueued_by_user = 1 enqueue_system_failure = 2 not_executed = 3 not_exists = 4 no_modify_permission = 5 popup_canceled = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDLOOP. ENDMETHOD. METHOD deserialize_program. DATA: lv_progname TYPE reposrc-progname, lv_title TYPE rglif-title. CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = is_progdir-name object_class = 'ABAP' devclass = iv_package master_language = mv_language mode = 'I' suppress_dialog = abap_true EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. lv_title = get_program_title( it_tpool ). " Check if program already exists SELECT SINGLE progname FROM reposrc INTO lv_progname WHERE progname = is_progdir-name AND r3state = 'A'. IF sy-subrc = 0. update_program( is_progdir = is_progdir it_source = it_source iv_title = lv_title ). ELSE. insert_program( is_progdir = is_progdir it_source = it_source iv_title = lv_title iv_package = iv_package ). ENDIF. update_progdir( is_progdir ). zcl_abapgit_objects_activation=>add( iv_type = 'REPS' iv_name = is_progdir-name ). ENDMETHOD. METHOD deserialize_textpool. DATA lv_language TYPE sy-langu. DATA lv_state TYPE c. DATA lv_delete TYPE abap_bool. IF iv_language IS INITIAL. lv_language = mv_language. ELSE. lv_language = iv_language. ENDIF. IF lv_language = mv_language. lv_state = 'I'. "Textpool in main language needs to be activated ELSE. lv_state = 'A'. "Translations are always active ENDIF. IF it_tpool IS INITIAL. IF iv_is_include = abap_false OR lv_state = 'A'. DELETE TEXTPOOL iv_program "Remove initial description from textpool if LANGUAGE lv_language "original program does not have a textpool STATE lv_state. lv_delete = abap_true. ELSE. INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in FROM it_tpool "main language cannot be activated because LANGUAGE lv_language "this woul activate the deletion of the textpool STATE lv_state. "of the mail program -> insert empty textpool ENDIF. ELSE. IF lines( it_tpool ) = 1 AND lv_language = mv_language. READ TABLE it_tpool WITH KEY id = 'R' TRANSPORTING NO FIELDS. IF sy-subrc = 0. RETURN. "No action because description in main language is already there ENDIF. ENDIF. INSERT TEXTPOOL iv_program FROM it_tpool LANGUAGE lv_language STATE lv_state. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ). ENDIF. ENDIF. IF lv_state = 'I'. "Textpool in main language needs to be activated zcl_abapgit_objects_activation=>add( iv_type = 'REPT' iv_name = iv_program iv_delete = lv_delete ). ENDIF. ENDMETHOD. METHOD get_program_title. DATA ls_tpool LIKE LINE OF it_tpool. FIELD-SYMBOLS <lg_any> TYPE any. READ TABLE it_tpool INTO ls_tpool WITH KEY id = 'R'. IF sy-subrc = 0. " there is a bug in RPY_PROGRAM_UPDATE, the header line of TTAB is not " cleared, so the title length might be inherited from a different program. ASSIGN ('(SAPLSIFP)TTAB') TO <lg_any>. IF sy-subrc = 0. CLEAR <lg_any>. ENDIF. rv_title = ls_tpool-entry. ENDIF. ENDMETHOD. METHOD insert_program. CALL FUNCTION 'RPY_PROGRAM_INSERT' EXPORTING development_class = iv_package program_name = is_progdir-name program_type = is_progdir-subc title_string = iv_title save_inactive = 'I' suppress_dialog = abap_true TABLES source_extended = it_source EXCEPTIONS already_exists = 1 cancelled = 2 name_not_allowed = 3 permission_error = 4 OTHERS = 5. IF sy-subrc = 3. " For cases that standard function does not handle (like FUGR), " we save active and inactive version of source with the given PROGRAM TYPE. " Without the active version, the code will not be visible in case of activation errors. INSERT REPORT is_progdir-name FROM it_source STATE 'A' PROGRAM TYPE is_progdir-subc. INSERT REPORT is_progdir-name FROM it_source STATE 'I' PROGRAM TYPE is_progdir-subc. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error from INSERT REPORT .. PROGRAM TYPE' ). ENDIF. ELSEIF sy-subrc > 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD is_any_dynpro_locked. DATA: lt_dynpros TYPE ty_dynpro_tt, lv_object TYPE seqg3-garg. FIELD-SYMBOLS: <ls_dynpro> TYPE ty_dynpro. lt_dynpros = serialize_dynpros( iv_program ). LOOP AT lt_dynpros ASSIGNING <ls_dynpro>. lv_object = |{ <ls_dynpro>-header-screen }{ <ls_dynpro>-header-program }|. IF exists_a_lock_entry_for( iv_lock_object = 'ESCRP' iv_argument = lv_object ) = abap_true. rv_is_any_dynpro_locked = abap_true. EXIT. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_cua_locked. DATA: lv_object TYPE eqegraarg. lv_object = |CU{ iv_program }|. OVERLAY lv_object WITH ' '. lv_object = lv_object && '*'. rv_is_cua_locked = exists_a_lock_entry_for( iv_lock_object = 'ESCUAPAINT' iv_argument = lv_object ). ENDMETHOD. METHOD is_text_locked. DATA: lv_object TYPE eqegraarg. lv_object = |*{ iv_program }|. rv_is_text_locked = exists_a_lock_entry_for( iv_lock_object = 'EABAPTEXTE' iv_argument = lv_object ). ENDMETHOD. METHOD read_progdir. DATA: ls_sapdir TYPE progdir. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = iv_program i_state = 'A' IMPORTING e_progdir = ls_sapdir. MOVE-CORRESPONDING ls_sapdir TO rs_progdir. CLEAR: rs_progdir-edtx, rs_progdir-cnam, rs_progdir-cdat, rs_progdir-unam, rs_progdir-udat, rs_progdir-levl, rs_progdir-vern, rs_progdir-rmand, rs_progdir-sdate, rs_progdir-stime, rs_progdir-idate, rs_progdir-itime, rs_progdir-varcl, rs_progdir-state. ENDMETHOD. METHOD read_tpool. FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool, <ls_tpool_out> LIKE LINE OF rt_tpool. LOOP AT it_tpool ASSIGNING <ls_tpool_in>. APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>. MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>. IF <ls_tpool_out>-id = 'S'. CONCATENATE <ls_tpool_in>-split <ls_tpool_in>-entry INTO <ls_tpool_out>-entry RESPECTING BLANKS. ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_cua. CALL FUNCTION 'RS_CUA_INTERNAL_FETCH' EXPORTING program = iv_program_name language = mv_language state = 'A' IMPORTING adm = rs_cua-adm TABLES sta = rs_cua-sta fun = rs_cua-fun men = rs_cua-men mtx = rs_cua-mtx act = rs_cua-act but = rs_cua-but pfk = rs_cua-pfk set = rs_cua-set doc = rs_cua-doc tit = rs_cua-tit biv = rs_cua-biv EXCEPTIONS not_found = 1 unknown_version = 2 OTHERS = 3. IF sy-subrc > 1. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD serialize_dynpros. DATA: ls_header TYPE rpy_dyhead, lt_containers TYPE dycatt_tab, lt_fields_to_containers TYPE dyfatc_tab, lt_flow_logic TYPE swydyflow, lt_d020s TYPE TABLE OF d020s, lt_fieldlist_int TYPE TABLE OF d021s. "internal format FIELD-SYMBOLS: <ls_d020s> LIKE LINE OF lt_d020s, <lv_outputstyle> TYPE scrpostyle, <ls_container> LIKE LINE OF lt_containers, <ls_field> LIKE LINE OF lt_fields_to_containers, <ls_dynpro> LIKE LINE OF rt_dynpro, <ls_field_int> LIKE LINE OF lt_fieldlist_int. "#2746: relevant flag values (taken from include MSEUSBIT) CONSTANTS: lc_flg1ddf TYPE x VALUE '20', lc_flg3fku TYPE x VALUE '08', lc_flg3for TYPE x VALUE '04', lc_flg3fdu TYPE x VALUE '02'. CALL FUNCTION 'RS_SCREEN_LIST' EXPORTING dynnr = '' progname = iv_program_name TABLES dynpros = lt_d020s EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc = 2. zcx_abapgit_exception=>raise_t100( ). ENDIF. SORT lt_d020s BY dnum ASCENDING. * loop dynpros and skip generated selection screens LOOP AT lt_d020s ASSIGNING <ls_d020s> WHERE type <> 'S' AND type <> 'W' AND type <> 'J' AND NOT dnum IS INITIAL. CALL FUNCTION 'RPY_DYNPRO_READ' EXPORTING progname = iv_program_name dynnr = <ls_d020s>-dnum IMPORTING header = ls_header TABLES containers = lt_containers fields_to_containers = lt_fields_to_containers flow_logic = lt_flow_logic EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. "#2746: we need the dynpro fields in internal format: FREE lt_fieldlist_int. CALL FUNCTION 'RPY_DYNPRO_READ_NATIVE' EXPORTING progname = iv_program_name dynnr = <ls_d020s>-dnum TABLES fieldlist = lt_fieldlist_int. LOOP AT lt_fields_to_containers ASSIGNING <ls_field>. * output style is a NUMC field, the XML conversion will fail if it contains invalid value * field does not exist in all versions ASSIGN COMPONENT 'OUTPUTSTYLE' OF STRUCTURE <ls_field> TO <lv_outputstyle>. IF sy-subrc = 0 AND <lv_outputstyle> = ' '. CLEAR <lv_outputstyle>. ENDIF. "2746: we apply the same logic as in SAPLWBSCREEN "for setting or unsetting the foreignkey field: UNASSIGN <ls_field_int>. READ TABLE lt_fieldlist_int ASSIGNING <ls_field_int> WITH KEY fnam = <ls_field>-name. IF <ls_field_int> IS ASSIGNED. IF <ls_field_int>-flg1 O lc_flg1ddf AND <ls_field_int>-flg3 O lc_flg3for AND <ls_field_int>-flg3 Z lc_flg3fdu AND <ls_field_int>-flg3 Z lc_flg3fku. <ls_field>-foreignkey = 'X'. ELSE. CLEAR <ls_field>-foreignkey. ENDIF. ENDIF. IF <ls_field>-from_dict = abap_true AND <ls_field>-modific <> 'F' AND <ls_field>-modific <> 'X'. CLEAR <ls_field>-text. ENDIF. ENDLOOP. LOOP AT lt_containers ASSIGNING <ls_container>. IF <ls_container>-c_resize_v = abap_false. CLEAR <ls_container>-c_line_min. ENDIF. IF <ls_container>-c_resize_h = abap_false. CLEAR <ls_container>-c_coln_min. ENDIF. ENDLOOP. APPEND INITIAL LINE TO rt_dynpro ASSIGNING <ls_dynpro>. <ls_dynpro>-header = ls_header. <ls_dynpro>-containers = lt_containers. <ls_dynpro>-fields = lt_fields_to_containers. <ls_dynpro>-flow_logic = lt_flow_logic. ENDLOOP. ENDMETHOD. METHOD serialize_program. DATA: ls_progdir TYPE ty_progdir, lv_program_name TYPE programm, lt_dynpros TYPE ty_dynpro_tt, ls_cua TYPE ty_cua, lt_source TYPE TABLE OF abaptxt255, lt_tpool TYPE textpool_table, ls_tpool LIKE LINE OF lt_tpool, li_xml TYPE REF TO zif_abapgit_xml_output. IF iv_program IS INITIAL. lv_program_name = is_item-obj_name. ELSE. lv_program_name = iv_program. ENDIF. zcl_abapgit_language=>set_current_language( mv_language ). CALL FUNCTION 'RPY_PROGRAM_READ' EXPORTING program_name = lv_program_name with_includelist = abap_false with_lowercase = abap_true TABLES source_extended = lt_source textelements = lt_tpool EXCEPTIONS cancelled = 1 not_found = 2 permission_error = 3 OTHERS = 4. IF sy-subrc = 2. zcl_abapgit_language=>restore_login_language( ). RETURN. ELSEIF sy-subrc <> 0. zcl_abapgit_language=>restore_login_language( ). zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_language=>restore_login_language( ). ls_progdir = read_progdir( lv_program_name ). IF io_xml IS BOUND. li_xml = io_xml. ELSE. CREATE OBJECT li_xml TYPE zcl_abapgit_xml_output. ENDIF. li_xml->add( iv_name = 'PROGDIR' ig_data = ls_progdir ). IF ls_progdir-subc = '1' OR ls_progdir-subc = 'M'. lt_dynpros = serialize_dynpros( lv_program_name ). li_xml->add( iv_name = 'DYNPROS' ig_data = lt_dynpros ). ls_cua = serialize_cua( lv_program_name ). IF NOT ls_cua IS INITIAL. li_xml->add( iv_name = 'CUA' ig_data = ls_cua ). ENDIF. ENDIF. READ TABLE lt_tpool WITH KEY id = 'R' INTO ls_tpool. IF sy-subrc = 0 AND ls_tpool-key = '' AND ls_tpool-length = 0. DELETE lt_tpool INDEX sy-tabix. ENDIF. li_xml->add( iv_name = 'TPOOL' ig_data = add_tpool( lt_tpool ) ). IF NOT io_xml IS BOUND. io_files->add_xml( iv_extra = iv_extra ii_xml = li_xml ). ENDIF. strip_generation_comments( CHANGING ct_source = lt_source ). io_files->add_abap( iv_extra = iv_extra it_abap = lt_source ). ENDMETHOD. METHOD strip_generation_comments. FIELD-SYMBOLS <lv_line> LIKE LINE OF ct_source. IF ms_item-obj_type <> 'FUGR'. RETURN. ENDIF. IF lines( ct_source ) < 5. " Generation header length RETURN. ENDIF. READ TABLE ct_source INDEX 1 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#*---*'. RETURN. ENDIF. READ TABLE ct_source INDEX 2 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#**'. RETURN. ENDIF. READ TABLE ct_source INDEX 3 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#**generation date:*'. RETURN. ENDIF. READ TABLE ct_source INDEX 4 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#**generator version:*'. RETURN. ENDIF. READ TABLE ct_source INDEX 5 ASSIGNING <lv_line>. ASSERT sy-subrc = 0. IF NOT <lv_line> CP '#*---*'. RETURN. ENDIF. DELETE ct_source INDEX 4. DELETE ct_source INDEX 3. ENDMETHOD. METHOD uncondense_flow. DATA: lv_spaces LIKE LINE OF it_spaces. FIELD-SYMBOLS: <ls_flow> LIKE LINE OF it_flow, <ls_output> LIKE LINE OF rt_flow. LOOP AT it_flow ASSIGNING <ls_flow>. APPEND INITIAL LINE TO rt_flow ASSIGNING <ls_output>. <ls_output>-line = <ls_flow>-line. READ TABLE it_spaces INDEX sy-tabix INTO lv_spaces. IF sy-subrc = 0. SHIFT <ls_output>-line RIGHT BY lv_spaces PLACES IN CHARACTER MODE. ENDIF. ENDLOOP. ENDMETHOD. METHOD update_progdir. DATA ls_progdir_new TYPE progdir. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = is_progdir-name i_state = 'I' IMPORTING e_progdir = ls_progdir_new EXCEPTIONS not_exists = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error reading program directory' ). ENDIF. ls_progdir_new-ldbname = is_progdir-ldbname. ls_progdir_new-dbna = is_progdir-dbna. ls_progdir_new-dbapl = is_progdir-dbapl. ls_progdir_new-rload = is_progdir-rload. ls_progdir_new-fixpt = is_progdir-fixpt. ls_progdir_new-varcl = is_progdir-varcl. ls_progdir_new-appl = is_progdir-appl. ls_progdir_new-rstat = is_progdir-rstat. ls_progdir_new-sqlx = is_progdir-sqlx. ls_progdir_new-uccheck = is_progdir-uccheck. ls_progdir_new-clas = is_progdir-clas. CALL FUNCTION 'UPDATE_PROGDIR' EXPORTING i_progdir = ls_progdir_new i_progname = ls_progdir_new-name i_state = ls_progdir_new-state EXCEPTIONS not_executed = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Error updating program directory' ). ENDIF. " function UPDATE_PROGDIR does not update VARCL, so we do it here SELECT SINGLE * FROM progdir INTO ls_progdir_new WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. IF sy-subrc = 0 AND is_progdir-varcl <> ls_progdir_new-varcl. UPDATE progdir SET varcl = is_progdir-varcl WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. "#EC CI_SUBRC ENDIF. ENDMETHOD. METHOD update_program. zcl_abapgit_language=>set_current_language( mv_language ). CALL FUNCTION 'RPY_PROGRAM_UPDATE' EXPORTING program_name = is_progdir-name title_string = iv_title save_inactive = 'I' TABLES source_extended = it_source EXCEPTIONS cancelled = 1 permission_error = 2 not_found = 3 OTHERS = 4. IF sy-subrc <> 0. zcl_abapgit_language=>restore_login_language( ). IF sy-msgid = 'EU' AND sy-msgno = '510'. zcx_abapgit_exception=>raise( 'User is currently editing program' ). ELSEIF sy-msgid = 'EU' AND sy-msgno = '522'. " for generated table maintenance function groups, the author is set to SAP* instead of the user which " generates the function group. This hits some standard checks, pulling new code again sets the author " to the current user which avoids the check zcx_abapgit_exception=>raise( |Delete function group and pull again, { is_progdir-name } (EU522)| ). ELSE. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. zcl_abapgit_language=>restore_login_language( ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 23065, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 1676, 70, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 41876, 1172, 15908, 12, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1181, 220, 220, 41876, 1172, 15908, 12, 5219, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 44161, 87, 220, 220, 220, 41876, 1172, 15908, 12, 25410, 87, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1225, 17602, 220, 220, 220, 41876, 1172, 15908, 12, 276, 17602, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1401, 565, 220, 220, 41876, 1172, 15908, 12, 7785, 565, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 7012, 489, 220, 220, 41876, 1172, 15908, 12, 67, 7012, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20613, 2616, 220, 220, 220, 41876, 1172, 15908, 12, 9945, 2616, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 537, 292, 220, 220, 220, 41876, 1172, 15908, 12, 565, 292, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 41876, 1172, 15908, 12, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 8833, 220, 41876, 1172, 15908, 12, 13966, 1834, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 850, 66, 220, 220, 220, 41876, 1172, 15908, 12, 7266, 66, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3680, 220, 220, 220, 41876, 1172, 15908, 12, 1324, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 792, 84, 220, 220, 220, 41876, 1172, 15908, 12, 2363, 84, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 7402, 220, 220, 220, 41876, 1172, 15908, 12, 66, 7402, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 19608, 220, 220, 220, 41876, 1172, 15908, 12, 10210, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 555, 321, 220, 220, 220, 41876, 1172, 15908, 12, 403, 321, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 19608, 220, 220, 220, 41876, 1172, 15908, 12, 463, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 933, 220, 220, 220, 41876, 1172, 15908, 12, 933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 443, 19279, 220, 220, 220, 41876, 1172, 15908, 12, 2768, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 14269, 220, 220, 41876, 1172, 15908, 12, 81, 14269, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 22249, 220, 220, 41876, 1172, 15908, 12, 81, 22249, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 374, 2220, 220, 220, 41876, 1172, 15908, 12, 81, 2220, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4259, 457, 220, 220, 41876, 1172, 15908, 12, 13049, 457, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 2617, 220, 220, 220, 41876, 1172, 15908, 12, 824, 316, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 4475, 220, 220, 41876, 1172, 15908, 12, 82, 4475, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 336, 524, 220, 220, 41876, 1172, 15908, 12, 301, 524, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 378, 220, 220, 41876, 1172, 15908, 12, 20540, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 524, 220, 220, 41876, 1172, 15908, 12, 22552, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 9945, 3672, 41876, 1172, 15908, 12, 335, 65, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 334, 535, 258, 694, 41876, 1172, 15908, 12, 18863, 258, 694, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1676, 70, 15908, 13, 628, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 23065, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 19875, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19875, 62, 22915, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16624, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 23065, 41876, 1430, 76, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26086, 220, 220, 41876, 537, 522, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 1100, 62, 1676, 70, 15908, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 23065, 220, 220, 220, 220, 220, 220, 220, 41876, 1430, 76, 198, 220 ]
[ 1, 1, 1, 1, 1, 1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* *& Include ZABAPGIT_OBJECT_NROB *&---------------------------------------------------------------------* *----------------------------------------------------------------------* * CLASS lcl_object_nrob DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_object_nrob DEFINITION INHERITING FROM lcl_objects_super FINAL. PUBLIC SECTION. INTERFACES lif_object. ALIASES mo_files FOR lif_object~mo_files. PRIVATE SECTION. METHODS: delete_intervals IMPORTING iv_object TYPE inri-object RAISING lcx_exception. ENDCLASS. "lcl_object_nrob DEFINITION *----------------------------------------------------------------------* * CLASS lcl_object_nrob IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS lcl_object_nrob IMPLEMENTATION. METHOD lif_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. "lif_object~has_changed_since METHOD lif_object~changed_by. DATA: lv_objectid TYPE cdhdr-objectid, lt_cdhdr TYPE cdhdr_tab. FIELD-SYMBOLS: <ls_cdhdr> LIKE LINE OF lt_cdhdr. lv_objectid = ms_item-obj_name. CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING objectclass = 'NRKROBJ' objectid = lv_objectid TABLES i_cdhdr = lt_cdhdr EXCEPTIONS no_position_found = 1 wrong_access_to_archive = 2 time_zone_conversion_error = 3 OTHERS = 4. IF sy-subrc <> 0. rv_user = c_user_unknown. RETURN. ENDIF. SORT lt_cdhdr BY udate DESCENDING utime DESCENDING. READ TABLE lt_cdhdr INDEX 1 ASSIGNING <ls_cdhdr>. ASSERT sy-subrc = 0. rv_user = <ls_cdhdr>-username. ENDMETHOD. METHOD lif_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-late_deser = abap_true. ENDMETHOD. "lif_object~get_metadata METHOD lif_object~exists. DATA: lv_object TYPE tnro-object. SELECT SINGLE object FROM tnro INTO lv_object WHERE object = ms_item-obj_name. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. "lif_object~exists METHOD lif_object~serialize. DATA: lv_object TYPE tnro-object, ls_attributes TYPE tnro, ls_text TYPE tnrot. lv_object = ms_item-obj_name. CALL FUNCTION 'NUMBER_RANGE_OBJECT_READ' EXPORTING language = mv_language object = lv_object IMPORTING object_attributes = ls_attributes object_text = ls_text EXCEPTIONS object_not_found = 1 OTHERS = 2. IF sy-subrc = 1. RETURN. ELSEIF sy-subrc <> 0. lcx_exception=>raise( 'error from NUMBER_RANGE_OBJECT_READ' ). ENDIF. io_xml->add( iv_name = 'ATTRIBUTES' ig_data = ls_attributes ). io_xml->add( iv_name = 'TEXT' ig_data = ls_text ). ENDMETHOD. "serialize METHOD lif_object~deserialize. DATA: lt_errors TYPE TABLE OF inoer, ls_attributes TYPE tnro, ls_text TYPE tnrot. io_xml->read( EXPORTING iv_name = 'ATTRIBUTES' CHANGING cg_data = ls_attributes ). io_xml->read( EXPORTING iv_name = 'TEXT' CHANGING cg_data = ls_text ). CALL FUNCTION 'NUMBER_RANGE_OBJECT_UPDATE' EXPORTING indicator = 'I' object_attributes = ls_attributes object_text = ls_text TABLES errors = lt_errors EXCEPTIONS object_already_exists = 1 object_attributes_missing = 2 object_not_found = 3 object_text_missing = 4 wrong_indicator = 5 OTHERS = 6. IF sy-subrc <> 0. lcx_exception=>raise( 'error from NUMBER_RANGE_OBJECT_UPDATE' ). ENDIF. CALL FUNCTION 'NUMBER_RANGE_OBJECT_CLOSE' EXPORTING object = ls_attributes-object EXCEPTIONS object_not_initialized = 1. IF sy-subrc <> 0. lcx_exception=>raise( 'error from NUMBER_RANGE_OBJECT_CLOSE' ). ENDIF. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_test_modus = abap_false wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'NROB' wi_tadir_obj_name = ms_item-obj_name wi_tadir_author = sy-uname wi_tadir_devclass = iv_package wi_tadir_masterlang = mv_language wi_set_genflag = abap_true EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. lcx_exception=>raise( 'error from TR_TADIR_INTERFACE' ). ENDIF. ENDMETHOD. "deserialize METHOD delete_intervals. DATA: lv_error TYPE c LENGTH 1, ls_error TYPE inrer, lt_list TYPE STANDARD TABLE OF inriv WITH DEFAULT KEY, lt_error_iv TYPE STANDARD TABLE OF inriv WITH DEFAULT KEY. FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list. CALL FUNCTION 'NUMBER_RANGE_INTERVAL_LIST' EXPORTING object = iv_object TABLES interval = lt_list EXCEPTIONS nr_range_nr1_not_found = 1 nr_range_nr1_not_intern = 2 nr_range_nr2_must_be_space = 3 nr_range_nr2_not_extern = 4 nr_range_nr2_not_found = 5 object_not_found = 6 subobject_must_be_space = 7 subobject_not_found = 8 OTHERS = 9. IF sy-subrc <> 0. lcx_exception=>raise( 'error from NUMBER_RANGE_INTERVAL_LIST' ). ENDIF. IF lines( lt_list ) = 0. RETURN. ENDIF. LOOP AT lt_list ASSIGNING <ls_list>. CLEAR <ls_list>-nrlevel. <ls_list>-procind = 'D'. ENDLOOP. CALL FUNCTION 'NUMBER_RANGE_INTERVAL_UPDATE' EXPORTING object = iv_object IMPORTING error = ls_error error_occured = lv_error TABLES error_iv = lt_error_iv interval = lt_list EXCEPTIONS object_not_found = 1 OTHERS = 2. IF sy-subrc <> 0 OR lv_error = abap_true. lcx_exception=>raise( 'error from NUMBER_RANGE_INTERVAL_UPDATE' ). ENDIF. CALL FUNCTION 'NUMBER_RANGE_UPDATE_CLOSE' EXPORTING object = iv_object EXCEPTIONS no_changes_made = 1 object_not_initialized = 2 OTHERS = 3. IF sy-subrc <> 0. lcx_exception=>raise( 'error from NUMBER_RANGE_UPDATE_CLOSE' ). ENDIF. ENDMETHOD. METHOD lif_object~delete. DATA: lv_object TYPE tnro-object. lv_object = ms_item-obj_name. delete_intervals( lv_object ). CALL FUNCTION 'NUMBER_RANGE_OBJECT_DELETE' EXPORTING language = mv_language object = lv_object EXCEPTIONS delete_not_allowed = 1 object_not_found = 2 wrong_indicator = 3 OTHERS = 4. IF sy-subrc <> 0. lcx_exception=>raise( 'error from NUMBER_RANGE_OBJECT_DELETE' ). ENDIF. ENDMETHOD. "delete METHOD lif_object~jump. lcx_exception=>raise( 'todo' ). ENDMETHOD. "jump METHOD lif_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE lcl_null_comparison_result. ENDMETHOD. ENDCLASS. "lcl_object_nrob IMPLEMENTATION
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 24723, 9864, 198, 9, 5, 10097, 30934, 9, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 15252, 62, 77, 22609, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 15252, 62, 77, 22609, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 300, 565, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 3868, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 3868, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 12233, 62, 3849, 12786, 30023, 9863, 2751, 21628, 62, 15252, 41876, 287, 380, 12, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 300, 66, 87, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 15252, 62, 77, 22609, 5550, 20032, 17941, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 15252, 62, 77, 22609, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 565, 62, 15252, 62, 77, 22609, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3868, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 13, 198, 220, 220, 220, 374, 85, 62, 40985, 796, 450, 499, 62, 7942, 13, 198, 220, 23578, 49273, 13, 220, 366, 36195, 62, 15252, 93, 10134, 62, 40985, 62, 20777, 628, 220, 337, 36252, 3868, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 15252, 312, 41876, 22927, 71, 7109, 12, 15252, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 10210, 71, 7109, 220, 220, 220, 41876, 22927, 71, 7109, 62, 8658, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 10210, 71, 7109, 29, 34178, 48920, 3963, 300, 83, 62, 10210, 71, 7109, 13, 628, 198, 220, 220, 220, 300, 85, 62, 15252, 312, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 3398, 15567, 1961, 4503, 5883, 3525, 62, 15675, 62, 37682, 4877, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 4871, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 24723, 30758, 9864, 41, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 15252, 312, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 10210, 71, 7109, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 10210, 71, 7109, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 9150, 62, 9275, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2642, 62, 15526, 62, 1462, 62, 17474, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 640, 62, 11340, 62, 1102, 9641, 62, 18224, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 311, 9863, 300, 83, 62, 10210, 71, 7109, 11050, 334, 4475, 22196, 34, 10619, 2751, 3384, 524, 22196, 34, 10619, 2751, 13, 628, 220, 220, 220, 20832, 43679, 300, 83, 62, 10210, 71, 7109, 24413, 6369, 352, 24994, 3528, 15871, 1279, 7278, 62, 10210, 71, 7109, 28401, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 374, 85, 62, 7220, 796, 1279, 7278, 62, 10210, 71, 7109, 29, 12, 29460, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 15252, 93, 1136, 62, 38993, 13, 198, 220, 220, 220, 44608, 62, 38993, 796, 651, 62, 38993, 7, 6739, 198, 220, 220, 220, 44608, 62, 38993, 12, 17660, 62, 8906, 263, 796, 450, 499, 62, 7942, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 36195, 62, 15252, 93, 1136, 62, 38993, 628, 220, 337, 36252, 3868, 62, 15252, 93, 1069, 1023, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 15252, 41876, 256, 77, 305, 12, 15252, 13, 628, 198, 220, 220, 220, 33493, 311, 2751, 2538, 2134, 16034, 256, 77, 305, 39319, 300, 85, 62, 15252, 198, 220, 220, 220, 220, 220, 33411, 2134, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 374, 85, 62, 30388, 796, 20512, 66, 7, 827, 12, 7266, 6015, 796, 657, 6739, 628, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 36195, 62, 15252, 93, 1069, 1023, 628, 220, 337, 36252, 3868, 62, 15252, 93, 46911, 1096 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 zcl_excel_theme_objectdefaults DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS load IMPORTING !io_object_def TYPE REF TO if_ixml_element . METHODS build_xml IMPORTING !io_document TYPE REF TO if_ixml_document . PROTECTED SECTION. PRIVATE SECTION. DATA objectdefaults TYPE REF TO if_ixml_element . ENDCLASS. CLASS zcl_excel_theme_objectdefaults IMPLEMENTATION. METHOD build_xml. DATA: lo_theme TYPE REF TO if_ixml_element. DATA: lo_theme_objdef TYPE REF TO if_ixml_element. CHECK io_document IS BOUND. lo_theme ?= io_document->get_root_element( ). CHECK lo_theme IS BOUND. IF objectdefaults IS INITIAL. lo_theme_objdef ?= io_document->create_simple_element_ns( prefix = zcl_excel_theme=>c_theme_prefix name = zcl_excel_theme=>c_theme_object_def parent = lo_theme ). ELSE. lo_theme->append_child( new_child = objectdefaults ). ENDIF. ENDMETHOD. "build_xml METHOD load. objectdefaults = zcl_excel_common=>clone_ixml_with_namespaces( io_object_def ). ENDMETHOD. "load ENDCLASS.
[ 31631, 1976, 565, 62, 1069, 5276, 62, 43810, 62, 15252, 12286, 82, 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, 3440, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 15252, 62, 4299, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 30854, 764, 198, 220, 220, 220, 337, 36252, 50, 1382, 62, 19875, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 22897, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 2134, 12286, 82, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 30854, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 1069, 5276, 62, 43810, 62, 15252, 12286, 82, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 19875, 13, 198, 220, 220, 220, 42865, 25, 2376, 62, 43810, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 30854, 13, 198, 220, 220, 220, 42865, 25, 2376, 62, 43810, 62, 26801, 4299, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 30854, 13, 198, 220, 220, 220, 5870, 25171, 33245, 62, 22897, 3180, 347, 15919, 13, 198, 220, 220, 220, 2376, 62, 43810, 5633, 28, 33245, 62, 22897, 3784, 1136, 62, 15763, 62, 30854, 7, 6739, 198, 220, 220, 220, 5870, 25171, 2376, 62, 43810, 3180, 347, 15919, 13, 198, 220, 220, 220, 16876, 2134, 12286, 82, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 2376, 62, 43810, 62, 26801, 4299, 5633, 28, 33245, 62, 22897, 3784, 17953, 62, 36439, 62, 30854, 62, 5907, 7, 21231, 796, 1976, 565, 62, 1069, 5276, 62, 43810, 14804, 66, 62, 43810, 62, 40290, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 796, 1976, 565, 62, 1069, 5276, 62, 43810, 14804, 66, 62, 43810, 62, 15252, 62, 4299, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2560, 796, 2376, 62, 43810, 6739, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 2376, 62, 43810, 3784, 33295, 62, 9410, 7, 649, 62, 9410, 796, 2134, 12286, 82, 6739, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 11249, 62, 19875, 628, 198, 220, 337, 36252, 3440, 13, 198, 220, 220, 220, 2134, 12286, 82, 796, 1976, 565, 62, 1069, 5276, 62, 11321, 14804, 21018, 62, 844, 4029, 62, 4480, 62, 14933, 43076, 7, 33245, 62, 15252, 62, 4299, 6739, 198, 220, 23578, 49273, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 2220, 198, 10619, 31631, 13, 198 ]
[ 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 ]
class ZAPIDUMMYLOCKED definition public final create public . public section. protected section. private section. ENDCLASS. CLASS ZAPIDUMMYLOCKED IMPLEMENTATION. ENDCLASS.
[ 4871, 1168, 2969, 2389, 5883, 26708, 36840, 1961, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 2969, 2389, 5883, 26708, 36840, 1961, 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 ]
*"* components of interface /IWBEP/IF_MGW_ODATA_CMPLX_PROP interface /IWBEP/IF_MGW_ODATA_CMPLX_PROP public . interfaces /IWBEP/IF_MGW_ODATA_ANNOTATABL . interfaces /IWBEP/IF_MGW_ODATA_ITEM . types: begin of ty_s_mgw_odata_cplx_property, technical_name type fieldname, complex_property type ref to /iwbep/if_mgw_odata_CMPLX_PROP, end of ty_s_mgw_odata_cplx_property . types: ty_t_mgw_odata_cplx_properties type standard table of ty_s_mgw_odata_cplx_property with key technical_name . methods GET_COMPLEX_TYPE returning value(RO_COMPLEX_TYPE) type ref to /IWBEP/IF_MGW_ODATA_CMPLX_TYPE . interface /IWBEP/IF_MGW_MED_ODATA_TYPES load . methods GET_NAME returning value(RV_NAME) type /IWBEP/IF_MGW_MED_ODATA_TYPES=>TY_E_MED_ENTITY_NAME . methods GET_ABAP_NAME returning value(RV_ABAP_NAME) type FIELDNAME . type-pools ABAP . methods SET_DISABLED importing !IV_DISABLED type ABAP_BOOL default ABAP_TRUE . endinterface.
[ 9, 1, 9, 6805, 286, 7071, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 3727, 13563, 62, 24187, 6489, 55, 62, 4805, 3185, 198, 39994, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 3727, 13563, 62, 24187, 6489, 55, 62, 4805, 3185, 198, 220, 1171, 764, 628, 198, 220, 20314, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 3727, 13563, 62, 1565, 11929, 1404, 6242, 43, 764, 198, 220, 20314, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 3727, 13563, 62, 2043, 3620, 764, 628, 220, 3858, 25, 198, 220, 220, 220, 2221, 286, 1259, 62, 82, 62, 11296, 86, 62, 375, 1045, 62, 66, 489, 87, 62, 26745, 11, 198, 220, 220, 220, 220, 220, 6276, 62, 3672, 2099, 2214, 3672, 11, 198, 220, 220, 220, 220, 220, 3716, 62, 26745, 2099, 1006, 284, 1220, 14246, 65, 538, 14, 361, 62, 11296, 86, 62, 375, 1045, 62, 24187, 6489, 55, 62, 4805, 3185, 11, 198, 220, 220, 220, 886, 286, 1259, 62, 82, 62, 11296, 86, 62, 375, 1045, 62, 66, 489, 87, 62, 26745, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 1259, 62, 83, 62, 11296, 86, 62, 375, 1045, 62, 66, 489, 87, 62, 48310, 2099, 3210, 3084, 286, 1259, 62, 82, 62, 11296, 86, 62, 375, 1045, 62, 66, 489, 87, 62, 26745, 351, 1994, 6276, 62, 3672, 764, 628, 220, 5050, 17151, 62, 41335, 55, 62, 25216, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 13252, 62, 41335, 55, 62, 25216, 8, 2099, 1006, 284, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 3727, 13563, 62, 24187, 6489, 55, 62, 25216, 764, 198, 220, 7071, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 30733, 62, 3727, 13563, 62, 9936, 47, 1546, 3440, 764, 198, 220, 5050, 17151, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 20608, 8, 2099, 1220, 40, 45607, 8905, 14, 5064, 62, 20474, 54, 62, 30733, 62, 3727, 13563, 62, 9936, 47, 1546, 14804, 9936, 62, 36, 62, 30733, 62, 3525, 9050, 62, 20608, 764, 198, 220, 5050, 17151, 62, 6242, 2969, 62, 20608, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 6242, 2969, 62, 20608, 8, 2099, 18930, 24639, 20608, 764, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 198, 220, 5050, 25823, 62, 26288, 6242, 30465, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 26288, 6242, 30465, 2099, 9564, 2969, 62, 8202, 3535, 4277, 9564, 2969, 62, 5446, 8924, 764, 198, 437, 39994, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_zkr_postcode_v2 DEFINITION PUBLIC INHERITING FROM cl_wd_component_assistance CREATE PUBLIC . PUBLIC SECTION. CLASS-DATA go_wd_comp TYPE REF TO ziwci_kr_postcode_v2 READ-ONLY . CLASS-DATA gv_wd_comp_id TYPE string READ-ONLY . DATA mo_comp_usage TYPE REF TO if_wd_component_usage . DATA mo_event_data TYPE REF TO if_fpm_parameter . CLASS-METHODS class_constructor . CLASS-METHODS fpm_popup IMPORTING !io_event_orig TYPE REF TO cl_fpm_event OPTIONAL !iv_callback_event_id TYPE clike DEFAULT 'ZKR_POSTCODE' !io_event_data TYPE REF TO if_fpm_parameter OPTIONAL . METHODS on_close FOR EVENT window_closed OF if_wd_window . METHODS on_ok IMPORTING !is_addr TYPE zcl_kr_postcode=>ts_addr . CLASS-METHODS open_popup IMPORTING !io_event_data TYPE REF TO if_fpm_parameter . CLASS-METHODS wd_popup IMPORTING !io_view TYPE REF TO if_wd_view_controller !iv_callback_action TYPE clike !io_event_data TYPE REF TO if_fpm_parameter OPTIONAL . CLASS-METHODS sh_popup . PROTECTED SECTION. METHODS do_callback . CLASS-METHODS readme . PRIVATE SECTION. ENDCLASS. CLASS ZCL_ZKR_POSTCODE_V2 IMPLEMENTATION. METHOD class_constructor. gv_wd_comp_id = CAST cl_abap_refdescr( cl_abap_typedescr=>describe_by_data( go_wd_comp ) )->get_referenced_type( )->get_relative_name( ). REPLACE 'IWCI_' IN gv_wd_comp_id WITH ''. ENDMETHOD. METHOD do_callback. DATA: lv_event_id TYPE fpm_event_id, lo_fpm TYPE REF TO if_fpm, lo_event TYPE REF TO cl_fpm_event, lo_event_orig TYPE REF TO cl_fpm_event, lt_key TYPE TABLE OF string, lv_key TYPE string, lr_value TYPE REF TO data, lv_action TYPE string, lo_view TYPE REF TO cl_wdr_view, lo_action TYPE REF TO if_wdr_action, lt_param TYPE wdr_name_value_list, ls_param TYPE wdr_name_value, lo_search_help TYPE REF TO cl_wdr_elementary_search_help. ********************************************************************** * FPM ********************************************************************** mo_event_data->get_value( EXPORTING iv_key = 'IV_CALLBACK_EVENT_ID' IMPORTING ev_value = lv_event_id ). IF lv_event_id IS NOT INITIAL. lo_fpm = cl_fpm=>get_instance( ). CHECK: lo_fpm IS NOT INITIAL. CREATE OBJECT lo_event EXPORTING iv_event_id = lv_event_id io_event_data = mo_event_data. mo_event_data->get_value( EXPORTING iv_key = 'IO_EVENT_ORIG' IMPORTING ev_value = lo_event_orig ). IF lo_event_orig IS NOT INITIAL. lo_event->ms_source_uibb = lo_event_orig->ms_source_uibb. ENDIF. lo_fpm->raise_event( lo_event ). ENDIF. ********************************************************************** * WD ********************************************************************** mo_event_data->get_value( EXPORTING iv_key = 'IV_CALLBACK_ACTION' IMPORTING ev_value = lv_action ). IF lv_action IS NOT INITIAL. mo_event_data->get_value( EXPORTING iv_key = 'IO_VIEW' IMPORTING ev_value = lo_view ). CHECK: lo_view IS NOT INITIAL. TRY. lo_action = lo_view->get_action_internal( lv_action ). CATCH cx_wdr_runtime INTO DATA(lx_wdr_runtime). wdr_task=>application->component->if_wd_controller~get_message_manager( )->report_error_message( lx_wdr_runtime->get_text( ) ). ENDTRY. CHECK: lo_action IS NOT INITIAL. CLEAR: ls_param. ls_param-name = 'MO_EVENT_DATA'. ls_param-object = mo_event_data. ls_param-type = cl_abap_typedescr=>typekind_oref. APPEND ls_param TO lt_param. lt_key = mo_event_data->get_keys( ). LOOP AT lt_key INTO lv_key. mo_event_data->get_value( EXPORTING iv_key = lv_key IMPORTING er_value = lr_value ). CLEAR: ls_param. ls_param-name = lv_key. ls_param-dref = lr_value. ls_param-type = cl_abap_typedescr=>typekind_dref. APPEND ls_param TO lt_param. ENDLOOP. lo_action->set_parameters( lt_param ). lo_action->fire( ). ENDIF. ********************************************************************** * search help ********************************************************************** mo_event_data->get_value( EXPORTING iv_key = 'IO_SEARCH_HELP' IMPORTING ev_value = lo_search_help ). IF lo_search_help IS NOT INITIAL. ASSIGN ('(SAPLZKR_POSTCODE)GS_ADDR') TO FIELD-SYMBOL(<ls_addr>). mo_event_data->get_value( EXPORTING iv_key = 'IS_ADDR' IMPORTING ev_value = <ls_addr> ). lo_search_help->do_return( 'GENERAL' ). ENDIF. ENDMETHOD. METHOD fpm_popup. DATA: lo_event_data TYPE REF TO if_fpm_parameter. IF io_event_data IS NOT INITIAL. lo_event_data = io_event_data. ELSE. CREATE OBJECT lo_event_data TYPE cl_fpm_parameter. ENDIF. lo_event_data->set_value( EXPORTING iv_key = 'IV_CALLBACK_EVENT_ID' iv_value = iv_callback_event_id ). IF io_event_orig IS NOT INITIAL. lo_event_data->set_value( EXPORTING iv_key = 'IO_EVENT_ORIG' iv_value = io_event_orig ). ENDIF. open_popup( lo_event_data ). ENDMETHOD. METHOD on_ok. DATA: lt_callstack TYPE abap_callstack, ls_callstack TYPE abap_callstack_line, lo_class_desc TYPE REF TO cl_abap_classdescr, ls_method_desc TYPE abap_methdescr, ls_param_desc TYPE abap_parmdescr. FIELD-SYMBOLS: <lv_value> TYPE any. CALL FUNCTION 'SYSTEM_CALLSTACK' EXPORTING max_level = 1 IMPORTING callstack = lt_callstack. READ TABLE lt_callstack INTO ls_callstack INDEX 1. lo_class_desc ?= cl_abap_classdescr=>describe_by_name( cl_oo_classname_service=>get_clsname_by_include( ls_callstack-include ) ). READ TABLE lo_class_desc->methods INTO ls_method_desc WITH KEY name = ls_callstack-blockname. LOOP AT ls_method_desc-parameters INTO ls_param_desc WHERE parm_kind = cl_abap_classdescr=>importing. ASSIGN (ls_param_desc-name) TO <lv_value>. mo_event_data->set_value( EXPORTING iv_key = CONV #( ls_param_desc-name ) iv_value = <lv_value> ). ENDLOOP. do_callback( ). ENDMETHOD. METHOD open_popup. * Please call fpm_popup( ) or wd_popup( ). DATA: lo_comp_usage TYPE REF TO if_wd_component_usage. cl_wdr_runtime_services=>get_component_usage( EXPORTING component = wdr_task=>application->component used_component_name = gv_wd_comp_id component_usage_name = gv_wd_comp_id create_component = abap_true do_create = abap_true RECEIVING component_usage = lo_comp_usage ). go_wd_comp ?= lo_comp_usage->get_interface_controller( ). go_wd_comp->open_popup( io_event_data = io_event_data io_comp_usage = lo_comp_usage ). ENDMETHOD. METHOD wd_popup. DATA: lo_event_data TYPE REF TO if_fpm_parameter. IF io_event_data IS NOT INITIAL. lo_event_data = io_event_data. ELSE. CREATE OBJECT lo_event_data TYPE cl_fpm_parameter. ENDIF. lo_event_data->set_value( EXPORTING iv_key = 'IV_CALLBACK_ACTION' iv_value = iv_callback_action ). lo_event_data->set_value( EXPORTING iv_key = 'IO_VIEW' iv_value = CAST cl_wdr_view( io_view ) ). open_popup( lo_event_data ). ENDMETHOD. METHOD sh_popup. DATA: lo_event_data TYPE REF TO if_fpm_parameter, lo_component_d TYPE REF TO object. FIELD-SYMBOLS: <lo_search_help> TYPE REF TO cl_wdr_elementary_search_help. lo_component_d = wdr_task=>application->get_component_for_name( 'WDR_F4_ELEMENTARY' )->component->get_delegate( ). ASSIGN lo_component_d->('IG_COMPONENTCONTROLLER~SEARCH_HELP') TO <lo_search_help>. CREATE OBJECT lo_event_data TYPE cl_fpm_parameter. lo_event_data->set_value( EXPORTING iv_key = 'IO_SEARCH_HELP' iv_value = <lo_search_help> ). open_popup( lo_event_data ). ENDMETHOD. METHOD on_close. mo_comp_usage->delete_component( ). ENDMETHOD. METHOD readme. * https://github.com/boy0korea/ZWD_INSTANT_POPUP ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 89, 38584, 62, 7353, 8189, 62, 85, 17, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 537, 62, 16993, 62, 42895, 62, 562, 9311, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 467, 62, 16993, 62, 5589, 41876, 4526, 37, 5390, 1976, 14246, 979, 62, 38584, 62, 7353, 8189, 62, 85, 17, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42715, 12, 26947, 308, 85, 62, 16993, 62, 5589, 62, 312, 41876, 4731, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42865, 6941, 62, 5589, 62, 26060, 41876, 4526, 37, 5390, 611, 62, 16993, 62, 42895, 62, 26060, 764, 198, 220, 220, 220, 42865, 6941, 62, 15596, 62, 7890, 41876, 4526, 37, 5390, 611, 62, 69, 4426, 62, 17143, 2357, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 1398, 62, 41571, 273, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 277, 4426, 62, 12924, 929, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 15596, 62, 11612, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 69, 4426, 62, 15596, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 47423, 62, 15596, 62, 312, 41876, 537, 522, 5550, 38865, 705, 57, 30758, 62, 32782, 34, 16820, 6, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 15596, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 69, 4426, 62, 17143, 2357, 39852, 2849, 1847, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 19836, 198, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 4324, 62, 20225, 3963, 611, 62, 16993, 62, 17497, 764, 198, 220, 220, 220, 337, 36252, 50, 319, 62, 482, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 29851, 41876, 1976, 565, 62, 38584, 62, 7353, 8189, 14804, 912, 62, 29851, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1280, 62, 12924, 929, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 15596, 62, 7890, 41876, 4526, 37, 5390, 611, 62, 69, 4426, 62, 17143, 2357, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 266, 67, 62, 12924, 929, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 1177, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 16993, 62, 1177, 62, 36500, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 47423, 62, 2673, 41876, 537, 522, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 15596, 62, 7890, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 69, 4426, 62, 17143, 2357, 39852, 2849, 1847, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 427, 62, 12924, 929, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 466, 62, 47423, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 1100, 1326, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 57, 30758, 62, 32782, 34, 16820, 62, 53, 17, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1398, 62, 41571, 273, 13, 198, 220, 220, 220, 308, 85, 62, 16993, 62, 5589, 62, 312, 796, 327, 11262, 537, 62, 397, 499, 62, 5420, 20147, 81, 7, 537, 62, 397, 499, 62, 774, 9124, 3798, 81, 14804, 20147, 4892, 62, 1525, 62, 7890, 7, 467, 62, 16993, 62, 5589, 1267, 1267, 3784, 1136, 62, 5420, 14226, 771, 62, 4906, 7, 1267, 3784, 1136, 62, 43762, 62, 3672, 7, 6739, 198, 220, 220, 220, 45285, 11598, 705, 40, 54, 25690, 62, 6, 3268, 308, 85, 62, 16993, 62, 5589, 62, 312, 13315, 705, 4458, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 466, 62, 47423, 13, 198, 220, 220, 220, 42865, 25, 300, 85, 62, 15596, 62, 312, 220, 220, 220, 41876, 277, 4426, 62, 15596, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 69, 4426, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 69, 4426, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 15596, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 69, 4426, 62, 15596, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 15596, 62, 11612, 220, 41876, 4526, 37, 5390, 537, 62, 69, 4426, 62, 15596, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 3963, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 81, 62, 8367, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 2673, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 1177, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 86, 7109, 62, 1177, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 2673, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 86, 7109, 62, 2673, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 17143, 220, 220, 220, 220, 220, 220, 41876, 266, 7109, 62, 3672, 62, 8367, 62, 4868, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 17143, 220, 220, 220, 220, 220, 220, 41876, 266, 7109, 62, 3672, 62, 8367, 11, 198, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_http DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CONSTANTS: BEGIN OF c_scheme, digest TYPE string VALUE 'Digest', END OF c_scheme. CLASS-METHODS: get_agent RETURNING VALUE(rv_agent) TYPE string, create_by_url IMPORTING iv_url TYPE string iv_service TYPE string RETURNING VALUE(ro_client) TYPE REF TO zcl_abapgit_http_client RAISING zcx_abapgit_exception. PRIVATE SECTION. CLASS-METHODS: check_auth_requested IMPORTING ii_client TYPE REF TO if_http_client RETURNING VALUE(rv_auth_requested) TYPE abap_bool RAISING zcx_abapgit_exception, is_local_system IMPORTING iv_url TYPE string RETURNING VALUE(rv_bool) TYPE abap_bool, acquire_login_details IMPORTING ii_client TYPE REF TO if_http_client io_client TYPE REF TO zcl_abapgit_http_client iv_url TYPE string RETURNING VALUE(rv_scheme) TYPE string RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_HTTP IMPLEMENTATION. METHOD acquire_login_details. DATA: lv_default_user TYPE string, lv_user TYPE string, lv_pass TYPE string, lo_digest TYPE REF TO zcl_abapgit_http_digest. lv_default_user = zcl_abapgit_persistence_user=>get_instance( )->get_repo_login( iv_url ). lv_user = lv_default_user. zcl_abapgit_password_dialog=>popup( EXPORTING iv_repo_url = iv_url CHANGING cv_user = lv_user cv_pass = lv_pass ). IF lv_user IS INITIAL. zcx_abapgit_exception=>raise( 'HTTP 401, unauthorized' ). ENDIF. IF lv_user <> lv_default_user. zcl_abapgit_persistence_user=>get_instance( )->set_repo_login( iv_url = iv_url iv_login = lv_user ). ENDIF. " Offer two factor authentication if it is available and required zcl_abapgit_2fa_auth_registry=>use_2fa_if_required( EXPORTING iv_url = iv_url CHANGING cv_username = lv_user cv_password = lv_pass ). rv_scheme = ii_client->response->get_header_field( 'www-authenticate' ). FIND REGEX '^(\w+)' IN rv_scheme SUBMATCHES rv_scheme. CASE rv_scheme. WHEN c_scheme-digest. * https://en.wikipedia.org/wiki/Digest_access_authentication * e.g. used by https://www.gerritcodereview.com/ CREATE OBJECT lo_digest EXPORTING ii_client = ii_client iv_username = lv_user iv_password = lv_pass. lo_digest->run( ii_client ). io_client->set_digest( lo_digest ). WHEN OTHERS. * https://en.wikipedia.org/wiki/Basic_access_authentication ii_client->authenticate( username = lv_user password = lv_pass ). ENDCASE. ENDMETHOD. "acquire_login_details METHOD check_auth_requested. DATA: lv_code TYPE i. ii_client->response->get_status( IMPORTING code = lv_code ). IF lv_code = 401. rv_auth_requested = abap_true. ENDIF. ENDMETHOD. "check_auth_requested METHOD create_by_url. DATA: lv_uri TYPE string, lv_scheme TYPE string, li_client TYPE REF TO if_http_client, lo_proxy_configuration TYPE REF TO zcl_abapgit_proxy_config, lv_text TYPE string. CREATE OBJECT lo_proxy_configuration. cl_http_client=>create_by_url( EXPORTING url = zcl_abapgit_url=>host( iv_url ) ssl_id = 'ANONYM' proxy_host = lo_proxy_configuration->get_proxy_url( iv_url ) proxy_service = lo_proxy_configuration->get_proxy_port( iv_url ) IMPORTING client = li_client EXCEPTIONS argument_not_found = 1 plugin_not_active = 2 internal_error = 3 OTHERS = 4 ). IF sy-subrc <> 0. CASE sy-subrc. WHEN 1. " make sure: " a) SSL is setup properly in STRUST lv_text = 'HTTPS ARGUMENT_NOT_FOUND | STRUST/SSL Setup correct?'. WHEN OTHERS. lv_text = 'While creating HTTP Client'. "#EC NOTEXT ENDCASE. zcx_abapgit_exception=>raise( lv_text ). ENDIF. IF lo_proxy_configuration->get_proxy_authentication( iv_url ) = abap_true. zcl_abapgit_proxy_auth=>run( li_client ). ENDIF. CREATE OBJECT ro_client EXPORTING ii_client = li_client. IF is_local_system( iv_url ) = abap_true. li_client->send_sap_logon_ticket( ). ENDIF. li_client->request->set_cdata( '' ). li_client->request->set_header_field( name = '~request_method' value = 'GET' ). li_client->request->set_header_field( name = 'user-agent' value = get_agent( ) ). "#EC NOTEXT lv_uri = zcl_abapgit_url=>path_name( iv_url ) && '/info/refs?service=git-' && iv_service && '-pack'. li_client->request->set_header_field( name = '~request_uri' value = lv_uri ). " Disable internal auth dialog (due to its unclarity) li_client->propertytype_logon_popup = if_http_client=>co_disabled. zcl_abapgit_login_manager=>load( iv_uri = iv_url ii_client = li_client ). zcl_abapgit_exit=>get_instance( )->http_client( li_client ). ro_client->send_receive( ). IF check_auth_requested( li_client ) = abap_true. lv_scheme = acquire_login_details( ii_client = li_client io_client = ro_client iv_url = iv_url ). ro_client->send_receive( ). ENDIF. ro_client->check_http_200( ). IF lv_scheme <> c_scheme-digest. zcl_abapgit_login_manager=>save( iv_uri = iv_url ii_client = li_client ). ENDIF. ENDMETHOD. METHOD get_agent. * bitbucket require agent prefix = "git/" rv_agent = 'git/abapGit-' && zif_abapgit_definitions=>gc_abap_version. ENDMETHOD. METHOD is_local_system. DATA: lv_host TYPE string, lt_list TYPE zif_abapgit_exit=>ty_icm_sinfo2_tt, li_exit TYPE REF TO zif_abapgit_exit. FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list. CALL FUNCTION 'ICM_GET_INFO2' TABLES servlist = lt_list EXCEPTIONS icm_error = 1 icm_timeout = 2 OTHERS = 3. IF sy-subrc <> 0. RETURN. ENDIF. APPEND INITIAL LINE TO lt_list ASSIGNING <ls_list>. <ls_list>-hostname = 'localhost'. li_exit = zcl_abapgit_exit=>get_instance( ). li_exit->change_local_host( CHANGING ct_hosts = lt_list ). FIND REGEX 'https?://([^/^:]*)' IN iv_url SUBMATCHES lv_host. READ TABLE lt_list WITH KEY hostname = lv_host TRANSPORTING NO FIELDS. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 4023, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 347, 43312, 3963, 269, 62, 15952, 1326, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16274, 41876, 4731, 26173, 8924, 705, 19511, 395, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 15952, 1326, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 25781, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 25781, 8, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2251, 62, 1525, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 15271, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 16366, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 2198, 62, 18439, 62, 25927, 276, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 16366, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 18439, 62, 25927, 276, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 318, 62, 12001, 62, 10057, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 30388, 8, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 12831, 62, 38235, 62, 36604, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21065, 62, 16366, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 16366, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 15952, 1326, 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, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40717, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 12831, 62, 38235, 62, 36604, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 12286, 62, 7220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6603, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 12894, 395, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 4023, 62, 12894, 395, 13, 628, 198, 220, 220, 220, 300, 85, 62, 12286, 62, 7220, 796, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 7220, 14804, 1136, 62, 39098, 7, 1267, 3784, 1136, 62, 260, 7501, 62, 38235, 7, 21628, 62, 6371, 6739, 198, 220, 220, 220, 300, 85, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 12286, 62, 7220, 13, 628, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 28712, 62, 38969, 519, 14804, 12924, 929, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 220, 796, 21628, 62, 6371, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 6603, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 6603, 6739, 628, 220, 220, 220, 16876, 300, 85, 62, 7220, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 40717, 22219, 11, 22959, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 300, 85, 62, 7220, 1279, 29, 300, 85, 62, 12286, 62, 7220, 13, 198, 220, 220, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 19276, 13274, 62, 7220, 14804, 1136, 62, 39098, 7, 1267, 3784, 2617, 62, 260, 7501, 62, 38235, 7, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 6371, 220, 220, 796, 21628, 62, 6371, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_boolean DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS parse IMPORTING !it_tokens TYPE stokesx_tab RETURNING VALUE(ro_node) TYPE REF TO zcl_aoc_boolean_node . PROTECTED SECTION. CLASS-METHODS is_comparator IMPORTING !io_tokens TYPE REF TO zcl_aoc_boolean_tokens RETURNING VALUE(rv_comparator) TYPE i . CLASS-METHODS parse_internal IMPORTING !io_tokens TYPE REF TO zcl_aoc_boolean_tokens RETURNING VALUE(ro_node) TYPE REF TO zcl_aoc_boolean_node . CLASS-METHODS parse_not IMPORTING !io_tokens TYPE REF TO zcl_aoc_boolean_tokens RETURNING VALUE(ro_node) TYPE REF TO zcl_aoc_boolean_node . CLASS-METHODS parse_paren IMPORTING !io_tokens TYPE REF TO zcl_aoc_boolean_tokens RETURNING VALUE(ro_node) TYPE REF TO zcl_aoc_boolean_node . CLASS-METHODS remove_method_calls IMPORTING !io_tokens TYPE REF TO zcl_aoc_boolean_tokens . CLASS-METHODS remove_templates IMPORTING !io_tokens TYPE REF TO zcl_aoc_boolean_tokens . CLASS-METHODS simplify IMPORTING !it_tokens TYPE stokesx_tab RETURNING VALUE(ro_tokens) TYPE REF TO zcl_aoc_boolean_tokens . CLASS-METHODS remove_calculations IMPORTING !io_tokens TYPE REF TO zcl_aoc_boolean_tokens . CLASS-METHODS remove_strings IMPORTING !io_tokens TYPE REF TO zcl_aoc_boolean_tokens . PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_BOOLEAN IMPLEMENTATION. METHOD is_comparator. DATA: lv_token2 TYPE string, lv_token3 TYPE string, lv_token4 TYPE string, lv_token5 TYPE string. lv_token2 = io_tokens->get_token( 2 )-str. lv_token3 = io_tokens->get_token( 3 )-str. lv_token4 = io_tokens->get_token( 4 )-str. lv_token5 = io_tokens->get_token( 5 )-str. rv_comparator = 0. IF lv_token2 = 'NOT' AND lv_token3 = 'BETWEEN' OR ( lv_token2 = 'IS' AND lv_token3 = 'NOT' AND lv_token4 = 'INSTANCE' AND lv_token5 = 'OF' ). rv_comparator = 4. ELSEIF ( lv_token2 = 'IS' AND lv_token3 = 'NOT' ) OR ( lv_token2 = 'NOT' AND lv_token3 = 'IN' ). rv_comparator = 2. ELSEIF ( lv_token2 = 'IS' AND lv_token3 = 'INSTANCE' AND lv_token4 = 'OF' ) OR lv_token2 = 'BETWEEN'. rv_comparator = 3. ELSEIF lv_token2 = '=' OR lv_token2 = 'O' OR lv_token2 = 'Z' OR lv_token2 = 'M' OR lv_token2 = '<>' OR lv_token2 = '><' OR lv_token2 = '<' OR lv_token2 = 'GT' OR lv_token2 = '>' OR lv_token2 = 'LT' OR lv_token2 = '>=' OR lv_token2 = '=>' OR lv_token2 = 'GE' OR lv_token2 = 'NS' OR lv_token2 = '<=' OR lv_token2 = '=<' OR lv_token2 = 'LE' OR lv_token2 = 'NE' OR lv_token2 = 'NA' OR lv_token2 = 'CO' OR lv_token2 = 'CA' OR lv_token2 = 'CS' OR lv_token2 = 'CN' OR lv_token2 = 'IN' OR lv_token2 = 'CP' OR lv_token2 = 'NP' OR lv_token2 = 'IS' OR lv_token2 = 'EQ'. rv_comparator = 1. ENDIF. ENDMETHOD. METHOD parse. * returns initial RO_NODE in case of parser errors DATA: lo_tokens TYPE REF TO zcl_aoc_boolean_tokens. lo_tokens = simplify( it_tokens ). ro_node = parse_internal( lo_tokens ). ENDMETHOD. METHOD parse_internal. DATA: lv_token1 TYPE string, lv_token2 TYPE string, lo_node LIKE ro_node, lv_comparator TYPE i. lv_token1 = io_tokens->get_token( 1 )-str. lv_token2 = io_tokens->get_token( 2 )-str. lv_comparator = is_comparator( io_tokens ). IF lv_comparator > 0 AND io_tokens->get_length( ) >= 3. CREATE OBJECT ro_node EXPORTING iv_type = zcl_aoc_boolean_node=>c_type-compare. io_tokens->eat( 2 + lv_comparator ). ELSEIF io_tokens->get_length( ) = 1 OR lv_token2 = 'AND' OR lv_token2 = 'OR'. * Predicative method call, 740SP08 logical expression CREATE OBJECT ro_node EXPORTING iv_type = zcl_aoc_boolean_node=>c_type-compare. io_tokens->eat( 1 ). ELSEIF lv_token1 = 'NOT'. io_tokens->eat( 1 ). ro_node = parse_not( io_tokens ). ELSEIF lv_token1 = '('. ro_node = parse_paren( io_tokens ). ELSEIF lv_token1 = 'AND'. CREATE OBJECT ro_node EXPORTING iv_type = zcl_aoc_boolean_node=>c_type-and. io_tokens->eat( 1 ). lo_node = parse_internal( io_tokens ). ro_node->append_child( lo_node ). ELSEIF lv_token1 = 'OR'. CREATE OBJECT ro_node EXPORTING iv_type = zcl_aoc_boolean_node=>c_type-or. io_tokens->eat( 1 ). lo_node = parse_internal( io_tokens ). ro_node->append_child( lo_node ). ELSE. * parser error RETURN. ENDIF. * parse remaining IF io_tokens->get_length( ) > 0. lo_node = parse_internal( io_tokens ). IF lo_node IS INITIAL. * parser error CLEAR ro_node. RETURN. ENDIF. lo_node->prepend_child( ro_node ). ro_node = lo_node. ENDIF. ENDMETHOD. METHOD parse_not. DATA: lo_node TYPE REF TO zcl_aoc_boolean_node, lv_end TYPE i, lv_token1 TYPE string, lv_token2 TYPE string, lo_split TYPE REF TO zcl_aoc_boolean_tokens. lv_token1 = io_tokens->get_token( 1 )-str. lv_token2 = io_tokens->get_token( 2 )-str. CREATE OBJECT ro_node EXPORTING iv_type = zcl_aoc_boolean_node=>c_type-not. IF lv_token1 = '('. lv_end = io_tokens->find_end_paren( 1 ). lo_split = io_tokens->eat( lv_end ). ELSEIF lv_token2 = 'OR' OR lv_token2 = 'AND'. * Predicative method call lo_split = io_tokens->eat( 1 ). ELSE. lo_split = io_tokens->eat( 3 ). ENDIF. lo_node = parse_internal( lo_split ). ro_node->append_child( lo_node ). ENDMETHOD. METHOD parse_paren. DATA: lo_node TYPE REF TO zcl_aoc_boolean_node, lv_end TYPE i, lo_split TYPE REF TO zcl_aoc_boolean_tokens. ASSERT io_tokens->get_token( 1 )-str = '('. CREATE OBJECT ro_node EXPORTING iv_type = zcl_aoc_boolean_node=>c_type-paren. lv_end = io_tokens->find_end_paren( 1 ). lo_split = io_tokens->eat( lv_end ). * remove start and end paren lo_split = lo_split->split( iv_start = 1 iv_end = lo_split->get_length( ) - 1 ). lo_node = parse_internal( lo_split ). ro_node->append_child( lo_node ). ENDMETHOD. METHOD remove_calculations. DATA: lv_before TYPE i, lt_tokens TYPE stokesx_tab, ls_token LIKE LINE OF lt_tokens, ls_prev LIKE LINE OF lt_tokens, ls_next LIKE LINE OF lt_tokens, lv_index TYPE i. lt_tokens = io_tokens->get_tokens( ). DO. lv_before = lines( lt_tokens ). LOOP AT lt_tokens INTO ls_token. lv_index = sy-tabix. CLEAR: ls_prev, ls_next. READ TABLE lt_tokens INDEX lv_index - 1 INTO ls_prev. "#EC CI_SUBRC READ TABLE lt_tokens INDEX lv_index + 1 INTO ls_next. "#EC CI_SUBRC CASE ls_token-str. WHEN '+' OR '-' OR '*' OR '/' OR 'MOD' OR 'DIV' OR 'BIT-AND' OR 'BIT-OR' OR '&&'. IF ls_next-str <> '(' AND ls_prev-str <> '=' AND ls_prev-str <> '<>' AND ls_prev-str <> '<' AND ls_prev-str <> 'GT' AND ls_prev-str <> '>' AND ls_prev-str <> 'LT' AND ls_prev-str <> '>=' AND ls_prev-str <> 'GE' AND ls_prev-str <> 'NS' AND ls_prev-str <> '<=' AND ls_prev-str <> 'LE' AND ls_prev-str <> 'NE' AND ls_prev-str <> 'NA' AND ls_prev-str <> 'CO' AND ls_prev-str <> 'CA' AND ls_prev-str <> 'CS' AND ls_prev-str <> 'CN' AND ls_prev-str <> 'IN' AND ls_prev-str <> 'CP' AND ls_prev-str <> 'NP' AND ls_prev-str <> 'IS' AND ls_prev-str <> 'EQ'. DO 2 TIMES. DELETE lt_tokens INDEX lv_index. ENDDO. EXIT. ENDIF. ENDCASE. * remove paren introduced by calculations IF ls_prev-str = '(' AND ls_next-str = ')'. DELETE lt_tokens INDEX lv_index + 1. DELETE lt_tokens INDEX lv_index - 1. EXIT. ELSEIF ls_prev-str = '|' AND ls_next-str = '|'. * quick workaround for string templates, todo DELETE lt_tokens INDEX lv_index + 1. DELETE lt_tokens INDEX lv_index - 1. EXIT. ENDIF. ENDLOOP. IF lines( lt_tokens ) = lv_before. EXIT. ENDIF. ENDDO. io_tokens->set_tokens( lt_tokens ). ENDMETHOD. METHOD remove_method_calls. DATA: lt_tokens TYPE stokesx_tab, ls_token TYPE stokesx, lv_end TYPE i, lv_restart TYPE abap_bool, lv_index TYPE i. DO. lv_restart = abap_false. lt_tokens = io_tokens->get_tokens( ). LOOP AT lt_tokens INTO ls_token. lv_index = sy-tabix. FIND REGEX '^[\w<>\/~\-=#]+\($' IN ls_token-str. IF sy-subrc = 0. lv_end = io_tokens->find_end_paren( lv_index ). CASE io_tokens->get_token( lv_index - 1 )-str. WHEN 'NEW' OR 'CONV' OR 'COND' OR 'VALUE' OR 'REF'. lv_index = lv_index - 1. ENDCASE. io_tokens->replace( iv_str = 'METHOD' iv_start = lv_index iv_end = lv_end ). lv_restart = abap_true. EXIT. ENDIF. * table comprehensions FIND REGEX '^[\w<>~\-=]+\[$' IN ls_token-str. IF sy-subrc = 0. lv_end = io_tokens->find_end_square( lv_index ). io_tokens->replace( iv_str = 'TABLEC' iv_start = lv_index iv_end = lv_end ). lv_restart = abap_true. EXIT. ENDIF. ENDLOOP. IF lv_restart = abap_false. EXIT. ENDIF. ENDDO. ENDMETHOD. METHOD remove_strings. DATA: lt_tokens TYPE stokesx_tab. lt_tokens = io_tokens->get_tokens( ). LOOP AT lt_tokens TRANSPORTING NO FIELDS WHERE type = zcl_aoc_scan=>gc_token-literal. io_tokens->replace( iv_str = 'str' iv_start = sy-tabix ). ENDLOOP. ENDMETHOD. METHOD remove_templates. DATA: lv_start TYPE i, lv_escaped TYPE i, lv_index TYPE i, lt_tokens TYPE stokesx_tab. FIELD-SYMBOLS: <ls_token> LIKE LINE OF lt_tokens. lt_tokens = io_tokens->get_tokens( ). LOOP AT lt_tokens ASSIGNING <ls_token>. lv_index = sy-tabix. IF <ls_token>-str = '|' AND lv_start IS INITIAL. <ls_token>-str = 'TEMPLATE'. lv_start = lv_index. ELSEIF <ls_token>-str = '{' AND NOT lv_start IS INITIAL. lv_escaped = lv_escaped + 1. ELSEIF <ls_token>-str = '}' AND NOT lv_start IS INITIAL. lv_escaped = lv_escaped - 1. ELSEIF <ls_token>-str = '|' AND lv_escaped = 0. DELETE lt_tokens FROM lv_start + 1 TO lv_index. ENDIF. ENDLOOP. io_tokens->set_tokens( lt_tokens ). ENDMETHOD. METHOD simplify. * todo: string templates? * todo: change identifiers, so no keywords are possible CREATE OBJECT ro_tokens EXPORTING it_tokens = it_tokens. remove_templates( ro_tokens ). remove_strings( ro_tokens ). remove_method_calls( ro_tokens ). remove_calculations( ro_tokens ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 2127, 21052, 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, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 83, 482, 641, 220, 220, 220, 220, 41876, 336, 3369, 87, 62, 8658, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 17440, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 17440, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 318, 62, 785, 1845, 1352, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 83, 482, 641, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 785, 1845, 1352, 8, 41876, 1312, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 32538, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 83, 482, 641, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 17440, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 17440, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 1662, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 83, 482, 641, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 17440, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 17440, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 11730, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 83, 482, 641, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 17440, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 17440, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4781, 62, 24396, 62, 66, 5691, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 83, 482, 641, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4781, 62, 11498, 17041, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 83, 482, 641, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 30276, 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, 220, 220, 41876, 336, 3369, 87, 62, 8658, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 83, 482, 641, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4781, 62, 9948, 3129, 602, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 83, 482, 641, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 4781, 62, 37336, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 83, 482, 641, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 2127, 21052, 62, 83, 482, 641, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 33, 6684, 2538, 1565, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 318, 62, 785, 1845, 1352, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 30001, 17, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 30001, 18, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 30001, 19, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 30001, 20, 41876, 4731, 13, 628, 198, 220, 220, 220, 300, 85, 62, 30001, 17, 796, 33245, 62, 83, 482, 641, 3784, 1136, 62, 30001, 7, 362, 1267, 12, 2536, 13, 198, 220, 220, 220, 300, 85, 62, 30001, 18, 796, 33245, 62, 83, 482, 641, 3784, 1136, 62, 30001, 7, 513, 1267, 12, 2536, 13, 198, 220, 220, 220, 300, 85, 62, 30001, 19, 796, 33245, 62, 83, 482, 641, 3784, 1136, 62, 30001, 7, 604, 1267, 12, 2536, 13, 198, 220, 220, 220, 300, 85, 62, 30001, 20, 796, 33245, 62, 83, 482, 641, 3784, 1136, 62, 30001, 7, 642, 1267, 12, 2536, 13, 628, 220, 220, 220, 374, 85, 62, 785, 1845, 1352, 796, 657, 13, 628, 220, 220, 220, 16876, 300, 85, 62, 30001, 17, 796, 705, 11929, 6, 5357, 300, 85, 62, 30001 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_aoc_check_07 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. METHODS check REDEFINITION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_aoc_check_07 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lv_position TYPE i, lv_token LIKE sy-tabix, lv_include TYPE sobj_name. FIELD-SYMBOLS: <ls_token> LIKE LINE OF io_scan->tokens, <ls_token1> LIKE LINE OF io_scan->tokens, <ls_token2> LIKE LINE OF io_scan->tokens, <ls_token3> LIKE LINE OF io_scan->tokens, <ls_statement> LIKE LINE OF io_scan->statements. LOOP AT io_scan->statements ASSIGNING <ls_statement> WHERE type = io_scan->gc_statement-standard OR type = io_scan->gc_statement-method_direct. lv_position = sy-tabix. lv_token = <ls_statement>-from. READ TABLE io_scan->tokens ASSIGNING <ls_token1> INDEX lv_token. IF sy-subrc <> 0. CONTINUE. " current loop ENDIF. lv_token = lv_token + 1. READ TABLE io_scan->tokens ASSIGNING <ls_token2> INDEX lv_token. IF sy-subrc <> 0. CONTINUE. " current loop ENDIF. lv_token = lv_token + 1. READ TABLE io_scan->tokens ASSIGNING <ls_token3> INDEX lv_token. IF sy-subrc <> 0. CONTINUE. " current loop ENDIF. IF <ls_token3>-str CP '*>(*' OR <ls_token3>-str CP '*)=>*' OR <ls_token3>-str CP '*)->*' OR <ls_token3>-str CP '(*' OR <ls_token3>-str = 'OF'. * allow dynamic calls and OLE interaction CONTINUE. ENDIF. LOOP AT io_scan->tokens ASSIGNING <ls_token> FROM <ls_statement>-from TO <ls_statement>-to WHERE str = 'RECEIVING' AND type = io_scan->gc_token-identifier. IF <ls_token1>-str = 'CALL' OR <ls_token2>-str = 'BADI'. EXIT. ENDIF. * allow if old style exceptions are part of method LOOP AT io_scan->tokens TRANSPORTING NO FIELDS FROM <ls_statement>-from TO <ls_statement>-to WHERE str = 'EXCEPTIONS' AND type = io_scan->gc_token-identifier. EXIT. ENDLOOP. IF sy-subrc = 0. EXIT. " current loop ENDIF. lv_include = io_scan->get_include( <ls_statement>-level ). inform( p_sub_obj_name = lv_include p_position = lv_position p_line = <ls_token>-row p_kind = mv_errty p_test = myname p_code = '002' ). ENDLOOP. IF <ls_token1>-str <> 'CALL' OR <ls_token2>-str <> 'METHOD'. CONTINUE. " current loop ENDIF. lv_include = io_scan->get_include( <ls_statement>-level ). inform( p_sub_obj_name = lv_include p_position = lv_position p_line = <ls_token1>-row p_kind = mv_errty p_test = myname p_code = '001' ). ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). version = '001'. position = '007'. has_attributes = abap_true. attributes_ok = abap_true. enable_rfc( ). enable_checksum( ). insert_scimessage( iv_code = '001' iv_text = 'Use functional writing style'(m01) ). insert_scimessage( iv_code = '002' iv_text = 'Use functional writing style instead of RECEIVING'(m02) ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 2998, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 198, 220, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 23772, 13, 628, 220, 220, 220, 337, 36252, 50, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 2998, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 13, 198, 198, 9, 450, 499, 11505, 7376, 4657, 198, 9, 3740, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 397, 499, 11505, 7376, 4657, 198, 9, 17168, 13789, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 9150, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 30001, 220, 220, 220, 34178, 827, 12, 8658, 844, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 17256, 220, 41876, 27355, 73, 62, 3672, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 30001, 29, 220, 220, 220, 220, 34178, 48920, 3963, 33245, 62, 35836, 3784, 83, 482, 641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 16, 29, 220, 220, 220, 34178, 48920, 3963, 33245, 62, 35836, 3784, 83, 482, 641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 17, 29, 220, 220, 220, 34178, 48920, 3963, 33245, 62, 35836, 3784, 83, 482, 641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 30001, 18, 29, 220, 220, 220, 34178, 48920, 3963, 33245, 62, 35836, 3784, 83, 482, 641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 7278, 62, 26090, 29, 34178, 48920, 3963, 33245, 62, 35836, 3784, 14269, 3196, 13, 628, 198, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 14269, 3196, 24994, 3528, 15871, 1279, 7278, 62, 26090, 29, 198, 220, 220, 220, 220, 220, 220, 220, 33411, 2099, 796, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 20307, 198, 220, 220, 220, 220, 220, 220, 220, 6375, 2099, 796, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 24396, 62, 12942, 13, 628, 220, 220, 220, 220, 220, 300, 85, 62, 9150, 796, 827, 12, 8658, 844, 13, 628, 220, 220, 220, 220, 220, 300, 85, 62, 30001, 796, 1279, 7278, 62, 26090, 29, 12, 6738, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 33245, 62, 35836, 3784, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 16, 29, 24413, 6369, 300, 85, 62, 30001, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 366, 1459, 9052, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 30001, 796, 300, 85, 62, 30001, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 33245, 62, 35836, 3784, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 17, 29, 24413, 6369, 300, 85, 62, 30001, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 366, 1459, 9052, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 30001, 796, 300, 85, 62, 30001, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 33245, 62, 35836, 3784, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 18, 29, 24413, 6369, 300, 85, 62, 30001, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 366, 1459, 9052, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 16876, 1279, 7278, 62, 30001, 18, 29, 12, 2536, 16932, 705, 9, 33994, 9, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 1279, 7278, 62, 30001, 18, 29, 12, 2536, 16932, 705, 28104, 14804, 9, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 1279, 7278, 62, 30001, 18, 29, 12, 2536, 16932, 705, 28104, 3784, 9, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 1279, 7278, 62, 30001, 18, 29, 12, 2536, 16932, 29513, 9, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 1279, 7278, 62, 30001, 18, 29, 12, 2536, 796, 705, 19238, 4458, 198, 9, 1249, 8925, 3848, 290, 440, 2538, 10375, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 83, 482, 641, 24994, 3528, 15871, 1279, 7278, 62, 30001, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 1279, 7278, 62, 26090, 29, 12, 6738, 5390, 1279, 7278, 62, 26090, 29, 12, 1462, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 965, 796, 705, 2200, 5222, 3824, 2751, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 796, 33245, 62, 35836, 3784, 36484, 62, 30001, 12, 738, 7483, 13, 628, 220, 220, 220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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_excel_reader_2007 DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. *"* public components of class ZCL_EXCEL_READER_2007 *"* do not include other source files here!!! INTERFACES zif_excel_reader . CLASS-METHODS fill_struct_from_attributes IMPORTING !ip_element TYPE REF TO if_ixml_element CHANGING !cp_structure TYPE any . PROTECTED SECTION. TYPES: *"* protected components of class ZCL_EXCEL_READER_2007 *"* do not include other source files here!!! BEGIN OF t_relationship, id TYPE string, type TYPE string, target TYPE string, targetmode TYPE string, worksheet TYPE REF TO zcl_excel_worksheet, sheetid TYPE string, "ins #235 - repeat rows/cols - needed to identify correct sheet localsheetid TYPE string, END OF t_relationship . TYPES: BEGIN OF t_fileversion, appname TYPE string, lastedited TYPE string, lowestedited TYPE string, rupbuild TYPE string, codename TYPE string, END OF t_fileversion . TYPES: BEGIN OF t_sheet, name TYPE string, sheetid TYPE string, id TYPE string, state TYPE string, END OF t_sheet . TYPES: BEGIN OF t_workbookpr, codename TYPE string, defaultthemeversion TYPE string, END OF t_workbookpr . TYPES: BEGIN OF t_sheetpr, codename TYPE string, END OF t_sheetpr . TYPES: BEGIN OF t_range, name TYPE string, hidden TYPE string, "inserted with issue #235 because Autofilters didn't passthrough localsheetid TYPE string, " issue #163 END OF t_range . TYPES: t_fills TYPE STANDARD TABLE OF REF TO zcl_excel_style_fill WITH NON-UNIQUE DEFAULT KEY . TYPES: t_borders TYPE STANDARD TABLE OF REF TO zcl_excel_style_borders WITH NON-UNIQUE DEFAULT KEY . TYPES: t_fonts TYPE STANDARD TABLE OF REF TO zcl_excel_style_font WITH NON-UNIQUE DEFAULT KEY . TYPES: t_style_refs TYPE STANDARD TABLE OF REF TO zcl_excel_style WITH NON-UNIQUE DEFAULT KEY . TYPES: BEGIN OF t_color, indexed TYPE string, rgb TYPE string, theme TYPE string, tint TYPE string, END OF t_color . TYPES: BEGIN OF t_rel_drawing, id TYPE string, content TYPE xstring, file_ext TYPE string, content_xml TYPE REF TO if_ixml_document, END OF t_rel_drawing . TYPES: t_rel_drawings TYPE STANDARD TABLE OF t_rel_drawing WITH NON-UNIQUE DEFAULT KEY . TYPES: BEGIN OF gts_external_hyperlink, id TYPE string, target TYPE string, END OF gts_external_hyperlink . TYPES: gtt_external_hyperlinks TYPE HASHED TABLE OF gts_external_hyperlink WITH UNIQUE KEY id . TYPES: BEGIN OF ty_ref_formulae, sheet TYPE REF TO zcl_excel_worksheet, row TYPE i, column TYPE i, si TYPE i, ref TYPE string, formula TYPE string, END OF ty_ref_formulae . TYPES: tyt_ref_formulae TYPE HASHED TABLE OF ty_ref_formulae WITH UNIQUE KEY sheet row column . TYPES: BEGIN OF t_shared_string, value TYPE string, rtf TYPE zexcel_t_rtf, END OF t_shared_string . TYPES: t_shared_strings TYPE STANDARD TABLE OF t_shared_string WITH DEFAULT KEY . DATA shared_strings TYPE t_shared_strings . DATA styles TYPE t_style_refs . DATA mt_ref_formulae TYPE tyt_ref_formulae . DATA mt_dxf_styles TYPE zexcel_t_styles_cond_mapping . METHODS fill_row_outlines IMPORTING !io_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel . METHODS get_from_zip_archive IMPORTING !i_filename TYPE string RETURNING VALUE(r_content) TYPE xstring RAISING zcx_excel . METHODS get_ixml_from_zip_archive IMPORTING !i_filename TYPE string !is_normalizing TYPE abap_bool DEFAULT 'X' RETURNING VALUE(r_ixml) TYPE REF TO if_ixml_document RAISING zcx_excel . METHODS load_drawing_anchor IMPORTING !io_anchor_element TYPE REF TO if_ixml_element !io_worksheet TYPE REF TO zcl_excel_worksheet !it_related_drawings TYPE t_rel_drawings . METHODS load_shared_strings IMPORTING !ip_path TYPE string RAISING zcx_excel . METHODS load_styles IMPORTING !ip_path TYPE string !ip_excel TYPE REF TO zcl_excel RAISING zcx_excel . METHODS load_dxf_styles IMPORTING !iv_path TYPE string !io_excel TYPE REF TO zcl_excel RAISING zcx_excel . METHODS load_style_borders IMPORTING !ip_xml TYPE REF TO if_ixml_document RETURNING VALUE(ep_borders) TYPE t_borders . METHODS load_style_fills IMPORTING !ip_xml TYPE REF TO if_ixml_document RETURNING VALUE(ep_fills) TYPE t_fills . METHODS load_style_font IMPORTING !io_xml_element TYPE REF TO if_ixml_element RETURNING VALUE(ro_font) TYPE REF TO zcl_excel_style_font . METHODS load_style_fonts IMPORTING !ip_xml TYPE REF TO if_ixml_document RETURNING VALUE(ep_fonts) TYPE t_fonts . METHODS load_style_num_formats IMPORTING !ip_xml TYPE REF TO if_ixml_document RETURNING VALUE(ep_num_formats) TYPE zcl_excel_style_number_format=>t_num_formats . METHODS load_workbook IMPORTING !iv_workbook_full_filename TYPE string !io_excel TYPE REF TO zcl_excel RAISING zcx_excel . METHODS load_worksheet IMPORTING !ip_path TYPE string !io_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel . METHODS load_worksheet_cond_format IMPORTING !io_ixml_worksheet TYPE REF TO if_ixml_document !io_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel . METHODS load_worksheet_cond_format_aa IMPORTING !io_ixml_rule TYPE REF TO if_ixml_element !io_style_cond TYPE REF TO zcl_excel_style_cond. METHODS load_worksheet_cond_format_ci IMPORTING !io_ixml_rule TYPE REF TO if_ixml_element !io_style_cond TYPE REF TO zcl_excel_style_cond . METHODS load_worksheet_cond_format_cs IMPORTING !io_ixml_rule TYPE REF TO if_ixml_element !io_style_cond TYPE REF TO zcl_excel_style_cond . METHODS load_worksheet_cond_format_ex IMPORTING !io_ixml_rule TYPE REF TO if_ixml_element !io_style_cond TYPE REF TO zcl_excel_style_cond . METHODS load_worksheet_cond_format_is IMPORTING !io_ixml_rule TYPE REF TO if_ixml_element !io_style_cond TYPE REF TO zcl_excel_style_cond . METHODS load_worksheet_cond_format_db IMPORTING !io_ixml_rule TYPE REF TO if_ixml_element !io_style_cond TYPE REF TO zcl_excel_style_cond . METHODS load_worksheet_cond_format_t10 IMPORTING !io_ixml_rule TYPE REF TO if_ixml_element !io_style_cond TYPE REF TO zcl_excel_style_cond . METHODS load_worksheet_drawing IMPORTING !ip_path TYPE string !io_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel . METHODS load_worksheet_hyperlinks IMPORTING !io_ixml_worksheet TYPE REF TO if_ixml_document !io_worksheet TYPE REF TO zcl_excel_worksheet !it_external_hyperlinks TYPE gtt_external_hyperlinks RAISING zcx_excel . METHODS load_worksheet_ignored_errors IMPORTING !io_ixml_worksheet TYPE REF TO if_ixml_document !io_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel . METHODS load_worksheet_pagebreaks IMPORTING !io_ixml_worksheet TYPE REF TO if_ixml_document !io_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel . METHODS load_worksheet_autofilter IMPORTING io_ixml_worksheet TYPE REF TO if_ixml_document io_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel. METHODS load_worksheet_pagemargins IMPORTING !io_ixml_worksheet TYPE REF TO if_ixml_document !io_worksheet TYPE REF TO zcl_excel_worksheet RAISING zcx_excel . CLASS-METHODS resolve_path IMPORTING !ip_path TYPE string RETURNING VALUE(rp_result) TYPE string . METHODS resolve_referenced_formulae . METHODS get_dxf_style_guid IMPORTING !io_ixml_dxf TYPE REF TO if_ixml_element !io_excel TYPE REF TO zcl_excel RETURNING VALUE(rv_style_guid) TYPE zexcel_cell_style . METHODS load_theme IMPORTING VALUE(iv_path) TYPE string !ip_excel TYPE REF TO zcl_excel RAISING zcx_excel . CONSTANTS: BEGIN OF namespace, x14ac TYPE string VALUE 'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac', vba_project TYPE string VALUE 'http://schemas.microsoft.com/office/2006/relationships/vbaProject', "#EC NEEDED for future incorporation of XLSM-reader c TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/chart', a TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/main', xdr TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing', mc TYPE string VALUE 'http://schemas.openxmlformats.org/markup-compatibility/2006', r TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', chart TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart', drawing TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing', hyperlink TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink', image TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image', office_document TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument', printer_settings TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings', shared_strings TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings', styles TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles', theme TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme', worksheet TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet', relationships TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', core_properties TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties', main TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', END OF namespace. PRIVATE SECTION. DATA zip TYPE REF TO lcl_zip_archive . DATA: gid TYPE i. METHODS create_zip_archive IMPORTING !i_xlsx_binary TYPE xstring !i_use_alternate_zip TYPE seoclsname OPTIONAL RETURNING VALUE(e_zip) TYPE REF TO lcl_zip_archive RAISING zcx_excel . METHODS read_from_applserver IMPORTING !i_filename TYPE csequence RETURNING VALUE(r_excel_data) TYPE xstring RAISING zcx_excel. METHODS read_from_local_file IMPORTING !i_filename TYPE csequence RETURNING VALUE(r_excel_data) TYPE xstring RAISING zcx_excel . ENDCLASS. CLASS zcl_excel_reader_2007 IMPLEMENTATION. METHOD create_zip_archive. CASE i_use_alternate_zip. WHEN space. e_zip = lcl_abap_zip_archive=>create( i_xlsx_binary ). WHEN OTHERS. e_zip = lcl_alternate_zip_archive=>create( i_data = i_xlsx_binary i_alternate_zip_class = i_use_alternate_zip ). ENDCASE. ENDMETHOD. METHOD fill_row_outlines. TYPES: BEGIN OF lts_row_data, row TYPE i, outline_level TYPE i, END OF lts_row_data, ltt_row_data TYPE SORTED TABLE OF lts_row_data WITH UNIQUE KEY row. DATA: lt_row_data TYPE ltt_row_data, ls_row_data LIKE LINE OF lt_row_data, lt_collapse_rows TYPE HASHED TABLE OF i WITH UNIQUE KEY table_line, lv_collapsed TYPE abap_bool, lv_outline_level TYPE i, lv_next_consecutive_row TYPE i, lt_outline_rows TYPE zcl_excel_worksheet=>mty_ts_outlines_row, ls_outline_row LIKE LINE OF lt_outline_rows, lo_row TYPE REF TO zcl_excel_row, lo_row_iterator TYPE REF TO zcl_excel_collection_iterator, lv_row_offset TYPE i, lv_row_collapse_flag TYPE i. FIELD-SYMBOLS: <ls_row_data> LIKE LINE OF lt_row_data. * First collect information about outlines ( outline leven and collapsed state ) lo_row_iterator = io_worksheet->get_rows_iterator( ). WHILE lo_row_iterator->has_next( ) = abap_true. lo_row ?= lo_row_iterator->get_next( ). ls_row_data-row = lo_row->get_row_index( ). ls_row_data-outline_level = lo_row->get_outline_level( ). IF ls_row_data-outline_level IS NOT INITIAL. INSERT ls_row_data INTO TABLE lt_row_data. ENDIF. lv_collapsed = lo_row->get_collapsed( ). IF lv_collapsed = abap_true. INSERT lo_row->get_row_index( ) INTO TABLE lt_collapse_rows. ENDIF. ENDWHILE. * Now parse this information - we need consecutive rows - any gap will create a new outline DO 7 TIMES. " max number of outlines allowed lv_outline_level = sy-index. CLEAR lv_next_consecutive_row. CLEAR ls_outline_row. LOOP AT lt_row_data ASSIGNING <ls_row_data> WHERE outline_level >= lv_outline_level. IF lv_next_consecutive_row <> <ls_row_data>-row " A gap --> close all open outlines AND lv_next_consecutive_row IS NOT INITIAL. " First time in loop. INSERT ls_outline_row INTO TABLE lt_outline_rows. CLEAR: ls_outline_row. ENDIF. IF ls_outline_row-row_from IS INITIAL. ls_outline_row-row_from = <ls_row_data>-row. ENDIF. ls_outline_row-row_to = <ls_row_data>-row. lv_next_consecutive_row = <ls_row_data>-row + 1. ENDLOOP. IF ls_outline_row-row_from IS NOT INITIAL. INSERT ls_outline_row INTO TABLE lt_outline_rows. ENDIF. ENDDO. * lt_outline_rows holds all outline information * we now need to determine whether the outline is collapsed or not LOOP AT lt_outline_rows INTO ls_outline_row. IF io_worksheet->zif_excel_sheet_properties~summarybelow = zif_excel_sheet_properties=>c_below_off. lv_row_collapse_flag = ls_outline_row-row_from - 1. ELSE. lv_row_collapse_flag = ls_outline_row-row_to + 1. ENDIF. READ TABLE lt_collapse_rows TRANSPORTING NO FIELDS WITH TABLE KEY table_line = lv_row_collapse_flag. IF sy-subrc = 0. ls_outline_row-collapsed = abap_true. ENDIF. io_worksheet->set_row_outline( iv_row_from = ls_outline_row-row_from iv_row_to = ls_outline_row-row_to iv_collapsed = ls_outline_row-collapsed ). ENDLOOP. * Finally purge outline information ( collapsed state, outline leve) from row_dimensions, since we want to keep these in the outline-table lo_row_iterator = io_worksheet->get_rows_iterator( ). WHILE lo_row_iterator->has_next( ) = abap_true. lo_row ?= lo_row_iterator->get_next( ). lo_row->set_outline_level( 0 ). lo_row->set_collapsed( abap_false ). ENDWHILE. ENDMETHOD. METHOD fill_struct_from_attributes. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-07 * - ... * changes: renaming variables to naming conventions * aligning code * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* DATA: lv_name TYPE string, lo_attributes TYPE REF TO if_ixml_named_node_map, lo_attribute TYPE REF TO if_ixml_attribute, lo_iterator TYPE REF TO if_ixml_node_iterator. FIELD-SYMBOLS: <component> TYPE any. *--------------------------------------------------------------------* * The values of named attributes of a tag are being read and moved into corresponding * fields of given structure * Behaves like move-corresonding tag to structure * Example: * <Relationship Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Id="rId3"/> * Here the attributes are Target, Type and Id. Thus if the passed * structure has fieldnames Id and Target these would be filled with * "rId3" and "docProps/app.xml" respectively *--------------------------------------------------------------------* CLEAR cp_structure. lo_attributes = ip_element->get_attributes( ). lo_iterator = lo_attributes->create_iterator( ). lo_attribute ?= lo_iterator->get_next( ). WHILE lo_attribute IS BOUND. lv_name = lo_attribute->get_name( ). TRANSLATE lv_name TO UPPER CASE. ASSIGN COMPONENT lv_name OF STRUCTURE cp_structure TO <component>. IF sy-subrc = 0. <component> = lo_attribute->get_value( ). ENDIF. lo_attribute ?= lo_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD get_dxf_style_guid. DATA: lo_ixml_dxf_children TYPE REF TO if_ixml_node_list, lo_ixml_iterator_dxf_children TYPE REF TO if_ixml_node_iterator, lo_ixml_dxf_child TYPE REF TO if_ixml_element, lv_dxf_child_type TYPE string, lo_ixml_element TYPE REF TO if_ixml_element, lo_ixml_element2 TYPE REF TO if_ixml_element, lv_val TYPE string. DATA: ls_cstyle TYPE zexcel_s_cstyle_complete, ls_cstylex TYPE zexcel_s_cstylex_complete. lo_ixml_dxf_children = io_ixml_dxf->get_children( ). lo_ixml_iterator_dxf_children = lo_ixml_dxf_children->create_iterator( ). lo_ixml_dxf_child ?= lo_ixml_iterator_dxf_children->get_next( ). WHILE lo_ixml_dxf_child IS BOUND. lv_dxf_child_type = lo_ixml_dxf_child->get_name( ). CASE lv_dxf_child_type. WHEN 'font'. *--------------------------------------------------------------------* * italic *--------------------------------------------------------------------* lo_ixml_element = lo_ixml_dxf_child->find_from_name_ns( name = 'i' uri = namespace-main ). IF lo_ixml_element IS BOUND. CLEAR lv_val. lv_val = lo_ixml_element->get_attribute_ns( 'val' ). IF lv_val <> '0'. ls_cstyle-font-italic = 'X'. ls_cstylex-font-italic = 'X'. ENDIF. ENDIF. *--------------------------------------------------------------------* * bold *--------------------------------------------------------------------* lo_ixml_element = lo_ixml_dxf_child->find_from_name_ns( name = 'b' uri = namespace-main ). IF lo_ixml_element IS BOUND. CLEAR lv_val. lv_val = lo_ixml_element->get_attribute_ns( 'val' ). IF lv_val <> '0'. ls_cstyle-font-bold = 'X'. ls_cstylex-font-bold = 'X'. ENDIF. ENDIF. *--------------------------------------------------------------------* * strikethrough *--------------------------------------------------------------------* lo_ixml_element = lo_ixml_dxf_child->find_from_name_ns( name = 'strike' uri = namespace-main ). IF lo_ixml_element IS BOUND. CLEAR lv_val. lv_val = lo_ixml_element->get_attribute_ns( 'val' ). IF lv_val <> '0'. ls_cstyle-font-strikethrough = 'X'. ls_cstylex-font-strikethrough = 'X'. ENDIF. ENDIF. *--------------------------------------------------------------------* * color *--------------------------------------------------------------------* lo_ixml_element = lo_ixml_dxf_child->find_from_name_ns( name = 'color' uri = namespace-main ). IF lo_ixml_element IS BOUND. CLEAR lv_val. lv_val = lo_ixml_element->get_attribute_ns( 'rgb' ). ls_cstyle-font-color-rgb = lv_val. ls_cstylex-font-color-rgb = 'X'. ENDIF. WHEN 'fill'. lo_ixml_element = lo_ixml_dxf_child->find_from_name_ns( name = 'patternFill' uri = namespace-main ). IF lo_ixml_element IS BOUND. lo_ixml_element2 = lo_ixml_dxf_child->find_from_name_ns( name = 'bgColor' uri = namespace-main ). IF lo_ixml_element2 IS BOUND. CLEAR lv_val. lv_val = lo_ixml_element2->get_attribute_ns( 'rgb' ). IF lv_val IS NOT INITIAL. ls_cstyle-fill-filltype = zcl_excel_style_fill=>c_fill_solid. ls_cstyle-fill-bgcolor-rgb = lv_val. ls_cstylex-fill-filltype = 'X'. ls_cstylex-fill-bgcolor-rgb = 'X'. ENDIF. CLEAR lv_val. lv_val = lo_ixml_element2->get_attribute_ns( 'theme' ). IF lv_val IS NOT INITIAL. ls_cstyle-fill-filltype = zcl_excel_style_fill=>c_fill_solid. ls_cstyle-fill-bgcolor-theme = lv_val. ls_cstylex-fill-filltype = 'X'. ls_cstylex-fill-bgcolor-theme = 'X'. ENDIF. CLEAR lv_val. ENDIF. ENDIF. ENDCASE. lo_ixml_dxf_child ?= lo_ixml_iterator_dxf_children->get_next( ). ENDWHILE. rv_style_guid = io_excel->get_static_cellstyle_guid( ip_cstyle_complete = ls_cstyle ip_cstylex_complete = ls_cstylex ). ENDMETHOD. METHOD get_from_zip_archive. ASSERT zip IS BOUND. " zip object has to exist at this point r_content = zip->read( i_filename ). ENDMETHOD. METHOD get_ixml_from_zip_archive. DATA: lv_content TYPE xstring, lo_ixml TYPE REF TO if_ixml, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_istream TYPE REF TO if_ixml_istream, lo_parser TYPE REF TO if_ixml_parser. *--------------------------------------------------------------------* * Load XML file from archive into an input stream, * and parse that stream into an ixml object *--------------------------------------------------------------------* lv_content = me->get_from_zip_archive( i_filename ). lo_ixml = cl_ixml=>create( ). lo_streamfactory = lo_ixml->create_stream_factory( ). lo_istream = lo_streamfactory->create_istream_xstring( lv_content ). r_ixml = lo_ixml->create_document( ). lo_parser = lo_ixml->create_parser( stream_factory = lo_streamfactory istream = lo_istream document = r_ixml ). lo_parser->set_normalizing( is_normalizing ). lo_parser->set_validating( mode = if_ixml_parser=>co_no_validation ). lo_parser->parse( ). ENDMETHOD. METHOD load_drawing_anchor. TYPES: BEGIN OF t_c_nv_pr, name TYPE string, id TYPE string, END OF t_c_nv_pr. TYPES: BEGIN OF t_blip, cstate TYPE string, embed TYPE string, END OF t_blip. TYPES: BEGIN OF t_chart, id TYPE string, END OF t_chart. TYPES: BEGIN OF t_ext, cx TYPE string, cy TYPE string, END OF t_ext. CONSTANTS: lc_xml_attr_true TYPE string VALUE 'true', lc_xml_attr_true_int TYPE string VALUE '1'. CONSTANTS: lc_rel_chart TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart', lc_rel_image TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image'. DATA: lo_drawing TYPE REF TO zcl_excel_drawing, node TYPE REF TO if_ixml_element, node2 TYPE REF TO if_ixml_element, node3 TYPE REF TO if_ixml_element, node4 TYPE REF TO if_ixml_element, ls_upper TYPE zexcel_drawing_location, ls_lower TYPE zexcel_drawing_location, ls_size TYPE zexcel_drawing_size, ext TYPE t_ext, lv_content TYPE xstring, lv_relation_id TYPE string, lv_title TYPE string, cnvpr TYPE t_c_nv_pr, blip TYPE t_blip, chart TYPE t_chart, drawing_type TYPE zexcel_drawing_type, rel_drawing TYPE t_rel_drawing. node ?= io_anchor_element->find_from_name_ns( name = 'from' uri = namespace-xdr ). CHECK node IS NOT INITIAL. node2 ?= node->find_from_name_ns( name = 'col' uri = namespace-xdr ). ls_upper-col = node2->get_value( ). node2 ?= node->find_from_name_ns( name = 'row' uri = namespace-xdr ). ls_upper-row = node2->get_value( ). node2 ?= node->find_from_name_ns( name = 'colOff' uri = namespace-xdr ). ls_upper-col_offset = node2->get_value( ). node2 ?= node->find_from_name_ns( name = 'rowOff' uri = namespace-xdr ). ls_upper-row_offset = node2->get_value( ). node ?= io_anchor_element->find_from_name_ns( name = 'ext' uri = namespace-xdr ). IF node IS INITIAL. CLEAR ls_size. ELSE. me->fill_struct_from_attributes( EXPORTING ip_element = node CHANGING cp_structure = ext ). ls_size-width = ext-cx. ls_size-height = ext-cy. TRY. ls_size-width = zcl_excel_drawing=>emu2pixel( ls_size-width ). CATCH cx_root. ENDTRY. TRY. ls_size-height = zcl_excel_drawing=>emu2pixel( ls_size-height ). CATCH cx_root. ENDTRY. ENDIF. node ?= io_anchor_element->find_from_name_ns( name = 'to' uri = namespace-xdr ). IF node IS INITIAL. CLEAR ls_lower. ELSE. node2 ?= node->find_from_name_ns( name = 'col' uri = namespace-xdr ). ls_lower-col = node2->get_value( ). node2 ?= node->find_from_name_ns( name = 'row' uri = namespace-xdr ). ls_lower-row = node2->get_value( ). node2 ?= node->find_from_name_ns( name = 'colOff' uri = namespace-xdr ). ls_lower-col_offset = node2->get_value( ). node2 ?= node->find_from_name_ns( name = 'rowOff' uri = namespace-xdr ). ls_lower-row_offset = node2->get_value( ). ENDIF. node ?= io_anchor_element->find_from_name_ns( name = 'pic' uri = namespace-xdr ). IF node IS NOT INITIAL. node2 ?= node->find_from_name_ns( name = 'nvPicPr' uri = namespace-xdr ). CHECK node2 IS NOT INITIAL. node3 ?= node2->find_from_name_ns( name = 'cNvPr' uri = namespace-xdr ). CHECK node3 IS NOT INITIAL. me->fill_struct_from_attributes( EXPORTING ip_element = node3 CHANGING cp_structure = cnvpr ). lv_title = cnvpr-name. node2 ?= node->find_from_name_ns( name = 'blipFill' uri = namespace-xdr ). CHECK node2 IS NOT INITIAL. node3 ?= node2->find_from_name_ns( name = 'blip' uri = namespace-a ). CHECK node3 IS NOT INITIAL. me->fill_struct_from_attributes( EXPORTING ip_element = node3 CHANGING cp_structure = blip ). lv_relation_id = blip-embed. drawing_type = zcl_excel_drawing=>type_image. ENDIF. node ?= io_anchor_element->find_from_name_ns( name = 'graphicFrame' uri = namespace-xdr ). IF node IS NOT INITIAL. node2 ?= node->find_from_name_ns( name = 'nvGraphicFramePr' uri = namespace-xdr ). CHECK node2 IS NOT INITIAL. node3 ?= node2->find_from_name_ns( name = 'cNvPr' uri = namespace-xdr ). CHECK node3 IS NOT INITIAL. me->fill_struct_from_attributes( EXPORTING ip_element = node3 CHANGING cp_structure = cnvpr ). lv_title = cnvpr-name. node2 ?= node->find_from_name_ns( name = 'graphic' uri = namespace-a ). CHECK node2 IS NOT INITIAL. node3 ?= node2->find_from_name_ns( name = 'graphicData' uri = namespace-a ). CHECK node3 IS NOT INITIAL. node4 ?= node2->find_from_name_ns( name = 'chart' uri = namespace-c ). CHECK node4 IS NOT INITIAL. me->fill_struct_from_attributes( EXPORTING ip_element = node4 CHANGING cp_structure = chart ). lv_relation_id = chart-id. drawing_type = zcl_excel_drawing=>type_chart. ENDIF. lo_drawing = io_worksheet->excel->add_new_drawing( ip_type = drawing_type ip_title = lv_title ). io_worksheet->add_drawing( lo_drawing ). lo_drawing->set_position2( EXPORTING ip_from = ls_upper ip_to = ls_lower ). READ TABLE it_related_drawings INTO rel_drawing WITH KEY id = lv_relation_id. lo_drawing->set_media( EXPORTING ip_media = rel_drawing-content ip_media_type = rel_drawing-file_ext ip_width = ls_size-width ip_height = ls_size-height ). IF drawing_type = zcl_excel_drawing=>type_chart. * Begin fix for Issue #551 DATA: lo_tmp_node_2 TYPE REF TO if_ixml_element. lo_tmp_node_2 ?= rel_drawing-content_xml->find_from_name_ns( name = 'pieChart' uri = namespace-c ). IF lo_tmp_node_2 IS NOT INITIAL. lo_drawing->graph_type = zcl_excel_drawing=>c_graph_pie. ELSE. lo_tmp_node_2 ?= rel_drawing-content_xml->find_from_name_ns( name = 'barChart' uri = namespace-c ). IF lo_tmp_node_2 IS NOT INITIAL. lo_drawing->graph_type = zcl_excel_drawing=>c_graph_bars. ELSE. lo_tmp_node_2 ?= rel_drawing-content_xml->find_from_name_ns( name = 'lineChart' uri = namespace-c ). IF lo_tmp_node_2 IS NOT INITIAL. lo_drawing->graph_type = zcl_excel_drawing=>c_graph_line. ENDIF. ENDIF. ENDIF. * End fix for issue #551 "-------------Added by Alessandro Iannacci - Should load chart attributes lo_drawing->load_chart_attributes( rel_drawing-content_xml ). ENDIF. ENDMETHOD. METHOD load_dxf_styles. DATA: lo_styles_xml TYPE REF TO if_ixml_document, lo_node_dxfs TYPE REF TO if_ixml_element, lo_nodes_dxf TYPE REF TO if_ixml_node_collection, lo_iterator_dxf TYPE REF TO if_ixml_node_iterator, lo_node_dxf TYPE REF TO if_ixml_element, lv_dxf_count TYPE i. FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF mt_dxf_styles. *--------------------------------------------------------------------* * Look for dxfs-node *--------------------------------------------------------------------* lo_styles_xml = me->get_ixml_from_zip_archive( iv_path ). lo_node_dxfs = lo_styles_xml->find_from_name_ns( name = 'dxfs' uri = namespace-main ). CHECK lo_node_dxfs IS BOUND. *--------------------------------------------------------------------* * loop through all dxf-nodes and create style for each *--------------------------------------------------------------------* lo_nodes_dxf ?= lo_node_dxfs->get_elements_by_tag_name_ns( name = 'dxf' uri = namespace-main ). lo_iterator_dxf = lo_nodes_dxf->create_iterator( ). lo_node_dxf ?= lo_iterator_dxf->get_next( ). WHILE lo_node_dxf IS BOUND. APPEND INITIAL LINE TO mt_dxf_styles ASSIGNING <ls_dxf_style>. <ls_dxf_style>-dxf = lv_dxf_count. " We start counting at 0 ADD 1 TO lv_dxf_count. " prepare next entry <ls_dxf_style>-guid = get_dxf_style_guid( io_ixml_dxf = lo_node_dxf io_excel = io_excel ). lo_node_dxf ?= lo_iterator_dxf->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_shared_strings. *--------------------------------------------------------------------* * ToDos: * 2do§1 Support partial formatting of strings in cells *--------------------------------------------------------------------* *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-11 * - ... * changes: renaming variables to naming conventions * renaming variables to indicate what they are used for * aligning code * adding comments to explain what we are trying to achieve * rewriting code for better readibility *--------------------------------------------------------------------* DATA: lo_shared_strings_xml TYPE REF TO if_ixml_document, lo_node_si TYPE REF TO if_ixml_element, lo_node_si_child TYPE REF TO if_ixml_element, lo_node_r_child_t TYPE REF TO if_ixml_element, lo_node_r_child_rpr TYPE REF TO if_ixml_element, lo_font TYPE REF TO zcl_excel_style_font, ls_rtf TYPE zexcel_s_rtf, lv_current_offset TYPE int2, lv_tag_name TYPE string, lv_node_value TYPE string. FIELD-SYMBOLS: <ls_shared_string> LIKE LINE OF me->shared_strings. *--------------------------------------------------------------------* * §1 Parse shared strings file and get into internal table * So far I have encountered 2 ways how a string can be represented in the shared strings file * §1.1 - "simple" strings * §1.2 - rich text formatted strings * Following is an example how this file could be set up; 2 strings in simple formatting, 3rd string rich textformatted * <?xml version="1.0" encoding="UTF-8" standalone="true"?> * <sst uniqueCount="6" count="6" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"> * <si> * <t>This is a teststring 1</t> * </si> * <si> * <t>This is a teststring 2</t> * </si> * <si> * <r> * <t>T</t> * </r> * <r> * <rPr> * <sz val="11"/> * <color rgb="FFFF0000"/> * <rFont val="Calibri"/> * <family val="2"/> * <scheme val="minor"/> * </rPr> * <t xml:space="preserve">his is a </t> * </r> * <r> * <rPr> * <sz val="11"/> * <color theme="1"/> * <rFont val="Calibri"/> * <family val="2"/> * <scheme val="minor"/> * </rPr> * <t>teststring 3</t> * </r> * </si> * </sst> *--------------------------------------------------------------------* lo_shared_strings_xml = me->get_ixml_from_zip_archive( i_filename = ip_path is_normalizing = space ). " NO!!! normalizing - otherwise leading blanks will be omitted and that is not really desired for the stringtable lo_node_si ?= lo_shared_strings_xml->find_from_name_ns( name = 'si' uri = namespace-main ). WHILE lo_node_si IS BOUND. APPEND INITIAL LINE TO me->shared_strings ASSIGNING <ls_shared_string>. " Each <si>-entry in the xml-file must lead to an entry in our stringtable lo_node_si_child ?= lo_node_si->get_first_child( ). IF lo_node_si_child IS BOUND. lv_tag_name = lo_node_si_child->get_name( ). IF lv_tag_name = 't'. *--------------------------------------------------------------------* * §1.1 - "simple" strings * Example: see above *--------------------------------------------------------------------* <ls_shared_string>-value = lo_node_si_child->get_value( ). ELSE. *--------------------------------------------------------------------* * §1.2 - rich text formatted strings * it is sufficient to strip the <t>...</t> tag from each <r>-tag and concatenate these * as long as rich text formatting is not supported (2do§1) ignore all info about formatting * Example: see above *--------------------------------------------------------------------* CLEAR: lv_current_offset. WHILE lo_node_si_child IS BOUND. " actually these children of <si> are <r>-tags CLEAR: ls_rtf. " extracting rich text formating data lo_node_r_child_rpr ?= lo_node_si_child->find_from_name_ns( name = 'rPr' uri = namespace-main ). IF lo_node_r_child_rpr IS BOUND. lo_font = load_style_font( lo_node_r_child_rpr ). ls_rtf-font = lo_font->get_structure( ). ENDIF. ls_rtf-offset = lv_current_offset. " extract the <t>...</t> part of each <r>-tag lo_node_r_child_t ?= lo_node_si_child->find_from_name_ns( name = 't' uri = namespace-main ). IF lo_node_r_child_t IS BOUND. lv_node_value = lo_node_r_child_t->get_value( ). CONCATENATE <ls_shared_string>-value lv_node_value INTO <ls_shared_string>-value RESPECTING BLANKS. ls_rtf-length = strlen( lv_node_value ). ENDIF. lv_current_offset = strlen( <ls_shared_string>-value ). APPEND ls_rtf TO <ls_shared_string>-rtf. lo_node_si_child ?= lo_node_si_child->get_next( ). ENDWHILE. ENDIF. ENDIF. lo_node_si ?= lo_node_si->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_styles. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (wip ) 2012-11-25 * - ... * changes: renaming variables and types to naming conventions * aligning code * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* TYPES: BEGIN OF lty_xf, applyalignment TYPE string, applyborder TYPE string, applyfill TYPE string, applyfont TYPE string, applynumberformat TYPE string, applyprotection TYPE string, borderid TYPE string, fillid TYPE string, fontid TYPE string, numfmtid TYPE string, pivotbutton TYPE string, quoteprefix TYPE string, xfid TYPE string, END OF lty_xf. TYPES: BEGIN OF lty_alignment, horizontal TYPE string, indent TYPE string, justifylastline TYPE string, readingorder TYPE string, relativeindent TYPE string, shrinktofit TYPE string, textrotation TYPE string, vertical TYPE string, wraptext TYPE string, END OF lty_alignment. TYPES: BEGIN OF lty_protection, hidden TYPE string, locked TYPE string, END OF lty_protection. DATA: lo_styles_xml TYPE REF TO if_ixml_document, lo_style TYPE REF TO zcl_excel_style, lt_num_formats TYPE zcl_excel_style_number_format=>t_num_formats, lt_fills TYPE t_fills, lt_borders TYPE t_borders, lt_fonts TYPE t_fonts, ls_num_format TYPE zcl_excel_style_number_format=>t_num_format, ls_fill TYPE REF TO zcl_excel_style_fill, ls_cell_border TYPE REF TO zcl_excel_style_borders, ls_font TYPE REF TO zcl_excel_style_font, lo_node_cellxfs TYPE REF TO if_ixml_element, lo_node_cellxfs_xf TYPE REF TO if_ixml_element, lo_node_cellxfs_xf_alignment TYPE REF TO if_ixml_element, lo_node_cellxfs_xf_protection TYPE REF TO if_ixml_element, lo_nodes_xf TYPE REF TO if_ixml_node_collection, lo_iterator_cellxfs TYPE REF TO if_ixml_node_iterator, ls_xf TYPE lty_xf, ls_alignment TYPE lty_alignment, ls_protection TYPE lty_protection, lv_index TYPE i. *--------------------------------------------------------------------* * To build a complete style that fully describes how a cell looks like * we need the various parts * §1 - Numberformat * §2 - Fillstyle * §3 - Borders * §4 - Font * §5 - Alignment * §6 - Protection * Following is an example how this part of a file could be set up * ... * parts with various formatinformation - see §1,§2,§3,§4 * ... * <cellXfs count="26"> * <xf numFmtId="0" borderId="0" fillId="0" fontId="0" xfId="0"/> * <xf numFmtId="0" borderId="0" fillId="2" fontId="0" xfId="0" applyFill="1"/> * <xf numFmtId="0" borderId="1" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/> * <xf numFmtId="0" borderId="2" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/> * <xf numFmtId="0" borderId="3" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/> * <xf numFmtId="0" borderId="4" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/> * <xf numFmtId="0" borderId="0" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/> * ... * </cellXfs> *--------------------------------------------------------------------* lo_styles_xml = me->get_ixml_from_zip_archive( ip_path ). *--------------------------------------------------------------------* * The styles are build up from * §1 number formats * §2 fill styles * §3 border styles * §4 fonts * These need to be read before we can try to build up a complete * style that describes the look of a cell *--------------------------------------------------------------------* lt_num_formats = load_style_num_formats( lo_styles_xml ). " §1 lt_fills = load_style_fills( lo_styles_xml ). " §2 lt_borders = load_style_borders( lo_styles_xml ). " §3 lt_fonts = load_style_fonts( lo_styles_xml ). " §4 *--------------------------------------------------------------------* * Now everything is prepared to build a "full" style *--------------------------------------------------------------------* lo_node_cellxfs = lo_styles_xml->find_from_name_ns( name = 'cellXfs' uri = namespace-main ). IF lo_node_cellxfs IS BOUND. lo_nodes_xf = lo_node_cellxfs->get_elements_by_tag_name_ns( name = 'xf' uri = namespace-main ). lo_iterator_cellxfs = lo_nodes_xf->create_iterator( ). lo_node_cellxfs_xf ?= lo_iterator_cellxfs->get_next( ). WHILE lo_node_cellxfs_xf IS BOUND. lo_style = ip_excel->add_new_style( ). fill_struct_from_attributes( EXPORTING ip_element = lo_node_cellxfs_xf CHANGING cp_structure = ls_xf ). *--------------------------------------------------------------------* * §2 fill style *--------------------------------------------------------------------* IF ls_xf-applyfill = '1' AND ls_xf-fillid IS NOT INITIAL. lv_index = ls_xf-fillid + 1. READ TABLE lt_fills INTO ls_fill INDEX lv_index. IF sy-subrc = 0. lo_style->fill = ls_fill. ENDIF. ENDIF. *--------------------------------------------------------------------* * §1 number format *--------------------------------------------------------------------* IF ls_xf-numfmtid IS NOT INITIAL. READ TABLE lt_num_formats INTO ls_num_format WITH TABLE KEY id = ls_xf-numfmtid. IF sy-subrc = 0. lo_style->number_format = ls_num_format-format. ENDIF. ENDIF. *--------------------------------------------------------------------* * §3 border style *--------------------------------------------------------------------* IF ls_xf-applyborder = '1' AND ls_xf-borderid IS NOT INITIAL. lv_index = ls_xf-borderid + 1. READ TABLE lt_borders INTO ls_cell_border INDEX lv_index. IF sy-subrc = 0. lo_style->borders = ls_cell_border. ENDIF. ENDIF. *--------------------------------------------------------------------* * §4 font *--------------------------------------------------------------------* IF ls_xf-applyfont = '1' AND ls_xf-fontid IS NOT INITIAL. lv_index = ls_xf-fontid + 1. READ TABLE lt_fonts INTO ls_font INDEX lv_index. IF sy-subrc = 0. lo_style->font = ls_font. ENDIF. ENDIF. *--------------------------------------------------------------------* * §5 - Alignment *--------------------------------------------------------------------* lo_node_cellxfs_xf_alignment ?= lo_node_cellxfs_xf->find_from_name_ns( name = 'alignment' uri = namespace-main ). IF lo_node_cellxfs_xf_alignment IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node_cellxfs_xf_alignment CHANGING cp_structure = ls_alignment ). IF ls_alignment-horizontal IS NOT INITIAL. lo_style->alignment->horizontal = ls_alignment-horizontal. ENDIF. IF ls_alignment-vertical IS NOT INITIAL. lo_style->alignment->vertical = ls_alignment-vertical. ENDIF. IF ls_alignment-textrotation IS NOT INITIAL. lo_style->alignment->textrotation = ls_alignment-textrotation. ENDIF. IF ls_alignment-wraptext = '1' OR ls_alignment-wraptext = 'true'. lo_style->alignment->wraptext = abap_true. ENDIF. IF ls_alignment-shrinktofit = '1' OR ls_alignment-shrinktofit = 'true'. lo_style->alignment->shrinktofit = abap_true. ENDIF. IF ls_alignment-indent IS NOT INITIAL. lo_style->alignment->indent = ls_alignment-indent. ENDIF. ENDIF. *--------------------------------------------------------------------* * §6 - Protection *--------------------------------------------------------------------* lo_node_cellxfs_xf_protection ?= lo_node_cellxfs_xf->find_from_name_ns( name = 'protection' uri = namespace-main ). IF lo_node_cellxfs_xf_protection IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node_cellxfs_xf_protection CHANGING cp_structure = ls_protection ). IF ls_protection-locked = '1' OR ls_protection-locked = 'true'. lo_style->protection->locked = zcl_excel_style_protection=>c_protection_locked. ELSE. lo_style->protection->locked = zcl_excel_style_protection=>c_protection_unlocked. ENDIF. IF ls_protection-hidden = '1' OR ls_protection-hidden = 'true'. lo_style->protection->hidden = zcl_excel_style_protection=>c_protection_hidden. ELSE. lo_style->protection->hidden = zcl_excel_style_protection=>c_protection_unhidden. ENDIF. ENDIF. INSERT lo_style INTO TABLE me->styles. lo_node_cellxfs_xf ?= lo_iterator_cellxfs->get_next( ). ENDWHILE. ENDIF. ENDMETHOD. METHOD load_style_borders. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-25 * - ... * changes: renaming variables and types to naming conventions * aligning code * renaming variables to indicate what they are used for * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* DATA: lo_node_border TYPE REF TO if_ixml_element, lo_node_bordertype TYPE REF TO if_ixml_element, lo_node_bordercolor TYPE REF TO if_ixml_element, lo_cell_border TYPE REF TO zcl_excel_style_borders, lo_border TYPE REF TO zcl_excel_style_border, ls_color TYPE t_color. *--------------------------------------------------------------------* * We need a table of used borderformats to build up our styles * §1 A cell has 4 outer borders and 2 diagonal "borders" * These borders can be formatted separately but the diagonal borders * are always being formatted the same * We'll parse through the <border>-tag for each of the bordertypes * §2 and read the corresponding formatting information * Following is an example how this part of a file could be set up * <border diagonalDown="1"> * <left style="mediumDashDotDot"> * <color rgb="FFFF0000"/> * </left> * <right/> * <top style="thick"> * <color rgb="FFFF0000"/> * </top> * <bottom style="thick"> * <color rgb="FFFF0000"/> * </bottom> * <diagonal style="thick"> * <color rgb="FFFF0000"/> * </diagonal> * </border> *--------------------------------------------------------------------* lo_node_border ?= ip_xml->find_from_name_ns( name = 'border' uri = namespace-main ). WHILE lo_node_border IS BOUND. CREATE OBJECT lo_cell_border. *--------------------------------------------------------------------* * Diagonal borderlines are formatted the equally. Determine what kind of diagonal borders are present if any *--------------------------------------------------------------------* * DiagonalNone = 0 * DiagonalUp = 1 * DiagonalDown = 2 * DiagonalBoth = 3 *--------------------------------------------------------------------* IF lo_node_border->get_attribute( 'diagonalDown' ) IS NOT INITIAL. ADD zcl_excel_style_borders=>c_diagonal_down TO lo_cell_border->diagonal_mode. ENDIF. IF lo_node_border->get_attribute( 'diagonalUp' ) IS NOT INITIAL. ADD zcl_excel_style_borders=>c_diagonal_up TO lo_cell_border->diagonal_mode. ENDIF. lo_node_bordertype ?= lo_node_border->get_first_child( ). WHILE lo_node_bordertype IS BOUND. *--------------------------------------------------------------------* * §1 Determine what kind of border we are talking about *--------------------------------------------------------------------* * Up, down, left, right, diagonal *--------------------------------------------------------------------* CREATE OBJECT lo_border. CASE lo_node_bordertype->get_name( ). WHEN 'left'. lo_cell_border->left = lo_border. WHEN 'right'. lo_cell_border->right = lo_border. WHEN 'top'. lo_cell_border->top = lo_border. WHEN 'bottom'. lo_cell_border->down = lo_border. WHEN 'diagonal'. lo_cell_border->diagonal = lo_border. ENDCASE. *--------------------------------------------------------------------* * §2 Read the border-formatting *--------------------------------------------------------------------* lo_border->border_style = lo_node_bordertype->get_attribute( 'style' ). lo_node_bordercolor ?= lo_node_bordertype->find_from_name_ns( name = 'color' uri = namespace-main ). IF lo_node_bordercolor IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node_bordercolor CHANGING cp_structure = ls_color ). lo_border->border_color-rgb = ls_color-rgb. IF ls_color-indexed IS NOT INITIAL. lo_border->border_color-indexed = ls_color-indexed. ENDIF. IF ls_color-theme IS NOT INITIAL. lo_border->border_color-theme = ls_color-theme. ENDIF. lo_border->border_color-tint = ls_color-tint. ENDIF. lo_node_bordertype ?= lo_node_bordertype->get_next( ). ENDWHILE. INSERT lo_cell_border INTO TABLE ep_borders. lo_node_border ?= lo_node_border->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_style_fills. *--------------------------------------------------------------------* * ToDos: * 2do§1 Support gradientFill *--------------------------------------------------------------------* *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-25 * - ... * changes: renaming variables and types to naming conventions * aligning code * commenting on problems/future enhancements/todos we already know of or should decide upon * adding comments to explain what we are trying to achieve * renaming variables to indicate what they are used for *--------------------------------------------------------------------* DATA: lv_value TYPE string, lo_node_fill TYPE REF TO if_ixml_element, lo_node_fill_child TYPE REF TO if_ixml_element, lo_node_bgcolor TYPE REF TO if_ixml_element, lo_node_fgcolor TYPE REF TO if_ixml_element, lo_node_stop TYPE REF TO if_ixml_element, lo_fill TYPE REF TO zcl_excel_style_fill, ls_color TYPE t_color. *--------------------------------------------------------------------* * We need a table of used fillformats to build up our styles * Following is an example how this part of a file could be set up * <fill> * <patternFill patternType="gray125"/> * </fill> * <fill> * <patternFill patternType="solid"> * <fgColor rgb="FFFFFF00"/> * <bgColor indexed="64"/> * </patternFill> * </fill> *--------------------------------------------------------------------* lo_node_fill ?= ip_xml->find_from_name_ns( name = 'fill' uri = namespace-main ). WHILE lo_node_fill IS BOUND. CREATE OBJECT lo_fill. lo_node_fill_child ?= lo_node_fill->get_first_child( ). lv_value = lo_node_fill_child->get_name( ). CASE lv_value. *--------------------------------------------------------------------* * Patternfill *--------------------------------------------------------------------* WHEN 'patternFill'. lo_fill->filltype = lo_node_fill_child->get_attribute( 'patternType' ). *--------------------------------------------------------------------* * Patternfill - background color *--------------------------------------------------------------------* lo_node_bgcolor = lo_node_fill_child->find_from_name_ns( name = 'bgColor' uri = namespace-main ). IF lo_node_bgcolor IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node_bgcolor CHANGING cp_structure = ls_color ). lo_fill->bgcolor-rgb = ls_color-rgb. IF ls_color-indexed IS NOT INITIAL. lo_fill->bgcolor-indexed = ls_color-indexed. ENDIF. IF ls_color-theme IS NOT INITIAL. lo_fill->bgcolor-theme = ls_color-theme. ENDIF. lo_fill->bgcolor-tint = ls_color-tint. ENDIF. *--------------------------------------------------------------------* * Patternfill - foreground color *--------------------------------------------------------------------* lo_node_fgcolor = lo_node_fill->find_from_name_ns( name = 'fgColor' uri = namespace-main ). IF lo_node_fgcolor IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node_fgcolor CHANGING cp_structure = ls_color ). lo_fill->fgcolor-rgb = ls_color-rgb. IF ls_color-indexed IS NOT INITIAL. lo_fill->fgcolor-indexed = ls_color-indexed. ENDIF. IF ls_color-theme IS NOT INITIAL. lo_fill->fgcolor-theme = ls_color-theme. ENDIF. lo_fill->fgcolor-tint = ls_color-tint. ENDIF. *--------------------------------------------------------------------* * gradientFill *--------------------------------------------------------------------* WHEN 'gradientFill'. lo_fill->gradtype-type = lo_node_fill_child->get_attribute( 'type' ). lo_fill->gradtype-top = lo_node_fill_child->get_attribute( 'top' ). lo_fill->gradtype-left = lo_node_fill_child->get_attribute( 'left' ). lo_fill->gradtype-right = lo_node_fill_child->get_attribute( 'right' ). lo_fill->gradtype-bottom = lo_node_fill_child->get_attribute( 'bottom' ). lo_fill->gradtype-degree = lo_node_fill_child->get_attribute( 'degree' ). FREE lo_node_stop. lo_node_stop ?= lo_node_fill_child->find_from_name_ns( name = 'stop' uri = namespace-main ). WHILE lo_node_stop IS BOUND. IF lo_fill->gradtype-position1 IS INITIAL. lo_fill->gradtype-position1 = lo_node_stop->get_attribute( 'position' ). lo_node_bgcolor = lo_node_stop->find_from_name_ns( name = 'color' uri = namespace-main ). IF lo_node_bgcolor IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node_bgcolor CHANGING cp_structure = ls_color ). lo_fill->bgcolor-rgb = ls_color-rgb. IF ls_color-indexed IS NOT INITIAL. lo_fill->bgcolor-indexed = ls_color-indexed. ENDIF. IF ls_color-theme IS NOT INITIAL. lo_fill->bgcolor-theme = ls_color-theme. ENDIF. lo_fill->bgcolor-tint = ls_color-tint. ENDIF. ELSEIF lo_fill->gradtype-position2 IS INITIAL. lo_fill->gradtype-position2 = lo_node_stop->get_attribute( 'position' ). lo_node_fgcolor = lo_node_stop->find_from_name_ns( name = 'color' uri = namespace-main ). IF lo_node_fgcolor IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node_fgcolor CHANGING cp_structure = ls_color ). lo_fill->fgcolor-rgb = ls_color-rgb. IF ls_color-indexed IS NOT INITIAL. lo_fill->fgcolor-indexed = ls_color-indexed. ENDIF. IF ls_color-theme IS NOT INITIAL. lo_fill->fgcolor-theme = ls_color-theme. ENDIF. lo_fill->fgcolor-tint = ls_color-tint. ENDIF. ELSEIF lo_fill->gradtype-position3 IS INITIAL. lo_fill->gradtype-position3 = lo_node_stop->get_attribute( 'position' ). "BGColor is filled already with position 1 no need to check again ENDIF. lo_node_stop ?= lo_node_stop->get_next( ). ENDWHILE. WHEN OTHERS. ENDCASE. INSERT lo_fill INTO TABLE ep_fills. lo_node_fill ?= lo_node_fill->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_style_font. DATA: lo_node_font TYPE REF TO if_ixml_element, lo_node2 TYPE REF TO if_ixml_element, lo_font TYPE REF TO zcl_excel_style_font, ls_color TYPE t_color. lo_node_font = io_xml_element. CREATE OBJECT lo_font. *--------------------------------------------------------------------* * Bold *--------------------------------------------------------------------* IF lo_node_font->find_from_name_ns( name = 'b' uri = namespace-main ) IS BOUND. lo_font->bold = abap_true. ENDIF. *--------------------------------------------------------------------* * Italic *--------------------------------------------------------------------* IF lo_node_font->find_from_name_ns( name = 'i' uri = namespace-main ) IS BOUND. lo_font->italic = abap_true. ENDIF. *--------------------------------------------------------------------* * Underline *--------------------------------------------------------------------* lo_node2 = lo_node_font->find_from_name_ns( name = 'u' uri = namespace-main ). IF lo_node2 IS BOUND. lo_font->underline = abap_true. lo_font->underline_mode = lo_node2->get_attribute( 'val' ). ENDIF. *--------------------------------------------------------------------* * StrikeThrough *--------------------------------------------------------------------* IF lo_node_font->find_from_name_ns( name = 'strike' uri = namespace-main ) IS BOUND. lo_font->strikethrough = abap_true. ENDIF. *--------------------------------------------------------------------* * Fontsize *--------------------------------------------------------------------* lo_node2 = lo_node_font->find_from_name_ns( name = 'sz' uri = namespace-main ). IF lo_node2 IS BOUND. lo_font->size = lo_node2->get_attribute( 'val' ). ENDIF. *--------------------------------------------------------------------* * Fontname *--------------------------------------------------------------------* lo_node2 = lo_node_font->find_from_name_ns( name = 'name' uri = namespace-main ). IF lo_node2 IS BOUND. lo_font->name = lo_node2->get_attribute( 'val' ). ELSE. lo_node2 = lo_node_font->find_from_name_ns( name = 'rFont' uri = namespace-main ). IF lo_node2 IS BOUND. lo_font->name = lo_node2->get_attribute( 'val' ). ENDIF. ENDIF. *--------------------------------------------------------------------* * Fontfamily *--------------------------------------------------------------------* lo_node2 = lo_node_font->find_from_name_ns( name = 'family' uri = namespace-main ). IF lo_node2 IS BOUND. lo_font->family = lo_node2->get_attribute( 'val' ). ENDIF. *--------------------------------------------------------------------* * Fontscheme *--------------------------------------------------------------------* lo_node2 = lo_node_font->find_from_name_ns( name = 'scheme' uri = namespace-main ). IF lo_node2 IS BOUND. lo_font->scheme = lo_node2->get_attribute( 'val' ). ELSE. CLEAR lo_font->scheme. ENDIF. *--------------------------------------------------------------------* * Fontcolor *--------------------------------------------------------------------* lo_node2 = lo_node_font->find_from_name_ns( name = 'color' uri = namespace-main ). IF lo_node2 IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node2 CHANGING cp_structure = ls_color ). lo_font->color-rgb = ls_color-rgb. IF ls_color-indexed IS NOT INITIAL. lo_font->color-indexed = ls_color-indexed. ENDIF. IF ls_color-theme IS NOT INITIAL. lo_font->color-theme = ls_color-theme. ENDIF. lo_font->color-tint = ls_color-tint. ENDIF. ro_font = lo_font. ENDMETHOD. METHOD load_style_fonts. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-25 * - ... * changes: renaming variables and types to naming conventions * aligning code * removing unused variables * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* DATA: lo_node_font TYPE REF TO if_ixml_element, lo_font TYPE REF TO zcl_excel_style_font. *--------------------------------------------------------------------* * We need a table of used fonts to build up our styles * Following is an example how this part of a file could be set up * <font> * <sz val="11"/> * <color theme="1"/> * <name val="Calibri"/> * <family val="2"/> * <scheme val="minor"/> * </font> *--------------------------------------------------------------------* lo_node_font ?= ip_xml->find_from_name_ns( name = 'font' uri = namespace-main ). WHILE lo_node_font IS BOUND. lo_font = load_style_font( lo_node_font ). INSERT lo_font INTO TABLE ep_fonts. lo_node_font ?= lo_node_font->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_style_num_formats. *--------------------------------------------------------------------* * ToDos: * 2do§1 Explain gaps in predefined formats *--------------------------------------------------------------------* *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-25 * - ... * changes: renaming variables and types to naming conventions * adding comments to explain what we are trying to achieve * aligning code *--------------------------------------------------------------------* DATA: lo_node_numfmt TYPE REF TO if_ixml_element, ls_num_format TYPE zcl_excel_style_number_format=>t_num_format. *--------------------------------------------------------------------* * We need a table of used numberformats to build up our styles * there are two kinds of numberformats * §1 built-in numberformats * §2 and those that have been explicitly added by the createor of the excel-file *--------------------------------------------------------------------* *--------------------------------------------------------------------* * §1 built-in numberformats *--------------------------------------------------------------------* ep_num_formats = zcl_excel_style_number_format=>mt_built_in_num_formats. *--------------------------------------------------------------------* * §2 Get non-internal numberformats that are found in the file explicitly * Following is an example how this part of a file could be set up * <numFmts count="1"> * <numFmt formatCode="#,###,###,###,##0.00" numFmtId="164"/> * </numFmts> *--------------------------------------------------------------------* lo_node_numfmt ?= ip_xml->find_from_name_ns( name = 'numFmt' uri = namespace-main ). WHILE lo_node_numfmt IS BOUND. CLEAR ls_num_format. CREATE OBJECT ls_num_format-format. ls_num_format-format->format_code = lo_node_numfmt->get_attribute( 'formatCode' ). ls_num_format-id = lo_node_numfmt->get_attribute( 'numFmtId' ). INSERT ls_num_format INTO TABLE ep_num_formats. lo_node_numfmt ?= lo_node_numfmt->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_theme. DATA theme TYPE REF TO zcl_excel_theme. DATA: lo_theme_xml TYPE REF TO if_ixml_document. CREATE OBJECT theme. lo_theme_xml = me->get_ixml_from_zip_archive( iv_path ). theme->read_theme( io_theme_xml = lo_theme_xml ). ip_excel->set_theme( io_theme = theme ). ENDMETHOD. METHOD load_workbook. *--------------------------------------------------------------------* * ToDos: * 2do§1 Move macro-reading from zcl_excel_reader_xlsm to this class * autodetect existance of macro/vba content * Allow inputparameter to explicitly tell reader to ignore vba-content *--------------------------------------------------------------------* *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-10 * - ... * changes: renaming variables to naming conventions * aligning code * removing unused variables * adding me-> where possible * renaming variables to indicate what they are used for * adding comments to explain what we are trying to achieve * renaming i/o parameters: previous input-parameter ip_path holds a (full) filename and not a path --> rename to iv_workbook_full_filename * ip_excel renamed while being at it --> rename to io_excel *--------------------------------------------------------------------* * issue #232 - Read worksheetstate hidden/veryHidden * - Stefan Schmoecker, 2012-11-11 *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmoecker, 2012-12-02 * changes: correction in named ranges to correctly attach * sheetlocal names/ranges to the correct sheet *--------------------------------------------------------------------* * issue#284 - Copied formulae ignored when reading excelfile * - Stefan Schmoecker, 2013-08-02 * changes: initialize area to hold referenced formulaedata * after all worksheets have been read resolve formuae *--------------------------------------------------------------------* CONSTANTS: lcv_shared_strings TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings', lcv_worksheet TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet', lcv_styles TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles', lcv_vba_project TYPE string VALUE 'http://schemas.microsoft.com/office/2006/relationships/vbaProject', "#EC NEEDED for future incorporation of XLSM-reader lcv_theme TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme', *--------------------------------------------------------------------* * #232: Read worksheetstate hidden/veryHidden - begin data declarations *--------------------------------------------------------------------* lcv_worksheet_state_hidden TYPE string VALUE 'hidden', lcv_worksheet_state_veryhidden TYPE string VALUE 'veryHidden'. *--------------------------------------------------------------------* * #232: Read worksheetstate hidden/veryHidden - end data declarations *--------------------------------------------------------------------* DATA: lv_path TYPE string, lv_filename TYPE chkfile, lv_full_filename TYPE string, lo_rels_workbook TYPE REF TO if_ixml_document, lt_worksheets TYPE STANDARD TABLE OF t_relationship WITH NON-UNIQUE DEFAULT KEY, lo_workbook TYPE REF TO if_ixml_document, lv_workbook_index TYPE i, lv_worksheet_path TYPE string, ls_sheet TYPE t_sheet, lo_node TYPE REF TO if_ixml_element, ls_relationship TYPE t_relationship, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_range TYPE REF TO zcl_excel_range, lv_worksheet_title TYPE zexcel_sheet_title, lv_tabix TYPE i, " #235 - repeat rows/cols. Needed to link defined name to correct worksheet ls_range TYPE t_range, lv_range_value TYPE zexcel_range_value, lv_position_temp TYPE i, *--------------------------------------------------------------------* * #229: Set active worksheet - begin data declarations *--------------------------------------------------------------------* lv_active_sheet_string TYPE string, lv_zexcel_active_worksheet TYPE zexcel_active_worksheet, *--------------------------------------------------------------------* * issue#235 - repeat rows/columns - added autofilter support while changing this section lo_autofilter TYPE REF TO zcl_excel_autofilter, ls_area TYPE zexcel_s_autofilter_area, lv_col_start_alpha TYPE zexcel_cell_column_alpha, lv_col_end_alpha TYPE zexcel_cell_column_alpha, lv_row_start TYPE zexcel_cell_row, lv_row_end TYPE zexcel_cell_row, lv_regex TYPE string, lv_range_value_1 TYPE zexcel_range_value, lv_range_value_2 TYPE zexcel_range_value. *--------------------------------------------------------------------* * #229: Set active worksheet - end data declarations *--------------------------------------------------------------------* FIELD-SYMBOLS: <worksheet> TYPE t_relationship. *--------------------------------------------------------------------* * §1 Get the position of files related to this workbook * Usually this will be <root>/xl/workbook.xml * Thus the workbookroot will be <root>/xl/ * The position of all related files will be given in file * <workbookroot>/_rels/<workbookfilename>.rels and their positions * be be given relative to the workbookroot * Following is an example how this file could be set up * <?xml version="1.0" encoding="UTF-8" standalone="true"?> * <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> * <Relationship Target="styles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Id="rId6"/> * <Relationship Target="theme/theme1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Id="rId5"/> * <Relationship Target="worksheets/sheet1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId1"/> * <Relationship Target="worksheets/sheet2.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId2"/> * <Relationship Target="worksheets/sheet3.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId3"/> * <Relationship Target="worksheets/sheet4.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId4"/> * <Relationship Target="sharedStrings.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Id="rId7"/> * </Relationships> * * §2 Load data that is relevant to the complete workbook * Currently supported is: * §2.1 Shared strings - This holds all strings that are used in all worksheets * §2.2 Styles - This holds all styles that are used in all worksheets * §2.3 Worksheets - For each worksheet in the workbook one entry appears here to point to the file that holds the content of this worksheet * §2.4 [Themes] - not supported * §2.5 [VBA (Macro)] - supported in class zcl_excel_reader_xlsm but should be moved here and autodetect * ... * * §3 Some information is held in the workbookfile as well * §3.1 Names and order of of worksheets * §3.2 Active worksheet * §3.3 Defined names * ... * Following is an example how this file could be set up * <?xml version="1.0" encoding="UTF-8" standalone="true"?> * <workbook xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"> * <fileVersion rupBuild="4506" lowestEdited="4" lastEdited="4" appName="xl"/> * <workbookPr defaultThemeVersion="124226"/> * <bookViews> * <workbookView activeTab="1" windowHeight="8445" windowWidth="19035" yWindow="120" xWindow="120"/> * </bookViews> * <sheets> * <sheet r:id="rId1" sheetId="1" name="Sheet1"/> * <sheet r:id="rId2" sheetId="2" name="Sheet2"/> * <sheet r:id="rId3" sheetId="3" name="Sheet3" state="hidden"/> * <sheet r:id="rId4" sheetId="4" name="Sheet4"/> * </sheets> * <definedNames/> * <calcPr calcId="125725"/> * </workbook> *--------------------------------------------------------------------* CLEAR me->mt_ref_formulae. " ins issue#284 *--------------------------------------------------------------------* * §1 Get the position of files related to this workbook * Entry into this method is with the filename of the workbook *--------------------------------------------------------------------* CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH' EXPORTING full_name = iv_workbook_full_filename IMPORTING stripped_name = lv_filename file_path = lv_path. CONCATENATE lv_path '_rels/' lv_filename '.rels' INTO lv_full_filename. lo_rels_workbook = me->get_ixml_from_zip_archive( lv_full_filename ). lo_node ?= lo_rels_workbook->find_from_name_ns( name = 'Relationship' uri = namespace-relationships ). "#EC NOTEXT WHILE lo_node IS BOUND. me->fill_struct_from_attributes( EXPORTING ip_element = lo_node CHANGING cp_structure = ls_relationship ). CASE ls_relationship-type. *--------------------------------------------------------------------* * §2.1 Shared strings - This holds all strings that are used in all worksheets *--------------------------------------------------------------------* WHEN lcv_shared_strings. CONCATENATE lv_path ls_relationship-target INTO lv_full_filename. me->load_shared_strings( lv_full_filename ). *--------------------------------------------------------------------* * §2.3 Worksheets * For each worksheet in the workbook one entry appears here to point to the file that holds the content of this worksheet * Shared strings and styles have to be present before we can start with creating the worksheets * thus we only store this information for use when parsing the workbookfile for sheetinformations *--------------------------------------------------------------------* WHEN lcv_worksheet. APPEND ls_relationship TO lt_worksheets. *--------------------------------------------------------------------* * §2.2 Styles - This holds the styles that are used in all worksheets *--------------------------------------------------------------------* WHEN lcv_styles. CONCATENATE lv_path ls_relationship-target INTO lv_full_filename. me->load_styles( ip_path = lv_full_filename ip_excel = io_excel ). me->load_dxf_styles( iv_path = lv_full_filename io_excel = io_excel ). WHEN lcv_theme. CONCATENATE lv_path ls_relationship-target INTO lv_full_filename. me->load_theme( EXPORTING iv_path = lv_full_filename ip_excel = io_excel " Excel creator ). WHEN OTHERS. ENDCASE. lo_node ?= lo_node->get_next( ). ENDWHILE. *--------------------------------------------------------------------* * §3 Some information held in the workbookfile *--------------------------------------------------------------------* lo_workbook = me->get_ixml_from_zip_archive( iv_workbook_full_filename ). *--------------------------------------------------------------------* * §3.1 Names and order of of worksheets *--------------------------------------------------------------------* lo_node ?= lo_workbook->find_from_name_ns( name = 'sheet' uri = namespace-main ). lv_workbook_index = 1. WHILE lo_node IS BOUND. me->fill_struct_from_attributes( EXPORTING ip_element = lo_node CHANGING cp_structure = ls_sheet ). *--------------------------------------------------------------------* * Create new worksheet in workbook with correct name *--------------------------------------------------------------------* lv_worksheet_title = ls_sheet-name. IF lv_workbook_index = 1. " First sheet has been added automatically by creating io_excel lo_worksheet = io_excel->get_active_worksheet( ). lo_worksheet->set_title( lv_worksheet_title ). ELSE. lo_worksheet = io_excel->add_new_worksheet( lv_worksheet_title ). ENDIF. *--------------------------------------------------------------------* * #232 - Read worksheetstate hidden/veryHidden - begin of coding * Set status hidden if necessary *--------------------------------------------------------------------* CASE ls_sheet-state. WHEN lcv_worksheet_state_hidden. lo_worksheet->zif_excel_sheet_properties~hidden = zif_excel_sheet_properties=>c_hidden. WHEN lcv_worksheet_state_veryhidden. lo_worksheet->zif_excel_sheet_properties~hidden = zif_excel_sheet_properties=>c_veryhidden. ENDCASE. *--------------------------------------------------------------------* * #232 - Read worksheetstate hidden/veryHidden - end of coding *--------------------------------------------------------------------* *--------------------------------------------------------------------* * Load worksheetdata *--------------------------------------------------------------------* READ TABLE lt_worksheets ASSIGNING <worksheet> WITH KEY id = ls_sheet-id. IF sy-subrc = 0. <worksheet>-sheetid = ls_sheet-sheetid. "ins #235 - repeat rows/cols - needed to identify correct sheet <worksheet>-localsheetid = |{ lv_workbook_index - 1 }|. CONCATENATE lv_path <worksheet>-target INTO lv_worksheet_path. me->load_worksheet( ip_path = lv_worksheet_path io_worksheet = lo_worksheet ). <worksheet>-worksheet = lo_worksheet. ENDIF. lo_node ?= lo_node->get_next( ). ADD 1 TO lv_workbook_index. ENDWHILE. SORT lt_worksheets BY sheetid. " needed for localSheetid -referencing *--------------------------------------------------------------------* * #284: Set active worksheet - Resolve referenced formulae to * explicit formulae those cells *--------------------------------------------------------------------* me->resolve_referenced_formulae( ). " ins issue#284 *--------------------------------------------------------------------* * #229: Set active worksheet - begin coding * §3.2 Active worksheet *--------------------------------------------------------------------* lv_zexcel_active_worksheet = 1. " First sheet = active sheet if nothing else specified. lo_node ?= lo_workbook->find_from_name_ns( name = 'workbookView' uri = namespace-main ). IF lo_node IS BOUND. lv_active_sheet_string = lo_node->get_attribute( 'activeTab' ). TRY. lv_zexcel_active_worksheet = lv_active_sheet_string + 1. " EXCEL numbers the sheets from 0 onwards --> index into worksheettable is increased by one CATCH cx_sy_conversion_error. "#EC NO_HANDLER - error here --> just use the default 1st sheet ENDTRY. ENDIF. io_excel->set_active_sheet_index( lv_zexcel_active_worksheet ). *--------------------------------------------------------------------* * #229: Set active worksheet - end coding *--------------------------------------------------------------------* *--------------------------------------------------------------------* * §3.3 Defined names * So far I have encountered these * - named ranges - sheetlocal * - named ranges - workbookglobal * - autofilters - sheetlocal ( special range ) * - repeat rows/cols - sheetlocal ( special range ) * *--------------------------------------------------------------------* lo_node ?= lo_workbook->find_from_name_ns( name = 'definedName' uri = namespace-main ). WHILE lo_node IS BOUND. CLEAR lo_range. "ins issue #235 - repeat rows/cols me->fill_struct_from_attributes( EXPORTING ip_element = lo_node CHANGING cp_structure = ls_range ). lv_range_value = lo_node->get_value( ). IF ls_range-localsheetid IS NOT INITIAL. " issue #163+ * READ TABLE lt_worksheets ASSIGNING <worksheet> WITH KEY id = ls_range-localsheetid. "del issue #235 - repeat rows/cols " issue #163+ * lo_range = <worksheet>-worksheet->add_new_range( ). "del issue #235 - repeat rows/cols " issue #163+ *--------------------------------------------------------------------* * issue#235 - repeat rows/columns - begin *--------------------------------------------------------------------* READ TABLE lt_worksheets ASSIGNING <worksheet> WITH KEY localsheetid = ls_range-localsheetid. IF sy-subrc = 0. CASE ls_range-name. *--------------------------------------------------------------------* * insert autofilters *--------------------------------------------------------------------* WHEN zcl_excel_autofilters=>c_autofilter. " begin Dennis Schaaf TRY. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range_value IMPORTING e_column_start = lv_col_start_alpha e_column_end = lv_col_end_alpha e_row_start = ls_area-row_start e_row_end = ls_area-row_end ). ls_area-col_start = zcl_excel_common=>convert_column2int( lv_col_start_alpha ). ls_area-col_end = zcl_excel_common=>convert_column2int( lv_col_end_alpha ). lo_autofilter = io_excel->add_new_autofilter( io_sheet = <worksheet>-worksheet ) . lo_autofilter->set_filter_area( is_area = ls_area ). CATCH zcx_excel. " we expected a range but it was not usable, so just ignore it ENDTRY. " end Dennis Schaaf *--------------------------------------------------------------------* * repeat print rows/columns *--------------------------------------------------------------------* WHEN zif_excel_sheet_printsettings=>gcv_print_title_name. lo_range = <worksheet>-worksheet->add_new_range( ). lo_range->name = zif_excel_sheet_printsettings=>gcv_print_title_name. *--------------------------------------------------------------------* * This might be a temporary solution. Maybe ranges get be reworked * to support areas consisting of multiple rectangles * But for now just split the range into row and columnpart *--------------------------------------------------------------------* CLEAR:lv_range_value_1, lv_range_value_2. IF lv_range_value IS INITIAL. * Empty --> nothing to do ELSE. IF lv_range_value(1) = `'`. " Escaped lv_regex = `^('[^']*')+![^,]*,`. ELSE. lv_regex = `^[^!]*![^,]*,`. ENDIF. * Split into two ranges if necessary FIND REGEX lv_regex IN lv_range_value MATCH LENGTH lv_position_temp. IF sy-subrc = 0 AND lv_position_temp > 0. lv_range_value_2 = lv_range_value+lv_position_temp. SUBTRACT 1 FROM lv_position_temp. lv_range_value_1 = lv_range_value(lv_position_temp). ELSE. lv_range_value_1 = lv_range_value. ENDIF. ENDIF. * 1st range zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range_value_1 i_allow_1dim_range = abap_true IMPORTING e_column_start = lv_col_start_alpha e_column_end = lv_col_end_alpha e_row_start = lv_row_start e_row_end = lv_row_end ). IF lv_col_start_alpha IS NOT INITIAL. <worksheet>-worksheet->zif_excel_sheet_printsettings~set_print_repeat_columns( iv_columns_from = lv_col_start_alpha iv_columns_to = lv_col_end_alpha ). ENDIF. IF lv_row_start IS NOT INITIAL. <worksheet>-worksheet->zif_excel_sheet_printsettings~set_print_repeat_rows( iv_rows_from = lv_row_start iv_rows_to = lv_row_end ). ENDIF. * 2nd range zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range_value_2 i_allow_1dim_range = abap_true IMPORTING e_column_start = lv_col_start_alpha e_column_end = lv_col_end_alpha e_row_start = lv_row_start e_row_end = lv_row_end ). IF lv_col_start_alpha IS NOT INITIAL. <worksheet>-worksheet->zif_excel_sheet_printsettings~set_print_repeat_columns( iv_columns_from = lv_col_start_alpha iv_columns_to = lv_col_end_alpha ). ENDIF. IF lv_row_start IS NOT INITIAL. <worksheet>-worksheet->zif_excel_sheet_printsettings~set_print_repeat_rows( iv_rows_from = lv_row_start iv_rows_to = lv_row_end ). ENDIF. WHEN OTHERS. ENDCASE. ENDIF. *--------------------------------------------------------------------* * issue#235 - repeat rows/columns - end *--------------------------------------------------------------------* ELSE. " issue #163+ lo_range = io_excel->add_new_range( ). " issue #163+ ENDIF. " issue #163+ * lo_range = ip_excel->add_new_range( ). " issue #163- IF lo_range IS BOUND. "ins issue #235 - repeat rows/cols lo_range->name = ls_range-name. lo_range->set_range_value( lv_range_value ). ENDIF. "ins issue #235 - repeat rows/cols lo_node ?= lo_node->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_worksheet. *--------------------------------------------------------------------* * ToDos: * 2do§1 Header/footer * * Please don't just delete these ToDos if they are not * needed but leave a comment that states this *--------------------------------------------------------------------* *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, * - ... * changes: renaming variables to naming conventions * aligning code (started) * add a list of open ToDos here * adding comments to explain what we are trying to achieve (started) *--------------------------------------------------------------------* * issue #345 - Dump on small pagemargins * Took the chance to modularize this very long method * by extracting the code that needed correction into * own method ( load_worksheet_pagemargins ) *--------------------------------------------------------------------* TYPES: BEGIN OF lty_cell, r TYPE string, t TYPE string, s TYPE string, END OF lty_cell. TYPES: BEGIN OF lty_column, min TYPE string, max TYPE string, width TYPE f, customwidth TYPE string, style TYPE string, bestfit TYPE string, collapsed TYPE string, hidden TYPE string, outlinelevel TYPE string, END OF lty_column. TYPES: BEGIN OF lty_sheetview, showgridlines TYPE zexcel_show_gridlines, tabselected TYPE string, zoomscalenormal TYPE string, workbookviewid TYPE string, showrowcolheaders TYPE string, righttoleft TYPE string, END OF lty_sheetview. TYPES: BEGIN OF lty_mergecell, ref TYPE string, END OF lty_mergecell. TYPES: BEGIN OF lty_row, r TYPE string, customheight TYPE string, ht TYPE f, spans TYPE string, thickbot TYPE string, customformat TYPE string, thicktop TYPE string, collapsed TYPE string, hidden TYPE string, outlinelevel TYPE string, END OF lty_row. TYPES: BEGIN OF lty_page_setup, id TYPE string, orientation TYPE string, scale TYPE string, fittoheight TYPE string, fittowidth TYPE string, papersize TYPE string, END OF lty_page_setup. TYPES: BEGIN OF lty_sheetformatpr, customheight TYPE string, defaultrowheight TYPE string, customwidth TYPE string, defaultcolwidth TYPE string, END OF lty_sheetformatpr. TYPES: BEGIN OF lty_headerfooter, alignwithmargins TYPE string, differentoddeven TYPE string, END OF lty_headerfooter. TYPES: BEGIN OF lty_tabcolor, rgb TYPE string, theme TYPE string, END OF lty_tabcolor. TYPES: BEGIN OF lty_datavalidation, type TYPE zexcel_data_val_type, allowblank TYPE flag, showinputmessage TYPE flag, showerrormessage TYPE flag, showdropdown TYPE flag, operator TYPE zexcel_data_val_operator, formula1 TYPE zexcel_validation_formula1, formula2 TYPE zexcel_validation_formula1, sqref TYPE string, cell_column TYPE zexcel_cell_column_alpha, cell_column_to TYPE zexcel_cell_column_alpha, cell_row TYPE zexcel_cell_row, cell_row_to TYPE zexcel_cell_row, error TYPE string, errortitle TYPE string, prompt TYPE string, prompttitle TYPE string, errorstyle TYPE zexcel_data_val_error_style, END OF lty_datavalidation. CONSTANTS: lc_xml_attr_true TYPE string VALUE 'true', lc_xml_attr_true_int TYPE string VALUE '1', lc_rel_drawing TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing', lc_rel_hyperlink TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink', lc_rel_printer TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings'. DATA: lo_ixml_worksheet TYPE REF TO if_ixml_document, lo_ixml_cells TYPE REF TO if_ixml_node_collection, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lo_ixml_iterator2 TYPE REF TO if_ixml_node_iterator, lo_ixml_row_elem TYPE REF TO if_ixml_element, lo_ixml_cell_elem TYPE REF TO if_ixml_element, ls_cell TYPE lty_cell, lv_index TYPE i, lv_index_temp TYPE i, lo_ixml_value_elem TYPE REF TO if_ixml_element, lo_ixml_formula_elem TYPE REF TO if_ixml_element, lv_cell_value TYPE zexcel_cell_value, lv_cell_formula TYPE zexcel_cell_formula, lv_cell_column TYPE zexcel_cell_column_alpha, lv_cell_row TYPE zexcel_cell_row, lo_excel_style TYPE REF TO zcl_excel_style, lv_style_guid TYPE zexcel_cell_style, lo_ixml_imension_elem TYPE REF TO if_ixml_element, "#+234 lv_dimension_range TYPE string, "#+234 lo_ixml_sheetview_elem TYPE REF TO if_ixml_element, ls_sheetview TYPE lty_sheetview, lo_ixml_pane_elem TYPE REF TO if_ixml_element, ls_excel_pane TYPE zexcel_pane, lv_pane_cell_row TYPE zexcel_cell_row, lv_pane_cell_col_a TYPE zexcel_cell_column_alpha, lv_pane_cell_col TYPE zexcel_cell_column, lo_ixml_mergecells TYPE REF TO if_ixml_node_collection, lo_ixml_mergecell_elem TYPE REF TO if_ixml_element, ls_mergecell TYPE lty_mergecell, lv_merge_column_start TYPE zexcel_cell_column_alpha, lv_merge_column_end TYPE zexcel_cell_column_alpha, lv_merge_row_start TYPE zexcel_cell_row, lv_merge_row_end TYPE zexcel_cell_row, lo_ixml_sheetformatpr_elem TYPE REF TO if_ixml_element, ls_sheetformatpr TYPE lty_sheetformatpr, lv_height TYPE f, lo_ixml_headerfooter_elem TYPE REF TO if_ixml_element, ls_headerfooter TYPE lty_headerfooter, ls_odd_header TYPE zexcel_s_worksheet_head_foot, ls_odd_footer TYPE zexcel_s_worksheet_head_foot, ls_even_header TYPE zexcel_s_worksheet_head_foot, ls_even_footer TYPE zexcel_s_worksheet_head_foot, lo_ixml_hf_value_elem TYPE REF TO if_ixml_element, lo_ixml_pagesetup_elem TYPE REF TO if_ixml_element, lo_ixml_sheetpr TYPE REF TO if_ixml_element, lv_fit_to_page TYPE string, ls_pagesetup TYPE lty_page_setup, lo_ixml_columns TYPE REF TO if_ixml_node_collection, lo_ixml_column_elem TYPE REF TO if_ixml_element, ls_column TYPE lty_column, lv_column_alpha TYPE zexcel_cell_column_alpha, lo_column TYPE REF TO zcl_excel_column, lv_outline_level TYPE int4, lo_ixml_tabcolor TYPE REF TO if_ixml_element, ls_tabcolor TYPE lty_tabcolor, ls_excel_s_tabcolor TYPE zexcel_s_tabcolor, lo_ixml_rows TYPE REF TO if_ixml_node_collection, ls_row TYPE lty_row, lv_max_col TYPE i, "for use with SPANS element * lv_min_col TYPE i, "for use with SPANS element " not in use currently lv_max_col_s TYPE char10, "for use with SPANS element lv_min_col_s TYPE char10, "for use with SPANS element lo_row TYPE REF TO zcl_excel_row, *--- End of current code aligning ------------------------------------------------------------------- lv_path TYPE string, lo_ixml_node TYPE REF TO if_ixml_element, ls_relationship TYPE t_relationship, lo_ixml_rels_worksheet TYPE REF TO if_ixml_document, lv_rels_worksheet_path TYPE string, lv_stripped_name TYPE chkfile, lv_dirname TYPE string, lt_external_hyperlinks TYPE gtt_external_hyperlinks, ls_external_hyperlink LIKE LINE OF lt_external_hyperlinks, lo_ixml_datavalidations TYPE REF TO if_ixml_node_collection, lo_ixml_datavalidation_elem TYPE REF TO if_ixml_element, ls_datavalidation TYPE lty_datavalidation, lo_data_validation TYPE REF TO zcl_excel_data_validation, lv_datavalidation_range TYPE string, lt_datavalidation_range TYPE TABLE OF string, lt_rtf TYPE zexcel_t_rtf, ex TYPE REF TO cx_root. FIELD-SYMBOLS: <ls_shared_string> TYPE t_shared_string. *--------------------------------------------------------------------* * §2 We need to read the the file "\\_rels\.rels" because it tells * us where in this folder structure the data for the workbook * is located in the xlsx zip-archive * * The xlsx Zip-archive has generally the following folder structure: * <root> | * |--> _rels * |--> doc_Props * |--> xl | * |--> _rels * |--> theme * |--> worksheets *--------------------------------------------------------------------* " Read Workbook Relationships CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH' EXPORTING full_name = ip_path IMPORTING stripped_name = lv_stripped_name file_path = lv_dirname. CONCATENATE lv_dirname '_rels/' lv_stripped_name '.rels' INTO lv_rels_worksheet_path. TRY. " +#222 _rels/xxx.rels might not be present. If not found there can be no drawings --> just ignore this section lo_ixml_rels_worksheet = me->get_ixml_from_zip_archive( lv_rels_worksheet_path ). lo_ixml_node ?= lo_ixml_rels_worksheet->find_from_name_ns( name = 'Relationship' uri = namespace-relationships ). CATCH zcx_excel. "#EC NO_HANDLER +#222 " +#222 No errorhandling necessary - node will be unbound if error occurs ENDTRY. " +#222 WHILE lo_ixml_node IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_node CHANGING cp_structure = ls_relationship ). CONCATENATE lv_dirname ls_relationship-target INTO lv_path. lv_path = resolve_path( lv_path ). CASE ls_relationship-type. WHEN lc_rel_drawing. " Read Drawings * Issue # 339 Not all drawings are in the path mentioned below. * Some Excel elements like textfields (which we don't support ) have a drawing-part in the relationsships * but no "xl/drawings/_rels/drawing____.xml.rels" part. * Since we don't support these there is no need to read them. Catching exceptions thrown * in the "load_worksheet_drawing" shouldn't lead to an abortion of the reading TRY. me->load_worksheet_drawing( ip_path = lv_path io_worksheet = io_worksheet ). CATCH zcx_excel. "--> then ignore it ENDTRY. WHEN lc_rel_printer. " Read Printer settings WHEN lc_rel_hyperlink. MOVE-CORRESPONDING ls_relationship TO ls_external_hyperlink. INSERT ls_external_hyperlink INTO TABLE lt_external_hyperlinks. WHEN OTHERS. ENDCASE. lo_ixml_node ?= lo_ixml_node->get_next( ). ENDWHILE. lo_ixml_worksheet = me->get_ixml_from_zip_archive( ip_path ). lo_ixml_tabcolor ?= lo_ixml_worksheet->find_from_name_ns( name = 'tabColor' uri = namespace-main ). IF lo_ixml_tabcolor IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_tabcolor CHANGING cp_structure = ls_tabcolor ). * Theme not supported yet IF ls_tabcolor-rgb IS NOT INITIAL. ls_excel_s_tabcolor-rgb = ls_tabcolor-rgb. io_worksheet->set_tabcolor( ls_excel_s_tabcolor ). ENDIF. ENDIF. lo_ixml_rows = lo_ixml_worksheet->get_elements_by_tag_name_ns( name = 'row' uri = namespace-main ). lo_ixml_iterator = lo_ixml_rows->create_iterator( ). lo_ixml_row_elem ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml_row_elem IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_row_elem CHANGING cp_structure = ls_row ). SPLIT ls_row-spans AT ':' INTO lv_min_col_s lv_max_col_s. lv_index = lv_max_col_s. IF lv_index > lv_max_col. lv_max_col = lv_index. ENDIF. lv_cell_row = ls_row-r. lo_row = io_worksheet->get_row( lv_cell_row ). IF ls_row-customheight = '1'. lo_row->set_row_height( ip_row_height = ls_row-ht ip_custom_height = abap_true ). ELSEIF ls_row-ht > 0. lo_row->set_row_height( ip_row_height = ls_row-ht ip_custom_height = abap_false ). ENDIF. IF ls_row-collapsed = lc_xml_attr_true OR ls_row-collapsed = lc_xml_attr_true_int. lo_row->set_collapsed( abap_true ). ENDIF. IF ls_row-hidden = lc_xml_attr_true OR ls_row-hidden = lc_xml_attr_true_int. lo_row->set_visible( abap_false ). ENDIF. IF ls_row-outlinelevel > ''. * outline_level = condense( row-outlineLevel ). "For basis 7.02 and higher CONDENSE ls_row-outlinelevel. lv_outline_level = ls_row-outlinelevel. IF lv_outline_level > 0. lo_row->set_outline_level( lv_outline_level ). ENDIF. ENDIF. lo_ixml_cells = lo_ixml_row_elem->get_elements_by_tag_name_ns( name = 'c' uri = namespace-main ). lo_ixml_iterator2 = lo_ixml_cells->create_iterator( ). lo_ixml_cell_elem ?= lo_ixml_iterator2->get_next( ). WHILE lo_ixml_cell_elem IS BOUND. CLEAR: lv_cell_value, lv_cell_formula, lv_style_guid. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_cell_elem CHANGING cp_structure = ls_cell ). lo_ixml_value_elem = lo_ixml_cell_elem->find_from_name_ns( name = 'v' uri = namespace-main ). CASE ls_cell-t. WHEN 's'. " String values are stored as index in shared string table IF lo_ixml_value_elem IS BOUND. lv_index = lo_ixml_value_elem->get_value( ) + 1. READ TABLE shared_strings ASSIGNING <ls_shared_string> INDEX lv_index. IF sy-subrc = 0. lv_cell_value = <ls_shared_string>-value. lt_rtf = <ls_shared_string>-rtf. ENDIF. ENDIF. WHEN 'inlineStr'. " inlineStr values are kept in special node lo_ixml_value_elem = lo_ixml_cell_elem->find_from_name_ns( name = 'is' uri = namespace-main ). IF lo_ixml_value_elem IS BOUND. lv_cell_value = lo_ixml_value_elem->get_value( ). ENDIF. WHEN OTHERS. "other types are stored directly IF lo_ixml_value_elem IS BOUND. lv_cell_value = lo_ixml_value_elem->get_value( ). ENDIF. ENDCASE. CLEAR lv_style_guid. "read style based on index IF ls_cell-s IS NOT INITIAL. lv_index = ls_cell-s + 1. READ TABLE styles INTO lo_excel_style INDEX lv_index. IF sy-subrc = 0. lv_style_guid = lo_excel_style->get_guid( ). ENDIF. ENDIF. lo_ixml_formula_elem = lo_ixml_cell_elem->find_from_name_ns( name = 'f' uri = namespace-main ). IF lo_ixml_formula_elem IS BOUND. lv_cell_formula = lo_ixml_formula_elem->get_value( ). *--------------------------------------------------------------------* * Begin of insertion issue#284 - Copied formulae not *--------------------------------------------------------------------* DATA: BEGIN OF ls_formula_attributes, ref TYPE string, si TYPE i, t TYPE string, END OF ls_formula_attributes, ls_ref_formula TYPE ty_ref_formulae. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_formula_elem CHANGING cp_structure = ls_formula_attributes ). IF ls_formula_attributes-t = 'shared'. zcl_excel_common=>convert_columnrow2column_a_row( EXPORTING i_columnrow = ls_cell-r IMPORTING e_column = lv_cell_column e_row = lv_cell_row ). TRY. CLEAR ls_ref_formula. ls_ref_formula-sheet = io_worksheet. ls_ref_formula-row = lv_cell_row. ls_ref_formula-column = zcl_excel_common=>convert_column2int( lv_cell_column ). ls_ref_formula-si = ls_formula_attributes-si. ls_ref_formula-ref = ls_formula_attributes-ref. ls_ref_formula-formula = lv_cell_formula. INSERT ls_ref_formula INTO TABLE me->mt_ref_formulae. CATCH cx_root INTO ex. RAISE EXCEPTION TYPE zcx_excel EXPORTING previous = ex. ENDTRY. ENDIF. *--------------------------------------------------------------------* * End of insertion issue#284 - Copied formulae not *--------------------------------------------------------------------* ENDIF. IF lv_cell_value IS NOT INITIAL OR lv_cell_formula IS NOT INITIAL OR lv_style_guid IS NOT INITIAL. zcl_excel_common=>convert_columnrow2column_a_row( EXPORTING i_columnrow = ls_cell-r IMPORTING e_column = lv_cell_column e_row = lv_cell_row ). io_worksheet->set_cell( ip_column = lv_cell_column " cell_elem Column ip_row = lv_cell_row " cell_elem row_elem ip_value = lv_cell_value " cell_elem Value ip_formula = lv_cell_formula ip_data_type = ls_cell-t ip_style = lv_style_guid it_rtf = lt_rtf ). ENDIF. lo_ixml_cell_elem ?= lo_ixml_iterator2->get_next( ). ENDWHILE. lo_ixml_row_elem ?= lo_ixml_iterator->get_next( ). ENDWHILE. *--------------------------------------------------------------------* *#234 - column width not read correctly - begin of coding * reason - libre office doesn't use SPAN in row - definitions *--------------------------------------------------------------------* IF lv_max_col = 0. lo_ixml_imension_elem = lo_ixml_worksheet->find_from_name_ns( name = 'dimension' uri = namespace-main ). IF lo_ixml_imension_elem IS BOUND. lv_dimension_range = lo_ixml_imension_elem->get_attribute( 'ref' ). IF lv_dimension_range CS ':'. REPLACE REGEX '\D+\d+:(\D+)\d+' IN lv_dimension_range WITH '$1'. " Get max column ELSE. REPLACE REGEX '(\D+)\d+' IN lv_dimension_range WITH '$1'. " Get max column ENDIF. lv_max_col = zcl_excel_common=>convert_column2int( lv_dimension_range ). ENDIF. ENDIF. *--------------------------------------------------------------------* *#234 - column width not read correctly - end of coding *--------------------------------------------------------------------* "Get the customized column width lo_ixml_columns = lo_ixml_worksheet->get_elements_by_tag_name_ns( name = 'col' uri = namespace-main ). lo_ixml_iterator = lo_ixml_columns->create_iterator( ). lo_ixml_column_elem ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml_column_elem IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_column_elem CHANGING cp_structure = ls_column ). lo_ixml_column_elem ?= lo_ixml_iterator->get_next( ). IF ls_column-customwidth = lc_xml_attr_true OR ls_column-customwidth = lc_xml_attr_true_int OR ls_column-bestfit = lc_xml_attr_true OR ls_column-bestfit = lc_xml_attr_true_int OR ls_column-collapsed = lc_xml_attr_true OR ls_column-collapsed = lc_xml_attr_true_int OR ls_column-hidden = lc_xml_attr_true OR ls_column-hidden = lc_xml_attr_true_int OR ls_column-outlinelevel > '' OR ls_column-style > ''. lv_index = ls_column-min. WHILE lv_index <= ls_column-max AND lv_index <= lv_max_col. lv_column_alpha = zcl_excel_common=>convert_column2alpha( lv_index ). lo_column = io_worksheet->get_column( lv_column_alpha ). IF ls_column-customwidth = lc_xml_attr_true OR ls_column-customwidth = lc_xml_attr_true_int OR ls_column-width IS NOT INITIAL. "+#234 lo_column->set_width( ls_column-width ). ENDIF. IF ls_column-bestfit = lc_xml_attr_true OR ls_column-bestfit = lc_xml_attr_true_int. lo_column->set_auto_size( abap_true ). ENDIF. IF ls_column-collapsed = lc_xml_attr_true OR ls_column-collapsed = lc_xml_attr_true_int. lo_column->set_collapsed( abap_true ). ENDIF. IF ls_column-hidden = lc_xml_attr_true OR ls_column-hidden = lc_xml_attr_true_int. lo_column->set_visible( abap_false ). ENDIF. IF ls_column-outlinelevel > ''. CONDENSE ls_column-outlinelevel. lv_outline_level = ls_column-outlinelevel. IF lv_outline_level > 0. lo_column->set_outline_level( lv_outline_level ). ENDIF. ENDIF. IF ls_column-style > ''. lv_index_temp = ls_column-style + 1. READ TABLE styles INTO lo_excel_style INDEX lv_index_temp. DATA: dummy_zexcel_cell_style TYPE zexcel_cell_style. dummy_zexcel_cell_style = lo_excel_style->get_guid( ). lo_column->set_column_style_by_guid( dummy_zexcel_cell_style ). ENDIF. ADD 1 TO lv_index. ENDWHILE. ENDIF. * issue #367 - hide columns from IF ls_column-max = zcl_excel_common=>c_excel_sheet_max_col. " Max = very right column IF ls_column-hidden = 1 " all hidden AND ls_column-min > 0. io_worksheet->zif_excel_sheet_properties~hide_columns_from = zcl_excel_common=>convert_column2alpha( ls_column-min ). ELSEIF ls_column-style > ''. lv_index_temp = ls_column-style + 1. READ TABLE styles INTO lo_excel_style INDEX lv_index_temp. dummy_zexcel_cell_style = lo_excel_style->get_guid( ). * Set style for remaining columns io_worksheet->zif_excel_sheet_properties~set_style( dummy_zexcel_cell_style ). ENDIF. ENDIF. ENDWHILE. "Now we need to get information from the sheetView node lo_ixml_sheetview_elem = lo_ixml_worksheet->find_from_name_ns( name = 'sheetView' uri = namespace-main ). fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_sheetview_elem CHANGING cp_structure = ls_sheetview ). IF ls_sheetview-showgridlines IS INITIAL OR ls_sheetview-showgridlines = lc_xml_attr_true OR ls_sheetview-showgridlines = lc_xml_attr_true_int. "If the attribute is not specified or set to true, we will show grid lines ls_sheetview-showgridlines = abap_true. ELSE. ls_sheetview-showgridlines = abap_false. ENDIF. io_worksheet->set_show_gridlines( ls_sheetview-showgridlines ). IF ls_sheetview-righttoleft = lc_xml_attr_true OR ls_sheetview-righttoleft = lc_xml_attr_true_int. io_worksheet->zif_excel_sheet_properties~set_right_to_left( abap_true ). ENDIF. "Add merge cell information lo_ixml_mergecells = lo_ixml_worksheet->get_elements_by_tag_name_ns( name = 'mergeCell' uri = namespace-main ). lo_ixml_iterator = lo_ixml_mergecells->create_iterator( ). lo_ixml_mergecell_elem ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml_mergecell_elem IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_mergecell_elem CHANGING cp_structure = ls_mergecell ). zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = ls_mergecell-ref IMPORTING e_column_start = lv_merge_column_start e_column_end = lv_merge_column_end e_row_start = lv_merge_row_start e_row_end = lv_merge_row_end ). lo_ixml_mergecell_elem ?= lo_ixml_iterator->get_next( ). io_worksheet->set_merge( EXPORTING ip_column_start = lv_merge_column_start ip_column_end = lv_merge_column_end ip_row = lv_merge_row_start ip_row_to = lv_merge_row_end ). ENDWHILE. " read sheet format properties lo_ixml_sheetformatpr_elem = lo_ixml_worksheet->find_from_name_ns( name = 'sheetFormatPr' uri = namespace-main ). IF lo_ixml_sheetformatpr_elem IS NOT INITIAL. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_sheetformatpr_elem CHANGING cp_structure = ls_sheetformatpr ). IF ls_sheetformatpr-customheight = '1'. lv_height = ls_sheetformatpr-defaultrowheight. lo_row = io_worksheet->get_default_row( ). lo_row->set_row_height( lv_height ). ENDIF. " TODO... column ENDIF. " Read in page margins me->load_worksheet_pagemargins( EXPORTING io_ixml_worksheet = lo_ixml_worksheet io_worksheet = io_worksheet ). * FitToPage lo_ixml_sheetpr ?= lo_ixml_worksheet->find_from_name_ns( name = 'pageSetUpPr' uri = namespace-main ). IF lo_ixml_sheetpr IS BOUND. lv_fit_to_page = lo_ixml_sheetpr->get_attribute_ns( 'fitToPage' ). IF lv_fit_to_page IS NOT INITIAL. io_worksheet->sheet_setup->fit_to_page = 'X'. ENDIF. ENDIF. " Read in page setup lo_ixml_pagesetup_elem = lo_ixml_worksheet->find_from_name_ns( name = 'pageSetup' uri = namespace-main ). IF lo_ixml_pagesetup_elem IS NOT INITIAL. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_pagesetup_elem CHANGING cp_structure = ls_pagesetup ). io_worksheet->sheet_setup->orientation = ls_pagesetup-orientation. io_worksheet->sheet_setup->scale = ls_pagesetup-scale. io_worksheet->sheet_setup->paper_size = ls_pagesetup-papersize. IF io_worksheet->sheet_setup->fit_to_page = 'X'. IF ls_pagesetup-fittowidth IS NOT INITIAL. io_worksheet->sheet_setup->fit_to_width = ls_pagesetup-fittowidth. ELSE. io_worksheet->sheet_setup->fit_to_width = 1. " Default if not given - Excel doesn't write this to xml ENDIF. IF ls_pagesetup-fittoheight IS NOT INITIAL. io_worksheet->sheet_setup->fit_to_height = ls_pagesetup-fittoheight. ELSE. io_worksheet->sheet_setup->fit_to_height = 1. " Default if not given - Excel doesn't write this to xml ENDIF. ENDIF. ENDIF. " Read header footer lo_ixml_headerfooter_elem = lo_ixml_worksheet->find_from_name_ns( name = 'headerFooter' uri = namespace-main ). IF lo_ixml_headerfooter_elem IS NOT INITIAL. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_headerfooter_elem CHANGING cp_structure = ls_headerfooter ). io_worksheet->sheet_setup->diff_oddeven_headerfooter = ls_headerfooter-differentoddeven. lo_ixml_hf_value_elem = lo_ixml_headerfooter_elem->find_from_name_ns( name = 'oddFooter' uri = namespace-main ). IF lo_ixml_hf_value_elem IS NOT INITIAL. ls_odd_footer-left_value = lo_ixml_hf_value_elem->get_value( ). ENDIF. * 2do§1 Header/footer " TODO.. get the rest. io_worksheet->sheet_setup->set_header_footer( ip_odd_header = ls_odd_header ip_odd_footer = ls_odd_footer ip_even_header = ls_even_header ip_even_footer = ls_even_footer ). ENDIF. " Start fix 194 Read attributes HIDDEN, OUTLINELEVEL, COLLAPSED in ZCL_EXCEL_READER_2007 " Read pane lo_ixml_pane_elem = lo_ixml_sheetview_elem->find_from_name_ns( name = 'pane' uri = namespace-main ). IF lo_ixml_pane_elem IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_pane_elem CHANGING cp_structure = ls_excel_pane ). " Issue #194 " Replace REGEX with method from the common class zcl_excel_common=>convert_columnrow2column_a_row( EXPORTING i_columnrow = ls_excel_pane-topleftcell IMPORTING e_column = lv_pane_cell_col_a " Cell Column e_row = lv_pane_cell_row ). " Natural number lv_pane_cell_col = zcl_excel_common=>convert_column2int( lv_pane_cell_col_a ). SUBTRACT 1 FROM: lv_pane_cell_col, lv_pane_cell_row. IF lv_pane_cell_col > 0 AND lv_pane_cell_row > 0. io_worksheet->freeze_panes( ip_num_rows = lv_pane_cell_row ip_num_columns = lv_pane_cell_col ). ELSEIF lv_pane_cell_row > 0. io_worksheet->freeze_panes( ip_num_rows = lv_pane_cell_row ). ELSE. io_worksheet->freeze_panes( ip_num_columns = lv_pane_cell_col ). ENDIF. ENDIF. " End fix 194 Read attributes HIDDEN, OUTLINELEVEL, COLLAPSED in ZCL_EXCEL_READER_2007 " Start fix 276 Read data validations lo_ixml_datavalidations = lo_ixml_worksheet->get_elements_by_tag_name_ns( name = 'dataValidation' uri = namespace-main ). lo_ixml_iterator = lo_ixml_datavalidations->create_iterator( ). lo_ixml_datavalidation_elem ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml_datavalidation_elem IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_datavalidation_elem CHANGING cp_structure = ls_datavalidation ). CLEAR lo_ixml_formula_elem. lo_ixml_formula_elem = lo_ixml_datavalidation_elem->find_from_name_ns( name = 'formula1' uri = namespace-main ). IF lo_ixml_formula_elem IS BOUND. ls_datavalidation-formula1 = lo_ixml_formula_elem->get_value( ). ENDIF. CLEAR lo_ixml_formula_elem. lo_ixml_formula_elem = lo_ixml_datavalidation_elem->find_from_name_ns( name = 'formula2' uri = namespace-main ). IF lo_ixml_formula_elem IS BOUND. ls_datavalidation-formula2 = lo_ixml_formula_elem->get_value( ). ENDIF. SPLIT ls_datavalidation-sqref AT space INTO TABLE lt_datavalidation_range. LOOP AT lt_datavalidation_range INTO lv_datavalidation_range. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_datavalidation_range IMPORTING e_column_start = ls_datavalidation-cell_column e_column_end = ls_datavalidation-cell_column_to e_row_start = ls_datavalidation-cell_row e_row_end = ls_datavalidation-cell_row_to ). lo_data_validation = io_worksheet->add_new_data_validation( ). lo_data_validation->type = ls_datavalidation-type. lo_data_validation->allowblank = ls_datavalidation-allowblank. IF ls_datavalidation-showinputmessage IS INITIAL. lo_data_validation->showinputmessage = abap_false. ELSE. lo_data_validation->showinputmessage = abap_true. ENDIF. IF ls_datavalidation-showerrormessage IS INITIAL. lo_data_validation->showerrormessage = abap_false. ELSE. lo_data_validation->showerrormessage = abap_true. ENDIF. IF ls_datavalidation-showdropdown IS INITIAL. lo_data_validation->showdropdown = abap_false. ELSE. lo_data_validation->showdropdown = abap_true. ENDIF. lo_data_validation->operator = ls_datavalidation-operator. lo_data_validation->formula1 = ls_datavalidation-formula1. lo_data_validation->formula2 = ls_datavalidation-formula2. lo_data_validation->prompttitle = ls_datavalidation-prompttitle. lo_data_validation->prompt = ls_datavalidation-prompt. lo_data_validation->errortitle = ls_datavalidation-errortitle. lo_data_validation->error = ls_datavalidation-error. lo_data_validation->errorstyle = ls_datavalidation-errorstyle. lo_data_validation->cell_row = ls_datavalidation-cell_row. lo_data_validation->cell_row_to = ls_datavalidation-cell_row_to. lo_data_validation->cell_column = ls_datavalidation-cell_column. lo_data_validation->cell_column_to = ls_datavalidation-cell_column_to. ENDLOOP. lo_ixml_datavalidation_elem ?= lo_ixml_iterator->get_next( ). ENDWHILE. " End fix 276 Read data validations " Read hyperlinks TRY. me->load_worksheet_hyperlinks( io_ixml_worksheet = lo_ixml_worksheet io_worksheet = io_worksheet it_external_hyperlinks = lt_external_hyperlinks ). CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify ENDTRY. TRY. me->fill_row_outlines( io_worksheet = io_worksheet ). CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify ENDTRY. " Issue #366 - conditional formatting TRY. me->load_worksheet_cond_format( io_ixml_worksheet = lo_ixml_worksheet io_worksheet = io_worksheet ). CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify ENDTRY. " Issue #377 - pagebreaks TRY. me->load_worksheet_pagebreaks( io_ixml_worksheet = lo_ixml_worksheet io_worksheet = io_worksheet ). CATCH zcx_excel. " Ignore pagebreak reading errors - pass everything we were able to identify ENDTRY. TRY. me->load_worksheet_autofilter( io_ixml_worksheet = lo_ixml_worksheet io_worksheet = io_worksheet ). CATCH zcx_excel. " Ignore autofilter reading errors - pass everything we were able to identify ENDTRY. TRY. me->load_worksheet_ignored_errors( io_ixml_worksheet = lo_ixml_worksheet io_worksheet = io_worksheet ). CATCH zcx_excel. " Ignore "ignoredErrors" reading errors - pass everything we were able to identify ENDTRY. ENDMETHOD. METHOD load_worksheet_autofilter. TYPES: BEGIN OF lty_autofilter, ref TYPE string, END OF lty_autofilter. DATA: lo_ixml_autofilter_elem TYPE REF TO if_ixml_element, lv_ref TYPE string, lo_ixml_filter_column_coll TYPE REF TO if_ixml_node_collection, lo_ixml_filter_column_iter TYPE REF TO if_ixml_node_iterator, lo_ixml_filter_column TYPE REF TO if_ixml_element, lv_col_id TYPE i, lv_column TYPE zexcel_cell_column, lo_ixml_filters_coll TYPE REF TO if_ixml_node_collection, lo_ixml_filters_iter TYPE REF TO if_ixml_node_iterator, lo_ixml_filters TYPE REF TO if_ixml_element, lo_ixml_filter_coll TYPE REF TO if_ixml_node_collection, lo_ixml_filter_iter TYPE REF TO if_ixml_node_iterator, lo_ixml_filter TYPE REF TO if_ixml_element, lv_val TYPE string, lo_autofilters TYPE REF TO zcl_excel_autofilters, lo_autofilter TYPE REF TO zcl_excel_autofilter. lo_autofilters = io_worksheet->excel->get_autofilters_reference( ). lo_ixml_autofilter_elem = io_ixml_worksheet->find_from_name_ns( name = 'autoFilter' uri = namespace-main ). IF lo_ixml_autofilter_elem IS BOUND. lv_ref = lo_ixml_autofilter_elem->get_attribute_ns( 'ref' ). lo_ixml_filter_column_coll = lo_ixml_autofilter_elem->get_elements_by_tag_name_ns( name = 'filterColumn' uri = namespace-main ). lo_ixml_filter_column_iter = lo_ixml_filter_column_coll->create_iterator( ). lo_ixml_filter_column ?= lo_ixml_filter_column_iter->get_next( ). WHILE lo_ixml_filter_column IS BOUND. lv_col_id = lo_ixml_filter_column->get_attribute_ns( 'colId' ). lv_column = lv_col_id + 1. lo_ixml_filters_coll = lo_ixml_filter_column->get_elements_by_tag_name_ns( name = 'filters' uri = namespace-main ). lo_ixml_filters_iter = lo_ixml_filters_coll->create_iterator( ). lo_ixml_filters ?= lo_ixml_filters_iter->get_next( ). WHILE lo_ixml_filters IS BOUND. lo_ixml_filter_coll = lo_ixml_filter_column->get_elements_by_tag_name_ns( name = 'filter' uri = namespace-main ). lo_ixml_filter_iter = lo_ixml_filter_coll->create_iterator( ). lo_ixml_filter ?= lo_ixml_filter_iter->get_next( ). WHILE lo_ixml_filter IS BOUND. lv_val = lo_ixml_filter->get_attribute_ns( 'val' ). lo_autofilter = lo_autofilters->get( io_worksheet = io_worksheet ). IF lo_autofilter IS NOT BOUND. lo_autofilter = lo_autofilters->add( io_sheet = io_worksheet ). ENDIF. lo_autofilter->set_value( i_column = lv_column i_value = lv_val ). lo_ixml_filter ?= lo_ixml_filter_iter->get_next( ). ENDWHILE. lo_ixml_filters ?= lo_ixml_filters_iter->get_next( ). ENDWHILE. lo_ixml_filter_column ?= lo_ixml_filter_column_iter->get_next( ). ENDWHILE. ENDIF. ENDMETHOD. METHOD load_worksheet_cond_format. DATA: lo_ixml_cond_formats TYPE REF TO if_ixml_node_collection, lo_ixml_cond_format TYPE REF TO if_ixml_element, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lo_ixml_rules TYPE REF TO if_ixml_node_collection, lo_ixml_rule TYPE REF TO if_ixml_element, lo_ixml_iterator2 TYPE REF TO if_ixml_node_iterator, lo_style_cond TYPE REF TO zcl_excel_style_cond, lo_style_cond2 TYPE REF TO zcl_excel_style_cond. DATA: lv_area TYPE string, lt_areas TYPE STANDARD TABLE OF string WITH NON-UNIQUE DEFAULT KEY, lv_area_start_row TYPE zexcel_cell_row, lv_area_end_row TYPE zexcel_cell_row, lv_area_start_col TYPE zexcel_cell_column_alpha, lv_area_end_col TYPE zexcel_cell_column_alpha, lv_rule TYPE zexcel_condition_rule. lo_ixml_cond_formats = io_ixml_worksheet->get_elements_by_tag_name_ns( name = 'conditionalFormatting' uri = namespace-main ). lo_ixml_iterator = lo_ixml_cond_formats->create_iterator( ). lo_ixml_cond_format ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml_cond_format IS BOUND. CLEAR: lv_area, lo_ixml_rule, lo_style_cond. *--------------------------------------------------------------------* * Get type of rule *--------------------------------------------------------------------* lo_ixml_rules = lo_ixml_cond_format->get_elements_by_tag_name_ns( name = 'cfRule' uri = namespace-main ). lo_ixml_iterator2 = lo_ixml_rules->create_iterator( ). lo_ixml_rule ?= lo_ixml_iterator2->get_next( ). WHILE lo_ixml_rule IS BOUND. lv_rule = lo_ixml_rule->get_attribute_ns( 'type' ). CLEAR lo_style_cond. *--------------------------------------------------------------------* * Depending on ruletype get additional information *--------------------------------------------------------------------* CASE lv_rule. WHEN zcl_excel_style_cond=>c_rule_cellis. lo_style_cond = io_worksheet->add_new_style_cond( '' ). load_worksheet_cond_format_ci( io_ixml_rule = lo_ixml_rule io_style_cond = lo_style_cond ). WHEN zcl_excel_style_cond=>c_rule_databar. lo_style_cond = io_worksheet->add_new_style_cond( '' ). load_worksheet_cond_format_db( io_ixml_rule = lo_ixml_rule io_style_cond = lo_style_cond ). WHEN zcl_excel_style_cond=>c_rule_expression. lo_style_cond = io_worksheet->add_new_style_cond( '' ). load_worksheet_cond_format_ex( io_ixml_rule = lo_ixml_rule io_style_cond = lo_style_cond ). WHEN zcl_excel_style_cond=>c_rule_iconset. lo_style_cond = io_worksheet->add_new_style_cond( '' ). load_worksheet_cond_format_is( io_ixml_rule = lo_ixml_rule io_style_cond = lo_style_cond ). WHEN zcl_excel_style_cond=>c_rule_colorscale. lo_style_cond = io_worksheet->add_new_style_cond( '' ). load_worksheet_cond_format_cs( io_ixml_rule = lo_ixml_rule io_style_cond = lo_style_cond ). WHEN zcl_excel_style_cond=>c_rule_top10. lo_style_cond = io_worksheet->add_new_style_cond( '' ). load_worksheet_cond_format_t10( io_ixml_rule = lo_ixml_rule io_style_cond = lo_style_cond ). WHEN zcl_excel_style_cond=>c_rule_above_average. lo_style_cond = io_worksheet->add_new_style_cond( '' ). load_worksheet_cond_format_aa( io_ixml_rule = lo_ixml_rule io_style_cond = lo_style_cond ). WHEN OTHERS. ENDCASE. IF lo_style_cond IS BOUND. lo_style_cond->rule = lv_rule. lo_style_cond->priority = lo_ixml_rule->get_attribute_ns( 'priority' ). *--------------------------------------------------------------------* * Set area to which conditional formatting belongs *--------------------------------------------------------------------* lv_area = lo_ixml_cond_format->get_attribute_ns( 'sqref' ). SPLIT lv_area AT space INTO TABLE lt_areas. DELETE lt_areas WHERE table_line IS INITIAL. LOOP AT lt_areas INTO lv_area. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_area IMPORTING e_column_start = lv_area_start_col e_column_end = lv_area_end_col e_row_start = lv_area_start_row e_row_end = lv_area_end_row ). lo_style_cond->add_range( ip_start_column = lv_area_start_col ip_stop_column = lv_area_end_col ip_start_row = lv_area_start_row ip_stop_row = lv_area_end_row ). ENDLOOP. ENDIF. lo_ixml_rule ?= lo_ixml_iterator2->get_next( ). ENDWHILE. lo_ixml_cond_format ?= lo_ixml_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_worksheet_cond_format_aa. DATA: lv_dxf_style_index TYPE i, val TYPE string. FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF me->mt_dxf_styles. *--------------------------------------------------------------------* * above or below average *--------------------------------------------------------------------* val = io_ixml_rule->get_attribute_ns( 'aboveAverage' ). IF val = '0'. " 0 = below average io_style_cond->mode_above_average-above_average = space. ELSE. io_style_cond->mode_above_average-above_average = 'X'. " Not present or <> 0 --> we use above average ENDIF. *--------------------------------------------------------------------* * Equal average also? *--------------------------------------------------------------------* CLEAR val. val = io_ixml_rule->get_attribute_ns( 'equalAverage' ). IF val = '1'. " 0 = below average io_style_cond->mode_above_average-equal_average = 'X'. ELSE. io_style_cond->mode_above_average-equal_average = ' '. " Not present or <> 1 --> we use not equal average ENDIF. *--------------------------------------------------------------------* * Standard deviation instead of value ( 2nd stddev, 3rd stdev ) *--------------------------------------------------------------------* CLEAR val. val = io_ixml_rule->get_attribute_ns( 'stdDev' ). CASE val. WHEN 1 OR 2 OR 3. " These seem to be supported by excel - don't try anything more io_style_cond->mode_above_average-standard_deviation = val. ENDCASE. *--------------------------------------------------------------------* * Cell formatting for top10 *--------------------------------------------------------------------* lv_dxf_style_index = io_ixml_rule->get_attribute_ns( 'dxfId' ). READ TABLE me->mt_dxf_styles ASSIGNING <ls_dxf_style> WITH KEY dxf = lv_dxf_style_index. IF sy-subrc = 0. io_style_cond->mode_above_average-cell_style = <ls_dxf_style>-guid. ENDIF. ENDMETHOD. METHOD load_worksheet_cond_format_ci. DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lo_ixml TYPE REF TO if_ixml_element, lv_dxf_style_index TYPE i, lo_excel_style LIKE LINE OF me->styles. FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF me->mt_dxf_styles. io_style_cond->mode_cellis-operator = io_ixml_rule->get_attribute_ns( 'operator' ). lv_dxf_style_index = io_ixml_rule->get_attribute_ns( 'dxfId' ). READ TABLE me->mt_dxf_styles ASSIGNING <ls_dxf_style> WITH KEY dxf = lv_dxf_style_index. IF sy-subrc = 0. io_style_cond->mode_cellis-cell_style = <ls_dxf_style>-guid. ENDIF. lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name_ns( name = 'formula' uri = namespace-main ). lo_ixml_iterator = lo_ixml_nodes->create_iterator( ). lo_ixml ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml IS BOUND. CASE sy-index. WHEN 1. io_style_cond->mode_cellis-formula = lo_ixml->get_value( ). WHEN 2. io_style_cond->mode_cellis-formula2 = lo_ixml->get_value( ). WHEN OTHERS. EXIT. ENDCASE. lo_ixml ?= lo_ixml_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_worksheet_cond_format_cs. DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lo_ixml TYPE REF TO if_ixml_element. lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name_ns( name = 'cfvo' uri = namespace-main ). lo_ixml_iterator = lo_ixml_nodes->create_iterator( ). lo_ixml ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml IS BOUND. CASE sy-index. WHEN 1. io_style_cond->mode_colorscale-cfvo1_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_colorscale-cfvo1_value = lo_ixml->get_attribute_ns( 'val' ). WHEN 2. io_style_cond->mode_colorscale-cfvo2_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_colorscale-cfvo2_value = lo_ixml->get_attribute_ns( 'val' ). WHEN 3. io_style_cond->mode_colorscale-cfvo3_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_colorscale-cfvo2_value = lo_ixml->get_attribute_ns( 'val' ). WHEN OTHERS. EXIT. ENDCASE. lo_ixml ?= lo_ixml_iterator->get_next( ). ENDWHILE. lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name_ns( name = 'color' uri = namespace-main ). lo_ixml_iterator = lo_ixml_nodes->create_iterator( ). lo_ixml ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml IS BOUND. CASE sy-index. WHEN 1. io_style_cond->mode_colorscale-colorrgb1 = lo_ixml->get_attribute_ns( 'rgb' ). WHEN 2. io_style_cond->mode_colorscale-colorrgb2 = lo_ixml->get_attribute_ns( 'rgb' ). WHEN 3. io_style_cond->mode_colorscale-colorrgb3 = lo_ixml->get_attribute_ns( 'rgb' ). WHEN OTHERS. EXIT. ENDCASE. lo_ixml ?= lo_ixml_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_worksheet_cond_format_db. DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lo_ixml TYPE REF TO if_ixml_element. lo_ixml ?= io_ixml_rule->find_from_name_ns( name = 'color' uri = namespace-main ). IF lo_ixml IS BOUND. io_style_cond->mode_databar-colorrgb = lo_ixml->get_attribute_ns( 'rgb' ). ENDIF. lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name_ns( name = 'cfvo' uri = namespace-main ). lo_ixml_iterator = lo_ixml_nodes->create_iterator( ). lo_ixml ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml IS BOUND. CASE sy-index. WHEN 1. io_style_cond->mode_databar-cfvo1_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_databar-cfvo1_value = lo_ixml->get_attribute_ns( 'val' ). WHEN 2. io_style_cond->mode_databar-cfvo2_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_databar-cfvo2_value = lo_ixml->get_attribute_ns( 'val' ). WHEN OTHERS. EXIT. ENDCASE. lo_ixml ?= lo_ixml_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_worksheet_cond_format_ex. DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lo_ixml TYPE REF TO if_ixml_element, lv_dxf_style_index TYPE i, lo_excel_style LIKE LINE OF me->styles. FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF me->mt_dxf_styles. lv_dxf_style_index = io_ixml_rule->get_attribute_ns( 'dxfId' ). READ TABLE me->mt_dxf_styles ASSIGNING <ls_dxf_style> WITH KEY dxf = lv_dxf_style_index. IF sy-subrc = 0. io_style_cond->mode_expression-cell_style = <ls_dxf_style>-guid. ENDIF. lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name_ns( name = 'formula' uri = namespace-main ). lo_ixml_iterator = lo_ixml_nodes->create_iterator( ). lo_ixml ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml IS BOUND. CASE sy-index. WHEN 1. io_style_cond->mode_expression-formula = lo_ixml->get_value( ). WHEN OTHERS. EXIT. ENDCASE. lo_ixml ?= lo_ixml_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_worksheet_cond_format_is. DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lo_ixml TYPE REF TO if_ixml_element, lo_ixml_rule_iconset TYPE REF TO if_ixml_element. lo_ixml_rule_iconset ?= io_ixml_rule->get_first_child( ). io_style_cond->mode_iconset-iconset = lo_ixml_rule_iconset->get_attribute_ns( 'iconSet' ). io_style_cond->mode_iconset-showvalue = lo_ixml_rule_iconset->get_attribute_ns( 'showValue' ). lo_ixml_nodes ?= lo_ixml_rule_iconset->get_elements_by_tag_name_ns( name = 'cfvo' uri = namespace-main ). lo_ixml_iterator = lo_ixml_nodes->create_iterator( ). lo_ixml ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml IS BOUND. CASE sy-index. WHEN 1. io_style_cond->mode_iconset-cfvo1_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_iconset-cfvo1_value = lo_ixml->get_attribute_ns( 'val' ). WHEN 2. io_style_cond->mode_iconset-cfvo2_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_iconset-cfvo2_value = lo_ixml->get_attribute_ns( 'val' ). WHEN 3. io_style_cond->mode_iconset-cfvo3_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_iconset-cfvo3_value = lo_ixml->get_attribute_ns( 'val' ). WHEN 4. io_style_cond->mode_iconset-cfvo4_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_iconset-cfvo4_value = lo_ixml->get_attribute_ns( 'val' ). WHEN 5. io_style_cond->mode_iconset-cfvo5_type = lo_ixml->get_attribute_ns( 'type' ). io_style_cond->mode_iconset-cfvo5_value = lo_ixml->get_attribute_ns( 'val' ). WHEN OTHERS. EXIT. ENDCASE. lo_ixml ?= lo_ixml_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_worksheet_cond_format_t10. DATA: lv_dxf_style_index TYPE i. FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF me->mt_dxf_styles. io_style_cond->mode_top10-topxx_count = io_ixml_rule->get_attribute_ns( 'rank' ). " Top10, Top20, Top 50... io_style_cond->mode_top10-percent = io_ixml_rule->get_attribute_ns( 'percent' ). " Top10 percent instead of Top10 values IF io_style_cond->mode_top10-percent = '1'. io_style_cond->mode_top10-percent = 'X'. ELSE. io_style_cond->mode_top10-percent = ' '. ENDIF. io_style_cond->mode_top10-bottom = io_ixml_rule->get_attribute_ns( 'bottom' ). " Bottom10 instead of Top10 IF io_style_cond->mode_top10-bottom = '1'. io_style_cond->mode_top10-bottom = 'X'. ELSE. io_style_cond->mode_top10-bottom = ' '. ENDIF. *--------------------------------------------------------------------* * Cell formatting for top10 *--------------------------------------------------------------------* lv_dxf_style_index = io_ixml_rule->get_attribute_ns( 'dxfId' ). READ TABLE me->mt_dxf_styles ASSIGNING <ls_dxf_style> WITH KEY dxf = lv_dxf_style_index. IF sy-subrc = 0. io_style_cond->mode_top10-cell_style = <ls_dxf_style>-guid. ENDIF. ENDMETHOD. METHOD load_worksheet_drawing. TYPES: BEGIN OF t_c_nv_pr, name TYPE string, id TYPE string, END OF t_c_nv_pr. TYPES: BEGIN OF t_blip, cstate TYPE string, embed TYPE string, END OF t_blip. TYPES: BEGIN OF t_chart, id TYPE string, END OF t_chart. CONSTANTS: lc_xml_attr_true TYPE string VALUE 'true', lc_xml_attr_true_int TYPE string VALUE '1'. CONSTANTS: lc_rel_chart TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart', lc_rel_image TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image'. DATA: drawing TYPE REF TO if_ixml_document, anchors TYPE REF TO if_ixml_node_collection, node TYPE REF TO if_ixml_element, coll_length TYPE i, iterator TYPE REF TO if_ixml_node_iterator, anchor_elem TYPE REF TO if_ixml_element, relationship TYPE t_relationship, rel_drawings TYPE t_rel_drawings, rel_drawing TYPE t_rel_drawing, rels_drawing TYPE REF TO if_ixml_document, rels_drawing_path TYPE string, stripped_name TYPE chkfile, dirname TYPE string, path TYPE string, path2 TYPE text255, file_ext2 TYPE char10. " Read Workbook Relationships CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH' EXPORTING full_name = ip_path IMPORTING stripped_name = stripped_name file_path = dirname. CONCATENATE dirname '_rels/' stripped_name '.rels' INTO rels_drawing_path. rels_drawing_path = resolve_path( rels_drawing_path ). rels_drawing = me->get_ixml_from_zip_archive( rels_drawing_path ). node ?= rels_drawing->find_from_name_ns( name = 'Relationship' uri = namespace-relationships ). WHILE node IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = node CHANGING cp_structure = relationship ). rel_drawing-id = relationship-id. CONCATENATE dirname relationship-target INTO path. path = resolve_path( path ). rel_drawing-content = me->get_from_zip_archive( path ). "------------> This is for template usage path2 = path. zcl_excel_common=>split_file( EXPORTING ip_file = path2 IMPORTING ep_extension = file_ext2 ). rel_drawing-file_ext = file_ext2. "-------------Added by Alessandro Iannacci - Should load graph xml CASE relationship-type. WHEN lc_rel_chart. "Read chart xml rel_drawing-content_xml = me->get_ixml_from_zip_archive( path ). WHEN OTHERS. ENDCASE. "---------------------------- APPEND rel_drawing TO rel_drawings. node ?= node->get_next( ). ENDWHILE. drawing = me->get_ixml_from_zip_archive( ip_path ). * one-cell anchor ************** anchors = drawing->get_elements_by_tag_name_ns( name = 'oneCellAnchor' uri = namespace-xdr ). coll_length = anchors->get_length( ). iterator = anchors->create_iterator( ). DO coll_length TIMES. anchor_elem ?= iterator->get_next( ). CALL METHOD me->load_drawing_anchor EXPORTING io_anchor_element = anchor_elem io_worksheet = io_worksheet it_related_drawings = rel_drawings. ENDDO. * two-cell anchor ****************** anchors = drawing->get_elements_by_tag_name_ns( name = 'twoCellAnchor' uri = namespace-xdr ). coll_length = anchors->get_length( ). iterator = anchors->create_iterator( ). DO coll_length TIMES. anchor_elem ?= iterator->get_next( ). CALL METHOD me->load_drawing_anchor EXPORTING io_anchor_element = anchor_elem io_worksheet = io_worksheet it_related_drawings = rel_drawings. ENDDO. ENDMETHOD. METHOD load_worksheet_hyperlinks. DATA: lo_ixml_hyperlinks TYPE REF TO if_ixml_node_collection, lo_ixml_hyperlink TYPE REF TO if_ixml_element, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lv_row_start TYPE zexcel_cell_row, lv_row_end TYPE zexcel_cell_row, lv_column_start TYPE zexcel_cell_column_alpha, lv_column_end TYPE zexcel_cell_column_alpha, lv_is_internal TYPE abap_bool, lv_url TYPE string, lv_value TYPE zexcel_cell_value. DATA: BEGIN OF ls_hyperlink, ref TYPE string, display TYPE string, location TYPE string, tooltip TYPE string, r_id TYPE string, END OF ls_hyperlink. FIELD-SYMBOLS: <ls_external_hyperlink> LIKE LINE OF it_external_hyperlinks. lo_ixml_hyperlinks = io_ixml_worksheet->get_elements_by_tag_name_ns( name = 'hyperlink' uri = namespace-main ). lo_ixml_iterator = lo_ixml_hyperlinks->create_iterator( ). lo_ixml_hyperlink ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml_hyperlink IS BOUND. CLEAR ls_hyperlink. CLEAR lv_url. ls_hyperlink-ref = lo_ixml_hyperlink->get_attribute_ns( 'ref' ). ls_hyperlink-display = lo_ixml_hyperlink->get_attribute_ns( 'display' ). ls_hyperlink-location = lo_ixml_hyperlink->get_attribute_ns( 'location' ). ls_hyperlink-tooltip = lo_ixml_hyperlink->get_attribute_ns( 'tooltip' ). ls_hyperlink-r_id = lo_ixml_hyperlink->get_attribute_ns( name = 'id' uri = namespace-r ). IF ls_hyperlink-r_id IS INITIAL. " Internal link lv_is_internal = abap_true. lv_url = ls_hyperlink-location. ELSE. " External link READ TABLE it_external_hyperlinks ASSIGNING <ls_external_hyperlink> WITH TABLE KEY id = ls_hyperlink-r_id. IF sy-subrc = 0. lv_is_internal = abap_false. lv_url = <ls_external_hyperlink>-target. ENDIF. ENDIF. IF lv_url IS NOT INITIAL. " because of unsupported external links zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = ls_hyperlink-ref IMPORTING e_column_start = lv_column_start e_column_end = lv_column_end e_row_start = lv_row_start e_row_end = lv_row_end ). io_worksheet->set_area_hyperlink( EXPORTING ip_column_start = lv_column_start ip_column_end = lv_column_end ip_row = lv_row_start ip_row_to = lv_row_end ip_url = lv_url ip_is_internal = lv_is_internal ). ENDIF. lo_ixml_hyperlink ?= lo_ixml_iterator->get_next( ). ENDWHILE. ENDMETHOD. METHOD load_worksheet_ignored_errors. DATA: lo_ixml_ignored_errors TYPE REF TO if_ixml_node_collection, lo_ixml_ignored_error TYPE REF TO if_ixml_element, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, ls_ignored_error TYPE zcl_excel_worksheet=>mty_s_ignored_errors, lt_ignored_errors TYPE zcl_excel_worksheet=>mty_th_ignored_errors. DATA: BEGIN OF ls_raw_ignored_error, sqref TYPE string, evalerror TYPE string, twodigittextyear TYPE string, numberstoredastext TYPE string, formula TYPE string, formularange TYPE string, unlockedformula TYPE string, emptycellreference TYPE string, listdatavalidation TYPE string, calculatedcolumn TYPE string, END OF ls_raw_ignored_error. CLEAR lt_ignored_errors. lo_ixml_ignored_errors = io_ixml_worksheet->get_elements_by_tag_name_ns( name = 'ignoredError' uri = namespace-main ). lo_ixml_iterator = lo_ixml_ignored_errors->create_iterator( ). lo_ixml_ignored_error ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml_ignored_error IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_ignored_error CHANGING cp_structure = ls_raw_ignored_error ). CLEAR ls_ignored_error. ls_ignored_error-cell_coords = ls_raw_ignored_error-sqref. ls_ignored_error-eval_error = boolc( ls_raw_ignored_error-evalerror = '1' ). ls_ignored_error-two_digit_text_year = boolc( ls_raw_ignored_error-twodigittextyear = '1' ). ls_ignored_error-number_stored_as_text = boolc( ls_raw_ignored_error-numberstoredastext = '1' ). ls_ignored_error-formula = boolc( ls_raw_ignored_error-formula = '1' ). ls_ignored_error-formula_range = boolc( ls_raw_ignored_error-formularange = '1' ). ls_ignored_error-unlocked_formula = boolc( ls_raw_ignored_error-unlockedformula = '1' ). ls_ignored_error-empty_cell_reference = boolc( ls_raw_ignored_error-emptycellreference = '1' ). ls_ignored_error-list_data_validation = boolc( ls_raw_ignored_error-listdatavalidation = '1' ). ls_ignored_error-calculated_column = boolc( ls_raw_ignored_error-calculatedcolumn = '1' ). INSERT ls_ignored_error INTO TABLE lt_ignored_errors. lo_ixml_ignored_error ?= lo_ixml_iterator->get_next( ). ENDWHILE. io_worksheet->set_ignored_errors( lt_ignored_errors ). ENDMETHOD. METHOD load_worksheet_pagebreaks. DATA: lo_node TYPE REF TO if_ixml_element, lo_ixml_rowbreaks TYPE REF TO if_ixml_node_collection, lo_ixml_colbreaks TYPE REF TO if_ixml_node_collection, lo_ixml_iterator TYPE REF TO if_ixml_node_iterator, lo_ixml_rowbreak TYPE REF TO if_ixml_element, lo_ixml_colbreak TYPE REF TO if_ixml_element, lo_style_cond TYPE REF TO zcl_excel_style_cond, lv_count TYPE i. DATA: lt_pagebreaks TYPE STANDARD TABLE OF zcl_excel_worksheet_pagebreaks=>ts_pagebreak_at, lo_pagebreaks TYPE REF TO zcl_excel_worksheet_pagebreaks. FIELD-SYMBOLS: <ls_pagebreak_row> LIKE LINE OF lt_pagebreaks. FIELD-SYMBOLS: <ls_pagebreak_col> LIKE LINE OF lt_pagebreaks. *--------------------------------------------------------------------* * Get minimal number of cells where to add pagebreaks * Since rows and columns are handled in separate nodes * Build table to identify these cells *--------------------------------------------------------------------* lo_node ?= io_ixml_worksheet->find_from_name_ns( name = 'rowBreaks' uri = namespace-main ). CHECK lo_node IS BOUND. lo_ixml_rowbreaks = lo_node->get_elements_by_tag_name_ns( name = 'brk' uri = namespace-main ). lo_ixml_iterator = lo_ixml_rowbreaks->create_iterator( ). lo_ixml_rowbreak ?= lo_ixml_iterator->get_next( ). WHILE lo_ixml_rowbreak IS BOUND. APPEND INITIAL LINE TO lt_pagebreaks ASSIGNING <ls_pagebreak_row>. <ls_pagebreak_row>-cell_row = lo_ixml_rowbreak->get_attribute_ns( 'id' ). lo_ixml_rowbreak ?= lo_ixml_iterator->get_next( ). ENDWHILE. CHECK <ls_pagebreak_row> IS ASSIGNED. lo_node ?= io_ixml_worksheet->find_from_name_ns( name = 'colBreaks' uri = namespace-main ). CHECK lo_node IS BOUND. lo_ixml_colbreaks = lo_node->get_elements_by_tag_name_ns( name = 'brk' uri = namespace-main ). lo_ixml_iterator = lo_ixml_colbreaks->create_iterator( ). lo_ixml_colbreak ?= lo_ixml_iterator->get_next( ). CLEAR lv_count. WHILE lo_ixml_colbreak IS BOUND. ADD 1 TO lv_count. READ TABLE lt_pagebreaks INDEX lv_count ASSIGNING <ls_pagebreak_col>. IF sy-subrc <> 0. APPEND INITIAL LINE TO lt_pagebreaks ASSIGNING <ls_pagebreak_col>. <ls_pagebreak_col>-cell_row = <ls_pagebreak_row>-cell_row. ENDIF. <ls_pagebreak_col>-cell_column = lo_ixml_colbreak->get_attribute_ns( 'id' ). lo_ixml_colbreak ?= lo_ixml_iterator->get_next( ). ENDWHILE. *--------------------------------------------------------------------* * Finally add each pagebreak *--------------------------------------------------------------------* lo_pagebreaks = io_worksheet->get_pagebreaks( ). LOOP AT lt_pagebreaks ASSIGNING <ls_pagebreak_row>. lo_pagebreaks->add_pagebreak( ip_column = <ls_pagebreak_row>-cell_column ip_row = <ls_pagebreak_row>-cell_row ). ENDLOOP. ENDMETHOD. METHOD load_worksheet_pagemargins. TYPES: BEGIN OF lty_page_margins, footer TYPE string, header TYPE string, bottom TYPE string, top TYPE string, right TYPE string, left TYPE string, END OF lty_page_margins. DATA:lo_ixml_pagemargins_elem TYPE REF TO if_ixml_element, ls_pagemargins TYPE lty_page_margins. lo_ixml_pagemargins_elem = io_ixml_worksheet->find_from_name_ns( name = 'pageMargins' uri = namespace-main ). IF lo_ixml_pagemargins_elem IS NOT INITIAL. fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_pagemargins_elem CHANGING cp_structure = ls_pagemargins ). io_worksheet->sheet_setup->margin_bottom = zcl_excel_common=>excel_string_to_number( ls_pagemargins-bottom ). io_worksheet->sheet_setup->margin_footer = zcl_excel_common=>excel_string_to_number( ls_pagemargins-footer ). io_worksheet->sheet_setup->margin_header = zcl_excel_common=>excel_string_to_number( ls_pagemargins-header ). io_worksheet->sheet_setup->margin_left = zcl_excel_common=>excel_string_to_number( ls_pagemargins-left ). io_worksheet->sheet_setup->margin_right = zcl_excel_common=>excel_string_to_number( ls_pagemargins-right ). io_worksheet->sheet_setup->margin_top = zcl_excel_common=>excel_string_to_number( ls_pagemargins-top ). ENDIF. ENDMETHOD. METHOD read_from_applserver. DATA: lv_filelength TYPE i, lt_binary_data TYPE STANDARD TABLE OF x255 WITH NON-UNIQUE DEFAULT KEY, ls_binary_data LIKE LINE OF lt_binary_data, lv_filename TYPE string, lv_max_length_line TYPE i, lv_actual_length_line TYPE i, lv_errormessage TYPE string. lv_filename = i_filename. DESCRIBE FIELD ls_binary_data LENGTH lv_max_length_line IN BYTE MODE. OPEN DATASET lv_filename FOR INPUT IN BINARY MODE. IF sy-subrc <> 0. lv_errormessage = 'A problem occured when reading the file'(001). zcx_excel=>raise_text( lv_errormessage ). ENDIF. WHILE sy-subrc = 0. READ DATASET lv_filename INTO ls_binary_data MAXIMUM LENGTH lv_max_length_line ACTUAL LENGTH lv_actual_length_line. APPEND ls_binary_data TO lt_binary_data. lv_filelength = lv_filelength + lv_actual_length_line. ENDWHILE. CLOSE DATASET lv_filename. *--------------------------------------------------------------------* * Binary data needs to be provided as XSTRING for further processing *--------------------------------------------------------------------* CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = lv_filelength IMPORTING buffer = r_excel_data TABLES binary_tab = lt_binary_data. ENDMETHOD. METHOD read_from_local_file. DATA: lv_filelength TYPE i, lt_binary_data TYPE STANDARD TABLE OF x255 WITH NON-UNIQUE DEFAULT KEY, ls_binary_data LIKE LINE OF lt_binary_data, lv_filename TYPE string, lv_errormessage TYPE string. lv_filename = i_filename. cl_gui_frontend_services=>gui_upload( EXPORTING filename = lv_filename filetype = 'BIN' " We are basically working with zipped directories --> force binary read IMPORTING filelength = lv_filelength CHANGING data_tab = lt_binary_data 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. lv_errormessage = 'A problem occured when reading the file'(001). zcx_excel=>raise_text( lv_errormessage ). ENDIF. *--------------------------------------------------------------------* * Binary data needs to be provided as XSTRING for further processing *--------------------------------------------------------------------* CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = lv_filelength IMPORTING buffer = r_excel_data TABLES binary_tab = lt_binary_data. ENDMETHOD. METHOD resolve_path. *--------------------------------------------------------------------* * ToDos: * 2do§1 Determine whether the replacement should be done * iterative to allow /../../.. or something alike * 2do§2 Determine whether /./ has to be supported as well * 2do§3 Create unit-test for this method * * Please don't just delete these ToDos if they are not * needed but leave a comment that states this *--------------------------------------------------------------------* *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-11 * - ... * changes: replaced previous coding by regular expression * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* *--------------------------------------------------------------------* * §1 This routine will receive a path, that may have a relative pathname (/../) included somewhere * The output should be a resolved path without relative references * Example: Input xl/worksheets/../drawings/drawing1.xml * Output xl/drawings/drawing1.xml *--------------------------------------------------------------------* rp_result = ip_path. *--------------------------------------------------------------------* * §1 Remove relative pathnames *--------------------------------------------------------------------* * Regular expression [^/]*/\.\./ * [^/]* --> any number of characters other than / * followed by /\.\./ --> the sequence /../ * ==> worksheets/../ will be found in the example *--------------------------------------------------------------------* REPLACE REGEX '[^/]*/\.\./' IN rp_result WITH ``. ENDMETHOD. METHOD resolve_referenced_formulae. TYPES: BEGIN OF ty_referenced_cells, sheet TYPE REF TO zcl_excel_worksheet, si TYPE i, row_from TYPE i, row_to TYPE i, col_from TYPE i, col_to TYPE i, formula TYPE string, ref_cell TYPE char10, END OF ty_referenced_cells. DATA: ls_ref_formula LIKE LINE OF me->mt_ref_formulae, lts_referenced_cells TYPE SORTED TABLE OF ty_referenced_cells WITH NON-UNIQUE KEY sheet si row_from row_to col_from col_to, ls_referenced_cell LIKE LINE OF lts_referenced_cells, lv_col_from TYPE zexcel_cell_column_alpha, lv_col_to TYPE zexcel_cell_column_alpha, lv_resulting_formula TYPE string, lv_current_cell TYPE char10. me->mt_ref_formulae = me->mt_ref_formulae. *--------------------------------------------------------------------* * Get referenced Cells, Build ranges for easy lookup *--------------------------------------------------------------------* LOOP AT me->mt_ref_formulae INTO ls_ref_formula WHERE ref <> space. CLEAR ls_referenced_cell. ls_referenced_cell-sheet = ls_ref_formula-sheet. ls_referenced_cell-si = ls_ref_formula-si. ls_referenced_cell-formula = ls_ref_formula-formula. TRY. zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = ls_ref_formula-ref IMPORTING e_column_start = lv_col_from e_column_end = lv_col_to e_row_start = ls_referenced_cell-row_from e_row_end = ls_referenced_cell-row_to ). ls_referenced_cell-col_from = zcl_excel_common=>convert_column2int( lv_col_from ). ls_referenced_cell-col_to = zcl_excel_common=>convert_column2int( lv_col_to ). CLEAR ls_referenced_cell-ref_cell. TRY. ls_referenced_cell-ref_cell(3) = zcl_excel_common=>convert_column2alpha( ls_ref_formula-column ). ls_referenced_cell-ref_cell+3 = ls_ref_formula-row. CONDENSE ls_referenced_cell-ref_cell NO-GAPS. CATCH zcx_excel. ENDTRY. INSERT ls_referenced_cell INTO TABLE lts_referenced_cells. CATCH zcx_excel. ENDTRY. ENDLOOP. * break x0009004. *--------------------------------------------------------------------* * For each referencing cell determine the referenced cell * and resolve the formula *--------------------------------------------------------------------* LOOP AT me->mt_ref_formulae INTO ls_ref_formula WHERE ref = space. CLEAR lv_current_cell. TRY. lv_current_cell(3) = zcl_excel_common=>convert_column2alpha( ls_ref_formula-column ). lv_current_cell+3 = ls_ref_formula-row. CONDENSE lv_current_cell NO-GAPS. CATCH zcx_excel. ENDTRY. LOOP AT lts_referenced_cells INTO ls_referenced_cell WHERE sheet = ls_ref_formula-sheet AND si = ls_ref_formula-si AND row_from <= ls_ref_formula-row AND row_to >= ls_ref_formula-row AND col_from <= ls_ref_formula-column AND col_to >= ls_ref_formula-column. TRY. lv_resulting_formula = zcl_excel_common=>determine_resulting_formula( iv_reference_cell = ls_referenced_cell-ref_cell iv_reference_formula = ls_referenced_cell-formula iv_current_cell = lv_current_cell ). ls_referenced_cell-sheet->set_cell_formula( ip_column = ls_ref_formula-column ip_row = ls_ref_formula-row ip_formula = lv_resulting_formula ). CATCH zcx_excel. ENDTRY. EXIT. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD zif_excel_reader~load. *--------------------------------------------------------------------* * ToDos: * 2do§1 Map Document Properties to ZCL_EXCEL *--------------------------------------------------------------------* CONSTANTS: lcv_core_properties TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties', lcv_office_document TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument'. DATA: lo_rels TYPE REF TO if_ixml_document, lo_node TYPE REF TO if_ixml_element, ls_relationship TYPE t_relationship. *--------------------------------------------------------------------* * §1 Create EXCEL-Object we want to return to caller * §2 We need to read the the file "\\_rels\.rels" because it tells * us where in this folder structure the data for the workbook * is located in the xlsx zip-archive * * The xlsx Zip-archive has generally the following folder structure: * <root> | * |--> _rels * |--> doc_Props * |--> xl | * |--> _rels * |--> theme * |--> worksheets * §3 Extracting from this the path&file where the workbook is located * Following is an example how this file could be set up * <?xml version="1.0" encoding="UTF-8" standalone="true"?> * <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> * <Relationship Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Id="rId3"/> * <Relationship Target="docProps/core.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Id="rId2"/> * <Relationship Target="xl/workbook.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Id="rId1"/> * </Relationships> *--------------------------------------------------------------------* CLEAR mt_dxf_styles. CLEAR mt_ref_formulae. CLEAR shared_strings. CLEAR styles. *--------------------------------------------------------------------* * §1 Create EXCEL-Object we want to return to caller *--------------------------------------------------------------------* IF iv_zcl_excel_classname IS INITIAL. CREATE OBJECT r_excel. ELSE. CREATE OBJECT r_excel TYPE (iv_zcl_excel_classname). ENDIF. zip = create_zip_archive( i_xlsx_binary = i_excel2007 i_use_alternate_zip = i_use_alternate_zip ). *--------------------------------------------------------------------* * §2 Get file in folderstructure *--------------------------------------------------------------------* lo_rels = get_ixml_from_zip_archive( '_rels/.rels' ). *--------------------------------------------------------------------* * §3 Cycle through the Relationship Tags and use the ones we need *--------------------------------------------------------------------* lo_node ?= lo_rels->find_from_name_ns( name = 'Relationship' uri = namespace-relationships ). "#EC NOTEXT WHILE lo_node IS BOUND. fill_struct_from_attributes( EXPORTING ip_element = lo_node CHANGING cp_structure = ls_relationship ). CASE ls_relationship-type. WHEN lcv_office_document. *--------------------------------------------------------------------* * Parse workbook - main part here *--------------------------------------------------------------------* load_workbook( iv_workbook_full_filename = ls_relationship-target io_excel = r_excel ). WHEN lcv_core_properties. " 2do§1 Map Document Properties to ZCL_EXCEL WHEN OTHERS. ENDCASE. lo_node ?= lo_node->get_next( ). ENDWHILE. ENDMETHOD. METHOD zif_excel_reader~load_file. DATA: lv_excel_data TYPE xstring. *--------------------------------------------------------------------* * Read file into binary string *--------------------------------------------------------------------* IF i_from_applserver = abap_true. lv_excel_data = read_from_applserver( i_filename ). ELSE. lv_excel_data = read_from_local_file( i_filename ). ENDIF. *--------------------------------------------------------------------* * Parse Excel data into ZCL_EXCEL object from binary string *--------------------------------------------------------------------* r_excel = zif_excel_reader~load( i_excel2007 = lv_excel_data i_use_alternate_zip = i_use_alternate_zip iv_zcl_excel_classname = iv_zcl_excel_classname ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 1069, 5276, 62, 46862, 62, 12726, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 15675, 1137, 62, 12726, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 1069, 5276, 62, 46862, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 6070, 62, 7249, 62, 6738, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 541, 62, 30854, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 30854, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 13155, 62, 301, 5620, 41876, 597, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 15675, 1137, 62, 12726, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 39468, 1056, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 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, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2496, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2496, 14171, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2499, 25473, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 11, 198, 220, 220, 220, 220, 220, 220, 220, 9629, 312, 220, 220, 220, 220, 220, 41876, 4731, 11, 220, 220, 220, 220, 366, 1040, 1303, 22370, 532, 9585, 15274, 14, 4033, 82, 532, 2622, 284, 5911, 3376, 9629, 198, 220, 220, 220, 220, 220, 220, 220, 17205, 25473, 312, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 39468, 1056, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 7753, 9641, 11, 198, 220, 220, 220, 220, 220, 220, 220, 598, 3672, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15436, 863, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1877, 7287, 863, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 374, 929, 11249, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14873, 12453, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 7753, 9641, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 21760, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 9629, 312, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1181, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 21760, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 1818, 2070, 1050, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14873, 12453, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4277, 43810, 9641, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 1818, 2070, 1050, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 21760, 1050, 11, 198, 220, 220, 220, 220, 220, 220, 220, 14873, 12453, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 21760, 1050, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 256, 62, 9521, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7104, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 220, 220, 220, 220, 220, 220, 366, 28463, 276, 351, 2071, 1303, 22370, 780, 5231, 1659, 346, 1010, 1422, 470, 38836, 48476, 740, 198, 220, 220, 220, 220, 220, 220, 220, 17205, 25473, 312, 41876, 4731, 11, 220, 220, 220, 220, 220, 220, 366, 2071, 1303, 24136, 198, 220, 220, 220, 220, 220, 23578, 3963, 256, 62, 9521, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 62, 69, 2171, 220, 220, 41876, 49053, 9795, 43679, 3963, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 20797, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 62, 65, 6361, 41876, 49053, 9795, 43679, 3963, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 65, 6361, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 62, 10331, 82, 220, 220, 41876, 49053, 9795, 43679, 3963, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 10331, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 62, 7635, 62, 5420, 82, 41876, 49053, 9795, 43679, 3963, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcx_dbbr_dynpro_update_exc DEFINITION PUBLIC INHERITING FROM zcx_sat_nc_exception FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING !textid LIKE if_t100_message=>t100key OPTIONAL !previous LIKE previous OPTIONAL !msgv1 TYPE sy-msgv1 OPTIONAL !msgv2 TYPE sy-msgv2 OPTIONAL !msgv3 TYPE sy-msgv3 OPTIONAL !msgv4 TYPE sy-msgv4 OPTIONAL . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcx_dbbr_dynpro_update_exc IMPLEMENTATION. METHOD constructor ##ADT_SUPPRESS_GENERATION. CALL METHOD super->constructor EXPORTING previous = previous msgv1 = msgv1 msgv2 = msgv2 msgv3 = msgv3 msgv4 = msgv4. CLEAR me->textid. IF textid IS INITIAL. if_t100_message~t100key = if_t100_message=>default_textid. ELSE. if_t100_message~t100key = textid. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 66, 87, 62, 9945, 1671, 62, 67, 2047, 1676, 62, 19119, 62, 41194, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 66, 87, 62, 49720, 62, 10782, 62, 1069, 4516, 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, 5239, 312, 220, 220, 34178, 611, 62, 83, 3064, 62, 20500, 14804, 83, 3064, 2539, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 3866, 1442, 34178, 2180, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 19662, 85, 16, 220, 220, 220, 41876, 827, 12, 19662, 85, 16, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 19662, 85, 17, 220, 220, 220, 41876, 827, 12, 19662, 85, 17, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 19662, 85, 18, 220, 220, 220, 41876, 827, 12, 19662, 85, 18, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 19662, 85, 19, 220, 220, 220, 41876, 827, 12, 19662, 85, 19, 39852, 2849, 1847, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 66, 87, 62, 9945, 1671, 62, 67, 2047, 1676, 62, 19119, 62, 41194, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 22492, 2885, 51, 62, 40331, 32761, 62, 35353, 1137, 6234, 13, 198, 220, 220, 220, 42815, 337, 36252, 2208, 3784, 41571, 273, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2180, 796, 2180, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 85, 16, 220, 220, 220, 796, 31456, 85, 16, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 85, 17, 220, 220, 220, 796, 31456, 85, 17, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 85, 18, 220, 220, 220, 796, 31456, 85, 18, 198, 220, 220, 220, 220, 220, 220, 220, 31456, 85, 19, 220, 220, 220, 796, 31456, 85, 19, 13, 198, 220, 220, 220, 30301, 1503, 502, 3784, 5239, 312, 13, 198, 220, 220, 220, 16876, 2420, 312, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 611, 62, 83, 3064, 62, 20500, 14804, 12286, 62, 5239, 312, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 611, 62, 83, 3064, 62, 20500, 93, 83, 3064, 2539, 796, 2420, 312, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*"* use this source file for your ABAP unit test classes *--------------------------------------------------------------------* * Unit test: Serialization *--------------------------------------------------------------------* CLASS lcl_unit_tests_serialization DEFINITION DEFERRED. CLASS /usi/cl_bal_dc_itab DEFINITION LOCAL FRIENDS lcl_unit_tests_serialization. CLASS lcl_unit_tests_serialization DEFINITION FINAL FOR TESTING. "#AU Risk_Level Harmless "#AU Duration Short PRIVATE SECTION. METHODS test_deserialize_bad_xml FOR TESTING. METHODS test_deserialize_valid_xml FOR TESTING. ENDCLASS. CLASS lcl_unit_tests_serialization IMPLEMENTATION. METHOD test_deserialize_bad_xml. DATA: cut TYPE REF TO /usi/cl_bal_dc_callstack, invalid_input TYPE /usi/bal_xml_string. TRY. cut ?= /usi/cl_bal_dc_itab=>/usi/if_bal_data_container~deserialize( invalid_input ). cl_aunit_assert=>fail( `Input was garbage! Exception expected!` ). CATCH /usi/cx_bal_root. RETURN. ENDTRY. ENDMETHOD. METHOD test_deserialize_valid_xml. DATA: cut TYPE REF TO /usi/cl_bal_dc_itab, fieldcat_line TYPE lvc_s_fcat, BEGIN OF input, table TYPE abap_callstack, fieldcat TYPE lvc_t_fcat, title TYPE REF TO /usi/if_bal_text_container_c40, END OF input, serialized_data_container TYPE /usi/bal_xml_string, serialized_title_in TYPE /usi/bal_xml_string, serialized_title_out TYPE /usi/bal_xml_string, unexpected_exception TYPE REF TO /usi/cx_bal_root. FIELD-SYMBOLS: <output_fieldcat> TYPE /usi/cl_bal_dc_itab=>ty_fieldcatalog, <output_table> TYPE any. " Set test input CALL FUNCTION 'SYSTEM_CALLSTACK' IMPORTING callstack = input-table. fieldcat_line-fieldname = 'TEST'. INSERT fieldcat_line INTO TABLE input-fieldcat. CREATE OBJECT input-title TYPE /usi/cl_bal_tc_literal_c40 EXPORTING i_text = 'Callstack'. " serialize & deserialize TRY. CREATE OBJECT cut EXPORTING i_internal_table = input-table i_title = input-title i_fieldcatalog = input-fieldcat. serialized_data_container = cut->/usi/if_bal_data_container~serialize( ). CLEAR cut. cut ?= /usi/cl_bal_dc_itab=>/usi/if_bal_data_container~deserialize( serialized_data_container ). CATCH /usi/cx_bal_root INTO unexpected_exception. /usi/cl_bal_aunit_exception=>fail_on_unexpected_exception( unexpected_exception ). ENDTRY. " compare ASSIGN cut->internal_table_ref->* TO <output_table>. cl_aunit_assert=>assert_equals( act = <output_table> exp = input-table ). READ TABLE cut->fieldcatalog_table ASSIGNING <output_fieldcat> WITH KEY name = cut->fieldcatalog_names-external. IF sy-subrc EQ 0. cl_aunit_assert=>assert_equals( act = <output_fieldcat>-fieldcatalog exp = input-fieldcat ). ELSE. cl_aunit_assert=>fail( `Field catalog was lost!` ). ENDIF. serialized_title_in = input-title->serialize( ). serialized_title_out = cut->title->serialize( ). cl_aunit_assert=>assert_equals( act = serialized_title_out exp = serialized_title_in ). ENDMETHOD. ENDCLASS. *--------------------------------------------------------------------* * Unit test: Cardinality *--------------------------------------------------------------------* CLASS lcl_unit_test_cardinality DEFINITION FINAL FOR TESTING. "#AU Risk_Level Harmless "#AU Duration Short PRIVATE SECTION. METHODS assert_is_multi_use FOR TESTING. ENDCLASS. CLASS lcl_unit_test_cardinality IMPLEMENTATION. METHOD assert_is_multi_use. DATA actual_result TYPE abap_bool. actual_result = /usi/cl_bal_dc_itab=>/usi/if_bal_data_container~is_multiple_use_allowed( ). cl_aunit_assert=>assert_equals( exp = abap_true act = actual_result ). ENDMETHOD. ENDCLASS. *--------------------------------------------------------------------* * Unit test: Classname *--------------------------------------------------------------------* CLASS lcl_unit_test_classname DEFINITION FINAL CREATE PUBLIC FOR TESTING. "#AU Risk_Level Harmless "#AU Duration Short PRIVATE SECTION. METHODS assert_returns_right_classname FOR TESTING. ENDCLASS. CLASS lcl_unit_test_classname IMPLEMENTATION. METHOD assert_returns_right_classname. DATA: cut_description TYPE REF TO /usi/cl_bal_aunit_cut_descr_cl, actual_result TYPE classname. actual_result = /usi/cl_bal_dc_itab=>/usi/if_bal_data_container~get_classname( ). cut_description = /usi/cl_bal_aunit_cut_descr_cl=>get_instance( ). cut_description->assert_classname_equals( actual_result ). ENDMETHOD. ENDCLASS. *--------------------------------------------------------------------* * Unit test: Cardinality *--------------------------------------------------------------------* CLASS lcl_unit_test_input_validation DEFINITION FINAL FOR TESTING. "#AU Risk_Level Harmless "#AU Duration Short PRIVATE SECTION. METHODS test_good_table FOR TESTING. METHODS test_non_ddic_table FOR TESTING. METHODS test_wrong_line_type FOR TESTING. ENDCLASS. CLASS lcl_unit_test_input_validation IMPLEMENTATION. METHOD test_good_table. DATA: cut TYPE REF TO /usi/cl_bal_dc_itab, input TYPE abap_callstack, unexpected_exception TYPE REF TO /usi/cx_bal_root. TRY. CREATE OBJECT cut EXPORTING i_internal_table = input. CATCH /usi/cx_bal_root INTO unexpected_exception. /usi/cl_bal_aunit_exception=>fail_on_unexpected_exception( unexpected_exception ). ENDTRY. ENDMETHOD. METHOD test_non_ddic_table. TYPES: BEGIN OF ty_non_ddic_table_line, mandt TYPE mandt, END OF ty_non_ddic_table_line, ty_non_ddic_table TYPE STANDARD TABLE OF ty_non_ddic_table_line WITH NON-UNIQUE DEFAULT KEY. DATA: cut TYPE REF TO /usi/cl_bal_dc_itab, input TYPE ty_non_ddic_table. TRY. CREATE OBJECT cut EXPORTING i_internal_table = input. cut->/usi/if_bal_data_container~serialize( ). cl_aunit_assert=>fail( `The class is not supposed to support non-ddic tables!` ). CATCH /usi/cx_bal_root. " We expected that RETURN. ENDTRY. ENDMETHOD. METHOD test_wrong_line_type. DATA: cut TYPE REF TO /usi/cl_bal_dc_itab, input TYPE string_table. TRY. CREATE OBJECT cut EXPORTING i_internal_table = input. cut->/usi/if_bal_data_container~serialize( ). cl_aunit_assert=>fail( `The class is not supposed to support tables with non-structured line types!` ). CATCH /usi/cx_bal_root. " We expected that RETURN. ENDTRY. ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 9, 10097, 650, 9, 198, 9, 11801, 1332, 25, 23283, 1634, 198, 9, 10097, 650, 9, 198, 31631, 300, 565, 62, 20850, 62, 41989, 62, 46911, 1634, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 1220, 385, 72, 14, 565, 62, 6893, 62, 17896, 62, 270, 397, 5550, 20032, 17941, 37347, 1847, 48167, 1677, 5258, 300, 565, 62, 20850, 62, 41989, 62, 46911, 1634, 13, 198, 198, 31631, 300, 565, 62, 20850, 62, 41989, 62, 46911, 1634, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 13, 198, 220, 25113, 26830, 19602, 62, 4971, 17925, 1203, 198, 220, 25113, 26830, 22920, 220, 220, 10073, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 8906, 48499, 1096, 62, 14774, 62, 19875, 220, 220, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 8906, 48499, 1096, 62, 12102, 62, 19875, 7473, 43001, 2751, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 20850, 62, 41989, 62, 46911, 1634, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1332, 62, 8906, 48499, 1096, 62, 14774, 62, 19875, 13, 198, 220, 220, 220, 42865, 25, 2005, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 565, 62, 6893, 62, 17896, 62, 13345, 25558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12515, 62, 15414, 41876, 1220, 385, 72, 14, 6893, 62, 19875, 62, 8841, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 2005, 5633, 28, 1220, 385, 72, 14, 565, 62, 6893, 62, 17896, 62, 270, 397, 14804, 14, 385, 72, 14, 361, 62, 6893, 62, 7890, 62, 34924, 93, 8906, 48499, 1096, 7, 12515, 62, 15414, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 537, 62, 1942, 270, 62, 30493, 14804, 32165, 7, 4600, 20560, 373, 15413, 0, 35528, 2938, 0, 63, 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, 30826, 27064, 13, 198, 220, 220, 220, 23578, 40405, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1332, 62, 8906, 48499, 1096, 62, 12102, 62, 19875, 13, 198, 220, 220, 220, 42865, 25, 2005, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 565, 62, 6893, 62, 17896, 62, 270, 397, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 9246, 62, 1370, 41876, 300, 28435, 62, 82, 62, 69, 9246, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 5128, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3084, 220, 220, 220, 41876, 450, 499, 62, 13345, 25558, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 9246, 41876, 300, 28435, 62, 83, 62, 69, 9246, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 361, 62, 6893, 62, 5239, 62, 34924, 62, 66, 1821, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 220, 220, 3963, 5128, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11389, 1143, 62, 7890, 62, 34924, 41876, 1220, 385, 72, 14, 6893, 62, 19875, 62, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11389, 1143, 62, 7839, 62, 259, 220, 220, 220, 220, 220, 220, 41876, 1220, 385, 72, 14, 6893, 62, 19875, 62, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 11389, 1143, 62, 7839, 62, 448, 220, 220, 220, 220, 220, 41876, 1220, 385, 72, 14, 6893, 62, 19875, 62, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10059, 62, 1069, 4516, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1220, 385, 72, 14, 66, 87, 62, 6893, 62, 15763, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 22915, 62, 3245, 9246, 29, 41876, 1220, 385, 72, 14, 565, 62, 6893, 62, 17896, 62, 270, 397, 14804, 774, 62, 3245, 9246, 11794, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 22915, 62, 11487, 29, 220, 220, 220, 41876, 597, 13, 628, 220, 220, 220, 366, 5345, 1332, 5128, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 23060, 25361, 62, 34, 7036, 2257, 8120, 6, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 869, 25558, 796, 5128, 12, 11487, 13, 628, 220, 220, 220, 2214, 9246, 62, 1370, 12, 3245, 3672, 796, 705, 51, 6465, 4458, 198, 220, 220, 220, 29194, 17395, 2214, 9246, 62, 1370, 39319, 43679, 5128, 12, 3245, 9246, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 5128, 12, 7839, 41876, 1220, 385, 72, 14, 565, 62, 6893, 62, 23047, 62, 18250, 1691, 62, 66, 1821, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5239, 796, 705, 14134, 25558, 4458, 628, 220, 220, 220, 366, 11389, 1096, 1222, 748, 48499, 1096, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 2005, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 32538, 62, 11487, 796, 5128, 12, 11487, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 7839, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 5128, 12, 7839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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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. 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. cl_w3_api_template=>if_w3_api_template~load( EXPORTING p_template_name = ls_name IMPORTING p_template = li_template EXCEPTIONS object_not_existing = 1 permission_failure = 2 error_occured = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from w3api_template~load' ). ENDIF. li_template->get_attributes( IMPORTING p_attributes = es_attr ). CLEAR: es_attr-chname, es_attr-tdate, es_attr-ttime, es_attr-devclass. li_template->get_source( IMPORTING p_source = lt_source ). 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. cl_w3_api_template=>if_w3_api_template~create_new( EXPORTING p_template_data = is_attr p_program_name = is_attr-programm IMPORTING p_template = li_template ). li_template->set_attributes( 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. li_template->set_source( lt_source ). li_template->if_w3_api_object~save( ). 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. cl_w3_api_template=>if_w3_api_template~load( EXPORTING p_template_name = ls_name IMPORTING p_template = li_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' ). ENDIF. li_template->if_w3_api_object~set_changeable( abap_true ). li_template->if_w3_api_object~delete( ). li_template->if_w3_api_object~save( ). 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=>if_w3_api_template~load( EXPORTING p_template_name = ls_name EXCEPTIONS object_not_existing = 1 permission_failure = 2 error_occured = 3 OTHERS = 4 ). IF sy-subrc = 1. rv_bool = abap_false. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from w3_api_template~load' ). ELSE. rv_bool = abap_true. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. DATA: ls_meta TYPE zif_abapgit_definitions=>ty_metadata. ls_meta = get_metadata( ). IF ls_meta-late_deser = abap_true. APPEND zif_abapgit_object=>gc_step_id-late TO rt_steps. ELSEIF ls_meta-ddic = abap_true. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps. ELSE. APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). 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. 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, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 40, 1404, 52, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1100, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 28243, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 10459, 220, 220, 41876, 266, 18, 19211, 2528, 397, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 3672, 220, 220, 220, 220, 41876, 1312, 330, 522, 20760, 13, 628, 198, 220, 220, 220, 43979, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 537, 62, 86, 18, 62, 15042, 62, 28243, 14804, 361, 62, 86, 18, 62, 15042, 62, 28243, 93, 2220, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 28243, 62, 3672, 220, 220, 220, 220, 796, 43979, 62, 3672, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 28243, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7649, 62, 28243, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 1662, 62, 25687, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 7170, 62, 32165, 495, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 13966, 1522, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 6739, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 18224, 422, 266, 18, 15042, 62, 28243, 93, 2220, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 7649, 62, 28243, 3784, 1136, 62, 1078, 7657, 7, 30023, 9863, 2751, 279, 62, 1078, 7657, 796, 1658, 62, 35226, 6739, 628, 220, 220, 220, 30301, 1503, 25, 1658, 62, 35226, 12, 1349, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 35226, 12, 83, 4475, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 35226, 12, 926, 524, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 35226, 12, 7959, 4871, 13, 628, 220, 220, 220, 7649, 62, 28243, 3784, 1136, 62, 10459, 7, 30023, 9863, 2751, 279, 62, 10459, 796, 300, 83, 62, 10459, 6739, 628, 220, 220, 220, 39962, 1404, 1677, 6158, 43277, 1546, 3963, 300, 83, 62, 10459, 39319, 819, 62, 10459, 47203, 9782, 2751, 9878, 15154, 50, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 3613, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 10459, 220, 220, 41876, 266, 18, 19211, 2528, 397, 4906, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 10459, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 28243, 41876, 4526, 37, 5390, 611, 62, 86, 18, 62, 15042, 62, 28243, 13, 628, 198, 220, 220, 220, 537, 62, 86, 18, 62, 15042, 62, 28243, 14804, 361, 62, 86, 18, 62, 15042, 62, 28243, 93, 17953, 62, 3605, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 279, 62, 28243, 62, 7890, 796, 318, 62, 35226, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 23065, 62, 3672, 796, 318, 62, 35226, 12, 23065, 76, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 279, 62, 28243, 796, 7649, 62, 28243, 6739, 628, 220, 220, 220, 7649, 62, 28243, 3784, 2617, 62, 1078, 7657, 7, 318, 62, 35226, 6739, 628, 220, 220, 220, 300, 85, 62, 10459, 796, 21628, 62, 10459, 13, 198, 220, 220, 220, 7655, 41119, 965, 11925, 7, 300, 85, 62, 10459, 1267, 18189, 14280, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 300, 85, 62, 10459, 7, 13381, 8, 5390, 300, 83, 62, 10459, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 10459, 796, 300, 85, 62, 10459, 10, 13381, 13, 198, 220, 220, 220, 23578, 12418, 41119, 13, 198, 220, 220, 220, 16876, 5626, 300, 85, 62, 10459, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 43504, 10619, 300 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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">Events for popup_get_values checks</p> CLASS zcl_uitb_pgv_exit_events DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. "! <p class="shorttext synchronized" lang="en">Event to check field</p> CLASS-EVENTS check_field_values EXPORTING VALUE(eo_fields) TYPE REF TO zif_uitb_pgv_check_evt_fields. "! <p class="shorttext synchronized" lang="en">Raises CHECK_VALUE event</p> CLASS-METHODS raise_check_values_event IMPORTING io_fields TYPE REF TO zif_uitb_pgv_check_evt_fields. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_uitb_pgv_exit_events IMPLEMENTATION. METHOD raise_check_values_event. RAISE EVENT check_field_values EXPORTING eo_fields = io_fields. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 37103, 329, 46207, 62, 1136, 62, 27160, 8794, 3556, 79, 29, 198, 31631, 1976, 565, 62, 5013, 65, 62, 6024, 85, 62, 37023, 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, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 9237, 284, 2198, 2214, 3556, 79, 29, 198, 220, 220, 220, 42715, 12, 20114, 15365, 2198, 62, 3245, 62, 27160, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 68, 78, 62, 25747, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 5013, 65, 62, 6024, 85, 62, 9122, 62, 1990, 83, 62, 25747, 13, 628, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 21762, 2696, 5870, 25171, 62, 39488, 1785, 3556, 79, 29, 198, 220, 220, 220, 42715, 12, 49273, 50, 5298, 62, 9122, 62, 27160, 62, 15596, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 25747, 41876, 4526, 37, 5390, 1976, 361, 62, 5013, 65, 62, 6024, 85, 62, 9122, 62, 1990, 83, 62, 25747, 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, 5013, 65, 62, 6024, 85, 62, 37023, 62, 31534, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 5298, 62, 9122, 62, 27160, 62, 15596, 13, 198, 220, 220, 220, 17926, 24352, 49261, 2198, 62, 3245, 62, 27160, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 304, 78, 62, 25747, 796, 33245, 62, 25747, 13, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_advent2020_day06_schmelto DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_advent2020_schmelto . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_advent2020_day06_schmelto IMPLEMENTATION. METHOD zif_advent2020_schmelto~solve. output = 'todo'. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 324, 1151, 42334, 62, 820, 3312, 62, 20601, 17694, 1462, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 324, 1151, 42334, 62, 20601, 17694, 1462, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 324, 1151, 42334, 62, 820, 3312, 62, 20601, 17694, 1462, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 324, 1151, 42334, 62, 20601, 17694, 1462, 93, 82, 6442, 13, 628, 220, 220, 220, 5072, 796, 705, 83, 24313, 4458, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Include Z_ALV_MVC_TEMPLATE_TOP *&---------------------------------------------------------------------* REPORT z_alv_mvc_template. TYPES: * type of table structure with addition prop: checkbox BEGIN OF ts_alv, checkbx(1). INCLUDE TYPE tvarvc. TYPES: END OF ts_alv, tt_alv type table of ts_alv. * types definition CLASS lcl_mvc_controller DEFINITION DEFERRED. CLASS lcl_mvc_model DEFINITION DEFERRED. CLASS lcl_mvc_view DEFINITION DEFERRED. DATA: s100_ok_code LIKE sy-ucomm. CLASS lcl_mvc_controller DEFINITION. PUBLIC SECTION. METHODS: constructor, run, handle_select, handle_deselect, handle_double_click FOR EVENT double_click OF cl_gui_alv_grid IMPORTING e_row e_column es_row_no. PRIVATE SECTION. * private methods * controller business logic DATA: go_model TYPE REF TO lcl_mvc_model, go_view TYPE REF TO lcl_mvc_view. ENDCLASS. CLASS lcl_mvc_model DEFINITION. PUBLIC SECTION. METHODS: constructor, get_row_by_index IMPORTING iv_index TYPE lvc_index RETURNING VALUE(rs_row) TYPE ts_alv. DATA: gt_alv TYPE tt_alv. PRIVATE SECTION. METHODS: init_data. ENDCLASS. CLASS lcl_mvc_view DEFINITION. PUBLIC SECTION. METHODS: constructor IMPORTING io_model TYPE REF TO lcl_mvc_model io_controller TYPE REF TO lcl_mvc_controller, display CHANGING ct_alv TYPE tt_alv, refresh, error_message IMPORTING iv_message TYPE string, info_message IMPORTING iv_message TYPE string, check_changed_data. PRIVATE SECTION. CONSTANTS: cv_contname TYPE c LENGTH 20 VALUE 'CONTAINER'. METHODS: init_fcat IMPORTING it_alv TYPE tt_alv, update_fcat, init_layout, attach_handlers. DATA: go_model TYPE REF TO lcl_mvc_model, go_controller TYPE REF TO lcl_mvc_controller, go_container TYPE REF TO cl_gui_custom_container, go_table TYPE REF TO cl_gui_alv_grid, gs_layout TYPE lvc_s_layo, gt_fcat TYPE lvc_t_fcat. ENDCLASS. "lcl_mvc_view DEFINITION
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 220, 40348, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1168, 62, 1847, 53, 62, 44, 15922, 62, 51, 3620, 6489, 6158, 62, 35222, 198, 9, 5, 10097, 30934, 9, 198, 2200, 15490, 1976, 62, 282, 85, 62, 76, 28435, 62, 28243, 13, 198, 198, 9936, 47, 1546, 25, 198, 9, 220, 220, 220, 220, 220, 220, 2099, 286, 3084, 4645, 351, 3090, 2632, 25, 2198, 3524, 198, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 40379, 62, 282, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2198, 65, 87, 7, 16, 737, 198, 220, 220, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 41876, 256, 7785, 28435, 13, 198, 9936, 47, 1546, 25, 23578, 3963, 40379, 62, 282, 85, 11, 198, 198, 926, 62, 282, 85, 2099, 3084, 286, 40379, 62, 282, 85, 13, 198, 9, 220, 3858, 6770, 198, 198, 31631, 300, 565, 62, 76, 28435, 62, 36500, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 300, 565, 62, 76, 28435, 62, 19849, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 31631, 300, 565, 62, 76, 28435, 62, 1177, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 198, 26947, 25, 198, 220, 264, 3064, 62, 482, 62, 8189, 34178, 827, 12, 84, 9503, 13, 198, 198, 31631, 300, 565, 62, 76, 28435, 62, 36500, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 11, 198, 220, 220, 220, 220, 220, 1057, 11, 198, 220, 220, 220, 220, 220, 5412, 62, 19738, 11, 198, 220, 220, 220, 220, 220, 5412, 62, 67, 2771, 801, 11, 198, 220, 220, 220, 220, 220, 5412, 62, 23352, 62, 12976, 7473, 49261, 4274, 62, 12976, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3963, 537, 62, 48317, 62, 282, 85, 62, 25928, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 808, 304, 62, 28665, 1658, 62, 808, 62, 3919, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 9, 220, 220, 2839, 5050, 198, 9, 220, 220, 10444, 1597, 9156, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 467, 62, 19849, 41876, 4526, 37, 5390, 300, 565, 62, 76, 28435, 62, 19849, 11, 198, 220, 220, 220, 220, 220, 467, 62, 1177, 220, 41876, 4526, 37, 5390, 300, 565, 62, 76, 28435, 62, 1177, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 76, 28435, 62, 19849, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 11, 198, 220, 220, 220, 220, 220, 651, 62, 808, 62, 1525, 62, 9630, 198, 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, 21628, 62, 9630, 220, 220, 220, 220, 220, 41876, 300, 28435, 62, 9630, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 808, 8, 41876, 40379, 62, 282, 85, 13, 198, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 308, 83, 62, 282, 85, 41876, 256, 83, 62, 282, 85, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 2315, 62, 7890, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 76, 28435, 62, 1177, 5550, 20032, 17941, 13, 198, 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, 33245, 62, 19849, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 300, 565, 62, 76, 28435, 62, 19849, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 36500, 41876, 4526, 37, 5390, 300, 565, 62, 76, 28435, 62, 36500, 11, 198, 220, 220, 220, 220, 220, 3359, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 282, 85, 41876, 256, 83, 62, 282, 85, 11, 198, 220, 220, 220, 220, 220, 14976, 11, 198, 220, 220, 220, 220, 220, 4049, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 20500, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 7508, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 20500, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2198, 62, 40985, 62, 7890, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 269, 85, 62, 3642, 3672, 41876, 269, 406, 49494, 1160, 26173, 8924, 705, 10943, 30339, 1137, 4458, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 2315, 62, 69, 9246, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 282, 85, 41876, 256, 83, 62, 282, 85, 11, 198, 220, 220, 220, 220, 220, 4296, 62, 69, 9246, 11, 198, 220, 220, 220, 220, 220, 2315, 62, 39786, 11, 198, 220, 220, 220, 220, 220, 10199, 62, 4993, 8116, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 467, 62, 19849, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 300, 565, 62, 76, 28435, 62, 19849, 11, 198, 220, 220, 220, 220, 220, 467, 62, 36500, 41876, 4526, 37, 5390, 300, 565, 62, 76, 28435, 62, 36500, 11, 198, 220, 220, 220, 220, 220, 467, 62, 34924, 220, 41876, 4526, 37, 5390, 537, 62, 48317 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_gui_page_stage DEFINITION PUBLIC FINAL CREATE PUBLIC INHERITING FROM zcl_abapgit_gui_page. PUBLIC SECTION. INTERFACES: zif_abapgit_gui_page_hotkey. CONSTANTS: BEGIN OF c_action, stage_all TYPE string VALUE 'stage_all', stage_commit TYPE string VALUE 'stage_commit', stage_filter TYPE string VALUE 'stage_filter', END OF c_action. METHODS: constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online iv_seed TYPE string OPTIONAL RAISING zcx_abapgit_exception, zif_abapgit_gui_page~on_event REDEFINITION. PROTECTED SECTION. METHODS: render_content REDEFINITION, scripts REDEFINITION. PRIVATE SECTION. TYPES: BEGIN OF ty_changed_by, item TYPE zif_abapgit_definitions=>ty_item, name TYPE xubname, END OF ty_changed_by . TYPES: ty_changed_by_tt TYPE SORTED TABLE OF ty_changed_by WITH UNIQUE KEY item. TYPES: BEGIN OF ty_transport, item TYPE zif_abapgit_definitions=>ty_item, transport TYPE trkorr, END OF ty_transport, ty_transport_tt TYPE SORTED TABLE OF ty_transport WITH UNIQUE KEY item. DATA mo_repo TYPE REF TO zcl_abapgit_repo_online . DATA ms_files TYPE zif_abapgit_definitions=>ty_stage_files . DATA mv_seed TYPE string . " Unique page id to bind JS sessionStorage DATA mv_filter_value TYPE string. METHODS find_changed_by IMPORTING !it_local TYPE zif_abapgit_definitions=>ty_files_item_tt RETURNING VALUE(rt_changed_by) TYPE ty_changed_by_tt . METHODS find_transports IMPORTING it_local TYPE zif_abapgit_definitions=>ty_files_item_tt RETURNING VALUE(rt_transports) TYPE ty_transport_tt. METHODS render_list RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html . METHODS render_file IMPORTING !iv_context TYPE string !is_file TYPE zif_abapgit_definitions=>ty_file !is_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL !iv_changed_by TYPE xubname OPTIONAL !iv_transport TYPE trkorr OPTIONAL RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html . METHODS render_actions RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html . METHODS process_stage_list IMPORTING !it_postdata TYPE cnht_post_data_tab !io_stage TYPE REF TO zcl_abapgit_stage RAISING zcx_abapgit_exception . METHODS build_menu RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . METHODS get_page_patch IMPORTING iv_getdata TYPE clike iv_prev_page TYPE clike RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_page RAISING zcx_abapgit_exception. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_STAGE IMPLEMENTATION. METHOD build_menu. CREATE OBJECT ro_menu. IF lines( ms_files-local ) > 0. ro_menu->add( iv_txt = |All diffs| iv_act = |{ zif_abapgit_definitions=>c_action-go_diff }?key={ mo_repo->get_key( ) }| ). ENDIF. ENDMETHOD. METHOD constructor. DATA lv_ts TYPE timestamp. super->constructor( ). ms_control-page_title = 'STAGE'. mo_repo = io_repo. ms_files = zcl_abapgit_factory=>get_stage_logic( )->get( mo_repo ). mv_seed = iv_seed. IF mv_seed IS INITIAL. " Generate based on time unless obtained from diff page GET TIME STAMP FIELD lv_ts. mv_seed = |stage{ lv_ts }|. ENDIF. ms_control-page_menu = build_menu( ). ENDMETHOD. METHOD find_changed_by. DATA: ls_local LIKE LINE OF it_local, ls_changed_by LIKE LINE OF rt_changed_by. FIELD-SYMBOLS: <ls_changed_by> LIKE LINE OF rt_changed_by. LOOP AT it_local INTO ls_local WHERE NOT item IS INITIAL. ls_changed_by-item = ls_local-item. INSERT ls_changed_by INTO TABLE rt_changed_by. ENDLOOP. LOOP AT rt_changed_by ASSIGNING <ls_changed_by>. TRY. <ls_changed_by>-name = to_lower( zcl_abapgit_objects=>changed_by( <ls_changed_by>-item ) ). CATCH zcx_abapgit_exception. ENDTRY. ENDLOOP. ENDMETHOD. METHOD find_transports. DATA: li_cts_api TYPE REF TO zif_abapgit_cts_api, ls_new LIKE LINE OF rt_transports. FIELD-SYMBOLS: <ls_local> LIKE LINE OF it_local. li_cts_api = zcl_abapgit_factory=>get_cts_api( ). TRY. LOOP AT it_local ASSIGNING <ls_local> WHERE item IS NOT INITIAL. IF <ls_local>-item-obj_type IS NOT INITIAL AND <ls_local>-item-obj_name IS NOT INITIAL AND <ls_local>-item-devclass IS NOT INITIAL. IF li_cts_api->is_chrec_possible_for_package( <ls_local>-item-devclass ) = abap_false. EXIT. " Assume all other objects are also in packages without change recording ELSEIF li_cts_api->is_object_type_lockable( <ls_local>-item-obj_type ) = abap_true AND li_cts_api->is_object_locked_in_transport( iv_object_type = <ls_local>-item-obj_type iv_object_name = <ls_local>-item-obj_name ) = abap_true. ls_new-item = <ls_local>-item. ls_new-transport = li_cts_api->get_current_transport_for_obj( iv_object_type = <ls_local>-item-obj_type iv_object_name = <ls_local>-item-obj_name iv_resolve_task_to_request = abap_false ). INSERT ls_new INTO TABLE rt_transports. ENDIF. ENDIF. ENDLOOP. CATCH zcx_abapgit_exception. ASSERT 1 = 2. ENDTRY. ENDMETHOD. METHOD get_page_patch. DATA: lo_page TYPE REF TO zcl_abapgit_gui_page_diff, lv_key TYPE zif_abapgit_persistence=>ty_repo-key, lo_stage TYPE REF TO zcl_abapgit_stage. zcl_abapgit_html_action_utils=>file_obj_decode( EXPORTING iv_string = iv_getdata IMPORTING ev_key = lv_key ). CREATE OBJECT lo_stage. CREATE OBJECT lo_page EXPORTING iv_key = lv_key iv_patch_mode = abap_true io_stage = lo_stage. ri_page = lo_page. ENDMETHOD. METHOD process_stage_list. DATA: lv_string TYPE string, lt_fields TYPE tihttpnvp, ls_file TYPE zif_abapgit_definitions=>ty_file. FIELD-SYMBOLS: <ls_file> LIKE LINE OF ms_files-local, <ls_item> LIKE LINE OF lt_fields. CONCATENATE LINES OF it_postdata INTO lv_string. lt_fields = zcl_abapgit_html_action_utils=>parse_fields( lv_string ). IF lines( lt_fields ) = 0. zcx_abapgit_exception=>raise( 'process_stage_list: empty list' ). ENDIF. LOOP AT lt_fields ASSIGNING <ls_item>. zcl_abapgit_path=>split_file_location( EXPORTING iv_fullpath = <ls_item>-name IMPORTING ev_path = ls_file-path ev_filename = ls_file-filename ). CASE <ls_item>-value. WHEN zcl_abapgit_stage=>c_method-add. READ TABLE ms_files-local ASSIGNING <ls_file> WITH KEY file-path = ls_file-path file-filename = ls_file-filename. ASSERT sy-subrc = 0. io_stage->add( iv_path = <ls_file>-file-path iv_filename = <ls_file>-file-filename iv_data = <ls_file>-file-data ). WHEN zcl_abapgit_stage=>c_method-ignore. io_stage->ignore( iv_path = ls_file-path iv_filename = ls_file-filename ). WHEN zcl_abapgit_stage=>c_method-rm. io_stage->rm( iv_path = ls_file-path iv_filename = ls_file-filename ). WHEN zcl_abapgit_stage=>c_method-skip. " Do nothing WHEN OTHERS. zcx_abapgit_exception=>raise( |process_stage_list: unknown method { <ls_item>-value }| ). ENDCASE. ENDLOOP. ENDMETHOD. METHOD render_actions. DATA: lv_local_count TYPE i, lv_add_all_txt TYPE string, lv_param TYPE string, ls_file TYPE zif_abapgit_definitions=>ty_file. CREATE OBJECT ro_html. lv_local_count = lines( ms_files-local ). IF lv_local_count > 0. lv_add_all_txt = |Add all and commit ({ lv_local_count })|. " Otherwise empty, but the element (id) is preserved for JS ENDIF. ro_html->add( '<table class="w100 margin-v5"><tr>' ). " Action buttons ro_html->add( '<td class="indent5em">' ). ro_html->add_a( iv_act = 'errorStub(event)' " Will be reinit by JS iv_typ = zif_abapgit_definitions=>c_action_type-onclick iv_id = 'commitButton' iv_style = 'display: none' iv_txt = 'Commit (<span id="fileCounter"></span>)' iv_opt = zif_abapgit_definitions=>c_html_opt-strong ) ##NO_TEXT. ro_html->add_a( iv_act = |{ c_action-stage_all }| iv_id = 'commitAllButton' iv_txt = lv_add_all_txt ) ##NO_TEXT. lv_param = zcl_abapgit_html_action_utils=>file_encode( iv_key = mo_repo->get_key( ) ig_file = ls_file ). ro_html->add( '</td>' ). ro_html->add( '<td class="pad-sides">' ). ro_html->add_a( iv_txt = |Patch| iv_act = |{ zif_abapgit_definitions=>c_action-go_patch }?{ lv_param }| ). ro_html->add( '</td>' ). " Filter bar ro_html->add( '<td class="right">' ). ro_html->add( '<input class="stage-filter" id="objectSearch"' && ' type="search" placeholder="Filter objects"' && | value={ mv_filter_value }>| ). ro_html->add( '</td>' ). ro_html->add( '</tr>' ). ro_html->add( '</table>' ). ENDMETHOD. METHOD render_content. CREATE OBJECT ro_html. ro_html->add( '<div class="repo">' ). ro_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( mo_repo ) ). ro_html->add( zcl_abapgit_gui_chunk_lib=>render_js_error_banner( ) ). ro_html->add( '<div class="stage-container">' ). ro_html->add( render_actions( ) ). ro_html->add( render_list( ) ). ro_html->add( '</div>' ). ro_html->add( '</div>' ). ENDMETHOD. METHOD render_file. DATA: lv_param TYPE string, lv_filename TYPE string, lv_transport_string TYPE string, lv_transport_html TYPE string. CREATE OBJECT ro_html. lv_transport_string = iv_transport. lv_filename = is_file-path && is_file-filename. * make sure whitespace is preserved in the DOM REPLACE ALL OCCURRENCES OF ` ` IN lv_filename WITH '&nbsp;'. ro_html->add( |<tr class="{ iv_context }">| ). CASE iv_context. WHEN 'local'. lv_param = zcl_abapgit_html_action_utils=>file_encode( iv_key = mo_repo->get_key( ) ig_file = is_file ). lv_filename = zcl_abapgit_html=>a( iv_txt = lv_filename iv_act = |{ zif_abapgit_definitions=>c_action-go_diff }?{ lv_param }| ). IF iv_transport IS NOT INITIAL. lv_transport_html = zcl_abapgit_html=>a( iv_txt = lv_transport_string iv_act = |{ zif_abapgit_definitions=>c_action-jump_transport }?{ iv_transport }| ). ENDIF. ro_html->add( |<td class="type">{ is_item-obj_type }</td>| ). ro_html->add( |<td class="name">{ lv_filename }</td>| ). ro_html->add( |<td class="user">{ iv_changed_by }</td>| ). ro_html->add( |<td class="transport">{ lv_transport_html }</td>| ). WHEN 'remote'. ro_html->add( '<td class="type">-</td>' ). " Dummy for object type ro_html->add( |<td class="name">{ lv_filename }</td>| ). ro_html->add( '<td></td>' ). " Dummy for changed-by ro_html->add( '<td></td>' ). " Dummy for transport ENDCASE. ro_html->add( |<td class="status">?</td>| ). ro_html->add( '<td class="cmd"></td>' ). " Command added in JS ro_html->add( '</tr>' ). ENDMETHOD. METHOD render_list. DATA: lt_changed_by TYPE ty_changed_by_tt, ls_changed_by LIKE LINE OF lt_changed_by, lt_transports TYPE ty_transport_tt, ls_transport LIKE LINE OF lt_transports. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF ms_files-remote, <ls_local> LIKE LINE OF ms_files-local. CREATE OBJECT ro_html. ro_html->add( '<table id="stageTab" class="stage_tab w100">' ). lt_changed_by = find_changed_by( ms_files-local ). lt_transports = find_transports( ms_files-local ). " Local changes LOOP AT ms_files-local ASSIGNING <ls_local>. AT FIRST. ro_html->add( '<thead><tr class="local">' ). ro_html->add( '<th>Type</th>' ). ro_html->add( '<th>Files to add (click to see diff)</th>' ). ro_html->add( '<th>Changed by</th>' ). ro_html->add( '<th>Transport</th>' ). ro_html->add( '<th></th>' ). " Status ro_html->add( '<th class="cmd">' ). ro_html->add( '<a>add</a>&#x2193; <a>reset</a>&#x2193;' ). ro_html->add( '</th>' ). ro_html->add( '</tr></thead>' ). ro_html->add( '<tbody>' ). ENDAT. READ TABLE lt_changed_by INTO ls_changed_by WITH KEY item = <ls_local>-item. "#EC CI_SUBRC READ TABLE lt_transports INTO ls_transport WITH KEY item = <ls_local>-item. "#EC CI_SUBRC ro_html->add( render_file( iv_context = 'local' is_file = <ls_local>-file is_item = <ls_local>-item iv_changed_by = ls_changed_by-name iv_transport = ls_transport-transport ) ). CLEAR ls_transport. AT LAST. ro_html->add( '</tbody>' ). ENDAT. ENDLOOP. " Remote changes LOOP AT ms_files-remote ASSIGNING <ls_remote>. AT FIRST. ro_html->add( '<thead><tr class="remote">' ). ro_html->add( '<th></th>' ). " Type ro_html->add( '<th colspan="3">Files to remove or non-code</th>' ). ro_html->add( '<th></th>' ). " Status ro_html->add( '<th class="cmd">' ). ro_html->add( '<a>ignore</a>&#x2193; <a>remove</a>&#x2193; <a>reset</a>&#x2193;' ). ro_html->add( '</th>' ). ro_html->add( '</tr></thead>' ). ro_html->add( '<tbody>' ). ENDAT. ro_html->add( render_file( iv_context = 'remote' is_file = <ls_remote> ) ). AT LAST. ro_html->add( '</tbody>' ). ENDAT. ENDLOOP. ro_html->add( '</table>' ). ENDMETHOD. METHOD scripts. ro_html = super->scripts( ). ro_html->add( 'var gStageParams = {' ). ro_html->add( | seed: "{ mv_seed }",| ). " Unique page id ro_html->add( ' formAction: "stage_commit",' ). ro_html->add( ' ids: {' ). ro_html->add( ' stageTab: "stageTab",' ). ro_html->add( ' commitBtn: "commitButton",' ). ro_html->add( ' commitAllBtn: "commitAllButton",' ). ro_html->add( ' objectSearch: "objectSearch",' ). ro_html->add( ' fileCounter: "fileCounter"' ). ro_html->add( ' }' ). ro_html->add( '}' ). ro_html->add( 'var gHelper = new StageHelper(gStageParams);' ). ENDMETHOD. METHOD zif_abapgit_gui_page_hotkey~get_hotkey_actions. DATA: ls_hotkey_action TYPE zif_abapgit_gui_page_hotkey=>ty_hotkey_action. ls_hotkey_action-name = |Stage: Patch|. ls_hotkey_action-action = zif_abapgit_definitions=>c_action-go_patch. ls_hotkey_action-default_hotkey = |p|. INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions. ENDMETHOD. METHOD zif_abapgit_gui_page~on_event. DATA: lo_stage TYPE REF TO zcl_abapgit_stage, lv_string TYPE string, lt_fields TYPE tihttpnvp. FIELD-SYMBOLS: <ls_file> LIKE LINE OF ms_files-local. CREATE OBJECT lo_stage. CLEAR: ei_page, ev_state. CASE iv_action. WHEN c_action-stage_all. LOOP AT ms_files-local ASSIGNING <ls_file>. lo_stage->add( iv_path = <ls_file>-file-path iv_filename = <ls_file>-file-filename iv_data = <ls_file>-file-data ). ENDLOOP. CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_commit EXPORTING io_repo = mo_repo io_stage = lo_stage. ev_state = zif_abapgit_definitions=>c_event_state-new_page. ev_state = zif_abapgit_definitions=>c_event_state-new_page. WHEN c_action-stage_commit. process_stage_list( it_postdata = it_postdata io_stage = lo_stage ). CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_commit EXPORTING io_repo = mo_repo io_stage = lo_stage. ev_state = zif_abapgit_definitions=>c_event_state-new_page. WHEN c_action-stage_filter. 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 = 'filterValue' it_field = lt_fields CHANGING cg_field = mv_filter_value ). ev_state = zif_abapgit_definitions=>c_event_state-no_more_act. WHEN zif_abapgit_definitions=>c_action-go_patch. " Go Patch page ei_page = get_page_patch( iv_getdata = iv_getdata iv_prev_page = iv_prev_page ). ev_state = zif_abapgit_definitions=>c_event_state-new_page. WHEN OTHERS. RETURN. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 14247, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8940, 2539, 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, 3800, 62, 439, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 14247, 62, 439, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3800, 62, 41509, 41876, 4731, 26173, 8924, 705, 14247, 62, 41509, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3800, 62, 24455, 41876, 4731, 26173, 8924, 705, 14247, 62, 24455, 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, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 28826, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 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, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 40985, 62, 1525, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2378, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 41876, 2124, 549, 3672, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 40985, 62, 1525, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 40985, 62, 1525, 62, 926, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 40985, 62, 1525, 13315, 4725, 33866, 8924, 35374, 2378, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 7645, 634, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2378, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4839, 41876, 491, 74, 38890, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 7645, 634, 11, 198, 220, 220, 220, 220, 220, 1259, 62, 7645, 634, 62, 926, 41876, 311, 9863, 1961, 43679, 3963, 1259, 62, 7645, 634, 13315, 4725, 33866, 8924, 35374, 2378, 13, 628, 220, 220, 220, 42865, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 764, 198, 220, 220, 220, 42865, 13845, 62, 16624, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 14247, 62, 16624, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 28826, 41876, 4731, 764, 220, 220, 366, 30015, 2443, 4686, 284, 11007, 26755, 6246, 31425, 198, 220, 220, 220, 42865, 285, 85, 62, 24455, 62, 8367, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 1064, 62, 40985, 62, 1525, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 12001, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 40985, 62, 1525, 8, 41876, 1259, 62, 40985, 62, 1525, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 7645, 3742, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 12001, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 7645, 3742, 8, 41876, 1259, 62, 7645, 634, 62, 926, 13, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 4868, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 764, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 7753, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 22866, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7753, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 9186, 220, 220, 220, 220, 220, 220, 41876 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_object_tobj DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_tobj, tddat TYPE tddat, tvdir TYPE tvdir, tvimf TYPE STANDARD TABLE OF tvimf WITH DEFAULT KEY, END OF ty_tobj. METHODS: read_extra IMPORTING iv_tabname TYPE vim_name RETURNING VALUE(rs_tobj) TYPE ty_tobj, update_extra IMPORTING is_tobj TYPE ty_tobj, delete_extra IMPORTING iv_tabname TYPE vim_name. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_TOBJ IMPLEMENTATION. METHOD delete_extra. DELETE FROM tddat WHERE tabname = iv_tabname. DELETE FROM tvdir WHERE tabname = iv_tabname. DELETE FROM tvimf WHERE tabname = iv_tabname. ENDMETHOD. METHOD read_extra. SELECT SINGLE * FROM tddat INTO rs_tobj-tddat WHERE tabname = iv_tabname. SELECT SINGLE * FROM tvdir INTO rs_tobj-tvdir WHERE tabname = iv_tabname. CLEAR: rs_tobj-tvdir-gendate, rs_tobj-tvdir-gentime. SELECT * FROM tvimf INTO TABLE rs_tobj-tvimf WHERE tabname = iv_tabname. ENDMETHOD. METHOD update_extra. DATA: lt_current_tvimf TYPE STANDARD TABLE OF tvimf. FIELD-SYMBOLS: <ls_tvimf> TYPE tvimf. MODIFY tddat FROM is_tobj-tddat. MODIFY tvdir FROM is_tobj-tvdir. SELECT * INTO TABLE lt_current_tvimf FROM tvimf WHERE tabname = is_tobj-tddat-tabname ORDER BY PRIMARY KEY. LOOP AT lt_current_tvimf ASSIGNING <ls_tvimf>. READ TABLE is_tobj-tvimf WITH KEY tabname = <ls_tvimf>-tabname event = <ls_tvimf>-event TRANSPORTING NO FIELDS. IF sy-subrc <> 0. DELETE tvimf FROM <ls_tvimf>. ENDIF. ENDLOOP. MODIFY tvimf FROM TABLE is_tobj-tvimf. ENDMETHOD. METHOD zif_abapgit_object~changed_by. DATA: lv_type_pos TYPE i. lv_type_pos = strlen( ms_item-obj_name ) - 1. SELECT SINGLE luser FROM objh INTO rv_user WHERE objectname = ms_item-obj_name(lv_type_pos) AND objecttype = ms_item-obj_name+lv_type_pos. "#EC CI_GENBUFF IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: ls_objh TYPE objh, lv_type_pos TYPE i. lv_type_pos = strlen( ms_item-obj_name ) - 1. ls_objh-objectname = ms_item-obj_name(lv_type_pos). ls_objh-objecttype = ms_item-obj_name+lv_type_pos. CALL FUNCTION 'OBJ_GENERATE' EXPORTING iv_objectname = ls_objh-objectname iv_objecttype = ls_objh-objecttype iv_maint_mode = 'D' EXCEPTIONS illegal_call = 1 object_not_found = 2 generate_error = 3 transport_error = 4 object_enqueue_failed = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from OBJ_GENERATE' ). ENDIF. delete_extra( ls_objh-objectname ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_objh TYPE objh, ls_objt TYPE objt, lt_objs TYPE tt_objs, lt_objsl TYPE tt_objsl, lt_objm TYPE tt_objm, ls_tobj TYPE ty_tobj. io_xml->read( EXPORTING iv_name = 'OBJH' CHANGING cg_data = ls_objh ). io_xml->read( EXPORTING iv_name = 'OBJT' CHANGING cg_data = ls_objt ). io_xml->read( EXPORTING iv_name = 'OBJS' CHANGING cg_data = lt_objs ). io_xml->read( EXPORTING iv_name = 'OBJSL' CHANGING cg_data = lt_objsl ). io_xml->read( EXPORTING iv_name = 'OBJM' CHANGING cg_data = lt_objm ). CALL FUNCTION 'OBJ_GENERATE' EXPORTING iv_objectname = ls_objh-objectname iv_objecttype = ls_objh-objecttype iv_maint_mode = 'I' iv_objecttext = ls_objt-ddtext iv_objcateg = ls_objh-objcateg iv_objtransp = ls_objh-objtransp iv_devclass = iv_package TABLES tt_v_obj_s = lt_objs tt_objm = lt_objm EXCEPTIONS illegal_call = 1 object_not_found = 2 generate_error = 3 transport_error = 4 object_enqueue_failed = 5 OTHERS = 6. IF sy-subrc <> 0. * TOBJ has to be saved/generated after the DDIC tables have been * activated - fixed with late deserialization zcx_abapgit_exception=>raise( 'error from OBJ_GENERATE' ). ENDIF. CALL FUNCTION 'OBJ_SET_IMPORTABLE' EXPORTING iv_objectname = ls_objh-objectname iv_objecttype = ls_objh-objecttype iv_importable = ls_objh-importable EXCEPTIONS object_not_defined = 1 invalid = 2 transport_error = 3 object_enqueue_failed = 4 OTHERS = 5. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from OBJ_SET_IMPORTABLE' ). ENDIF. * fm OBJ_GENERATE takes the defaults from the DDIC object * set OBJTRANSP directly, should be okay looking at the code in OBJ_SET_IMPORTABLE * locking has been done in OBJ_SET_IMPORTABLE plus recording of transport UPDATE objh SET objtransp = ls_objh-objtransp WHERE objectname = ls_objh-objectname AND objecttype = ls_objh-objecttype. io_xml->read( EXPORTING iv_name = 'TOBJ' CHANGING cg_data = ls_tobj ). ls_tobj-tvdir-gendate = sy-datum. ls_tobj-tvdir-gentime = sy-uzeit. update_extra( ls_tobj ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_objectname TYPE objh-objectname, lv_type_pos TYPE i. lv_type_pos = strlen( ms_item-obj_name ) - 1. SELECT SINGLE objectname FROM objh INTO lv_objectname WHERE objectname = ms_item-obj_name(lv_type_pos) AND objecttype = ms_item-obj_name+lv_type_pos. "#EC CI_GENBUFF rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-late TO rt_steps. ENDMETHOD. METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). rs_metadata-late_deser = 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. DATA: lv_object_name TYPE e071-obj_name. lv_object_name = ms_item-obj_name. CALL FUNCTION 'TR_OBJECT_JUMP_TO_TOOL' EXPORTING iv_pgmid = 'R3TR' iv_object = ms_item-obj_type iv_obj_name = lv_object_name EXCEPTIONS jump_not_possible = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Jump not possible. Subrc={ sy-subrc } | && |from TR_OBJECT_JUMP_TO_TOOL| ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_objh TYPE objh, ls_objt TYPE objt, lt_objs TYPE tt_objs, lt_objsl TYPE tt_objsl, lt_objm TYPE tt_objm, ls_tobj TYPE ty_tobj, lv_type_pos TYPE i. lv_type_pos = strlen( ms_item-obj_name ) - 1. ls_objh-objectname = ms_item-obj_name(lv_type_pos). ls_objh-objecttype = ms_item-obj_name+lv_type_pos. CALL FUNCTION 'CTO_OBJECT_GET' EXPORTING iv_objectname = ls_objh-objectname iv_objecttype = ls_objh-objecttype iv_language = mv_language iv_sel_objt = abap_true iv_sel_objs = abap_true iv_sel_objsl = abap_true iv_sel_objm = abap_true IMPORTING es_objh = ls_objh es_objt = ls_objt TABLES tt_objs = lt_objs tt_objsl = lt_objsl tt_objm = lt_objm EXCEPTIONS object_not_defined = 1 OTHERS = 2. IF sy-subrc = 1. RETURN. ELSEIF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from CTO_OBJECT_GET' ). ENDIF. CLEAR: ls_objh-luser, ls_objh-ldate. io_xml->add( iv_name = 'OBJH' ig_data = ls_objh ). io_xml->add( iv_name = 'OBJT' ig_data = ls_objt ). io_xml->add( iv_name = 'OBJS' ig_data = lt_objs ). io_xml->add( iv_name = 'OBJSL' ig_data = lt_objsl ). io_xml->add( iv_name = 'OBJM' ig_data = lt_objm ). ls_tobj = read_extra( ls_objh-objectname ). io_xml->add( iv_name = 'TOBJ' ig_data = ls_tobj ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 83, 26801, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 83, 26801, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 1860, 265, 41876, 256, 1860, 265, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31557, 15908, 41876, 31557, 15908, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 256, 31124, 69, 41876, 49053, 9795, 43679, 3963, 256, 31124, 69, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 83, 26801, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 1100, 62, 26086, 30023, 9863, 2751, 21628, 62, 8658, 3672, 220, 220, 220, 220, 41876, 43907, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 83, 26801, 8, 41876, 1259, 62, 83, 26801, 11, 198, 220, 220, 220, 220, 220, 4296, 62, 26086, 30023, 9863, 2751, 318, 62, 83, 26801, 41876, 1259, 62, 83, 26801, 11, 198, 220, 220, 220, 220, 220, 12233, 62, 26086, 30023, 9863, 2751, 21628, 62, 8658, 3672, 41876, 43907, 62, 3672, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 51, 9864, 41, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 12233, 62, 26086, 13, 628, 220, 220, 220, 5550, 2538, 9328, 16034, 256, 1860, 265, 33411, 7400, 3672, 796, 21628, 62, 8658, 3672, 13, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 31557, 15908, 33411, 7400, 3672, 796, 21628, 62, 8658, 3672, 13, 198, 220, 220, 220, 5550, 2538, 9328, 16034, 256, 31124, 69, 33411, 7400, 3672, 796, 21628, 62, 8658, 3672, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1100, 62, 26086, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 256, 1860, 265, 39319, 44608, 62, 83, 26801, 12, 83, 1860, 265, 33411, 7400, 3672, 796, 21628, 62, 8658, 3672, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 31557, 15908, 39319, 44608, 62, 83, 26801, 12, 14981, 15908, 33411, 7400, 3672, 796, 21628, 62, 8658, 3672, 13, 198, 220, 220, 220, 30301, 1503, 25, 44608, 62, 83, 26801, 12, 14981, 15908, 12, 70, 437, 378, 11, 44608, 62, 83, 26801, 12, 14981, 15908, 12, 6783, 524, 13, 628, 220, 220, 220, 33493, 1635, 16034, 256, 31124, 69, 39319, 43679, 44608, 62, 83, 26801, 12, 14981, 320, 69, 33411, 7400, 3672, 796, 21628, 62, 8658, 3672, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4296, 62, 26086, 13, 198, 220, 220, 220, 42865, 25, 300, 83, 62, 14421, 62, 14981, 320, 69, 41876, 49053, 9795, 43679, 3963, 256, 31124, 69, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 14981, 320, 69, 29, 41876, 256, 31124, 69, 13, 628, 220, 220, 220, 19164, 5064, 56, 256, 1860, 265, 16034, 318, 62, 83, 26801, 12, 83, 1860, 265, 13, 198, 220, 220, 220, 19164, 5064, 56, 31557, 15908, 16034, 318, 62, 83, 26801, 12, 14981, 15908, 13, 628, 220, 220, 220, 33493, 1635, 39319, 43679, 300, 83, 62, 14421, 62, 14981, 320, 69, 198, 220, 220, 220, 220, 220, 16034, 256, 31124, 69, 198, 220, 220, 220, 220, 220, 33411, 7400, 3672, 796, 318, 62, 83, 26801, 12, 83, 1860, 265, 12, 8658, 3672, 198, 220, 220, 220, 220, 220, 38678, 11050, 4810, 3955, 13153, 35374, 13, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 14421, 62, 14981, 320, 69, 24994, 3528, 15871, 1279, 7278, 62, 14981, 320, 69, 28401, 198, 220, 220, 220, 220, 220, 20832, 43679, 318, 62, 83, 26801, 12, 14981, 320, 69, 13315, 35374, 7400, 3672, 796, 1279, 7278, 62, 14981, 320, 69, 29, 12, 8658, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1785, 220, 220, 796, 1279, 7278, 62, 14981, 320, 69, 29, 12, 15596, 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, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 256, 31124, 69, 16034, 1279, 7278, 62, 14981, 320, 69, 28401, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 19164, 5064, 56, 256, 31124, 69, 16034, 43679, 318, 62, 83, 26801, 12, 14981, 320, 69, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 4906, 62, 1930, 41876, 1312, 13, 628, 220, 220, 220, 300, 85, 62, 4906, 62, 1930, 796, 965, 11925, 7, 13845, 62, 9186, 12, 26801, 62, 3672, 1267, 532, 352, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 300, 7220, 16034, 26181, 71, 39319, 374, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 33411, 2134, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 7, 6780, 62, 4906, 62, 1930, 8, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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