content
stringlengths
4
1.04M
input_ids
sequencelengths
2
1.02k
attention_mask
sequencelengths
2
1.02k
*"* use this source file for your ABAP unit test classes CLASS ltcl_numeral DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. DATA: cut TYPE REF TO zh174_roman. METHODS: latin_4 FOR TESTING RAISING cx_static_check, latin_5 FOR TESTING RAISING cx_static_check, latin_6to8 FOR TESTING RAISING cx_static_check, latin_9 FOR TESTING RAISING cx_static_check, latin_1to3 FOR TESTING RAISING cx_static_check, latin_10 FOR TESTING RAISING cx_static_check, latin_11 FOR TESTING RAISING cx_static_check, latin_14 FOR TESTING RAISING cx_static_check, latin_12 FOR TESTING RAISING cx_static_check, latin_13 FOR TESTING RAISING cx_static_check, latin_0 FOR TESTING RAISING cx_static_check, latin_26 FOR TESTING RAISING cx_static_check, latin_16 FOR TESTING RAISING cx_static_check, latin_20 FOR TESTING RAISING cx_static_check, latin_30 FOR TESTING RAISING cx_static_check, latin_50 FOR TESTING RAISING cx_static_check, latin_100 FOR TESTING RAISING cx_static_check, latin_99 FOR TESTING RAISING cx_static_check, latin_369 FOR TESTING RAISING cx_static_check, latin_90 FOR TESTING RAISING cx_static_check, latin_40 FOR TESTING RAISING cx_static_check, latin_41 FOR TESTING RAISING cx_static_check, latin_19 FOR TESTING RAISING cx_static_check, latin_39 FOR TESTING RAISING cx_static_check, latin_73 FOR TESTING RAISING cx_static_check, latin_500 FOR TESTING RAISING cx_static_check, latin_491 FOR TESTING RAISING cx_static_check, latin_1000 FOR TESTING RAISING cx_static_check, roman_i FOR TESTING RAISING cx_static_check, roman_iv FOR TESTING RAISING cx_static_check, roman_v FOR TESTING RAISING cx_static_check, roman_vi FOR TESTING RAISING cx_static_check, roman_vii FOR TESTING RAISING cx_static_check, roman_x FOR TESTING RAISING cx_static_check, roman_XIX FOR TESTING RAISING cx_static_check, roman_xiv FOR TESTING RAISING cx_static_check, roman_xlvii FOR TESTING RAISING cx_static_check, roman_lv FOR TESTING RAISING cx_static_check, roman_xci FOR TESTING RAISING cx_static_check, roman_cd FOR TESTING RAISING cx_static_check, roman_dcccxlvii FOR TESTING RAISING cx_static_check, roman_cm FOR TESTING RAISING cx_static_check, roman_m FOR TESTING RAISING cx_static_check. METHODS setup. METHODS latin_x IMPORTING VALUE(ln) TYPE i VALUE(rn) TYPE string. METHODS roman_y IMPORTING VALUE(rn) TYPE string VALUE(ln) TYPE i. ENDCLASS. CLASS ltcl_numeral IMPLEMENTATION. METHOD setup. cut = NEW zh174_roman( ). ENDMETHOD. METHOD roman_I. roman_y( rn = |I| ln = 1 ). ENDMETHOD. METHOD roman_IV. roman_y( rn = |IV| ln = 4 ). ENDMETHOD. METHOD roman_V. roman_y( rn = |V| ln = 5 ). ENDMETHOD. METHOD roman_VI. roman_y( rn = |VI| ln = 6 ). ENDMETHOD. METHOD roman_VII. roman_y( rn = |VII| ln = 7 ). ENDMETHOD. METHOD roman_X. roman_y( rn = |X| ln = 10 ). ENDMETHOD. METHOD roman_XIV. roman_y( rn = |XIV| ln = 14 ). ENDMETHOD. METHOD roman_XIX. roman_y( rn = |XIX| ln = 19 ). ENDMETHOD. METHOD roman_XCI. roman_y( rn = |XCI| ln = 91 ). ENDMETHOD. METHOD roman_CD. roman_y( rn = |CD| ln = 400 ). ENDMETHOD. METHOD roman_DCCCXLVII. roman_y( rn = |DCCCXLVII| ln = 847 ). ENDMETHOD. METHOD roman_LV. roman_y( rn = |LV| ln = 55 ). ENDMETHOD. METHOD roman_CM. roman_y( rn = |CM| ln = 900 ). ENDMETHOD. METHOD roman_M. roman_y( rn = |M| ln = 1000 ). ENDMETHOD. METHOD roman_XLVII. roman_y( rn = |XLVII| ln = 47 ). ENDMETHOD. METHOD latin_1to3. latin_x( ln = 1 rn = |I| ). latin_x( ln = 2 rn = |II| ). latin_x( ln = 3 rn = |III| ). ENDMETHOD. METHOD latin_4. latin_x( ln = 4 rn = |IV| ). ENDMETHOD. METHOD latin_5. latin_x( ln = 5 rn = |V| ). ENDMETHOD. METHOD latin_6to8. latin_x( ln = 6 rn = |VI| ). latin_x( ln = 7 rn = |VII| ). latin_x( ln = 8 rn = |VIII| ). ENDMETHOD. METHOD latin_9. latin_x( ln = 9 rn = |IX| ). ENDMETHOD. METHOD latin_10. latin_x( ln = 10 rn = |X| ). ENDMETHOD. METHOD latin_11. latin_x( ln = 11 rn = |XI| ). ENDMETHOD. METHOD latin_12. latin_x( ln = 12 rn = |XII| ). ENDMETHOD. METHOD latin_13. latin_x( ln = 13 rn = |XIII| ). ENDMETHOD. METHOD latin_14. latin_x( ln = 14 rn = |XIV| ). ENDMETHOD. METHOD latin_0. latin_x( ln = 0 rn = || ). ENDMETHOD. METHOD latin_16. latin_x( ln = 16 rn = |XVI| ). ENDMETHOD. METHOD latin_19. latin_x( ln = 19 rn = |XIX| ). ENDMETHOD. METHOD latin_20. latin_x( ln = 20 rn = |XX| ). ENDMETHOD. METHOD latin_26. latin_x( ln = 26 rn = |XXVI| ). ENDMETHOD. METHOD latin_30. latin_x( ln = 30 rn = |XXX| ). ENDMETHOD. METHOD latin_50. latin_x( ln = 50 rn = |L| ). ENDMETHOD. METHOD latin_100. latin_x( ln = 100 rn = |C| ). ENDMETHOD. METHOD latin_40. latin_x( ln = 40 rn = |XL| ). ENDMETHOD. METHOD latin_39. latin_x( ln = 39 rn = |XXXIX| ). ENDMETHOD. METHOD latin_41. latin_x( ln = 41 rn = |XLI| ). ENDMETHOD. METHOD latin_73. latin_x( ln = 73 rn = |LXXIII| ). ENDMETHOD. METHOD latin_90. latin_x( ln = 90 rn = |XC| ). ENDMETHOD. METHOD latin_99. latin_x( ln = 99 rn = |XCIX| ). ENDMETHOD. METHOD latin_369. latin_x( ln = 369 rn = |CCCLXIX| ). ENDMETHOD. METHOD latin_491. latin_x( ln = 491 rn = |CDXCI| ). ENDMETHOD. METHOD latin_500. latin_x( ln = 500 rn = |D| ). ENDMETHOD. METHOD latin_1000. latin_x( ln = 1000 rn = |M| ). ENDMETHOD. METHOD latin_x. cl_abap_unit_assert=>assert_equals( msg = |{ ln } = { rn }| exp = rn act = cut->to_roman( ln ) ). ENDMETHOD. METHOD roman_y. cl_abap_unit_assert=>assert_equals( msg = |{ rn } = { ln }| exp = ln act = cut->to_latin( rn ) ). ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 31631, 300, 83, 565, 62, 22510, 1691, 5550, 20032, 17941, 25261, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 2005, 41876, 4526, 37, 5390, 1976, 71, 22985, 62, 47119, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 19, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 20, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 21, 1462, 23, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 24, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 16, 1462, 18, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 940, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1157, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1415, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1065, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1485, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 15, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 2075, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1433, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1238, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1270, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1120, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 3064, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 2079, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 30803, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 3829, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1821, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 3901, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 1129, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 2670, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 4790, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 4059, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 41289, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 3042, 259, 62, 12825, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 374, 5185, 62, 72, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 220, 220, 374, 5185, 62, 452, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 85, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 8903, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 85, 4178, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 87, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 55, 10426, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 87, 452, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 87, 6780, 4178, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 6780, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 87, 979, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 10210, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 67, 535, 66, 87, 6780, 4178, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 11215, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 11, 198, 220, 220, 220, 374, 5185, 62, 76, 7473, 43001, 2751, 17926, 1797, 2751, 43213, 62, 12708, 62, 9122, 13, 628, 220, 220, 220, 337, 36252, 50, 9058, 13, 198, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 : ZMSA_R_CHAPTER6_1 * Author : Pawel Grzeskowiak * Email : [email protected], [email protected] * WWW : http://pawelgrzeskowiak.pl, http://sapported.com * Company : Capgemini *----------------------------------------------------------------------------* * Basic XML parsing and displaying ****************************************************************************** * CHANGE HISTORY : (Latest change first, descending order) * *----------------------------------------------------------------------------* * AUTHOR | YYYYMMDD | Description * *----------------------------------------------------------------------------* * PawelGrzeskowiak | 20180606 | Initial Version *---------------------------------------------------------------------------- REPORT zmsa_r_chapter6_1. CLASS lcl_demo DEFINITION. PUBLIC SECTION. CLASS-METHODS main. ENDCLASS. CLASS lcl_demo IMPLEMENTATION. METHOD main. CONSTANTS: lv_filepath TYPE localfile VALUE 'C:\temp\carr.xml'. DATA: lo_xml TYPE REF TO cl_xml_document. CREATE OBJECT lo_xml. lo_xml->import_from_file( filename = lv_filepath ). lo_xml->display( ). ENDMETHOD. ENDCLASS. START-OF-SELECTION. lcl_demo=>main( ).
[ 17174, 17174, 46068, 1174, 198, 9, 6358, 220, 1058, 1168, 44, 4090, 62, 49, 62, 41481, 21, 62, 16, 198, 9, 6434, 220, 1058, 35553, 417, 1902, 12271, 74, 322, 32994, 198, 9, 9570, 220, 220, 1058, 35553, 417, 8642, 12271, 74, 322, 32994, 31, 14816, 13, 785, 11, 35553, 417, 8642, 12271, 74, 322, 32994, 31, 11128, 24090, 5362, 13, 785, 198, 9, 13505, 54, 220, 220, 220, 220, 1058, 2638, 1378, 79, 707, 417, 2164, 12271, 74, 322, 32994, 13, 489, 11, 2638, 1378, 82, 1324, 9741, 13, 785, 198, 9, 5834, 1058, 4476, 24090, 5362, 198, 9, 10097, 10541, 9, 198, 9, 14392, 23735, 32096, 290, 19407, 198, 17174, 17174, 46068, 1174, 198, 9, 5870, 27746, 367, 42480, 1058, 357, 39478, 1487, 717, 11, 31491, 1502, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 10097, 10541, 9, 198, 9, 44746, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 575, 26314, 56, 12038, 16458, 930, 12489, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 10097, 10541, 9, 198, 9, 35553, 417, 8642, 12271, 74, 322, 32994, 930, 580, 1795, 33206, 930, 20768, 10628, 198, 9, 10097, 10541, 198, 2200, 15490, 1976, 907, 64, 62, 81, 62, 43582, 21, 62, 16, 13, 198, 198, 31631, 300, 565, 62, 9536, 78, 5550, 20032, 17941, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 1388, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 9536, 78, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 1388, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 300, 85, 62, 7753, 6978, 220, 220, 41876, 1179, 1604, 576, 26173, 8924, 705, 34, 7479, 29510, 59, 66, 3258, 13, 19875, 4458, 198, 220, 220, 220, 42865, 25, 2376, 62, 19875, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 19875, 62, 22897, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 2376, 62, 19875, 13, 628, 220, 220, 220, 2376, 62, 19875, 3784, 11748, 62, 6738, 62, 7753, 7, 29472, 796, 300, 85, 62, 7753, 6978, 6739, 628, 220, 220, 220, 2376, 62, 19875, 3784, 13812, 7, 6739, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 220, 300, 565, 62, 9536, 78, 14804, 12417, 7, 6739 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION zpof_gtt_ee_sh_hdr_arr_rel. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_EVENT_TYPES) TYPE /SAPTRX/EVTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERENCE(I_EVENTTYPE_TAB) TYPE TRXAS_EVENTTYPE_TABS_WA *" REFERENCE(I_EVENT) TYPE TRXAS_EVT_CTAB_WA *" EXPORTING *" VALUE(E_RESULT) LIKE SY-BINPT *" TABLES *" C_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" EXCEPTIONS *" PARAMETER_ERROR *" RELEVANCE_DETERM_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- DATA: lo_udm_message TYPE REF TO cx_udm_message, ls_bapiret TYPE bapiret2. TRY. e_result = lcl_ae_performer=>check_relevance( EXPORTING is_definition = VALUE #( maintab = lif_pof_constants=>cs_tabledef-sh_header_new ) io_ae_factory = NEW lcl_ae_factory_sh_header_arr( ) iv_appsys = i_appsys is_event_type = i_event_types it_all_appl_tables = i_all_appl_tables is_events = i_event ). CATCH cx_udm_message INTO lo_udm_message. lcl_tools=>get_errors_log( EXPORTING io_umd_message = lo_udm_message iv_appsys = i_appsys IMPORTING es_bapiret = ls_bapiret ). " add error message APPEND ls_bapiret TO c_logtable. " throw corresponding exception CASE lo_udm_message->textid. WHEN lif_ef_constants=>cs_errors-stop_processing. RAISE stop_processing. WHEN lif_ef_constants=>cs_errors-table_determination. RAISE relevance_determ_error. ENDCASE. ENDTRY. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 79, 1659, 62, 70, 926, 62, 1453, 62, 1477, 62, 71, 7109, 62, 3258, 62, 2411, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 62, 9936, 47, 1546, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 20114, 9936, 47, 1546, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 7036, 62, 2969, 6489, 62, 5603, 9148, 1546, 8, 41876, 220, 7579, 55, 1921, 62, 5603, 2749, 1340, 30339, 1137, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 25216, 62, 5603, 33, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 3525, 25216, 62, 5603, 4462, 62, 15543, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 51, 62, 4177, 6242, 62, 15543, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 36, 62, 19535, 16724, 8, 34178, 220, 19704, 12, 33, 1268, 11571, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 327, 62, 25294, 38148, 19269, 18415, 11335, 220, 347, 17614, 26087, 17, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 29463, 2390, 2767, 1137, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 49968, 53, 19240, 62, 35, 2767, 1137, 44, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 44934, 62, 4805, 4503, 7597, 2751, 198, 9, 1, 10097, 23031, 198, 220, 42865, 25, 2376, 62, 463, 76, 62, 20500, 41876, 4526, 37, 5390, 43213, 62, 463, 76, 62, 20500, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 65, 499, 557, 83, 220, 220, 220, 220, 41876, 275, 499, 557, 83, 17, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 304, 62, 20274, 220, 796, 300, 565, 62, 3609, 62, 525, 16354, 14804, 9122, 62, 260, 2768, 590, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 46758, 220, 220, 220, 220, 220, 220, 796, 26173, 8924, 1303, 7, 1388, 8658, 796, 3868, 62, 79, 1659, 62, 9979, 1187, 14804, 6359, 62, 83, 4510, 891, 12, 1477, 62, 25677, 62, 3605, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 3609, 62, 69, 9548, 220, 220, 220, 220, 220, 220, 796, 12682, 300, 565, 62, 3609, 62, 69, 9548, 62, 1477, 62, 25677, 62, 3258, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 15596, 62, 4906, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 15596, 62, 19199, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 439, 62, 1324, 75, 62, 83, 2977, 220, 796, 1312, 62, 439, 62, 1324, 75, 62, 83, 2977, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 31534, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 15596, 198, 220, 220, 220, 220, 220, 6739, 628, 220, 220, 220, 327, 11417, 43213, 62, 463, 76, 62, 20500, 39319, 2376, 62, 463, 76, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 300, 565, 62, 31391, 14804, 1136, 62, 48277, 62, 6404, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 388, 67, 62, 20500, 796, 2376, 62, 463, 76, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 65, 499, 557, 83, 220, 220, 220, 220, 796, 43979, 62, 65, 499, 557, 83, 6739, 628, 220, 220, 220, 220, 220, 366, 751, 4049, 3275, 198, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 65, 499, 557, 83, 5390, 269, 62, 6404, 11487, 13, 628, 220, 220, 220, 220, 220, 366, 3714, 11188, 6631, 198, 220, 220, 220, 220, 220, 42001, 2376, 62, 463, 76, 62, 20500, 3784, 5239, 312, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 3868, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 48277, 12, 11338, 62, 36948, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 2245, 62, 36948, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 3868, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 48277, 12, 11487, 62, 40869, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 23082, 62, 67, 2357, 76, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 40405, 13, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_87 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super_root CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS get_message_text REDEFINITION . METHODS run REDEFINITION . PROTECTED SECTION. METHODS check_screen IMPORTING !is_d020s TYPE d020s . METHODS determine_program RETURNING VALUE(rv_progname) TYPE program . PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_87 IMPLEMENTATION. METHOD check_screen. DATA: ls_h TYPE d020s, lt_f TYPE STANDARD TABLE OF d021s WITH DEFAULT KEY, lt_e TYPE STANDARD TABLE OF d022s WITH DEFAULT KEY ##NEEDED, lt_m TYPE STANDARD TABLE OF d023s WITH DEFAULT KEY ##NEEDED, BEGIN OF ls_id, p TYPE progname, d TYPE sydynnr, END OF ls_id. ls_id-p = is_d020s-prog. ls_id-d = is_d020s-dnum. IMPORT DYNPRO ls_h lt_f lt_e lt_m ID ls_id. IF sy-subrc <> 0. RETURN. ENDIF. CALL FUNCTION 'RS_SCRP_CHECK_FIELD_POSITIONS' EXPORTING maxlines = ls_h-noli maxcolns = ls_h-noco TABLES field_list = lt_f EXCEPTIONS extends_boundaries = 1 overlapped = 2 overlapped_in_tc = 3 OTHERS = 4. IF sy-subrc <> 0. inform( p_test = myname p_kind = mv_errty p_code = '001' p_param_1 = is_d020s-dnum ). ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). version = '001'. position = '087'. has_documentation = c_true. has_attributes = abap_true. attributes_ok = abap_true. mv_errty = c_error. add_obj_type( 'PROG' ). add_obj_type( 'FUGR' ). ENDMETHOD. METHOD determine_program. DATA: lv_area TYPE rs38l-area, lv_namespace TYPE rs38l-namespace, lv_subc TYPE progdir-subc, lv_group TYPE rs38l-area. IF object_type = 'PROG'. rv_progname = object_name. RETURN. ENDIF. * else it is a function group lv_area = object_name. CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT' EXPORTING complete_area = lv_area IMPORTING namespace = lv_namespace group = lv_group EXCEPTIONS include_not_exists = 1 group_not_exists = 2 no_selections = 3 no_function_include = 4 no_function_pool = 5 delimiter_wrong_position = 6 no_customer_function_group = 7 no_customer_function_include = 8 reserved_name_customer = 9 namespace_too_long = 10 area_length_error = 11 OTHERS = 12. IF sy-subrc <> 0. RETURN. ENDIF. CONCATENATE lv_namespace 'SAPL' lv_group INTO rv_progname. SELECT SINGLE subc FROM progdir INTO lv_subc WHERE name = rv_progname AND state = 'A' AND subc = 'F'. IF sy-subrc <> 0. CLEAR rv_progname. ENDIF. ENDMETHOD. METHOD get_message_text. CLEAR p_text. CASE p_code. WHEN '001'. p_text = 'Overlaps, errros, screen &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 run. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lt_d020s TYPE TABLE OF d020s, lv_program TYPE program. FIELD-SYMBOLS: <ls_d020s> LIKE LINE OF lt_d020s. lv_program = determine_program( ). IF lv_program IS INITIAL. RETURN. ENDIF. CALL FUNCTION 'RS_SCREEN_LIST' EXPORTING dynnr = '' progname = lv_program TABLES dynpros = lt_d020s EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc <> 0. RETURN. ENDIF. LOOP AT lt_d020s ASSIGNING <ls_d020s>. check_screen( <ls_d020s> ). ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 5774, 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, 651, 62, 20500, 62, 5239, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 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, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 9612, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 67, 33618, 82, 41876, 288, 33618, 82, 764, 198, 220, 220, 220, 337, 36252, 50, 5004, 62, 23065, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 1676, 70, 3672, 8, 41876, 1430, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 5774, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 62, 9612, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 71, 41876, 288, 33618, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 69, 41876, 49053, 9795, 43679, 3963, 288, 46821, 82, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 68, 41876, 49053, 9795, 43679, 3963, 288, 44087, 82, 13315, 5550, 38865, 35374, 22492, 12161, 1961, 1961, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 76, 41876, 49053, 9795, 43679, 3963, 288, 45310, 82, 13315, 5550, 38865, 35374, 22492, 12161, 1961, 1961, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 347, 43312, 3963, 43979, 62, 312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 41876, 1172, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 288, 41876, 827, 67, 2047, 48624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 43979, 62, 312, 13, 628, 198, 220, 220, 220, 43979, 62, 312, 12, 79, 796, 318, 62, 67, 33618, 82, 12, 1676, 70, 13, 198, 220, 220, 220, 43979, 62, 312, 12, 67, 796, 318, 62, 67, 33618, 82, 12, 67, 22510, 13, 628, 220, 220, 220, 30023, 9863, 360, 40760, 31190, 43979, 62, 71, 300, 83, 62, 69, 300, 83, 62, 68, 300, 83, 62, 76, 4522, 43979, 62, 312, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6998, 62, 6173, 20031, 62, 50084, 62, 44603, 62, 37997, 2043, 11053, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 6615, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 71, 12, 77, 11106, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 4033, 5907, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 71, 12, 77, 25634, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 2214, 62, 4868, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 69, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 14582, 62, 7784, 3166, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 12893, 6320, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 12893, 6320, 62, 259, 62, 23047, 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, 796, 604, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 4175, 7, 279, 62, 9288, 220, 220, 220, 796, 616, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11031, 220, 220, 220, 796, 285, 85, 62, 8056, 774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 8189, 220, 220, 220, 796, 705, 8298, 6, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 17143, 62, 16, 796, 318, 62, 67, 33618, 82, 12, 67, 22510, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 2196, 220, 796, 705, 8298, 4458, 198, 220, 220, 220, 2292, 796, 705, 2919, 22, 4458, 628, 220, 220, 220, 468, 62, 22897, 341, 796, 269, 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, 285, 85, 62, 8056, 774, 796, 269, 62, 18224, 13, 628, 220, 220, 220, 751, 62, 26801, 62, 4906, 7, 705, 4805, 7730, 6, 6739, 198, 220, 220, 220, 751, 62, 26801, 62, 4906, 7, 705, 37, 7340, 49, 6, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 5004, 62, 23065, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 20337, 220, 220, 220, 220, 220, 41876, 44608, 2548, 75, 12, 20337, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 14933, 10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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ycl_addict_dol_obj_doma DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES yif_addict_dol_obj . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ycl_addict_dol_obj_doma IMPLEMENTATION. METHOD yif_addict_dol_obj~get_ddtext. TRY. output = ycl_addict_domain=>get_instance( CONV #( obj_name ) )->get_text( ). CATCH cx_root ##no_Handler. ENDTRY. ENDMETHOD. METHOD yif_addict_dol_obj~get_object_txt. output = TEXT-452. ENDMETHOD. METHOD yif_addict_dol_obj~is_deleted. TRY. ycl_addict_domain=>get_instance( CONV #( obj_name ) ). output = abap_false. CATCH cx_root. output = abap_true. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 2860, 713, 62, 67, 349, 62, 26801, 62, 3438, 64, 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, 331, 361, 62, 2860, 713, 62, 67, 349, 62, 26801, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 331, 565, 62, 2860, 713, 62, 67, 349, 62, 26801, 62, 3438, 64, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 331, 361, 62, 2860, 713, 62, 67, 349, 62, 26801, 93, 1136, 62, 1860, 5239, 13, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 331, 565, 62, 2860, 713, 62, 27830, 14804, 1136, 62, 39098, 7, 7102, 53, 1303, 7, 26181, 62, 3672, 1267, 1267, 3784, 1136, 62, 5239, 7, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 15763, 22492, 3919, 62, 25060, 13, 198, 220, 220, 220, 23578, 40405, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 331, 361, 62, 2860, 713, 62, 67, 349, 62, 26801, 93, 1136, 62, 15252, 62, 14116, 13, 198, 220, 220, 220, 5072, 796, 40383, 12, 37730, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 331, 361, 62, 2860, 713, 62, 67, 349, 62, 26801, 93, 271, 62, 2934, 33342, 13, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 331, 565, 62, 2860, 713, 62, 27830, 14804, 1136, 62, 39098, 7, 7102, 53, 1303, 7, 26181, 62, 3672, 1267, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 15763, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 23578, 40405, 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 ]
class /HEC1/CL_CONFIG_DET_DRAW_NUMB definition public inheriting from /BOFU/CL_D_DRAW_NUMBER final create public . public section. methods CONSTRUCTOR . protected section. private section. ENDCLASS. CLASS /HEC1/CL_CONFIG_DET_DRAW_NUMB IMPLEMENTATION. METHOD constructor. super->constructor( ). me->mv_nobj = '/HEC1/CONF'. me->mv_nr_range_nr = '01'. mv_attribute_name = /hec1/if_configuration_c=>sc_node_attribute-root-hec_confid. ENDMETHOD. ENDCLASS.
[ 4871, 1220, 39, 2943, 16, 14, 5097, 62, 10943, 16254, 62, 35, 2767, 62, 35, 20530, 62, 41359, 33, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1220, 8202, 38989, 14, 5097, 62, 35, 62, 35, 20530, 62, 41359, 13246, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 5050, 7102, 46126, 1581, 764, 198, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 39, 2943, 16, 14, 5097, 62, 10943, 16254, 62, 35, 2767, 62, 35, 20530, 62, 41359, 33, 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, 502, 3784, 76, 85, 62, 77, 26801, 220, 220, 220, 220, 220, 220, 220, 796, 31051, 39, 2943, 16, 14, 10943, 37, 4458, 198, 220, 220, 220, 502, 3784, 76, 85, 62, 48624, 62, 9521, 62, 48624, 796, 705, 486, 4458, 198, 220, 220, 220, 285, 85, 62, 42348, 62, 3672, 220, 796, 1220, 258, 66, 16, 14, 361, 62, 11250, 3924, 62, 66, 14804, 1416, 62, 17440, 62, 42348, 12, 15763, 12, 258, 66, 62, 10414, 312, 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 ]
*"* use this source file for the definition and implementation of *"* local helper classes, interface definitions and type *"* declarations CLASS lcl_abapgit_provider IMPLEMENTATION. METHOD lif_abapgit_provider~validate_package. cl_abapgit_repo_srv=>get_instance( )->validate_package( iv_package = iv_package ). ENDMETHOD. METHOD lif_abapgit_provider~list_repositories. rt_list = cl_abapgit_repo_srv=>get_instance( )->list( ). ENDMETHOD. METHOD lif_abapgit_provider~validate_transport_request. DATA: lv_error_message TYPE string. SELECT SINGLE trstatus FROM e070 INTO @DATA(lv_trstatus) WHERE trkorr = @iv_transport_request. IF sy-subrc NE 0. MESSAGE e003(a4c_agit_adt) WITH iv_transport_request INTO lv_error_message. cx_abapgit_exception=>raise_t100( ). ELSEIF lv_trstatus NE 'D'. MESSAGE e004(a4c_agit_adt) WITH iv_transport_request INTO lv_error_message. cx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD lif_abapgit_provider~set_authentication_info. cl_abapgit_default_auth_info=>refresh( ). cl_abapgit_default_auth_info=>set_auth_info( iv_user = iv_user iv_password = iv_password ). ENDMETHOD. METHOD lif_abapgit_provider~perform_import. "Set the default transport request IF is_request_data-transportrequest IS NOT INITIAL. cl_abapgit_default_transport=>get_instance( )->set( CONV #( is_request_data-transportrequest ) ). ENDIF. "Create online repo DATA(lo_repo) = cl_abapgit_repo_srv=>get_instance( )->new_online( iv_url = is_request_data-url iv_branch_name = is_request_data-branch iv_package = CONV devclass( is_request_data-package ) ). "Pull objects lo_repo->refresh( ). DATA(ls_checks) = lo_repo->deserialize_checks( ). "Overwrite existing objects LOOP AT ls_checks-overwrite ASSIGNING FIELD-SYMBOL(<ls_overwrite>). <ls_overwrite>-decision = 'Y'. ENDLOOP. LOOP AT ls_checks-warning_package ASSIGNING FIELD-SYMBOL(<ls_warning_package>). <ls_warning_package>-decision = 'Y'. ENDLOOP. "Import objects ls_checks-transport-transport = is_request_data-transportrequest. lo_repo->deserialize( is_checks = ls_checks ii_log = ii_log ). ENDMETHOD. METHOD lif_abapgit_provider~link_repo. "Create online repo DATA(lo_repo) = cl_abapgit_repo_srv=>get_instance( )->new_online( iv_url = is_request_data-url iv_branch_name = is_request_data-branch iv_package = CONV devclass( is_request_data-package ) ). ENDMETHOD. METHOD lif_abapgit_provider~is_tr_check_required. DATA: ls_tr_check_data TYPE transport_check. rv_is_required = abap_true. ls_tr_check_data-pgmid = 'R3TR'. ls_tr_check_data-object = 'DEVC'. ls_tr_check_data-objectname = iv_package. ls_tr_check_data-operation = 'I'. cl_cts_adt_obj_record=>check_objects( CHANGING cs_transport_check = ls_tr_check_data ). IF ls_tr_check_data-recording = abap_false AND ls_tr_check_data-result <> 'E'. CLEAR: rv_is_required. ENDIF. ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 262, 6770, 290, 7822, 286, 198, 9, 1, 9, 1957, 31904, 6097, 11, 7071, 17336, 290, 2099, 198, 9, 1, 9, 31713, 198, 31631, 300, 565, 62, 397, 499, 18300, 62, 15234, 1304, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 3868, 62, 397, 499, 18300, 62, 15234, 1304, 93, 12102, 378, 62, 26495, 13, 198, 220, 220, 220, 537, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 14804, 1136, 62, 39098, 7, 1267, 3784, 12102, 378, 62, 26495, 7, 21628, 62, 26495, 796, 21628, 62, 26495, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 397, 499, 18300, 62, 15234, 1304, 93, 4868, 62, 260, 1930, 270, 1749, 13, 198, 220, 220, 220, 374, 83, 62, 4868, 796, 537, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 14804, 1136, 62, 39098, 7, 1267, 3784, 4868, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 397, 499, 18300, 62, 15234, 1304, 93, 12102, 378, 62, 7645, 634, 62, 25927, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 18224, 62, 20500, 41876, 4731, 13, 628, 220, 220, 220, 33493, 311, 2751, 2538, 491, 13376, 16034, 304, 43509, 39319, 2488, 26947, 7, 6780, 62, 2213, 13376, 8, 198, 220, 220, 220, 220, 220, 33411, 198, 220, 220, 220, 220, 220, 220, 220, 491, 74, 38890, 796, 2488, 452, 62, 7645, 634, 62, 25927, 13, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 10635, 657, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 304, 11245, 7, 64, 19, 66, 62, 363, 270, 62, 324, 83, 8, 13315, 21628, 62, 7645, 634, 62, 25927, 39319, 300, 85, 62, 18224, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 43213, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 17852, 5188, 5064, 300, 85, 62, 2213, 13376, 10635, 705, 35, 4458, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 304, 22914, 7, 64, 19, 66, 62, 363, 270, 62, 324, 83, 8, 13315, 21628, 62, 7645, 634, 62, 25927, 39319, 300, 85, 62, 18224, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 43213, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 397, 499, 18300, 62, 15234, 1304, 93, 2617, 62, 41299, 3299, 62, 10951, 13, 198, 220, 220, 220, 537, 62, 397, 499, 18300, 62, 12286, 62, 18439, 62, 10951, 14804, 5420, 3447, 7, 6739, 198, 220, 220, 220, 537, 62, 397, 499, 18300, 62, 12286, 62, 18439, 62, 10951, 14804, 2617, 62, 18439, 62, 10951, 7, 21628, 62, 7220, 220, 220, 220, 220, 796, 21628, 62, 7220, 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, 21628, 62, 28712, 796, 21628, 62, 28712, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868, 62, 397, 499, 18300, 62, 15234, 1304, 93, 525, 687, 62, 11748, 13, 628, 220, 220, 220, 366, 7248, 262, 4277, 4839, 2581, 198, 220, 220, 220, 16876, 318, 62, 25927, 62, 7890, 12, 7645, 634, 25927, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 537, 62, 397, 499, 18300, 62, 12286, 62, 7645, 634, 14804, 1136, 62, 39098, 7, 1267, 3784, 2617, 7, 7102, 53, 1303, 7, 318, 62, 25927, 62, 7890, 12, 7645, 634, 25927, 1267, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 366, 16447, 2691, 29924, 198, 220, 220, 220, 42865, 7, 5439, 62, 260, 7501, 8, 796, 537, 62, 397, 499, 18300, 62, 260, 7501, 62, 27891, 85, 14804, 1136, 62, 39098, 7, 1267, 3784, 3605, 62, 25119, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 796, 318, 62, 25927, 62, 7890, 12, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1671, 3702, 62, 3672, 796, 318, 62, 25927, 62, 7890, 12, 1671, 3702, 198, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 26495, 220, 220, 220, 220, 796, 7102, 53, 1614, 4871, 7, 318, 62, 25927, 62, 7890, 12, 26495, 1267, 6739, 628, 220, 220, 220, 366, 42940, 5563, 198, 220, 220, 220, 2376, 62, 260, 7501, 3784, 5420, 3447, 7, 6739, 628, 220, 220, 220, 42865, 7, 7278, 62, 42116, 8, 796, 2376, 62, 260, 7501, 3784, 8906, 48499, 1096, 62, 42116, 7, 6739, 628, 220, 220, 220, 366, 5886, 13564, 4683, 5563, 198, 220, 220, 220, 17579, 3185, 5161, 43979, 62, 42116, 12, 2502, 13564, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 2502, 13564, 29, 737, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 2502, 13564, 29, 12, 12501, 1166, 796, 705, 56, 4458, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 17579, 3185, 5161, 43979, 62, 42116, 12, 43917, 62, 26495, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 43917, 62, 26495, 29, 737, 198, 220, 220, 220, 220, 220, 1279, 7278, 62, 43917, 62, 26495, 29, 12, 12501, 1166, 796, 705, 56, 4458, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 366, 20939, 5563, 198, 220, 220, 220, 43979, 62, 42116, 12, 7645, 634, 12, 7645, 634, 796, 318, 62, 25927, 62, 7890, 12, 7645, 634, 25927, 13, 198, 220, 220, 220, 2376, 62, 260, 7501, 3784, 8906, 48499, 1096, 7, 318, 62, 42116, 796, 43979, 62, 42116, 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, 21065, 62, 6404, 220, 220, 220, 796, 21065, 62, 6404, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 3868 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
* regenerated at 15.05.2019 19:12:53 ******************************************************************* * System-defined Include-files. * ******************************************************************* INCLUDE LZABAPGITTEST_TMGTOP. " Global Declarations INCLUDE LZABAPGITTEST_TMGUXX. " Function Modules ******************************************************************* * User-defined Include-files (if necessary). * ******************************************************************* * INCLUDE LZABAPGITTEST_TMGF... " Subroutines * INCLUDE LZABAPGITTEST_TMGO... " PBO-Modules * INCLUDE LZABAPGITTEST_TMGI... " PAI-Modules * INCLUDE LZABAPGITTEST_TMGE... " Events * INCLUDE LZABAPGITTEST_TMGP... " Local class implement. * INCLUDE LZABAPGITTEST_TMGT99. " ABAP Unit tests INCLUDE LZABAPGITTEST_TMGF00 . " subprograms INCLUDE LZABAPGITTEST_TMGI00 . " PAI modules INCLUDE LSVIMFXX . " subprograms INCLUDE LSVIMOXX . " PBO modules INCLUDE LSVIMIXX . " PAI modules
[ 9, 16935, 515, 379, 1315, 13, 2713, 13, 23344, 678, 25, 1065, 25, 4310, 198, 17174, 17174, 8162, 198, 9, 220, 220, 4482, 12, 23211, 40348, 12, 16624, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 220, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 19555, 3185, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8060, 16691, 24355, 198, 220, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 38022, 8051, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 15553, 3401, 5028, 198, 198, 17174, 17174, 8162, 198, 9, 220, 220, 11787, 12, 23211, 40348, 12, 16624, 357, 361, 3306, 737, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 17174, 17174, 8162, 198, 9, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 21713, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 3834, 81, 448, 1127, 198, 9, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 11230, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 350, 8202, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 18878, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 8147, 40, 12, 5841, 5028, 198, 9, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 8264, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18715, 198, 9, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 16960, 986, 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, 6242, 2969, 38, 22470, 6465, 62, 15972, 19555, 2079, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 9564, 2969, 11801, 5254, 198, 220, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 21713, 405, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 850, 23065, 82, 198, 220, 3268, 5097, 52, 7206, 406, 57, 6242, 2969, 38, 22470, 6465, 62, 15972, 18878, 405, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 8147, 40, 13103, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 37, 8051, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 850, 23065, 82, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 46, 8051, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 350, 8202, 13103, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 40, 8051, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 366, 8147, 40, 13103, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*---------------------------------------------------------------------* * view related PAI modules * generation date: 27.11.2018 at 23:27:52 by user AGEPPART * view maintenance generator version: #001407# *---------------------------------------------------------------------* INCLUDE LSVIMITX . "base table related PAI modules
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1570, 3519, 8147, 40, 13103, 198, 9, 220, 220, 5270, 3128, 25, 2681, 13, 1157, 13, 7908, 379, 2242, 25, 1983, 25, 4309, 416, 2836, 317, 8264, 10246, 7227, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 198, 1268, 5097, 52, 7206, 30948, 53, 3955, 2043, 55, 764, 366, 8692, 3084, 3519, 8147, 40, 13103, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION zpof_gtt_ote_dl_item. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_APP_OBJ_TYPES) TYPE /SAPTRX/AOTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERENCE(I_APP_TYPE_CNTL_TABS) TYPE TRXAS_APPTYPE_TABS *" REFERENCE(I_APP_OBJECTS) TYPE TRXAS_APPOBJ_CTABS *" TABLES *" E_CONTROL_DATA STRUCTURE /SAPTRX/CONTROL_DATA *" E_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" EXCEPTIONS *" PARAMETER_ERROR *" CDATA_DETERMINATION_ERROR *" TABLE_DETERMINATION_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- DATA: lo_udm_message TYPE REF TO cx_udm_message, ls_bapiret TYPE bapiret2. TRY. lcl_ef_performer=>get_control_data( EXPORTING is_definition = VALUE #( maintab = lif_pof_constants=>cs_tabledef-dl_item_new mastertab = lif_pof_constants=>cs_tabledef-dl_header_new ) io_bo_factory = NEW lcl_factory_dl_item( ) iv_appsys = i_appsys is_app_obj_types = i_app_obj_types it_all_appl_tables = i_all_appl_tables it_app_type_cntl_tabs = i_app_type_cntl_tabs it_app_objects = i_app_objects CHANGING ct_control_data = e_control_data[] ). CATCH cx_udm_message INTO lo_udm_message. lcl_tools=>get_errors_log( EXPORTING io_umd_message = lo_udm_message iv_appsys = i_appsys IMPORTING es_bapiret = ls_bapiret ). " add error message APPEND ls_bapiret TO e_logtable. " throw corresponding exception CASE lo_udm_message->textid. WHEN lif_ef_constants=>cs_errors-stop_processing. RAISE stop_processing. WHEN lif_ef_constants=>cs_errors-table_determination. RAISE table_determination_error. ENDCASE. ENDTRY. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 79, 1659, 62, 70, 926, 62, 1258, 62, 25404, 62, 9186, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 24805, 62, 9864, 41, 62, 9936, 47, 1546, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 32, 2394, 48232, 1546, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 7036, 62, 2969, 6489, 62, 5603, 9148, 1546, 8, 41876, 220, 7579, 55, 1921, 62, 5603, 2749, 1340, 30339, 1137, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 24805, 62, 25216, 62, 34, 11251, 43, 62, 5603, 4462, 8, 41876, 220, 7579, 55, 1921, 62, 24805, 25216, 62, 5603, 4462, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 24805, 62, 9864, 41, 2943, 4694, 8, 41876, 220, 7579, 55, 1921, 62, 24805, 9864, 41, 62, 4177, 32, 4462, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 412, 62, 10943, 5446, 3535, 62, 26947, 19269, 18415, 11335, 220, 1220, 50, 2969, 5446, 55, 14, 10943, 5446, 3535, 62, 26947, 198, 9, 1, 220, 220, 220, 220, 220, 412, 62, 25294, 38148, 19269, 18415, 11335, 220, 347, 17614, 26087, 17, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 29463, 2390, 2767, 1137, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 6458, 13563, 62, 35, 2767, 1137, 23678, 6234, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 43679, 62, 35, 2767, 1137, 23678, 6234, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 44934, 62, 4805, 4503, 7597, 2751, 198, 9, 1, 10097, 23031, 198, 220, 42865, 25, 2376, 62, 463, 76, 62, 20500, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 463, 76, 62, 20500, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 65, 499, 557, 83, 220, 220, 220, 220, 220, 220, 220, 41876, 275, 499, 557, 83, 17, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 300, 565, 62, 891, 62, 525, 16354, 14804, 1136, 62, 13716, 62, 7890, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 46758, 220, 220, 220, 220, 220, 220, 220, 220, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1388, 8658, 220, 220, 796, 3868, 62, 79, 1659, 62, 9979, 1187, 14804, 6359, 62, 83, 4510, 891, 12, 25404, 62, 9186, 62, 3605, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4958, 8658, 796, 3868, 62, 79, 1659, 62, 9979, 1187, 14804, 6359, 62, 83, 4510, 891, 12, 25404, 62, 25677, 62, 3605, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 2127, 62, 69, 9548, 220, 220, 220, 220, 220, 220, 220, 220, 796, 12682, 300, 565, 62, 69, 9548, 62, 25404, 62, 9186, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 1324, 62, 26801, 62, 19199, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 62, 26801, 62, 19199, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 439, 62, 1324, 75, 62, 83, 2977, 220, 220, 220, 796, 1312, 62, 439, 62, 1324, 75, 62, 83, 2977, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1324, 62, 4906, 62, 66, 429, 75, 62, 8658, 82, 796, 1312, 62, 1324, 62, 4906, 62, 66, 429, 75, 62, 8658, 82, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 1324, 62, 48205, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 62, 48205, 198, 220, 220, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 83, 62, 13716, 62, 7890, 220, 220, 220, 220, 220, 220, 796, 304, 62, 13716, 62, 7890, 21737, 6739, 628, 220, 220, 220, 327, 11417, 43213, 62, 463, 76, 62, 20500, 39319, 2376, 62, 463, 76, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 300, 565, 62, 31391, 14804, 1136, 62, 48277, 62, 6404, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 388, 67, 62, 20500, 796, 2376, 62, 463, 76, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 65, 499, 557, 83, 220, 220, 220, 220, 796, 43979, 62, 65, 499, 557, 83, 6739, 628, 220, 220, 220, 220, 220, 366, 751, 4049, 3275, 198, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 65, 499, 557, 83, 5390, 304, 62, 6404, 11487, 13, 628, 220, 220, 220, 220, 220, 366, 3714, 11188, 6631, 198, 220, 220, 220, 220, 220, 42001, 2376, 62, 463, 76, 62, 20500, 3784, 5239, 312, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 3868, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 48277, 12, 11338, 62, 36948, 13, 198, 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, 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travel_u04 IMPLEMENTATION. ENDCLASS.
[ 31631, 1220, 67, 5908, 14, 46583, 62, 35927, 62, 84, 3023, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 25261, 198, 220, 7473, 9348, 7801, 12861, 1581, 3963, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 3023, 764, 628, 220, 44731, 44513, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1220, 67, 5908, 14, 46583, 62, 35927, 62, 84, 3023, 30023, 2538, 10979, 6234, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PARAMETERS: p_fname TYPE ibipparms-path OBLIGATORY. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname. PERFORM file_open_dialog CHANGING p_fname. FORM file_open_dialog CHANGING cp_fname. DATA: lt_filetable TYPE filetable, lv_rc TYPE i. cl_gui_frontend_services=>file_open_dialog( EXPORTING default_extension = 'xlsx' file_filter = '(*.xlsx)|*.xlsx|' CHANGING file_table = lt_filetable rc = lv_rc EXCEPTIONS file_open_dialog_failed = 1 cntl_error = 2 error_no_gui = 3 not_supported_by_gui = 4 OTHERS = 5 ). TRY. cp_fname = lt_filetable[ 1 ]-filename. CATCH cx_root. ENDTRY. ENDFORM.
[ 27082, 2390, 2767, 4877, 25, 279, 62, 69, 3672, 41876, 24283, 3974, 8357, 12, 6978, 440, 9148, 3528, 1404, 15513, 13, 198, 198, 1404, 33493, 2849, 12, 6173, 2200, 1677, 6177, 26173, 8924, 12, 2200, 35780, 7473, 279, 62, 69, 3672, 13, 198, 220, 19878, 21389, 2393, 62, 9654, 62, 38969, 519, 5870, 15567, 2751, 279, 62, 69, 3672, 13, 198, 198, 21389, 2393, 62, 9654, 62, 38969, 519, 5870, 15567, 2751, 31396, 62, 69, 3672, 13, 628, 220, 42865, 25, 300, 83, 62, 7753, 11487, 41876, 2393, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 6015, 220, 220, 220, 220, 220, 220, 220, 41876, 1312, 13, 628, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 7753, 62, 9654, 62, 38969, 519, 7, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 4277, 62, 2302, 3004, 220, 220, 220, 220, 220, 220, 796, 705, 87, 7278, 87, 6, 198, 220, 220, 220, 220, 220, 2393, 62, 24455, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 29513, 24620, 87, 7278, 87, 14726, 24620, 87, 7278, 87, 91, 6, 198, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 2393, 62, 11487, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 7753, 11487, 198, 220, 220, 220, 220, 220, 48321, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 6015, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 2393, 62, 9654, 62, 38969, 519, 62, 47904, 796, 352, 198, 220, 220, 220, 220, 220, 269, 429, 75, 62, 18224, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 4049, 62, 3919, 62, 48317, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 407, 62, 15999, 62, 1525, 62, 48317, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 6739, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 31396, 62, 69, 3672, 796, 300, 83, 62, 7753, 11487, 58, 352, 2361, 12, 34345, 13, 198, 220, 220, 220, 327, 11417, 43213, 62, 15763, 13, 198, 220, 23578, 40405, 13, 198, 198, 1677, 8068, 1581, 44, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 root definition. public section. interfaces yea_route. endclass. class root implementation. method yea_route~execute. response->send_text( 'hello' ). endmethod. endclass. " Returns the HTTP method used class method_echo definition. public section. interfaces yea_route. endclass. class method_echo implementation. method yea_route~execute. response->send_text( request->method( ) ). endmethod. endclass. " Returns the body present in the message class body_echo definition. public section. interfaces yea_route. endclass. class body_echo implementation. method yea_route~execute. response->send_text( request->body( ) ). endmethod. endclass. " Returns the query used in the call class query_echo definition. public section. interfaces yea_route. endclass. class query_echo implementation. method yea_route~execute. data(query) = request->query( ). data query_arguments type stringtab. loop at query->list( ) assigning field-symbol(<q>). if <q>-value is not initial. append |{ <q>-key }={ <q>-value }| to query_arguments. else. append <q>-key to query_arguments. endif. endloop. concatenate lines of query_arguments into data(result) separated by '&'. response->send_text( result ). endmethod. endclass. " Returns the params used in the call class params_echo definition. public section. interfaces yea_route. endclass. class params_echo implementation. method yea_route~execute. data(params) = request->parameters( ). data param_arguments type stringtab. loop at params->list( ) assigning field-symbol(<p>). append |{ <p>-key }={ <p>-value }| to param_arguments. endloop. concatenate lines of param_arguments into data(result) separated by '&'. response->send_text( result ). endmethod. endclass. " Returns the headers used in the call class headers_echo definition. public section. interfaces yea_route. endclass. class headers_echo implementation. method yea_route~execute. data header_arguments type stringtab. loop at request->headers( ) assigning field-symbol(<h>). append |{ <h>-key }={ <h>-value }| to header_arguments. endloop. concatenate lines of header_arguments into data(result) separated by '&'. response->send_text( result ). endmethod. endclass. " Middleware to check roles class role_check definition. public section. interfaces yea_route. methods: constructor importing role type string. private section. data: _role type string. endclass. class role_check implementation. method constructor. _role = role. endmethod. method yea_route~execute. select count(*) from agr_users where uname = sy-uname and agr_name = _role. if ( sy-dbcnt > 0 ). returning = abap_true. else. response->set_status( 401 )->send_text( |Missing role { _role }| ). returning = abap_false. endif. endmethod. endclass. " Middleware to check content-type class ctype_check definition. public section. interfaces yea_route. methods: constructor importing ctype type string. private section. data: _ctype type string. endclass. class ctype_check implementation. method constructor. _ctype = ctype. endmethod. method yea_route~execute. if ( request->content_type( ) = _ctype ). returning = abap_true. else. response->set_status( 400 )->send_text( |Content-type: { _ctype } required| ). endif. endmethod. endclass.
[ 198, 4871, 6808, 6770, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 44642, 62, 38629, 13, 198, 437, 4871, 13, 198, 4871, 6808, 7822, 13, 198, 220, 2446, 44642, 62, 38629, 93, 41049, 13, 198, 220, 220, 220, 2882, 3784, 21280, 62, 5239, 7, 705, 31373, 6, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 1, 16409, 262, 14626, 2446, 973, 198, 4871, 2446, 62, 30328, 6770, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 44642, 62, 38629, 13, 198, 437, 4871, 13, 198, 4871, 2446, 62, 30328, 7822, 13, 198, 220, 2446, 44642, 62, 38629, 93, 41049, 13, 198, 220, 220, 220, 2882, 3784, 21280, 62, 5239, 7, 2581, 3784, 24396, 7, 1267, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 1, 16409, 262, 1767, 1944, 287, 262, 3275, 198, 4871, 1767, 62, 30328, 6770, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 44642, 62, 38629, 13, 198, 437, 4871, 13, 198, 4871, 1767, 62, 30328, 7822, 13, 198, 220, 2446, 44642, 62, 38629, 93, 41049, 13, 198, 220, 220, 220, 2882, 3784, 21280, 62, 5239, 7, 2581, 3784, 2618, 7, 1267, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 1, 16409, 262, 12405, 973, 287, 262, 869, 198, 4871, 12405, 62, 30328, 6770, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 44642, 62, 38629, 13, 198, 437, 4871, 13, 198, 4871, 12405, 62, 30328, 7822, 13, 198, 220, 2446, 44642, 62, 38629, 93, 41049, 13, 198, 220, 220, 220, 1366, 7, 22766, 8, 796, 2581, 3784, 22766, 7, 6739, 198, 220, 220, 220, 1366, 12405, 62, 853, 2886, 2099, 4731, 8658, 13, 198, 220, 220, 220, 9052, 379, 12405, 3784, 4868, 7, 1267, 38875, 2214, 12, 1837, 23650, 7, 27, 80, 29, 737, 198, 220, 220, 220, 220, 220, 611, 1279, 80, 29, 12, 8367, 318, 407, 4238, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 930, 90, 1279, 80, 29, 12, 2539, 1782, 34758, 1279, 80, 29, 12, 8367, 1782, 91, 284, 12405, 62, 853, 2886, 13, 198, 220, 220, 220, 220, 220, 2073, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 1279, 80, 29, 12, 2539, 284, 12405, 62, 853, 2886, 13, 198, 220, 220, 220, 220, 220, 45762, 13, 198, 220, 220, 220, 886, 26268, 13, 198, 220, 220, 220, 1673, 36686, 378, 3951, 286, 12405, 62, 853, 2886, 656, 1366, 7, 20274, 8, 11266, 416, 705, 5, 4458, 198, 220, 220, 220, 2882, 3784, 21280, 62, 5239, 7, 1255, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 1, 16409, 262, 42287, 973, 287, 262, 869, 198, 4871, 42287, 62, 30328, 6770, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 44642, 62, 38629, 13, 198, 437, 4871, 13, 198, 4871, 42287, 62, 30328, 7822, 13, 198, 220, 2446, 44642, 62, 38629, 93, 41049, 13, 198, 220, 220, 220, 1366, 7, 37266, 8, 796, 2581, 3784, 17143, 7307, 7, 6739, 198, 220, 220, 220, 1366, 5772, 62, 853, 2886, 2099, 4731, 8658, 13, 198, 220, 220, 220, 9052, 379, 42287, 3784, 4868, 7, 1267, 38875, 2214, 12, 1837, 23650, 7, 27, 79, 29, 737, 198, 220, 220, 220, 220, 220, 24443, 930, 90, 1279, 79, 29, 12, 2539, 1782, 34758, 1279, 79, 29, 12, 8367, 1782, 91, 284, 5772, 62, 853, 2886, 13, 198, 220, 220, 220, 886, 26268, 13, 198, 220, 220, 220, 1673, 36686, 378, 3951, 286, 5772, 62, 853, 2886, 656, 1366, 7, 20274, 8, 11266, 416, 705, 5, 4458, 198, 220, 220, 220, 2882, 3784, 21280, 62, 5239, 7, 1255, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 1, 16409, 262, 24697, 973, 287, 262, 869, 198, 4871, 24697, 62, 30328, 6770, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 44642, 62, 38629, 13, 198, 437, 4871, 13, 198, 4871, 24697, 62, 30328, 7822, 13, 198, 220, 2446, 44642, 62, 38629, 93, 41049, 13, 198, 220, 220, 220, 1366, 13639, 62, 853, 2886, 2099, 4731, 8658, 13, 198, 220, 220, 220, 9052, 379, 2581, 3784, 50145, 7, 1267, 38875, 2214, 12, 1837, 23650, 7, 27, 71, 29, 737, 198, 220, 220, 220, 220, 220, 24443, 930, 90, 1279, 71, 29, 12, 2539, 1782, 34758, 1279, 71, 29, 12, 8367, 1782, 91, 284, 13639, 62, 853, 2886, 13, 198, 220, 220, 220, 886, 26268, 13, 198, 220, 220, 220, 1673, 36686, 378, 3951, 286, 13639, 62, 853, 2886, 656, 1366, 7, 20274, 8, 11266, 416, 705, 5, 4458, 198, 220, 220, 220, 2882, 3784, 21280, 62, 5239, 7, 1255, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198, 198, 1, 6046, 1574, 284, 2198, 9176, 198, 4871, 2597, 62, 9122, 6770, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 20314, 44642, 62, 38629, 13, 198, 220, 220, 220, 5050, 25, 23772, 33332, 2597, 2099, 4731, 13, 198, 220, 2839, 2665, 13, 198, 220, 220, 220, 1366, 25, 4808, 18090, 2099, 4731, 13, 198, 437, 4871, 13, 198, 4871, 2597, 62, 9122, 7822, 13, 198, 220, 2446, 23772, 13, 198, 220, 220, 220, 4808, 18090, 796, 2597, 13, 198, 220, 886, 24396, 13, 198, 220, 2446, 44642, 62, 38629, 93, 41049, 13, 198, 220, 220, 220, 2922, 954, 7, 28104, 422, 556, 81, 62, 18417, 198, 220, 220, 220, 220, 220, 810, 555, 480, 796, 827, 12, 403, 480, 198, 220, 220, 220, 220, 220, 220, 220, 290, 556, 81, 62, 3672, 796, 4808, 18090, 13, 198, 220, 220, 220, 611, 357, 827, 12, 9945, 66, 429, 1875, 657, 6739, 198, 220, 220, 220, 220, 220, 8024, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 2073, 13, 198, 220, 220, 220, 220, 220, 2882, 3784, 2617, 62, 13376, 7, 22219, 1267, 3784, 21280, 62, 5239, 7, 930, 43730, 2597, 1391, 4808, 18090, 1782, 91, 6739, 198, 220, 220, 220, 220, 220, 8024, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 45762, 13, 198, 220, 886, 24396, 13, 198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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_word_count DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. TYPES: BEGIN OF return_structure, word TYPE string, count TYPE i, END OF return_structure, return_table TYPE STANDARD TABLE OF return_structure WITH KEY word. METHODS count_words IMPORTING !phrase TYPE string RETURNING VALUE(result) TYPE return_table . PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS zcl_word_count IMPLEMENTATION. METHOD count_words. "Add solution here ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 4775, 62, 9127, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1441, 62, 301, 5620, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1573, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 954, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1441, 62, 301, 5620, 11, 198, 220, 220, 220, 220, 220, 1441, 62, 11487, 41876, 49053, 9795, 43679, 3963, 1441, 62, 301, 5620, 13315, 35374, 1573, 13, 198, 220, 220, 220, 337, 36252, 50, 954, 62, 10879, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 34675, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 1441, 62, 11487, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 31631, 1976, 565, 62, 4775, 62, 9127, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 954, 62, 10879, 13, 198, 220, 220, 220, 366, 4550, 4610, 994, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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">Helper for virtual joins</p> CLASS zcl_dbbr_virtual_join_helper DEFINITION PUBLIC CREATE PRIVATE . PUBLIC SECTION. "! <p class="shorttext synchronized" lang="en">Creates new instance of virtual join helper</p> "! CLASS-METHODS create IMPORTING !is_join_def TYPE zdbbr_join_def !ir_fields TYPE REF TO zcl_dbbr_tabfield_list !ir_fields_all TYPE REF TO zcl_dbbr_tabfield_list RETURNING VALUE(result) TYPE REF TO zcl_dbbr_virtual_join_helper . "! <p class="shorttext synchronized" lang="en">Fills the cache tables with values</p> "! METHODS fill_cache_tables IMPORTING !it_table TYPE STANDARD TABLE RAISING zcx_dbbr_selection_common . "! <p class="shorttext synchronized" lang="en">Checks if post SQL Join exists</p> "! METHODS post_join_exists RETURNING VALUE(result) TYPE abap_bool . "! <p class="shorttext synchronized" lang="en">Process the the virtual joins for each line</p> "! METHODS process_table IMPORTING !ir_table TYPE REF TO data. PROTECTED SECTION. PRIVATE SECTION. DATA mt_post_join_data TYPE zdbbr_post_join_data_itab . DATA mr_fields TYPE REF TO zcl_dbbr_tabfield_list . DATA mr_fields_all TYPE REF TO zcl_dbbr_tabfield_list . DATA mt_conditional_fields TYPE zdbbr_tabfield_info_ui_itab . DATA mv_primary_table TYPE zdbbr_join_data_ui-primary_table . DATA mv_and_string TYPE string . DATA mv_or_string TYPE string . "! <p class="shorttext synchronized" lang="en">Builds where clause for all entries cache select</p> "! METHODS build_for_all_where_clause IMPORTING !is_post_join TYPE zdbbr_post_join_data RETURNING VALUE(rt_where) TYPE string_table . "! <p class="shorttext synchronized" lang="en">Builds where clause for cache select</p> "! METHODS build_where_clause IMPORTING !is_post_join TYPE zdbbr_post_join_data RETURNING VALUE(rt_where) TYPE string_table . "! <p class="shorttext synchronized" lang="en">Builds where condition out of join and current output line</p> "! METHODS build_where_for_cache_query IMPORTING !is_virtual_join TYPE zdbbr_post_join_data !is_line TYPE any RETURNING VALUE(rt_where) TYPE string_table . "! <p class="shorttext synchronized" lang="en">CONSTRUCTOR</p> "! METHODS constructor IMPORTING !is_join_def TYPE zdbbr_join_def !ir_fields TYPE REF TO zcl_dbbr_tabfield_list !ir_fields_all TYPE REF TO zcl_dbbr_tabfield_list . "! <p class="shorttext synchronized" lang="en">Creates all needed cache tables</p> "! METHODS create_cache_tables . "! <p class="shorttext synchronized" lang="en">Fills cache with FOR ALL ENTRIES Select</p> "! METHODS fill_cache_for_all_select IMPORTING !it_table TYPE STANDARD TABLE CHANGING !cs_post_join TYPE zdbbr_post_join_data RAISING zcx_dbbr_selection_common . "! <p class="shorttext synchronized" lang="en">Fills cache with normal SELECT due to needed conversion</p> "! METHODS fill_cache_single_select IMPORTING !it_table TYPE STANDARD TABLE CHANGING !cs_post_join TYPE zdbbr_post_join_data RAISING zcx_dbbr_selection_common . "! <p class="shorttext synchronized" lang="en">Fills a single cache table with values</p> "! METHODS fill_cache_table IMPORTING !it_table TYPE STANDARD TABLE CHANGING !cs_post_join TYPE zdbbr_post_join_data RAISING zcx_dbbr_selection_common . "! <p class="shorttext synchronized" lang="en">Fills all the virtual output fields for a single line</p> "! "! METHODS fill_output_fields IMPORTING !is_virtual_join TYPE zdbbr_post_join_data !it_cache TYPE ANY TABLE CHANGING !cs_line TYPE any !cr_t_new_lines TYPE REF TO data . "! <p class="shorttext synchronized" lang="en">Get correct value for condition for WHERE Clause</p> "! METHODS get_value_for_where IMPORTING !iv_value TYPE any !is_field_cond TYPE zdbbr_join_field_cond_ui RETURNING VALUE(result) TYPE string . "! <p class="shorttext synchronized" lang="en">Parse filter conditions for virtual join table</p> "! METHODS parse_virtjtab_filter_cond IMPORTING !it_filter_cond TYPE zdbbr_join_filter_cond_ui_t RETURNING VALUE(rt_conditions) TYPE zcl_sat_join_helper=>tt_join_conditions . "! <p class="shorttext synchronized" lang="en">Parse field conditions for virtual join table</p> "! METHODS parst_virtjtab_field_cond IMPORTING !it_field_cond TYPE zdbbr_join_field_cond_ui_t !is_line TYPE any RETURNING VALUE(rt_conditions) TYPE zcl_sat_join_helper=>tt_join_conditions . "! <p class="shorttext synchronized" lang="en">Processes a single line in the output table</p> "! METHODS process_line CHANGING !cs_line TYPE any !cr_t_new_lines TYPE REF TO data . ENDCLASS. CLASS zcl_dbbr_virtual_join_helper IMPLEMENTATION. METHOD build_for_all_where_clause. DATA: lt_conditions TYPE zcl_sat_join_helper=>tt_join_conditions. *.. parse field conditions LOOP AT is_post_join-field_cond ASSIGNING FIELD-SYMBOL(<ls_field_cond>). DATA(lv_index) = sy-tabix. DATA(lv_offset) = CONV int2( <ls_field_cond>-off_offset ). DATA(lv_length) = CONV int2( <ls_field_cond>-off_length ). DATA(lv_length_suffix) = COND string( WHEN lv_offset IS NOT INITIAL AND lv_length IS NOT INITIAL THEN |+{ lv_offset }({ lv_length })| WHEN lv_length IS NOT INITIAL THEN |({ lv_length })| ). lt_conditions = VALUE #( BASE lt_conditions ( join_operator = COND #( WHEN lv_index = 1 THEN | | ELSE mv_and_string ) value = |{ <ls_field_cond>-field } { <ls_field_cond>-operator } | && |it_table-{ <ls_field_cond>-ref_field_alv }{ lv_length_suffix }| ) ). ENDLOOP. *.. parse the filter conditions for the given virtual join table lt_conditions = VALUE #( BASE lt_conditions ( LINES OF parse_virtjtab_filter_cond( is_post_join-filter_cond ) ) ). *.. finally create the where string table for the select rt_where = zcl_sat_join_helper=>build_where_for_conditions( lt_conditions ). ENDMETHOD. METHOD build_where_clause. DATA: lt_conditions TYPE zcl_sat_join_helper=>tt_join_conditions. *.. parse field conditions LOOP AT is_post_join-field_cond ASSIGNING FIELD-SYMBOL(<ls_field_cond>). DATA(lv_index) = sy-tabix. lt_conditions = VALUE #( BASE lt_conditions ( join_operator = COND #( WHEN lv_index = 1 THEN | | ELSE mv_and_string ) value = |{ <ls_field_cond>-field } { <ls_field_cond>-operator } | && |<ls_data>-{ <ls_field_cond>-ref_field_alv }| ) ). ENDLOOP. *.. parse the filter conditions for the given virtual join table lt_conditions = VALUE #( BASE lt_conditions ( LINES OF parse_virtjtab_filter_cond( is_post_join-filter_cond ) ) ). *.. finally create the where string table for the select rt_where = zcl_sat_join_helper=>build_where_for_conditions( lt_conditions ). ENDMETHOD. METHOD build_where_for_cache_query. DATA: lt_conditions TYPE zcl_sat_join_helper=>tt_join_conditions. *.. parse field conditions LOOP AT is_virtual_join-field_cond ASSIGNING FIELD-SYMBOL(<ls_field_cond>). DATA(lv_index) = sy-tabix. ASSIGN COMPONENT <ls_field_cond>-ref_field_alv OF STRUCTURE is_line TO FIELD-SYMBOL(<lv_ref_value>). CHECK sy-subrc = 0. DATA(lv_value) = cl_abap_dyn_prg=>quote( get_value_for_where( iv_value = <lv_ref_value> is_field_cond = <ls_field_cond> ) ). lt_conditions = VALUE #( BASE lt_conditions ( join_operator = COND #( WHEN lv_index = 1 THEN | | ELSE mv_and_string ) value = |{ <ls_field_cond>-field } { <ls_field_cond>-operator } | && |{ lv_value }| ) ). ENDLOOP. **.. parse the filter conditions for the given virtual join table * lt_conditions = VALUE #( BASE lt_conditions * ( LINES OF parse_virtjtab_filter_cond( is_post_join-filter_cond ) ) * ). *.. finally create the where string table for the select LOOP AT lt_conditions ASSIGNING FIELD-SYMBOL(<ls_cond>). rt_where = VALUE #( BASE rt_where ( |{ <ls_cond>-join_operator }{ <ls_cond>-open_bracket }{ <ls_cond>-value }{ <ls_cond>-closing_bracket }| ) ). ENDLOOP. ENDMETHOD. METHOD constructor. mr_fields = ir_fields. mr_fields_all = ir_fields_all. mv_primary_table = is_join_def-primary_table. LOOP AT is_join_def-tables ASSIGNING FIELD-SYMBOL(<ls_join_table>) WHERE is_virtual = abap_true. DATA(ls_post_join) = VALUE zdbbr_post_join_data( join_table = <ls_join_table>-add_table join_type = <ls_join_table>-join_type ). LOOP AT <ls_join_table>-field_conditions ASSIGNING FIELD-SYMBOL(<ls_join_field>). TRY. DATA(lr_field) = mr_fields_all->get_field_ref( iv_tabname_alias = <ls_join_table>-add_table iv_fieldname = <ls_join_field>-field ). CATCH cx_sy_itab_line_not_found. RETURN. ENDTRY. DATA(ls_join_field) = CORRESPONDING zdbbr_join_field_cond_ui( <ls_join_field> ). ls_join_field-field_inttype = lr_field->inttype. TRY. DATA(lr_ref_field) = mr_fields_all->get_field_ref( iv_tabname_alias = <ls_join_field>-ref_table iv_fieldname = <ls_join_field>-ref_field ). CATCH cx_sy_itab_line_not_found. RETURN. ENDTRY. ls_join_field-ref_field_alv = lr_ref_field->alv_fieldname. ls_join_field-ref_field_length = lr_ref_field->length. ls_join_field-ref_field_inttype = lr_ref_field->inttype. IF ls_join_field-field_inttype <> ls_join_field-ref_field_inttype. DATA(lf_conversion_needed) = abap_true. ls_join_field-is_conversion_needed = abap_true. ls_join_field-field_type_ref = CAST #( cl_abap_typedescr=>describe_by_name( |{ <ls_join_table>-add_table }-{ ls_join_field-field }| ) ). ENDIF. ls_post_join-field_cond = VALUE #( BASE ls_post_join-field_cond ( ls_join_field ) ). ENDLOOP. *.... collect filter conditions as well LOOP AT <ls_join_table>-filter_conditions ASSIGNING FIELD-SYMBOL(<ls_filter_cond>). DATA(ls_filter_cond) = CORRESPONDING zdbbr_join_filter_cond_ui( <ls_filter_cond> ). IF <ls_filter_cond>-tabname = <ls_join_table>-add_table. ls_filter_cond-is_for_add_table = abap_true. ELSE. TRY. lr_field = mr_fields_all->get_field_ref( iv_tabname_alias = <ls_filter_cond>-tabname iv_fieldname = <ls_filter_cond>-fieldname ). ls_filter_cond-alv_fieldname = lr_field->alv_fieldname. CATCH cx_sy_itab_line_not_found. CONTINUE. ENDTRY. ENDIF. ls_post_join-filter_cond = VALUE #( BASE ls_post_join-filter_cond ( ls_filter_cond ) ). ENDLOOP. ls_post_join-is_conversion_needed = lf_conversion_needed. CLEAR lf_conversion_needed. mt_post_join_data = VALUE #( BASE mt_post_join_data ( ls_post_join ) ). ENDLOOP. mt_conditional_fields = mr_fields->get_conditional_fields( ). mv_and_string = | { 'AND' ALIGN = RIGHT WIDTH = 5 } |. mv_or_string = | { 'OR' ALIGN = RIGHT WIDTH = 5 } |. ENDMETHOD. METHOD create. result = NEW #( ir_fields = ir_fields ir_fields_all = ir_fields_all is_join_def = is_join_def ). result->create_cache_tables( ). ENDMETHOD. METHOD create_cache_tables. DATA: lt_fields TYPE zsat_dfies_itab. LOOP AT mt_post_join_data ASSIGNING FIELD-SYMBOL(<ls_post_join>). " collect key fields from join definition lt_fields = VALUE #( FOR <ls_key_field> IN <ls_post_join>-field_cond ( fieldname = <ls_key_field>-field tabname = <ls_post_join>-join_table keyflag = abap_true ) ). " get output fields for join table lt_fields = VALUE zsat_dfies_itab( BASE lt_fields FOR <ls_field> IN mt_conditional_fields WHERE ( output_active = abap_true AND tabname = <ls_post_join>-join_table ) ( fieldname = <ls_field>-fieldname tabname = <ls_field>-tabname ) ). SORT lt_fields BY tabname fieldname keyflag DESCENDING. DELETE ADJACENT DUPLICATES FROM lt_fields COMPARING tabname fieldname. CHECK lt_fields IS NOT INITIAL. <ls_post_join>-data_cache = zcl_dbbr_ddic_util=>build_dynamic_sorted_table( it_fields = lt_fields if_unique_key = <ls_post_join>-is_conversion_needed ). <ls_post_join>-cache_fields = lt_fields. ENDLOOP. ENDMETHOD. METHOD fill_cache_for_all_select. DATA: lt_select TYPE TABLE OF string * lt_where TYPE TABLE OF string . FIELD-SYMBOLS: <lt_cache> TYPE ANY TABLE. lt_select = VALUE #( FOR <ls_field> IN cs_post_join-cache_fields ( |{ <ls_field>-fieldname }| ) ). DATA(lt_where) = build_for_all_where_clause( cs_post_join ). ASSIGN cs_post_join-data_cache->* TO <lt_cache>. TRY. SELECT DISTINCT (lt_select) INTO CORRESPONDING FIELDS OF TABLE <lt_cache> FROM (cs_post_join-join_table) FOR ALL ENTRIES IN it_table WHERE (lt_where). CATCH cx_root INTO DATA(lx_root). RAISE EXCEPTION TYPE zcx_dbbr_selection_common EXPORTING previous = lx_root. ENDTRY. ENDMETHOD. METHOD fill_cache_single_select. DATA: lt_select TYPE TABLE OF string, lt_conditions TYPE zcl_sat_join_helper=>tt_join_conditions, lt_sort_key TYPE abap_sortorder_tab, lr_cache_copy TYPE REF TO data. FIELD-SYMBOLS: <lt_cache> TYPE ANY TABLE, <lt_cache_copy> TYPE ANY TABLE. LOOP AT cs_post_join-cache_fields ASSIGNING FIELD-SYMBOL(<ls_cache_field>). lt_select = VALUE #( BASE lt_select ( |{ <ls_cache_field>-fieldname }| ) ). ENDLOOP. *.. pre-build the conditions for the filters as they do not change DATA(lt_filter_cond) = parse_virtjtab_filter_cond( it_filter_cond = cs_post_join-filter_cond ). ASSIGN cs_post_join-data_cache->* TO <lt_cache>. DATA(lr_cache_table_temp) = zcl_dbbr_ddic_util=>build_dynamic_std_table( EXPORTING it_fields = cs_post_join-cache_fields ). ASSIGN lr_cache_table_temp->* TO <lt_cache_copy>. LOOP AT it_table ASSIGNING FIELD-SYMBOL(<ls_data>). *.... create where clause for the current line and the already created *.... filter conditions DATA(lt_where) = zcl_sat_join_helper=>build_where_for_conditions( VALUE #( ( LINES OF parst_virtjtab_field_cond( is_line = <ls_data> it_field_cond = cs_post_join-field_cond ) ) ( LINES OF lt_filter_cond ) ) ). TRY. SELECT (lt_select) APPENDING CORRESPONDING FIELDS OF TABLE <lt_cache_copy> FROM (cs_post_join-join_table) WHERE (lt_where). CATCH cx_root INTO DATA(lx_root). RAISE EXCEPTION TYPE zcx_dbbr_selection_common EXPORTING previous = lx_root. ENDTRY. ENDLOOP. LOOP AT <lt_cache_copy> ASSIGNING FIELD-SYMBOL(<ls_cache_non_unique>). INSERT <ls_cache_non_unique> INTO TABLE <lt_cache>. ENDLOOP. CLEAR <lt_cache_copy>. ENDMETHOD. METHOD fill_cache_table. IF cs_post_join-is_conversion_needed = abap_true. fill_cache_single_select( EXPORTING it_table = it_table CHANGING cs_post_join = cs_post_join ). ELSE. fill_cache_for_all_select( EXPORTING it_table = it_table CHANGING cs_post_join = cs_post_join ). ENDIF. ENDMETHOD. METHOD fill_cache_tables. LOOP AT mt_post_join_data ASSIGNING FIELD-SYMBOL(<ls_post_join>). fill_cache_table( EXPORTING it_table = it_table CHANGING cs_post_join = <ls_post_join> ). ENDLOOP. ENDMETHOD. METHOD fill_output_fields. DATA: lr_t_temp TYPE REF TO data. FIELD-SYMBOLS: <lt_existing> TYPE STANDARD TABLE, <lt_new_lines> TYPE STANDARD TABLE. ASSIGN cr_t_new_lines->* TO <lt_existing>. CREATE DATA lr_t_temp LIKE <lt_existing>. ASSIGN lr_t_temp->* TO <lt_new_lines>. *.. build where clause for current line and current virtual join table DATA(lt_where) = build_where_for_cache_query( is_virtual_join = is_virtual_join is_line = cs_line ). IF <lt_existing> IS INITIAL. <lt_existing> = VALUE #( ( cs_line ) ). ENDIF. *.. where condition was built, now select the corresponding value from the cache LOOP AT it_cache ASSIGNING FIELD-SYMBOL(<ls_cache_line>) WHERE (lt_where). *.... fill output columns with found cache values LOOP AT <lt_existing> ASSIGNING FIELD-SYMBOL(<ls_new_line>). LOOP AT mt_conditional_fields ASSIGNING FIELD-SYMBOL(<ls_cond_field>) WHERE tabname = is_virtual_join-join_table. ASSIGN COMPONENT <ls_cond_field>-alv_fieldname OF STRUCTURE <ls_new_line> TO FIELD-SYMBOL(<lv_output_field_value>). ASSIGN COMPONENT <ls_cond_field>-fieldname OF STRUCTURE <ls_cache_line> TO FIELD-SYMBOL(<lv_cache_value>). IF <lv_output_field_value> IS ASSIGNED AND <lv_cache_value> IS ASSIGNED. <lv_output_field_value> = <lv_cache_value>. ENDIF. UNASSIGN: <lv_output_field_value>, <lv_cache_value>. ENDLOOP. <lt_new_lines> = VALUE #( BASE <lt_new_lines> ( <ls_new_line> ) ). ENDLOOP. ENDLOOP. IF sy-subrc <> 0 AND is_virtual_join-join_type = zif_sat_c_join_types=>inner_join. CLEAR: <lt_existing>. ELSEIF <lt_new_lines> IS NOT INITIAL. <lt_existing> = <lt_new_lines>. ENDIF. ENDMETHOD. METHOD get_value_for_where. DATA: lr_v_converted TYPE REF TO data. *.. try type conversion if needed IF is_field_cond-is_conversion_needed = abap_true. CREATE DATA lr_v_converted TYPE HANDLE is_field_cond-field_type_ref. ASSIGN lr_v_converted->* TO FIELD-SYMBOL(<lv_converted>). *.... Convert to field value <lv_converted> = iv_value. *.... Condense the value if the type is c IF is_field_cond-field_inttype = cl_abap_typedescr=>typekind_char OR is_field_cond-field_inttype = cl_abap_typedescr=>typekind_clike OR is_field_cond-field_inttype = cl_abap_typedescr=>typekind_string. CONDENSE <lv_converted>. ENDIF. result = <lv_converted>. ELSE. result = iv_value. ENDIF. ENDMETHOD. METHOD parse_virtjtab_filter_cond. DATA: lv_value2 TYPE string, lf_parenthesis_opened TYPE abap_bool, lv_parenthesis_open TYPE string, lv_parenthesis_closed TYPE string, ls_new_condition TYPE zcl_sat_join_helper=>ty_join_condition, lv_previous_join_cond TYPE string. FIELD-SYMBOLS: <ls_last_condition> TYPE zcl_sat_join_helper=>ty_join_condition. *.. parse the filter conditions LOOP AT it_filter_cond INTO DATA(ls_filter_cond) WHERE is_for_add_table = abap_true. DATA(lv_index) = sy-tabix. CLEAR: lv_value2. *.... check for need of possible open parenthesis IF ls_filter_cond-and_or = 'OR'. IF lf_parenthesis_opened = abap_false. lv_parenthesis_open = |( |. lf_parenthesis_opened = abap_true. ENDIF. ELSE. IF lf_parenthesis_opened = abap_true. lv_parenthesis_closed = | )|. lf_parenthesis_opened = abap_false. ENDIF. ENDIF. *.... handle LIKE and NOT LIKE operator IF ls_filter_cond-operator = zif_sat_c_operator=>like OR ls_filter_cond-operator = zif_sat_c_operator=>not_like. ls_filter_cond-value = replace( val = ls_filter_cond-value sub = '*' with = '%' occ = 0 ). IF ls_filter_cond-value2 IS NOT INITIAL. ls_filter_cond-value2 = replace( val = ls_filter_cond-value2 sub = '*' with = '%' occ = 0 ). ENDIF. ENDIF. DATA(lv_value1) = COND #( WHEN ls_filter_cond-value_type = zif_sat_c_join_cond_val_type=>system_value_input THEN |@{ ls_filter_cond-value }| ELSE cl_abap_dyn_prg=>quote( ls_filter_cond-value ) ). IF ls_filter_cond-operator = 'BETWEEN'. lv_value2 = COND #( WHEN ls_filter_cond-value_type = zif_sat_c_join_cond_val_type=>system_value_input THEN |@{ ls_filter_cond-value2 }| ELSE cl_abap_dyn_prg=>quote( ls_filter_cond-value2 ) ). lv_value2 = | AND { lv_value2 }|. ENDIF. rt_conditions = VALUE #( BASE rt_conditions ( open_bracket = lv_parenthesis_open join_operator = COND #( WHEN lv_index = 1 THEN mv_and_string ELSE lv_previous_join_cond ) value = |{ ls_filter_cond-fieldname }| && | { ls_filter_cond-operator } | && |{ lv_value1 }{ lv_value2 }| closing_bracket = lv_parenthesis_closed ) ). lv_previous_join_cond = COND #( WHEN ls_filter_cond-and_or = zif_sat_c_selection_condition=>or THEN mv_or_string ELSE mv_and_string ). CLEAR: lv_parenthesis_closed, lv_parenthesis_open. IF lf_parenthesis_opened = abap_true. lv_parenthesis_open = | |. ENDIF. ENDLOOP. ENDMETHOD. METHOD parst_virtjtab_field_cond. *.. parse field conditions LOOP AT it_field_cond ASSIGNING FIELD-SYMBOL(<ls_field_cond>). DATA(lv_index) = sy-tabix. ASSIGN COMPONENT <ls_field_cond>-ref_field_alv OF STRUCTURE is_line TO FIELD-SYMBOL(<lv_ref_value>). CHECK sy-subrc = 0. DATA(lv_value) = cl_abap_dyn_prg=>quote( get_value_for_where( iv_value = <lv_ref_value> is_field_cond = <ls_field_cond> ) ). rt_conditions = VALUE #( BASE rt_conditions ( join_operator = COND #( WHEN lv_index = 1 THEN | | ELSE mv_and_string ) value = |{ <ls_field_cond>-field } { <ls_field_cond>-operator } | && |{ lv_value }| ) ). ENDLOOP. ENDMETHOD. METHOD post_join_exists. result = xsdbool( mt_post_join_data IS NOT INITIAL ). ENDMETHOD. METHOD process_line. DATA: lr_t_temp TYPE REF TO data. FIELD-SYMBOLS: <lt_cache> TYPE ANY TABLE, <lt_temp> TYPE STANDARD TABLE, <lt_new_lines> TYPE STANDARD TABLE. ASSIGN cr_t_new_lines->* TO <lt_new_lines>. CREATE DATA lr_t_temp LIKE <lt_new_lines>. ASSIGN lr_t_temp->* TO <lt_temp>. LOOP AT mt_post_join_data ASSIGNING FIELD-SYMBOL(<ls_post_join>). ASSIGN <ls_post_join>-data_cache->* TO <lt_cache>. fill_output_fields( EXPORTING is_virtual_join = <ls_post_join> it_cache = <lt_cache> CHANGING cs_line = cs_line cr_t_new_lines = lr_t_temp ). " if no new lines were created, all following joins can be " ignored IF <lt_temp> IS INITIAL. RETURN. ENDIF. ENDLOOP. <lt_new_lines> = VALUE #( BASE <lt_new_lines> ( LINES OF <lt_temp> ) ). ENDMETHOD. METHOD process_table. DATA: lr_t_temp TYPE REF TO data. FIELD-SYMBOLS: <lt_data> TYPE STANDARD TABLE, <lt_temp> TYPE STANDARD TABLE. zcl_dbbr_screen_helper=>show_progress( iv_progress = 50 iv_text = 'Virtual Joins are processed...' ). ASSIGN ir_table->* TO <lt_data>. CREATE DATA lr_t_temp LIKE <lt_data>. LOOP AT <lt_data> ASSIGNING FIELD-SYMBOL(<ls_data>). process_line( CHANGING cs_line = <ls_data> cr_t_new_lines = lr_t_temp ). DELETE <lt_data>. ENDLOOP. ASSIGN lr_t_temp->* TO <lt_temp>. <lt_data> = <lt_temp>. IF <lt_data> IS INITIAL. " did virtual join result in empty result? MESSAGE i047(zdbbr_info) WITH mv_primary_table. RETURN. ENDIF. ENDMETHOD. ENDCLASS.
[ 40484, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 47429, 329, 7166, 15449, 3556, 79, 29, 198, 31631, 1976, 565, 62, 9945, 1671, 62, 32844, 62, 22179, 62, 2978, 525, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 16719, 274, 649, 4554, 286, 7166, 4654, 31904, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 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, 271, 62, 22179, 62, 4299, 220, 220, 41876, 1976, 9945, 1671, 62, 22179, 62, 4299, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 343, 62, 25747, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 8658, 3245, 62, 4868, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 343, 62, 25747, 62, 439, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 8658, 3245, 62, 4868, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 32844, 62, 22179, 62, 2978, 525, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 37, 2171, 262, 12940, 8893, 351, 3815, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 337, 36252, 50, 6070, 62, 23870, 62, 83, 2977, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 11487, 41876, 49053, 9795, 43679, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 9945, 1671, 62, 49283, 62, 11321, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 7376, 4657, 611, 1281, 16363, 15251, 7160, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 337, 36252, 50, 1281, 62, 22179, 62, 1069, 1023, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 20274, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 18709, 262, 262, 7166, 15449, 329, 1123, 1627, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 337, 36252, 50, 1429, 62, 11487, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 343, 62, 11487, 41876, 4526, 37, 5390, 1366, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 45079, 62, 7353, 62, 22179, 62, 7890, 41876, 1976, 9945, 1671, 62, 7353, 62, 22179, 62, 7890, 62, 270, 397, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 25747, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 8658, 3245, 62, 4868, 764, 198, 220, 220, 220, 42865, 285, 81, 62, 25747, 62, 439, 41876, 4526, 37, 5390, 1976, 565, 62, 9945, 1671, 62, 8658, 3245, 62, 4868, 764, 198, 220, 220, 220, 42865, 45079, 62, 17561, 1859, 62, 25747, 41876, 1976, 9945, 1671, 62, 8658, 3245, 62, 10951, 62, 9019, 62, 270, 397, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 39754, 62, 11487, 41876, 1976, 9945, 1671, 62, 22179, 62, 7890, 62, 9019, 12, 39754, 62, 11487, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 392, 62, 8841, 41876, 4731, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 273, 62, 8841, 41876, 4731, 764, 628, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15580, 82, 810, 13444, 329, 477, 12784, 12940, 2922, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 337, 36252, 50, 1382, 62, 1640, 62, 439, 62, 3003, 62, 565, 682, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7353, 62, 22179, 220, 220, 41876, 1976, 9945, 1671, 62, 7353, 62, 22179, 62, 7890, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 3003, 8, 41876, 4731, 62, 11487, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15580, 82, 810, 13444, 329, 12940, 2922, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 337, 36252, 50, 1382, 62, 3003, 62, 565, 682, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7353, 62, 22179, 220, 220, 41876, 1976, 9945, 1671, 62, 7353, 62, 22179, 62, 7890, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 3003, 8, 41876, 4731, 62, 11487, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239, 47192, 1, 42392, 2625, 268, 5320, 15580, 82, 810, 4006, 503, 286, 4654, 290, 1459, 5072, 1627, 3556, 79, 29, 198, 220, 220, 220, 366, 0, 198, 220, 220, 220, 337, 36252, 50, 1382, 62, 3003, 62, 1640, 62, 23870, 62, 22766, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 32844, 62, 22179, 41876, 1976, 9945, 1671, 62, 7353, 62, 22179, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 1370, 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, 17034, 62, 3003, 8, 220, 41876, 4731, 62, 11487, 764, 198, 220, 220, 220, 366, 0, 1279, 79, 1398, 2625, 19509, 5239 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*---------------------------------------------------------------------* * program for: TABLEPROC_ZABAK_MAINT * generation date: 05.04.2019 at 13:53:14 * view maintenance generator version: #001407# *---------------------------------------------------------------------* FUNCTION TABLEPROC_ZABAK_MAINT . PERFORM TABLEPROC. ENDFUNCTION.
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1430, 329, 25, 220, 220, 43679, 4805, 4503, 62, 34892, 4339, 42, 62, 5673, 12394, 198, 9, 220, 220, 5270, 3128, 25, 8870, 13, 3023, 13, 23344, 379, 1511, 25, 4310, 25, 1415, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 42296, 4177, 2849, 43679, 4805, 4503, 62, 34892, 4339, 42, 62, 5673, 12394, 220, 220, 220, 220, 220, 220, 220, 220, 764, 628, 220, 19878, 21389, 43679, 4805, 4503, 13, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
INTERFACE zif_abapgit_gui_asset_manager PUBLIC . TYPES: BEGIN OF ty_web_asset, url TYPE w3url, type TYPE char50, subtype TYPE char50, content TYPE xstring, is_cacheable TYPE abap_bool, END OF ty_web_asset . TYPES: tt_web_assets TYPE STANDARD TABLE OF ty_web_asset WITH DEFAULT KEY . METHODS get_all_assets RETURNING VALUE(rt_assets) TYPE tt_web_assets RAISING zcx_abapgit_exception. METHODS get_asset IMPORTING iv_url TYPE string RETURNING VALUE(rs_asset) TYPE ty_web_asset RAISING zcx_abapgit_exception. METHODS get_text_asset IMPORTING iv_url TYPE string RETURNING VALUE(rv_asset) TYPE string RAISING zcx_abapgit_exception. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 562, 316, 62, 37153, 198, 220, 44731, 764, 628, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 12384, 62, 562, 316, 11, 198, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 266, 18, 6371, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1149, 1120, 11, 198, 220, 220, 220, 220, 220, 850, 4906, 220, 220, 220, 220, 220, 41876, 1149, 1120, 11, 198, 220, 220, 220, 220, 220, 2695, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 318, 62, 23870, 540, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 12384, 62, 562, 316, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 256, 83, 62, 12384, 62, 19668, 41876, 49053, 9795, 43679, 3963, 1259, 62, 12384, 62, 562, 316, 13315, 5550, 38865, 35374, 764, 628, 220, 337, 36252, 50, 651, 62, 439, 62, 19668, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 19668, 8, 41876, 256, 83, 62, 12384, 62, 19668, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 337, 36252, 50, 651, 62, 562, 316, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 562, 316, 8, 41876, 1259, 62, 12384, 62, 562, 316, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 337, 36252, 50, 651, 62, 5239, 62, 562, 316, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 562, 316, 8, 41876, 4731, 198, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Test DEFINITION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. * ================ DATA: mo_check TYPE REF TO zcl_aoc_check_69. METHODS: setup, export_import FOR TESTING. ENDCLASS. "lcl_Test *----------------------------------------------------------------------* * CLASS lcl_Test IMPLEMENTATION *----------------------------------------------------------------------* * *----------------------------------------------------------------------* CLASS ltcl_test IMPLEMENTATION. * ============================== METHOD setup. CREATE OBJECT mo_check. zcl_aoc_unit_test=>set_check( mo_check ). ENDMETHOD. "setup METHOD export_import. zcl_aoc_unit_test=>export_import( mo_check ). ENDMETHOD. ENDCLASS.
[ 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 14402, 5550, 20032, 17941, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 360, 4261, 6234, 6006, 9863, 45698, 42, 49277, 43638, 5805, 7597, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 9, 796, 25609, 18604, 628, 220, 220, 220, 42865, 25, 6941, 62, 9122, 41876, 4526, 37, 5390, 1976, 565, 62, 64, 420, 62, 9122, 62, 3388, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 9058, 11, 198, 220, 220, 220, 220, 220, 10784, 62, 11748, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 220, 220, 220, 220, 220, 220, 366, 75, 565, 62, 14402, 198, 198, 9, 10097, 23031, 9, 198, 9, 220, 220, 220, 220, 220, 220, 42715, 300, 565, 62, 14402, 30023, 2538, 10979, 6234, 198, 9, 10097, 23031, 9, 198, 9, 198, 9, 10097, 23031, 9, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 198, 9, 36658, 25609, 28, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 9122, 13, 198, 220, 220, 220, 1976, 565, 62, 64, 420, 62, 20850, 62, 9288, 14804, 2617, 62, 9122, 7, 6941, 62, 9122, 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, 40406, 628, 220, 337, 36252, 10784, 62, 11748, 13, 198, 220, 220, 220, 1976, 565, 62, 64, 420, 62, 20850, 62, 9288, 14804, 39344, 62, 11748, 7, 6941, 62, 9122, 6739, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_YDK12_INPUT . *"-------------------------------------------------------------------- *"*"Локальный интерфейс: *" IMPORTING *" REFERENCE(INPUT) *" EXPORTING *" REFERENCE(OUTPUT) *"-------------------------------------------------------------------- * see FM YDK_CONVERSION_EXIT_REGISTER PERFORM input USING '12' input CHANGING output. ENDFUNCTION.
[ 42296, 4177, 2849, 7102, 43717, 62, 6369, 2043, 62, 35755, 42, 1065, 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, 1065, 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 zcl_abapgit_exit DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS: get_instance RETURNING VALUE(ri_exit) TYPE REF TO zif_abapgit_exit. INTERFACES: zif_abapgit_exit. PROTECTED SECTION. PRIVATE SECTION. CLASS-DATA gi_exit TYPE REF TO zif_abapgit_exit . ENDCLASS. CLASS ZCL_ABAPGIT_EXIT IMPLEMENTATION. METHOD get_instance. IF gi_exit IS INITIAL. TRY. CREATE OBJECT gi_exit TYPE ('ZCL_ABAPGIT_USER_EXIT'). CATCH cx_sy_create_object_error ##NO_HANDLER. ENDTRY. ENDIF. CREATE OBJECT ri_exit TYPE zcl_abapgit_exit. ENDMETHOD. METHOD zif_abapgit_exit~adjust_display_commit_url. TRY. gi_exit->adjust_display_commit_url( EXPORTING iv_repo_url = iv_repo_url iv_repo_name = iv_repo_name iv_repo_key = iv_repo_key iv_commit_hash = iv_commit_hash CHANGING cv_display_url = cv_display_url ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~allow_sap_objects. TRY. rv_allowed = gi_exit->allow_sap_objects( ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_local_host. TRY. gi_exit->change_local_host( CHANGING ct_hosts = ct_hosts ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_proxy_authentication. TRY. gi_exit->change_proxy_authentication( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_authentication = cv_proxy_authentication ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_proxy_port. TRY. gi_exit->change_proxy_port( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_port = cv_proxy_port ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_proxy_url. TRY. gi_exit->change_proxy_url( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_url = cv_proxy_url ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~change_tadir. TRY. gi_exit->change_tadir( EXPORTING iv_package = iv_package ii_log = ii_log CHANGING ct_tadir = ct_tadir ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~create_http_client. TRY. ri_client = gi_exit->create_http_client( iv_url ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~custom_serialize_abap_clif. TRY. rt_source = gi_exit->custom_serialize_abap_clif( is_class_key ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~deserialize_postprocess. TRY. gi_exit->deserialize_postprocess( is_step = is_step ii_log = ii_log ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~get_ci_tests. TRY. gi_exit->get_ci_tests( EXPORTING iv_object = iv_object CHANGING ct_ci_repos = ct_ci_repos ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~get_ssl_id. TRY. rv_ssl_id = gi_exit->get_ssl_id( ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. IF rv_ssl_id IS INITIAL. rv_ssl_id = 'ANONYM'. ENDIF. ENDMETHOD. METHOD zif_abapgit_exit~http_client. TRY. gi_exit->http_client( iv_url = iv_url ii_client = ii_client ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. METHOD zif_abapgit_exit~pre_calculate_repo_status. TRY. gi_exit->pre_calculate_repo_status( EXPORTING is_repo_meta = is_repo_meta CHANGING ct_local = ct_local ct_remote = ct_remote ). CATCH cx_sy_ref_is_initial cx_sy_dyn_call_illegal_method ##NO_HANDLER. ENDTRY. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 37023, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 651, 62, 39098, 30826, 4261, 15871, 26173, 8924, 7, 380, 62, 37023, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 308, 72, 62, 37023, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 37023, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 6369, 2043, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 39098, 13, 628, 220, 220, 220, 16876, 308, 72, 62, 37023, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 308, 72, 62, 37023, 41876, 19203, 57, 5097, 62, 6242, 2969, 38, 2043, 62, 29904, 62, 6369, 2043, 27691, 198, 220, 220, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 17953, 62, 15252, 62, 18224, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 220, 220, 23578, 40405, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 374, 72, 62, 37023, 41876, 1976, 565, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 23032, 62, 13812, 62, 41509, 62, 6371, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 23032, 62, 13812, 62, 41509, 62, 6371, 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, 260, 7501, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 260, 7501, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 260, 7501, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 41509, 62, 17831, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 41509, 62, 17831, 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, 85, 62, 13812, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 796, 269, 85, 62, 13812, 62, 6371, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 12154, 62, 82, 499, 62, 48205, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 374, 85, 62, 40845, 796, 308, 72, 62, 37023, 3784, 12154, 62, 82, 499, 62, 48205, 7, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 12001, 62, 4774, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 12001, 62, 4774, 7, 5870, 15567, 2751, 269, 83, 62, 4774, 82, 796, 269, 83, 62, 4774, 82, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 36436, 62, 41299, 3299, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 36436, 62, 41299, 3299, 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, 260, 7501, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 260, 7501, 62, 6371, 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, 85, 62, 36436, 62, 41299, 3299, 796, 269, 85, 62, 36436, 62, 41299, 3299, 6739, 198, 220, 220, 220, 220, 220, 327, 11417, 43213, 62, 1837, 62, 5420, 62, 271, 62, 36733, 43213, 62, 1837, 62, 67, 2047, 62, 13345, 62, 47749, 62, 24396, 22492, 15285, 62, 39, 6981, 39878, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 37023, 93, 3803, 62, 36436, 62, 634, 13, 628, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 308, 72, 62, 37023, 3784, 3803, 62, 36436, 62, 634, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
class ZCL_ABAK_FORMAT_JSON definition public final create public . public section. interfaces ZIF_ABAK_FORMAT . protected section. private section. ENDCLASS. CLASS ZCL_ABAK_FORMAT_JSON IMPLEMENTATION. METHOD zif_abak_format~convert. DATA: o_exp TYPE REF TO cx_st_error, t_xml_k TYPE zabak_xml_k_t, o_k_table TYPE REF TO zcl_abak_k_table. TRY. CALL TRANSFORMATION zabak_format_json SOURCE XML i_data RESULT constants = t_xml_k. CREATE OBJECT o_k_table. o_k_table->add_xml_k_t( t_xml_k ). rt_k = o_k_table->get_k_t( ). CATCH cx_st_error INTO o_exp. RAISE EXCEPTION TYPE zcx_abak EXPORTING previous = o_exp. ENDTRY. ENDMETHOD. METHOD ZIF_ABAK_FORMAT~GET_TYPE. r_format_type = zif_abak_consts=>format_type-json. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 32, 4339, 42, 62, 21389, 1404, 62, 40386, 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, 24326, 2665, 13, 198, 19734, 2665, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4339, 42, 62, 21389, 1404, 62, 40386, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 1976, 361, 62, 397, 461, 62, 18982, 93, 1102, 1851, 13, 198, 220, 42865, 25, 267, 62, 11201, 220, 220, 220, 220, 41876, 4526, 37, 5390, 43213, 62, 301, 62, 18224, 11, 198, 220, 220, 220, 220, 220, 220, 220, 256, 62, 19875, 62, 74, 220, 220, 41876, 1976, 397, 461, 62, 19875, 62, 74, 62, 83, 11, 198, 220, 220, 220, 220, 220, 220, 220, 267, 62, 74, 62, 11487, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 461, 62, 74, 62, 11487, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 42815, 44069, 35036, 1976, 397, 461, 62, 18982, 62, 17752, 198, 220, 220, 220, 220, 220, 220, 311, 31033, 23735, 1312, 62, 7890, 198, 220, 220, 220, 220, 220, 220, 15731, 16724, 38491, 796, 256, 62, 19875, 62, 74, 13, 628, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 267, 62, 74, 62, 11487, 13, 198, 220, 220, 220, 220, 220, 267, 62, 74, 62, 11487, 3784, 2860, 62, 19875, 62, 74, 62, 83, 7, 256, 62, 19875, 62, 74, 6739, 198, 220, 220, 220, 220, 220, 374, 83, 62, 74, 796, 267, 62, 74, 62, 11487, 3784, 1136, 62, 74, 62, 83, 7, 6739, 628, 220, 220, 220, 327, 11417, 43213, 62, 301, 62, 18224, 39319, 267, 62, 11201, 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, 2180, 796, 267, 62, 11201, 13, 198, 220, 23578, 40405, 13, 198, 198, 10619, 49273, 13, 628, 198, 49273, 1168, 5064, 62, 32, 4339, 42, 62, 21389, 1404, 93, 18851, 62, 25216, 13, 198, 220, 374, 62, 18982, 62, 4906, 796, 1976, 361, 62, 397, 461, 62, 1102, 6448, 14804, 18982, 62, 4906, 12,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
interface zif_aps_task_storage public. methods: storeTask importing i_task type ref to zif_aps_task raising zcx_aps_task_storage zcx_aps_task_serialization, loadSingleTask importing i_runId type zaps_run_id i_taskid type zaps_taskid i_keepOnDB type abap_bool default abap_false returning value(result) type ref to zif_aps_task raising zcx_aps_task_storage zcx_aps_task_serialization, loadAllTasks importing i_runId type zaps_run_id returning value(result) type zaps_task_chain raising zcx_aps_task_storage zcx_aps_task_serialization, loadTasksForRetry importing i_runId type zaps_run_id returning value(result) type zaps_task_chain raising zcx_aps_task_storage zcx_aps_task_serialization, loadTasksForResume importing i_runId type zaps_run_id returning value(result) type zaps_task_chain raising zcx_aps_task_storage zcx_aps_task_serialization, settaskstatuscreated importing i_runId type zaps_run_id i_taskid type zaps_taskid raising zcx_aps_task_status, settaskstatusstarted importing i_runId type zaps_run_id i_taskid type zaps_taskid raising zcx_aps_task_status, settaskstatusfinished importing i_runId type zaps_run_id i_taskid type zaps_taskid raising zcx_aps_task_status, settaskstatusaborted importing i_runId type zaps_run_id i_taskid type zaps_taskid raising zcx_aps_task_status. endinterface.
[ 39994, 1976, 361, 62, 1686, 62, 35943, 62, 35350, 198, 220, 1171, 13, 198, 220, 220, 220, 5050, 25, 198, 220, 220, 220, 220, 220, 3650, 25714, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 35943, 220, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 1976, 361, 62, 1686, 62, 35943, 198, 220, 220, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 35350, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 46911, 1634, 11, 628, 220, 220, 220, 220, 220, 3440, 28008, 25714, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5143, 7390, 220, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 5143, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 35943, 312, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 35943, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 14894, 2202, 11012, 220, 220, 220, 2099, 450, 499, 62, 30388, 4277, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 20274, 8, 2099, 1006, 284, 1976, 361, 62, 1686, 62, 35943, 198, 220, 220, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 35350, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 46911, 1634, 11, 628, 220, 220, 220, 220, 220, 3440, 3237, 51, 6791, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5143, 7390, 220, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 5143, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 20274, 8, 2099, 1976, 1686, 62, 35943, 62, 7983, 198, 220, 220, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 35350, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 46911, 1634, 11, 628, 220, 220, 220, 220, 220, 3440, 51, 6791, 1890, 9781, 563, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5143, 7390, 220, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 5143, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 20274, 8, 2099, 1976, 1686, 62, 35943, 62, 7983, 198, 220, 220, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 35350, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 46911, 1634, 11, 628, 220, 220, 220, 220, 220, 3440, 51, 6791, 1890, 4965, 2454, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5143, 7390, 220, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 5143, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 20274, 8, 2099, 1976, 1686, 62, 35943, 62, 7983, 198, 220, 220, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 35350, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 46911, 1634, 11, 628, 220, 220, 220, 220, 220, 2970, 2093, 13376, 25598, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5143, 7390, 220, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 5143, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 35943, 312, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 35943, 312, 198, 220, 220, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 13376, 11, 628, 220, 220, 220, 220, 220, 2970, 2093, 13376, 46981, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5143, 7390, 220, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 5143, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 35943, 312, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 35943, 312, 198, 220, 220, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 13376, 11, 628, 220, 220, 220, 220, 220, 2970, 2093, 13376, 43952, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5143, 7390, 220, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 5143, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 35943, 312, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 35943, 312, 198, 220, 220, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 1686, 62, 35943, 62, 13376, 11, 628, 220, 220, 220, 220, 220, 2970, 2093, 13376, 397, 9741, 198, 220, 220, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 5143, 7390, 220, 220, 220, 220, 220, 220, 2099, 1976, 1686, 62, 5143, 62, 312, 198, 220, 220, 220, 220 ]
[ 1, 1, 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EX_WF_SUBSTITUTE~RESTRICT_PROFILES. endmethod.
[ 220, 2446, 16876, 62, 6369, 62, 48397, 62, 50, 10526, 2257, 2043, 37780, 93, 19535, 5446, 18379, 62, 4805, 19238, 4146, 1546, 13, 198, 220, 886, 24396, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION wwwparams_insert. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(PARAMS) LIKE WWWPARAMS STRUCTURE WWWPARAMS *" EXCEPTIONS *" ENTRY_EXISTS *"---------------------------------------------------------------------- ASSERT 1 = 'todo'. ENDFUNCTION.
[ 42296, 4177, 2849, 7324, 37266, 62, 28463, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 27082, 40834, 8, 34178, 220, 13505, 25527, 1503, 40834, 19269, 18415, 11335, 220, 13505, 25527, 1503, 40834, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 12964, 40405, 62, 6369, 1797, 4694, 198, 9, 1, 10097, 23031, 628, 220, 24994, 17395, 352, 796, 705, 83, 24313, 4458, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class zcl_cache_static definition public final create public . *"* public components of class ZCL_CACHE_STATIC *"* do not include other source files here!!! public section. type-pools abap . class-data enabled type abap_bool value abap_true. "#EC NOTEXT class-methods free importing !i_name type simple optional !i_id type simple optional preferred parameter i_name . class-methods set_object importing !i_name type simple optional !i_id type simple value(i_object) type ref to object . class-methods get_object importing !i_name type simple optional !i_id type simple returning value(e_object) type ref to object raising zcx_generic . class-methods set_data importing !i_name type simple optional !i_id type simple optional !i_data type data . class-methods get_data importing !i_name type string optional !i_id type data optional exporting value(e_data) type data raising zcx_generic . class-methods set_value importing !i_name type simple optional !i_id type simple !i_value type simple . class-methods get_value importing !i_name type simple optional !i_id type simple returning value(e_value) type string raising zcx_generic . protected section. *"* protected components of class ZCL_CACHE_STATIC *"* do not include other source files here!!! private section. *"* private components of class ZCL_CACHE_STATIC *"* do not include other source files here!!! types: begin of ts_cache, name type string, id type string, data type ref to data, object type ref to object, end of ts_cache . types: tt_cache type hashed table of ts_cache with unique key name id . class-data t_cache type tt_cache . ENDCLASS. CLASS ZCL_CACHE_STATIC IMPLEMENTATION. method free. if i_name is supplied. if i_id is initial. delete t_cache where name eq i_name. else. delete t_cache where name eq i_name and id eq i_id. endif. else. clear t_cache. endif. endmethod. method get_data. if enabled eq abap_false. zcx_generic=>raise( ). endif. field-symbols <ls_cache> like line of t_cache. read table t_cache assigning <ls_cache> with table key name = i_name id = i_id. if sy-subrc eq 0. field-symbols <data> type any. assign <ls_cache>-data->* to <data>. if <data> is assigned. e_data = <data>. else. assert 1 = 2. endif. else. zcx_generic=>raise( ). endif. endmethod. method get_object. if enabled eq abap_false. zcx_generic=>raise( ). endif. field-symbols <ls_cache> like line of t_cache. read table t_cache assigning <ls_cache> with table key name = i_name id = i_id. if sy-subrc eq 0. e_object = <ls_cache>-object. else. zcx_generic=>raise( ). endif. endmethod. method get_value. get_data( exporting i_name = i_name i_id = i_id importing e_data = e_value ). endmethod. method set_data. if enabled eq abap_false. return. endif. delete t_cache where name eq i_name and id eq i_id. field-symbols <i_data> type any. assign i_data to <i_data>. data ls_cache like line of t_cache. ls_cache-name = i_name. ls_cache-id = i_id. create data ls_cache-data like <i_data>. field-symbols <l_data> type any. assign ls_cache-data->* to <l_data>. <l_data> = <i_data>. insert ls_cache into table t_cache. endmethod. method set_object. if enabled eq abap_false. return. endif. delete t_cache where name eq i_name and id eq i_id. data ls_cache like line of t_cache. ls_cache-name = i_name. ls_cache-id = i_id. ls_cache-object = i_object. insert ls_cache into table t_cache. endmethod. method set_value. set_data( i_name = i_name i_id = i_id i_data = i_value ). endmethod. ENDCLASS.
[ 4871, 1976, 565, 62, 23870, 62, 12708, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 34, 2246, 13909, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 2099, 12, 7742, 82, 450, 499, 764, 628, 220, 220, 220, 1398, 12, 7890, 9343, 2099, 450, 499, 62, 30388, 1988, 450, 499, 62, 7942, 13, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 628, 220, 220, 220, 1398, 12, 24396, 82, 1479, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3672, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 312, 220, 220, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9871, 11507, 1312, 62, 3672, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 900, 62, 15252, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 2829, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 72, 62, 15252, 8, 2099, 1006, 284, 2134, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 651, 62, 15252, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 2829, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 68, 62, 15252, 8, 2099, 1006, 284, 2134, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 41357, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 900, 62, 7890, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3672, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 312, 220, 220, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 7890, 2099, 1366, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 651, 62, 7890, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3672, 220, 220, 220, 220, 220, 220, 2099, 4731, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1366, 11902, 198, 220, 220, 220, 220, 220, 39133, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 68, 62, 7890, 8, 2099, 1366, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 41357, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 900, 62, 8367, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3672, 220, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 312, 220, 220, 220, 2099, 2829, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 8367, 2099, 2829, 764, 198, 220, 220, 220, 1398, 12, 24396, 82, 651, 62, 8367, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 2099, 2829, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 2829, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 68, 62, 8367, 8, 2099, 4731, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 41357, 764, 198, 220, 6861, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 34, 2246, 13909, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 2839, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 5097, 62, 34, 2246, 13909, 62, 35744, 2149, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 628, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 40379, 62, 23870, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4686, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1366, 220, 220, 2099, 1006, 284, 1366, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 2099, 1006, 284, 2134, 11, 198, 220, 220, 220, 220, 220, 886, 286, 40379, 62, 23870, 764, 198, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 256, 83, 62, 23870, 2099, 468, 704, 3084, 286, 40379, 62, 23870, 198, 220, 220, 220, 220, 220, 220, 220, 351, 3748, 1994, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 4686, 764, 628, 220, 220, 220, 1398, 12, 7890, 256, 62, 23870, 2099, 256, 83, 62, 23870, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 34, 2246, 13909, 62, 35744, 2149, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 2446, 1479, 13, 628, 220, 220, 220, 611, 1312, 62, 3672, 318, 14275, 13, 628, 220, 220, 220, 220, 220, 611, 1312, 62, 312, 318, 4238, 13, 198, 220, 220, 220, 220, 220, 220, 220, 12233, 256, 62, 23870, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 810, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 37430, 1312, 62, 3672 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
REPORT zabak_usage. * See https://github.com/abapinho/abaK ******************************************************************************** * MIT License * * Copyright (c) 2018 Nuno Godinho * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. ******************************************************************************** DATA: go_usage TYPE REF TO zcl_abak_usage. INITIALIZATION. PERFORM append_version_to_title. START-OF-SELECTION. CREATE OBJECT go_usage. PERFORM list_subclasses. SKIP. PERFORM list_zabak. SKIP. PERFORM list_where_used. FORM append_version_to_title. sy-title = |{ sy-title } (v{ zif_abak_consts=>version })|. ENDFORM. FORM list_subclasses. DATA: t_class TYPE seo_class_names, class LIKE LINE OF t_class. WRITE / 'Content classes (implementing ZIF_ABAK_SOURCE):'. t_class = go_usage->get_subclasses( 'ZIF_ABAK_SOURCE' ). SORT t_class. LOOP AT t_class INTO class. WRITE: /4 class INTENSIFIED OFF. ENDLOOP. SKIP. WRITE / 'Format classes (implementing ZIF_ABAK_FORMAT):'. t_class = go_usage->get_subclasses( 'ZIF_ABAK_FORMAT' ). SORT t_class. LOOP AT t_class INTO class. WRITE: /4 class INTENSIFIED OFF. ENDLOOP. ENDFORM. FORM list_where_used. DATA: t_tadir TYPE tt_tadir, exp_abak TYPE REF TO zcx_abak. FIELD-SYMBOLS: <s_tadir> LIKE LINE OF t_tadir. WRITE : / 'abaK usage (objects using class ZCL_ABAK_FACTORY outside the abaK package):'. FORMAT INTENSIFIED OFF. TRY. t_tadir = go_usage->get_where_used( ). LOOP AT t_tadir ASSIGNING <s_tadir>. WRITE: /4 <s_tadir>-object, <s_tadir>-obj_name, <s_tadir>-devclass. ENDLOOP. IF sy-subrc <> 0. WRITE: /4 'No objects found'. ENDIF. CATCH zcx_abak INTO exp_abak. WRITE exp_abak->get_text( ). ENDTRY. FORMAT INTENSIFIED ON. ENDFORM. FORM list_zabak. DATA: t_zabak TYPE zcl_abak_usage=>ty_zabak_t. FIELD-SYMBOLS: <s_zabak> LIKE LINE OF t_zabak. WRITE : / 'ZABAK records:'. FORMAT INTENSIFIED OFF. t_zabak = go_usage->get_zabak( ). LOOP AT t_zabak ASSIGNING <s_zabak>. CLEAR <s_zabak>-mandt. WRITE / <s_zabak>. ENDLOOP. IF sy-subrc <> 0. WRITE / 'Empty'. ENDIF. FORMAT INTENSIFIED ON. ENDFORM.
[ 2200, 15490, 1976, 397, 461, 62, 26060, 13, 198, 198, 9, 4091, 3740, 1378, 12567, 13, 785, 14, 397, 499, 20327, 14, 15498, 42, 198, 198, 17174, 17174, 8412, 198, 9, 17168, 13789, 198, 9, 198, 9, 15069, 357, 66, 8, 2864, 399, 36909, 1793, 20327, 198, 9, 198, 9, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 198, 9, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, 12340, 284, 1730, 198, 9, 287, 262, 10442, 1231, 17504, 11, 1390, 1231, 17385, 262, 2489, 198, 9, 284, 779, 11, 4866, 11, 13096, 11, 20121, 11, 7715, 11, 14983, 11, 850, 43085, 11, 290, 14, 273, 3677, 198, 9, 9088, 286, 262, 10442, 11, 290, 284, 8749, 6506, 284, 4150, 262, 10442, 318, 198, 9, 30760, 284, 466, 523, 11, 2426, 284, 262, 1708, 3403, 25, 198, 9, 198, 9, 383, 2029, 6634, 4003, 290, 428, 7170, 4003, 2236, 307, 3017, 287, 477, 198, 9, 9088, 393, 8904, 16690, 286, 262, 10442, 13, 198, 9, 198, 9, 3336, 47466, 3180, 36592, 2389, 1961, 366, 1921, 3180, 1600, 42881, 34764, 56, 3963, 15529, 509, 12115, 11, 7788, 32761, 6375, 198, 9, 8959, 49094, 11, 47783, 2751, 21728, 5626, 40880, 5390, 3336, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 11, 198, 9, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 5357, 44521, 1268, 10913, 2751, 12529, 13, 3268, 8005, 49261, 50163, 3336, 198, 9, 37195, 20673, 6375, 27975, 38162, 9947, 367, 15173, 4877, 9348, 43031, 19146, 7473, 15529, 47666, 3955, 11, 29506, 25552, 6375, 25401, 198, 9, 43031, 25382, 11, 7655, 2767, 16879, 3268, 3537, 40282, 3963, 27342, 10659, 11, 309, 9863, 6375, 25401, 54, 24352, 11, 5923, 1797, 2751, 16034, 11, 198, 9, 16289, 3963, 6375, 3268, 7102, 45, 24565, 13315, 3336, 47466, 6375, 3336, 23210, 6375, 25401, 5550, 1847, 20754, 3268, 3336, 198, 9, 47466, 13, 198, 17174, 17174, 8412, 198, 198, 26947, 25, 467, 62, 26060, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 461, 62, 26060, 13, 198, 198, 1268, 2043, 12576, 14887, 6234, 13, 198, 220, 19878, 21389, 24443, 62, 9641, 62, 1462, 62, 7839, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 220, 29244, 6158, 25334, 23680, 467, 62, 26060, 13, 628, 220, 19878, 21389, 1351, 62, 7266, 37724, 13, 198, 220, 14277, 4061, 13, 198, 220, 19878, 21389, 1351, 62, 89, 397, 461, 13, 198, 220, 14277, 4061, 13, 198, 220, 19878, 21389, 1351, 62, 3003, 62, 1484, 13, 198, 198, 21389, 24443, 62, 9641, 62, 1462, 62, 7839, 13, 198, 220, 827, 12, 7839, 796, 930, 90, 827, 12, 7839, 1782, 357, 85, 90, 1976, 361, 62, 397, 461, 62, 1102, 6448, 14804, 9641, 1782, 14726, 13, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 1351, 62, 7266, 37724, 13, 198, 220, 42865, 25, 256, 62, 4871, 41876, 384, 78, 62, 4871, 62, 14933, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1398, 220, 220, 34178, 48920, 3963, 256, 62, 4871, 13, 628, 220, 44423, 1220, 705, 19746, 6097, 357, 320, 26908, 278, 1168, 5064, 62, 32, 4339, 42, 62, 47690, 2599, 4458, 198, 220, 256, 62, 4871, 796, 467, 62, 26060, 3784, 1136, 62, 7266, 37724, 7, 705, 57, 5064, 62, 32, 4339, 42, 62, 47690, 6, 6739, 198, 220, 311, 9863, 256, 62, 4871, 13, 198, 220, 17579, 3185, 5161, 256, 62, 4871, 39319, 1398, 13, 198, 220, 220, 220, 44423, 25, 1220, 19, 1398, 17828, 16938, 28343, 18562, 13, 198, 220, 23578, 21982, 3185, 13, 628, 220, 14277, 4061, 13, 628, 220, 44423, 1220, 705, 26227, 6097, 357, 320, 26908, 278, 1168, 5064, 62, 32, 4339, 42, 62, 21389, 1404, 2599, 4458, 198, 220, 256, 62, 4871, 796, 467, 62, 26060, 3784, 1136, 62, 7266, 37724, 7, 705, 57, 5064, 62, 32, 4339, 42, 62, 21389, 1404, 6, 6739, 198, 220, 311, 9863, 256, 62, 4871, 13, 198, 220, 17579, 3185, 5161, 256, 62, 4871, 39319, 1398, 13, 198, 220, 220, 220, 44423, 25, 1220, 19, 1398, 17828, 16938, 28343, 18562, 13, 198, 220, 23578, 21982, 3185, 13, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 1351, 62, 3003, 62, 1484, 13, 198, 220, 42865, 25, 256, 62, 83, 324, 343, 41876, 256, 83, 62, 83, 324, 343, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1033, 62, 397, 461, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 461, 13, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 82, 62, 83, 324, 343, 29, 34178, 48920, 3963, 256, 62, 83, 324, 343, 13, 628, 220, 44423, 1058, 1220, 705, 15498, 42, 8748, 357, 48205, 1262, 1398, 1168, 5097, 62, 32, 4339, 42, 62, 37, 10659, 15513, 2354, 262, 450, 64, 42, 5301, 2599, 4458, 198, 220, 7473, 41636, 17828, 16938, 28343, 18562, 13, 198, 220, 7579, 56, 13, 198, 220, 220, 220, 256, 62, 83, 324, 343, 796, 467, 62, 26060, 3784, 1136, 62, 3003, 62, 1484, 7, 6739, 198, 220, 220, 220, 17579, 3185, 5161, 256, 62, 83, 324, 343, 24994, 3528, 15871, 1279, 82, 62, 83, 324, 343, 28401, 198, 220, 220, 220, 220, 220, 44423, 25, 1220, 19, 1279, 82, 62, 83, 324, 343, 29, 12, 15252, 11, 1279, 82, 62, 83, 324, 343, 29, 12, 26801, 62, 3672, 11, 1279, 82, 62, 83, 324, 343, 29, 12, 7959, 4871, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 44423, 25, 1220, 19, 705, 2949, 5563, 1043, 4458, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 327, 11417, 1976, 66, 87, 62, 397, 461, 39319, 1033, 62, 397, 461, 13, 198, 220, 220, 220, 44423, 1033, 62, 397, 461, 3784, 1136, 62, 5239, 7, 6739, 198, 220, 23578, 40405, 13, 198, 220, 7473, 41636, 17828, 16938, 28343, 6177, 13, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 1351, 62, 89, 397, 461, 13, 198, 220, 42865, 25, 256, 62, 89, 397, 461, 41876, 1976, 565, 62, 397, 461, 62, 26060, 14804, 774, 62, 89, 397, 461 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_shlp 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. ENDCLASS. CLASS zcl_abapgit_object_shlp IMPLEMENTATION. METHOD zif_abapgit_object~changed_by. SELECT SINGLE as4user FROM dd30l INTO rv_user WHERE shlpname = ms_item-obj_name AND as4local = 'A'. "#EC CI_GENBUFF IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. IF zif_abapgit_object~exists( ) = abap_false. RETURN. ENDIF. delete_ddic( 'H' ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_name TYPE ddobjname, ls_dd30v TYPE dd30v, lt_dd31v TYPE TABLE OF dd31v, lt_dd32p TYPE TABLE OF dd32p, lt_dd33v TYPE TABLE OF dd33v. io_xml->read( EXPORTING iv_name = 'DD30V' CHANGING cg_data = ls_dd30v ). IF iv_step = zif_abapgit_object=>gc_step_id-ddic AND NOT ls_dd30v-selmexit IS INITIAL. ls_dd30v-selmexit = 'RS_DD_SELMEXIT'. ELSEIF iv_step = zif_abapgit_object=>gc_step_id-late AND ls_dd30v-selmexit IS INITIAL. RETURN. " already active ENDIF. io_xml->read( EXPORTING iv_name = 'DD31V_TABLE' CHANGING cg_data = lt_dd31v ). io_xml->read( EXPORTING iv_name = 'DD32P_TABLE' CHANGING cg_data = lt_dd32p ). io_xml->read( EXPORTING iv_name = 'DD33V_TABLE' CHANGING cg_data = lt_dd33v ). corr_insert( iv_package = iv_package ig_object_class = 'DICT' ). lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_SHLP_PUT' EXPORTING name = lv_name dd30v_wa = ls_dd30v TABLES dd31v_tab = lt_dd31v dd32p_tab = lt_dd32p dd33v_tab = lt_dd33v EXCEPTIONS shlp_not_found = 1 name_inconsistent = 2 shlp_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_objects_activation=>add_item( ms_item ). ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_shlpname TYPE dd30l-shlpname. SELECT SINGLE shlpname FROM dd30l INTO lv_shlpname WHERE shlpname = ms_item-obj_name. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. RETURN. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_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-ddic = 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. jump_se11( ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, ls_dd30v TYPE dd30v, lt_dd31v TYPE TABLE OF dd31v, lt_dd32p TYPE TABLE OF dd32p, lt_dd33v TYPE TABLE OF dd33v. FIELD-SYMBOLS: <ls_dd32p> LIKE LINE OF lt_dd32p. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_SHLP_GET' EXPORTING name = lv_name state = 'A' langu = mv_language IMPORTING dd30v_wa = ls_dd30v TABLES dd31v_tab = lt_dd31v dd32p_tab = lt_dd32p dd33v_tab = lt_dd33v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. IF ls_dd30v IS INITIAL. zcx_abapgit_exception=>raise( |No active version found for { ms_item-obj_type } { ms_item-obj_name }| ). ENDIF. CLEAR: ls_dd30v-as4user, ls_dd30v-as4date, ls_dd30v-as4time. LOOP AT lt_dd32p ASSIGNING <ls_dd32p>. * clear information inherited from domain CLEAR: <ls_dd32p>-domname, <ls_dd32p>-headlen, <ls_dd32p>-scrlen1, <ls_dd32p>-scrlen2, <ls_dd32p>-datatype, <ls_dd32p>-leng, <ls_dd32p>-outputlen, <ls_dd32p>-decimals, <ls_dd32p>-lowercase, <ls_dd32p>-signflag, <ls_dd32p>-convexit. ENDLOOP. io_xml->add( iv_name = 'DD30V' ig_data = ls_dd30v ). io_xml->add( ig_data = lt_dd31v iv_name = 'DD31V_TABLE' ). io_xml->add( ig_data = lt_dd32p iv_name = 'DD32P_TABLE' ). io_xml->add( ig_data = lt_dd33v iv_name = 'DD33V_TABLE' ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1477, 34431, 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, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 1477, 34431, 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, 1270, 75, 39319, 374, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 33411, 427, 34431, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 355, 19, 12001, 796, 705, 32, 4458, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 35353, 19499, 5777, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 16876, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 1069, 1023, 7, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 12233, 62, 1860, 291, 7, 705, 39, 6, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 8906, 48499, 1096, 13, 628, 220, 220, 220, 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, 1270, 85, 41876, 49427, 1270, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 3132, 85, 41876, 43679, 3963, 49427, 3132, 85, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2624, 79, 41876, 43679, 3963, 49427, 2624, 79, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 1860, 2091, 85, 41876, 43679, 3963, 49427, 2091, 85, 13, 628, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 1270, 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, 1270, 85, 6739, 628, 220, 220, 220, 16876, 21628, 62, 9662, 796, 1976, 361, 62, 397, 499, 18300, 62, 15252, 14804, 36484, 62, 9662, 62, 312, 12, 1860, 291, 5357, 5626, 43979, 62, 1860, 1270, 85, 12, 741, 76, 37023, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 43979, 62, 1860, 1270, 85, 12, 741, 76, 37023, 796, 705, 6998, 62, 16458, 62, 50, 3698, 44, 6369, 2043, 4458, 198, 220, 220, 220, 17852, 5188, 5064, 21628, 62, 9662, 796, 1976, 361, 62, 397, 499, 18300, 62, 15252, 14804, 36484, 62, 9662, 62, 312, 12, 17660, 5357, 43979, 62, 1860, 1270, 85, 12, 741, 76, 37023, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 366, 1541, 4075, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 3132, 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, 3132, 85, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 2624, 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, 2624, 79, 6739, 198, 220, 220, 220, 33245, 62, 19875, 3784, 961, 7, 7788, 15490, 2751, 21628, 62, 3672, 796, 705, 16458, 2091, 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, 2091, 85, 6739, 628, 220, 220, 220, 1162, 81, 62, 28463, 7, 21628, 62, 26495, 796, 21628, 62, 26495, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 45329, 62, 15252, 62, 4871, 796, 705, 35, 18379, 6, 6739, 628, 220, 220, 220, 300, 85, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 16458, 5064, 62, 50, 6581, 47, 62, 30076, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 1270, 85, 62, 10247, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 43979, 62, 1860, 1270, 85, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 3132, 85, 62, 8658, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 1860, 3132, 85, 198, 220, 220, 220, 220, 220, 220, 220, 49427, 2624, 79, 62, 8658, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_definitions PUBLIC . TYPES: ty_type TYPE c LENGTH 6 . TYPES: ty_bitbyte TYPE c LENGTH 8 . TYPES: ty_sha1 TYPE c LENGTH 40 . TYPES: ty_sha1_tt TYPE STANDARD TABLE OF ty_sha1 WITH DEFAULT KEY . TYPES: ty_adler32 TYPE x LENGTH 4 . TYPES: BEGIN OF ty_file_signature, path TYPE string, filename TYPE string, sha1 TYPE ty_sha1, END OF ty_file_signature . TYPES: ty_file_signatures_tt TYPE STANDARD TABLE OF ty_file_signature WITH DEFAULT KEY . TYPES: ty_file_signatures_ts TYPE SORTED TABLE OF ty_file_signature WITH UNIQUE KEY path filename . TYPES: BEGIN OF ty_file. INCLUDE TYPE ty_file_signature. TYPES: data TYPE xstring, END OF ty_file . TYPES: ty_files_tt TYPE STANDARD TABLE OF ty_file WITH DEFAULT KEY . TYPES: ty_string_tt TYPE STANDARD TABLE OF string WITH DEFAULT KEY . TYPES ty_git_branch_type TYPE c LENGTH 2 . TYPES: BEGIN OF ty_git_branch, sha1 TYPE ty_sha1, name TYPE string, type TYPE ty_git_branch_type, is_head TYPE abap_bool, display_name TYPE string, END OF ty_git_branch . TYPES: ty_git_branch_list_tt TYPE STANDARD TABLE OF ty_git_branch WITH DEFAULT KEY WITH NON-UNIQUE SORTED KEY name_key COMPONENTS name. TYPES: BEGIN OF ty_git_tag, sha1 TYPE ty_sha1, object TYPE ty_sha1, name TYPE string, type TYPE ty_git_branch_type, display_name TYPE string, tagger_name TYPE string, tagger_email TYPE string, message TYPE string, body TYPE string, END OF ty_git_tag . TYPES: ty_git_tag_list_tt TYPE STANDARD TABLE OF ty_git_tag WITH DEFAULT KEY . TYPES: BEGIN OF ty_hotkey, ui_component TYPE string, action TYPE string, hotkey TYPE string, END OF ty_hotkey . TYPES: ty_hotkey_tt TYPE STANDARD TABLE OF ty_hotkey WITH NON-UNIQUE DEFAULT KEY WITH NON-UNIQUE SORTED KEY action COMPONENTS ui_component action. TYPES: BEGIN OF ty_git_user, name TYPE string, email TYPE string, END OF ty_git_user . TYPES: BEGIN OF ty_comment, committer TYPE ty_git_user, author TYPE ty_git_user, comment TYPE string, END OF ty_comment . TYPES: BEGIN OF ty_item, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, devclass TYPE devclass, inactive TYPE abap_bool, END OF ty_item . TYPES: ty_items_tt TYPE STANDARD TABLE OF ty_item WITH DEFAULT KEY . TYPES: ty_items_ts TYPE SORTED TABLE OF ty_item WITH UNIQUE KEY obj_type obj_name . TYPES: BEGIN OF ty_file_item, file TYPE ty_file, item TYPE ty_item, END OF ty_file_item . TYPES: ty_files_item_tt TYPE STANDARD TABLE OF ty_file_item WITH DEFAULT KEY . TYPES: ty_yes_no TYPE c LENGTH 1, ty_yes_no_partial TYPE c LENGTH 1. TYPES: BEGIN OF ty_overwrite. INCLUDE TYPE ty_item. TYPES: action TYPE i, icon TYPE icon_d, text TYPE string, decision TYPE ty_yes_no, END OF ty_overwrite . TYPES: ty_overwrite_tt TYPE STANDARD TABLE OF ty_overwrite WITH DEFAULT KEY WITH UNIQUE HASHED KEY object_type_and_name COMPONENTS obj_type obj_name . TYPES: BEGIN OF ty_requirements, met TYPE ty_yes_no, decision TYPE ty_yes_no, END OF ty_requirements . TYPES: BEGIN OF ty_dependencies, met TYPE ty_yes_no, END OF ty_dependencies . TYPES: BEGIN OF ty_transport_type, request TYPE trfunction, task TYPE trfunction, END OF ty_transport_type . TYPES: BEGIN OF ty_transport, required TYPE abap_bool, transport TYPE trkorr, type TYPE ty_transport_type, END OF ty_transport . TYPES: BEGIN OF ty_deserialize_checks, overwrite TYPE ty_overwrite_tt, warning_package TYPE ty_overwrite_tt, requirements TYPE ty_requirements, dependencies TYPE ty_dependencies, transport TYPE ty_transport, END OF ty_deserialize_checks . TYPES: BEGIN OF ty_delete_checks, transport TYPE ty_transport, END OF ty_delete_checks . TYPES: BEGIN OF ty_metadata, class TYPE string, version TYPE string, delete_tadir TYPE abap_bool, ddic TYPE abap_bool, END OF ty_metadata . TYPES: BEGIN OF ty_repo_file, path TYPE string, filename TYPE string, is_changed TYPE abap_bool, rstate TYPE c LENGTH 1, lstate TYPE c LENGTH 1, END OF ty_repo_file . TYPES: ty_repo_file_tt TYPE STANDARD TABLE OF ty_repo_file WITH DEFAULT KEY . TYPES: ty_chmod TYPE c LENGTH 6 . TYPES: BEGIN OF ty_object, sha1 TYPE ty_sha1, type TYPE ty_type, data TYPE xstring, adler32 TYPE ty_adler32, index TYPE i, END OF ty_object . TYPES: ty_objects_tt TYPE STANDARD TABLE OF ty_object WITH DEFAULT KEY WITH NON-UNIQUE SORTED KEY sha COMPONENTS sha1 WITH NON-UNIQUE SORTED KEY type COMPONENTS type sha1 . TYPES: BEGIN OF ty_tadir, pgmid TYPE tadir-pgmid, object TYPE tadir-object, obj_name TYPE tadir-obj_name, devclass TYPE tadir-devclass, korrnum TYPE tadir-korrnum, delflag TYPE tadir-delflag, genflag TYPE tadir-genflag, path TYPE string, END OF ty_tadir . TYPES: ty_tadir_tt TYPE STANDARD TABLE OF ty_tadir WITH DEFAULT KEY . TYPES: BEGIN OF ty_result, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, inactive TYPE abap_bool, path TYPE string, filename TYPE string, package TYPE devclass, match TYPE abap_bool, lstate TYPE c LENGTH 1, rstate TYPE c LENGTH 1, packmove TYPE abap_bool, END OF ty_result . TYPES: ty_results_tt TYPE STANDARD TABLE OF ty_result WITH DEFAULT KEY . TYPES: ty_results_ts_path TYPE HASHED TABLE OF ty_result WITH UNIQUE KEY path filename . TYPES: BEGIN OF ty_stage_files, local TYPE ty_files_item_tt, remote TYPE ty_files_tt, status TYPE ty_results_ts_path, END OF ty_stage_files . TYPES: BEGIN OF ty_tpool. INCLUDE TYPE textpool. TYPES: split TYPE c LENGTH 8. TYPES: END OF ty_tpool . TYPES: ty_tpool_tt TYPE STANDARD TABLE OF ty_tpool WITH DEFAULT KEY . TYPES: BEGIN OF ty_sotr, header TYPE sotr_head, entries TYPE sotr_text_tt, END OF ty_sotr . TYPES: ty_sotr_tt TYPE STANDARD TABLE OF ty_sotr WITH DEFAULT KEY . TYPES: ty_sotr_use_tt TYPE STANDARD TABLE OF sotr_use WITH DEFAULT KEY . TYPES: BEGIN OF ty_obj_attribute, cmpname TYPE seocmpname, attkeyfld TYPE seokeyfld, attbusobj TYPE seobusobj, END OF ty_obj_attribute . TYPES: ty_obj_attribute_tt TYPE STANDARD TABLE OF ty_obj_attribute WITH DEFAULT KEY WITH NON-UNIQUE SORTED KEY cmpname COMPONENTS cmpname . TYPES: BEGIN OF ty_transport_to_branch, branch_name TYPE string, commit_text TYPE string, END OF ty_transport_to_branch . TYPES: BEGIN OF ty_create, name TYPE string, parent TYPE string, END OF ty_create . TYPES: BEGIN OF ty_commit, sha1 TYPE ty_sha1, parent1 TYPE ty_sha1, parent2 TYPE ty_sha1, author TYPE string, email TYPE string, time TYPE string, message TYPE string, body TYPE STANDARD TABLE OF string WITH DEFAULT KEY, branch TYPE string, merge TYPE string, tags TYPE STANDARD TABLE OF string WITH DEFAULT KEY, create TYPE STANDARD TABLE OF ty_create WITH DEFAULT KEY, compressed TYPE abap_bool, END OF ty_commit . TYPES: ty_commit_tt TYPE STANDARD TABLE OF ty_commit WITH DEFAULT KEY . TYPES: BEGIN OF ty_diff, patch_flag TYPE abap_bool, new_num TYPE c LENGTH 6, new TYPE string, result TYPE c LENGTH 1, old_num TYPE c LENGTH 6, old TYPE string, short TYPE abap_bool, beacon TYPE i, END OF ty_diff . TYPES: ty_diffs_tt TYPE STANDARD TABLE OF ty_diff WITH DEFAULT KEY . TYPES: BEGIN OF ty_count, insert TYPE i, delete TYPE i, update TYPE i, END OF ty_count . TYPES: BEGIN OF ty_expanded, path TYPE string, name TYPE string, sha1 TYPE ty_sha1, chmod TYPE ty_chmod, END OF ty_expanded . TYPES: ty_expanded_tt TYPE STANDARD TABLE OF ty_expanded WITH DEFAULT KEY . TYPES: BEGIN OF ty_ancestor, commit TYPE ty_sha1, tree TYPE ty_sha1, time TYPE string, body TYPE string, END OF ty_ancestor . TYPES: BEGIN OF ty_repo_item, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, inactive TYPE abap_bool, sortkey TYPE i, path TYPE string, is_dir TYPE abap_bool, changes TYPE i, lstate TYPE c LENGTH 1, rstate TYPE c LENGTH 1, files TYPE ty_repo_file_tt, END OF ty_repo_item . TYPES: ty_repo_item_tt TYPE STANDARD TABLE OF ty_repo_item WITH DEFAULT KEY . TYPES: BEGIN OF ty_s_user_settings, max_lines TYPE i, adt_jump_enabled TYPE abap_bool, show_default_repo TYPE abap_bool, link_hints_enabled TYPE abap_bool, link_hint_key TYPE c LENGTH 1, hotkeys TYPE ty_hotkey_tt, parallel_proc_disabled TYPE abap_bool, icon_scaling TYPE c LENGTH 1, ui_theme TYPE string, hide_sapgui_hint TYPE abap_bool, activate_wo_popup TYPE abap_bool, END OF ty_s_user_settings . TYPES: ty_dokil_tt TYPE STANDARD TABLE OF dokil WITH NON-UNIQUE DEFAULT KEY . TYPES: BEGIN OF ty_col_spec, tech_name TYPE string, display_name TYPE string, css_class TYPE string, add_tz TYPE abap_bool, title TYPE string, allow_order_by TYPE abap_bool, END OF ty_col_spec, ty_col_spec_tt TYPE STANDARD TABLE OF ty_col_spec WITH NON-UNIQUE KEY tech_name. TYPES: ty_proxy_bypass_url TYPE c LENGTH 255, ty_range_proxy_bypass_url TYPE RANGE OF ty_proxy_bypass_url. TYPES: BEGIN OF ty_version, major TYPE i, minor TYPE i, patch TYPE i, prerelase TYPE string, prerelase_patch TYPE i, END OF ty_version. TYPES: BEGIN OF ty_alv_column, name TYPE string, text TYPE string, length TYPE lvc_outlen, show_icon TYPE abap_bool, END OF ty_alv_column, ty_alv_column_tt TYPE TABLE OF ty_alv_column WITH DEFAULT KEY. TYPES: ty_deserialization_step TYPE string. TYPES: ty_deserialization_step_tt TYPE STANDARD TABLE OF ty_deserialization_step WITH DEFAULT KEY . CONSTANTS: BEGIN OF c_git_branch_type, branch TYPE ty_git_branch_type VALUE 'HD', lightweight_tag TYPE ty_git_branch_type VALUE 'TG', annotated_tag TYPE ty_git_branch_type VALUE 'AT', other TYPE ty_git_branch_type VALUE 'ZZ', END OF c_git_branch_type . CONSTANTS c_head_name TYPE string VALUE 'HEAD' ##NO_TEXT. CONSTANTS: BEGIN OF c_git_branch, main TYPE string VALUE 'refs/heads/main', prefix TYPE string VALUE 'refs/', heads_prefix TYPE string VALUE 'refs/heads/', heads TYPE string VALUE 'refs/heads/*', tags_prefix TYPE string VALUE 'refs/tags/', tags TYPE string VALUE 'refs/tags/*', END OF c_git_branch. CONSTANTS: BEGIN OF c_diff, insert TYPE c LENGTH 1 VALUE 'I', delete TYPE c LENGTH 1 VALUE 'D', update TYPE c LENGTH 1 VALUE 'U', END OF c_diff . CONSTANTS: BEGIN OF c_type, commit TYPE ty_type VALUE 'commit', "#EC NOTEXT tree TYPE ty_type VALUE 'tree', "#EC NOTEXT ref_d TYPE ty_type VALUE 'ref_d', "#EC NOTEXT tag TYPE ty_type VALUE 'tag', "#EC NOTEXT blob TYPE ty_type VALUE 'blob', "#EC NOTEXT END OF c_type . CONSTANTS: BEGIN OF c_state, " https://git-scm.com/docs/git-status unchanged TYPE c LENGTH 1 VALUE '', added TYPE c LENGTH 1 VALUE 'A', modified TYPE c LENGTH 1 VALUE 'M', deleted TYPE c LENGTH 1 VALUE 'D', mixed TYPE c LENGTH 1 VALUE '*', END OF c_state . CONSTANTS: BEGIN OF c_chmod, file TYPE ty_chmod VALUE '100644', executable TYPE ty_chmod VALUE '100755', dir TYPE ty_chmod VALUE '40000 ', END OF c_chmod . CONSTANTS c_crlf TYPE c LENGTH 2 VALUE cl_abap_char_utilities=>cr_lf ##NO_TEXT. CONSTANTS c_newline TYPE c LENGTH 1 VALUE cl_abap_char_utilities=>newline ##NO_TEXT. CONSTANTS c_english TYPE spras VALUE 'E' ##NO_TEXT. CONSTANTS c_root_dir TYPE string VALUE '/' ##NO_TEXT. CONSTANTS c_dot_abapgit TYPE string VALUE '.abapgit.xml' ##NO_TEXT. CONSTANTS c_author_regex TYPE string VALUE '^(.+) <(.*)> (\d{10})\s?.\d{4}$' ##NO_TEXT. CONSTANTS: BEGIN OF c_action, repo_refresh TYPE string VALUE 'repo_refresh', repo_remove TYPE string VALUE 'repo_remove', repo_settings TYPE string VALUE 'repo_settings', repo_local_settings TYPE string VALUE 'repo_local_settings', repo_remote_settings TYPE string VALUE 'repo_remote_settings', repo_background TYPE string VALUE 'repo_background', repo_infos TYPE string VALUE 'repo_infos', repo_purge TYPE string VALUE 'repo_purge', repo_newonline TYPE string VALUE 'repo_newonline', repo_newoffline TYPE string VALUE 'repo_newoffline', repo_add_all_obj_to_trans_req TYPE string VALUE 'repo_add_all_obj_to_trans_req', repo_refresh_checksums TYPE string VALUE 'repo_refresh_checksums', repo_toggle_fav TYPE string VALUE 'repo_toggle_fav', repo_transport_to_branch TYPE string VALUE 'repo_transport_to_branch', repo_syntax_check TYPE string VALUE 'repo_syntax_check', repo_code_inspector TYPE string VALUE 'repo_code_inspector', repo_open_in_master_lang TYPE string VALUE 'repo_open_in_master_lang', repo_log TYPE string VALUE 'repo_log', abapgit_home TYPE string VALUE 'abapgit_home', zip_import TYPE string VALUE 'zip_import', zip_export TYPE string VALUE 'zip_export', zip_package TYPE string VALUE 'zip_package', zip_transport TYPE string VALUE 'zip_transport', zip_object TYPE string VALUE 'zip_object', performance_test TYPE string VALUE 'performance_test', ie_devtools TYPE string VALUE 'ie_devtools', git_pull TYPE string VALUE 'git_pull', git_reset TYPE string VALUE 'git_reset', git_branch_create TYPE string VALUE 'git_branch_create', git_branch_switch TYPE string VALUE 'git_branch_switch', git_branch_delete TYPE string VALUE 'git_branch_delete', git_tag_create TYPE string VALUE 'git_tag_create', git_tag_delete TYPE string VALUE 'git_tag_delete', git_tag_switch TYPE string VALUE 'git_tag_switch', git_commit TYPE string VALUE 'git_commit', db_display TYPE string VALUE 'db_display', db_edit TYPE string VALUE 'db_edit', bg_update TYPE string VALUE 'bg_update', go_back TYPE string VALUE 'go_back', go_explore TYPE string VALUE 'go_explore', go_repo TYPE string VALUE 'go_repo', go_db TYPE string VALUE 'go_db', go_background TYPE string VALUE 'go_background', go_background_run TYPE string VALUE 'go_background_run', go_repo_diff TYPE string VALUE 'go_repo_diff', go_file_diff TYPE string VALUE 'go_fill_diff', go_stage TYPE string VALUE 'go_stage', go_commit TYPE string VALUE 'go_commit', go_branch_overview TYPE string VALUE 'go_branch_overview', go_tag_overview TYPE string VALUE 'go_tag_overview', go_debuginfo TYPE string VALUE 'go_debuginfo', go_settings TYPE string VALUE 'go_settings', go_settings_personal TYPE string VALUE 'go_settings_personal', go_tutorial TYPE string VALUE 'go_tutorial', go_patch TYPE string VALUE 'go_patch', jump TYPE string VALUE 'jump', jump_transport TYPE string VALUE 'jump_transport', jump_user TYPE string VALUE 'jump_user', url TYPE string VALUE 'url', goto_source TYPE string VALUE 'goto_source', show_callstack TYPE string VALUE 'show_callstack', change_order_by TYPE string VALUE 'change_order_by', goto_message TYPE string VALUE 'goto_message', direction TYPE string VALUE 'direction', documentation TYPE string VALUE 'documentation', changelog TYPE string VALUE 'changelog', END OF c_action. CONSTANTS c_spagpa_param_repo_key TYPE c LENGTH 20 VALUE 'REPO_KEY' ##NO_TEXT. CONSTANTS c_spagpa_param_package TYPE c LENGTH 20 VALUE 'PACKAGE' ##NO_TEXT. CONSTANTS gc_yes TYPE ty_yes_no VALUE 'Y'. CONSTANTS gc_no TYPE ty_yes_no VALUE 'N'. CONSTANTS gc_partial TYPE ty_yes_no_partial VALUE 'P'. TYPES: ty_method TYPE c LENGTH 1 . TYPES: BEGIN OF ty_stage, file TYPE ty_file, method TYPE ty_method, status TYPE ty_result, END OF ty_stage . TYPES: ty_stage_tt TYPE SORTED TABLE OF ty_stage WITH UNIQUE KEY file-path file-filename . CONSTANTS: BEGIN OF c_method, add TYPE ty_method VALUE 'A', rm TYPE ty_method VALUE 'R', ignore TYPE ty_method VALUE 'I', skip TYPE ty_method VALUE '?', END OF c_method . TYPES: ty_languages TYPE STANDARD TABLE OF laiso WITH DEFAULT KEY. TYPES: BEGIN OF ty_i18n_params, main_language TYPE sy-langu, main_language_only TYPE abap_bool, translation_languages TYPE ty_languages, END OF ty_i18n_params . ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 198, 220, 44731, 764, 628, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 4906, 220, 220, 220, 41876, 269, 406, 49494, 718, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 2545, 26327, 41876, 269, 406, 49494, 807, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 26270, 16, 220, 220, 220, 41876, 269, 406, 49494, 2319, 764, 198, 220, 24412, 47, 1546, 25, 1259, 62, 26270, 16, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 26270, 16, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 324, 1754, 2624, 41876, 2124, 406, 49494, 604, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 7753, 62, 12683, 1300, 11, 198, 220, 220, 220, 220, 220, 3108, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 29472, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 427, 64, 16, 220, 220, 220, 220, 41876, 1259, 62, 26270, 16, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 7753, 62, 12683, 1300, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 7753, 62, 12683, 6691, 62, 926, 41876, 49053, 9795, 43679, 3963, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 7753, 62, 12683, 1300, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 7753, 62, 12683, 6691, 62, 912, 41876, 311, 9863, 1961, 43679, 3963, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 7753, 62, 12683, 1300, 13315, 4725, 33866, 8924, 35374, 3108, 29472, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 7753, 13, 198, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 41876, 1259, 62, 7753, 62, 12683, 1300, 13, 198, 220, 24412, 47, 1546, 25, 1366, 41876, 2124, 8841, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 7753, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 16624, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 7753, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 8841, 62, 926, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 1259, 62, 18300, 62, 1671, 3702, 62, 4906, 41876, 269, 406, 49494, 362, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 18300, 62, 1671, 3702, 11, 198, 220, 220, 220, 220, 220, 427, 64, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 26270, 16, 11, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 18300, 62, 1671, 3702, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 318, 62, 2256, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 3359, 62, 3672, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 18300, 62, 1671, 3702, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 18300, 62, 1671, 3702, 62, 4868, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 18300, 62, 1671, 3702, 13315, 5550, 38865, 35374, 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, 13315, 44521, 12, 4944, 33866, 8924, 311, 9863, 1961, 35374, 1438, 62, 2539, 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, 24301, 1340, 15365, 1438, 13, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 18300, 62, 12985, 11, 198, 220, 220, 220, 220, 220, 427, 64, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 26270, 16, 11, 198, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 26270, 16, 11, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 18300, 62, 1671, 3702, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 3359, 62, 3672, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 7621, 1362, 62, 3672, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 7621, 1362, 62, 12888, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3275, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1767, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 18300, 62, 12985, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 18300, 62, 12985, 62, 4868, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 18300, 62, 12985, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8940, 2539, 11, 198, 220, 220, 220, 220, 220, 334, 72, 62, 42895, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2223, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3024, 2539, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 8940, 2539, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 8940, 2539, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 8940, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE if_ixml_named_node_map PUBLIC. METHODS: create_iterator RETURNING VALUE(iterator) TYPE REF TO if_ixml_node_iterator, get_length RETURNING VALUE(val) TYPE i, get_named_item_ns IMPORTING name TYPE string RETURNING VALUE(val) TYPE REF TO if_ixml_node, get_named_item IMPORTING name TYPE string RETURNING VALUE(val) TYPE REF TO if_ixml_node, remove_named_item IMPORTING name TYPE string. ENDINTERFACE.
[ 41358, 49836, 611, 62, 844, 4029, 62, 13190, 62, 17440, 62, 8899, 44731, 13, 198, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 2251, 62, 48727, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 48727, 8, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 62, 48727, 11, 198, 220, 220, 220, 651, 62, 13664, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 2100, 8, 41876, 1312, 11, 198, 220, 220, 220, 651, 62, 13190, 62, 9186, 62, 5907, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 1438, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 2100, 8, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 11, 198, 220, 220, 220, 651, 62, 13190, 62, 9186, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 1438, 41876, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 2100, 8, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 17440, 11, 198, 220, 220, 220, 4781, 62, 13190, 62, 9186, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 1438, 41876, 4731, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 zaoc_method_length. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License TABLES: tadir. TYPES: BEGIN OF ty_result, cpdkey TYPE seocpdkey, incname TYPE programm, lines TYPE i, END OF ty_result. TYPES: BEGIN OF ty_sum, text TYPE text200, count TYPE i, percent TYPE text200, END OF ty_sum. DATA: gt_result TYPE STANDARD TABLE OF ty_result WITH DEFAULT KEY, gt_sum TYPE STANDARD TABLE OF ty_sum WITH DEFAULT KEY. SELECT-OPTIONS: s_devc FOR tadir-devclass, s_objn FOR tadir-obj_name. PARAMETERS: p_det TYPE c RADIOBUTTON GROUP g1 DEFAULT 'X', p_sum TYPE c RADIOBUTTON GROUP g1, p_split TYPE i DEFAULT 15. START-OF-SELECTION. PERFORM run. CLASS lcl_alv DEFINITION FINAL. PUBLIC SECTION. CLASS-METHODS: on_link_click FOR EVENT link_click OF cl_salv_events_table IMPORTING row column. ENDCLASS. CLASS lcl_alv IMPLEMENTATION. METHOD on_link_click. DATA: ls_result LIKE LINE OF gt_result. READ TABLE gt_result INDEX row INTO ls_result. IF sy-subrc <> 0. RETURN. ENDIF. CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ls_result-incname object_type = 'PROG' in_new_window = abap_true. ENDMETHOD. ENDCLASS. FORM run RAISING cx_salv_error. TYPES: BEGIN OF ty_tadir, obj_name TYPE tadir-obj_name, END OF ty_tadir. DATA: lt_tadir TYPE STANDARD TABLE OF ty_tadir WITH DEFAULT KEY, lv_class TYPE seoclsname, lt_includes TYPE seop_methods_w_include, ls_include LIKE LINE OF lt_includes, ls_result LIKE LINE OF gt_result, lt_code TYPE TABLE OF abaptxt255, lv_index TYPE i, lv_float TYPE f, ls_sum LIKE LINE OF gt_sum, ls_tadir LIKE LINE OF lt_tadir. FIELD-SYMBOLS: <ls_sum> LIKE LINE OF gt_sum. DO 1000 TIMES. CLEAR ls_sum. ls_sum-text = |{ ( sy-index - 1 ) * p_split } to { sy-index * p_split - 1 }|. APPEND ls_sum TO gt_sum. ENDDO. SELECT obj_name FROM tadir INTO TABLE lt_tadir WHERE devclass IN s_devc AND object = 'CLAS' AND obj_name IN s_objn AND delflag = abap_false. "#EC CI_GENBUFF LOOP AT lt_tadir INTO ls_tadir. lv_class = ls_tadir-obj_name. lt_includes = cl_oo_classname_service=>get_all_method_includes( lv_class ). LOOP AT lt_includes INTO ls_include. READ REPORT ls_include-incname INTO lt_code. IF sy-subrc = 0. MOVE-CORRESPONDING ls_include TO ls_result. ls_result-lines = lines( lt_code ). APPEND ls_result TO gt_result. lv_float = ( lines( lt_code ) / p_split ) + 1. lv_index = floor( lv_float ). READ TABLE gt_sum INDEX lv_index ASSIGNING <ls_sum>. ASSERT sy-subrc = 0. <ls_sum>-count = <ls_sum>-count + 1. ENDIF. ENDLOOP. ENDLOOP. PERFORM sum_percentage. PERFORM display. ENDFORM. FORM sum_percentage. DATA: lv_total TYPE i, lv_percent TYPE p DECIMALS 2, ls_sum LIKE LINE OF gt_sum. FIELD-SYMBOLS: <ls_sum> LIKE LINE OF gt_sum. LOOP AT gt_sum ASSIGNING <ls_sum>. lv_total = lv_total + <ls_sum>-count. ENDLOOP. LOOP AT gt_sum ASSIGNING <ls_sum>. lv_percent = ( <ls_sum>-count / lv_total ) * 100. <ls_sum>-percent = |{ lv_percent }%|. ENDLOOP. DO. lv_total = lines( gt_sum ). READ TABLE gt_sum INDEX lv_total INTO ls_sum. IF sy-subrc <> 0 OR ls_sum-count <> 0. EXIT. ENDIF. DELETE gt_sum INDEX lv_total. ENDDO. ENDFORM. FORM display RAISING cx_salv_error. DATA: lo_alv TYPE REF TO cl_salv_table, lo_column TYPE REF TO cl_salv_column_list, lo_events TYPE REF TO cl_salv_events_table. IF p_det = abap_true. cl_salv_table=>factory( IMPORTING r_salv_table = lo_alv CHANGING t_table = gt_result ). lo_events = lo_alv->get_event( ). SET HANDLER lcl_alv=>on_link_click FOR lo_events. lo_column ?= lo_alv->get_columns( )->get_column( 'INCNAME' ). lo_column->set_cell_type( if_salv_c_cell_type=>hotspot ). ELSE. cl_salv_table=>factory( IMPORTING r_salv_table = lo_alv CHANGING t_table = gt_sum ). lo_column ?= lo_alv->get_columns( )->get_column( 'PERCENT' ). lo_column->set_alignment( if_salv_c_alignment=>right ). ENDIF. lo_alv->get_functions( )->set_all( ). lo_alv->get_columns( )->set_optimize( ). lo_alv->display( ). ENDFORM.
[ 2200, 15490, 1976, 64, 420, 62, 24396, 62, 13664, 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, 198, 198, 5603, 9148, 1546, 25, 36264, 343, 13, 198, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 269, 30094, 2539, 220, 41876, 384, 420, 30094, 2539, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 753, 3672, 41876, 1430, 76, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 3951, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 20274, 13, 198, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 16345, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 41876, 2420, 2167, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 954, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 1411, 41876, 2420, 2167, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 16345, 13, 198, 198, 26947, 25, 308, 83, 62, 20274, 41876, 49053, 9795, 43679, 3963, 1259, 62, 20274, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 308, 83, 62, 16345, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1259, 62, 16345, 13315, 5550, 38865, 35374, 13, 628, 198, 46506, 12, 3185, 51, 11053, 25, 264, 62, 7959, 66, 7473, 36264, 343, 12, 7959, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 264, 62, 26801, 77, 7473, 36264, 343, 12, 26801, 62, 3672, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 15255, 220, 220, 41876, 269, 33540, 9399, 47526, 11357, 44441, 308, 16, 5550, 38865, 705, 55, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 16345, 220, 220, 41876, 269, 33540, 9399, 47526, 11357, 44441, 308, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 35312, 41876, 1312, 5550, 38865, 1315, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 220, 19878, 21389, 1057, 13, 198, 198, 31631, 300, 565, 62, 282, 85, 5550, 20032, 17941, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 42715, 12, 49273, 50, 25, 198, 220, 220, 220, 220, 220, 319, 62, 8726, 62, 12976, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 49261, 2792, 62, 12976, 3963, 537, 62, 21680, 85, 62, 31534, 62, 11487, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5752, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5721, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 282, 85, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 319, 62, 8726, 62, 12976, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 20274, 34178, 48920, 3963, 308, 83, 62, 20274, 13, 628, 220, 220, 220, 20832, 43679, 308, 83, 62, 20274, 24413, 6369, 5752, 39319, 43979, 62, 20274, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 6998, 62, 10468, 3535, 62, 26861, 7597, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4905, 220, 220, 220, 220, 796, 705, 9693, 3913, 6, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 3672, 220, 220, 796, 43979, 62, 20274, 12, 1939, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 4906, 220, 220, 796, 705, 4805, 7730, 6, 198, 220, 220, 220, 220, 220, 220, 220, 287, 62, 3605, 62, 17497, 796, 450, 499, 62, 7942, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 21389, 1057, 17926, 1797, 2751, 43213, 62, 21680, 85, 62, 18224, 13, 628, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 83, 324, 343, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 3672, 41876, 36264, 343, 12, 26801, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 83, 324, 343, 13, 628, 220, 42865, 25, 300, 83, 62, 83, 324, 343, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 1259, 62, 83, 324, 343, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 4871, 220, 220, 220, 41876, 384, 420, 7278, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 42813, 41876, 384, 404, 62, 24396, 82, 62, 86, 62, 17256, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 17256, 220, 34178, 48920, 3963, 300, 83, 62, 42813, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20274, 220, 220, 34178, 48920, 3963, 308, 83, 62, 20274, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 8189, 220, 220, 220, 220, 41876, 43679, 3963, 450, 2373, 742, 13381, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 9630, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 22468, 220, 220, 220, 41876, 277, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 16345, 220, 220, 220, 220, 220, 34178, 48920, 3963, 308, 83, 62, 16345, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 83, 324, 343, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 83, 324, 343, 13, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 16345, 29, 34178, 48920, 3963, 308, 83, 62, 16345, 13, 628, 198, 220, 8410, 8576, 31742, 1546, 13, 198, 220, 220, 220, 30301, 1503, 43979, 62, 16345, 13, 198, 220, 220, 220, 43979, 62, 16345, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*---------------------------------------------------------------------* * program for: TABLEFRAME_YTTICKSYS_JISTA * generation date: 08.11.2020 at 16:44:30 * view maintenance generator version: #001407# *---------------------------------------------------------------------* FUNCTION TABLEFRAME_YTTICKSYS_JISTA . PERFORM TABLEFRAME TABLES X_HEADER X_NAMTAB DBA_SELLIST DPL_SELLIST EXCL_CUA_FUNCT USING CORR_NUMBER VIEW_ACTION VIEW_NAME. ENDFUNCTION.
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1430, 329, 25, 220, 220, 43679, 10913, 10067, 62, 56, 15751, 11860, 50, 16309, 62, 41, 1797, 5603, 198, 9, 220, 220, 5270, 3128, 25, 8487, 13, 1157, 13, 42334, 379, 1467, 25, 2598, 25, 1270, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 42296, 4177, 2849, 43679, 10913, 10067, 62, 56, 15751, 11860, 50, 16309, 62, 41, 1797, 5603, 220, 220, 220, 764, 628, 220, 19878, 21389, 43679, 10913, 10067, 309, 6242, 28378, 1395, 62, 37682, 1137, 1395, 62, 45, 2390, 5603, 33, 360, 4339, 62, 5188, 3069, 8808, 360, 6489, 62, 5188, 3069, 8808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 5097, 62, 34, 34970, 62, 42296, 4177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1294, 2751, 220, 23929, 49, 62, 41359, 13246, 49880, 62, 44710, 49880, 62, 20608, 13, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui_page_bkg_run DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_page FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES: zif_abapgit_gui_page_hotkey. METHODS constructor . METHODS zif_abapgit_gui_event_handler~on_event REDEFINITION . PROTECTED SECTION. METHODS render_content REDEFINITION. PRIVATE SECTION. DATA: mt_text TYPE TABLE OF string. METHODS: run. ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_BKG_RUN IMPLEMENTATION. METHOD constructor. super->constructor( ). ms_control-page_title = 'BACKGROUND_RUN'. ENDMETHOD. METHOD render_content. DATA: lv_text LIKE LINE OF mt_text. run( ). CREATE OBJECT ro_html. ro_html->add( '<div id="toc">' ). LOOP AT mt_text INTO lv_text. ro_html->add( '<pre>' && lv_text && '</pre><br>' ). ENDLOOP. ro_html->add( '</div>' ). ENDMETHOD. METHOD run. DATA: lx_error TYPE REF TO zcx_abapgit_exception, lv_text TYPE string, lv_line TYPE i VALUE 1. TRY. zcl_abapgit_background=>run( ). DO. READ LINE lv_line LINE VALUE INTO lv_text. IF sy-subrc <> 0. EXIT. ENDIF. APPEND lv_text TO mt_text. lv_line = lv_line + 1. ENDDO. CATCH zcx_abapgit_exception INTO lx_error. APPEND lx_error->get_text( ) TO mt_text. ENDTRY. ENDMETHOD. METHOD zif_abapgit_gui_page_hotkey~get_hotkey_actions. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. RETURN. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 65, 10025, 62, 5143, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8940, 2539, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 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, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 45079, 62, 5239, 41876, 43679, 3963, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 1057, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 33, 42, 38, 62, 49, 4944, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 31098, 46025, 62, 49, 4944, 4458, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8543, 62, 11299, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 5239, 34178, 48920, 3963, 45079, 62, 5239, 13, 628, 220, 220, 220, 1057, 7, 6739, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 6494, 13, 628, 220, 220, 220, 686, 62, 6494, 3784, 2860, 7, 705, 27, 7146, 4686, 2625, 40301, 5320, 6, 6739, 198, 220, 220, 220, 17579, 3185, 5161, 45079, 62, 5239, 39319, 300, 85, 62, 5239, 13, 198, 220, 220, 220, 220, 220, 686, 62, 6494, 3784, 2860, 7, 705, 27, 3866, 29, 6, 11405, 300, 85, 62, 5239, 11405, 705, 3556, 3866, 6927, 1671, 29, 6, 6739, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 686, 62, 6494, 3784, 2860, 7, 705, 3556, 7146, 29, 6, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1057, 13, 628, 220, 220, 220, 42865, 25, 300, 87, 62, 18224, 41876, 4526, 37, 5390, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 5239, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 1370, 220, 41876, 1312, 26173, 8924, 352, 13, 628, 198, 220, 220, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 565, 62, 397, 499, 18300, 62, 25249, 14804, 5143, 7, 6739, 628, 220, 220, 220, 220, 220, 220, 220, 8410, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 20832, 48920, 300, 85, 62, 1370, 48920, 26173, 8924, 39319, 300, 85, 62, 5239, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43504, 10619, 300, 85, 62, 5239, 5390, 45079, 62, 5239, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 1370, 796, 300, 85, 62, 1370, 1343, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 18227, 13, 198, 220, 220, 220, 220, 220, 327, 11417, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 39319, 300, 87, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43504, 10619, 300, 87, 62, 18224, 3784, 1136, 62, 5239, 7, 1267, 5390, 45079, 62, 5239, 13, 198, 220, 220, 220, 23578, 40405, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8940, 2539, 93, 1136, 62, 8940, 2539, 62, 4658, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 15596, 62, 30281, 93, 261, 62, 15596, 13, 198, 220, 220, 220, 30826, 27064, 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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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 /gal/js_clean_preconditions. *"---------------------------------------------------------------------- *"*"Lokale Schnittstelle: *" IMPORTING *" REFERENCE(MIN_AGE_IN_DAYS) TYPE INT4 DEFAULT 14 *"---------------------------------------------------------------------- DATA: l_timestamp_obj TYPE REF TO /gal/timestamp_short, l_j02_id TYPE /gal/precondition_id, l_j02_type TYPE /gal/precondition_type. CREATE OBJECT l_timestamp_obj. l_timestamp_obj->subtract_interval( EXPORTING days = min_age_in_days ). SELECT j02~id j02~type INTO (l_j02_id, l_j02_type) FROM /gal/jobdata01 AS j01 INNER JOIN /gal/jobdata02 AS j02 ON j01~id = j02~job_id WHERE j01~status = 'F' AND j01~mod_timestamp < l_timestamp_obj->value AND j02~status = 'F'. CASE l_j02_type. WHEN 'J'. DELETE FROM /gal/jobdata02j WHERE id = l_j02_id. "#EC CI_SUBRC WHEN 'T'. DELETE FROM /gal/jobdata02t WHERE id = l_j02_id. "#EC CI_SUBRC WHEN 'U'. DELETE FROM /gal/jobdata02u WHERE id = l_j02_id. "#EC CI_SUBRC WHEN 'R'. DELETE FROM /gal/jobdata02r WHERE id = l_j02_id. "#EC CI_SUBRC ENDCASE. DELETE FROM /gal/jobdata02 WHERE id = l_j02_id. "#EC CI_SUBRC ENDSELECT. "#EC CI_SUBRC ENDFUNCTION.
[ 42296, 4177, 2849, 1220, 13528, 14, 8457, 62, 27773, 62, 3866, 17561, 1756, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 43, 482, 1000, 45606, 715, 301, 13485, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 23678, 62, 11879, 62, 1268, 62, 26442, 50, 8, 41876, 220, 17828, 19, 5550, 38865, 1478, 198, 9, 1, 10097, 23031, 628, 220, 42865, 25, 198, 220, 220, 220, 300, 62, 16514, 27823, 62, 26801, 41876, 4526, 37, 5390, 1220, 13528, 14, 16514, 27823, 62, 19509, 11, 198, 220, 220, 220, 300, 62, 73, 2999, 62, 312, 220, 220, 220, 220, 220, 220, 220, 41876, 1220, 13528, 14, 3866, 31448, 62, 312, 11, 198, 220, 220, 220, 300, 62, 73, 2999, 62, 4906, 220, 220, 220, 220, 220, 41876, 1220, 13528, 14, 3866, 31448, 62, 4906, 13, 628, 198, 220, 29244, 6158, 25334, 23680, 300, 62, 16514, 27823, 62, 26801, 13, 628, 220, 300, 62, 16514, 27823, 62, 26801, 3784, 7266, 83, 974, 62, 3849, 2100, 7, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 1528, 220, 220, 220, 796, 949, 62, 496, 62, 259, 62, 12545, 198, 220, 6739, 628, 220, 33493, 474, 2999, 93, 312, 474, 2999, 93, 4906, 39319, 357, 75, 62, 73, 2999, 62, 312, 11, 300, 62, 73, 2999, 62, 4906, 8, 198, 220, 220, 220, 220, 220, 220, 220, 220, 16034, 1220, 13528, 14, 21858, 7890, 486, 7054, 474, 486, 3268, 21479, 32357, 1268, 1220, 13528, 14, 21858, 7890, 2999, 7054, 474, 2999, 6177, 474, 486, 93, 312, 796, 474, 2999, 93, 21858, 62, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 474, 486, 93, 13376, 796, 705, 37, 6, 5357, 474, 486, 93, 4666, 62, 16514, 27823, 1279, 300, 62, 16514, 27823, 62, 26801, 3784, 8367, 5357, 474, 2999, 93, 13376, 796, 705, 37, 4458, 628, 220, 220, 220, 42001, 300, 62, 73, 2999, 62, 4906, 13, 198, 220, 220, 220, 220, 220, 42099, 705, 41, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 16034, 1220, 13528, 14, 21858, 7890, 2999, 73, 33411, 4686, 796, 300, 62, 73, 2999, 62, 312, 13, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 220, 220, 42099, 705, 51, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 16034, 1220, 13528, 14, 21858, 7890, 2999, 83, 33411, 4686, 796, 300, 62, 73, 2999, 62, 312, 13, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 220, 220, 42099, 705, 52, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 16034, 1220, 13528, 14, 21858, 7890, 2999, 84, 33411, 4686, 796, 300, 62, 73, 2999, 62, 312, 13, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 220, 220, 42099, 705, 49, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 5550, 2538, 9328, 16034, 1220, 13528, 14, 21858, 7890, 2999, 81, 33411, 4686, 796, 300, 62, 73, 2999, 62, 312, 13, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 220, 220, 220, 23578, 34, 11159, 13, 628, 220, 220, 220, 5550, 2538, 9328, 16034, 1220, 13528, 14, 21858, 7890, 2999, 33411, 4686, 796, 300, 62, 73, 2999, 62, 312, 13, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 628, 220, 23578, 46506, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 50, 10526, 7397, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pers DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_object. ALIASES mo_files FOR zif_abapgit_object~mo_files. METHODS: constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_personalization_object, pers_reg TYPE spers_reg, pers_reg_text TYPE spers_regt, END OF ty_personalization_object. DATA: mv_pers_key TYPE spers_key. METHODS: get_personalization_object IMPORTING iv_create TYPE abap_bool OPTIONAL iv_view_only TYPE abap_bool OPTIONAL RETURNING VALUE(ro_personalization_object) TYPE REF TO cl_pers_reg RAISING zcx_abapgit_exception. ENDCLASS. CLASS zcl_abapgit_object_pers IMPLEMENTATION. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_pers_key = ms_item-obj_name. ENDMETHOD. METHOD get_personalization_object. CREATE OBJECT ro_personalization_object EXPORTING p_create = iv_create p_pers_key = mv_pers_key p_view_only = iv_view_only EXCEPTIONS pers_key_already_exists = 1 pers_key_does_not_exist = 2 transport_view_only = 3 transport_canceled = 4 OTHERS = 5. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lo_personalization_object TYPE REF TO cl_pers_reg. lo_personalization_object = get_personalization_object( ). lo_personalization_object->delete( EXPORTING p_no_confirm = abap_true EXCEPTIONS deletion_canceled = 1 deletion_failed = 2 transport_canceled = 3 OTHERS = 4 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_personalization_object TYPE ty_personalization_object, lo_personalization_object TYPE REF TO cl_pers_reg. io_xml->read( EXPORTING iv_name = 'PERS' CHANGING cg_data = ls_personalization_object ). tadir_insert( iv_package ). lo_personalization_object = get_personalization_object( iv_create = abap_true ). lo_personalization_object->set_reg_data( p_pers_reg = ls_personalization_object-pers_reg p_pers_reg_text = ls_personalization_object-pers_reg_text ). lo_personalization_object->save( EXPORTING no_check = abap_true EXCEPTIONS data_not_saved = 1 transport_canceled = 2 OTHERS = 3 ). IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. cl_pers_reg=>exists( EXPORTING p_pers_key = mv_pers_key EXCEPTIONS pers_key_does_not_exist = 1 OTHERS = 2 ). 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-delete_tadir = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. " There's no object specific locking. Just a global one. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'E_SPERSREG' ). ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: ls_bcdata TYPE bdcdata, lt_bcdata TYPE STANDARD TABLE OF bdcdata. ls_bcdata-program = 'SAPLSPERS_REG_DIALOG'. ls_bcdata-dynpro = '0100'. ls_bcdata-dynbegin = 'X'. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'SPERS_REG-PERS_KEY'. ls_bcdata-fval = ms_item-obj_name. APPEND ls_bcdata TO lt_bcdata. CLEAR ls_bcdata. ls_bcdata-fnam = 'BDC_OKCODE'. ls_bcdata-fval = '=PERSDISPLAY'. APPEND ls_bcdata TO lt_bcdata. zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input( iv_tcode = 'PERSREG' it_bdcdata = lt_bcdata ). rv_exit = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lo_personalization_object TYPE REF TO cl_pers_reg, ls_personalization_object TYPE ty_personalization_object. lo_personalization_object = get_personalization_object( iv_view_only = abap_true ). lo_personalization_object->get_reg_data( IMPORTING p_pers_reg = ls_personalization_object-pers_reg p_pers_reg_text = ls_personalization_object-pers_reg_text ). CLEAR: ls_personalization_object-pers_reg-author, ls_personalization_object-pers_reg-fdate, ls_personalization_object-pers_reg-ftime. io_xml->add( iv_name = 'PERS' ig_data = ls_personalization_object ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 19276, 5550, 20032, 17941, 44731, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48205, 62, 16668, 25261, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 22682, 1634, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2774, 62, 2301, 220, 220, 220, 220, 220, 41876, 599, 364, 62, 2301, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2774, 62, 2301, 62, 5239, 41876, 599, 364, 62, 2301, 83, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 22682, 1634, 62, 15252, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 285, 85, 62, 19276, 62, 2539, 41876, 599, 364, 62, 2539, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 651, 62, 22682, 1634, 62, 15252, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 17953, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1177, 62, 8807, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 22682, 1634, 62, 15252, 8, 41876, 4526, 37, 5390, 537, 62, 19276, 62, 2301, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 19276, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 318, 62, 9186, 220, 220, 220, 220, 796, 318, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 21628, 62, 16129, 6739, 628, 198, 220, 220, 220, 285, 85, 62, 19276, 62, 2539, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 22682, 1634, 62, 15252, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 22682, 1634, 62, 15252, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 17953, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 17953, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 19276, 62, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 285, 85, 62, 19276, 62, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 1177, 62, 8807, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 1177, 62, 8807, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 2774, 62, 2539, 62, 282, 1493, 62, 1069, 1023, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 2774, 62, 2539, 62, 22437, 62, 1662, 62, 38476, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 4839, 62, 1177, 62, 8807, 220, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 4839, 62, 66, 590, 992, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 13, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 62, 83, 3064, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 40985, 62, 1525, 13, 198, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 33678, 13, 628, 220, 220, 220, 42865, 25, 2376, 62, 22682, 1634, 62, 15252, 41876, 4526, 37, 5390, 537, 62, 19276, 62, 2301, 13, 628, 220, 220, 220, 2376, 62, 22682, 1634, 62, 15252, 796, 651, 62, 22682, 1634, 62, 15252, 7, 6739, 628, 220, 220, 220, 2376, 62, 22682, 1634, 62, 15252, 3784, 33678, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 3919, 62, 10414, 2533, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 39948, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_base DEFINITION ABSTRACT PUBLIC INHERITING FROM cl_ci_test_scan CREATE PUBLIC . PUBLIC SECTION. CONSTANTS: BEGIN OF c_code, error TYPE sci_errc VALUE '100', warning TYPE sci_errc VALUE '101', notification TYPE sci_errc VALUE '102', END OF c_code, c_code_not_maintained TYPE sci_errc VALUE '106', BEGIN OF c_docs_path, main TYPE string VALUE 'https://github.com/SAP/code-pal-for-abap/blob/master/docs/' ##NO_TEXT, checks TYPE string VALUE 'https://github.com/SAP/code-pal-for-abap/blob/master/docs/checks/' ##NO_TEXT, END OF c_docs_path. DATA: BEGIN OF settings READ-ONLY, pseudo_comment TYPE sci_pcom, disable_on_prodcode_selection TYPE abap_bool, disable_on_testcode_selection TYPE abap_bool, disable_threshold_selection TYPE abap_bool, object_created_on TYPE creationdt, threshold TYPE ycicc_threshold, prio TYPE ycicc_message_kind, apply_on_productive_code TYPE ycicc_productive_code, apply_on_test_code TYPE ycicc_testcode, documentation TYPE c LENGTH 1000, END OF settings . METHODS constructor . METHODS get_attributes REDEFINITION . METHODS if_ci_test~display_documentation REDEFINITION . METHODS if_ci_test~query_attributes REDEFINITION . METHODS put_attributes REDEFINITION . METHODS run REDEFINITION . PROTECTED SECTION. DATA check_configurations TYPE y_if_clean_code_manager=>check_configurations . DATA check_name TYPE seoclsname . DATA clean_code_exemption_handler TYPE REF TO y_exemption_handler . DATA clean_code_manager TYPE REF TO y_if_clean_code_manager . DATA is_testcode TYPE abap_bool . DATA ref_scan_manager TYPE REF TO y_if_scan_manager . DATA statistics TYPE REF TO y_if_scan_statistics . DATA test_code_detector TYPE REF TO y_if_testcode_detector . DATA use_default_attributes TYPE abap_bool VALUE abap_true ##NO_TEXT. DATA attributes_maintained TYPE abap_bool . METHODS check_start_conditions RAISING ycx_object_not_processed ycx_object_is_exempted . METHODS detect_check_configuration IMPORTING !threshold TYPE int4 !include TYPE sobj_name RETURNING VALUE(result) TYPE y_if_clean_code_manager=>check_configuration . METHODS execute_check . METHODS get_code IMPORTING !message_prio TYPE sychar01 RETURNING VALUE(result) TYPE sci_errc . METHODS inspect_tokens ABSTRACT IMPORTING !structure TYPE sstruc OPTIONAL !index TYPE i OPTIONAL !statement TYPE sstmnt OPTIONAL . METHODS raise_error IMPORTING object_type TYPE trobjtype DEFAULT c_type_include statement_level TYPE stmnt_levl statement_index TYPE int4 statement_from TYPE int4 error_counter TYPE sci_errcnt OPTIONAL error_priority TYPE sychar01 parameter_01 TYPE csequence OPTIONAL parameter_02 TYPE csequence OPTIONAL parameter_03 TYPE csequence OPTIONAL parameter_04 TYPE csequence OPTIONAL is_include_specific TYPE sci_inclspec DEFAULT ' ' additional_information TYPE xstring OPTIONAL checksum TYPE int4 OPTIONAL pseudo_comments TYPE t_comments OPTIONAL . METHODS get_column_abs REDEFINITION . METHODS get_column_rel REDEFINITION . METHODS get_include REDEFINITION . METHODS get_line_abs REDEFINITION . METHODS get_line_column_abs REDEFINITION . METHODS get_line_column_rel REDEFINITION . METHODS get_line_rel REDEFINITION . METHODS get_token_abs REDEFINITION . METHODS get_token_rel REDEFINITION . METHODS keyword REDEFINITION . PRIVATE SECTION. METHODS do_attributes_exist RETURNING VALUE(result) TYPE abap_bool . METHODS instantiate_objects . METHODS enable_rfc. ENDCLASS. CLASS Y_CHECK_BASE IMPLEMENTATION. METHOD check_start_conditions. IF ref_scan_manager->is_scan_ok( ) = abap_false. RAISE EXCEPTION TYPE ycx_object_not_processed. ENDIF. IF clean_code_exemption_handler->is_object_exempted( object_name = object_name object_type = object_type ) = abap_true. RAISE EXCEPTION TYPE ycx_object_is_exempted. ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). enable_rfc( ). settings-object_created_on = '20190101'. settings-prio = 'E'. settings-threshold = 5. settings-apply_on_productive_code = abap_true. settings-apply_on_test_code = abap_true. settings-documentation = |{ c_docs_path-main }check_documentation.md|. has_attributes = do_attributes_exist( ). INSERT VALUE #( test = me->myname code = c_code_not_maintained kind = cl_ci_test_root=>c_note text = 'Maintain Attributes for the Code Inspector Check!'(106) ) INTO TABLE me->scimessages[]. ENDMETHOD. METHOD detect_check_configuration. DATA config TYPE y_if_clean_code_manager=>check_configuration. DATA(object_creation_date) = NEW y_object_creation_date( ). DATA(crt_date) = object_creation_date->y_if_object_creation_date~get_program_create_date( include ). LOOP AT check_configurations INTO config WHERE object_creation_date LE crt_date AND threshold LE threshold. IF is_testcode = abap_true AND config-apply_on_testcode = abap_false. CONTINUE. ELSEIF is_testcode = abap_false AND config-apply_on_productive_code = abap_false. CONTINUE. ENDIF. IF result IS INITIAL. result = config. ELSEIF result-prio = config-prio AND result-threshold GE config-threshold. result = config. ELSEIF result-threshold LE config-threshold AND ( ( result-prio = 'W' AND config-prio = 'E' ) OR ( result-prio = 'N' AND config-prio = 'E' ) OR ( result-prio = 'N' AND config-prio = 'W' ) ). result = config. ENDIF. ENDLOOP. ENDMETHOD. METHOD do_attributes_exist. DATA profile_manager TYPE REF TO object. DATA profiles_ref TYPE REF TO data. FIELD-SYMBOLS <profiles> TYPE ANY TABLE. TRY. attributes_ok = abap_false. CREATE DATA profiles_ref TYPE STANDARD TABLE OF (`YTAB_PROFILES`) WITH DEFAULT KEY. ASSIGN profiles_ref->* TO <profiles>. CREATE OBJECT profile_manager TYPE (`Y_PROFILE_MANAGER`). DATA(ptab) = VALUE abap_parmbind_tab( ( name = 'USERNAME' kind = cl_abap_objectdescr=>exporting value = REF #( sy-uname ) ) ( name = 'RESULT' kind = cl_abap_objectdescr=>returning value = REF #( <profiles> ) ) ). CALL METHOD profile_manager->('Y_IF_PROFILE_MANAGER~SELECT_PROFILES') PARAMETER-TABLE ptab. IF <profiles> IS NOT ASSIGNED. RETURN. ENDIF. IF lines( <profiles> ) > 0. result = abap_false. ELSE. attributes_ok = abap_true. result = abap_true. ENDIF. CATCH cx_sy_create_data_error cx_sy_create_object_error ycx_entry_not_found. attributes_ok = abap_true. result = abap_true. ENDTRY. ENDMETHOD. METHOD execute_check. LOOP AT ref_scan_manager->get_structures( ) ASSIGNING FIELD-SYMBOL(<structure>) WHERE stmnt_type EQ scan_struc_stmnt_type-form OR stmnt_type EQ scan_struc_stmnt_type-method OR stmnt_type EQ scan_struc_stmnt_type-function OR stmnt_type EQ scan_struc_stmnt_type-module OR type EQ scan_struc_type-event. is_testcode = test_code_detector->is_testcode( <structure> ). TRY. DATA(check_configuration) = check_configurations[ apply_on_testcode = abap_true ]. CATCH cx_sy_itab_line_not_found. IF is_testcode EQ abap_true. CONTINUE. ENDIF. ENDTRY. DATA(index) = <structure>-stmnt_from. LOOP AT ref_scan_manager->get_statements( ) ASSIGNING FIELD-SYMBOL(<statement>) FROM <structure>-stmnt_from TO <structure>-stmnt_to. inspect_tokens( index = index structure = <structure> statement = <statement> ). index = index + 1. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD get_attributes. DATA check_configuration TYPE y_if_clean_code_manager=>check_configuration. READ TABLE check_configurations INTO check_configuration INDEX 1. IF sy-subrc <> 0. check_configuration-apply_on_productive_code = settings-apply_on_productive_code. check_configuration-apply_on_testcode = settings-apply_on_test_code. check_configuration-object_creation_date = settings-object_created_on. check_configuration-prio = settings-prio. check_configuration-threshold = settings-threshold. APPEND check_configuration TO check_configurations. ENDIF. EXPORT object_creation_date = check_configuration-object_creation_date message_severity = check_configuration-prio threshold = check_configuration-threshold apply_on_productive_code = check_configuration-apply_on_productive_code apply_on_testcode = check_configuration-apply_on_testcode TO DATA BUFFER p_attributes. ENDMETHOD. METHOD get_code. CASE message_prio. WHEN c_error. result = c_code-error. WHEN c_warning. result = c_code-warning. WHEN c_note. result = c_code-notification. WHEN OTHERS. result = c_code_not_maintained. ENDCASE. ENDMETHOD. METHOD get_column_abs. DATA(tokens) = ref_scan_manager->get_tokens( ). IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX p_n ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc EQ 0 AND <token>-row <> 0. p_result = <token>-col. RETURN. ENDIF. SUBTRACT 1 FROM p_n. ENDDO. ENDMETHOD. METHOD get_column_rel. DATA(index) = statement_wa-from + p_n - 1. CHECK index <= statement_wa-to. DATA(tokens) = ref_scan_manager->get_tokens( ). IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX index ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc EQ 0 AND <token>-row <> 0. p_result = <token>-col. RETURN. ENDIF. SUBTRACT 1 FROM index. ENDDO. ENDMETHOD. METHOD get_include. DATA: l_levels_wa LIKE LINE OF ref_scan->levels, l_level TYPE i. IF p_level IS SUPPLIED. l_level = p_level. ELSE. l_level = statement_wa-level. ENDIF. DO. READ TABLE ref_scan_manager->get_levels( ) INDEX l_level INTO l_levels_wa. IF sy-subrc NE 0. RETURN. ENDIF. IF l_levels_wa-type = 'P'. p_result = l_levels_wa-name. RETURN. ENDIF. l_level = l_levels_wa-level. ENDDO. ENDMETHOD. METHOD get_line_abs. DATA(tokens) = ref_scan_manager->get_tokens( ). IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX p_n ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc EQ 0 AND <token>-row <> 0. p_result = <token>-row. RETURN. ENDIF. SUBTRACT 1 FROM p_n. ENDDO. ENDMETHOD. METHOD get_line_column_abs. DATA(tokens) = ref_scan_manager->get_tokens( ). IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX p_n ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc EQ 0 AND <token>-row <> 0. p_column = <token>-col. p_line = <token>-row. RETURN. ENDIF. SUBTRACT 1 FROM p_n. ENDDO. ENDMETHOD. METHOD get_line_column_rel. DATA(tokens) = ref_scan_manager->get_tokens( ). IF lines( tokens ) = 0. RETURN. ENDIF. p_n = statement_wa-from + p_n - 1. DO. READ TABLE tokens INDEX p_n ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc EQ 0 AND <token>-row <> 0. p_column = <token>-col. p_line = <token>-row. RETURN. ENDIF. SUBTRACT 1 FROM p_n. ENDDO. ENDMETHOD. METHOD get_line_rel. DATA(index) = statement_wa-from + p_n - 1. CHECK index <= statement_wa-to. DATA(tokens) = ref_scan_manager->get_tokens( ). IF lines( tokens ) = 0. RETURN. ENDIF. DO. READ TABLE tokens INDEX index ASSIGNING FIELD-SYMBOL(<token>). IF sy-subrc EQ 0 AND <token>-row <> 0. p_result = <token>-row. RETURN. ENDIF. SUBTRACT 1 FROM index. ENDDO. ENDMETHOD. METHOD get_token_abs. READ TABLE ref_scan_manager->get_tokens( ) INDEX p_n INTO token_wa. IF sy-subrc EQ 0. p_result = token_wa-str. ENDIF. ENDMETHOD. METHOD get_token_rel. DATA: l_index TYPE i. l_index = statement_wa-from + p_n - 1. IF l_index > statement_wa-to. RETURN. ENDIF. READ TABLE ref_scan_manager->get_tokens( ) INDEX l_index INTO token_wa. p_result = token_wa-str. ENDMETHOD. METHOD if_ci_test~display_documentation. CALL FUNCTION 'CALL_BROWSER' EXPORTING url = settings-documentation window_name = ' ' new_window = 'X' EXCEPTIONS frontend_not_supported = 1 frontend_error = 2 prog_not_found = 3 no_batch = 4 unspecified_error = 5 OTHERS = 6. 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 if_ci_test~query_attributes. DATA sci_attributes TYPE sci_atttab. DATA title(75) TYPE c. DATA message(72) TYPE c. READ TABLE check_configurations INTO DATA(check_configuration) INDEX 1. IF sy-subrc <> 0 AND use_default_attributes = abap_true. check_configuration-object_creation_date = settings-object_created_on. check_configuration-prio = settings-prio. check_configuration-apply_on_productive_code = settings-apply_on_productive_code. check_configuration-apply_on_testcode = settings-apply_on_test_code. check_configuration-threshold = settings-threshold. ENDIF. INSERT VALUE #( kind = '' ref = REF #( check_configuration-object_creation_date ) text = 'Consider Objects created after'(200) ) INTO TABLE sci_attributes. INSERT VALUE #( kind = '' ref = REF #( check_configuration-prio ) text = 'Message Severity'(201) ) INTO TABLE sci_attributes. IF settings-disable_threshold_selection = abap_false. INSERT VALUE #( kind = '' ref = REF #( check_configuration-threshold ) text = 'Threshold'(203) ) INTO TABLE sci_attributes. ENDIF. IF settings-disable_on_prodcode_selection = abap_false. INSERT VALUE #( kind = '' ref = REF #( check_configuration-apply_on_productive_code ) text = 'Apply on Productive Code'(204) ) INTO TABLE sci_attributes. ENDIF. IF settings-disable_on_testcode_selection = abap_false. INSERT VALUE #( kind = '' ref = REF #( check_configuration-apply_on_testcode ) text = 'Apply on Testcode'(202) ) INTO TABLE sci_attributes. ENDIF. title = description. attributes_ok = abap_false. WHILE attributes_ok = abap_false. IF cl_ci_query_attributes=>generic( p_name = name p_title = title p_attributes = sci_attributes p_message = message p_display = p_display ) = abap_true. attributes_ok = abap_true. RETURN. ENDIF. IF check_configuration-apply_on_productive_code = abap_false AND check_configuration-apply_on_testcode = abap_false. message = 'Choose the Type of Code to be checked'(300). ELSEIF check_configuration-prio IS INITIAL. message = 'Choose a Message Severity'(301). ELSE. IF check_configuration-object_creation_date = '00000000'. check_configuration-object_creation_date = '19000101'. ENDIF. attributes_ok = abap_true. ENDIF. ENDWHILE. CLEAR check_configurations. APPEND check_configuration TO check_configurations. use_default_attributes = abap_false. ENDMETHOD. METHOD instantiate_objects. IF ref_scan_manager IS NOT BOUND. ref_scan_manager = NEW lcl_ref_scan_manager( ). IF ref_scan IS INITIAL. get( ). ENDIF. ENDIF. ref_scan_manager->set_ref_scan( ref_scan ). IF clean_code_manager IS NOT BOUND. clean_code_manager = NEW y_clean_code_manager( ). ENDIF. IF clean_code_exemption_handler IS NOT BOUND. clean_code_exemption_handler = NEW y_exemption_handler( ). ENDIF. IF test_code_detector IS NOT BOUND. test_code_detector = NEW lcl_test_code_detector( ). ENDIF. test_code_detector->clear( ). test_code_detector->set_ref_scan_manager( ref_scan_manager ). IF statistics IS NOT BOUND. statistics = NEW lcl_statistics( ). ENDIF. IF lines( check_configurations ) = 1 AND check_configurations[ 1 ]-object_creation_date = '00000000'. CLEAR check_configurations. ENDIF. ENDMETHOD. METHOD keyword. IF statement_wa-type = 'C'. p_result = 'COMPUTE'. RETURN. ENDIF. READ TABLE ref_scan_manager->get_tokens( ) INDEX statement_wa-from INTO token_wa. p_result = token_wa-str. ENDMETHOD. METHOD put_attributes. DATA check_configuration TYPE y_if_clean_code_manager=>check_configuration. attributes_maintained = abap_true. TRY. IMPORT object_creation_date = check_configuration-object_creation_date message_severity = check_configuration-prio threshold = check_configuration-threshold apply_on_productive_code = check_configuration-apply_on_productive_code apply_on_testcode = check_configuration-apply_on_testcode FROM DATA BUFFER p_attributes. APPEND check_configuration TO check_configurations. CATCH cx_root. attributes_maintained = abap_false. ENDTRY. ENDMETHOD. METHOD raise_error. statistics->collect( kind = error_priority pc = NEW lcl_pseudo_comment_detector( )->lif_pseudo_comment_detector~is_pseudo_comment( ref_scan_manager = ref_scan_manager scimessages = scimessages test = me->myname code = get_code( error_priority ) suppress = settings-pseudo_comment position = statement_index ) ). IF cl_abap_typedescr=>describe_by_object_ref( ref_scan_manager )->get_relative_name( ) EQ 'LCL_REF_SCAN_MANAGER'. inform( p_sub_obj_type = object_type p_sub_obj_name = get_include( p_level = statement_level ) p_position = statement_index p_line = get_line_abs( statement_from ) p_column = get_column_abs( statement_from ) p_errcnt = error_counter p_kind = error_priority p_test = me->myname p_code = get_code( error_priority ) p_suppress = settings-pseudo_comment p_param_1 = parameter_01 p_param_2 = parameter_02 p_param_3 = parameter_03 p_param_4 = parameter_04 p_inclspec = is_include_specific p_detail = additional_information p_checksum_1 = checksum p_comments = pseudo_comments ). ENDIF. ENDMETHOD. METHOD run. instantiate_objects( ). IF attributes_maintained = abap_false AND has_attributes = abap_true. raise_error( statement_level = 1 statement_index = 1 statement_from = 1 error_priority = '' ). FREE ref_scan_manager. RETURN. ENDIF. DATA profile_configurations TYPE y_if_clean_code_manager=>check_configurations. TRY. check_start_conditions( ). profile_configurations = clean_code_manager->read_check_customizing( username = sy-uname checkid = myname object_name = object_name object_type = object_type ). CATCH ycx_no_check_customizing. IF profile_configurations IS INITIAL AND attributes_ok = abap_false. FREE ref_scan_manager. RETURN. ELSEIF attributes_ok = abap_true. profile_configurations = check_configurations. ENDIF. CATCH ycx_object_not_processed ycx_object_is_exempted. FREE ref_scan_manager. RETURN. ENDTRY. IF lines( check_configurations ) > 0. DELETE check_configurations WHERE object_creation_date > clean_code_manager->calculate_obj_creation_date( object_name = object_name object_type = object_type ). ENDIF. IF lines( profile_configurations ) > 0. check_configurations = profile_configurations. ENDIF. execute_check( ). FREE ref_scan_manager. ENDMETHOD. METHOD enable_rfc. ASSIGN me->('remote_rfc_enabled') TO FIELD-SYMBOL(<remote_rfc_enabled>). IF sy-subrc = 0. <remote_rfc_enabled> = abap_true. ENDIF. ASSIGN me->('remote_enabled') TO FIELD-SYMBOL(<remote_enabled>). IF sy-subrc = 0. <remote_enabled> = abap_true. ENDIF. UNASSIGN: <remote_rfc_enabled>, <remote_enabled>. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 9122, 62, 8692, 5550, 20032, 17941, 9564, 18601, 10659, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 537, 62, 979, 62, 9288, 62, 35836, 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, 8189, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 220, 220, 220, 220, 220, 220, 220, 41876, 20681, 62, 263, 6015, 26173, 8924, 705, 3064, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 6509, 220, 220, 220, 220, 220, 41876, 20681, 62, 263, 6015, 26173, 8924, 705, 8784, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 14483, 41876, 20681, 62, 263, 6015, 26173, 8924, 705, 15377, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 8189, 11, 198, 220, 220, 220, 220, 220, 269, 62, 8189, 62, 1662, 62, 76, 2913, 1328, 41876, 20681, 62, 263, 6015, 26173, 8924, 705, 15801, 3256, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 31628, 62, 6978, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1388, 220, 220, 41876, 4731, 26173, 8924, 705, 5450, 1378, 12567, 13, 785, 14, 50, 2969, 14, 8189, 12, 18596, 12, 1640, 12, 397, 499, 14, 2436, 672, 14, 9866, 14, 31628, 14, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8794, 41876, 4731, 26173, 8924, 705, 5450, 1378, 12567, 13, 785, 14, 50, 2969, 14, 8189, 12, 18596, 12, 1640, 12, 397, 499, 14, 2436, 672, 14, 9866, 14, 31628, 14, 42116, 14, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 31628, 62, 6978, 13, 628, 220, 220, 220, 42865, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 6460, 20832, 12, 1340, 11319, 11, 198, 220, 220, 220, 220, 220, 220, 220, 24543, 62, 23893, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 20681, 62, 79, 785, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15560, 62, 261, 62, 1676, 67, 8189, 62, 49283, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15560, 62, 261, 62, 9288, 8189, 62, 49283, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 15560, 62, 400, 10126, 62, 49283, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 25598, 62, 261, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 6282, 28664, 11, 198, 220, 220, 220, 220, 220, 220, 220, 11387, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 66, 44240, 62, 400, 10126, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1293, 78, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 66, 44240, 62, 20500, 62, 11031, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4174, 62, 261, 62, 27781, 62, 8189, 220, 220, 220, 220, 220, 41876, 331, 66, 44240, 62, 27781, 62, 8189, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4174, 62, 261, 62, 9288, 62, 8189, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 66, 44240, 62, 9288, 8189, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10314, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 406, 49494, 8576, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 6460, 764, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 13812, 62, 22897, 341, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 22766, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1234, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 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, 628, 220, 220, 220, 42865, 2198, 62, 11250, 20074, 41876, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 14804, 9122, 62, 11250, 20074, 764, 198, 220, 220, 220, 42865, 2198, 62, 3672, 41876, 384, 420, 7278, 3672, 764, 198, 220, 220, 220, 42865, 3424, 62, 8189, 62, 1069, 11221, 62, 30281, 41876, 4526, 37, 5390, 331, 62, 1069, 11221, 62, 30281, 764, 198, 220, 220, 220, 42865, 3424, 62, 8189, 62, 37153, 41876, 4526, 37, 5390, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 764, 198, 220, 220, 220, 42865, 318, 62, 9288, 8189, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 42865, 1006, 62, 35836, 62, 37153, 41876, 4526, 37, 5390, 331, 62, 361, 62, 35836, 62, 37153, 764, 198, 220, 220, 220, 42865, 7869, 41876, 4526, 37, 5390, 331, 62, 361, 62, 35836, 62, 14269, 3969, 764, 198, 220, 220, 220, 42865, 1332, 62, 8189, 62, 15255, 9250, 41876, 4526, 37, 5390, 331, 62, 361, 62, 9288, 8189, 62, 15255, 9250, 764, 198, 220, 220, 220, 42865, 779, 62, 12286, 62, 1078, 7657, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 7942, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 12608, 62, 76, 2913, 1328, 41876, 450, 499, 62, 30388, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 9688, 62, 17561, 1756, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 15252, 62, 1662, 62, 14681, 276, 198, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 data declarations * generation date: 24.02.2021 at 23:07:22 * view maintenance generator version: #001407# *---------------------------------------------------------------------* *...processing: ZZT_ABAP_GEN....................................* DATA: BEGIN OF STATUS_ZZT_ABAP_GEN . "state vector INCLUDE STRUCTURE VIMSTATUS. DATA: END OF STATUS_ZZT_ABAP_GEN . CONTROLS: TCTRL_ZZT_ABAP_GEN TYPE TABLEVIEW USING SCREEN '0001'. *.........table declarations:.................................* TABLES: *ZZT_ABAP_GEN . TABLES: ZZT_ABAP_GEN . * general table data declarations.............. INCLUDE LSVIMTDT .
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1570, 3519, 1366, 31713, 198, 9, 220, 220, 5270, 3128, 25, 1987, 13, 2999, 13, 1238, 2481, 379, 2242, 25, 2998, 25, 1828, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 9, 986, 36948, 25, 1168, 57, 51, 62, 6242, 2969, 62, 35353, 8864, 1106, 9, 198, 26947, 25, 220, 347, 43312, 3963, 15486, 2937, 62, 30148, 51, 62, 6242, 2969, 62, 35353, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 220, 220, 366, 5219, 15879, 198, 220, 220, 220, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 19269, 18415, 11335, 569, 3955, 35744, 2937, 13, 198, 26947, 25, 220, 23578, 3963, 15486, 2937, 62, 30148, 51, 62, 6242, 2969, 62, 35353, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198, 10943, 5446, 3535, 50, 25, 309, 4177, 7836, 62, 30148, 51, 62, 6242, 2969, 62, 35353, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 43679, 28206, 1294, 2751, 6374, 2200, 1677, 705, 18005, 4458, 198, 9, 34617, 11487, 31713, 25, 27754, 34617, 9, 198, 5603, 9148, 1546, 25, 1635, 30148, 51, 62, 6242, 2969, 62, 35353, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198, 5603, 9148, 1546, 25, 1168, 57, 51, 62, 6242, 2969, 62, 35353, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198, 198, 9, 2276, 3084, 1366, 31713, 2109, 16317, 198, 220, 3268, 5097, 52, 7206, 30948, 53, 3955, 21016, 51, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,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HERITING FROM zcl_aoc_super CREATE PUBLIC. PUBLIC SECTION. METHODS constructor. METHODS check REDEFINITION. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_05 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lt_code TYPE string_table, lv_line TYPE token_row, lv_bad TYPE c. FIELD-SYMBOLS: <ls_level> LIKE LINE OF io_scan->levels, <lv_code> LIKE LINE OF lt_code. LOOP AT io_scan->levels ASSIGNING <ls_level> WHERE type = io_scan->gc_level-program. lt_code = get_source( <ls_level> ). LOOP AT lt_code ASSIGNING <lv_code>. lv_line = sy-tabix. cl_abap_file_utilities=>check_string_7bit_ascii( EXPORTING string = <lv_code> IMPORTING bad_chars = lv_bad ). IF lv_bad <> space. inform( p_sub_obj_name = <ls_level>-name p_line = lv_line p_kind = mv_errty p_test = myname p_code = '001' ). ENDIF. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). version = '001'. position = '005'. has_attributes = abap_true. attributes_ok = abap_true. enable_rfc( ). insert_scimessage( iv_code = '001' iv_text = 'Contains non 7 bit ASCII'(m01) ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 2713, 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, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 2713, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2198, 13, 198, 198, 9, 450, 499, 11505, 7376, 4657, 198, 9, 3740, 1378, 12567, 13, 785, 14, 75, 5406, 79, 14, 397, 499, 11505, 7376, 4657, 198, 9, 17168, 13789, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 8189, 41876, 4731, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 1370, 41876, 11241, 62, 808, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 14774, 220, 41876, 269, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 5715, 29, 34178, 48920, 3963, 33245, 62, 35836, 3784, 46170, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1279, 6780, 62, 8189, 29, 220, 34178, 48920, 3963, 300, 83, 62, 8189, 13, 628, 198, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 46170, 24994, 3528, 15871, 1279, 7278, 62, 5715, 29, 33411, 2099, 796, 33245, 62, 35836, 3784, 36484, 62, 5715, 12, 23065, 13, 198, 220, 220, 220, 220, 220, 300, 83, 62, 8189, 796, 651, 62, 10459, 7, 1279, 7278, 62, 5715, 29, 6739, 198, 220, 220, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 8189, 24994, 3528, 15871, 1279, 6780, 62, 8189, 28401, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 1370, 796, 827, 12, 8658, 844, 13, 628, 220, 220, 220, 220, 220, 220, 220, 537, 62, 397, 499, 62, 7753, 62, 315, 2410, 14804, 9122, 62, 8841, 62, 22, 2545, 62, 292, 979, 72, 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, 4731, 220, 220, 220, 796, 1279, 6780, 62, 8189, 29, 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, 2089, 62, 354, 945, 796, 300, 85, 62, 14774, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 300, 85, 62, 14774, 1279, 29, 2272, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4175, 7, 279, 62, 7266, 62, 26801, 62, 3672, 796, 1279, 7278, 62, 5715, 29, 12, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 1370, 220, 220, 220, 220, 220, 220, 220, 220, 796, 300, 85, 62, 1370, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 11031, 220, 220, 220, 220, 220, 220, 220, 220, 796, 285, 85, 62, 8056, 774, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 9288, 220, 220, 220, 220, 220, 220, 220, 220, 796, 616, 3672, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 8189, 220, 220, 220, 220, 220, 220, 220, 220, 796, 705, 8298, 6, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 2196, 220, 796, 705, 8298, 4458, 198, 220, 220, 220, 2292, 796, 705, 22544, 4458, 628, 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, 7139, 62, 81, 16072, 7, 6739, 198, 220, 220, 220, 7550, 62, 1416, 320, 7589, 7, 198, 220,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_clock DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL. PRIVATE SECTION. DATA cut TYPE REF TO zcl_clock_example. METHODS: on_the_hour FOR TESTING, past_the_hour FOR TESTING, adding_a_few_minutes FOR TESTING, adding_zero_minutes FOR TESTING, adding_over_an_hour FOR TESTING, adding_more_than_two_hours_w_c FOR TESTING, adding_more_than_two_days FOR TESTING, wrap_around_at_midnight FOR TESTING, subtract_minutes FOR TESTING, subtract_more_than_two_hours FOR TESTING, subtract_more_than_two_hours_w FOR TESTING, subtract_more_than_two_days FOR TESTING, wrap_around_backwards FOR TESTING, wrap_around_day FOR TESTING, wrap_around_day_backwards FOR TESTING, equivalent_clocks FOR TESTING, inequivalent_clocks FOR TESTING, equivalent_clocks_1 FOR TESTING, equivalent_clocks_2 FOR TESTING, equivalent_clocks_3 FOR TESTING, equivalent_clocks_4 FOR TESTING, equivalent_clocks_5 FOR TESTING, equivalent_clocks_6 FOR TESTING, hours_rollover FOR TESTING, minutes_rollover FOR TESTING, hours_and_minutes_rollover FOR TESTING, negative_hours_rollover FOR TESTING, negative_minutes_rollover FOR TESTING, negative_hours_and_minutes FOR TESTING. ENDCLASS. CLASS ltcl_clock IMPLEMENTATION. METHOD on_the_hour. cut = NEW zcl_clock_example( 8 ). cl_abap_unit_assert=>assert_equals( exp = '08:00' act = cut->get( ) ). ENDMETHOD. METHOD past_the_hour. cut = NEW zcl_clock_example( hours = 11 minutes = 9 ). cl_abap_unit_assert=>assert_equals( exp = '11:09' act = cut->get( ) ). ENDMETHOD. METHOD adding_a_few_minutes. cut = NEW zcl_clock_example( 10 ). cut->add( 3 ). cl_abap_unit_assert=>assert_equals( exp = '10:03' act = cut->get( ) ). ENDMETHOD. METHOD adding_zero_minutes. cut = NEW zcl_clock_example( hours = 6 minutes = 41 ). cut->add( 0 ). cl_abap_unit_assert=>assert_equals( exp = '06:41' act = cut->get( ) ). ENDMETHOD. METHOD adding_over_an_hour. cut = NEW zcl_clock_example( 10 ). cut->add( 61 ). cl_abap_unit_assert=>assert_equals( exp = '11:01' act = cut->get( ) ). ENDMETHOD. METHOD adding_more_than_two_hours_w_c. cut = NEW zcl_clock_example( hours = 0 minutes = 45 ). cut->add( 160 ). cl_abap_unit_assert=>assert_equals( exp = '03:25' act = cut->get( ) ). ENDMETHOD. METHOD adding_more_than_two_days. cut = NEW zcl_clock_example( hours = 1 minutes = 1 ). cut->add( 3500 ). cl_abap_unit_assert=>assert_equals( exp = '11:21' act = cut->get( ) ). ENDMETHOD. METHOD wrap_around_at_midnight. cut = NEW zcl_clock_example( hours = 23 minutes = 30 ). cut->add( 60 ). cl_abap_unit_assert=>assert_equals( exp = '00:30' act = cut->get( ) ). ENDMETHOD. METHOD subtract_minutes. cut = NEW zcl_clock_example( 10 ). cut->sub( 90 ). cl_abap_unit_assert=>assert_equals( exp = '08:30' act = cut->get( ) ). ENDMETHOD. METHOD subtract_more_than_two_hours. cut = NEW zcl_clock_example( hours = 6 minutes = 15 ). cut->sub( 160 ). cl_abap_unit_assert=>assert_equals( exp = '03:35' act = cut->get( ) ). ENDMETHOD. METHOD subtract_more_than_two_hours_w. cut = NEW zcl_clock_example( hours = 6 minutes = 15 ). cut->add( -160 ). cl_abap_unit_assert=>assert_equals( exp = '03:35' act = cut->get( ) ). ENDMETHOD. METHOD subtract_more_than_two_days. cut = NEW zcl_clock_example( hours = 2 minutes = 20 ). cut->sub( 3000 ). cl_abap_unit_assert=>assert_equals( exp = '00:20' act = cut->get( ) ). ENDMETHOD. METHOD wrap_around_backwards. cut = NEW zcl_clock_example( hours = 0 minutes = 30 ). cut->sub( 60 ). cl_abap_unit_assert=>assert_equals( exp = '23:30' act = cut->get( ) ). ENDMETHOD. METHOD wrap_around_day. cut = NEW zcl_clock_example( hours = 5 minutes = 32 ). cut->add( 25 * 60 ). cl_abap_unit_assert=>assert_equals( exp = '06:32' act = cut->get( ) ). ENDMETHOD. METHOD wrap_around_day_backwards. cut = NEW zcl_clock_example( hours = 5 minutes = 32 ). cut->sub( 25 * 60 ). cl_abap_unit_assert=>assert_equals( exp = '04:32' act = cut->get( ) ). ENDMETHOD. METHOD equivalent_clocks. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock_example( hours = 15 minutes = 37 )->get( ) act = NEW zcl_clock_example( hours = 15 minutes = 37 )->get( ) ). ENDMETHOD. METHOD inequivalent_clocks. cl_abap_unit_assert=>assert_differs( exp = NEW zcl_clock_example( hours = 1 minutes = 1 )->get( ) act = NEW zcl_clock_example( hours = 18 minutes = 32 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_1. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock_example( hours = 3 minutes = 11 )->get( ) act = NEW zcl_clock_example( hours = 99 minutes = 11 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_2. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock_example( hours = 22 minutes = 40 )->get( ) act = NEW zcl_clock_example( hours = -2 minutes = 40 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_3. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock_example( hours = 17 minutes = 3 )->get( ) act = NEW zcl_clock_example( hours = -31 minutes = 3 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_4. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock_example( hours = 2 minutes = 2 )->get( ) act = NEW zcl_clock_example( hours = 2 minutes = 4322 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_5. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock_example( hours = 2 minutes = 40 )->get( ) act = NEW zcl_clock_example( hours = 3 minutes = -20 )->get( ) ). ENDMETHOD. METHOD equivalent_clocks_6. cl_abap_unit_assert=>assert_equals( exp = NEW zcl_clock_example( hours = 7 minutes = 32 )->get( ) act = NEW zcl_clock_example( hours = -12 minutes = -268 )->get( ) ). ENDMETHOD. METHOD hours_rollover. cl_abap_unit_assert=>assert_equals( exp = '04:00' act = NEW zcl_clock_example( 100 )->get( ) ). ENDMETHOD. METHOD minutes_rollover. cl_abap_unit_assert=>assert_equals( exp = '04:43' act = NEW zcl_clock_example( hours = 0 minutes = 1723 )->get( ) ). ENDMETHOD. METHOD hours_and_minutes_rollover. cl_abap_unit_assert=>assert_equals( exp = '00:00' act = NEW zcl_clock_example( hours = 72 minutes = 8640 )->get( ) ). ENDMETHOD. METHOD negative_hours_rollover. cl_abap_unit_assert=>assert_equals( exp = '05:00' act = NEW zcl_clock_example( -91 )->get( ) ). ENDMETHOD. METHOD negative_minutes_rollover. cl_abap_unit_assert=>assert_equals( exp = '16:40' act = NEW zcl_clock_example( hours = 1 minutes = -4820 )->get( ) ). ENDMETHOD. METHOD negative_hours_and_minutes. cl_abap_unit_assert=>assert_equals( exp = '22:10' act = NEW zcl_clock_example( hours = -121 minutes = -5810 )->get( ) ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 15750, 5550, 20032, 17941, 7473, 43001, 2751, 45698, 42, 49277, 43638, 5805, 7597, 360, 4261, 6234, 6006, 9863, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 2005, 41876, 4526, 37, 5390, 1976, 565, 62, 15750, 62, 20688, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 319, 62, 1169, 62, 9769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 1613, 62, 1169, 62, 9769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 64, 62, 32146, 62, 1084, 1769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 22570, 62, 1084, 1769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 2502, 62, 272, 62, 9769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 3549, 62, 14813, 62, 11545, 62, 24425, 62, 86, 62, 66, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4375, 62, 3549, 62, 14813, 62, 11545, 62, 12545, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 14441, 62, 14145, 62, 265, 62, 13602, 3847, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 34128, 62, 1084, 1769, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 34128, 62, 3549, 62, 14813, 62, 11545, 62, 24425, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 34128, 62, 3549, 62, 14813, 62, 11545, 62, 24425, 62, 86, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 34128, 62, 3549, 62, 14813, 62, 11545, 62, 12545, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 14441, 62, 14145, 62, 1891, 2017, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 14441, 62, 14145, 62, 820, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 14441, 62, 14145, 62, 820, 62, 1891, 2017, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 11082, 29540, 62, 565, 3320, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 16, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 17, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 18, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 19, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 20, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 7548, 62, 565, 3320, 62, 21, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2250, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2431, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 2250, 62, 392, 62, 1084, 1769, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4633, 62, 24425, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4633, 62, 1084, 1769, 62, 2487, 2502, 7473, 43001, 2751, 11, 198, 220, 220, 220, 220, 220, 4633, 62, 24425, 62, 392, 62, 1084, 1769, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 83, 565, 62, 15750, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 319, 62, 1169, 62, 9769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 62, 20688, 7, 807, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 2919, 25, 405, 6, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 1136, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1613, 62, 1169, 62, 9769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 62, 20688, 7, 2250, 220, 220, 796, 1367, 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, 2431, 796, 860, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 1157, 25, 2931, 6, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 1136, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4375, 62, 64, 62, 32146, 62, 1084, 1769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 62, 20688, 7, 838, 6739, 628, 220, 220, 220, 2005, 3784, 2860, 7, 513, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 940, 25, 3070, 6, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 1136, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4375, 62, 22570, 62, 1084, 1769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 62, 20688, 7, 2250, 220, 220, 796, 718, 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, 2431, 796, 6073, 6739, 628, 220, 220, 220, 2005, 3784, 2860, 7, 657, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 3312, 25, 3901, 6, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 1136, 7, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4375, 62, 2502, 62, 272, 62, 9769, 13, 198, 220, 220, 220, 2005, 796, 12682, 1976, 565, 62, 15750, 62, 20688, 7, 838, 6739, 628, 220, 220, 220, 2005, 3784, 2860, 7, 8454, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 1033, 796, 705, 1157, 25, 486, 6, 198, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*---------------------------------------------------------------------* * program for: VIEWPROC_ZEWM_V_TWCR * generation date: 25.04.2019 at 12:25:47 * view maintenance generator version: #001407# *---------------------------------------------------------------------* FUNCTION VIEWPROC_ZEWM_V_TWCR . *----------------------------------------------------------------------* * Initialization: set field-symbols etc. * *----------------------------------------------------------------------* IF LAST_VIEW_INFO NE VIEW_NAME. ASSIGN ZEWM_V_TWCR TO <TABLE1>. ASSIGN *ZEWM_V_TWCR TO <INITIAL>. ASSIGN STATUS_ZEWM_V_TWCR TO <STATUS>. PERFORM INITIALISIEREN. ENDIF. PERFORM JUSTIFY_ACTION_MODE. MOVE: VIEW_ACTION TO MAINT_MODE, CORR_NUMBER TO CORR_NBR. *----------------------------------------------------------------------* * Get data from database * *----------------------------------------------------------------------* IF FCODE EQ READ OR FCODE EQ READ_AND_EDIT. PERFORM PREPARE_READ_REQUEST. IF X_HEADER-FRM_RP_GET NE SPACE. PERFORM (X_HEADER-FRM_RP_GET) IN PROGRAM. ELSE. PERFORM GET_DATA_ZEWM_V_TWCR. ENDIF. IF FCODE EQ READ_AND_EDIT. FCODE = EDIT. ENDIF. ENDIF. CASE FCODE. WHEN EDIT. " Edit read data PERFORM CALL_DYNPRO. PERFORM CHECK_UPD. *....................................................................* WHEN SAVE. " Write data into database PERFORM PREPARE_SAVING. IF <STATUS>-UPD_FLAG NE SPACE. IF X_HEADER-FRM_RP_UPD NE SPACE. PERFORM (X_HEADER-FRM_RP_UPD) IN PROGRAM. ELSE. IF SY-SUBRC EQ 0. PERFORM DB_UPD_ZEWM_V_TWCR. ENDIF. ENDIF. PERFORM AFTER_SAVING. ENDIF. *....................................................................* WHEN RESET_LIST. " Refresh all marked entries of EXTRACT from db PERFORM RESET_ENTRIES USING LIST_BILD. *....................................................................* WHEN RESET_ENTRY. " Refresh single entry from database PERFORM RESET_ENTRIES USING DETAIL_BILD. *....................................................................... ENDCASE. MOVE STATUS_ZEWM_V_TWCR-UPD_FLAG TO UPDATE_REQUIRED. ENDFUNCTION.
[ 9, 10097, 30934, 9, 198, 9, 220, 220, 220, 1430, 329, 25, 220, 220, 49880, 4805, 4503, 62, 57, 6217, 44, 62, 53, 62, 34551, 9419, 198, 9, 220, 220, 5270, 3128, 25, 1679, 13, 3023, 13, 23344, 379, 1105, 25, 1495, 25, 2857, 198, 9, 220, 220, 1570, 9262, 17301, 2196, 25, 1303, 405, 1415, 2998, 2, 198, 9, 10097, 30934, 9, 198, 42296, 4177, 2849, 49880, 4805, 4503, 62, 57, 6217, 44, 62, 53, 62, 34551, 9419, 220, 220, 220, 220, 220, 220, 220, 220, 220, 764, 198, 9, 10097, 23031, 9, 198, 9, 20768, 1634, 25, 900, 2214, 12, 1837, 2022, 10220, 3503, 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, 1635, 198, 9, 10097, 23031, 9, 198, 220, 220, 16876, 41894, 62, 28206, 62, 10778, 10635, 49880, 62, 20608, 13, 198, 10705, 16284, 1168, 6217, 44, 62, 53, 62, 34551, 9419, 5390, 1279, 38148, 16, 28401, 198, 10705, 16284, 1635, 57, 6217, 44, 62, 53, 62, 34551, 9419, 5390, 1279, 1268, 2043, 12576, 28401, 198, 10705, 16284, 15486, 2937, 62, 57, 6217, 44, 62, 53, 62, 34551, 9419, 5390, 1279, 35744, 2937, 28401, 198, 220, 220, 220, 220, 19878, 21389, 3268, 2043, 12576, 1797, 38311, 1677, 13, 198, 220, 220, 23578, 5064, 13, 198, 220, 220, 19878, 21389, 25848, 5064, 56, 62, 44710, 62, 49058, 13, 198, 220, 220, 13070, 6089, 25, 49880, 62, 44710, 5390, 8779, 12394, 62, 49058, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23929, 49, 62, 41359, 13246, 5390, 23929, 49, 62, 45, 11473, 13, 198, 198, 9, 10097, 23031, 9, 198, 9, 3497, 1366, 422, 6831, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 9, 10097, 23031, 9, 198, 220, 16876, 10029, 16820, 36529, 20832, 6375, 10029, 16820, 36529, 20832, 62, 6981, 62, 24706, 13, 198, 220, 220, 220, 19878, 21389, 22814, 47, 12203, 62, 15675, 62, 2200, 35780, 13, 198, 220, 220, 220, 16876, 1395, 62, 37682, 1137, 12, 10913, 44, 62, 20031, 62, 18851, 10635, 37253, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 357, 55, 62, 37682, 1137, 12, 10913, 44, 62, 20031, 62, 18851, 8, 3268, 46805, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 18973, 21389, 17151, 62, 26947, 62, 57, 6217, 44, 62, 53, 62, 34551, 9419, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 16876, 10029, 16820, 36529, 20832, 62, 6981, 62, 24706, 13, 10029, 16820, 796, 48483, 13, 23578, 5064, 13, 198, 220, 23578, 5064, 13, 628, 220, 42001, 10029, 16820, 13, 198, 220, 220, 220, 42099, 220, 48483, 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, 366, 5312, 1100, 1366, 198, 220, 220, 220, 220, 220, 19878, 21389, 42815, 62, 35, 40760, 31190, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 5870, 25171, 62, 52, 5760, 13, 198, 9, 23193, 1106, 9, 628, 220, 220, 220, 42099, 14719, 6089, 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, 366, 19430, 1366, 656, 6831, 198, 220, 220, 220, 220, 220, 19878, 21389, 22814, 47, 12203, 62, 4090, 53, 2751, 13, 198, 220, 220, 220, 220, 220, 16876, 1279, 35744, 2937, 29, 12, 52, 5760, 62, 38948, 10635, 37253, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 1395, 62, 37682, 1137, 12, 10913, 44, 62, 20031, 62, 52, 5760, 10635, 37253, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 357, 55, 62, 37682, 1137, 12, 10913, 44, 62, 20031, 62, 52, 5760, 8, 3268, 46805, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16876, 19704, 12, 50, 10526, 7397, 36529, 657, 13, 198, 18973, 21389, 20137, 62, 52, 5760, 62, 57, 6217, 44, 62, 53, 62, 34551, 9419, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 220, 220, 19878, 21389, 36050, 62, 4090, 53, 2751, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 9, 23193, 1106, 9, 628, 220, 220, 220, 42099, 15731, 2767, 62, 45849, 13, 220, 220, 220, 220, 366, 22539, 477, 7498, 12784, 286, 7788, 5446, 10659, 422, 20613, 198, 220, 220, 220, 220, 220, 19878, 21389, 15731, 2767, 62, 3525, 7112, 1546, 1294, 2751, 39498, 62, 3483, 11163, 13, 198, 9, 23193, 1106, 9, 628, 220, 220, 220, 42099, 15731, 2767, 62, 3525, 18276, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 22539, 2060, 5726, 422, 6831, 198, 220, 220, 220, 220, 220, 19878, 21389, 15731, 2767, 62, 3525, 7112, 1546, 1294, 2751, 360, 20892, 4146, 62, 3483, 11163, 13, 198, 9, 23193, 25780, 198, 220, 23578, 34, 11159, 13, 198, 11770, 6089, 15486, 2937, 62, 57, 6217, 44, 62, 53, 62, 34551, 9419, 12, 52, 5760, 62, 38948, 5390, 35717, 62, 2200, 10917, 37819, 13, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE if_serializable_object PUBLIC. ENDINTERFACE.
[ 41358, 49836, 611, 62, 46911, 13821, 62, 15252, 44731, 13, 198, 198, 10619, 41358, 49836, 13 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui_page_repo_over DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_component FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES zif_abapgit_gui_renderable . DATA mv_order_by TYPE string READ-ONLY . DATA mv_only_favorites TYPE abap_bool READ-ONLY. METHODS constructor IMPORTING iv_only_favorites TYPE abap_bool RAISING zcx_abapgit_exception . METHODS set_order_by IMPORTING !iv_order_by TYPE string . METHODS set_order_direction IMPORTING !iv_order_descending TYPE abap_bool . METHODS set_filter IMPORTING it_postdata TYPE zif_abapgit_html_viewer=>ty_post_data . METHODS set_only_favorites IMPORTING iv_only_favorites TYPE abap_bool. METHODS get_only_favorites RETURNING VALUE(rv_result) TYPE abap_bool. PROTECTED SECTION. PRIVATE SECTION. TYPES: BEGIN OF ty_overview, favorite TYPE string, "! True for offline, false for online repo type TYPE string, key TYPE zif_abapgit_persistence=>ty_value, name TYPE string, url TYPE string, package TYPE devclass, branch TYPE string, created_by TYPE syuname, created_at TYPE string, created_at_raw TYPE timestampl, deserialized_by TYPE syuname, deserialized_at TYPE string, deserialized_at_raw TYPE timestampl, write_protected TYPE abap_bool, END OF ty_overview, ty_overviews TYPE STANDARD TABLE OF ty_overview WITH NON-UNIQUE DEFAULT KEY. CONSTANTS: BEGIN OF c_action, select TYPE string VALUE 'select', apply_filter TYPE string VALUE 'apply_filter', END OF c_action , c_raw_field_suffix TYPE string VALUE `_RAW` ##NO_TEXT. DATA: mv_order_descending TYPE abap_bool, mv_filter TYPE string, mv_time_zone TYPE timezone, mt_col_spec TYPE zif_abapgit_definitions=>ty_col_spec_tt, mt_overview TYPE ty_overviews. METHODS: render_text_input IMPORTING iv_name TYPE string iv_label TYPE string iv_value TYPE string OPTIONAL iv_max_length TYPE string OPTIONAL !iv_autofocus TYPE abap_bool DEFAULT abap_false RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html, apply_filter CHANGING ct_overview TYPE ty_overviews, map_repo_list_to_overview RETURNING VALUE(rt_overview) TYPE ty_overviews RAISING zcx_abapgit_exception, render_table_header IMPORTING ii_html TYPE REF TO zif_abapgit_html, render_table IMPORTING ii_html TYPE REF TO zif_abapgit_html it_overview TYPE ty_overviews RAISING zcx_abapgit_exception, render_table_body IMPORTING ii_html TYPE REF TO zif_abapgit_html it_repo_list TYPE ty_overviews RAISING zcx_abapgit_exception, render_header_bar IMPORTING ii_html TYPE REF TO zif_abapgit_html, apply_order_by CHANGING ct_overview TYPE ty_overviews, _add_column IMPORTING iv_tech_name TYPE string OPTIONAL iv_display_name TYPE string OPTIONAL iv_css_class TYPE string OPTIONAL iv_add_tz TYPE abap_bool OPTIONAL iv_title TYPE string OPTIONAL iv_allow_order_by TYPE any OPTIONAL. METHODS render_scripts RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html RAISING zcx_abapgit_exception. METHODS shorten_repo_url IMPORTING iv_full_url TYPE string iv_max_length TYPE i DEFAULT 60 RETURNING VALUE(rv_shortened) TYPE string. METHODS render_actions IMPORTING ii_html TYPE REF TO zif_abapgit_html. METHODS column IMPORTING iv_content TYPE string OPTIONAL iv_css_class TYPE string OPTIONAL RETURNING VALUE(rv_html) TYPE string. ENDCLASS. CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION. METHOD apply_filter. IF mv_filter IS NOT INITIAL. DELETE ct_overview WHERE key NS mv_filter AND name NS mv_filter AND url NS mv_filter AND package NS mv_filter AND branch NS mv_filter AND created_by NS mv_filter AND created_at NS mv_filter AND deserialized_by NS mv_filter AND deserialized_at NS mv_filter. ENDIF. ENDMETHOD. METHOD apply_order_by. DATA: lt_sort TYPE abap_sortorder_tab, ls_sort LIKE LINE OF lt_sort. ls_sort-name = 'FAVORITE'. ls_sort-descending = abap_true. ls_sort-astext = abap_true. INSERT ls_sort INTO TABLE lt_sort. IF mv_order_by IS NOT INITIAL. CLEAR ls_sort. IF mv_order_by = 'CREATED_AT' OR mv_order_by = 'DESERIALIZED_AT'. ls_sort-name = mv_order_by && c_raw_field_suffix. ELSE. ls_sort-name = mv_order_by. ls_sort-astext = abap_true. ENDIF. ls_sort-descending = mv_order_descending. INSERT ls_sort INTO TABLE lt_sort. ENDIF. SORT ct_overview BY (lt_sort). ENDMETHOD. METHOD constructor. super->constructor( ). mv_order_by = |NAME|. mv_only_favorites = iv_only_favorites. CALL FUNCTION 'GET_SYSTEM_TIMEZONE' IMPORTING timezone = mv_time_zone EXCEPTIONS customizing_missing = 1 OTHERS = 2. ASSERT sy-subrc = 0. ENDMETHOD. METHOD map_repo_list_to_overview. DATA: ls_overview LIKE LINE OF rt_overview, lv_date TYPE d, lv_time TYPE t, lt_repo_obj_list TYPE zif_abapgit_repo_srv=>ty_repo_list. FIELD-SYMBOLS <ls_repo> LIKE LINE OF lt_repo_obj_list. IF mv_only_favorites = abap_true. lt_repo_obj_list = zcl_abapgit_repo_srv=>get_instance( )->list_favorites( ). ELSE. lt_repo_obj_list = zcl_abapgit_repo_srv=>get_instance( )->list( ). ENDIF. LOOP AT lt_repo_obj_list ASSIGNING <ls_repo>. CLEAR: ls_overview. ls_overview-favorite = zcl_abapgit_persistence_user=>get_instance( )->is_favorite_repo( <ls_repo>->ms_data-key ). ls_overview-type = <ls_repo>->ms_data-offline. ls_overview-key = <ls_repo>->ms_data-key. ls_overview-name = <ls_repo>->get_name( ). ls_overview-url = <ls_repo>->ms_data-url. ls_overview-package = <ls_repo>->ms_data-package. ls_overview-branch = <ls_repo>->ms_data-branch_name. ls_overview-created_by = <ls_repo>->ms_data-created_by. ls_overview-write_protected = <ls_repo>->ms_data-local_settings-write_protected. ls_overview-created_at_raw = <ls_repo>->ms_data-created_at. IF <ls_repo>->ms_data-created_at IS NOT INITIAL. CONVERT TIME STAMP <ls_repo>->ms_data-created_at TIME ZONE mv_time_zone INTO DATE lv_date TIME lv_time. ls_overview-created_at = |{ lv_date DATE = USER } { lv_time TIME = USER }|. ENDIF. ls_overview-deserialized_by = <ls_repo>->ms_data-deserialized_by. ls_overview-deserialized_at_raw = <ls_repo>->ms_data-deserialized_at. IF <ls_repo>->ms_data-deserialized_at IS NOT INITIAL. CONVERT TIME STAMP <ls_repo>->ms_data-deserialized_at TIME ZONE mv_time_zone INTO DATE lv_date TIME lv_time. ls_overview-deserialized_at = |{ lv_date DATE = USER } { lv_time TIME = USER }|. ENDIF. INSERT ls_overview INTO TABLE rt_overview. ENDLOOP. ENDMETHOD. METHOD render_header_bar. DATA: lv_new_toggle_favorites TYPE abap_bool, lv_icon_class TYPE string. ii_html->add( |<div class="form-container">| ). ii_html->add( |<form class="inline" method="post" action="sapevent:{ c_action-apply_filter }">| ). ii_html->add( render_text_input( iv_name = |filter| iv_label = |Filter: | iv_value = mv_filter iv_autofocus = abap_true ) ). ii_html->add( |<input type="submit" class="hidden-submit">| ). ii_html->add( |</form>| ). lv_new_toggle_favorites = boolc( NOT mv_only_favorites = abap_true ). " render icon for current state but filter value for new state IF mv_only_favorites = abap_true. lv_icon_class = `blue`. ELSE. lv_icon_class = `grey`. ENDIF. ii_html->add( ii_html->a( iv_txt = |<i id="icon-filter-favorite" class="icon icon-check { lv_icon_class }"></i> Only Favorites| iv_act = |{ zif_abapgit_definitions=>c_action-toggle_favorites }?favorites={ lv_new_toggle_favorites }| ) ). ii_html->add( `<span class="separator">|</span>` ). ii_html->add( ii_html->a( iv_txt = '<i id="icon-filter-detail" class="icon icon-check"></i> Detail' iv_act = |gHelper.toggleRepoListDetail()| iv_typ = zif_abapgit_html=>c_action_type-onclick ) ). render_actions( ii_html = ii_html ). ii_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("filter");' ). ri_html->add( 'var gHelper = new RepoOverViewHelper();' ). ENDMETHOD. METHOD render_table. ii_html->add( |<div class="db_list repo-overview">| ). ii_html->add( |<table class="db_tab">| ). render_table_header( ii_html ). render_table_body( ii_html = ii_html it_repo_list = it_overview ). ii_html->add( |</table>| ). ii_html->add( |</div>| ). ENDMETHOD. METHOD render_table_body. DATA: lv_type_icon TYPE string, lv_favorite_icon TYPE string, lv_favorite_class TYPE string, lv_text TYPE string, lv_lock TYPE string, lv_toggle_favorite_link TYPE string, lv_repo_go_link TYPE string, lv_remote_icon_link TYPE string. FIELD-SYMBOLS: <ls_repo> LIKE LINE OF it_repo_list. ii_html->add( '<tbody>' ). LOOP AT it_repo_list ASSIGNING <ls_repo>. IF <ls_repo>-type = abap_true. lv_type_icon = 'plug/darkgrey'. ELSE. lv_type_icon = 'cloud-upload-alt/darkgrey'. ENDIF. IF <ls_repo>-favorite = abap_true. lv_favorite_icon = 'star/blue'. lv_favorite_class = 'favorite'. ELSE. lv_favorite_icon = 'star/grey'. lv_favorite_class = ''. ENDIF. ii_html->add( |<tr class="repo { lv_favorite_class }" data-key="{ <ls_repo>-key }" data-offline="{ <ls_repo>-type }">| ). lv_toggle_favorite_link = ii_html->a( iv_act = |{ zif_abapgit_definitions=>c_action-repo_toggle_fav }?key={ <ls_repo>-key }| iv_txt = ii_html->icon( iv_name = lv_favorite_icon iv_class = 'pad-sides' iv_hint = 'Click to toggle favorite' ) ). ii_html->add( column( iv_content = lv_toggle_favorite_link iv_css_class = 'wmin' ) ). CLEAR lv_lock. IF <ls_repo>-write_protected = abap_true. lv_lock = ii_html->icon( iv_name = 'lock/grey70' iv_class = 'm-em5-sides' iv_hint = 'Locked from pulls' ). ENDIF. ii_html->add( column( iv_content = ii_html->icon( lv_type_icon ) iv_css_class = 'wmin' ) ). ii_html->add( column( iv_content = ii_html->a( iv_txt = <ls_repo>-name iv_act = |{ c_action-select }?key={ <ls_repo>-key }| ) && lv_lock ) ). ii_html->add( column( iv_content = zcl_abapgit_gui_chunk_lib=>render_package_name( iv_package = <ls_repo>-package iv_suppress_title = boolc( NOT mv_only_favorites = abap_true ) )->render( ) ) ). IF <ls_repo>-type = abap_false. lv_remote_icon_link = ii_html->a( iv_txt = ii_html->icon( iv_name = 'edit-solid' iv_class = 'pad-sides' iv_hint = 'Change remote' ) iv_act = |{ zif_abapgit_definitions=>c_action-repo_remote_settings }?| && |key={ <ls_repo>-key }| iv_class = |remote_repo| ). lv_text = shorten_repo_url( <ls_repo>-url ) && lv_remote_icon_link. ii_html->add( column( iv_content = |{ ii_html->a( iv_txt = lv_text iv_title = <ls_repo>-url iv_act = |{ zif_abapgit_definitions=>c_action-url }?url={ <ls_repo>-url }| ) }| ) ). ELSE. ii_html->add( column( ) ). ENDIF. IF <ls_repo>-branch IS INITIAL. ii_html->add( column( iv_content = |&nbsp;| ) ). ELSE. ii_html->add( column( iv_content = zcl_abapgit_gui_chunk_lib=>render_branch_name( iv_branch = <ls_repo>-branch iv_repo_key = <ls_repo>-key )->render( ) ) ). ENDIF. ii_html->add( column( iv_content = zcl_abapgit_gui_chunk_lib=>render_user_name( iv_username = <ls_repo>-deserialized_by iv_suppress_title = boolc( NOT mv_only_favorites = abap_true ) )->render( ) iv_css_class = 'ro-detail' ) ). ii_html->add( column( iv_content = <ls_repo>-deserialized_at iv_css_class = 'ro-detail' ) ). ii_html->add( column( iv_content = zcl_abapgit_gui_chunk_lib=>render_user_name( iv_username = <ls_repo>-created_by iv_suppress_title = boolc( NOT mv_only_favorites = abap_true ) )->render( ) iv_css_class = 'ro-detail' ) ). ii_html->add( column( iv_content = <ls_repo>-created_at iv_css_class = 'ro-detail' ) ). ii_html->add( column( iv_content = |{ <ls_repo>-key }| iv_css_class = 'ro-detail' ) ). " the link is clicked in javascript lv_repo_go_link = ii_html->a( iv_txt = `` iv_act = |{ c_action-select }?key={ <ls_repo>-key }| iv_class = 'hidden' ). ii_html->add( column( iv_content = |<span class="link" title="Open">&rsaquo;{ lv_repo_go_link }</span>| iv_css_class = 'ro-go' ) ). ii_html->add( `</tr>` ). ENDLOOP. ii_html->add( |</tbody>| ). IF mv_only_favorites = abap_true. ii_html->add( `<tfoot><tr><td colspan="5">` ). ii_html->add( `(Only favorites are shown. ` ). ii_html->add( ii_html->a( iv_txt = |Show All| iv_act = |{ zif_abapgit_definitions=>c_action-toggle_favorites }?favorites={ abap_false }| ) ). ii_html->add( `)</td></tr></tfoot>` ). ENDIF. ENDMETHOD. METHOD render_actions. CONSTANTS: lc_dummy_key TYPE string VALUE `?key=#`, lc_offline_class TYPE string VALUE `action_offline_repo`, lc_online_class TYPE string VALUE `action_online_repo`, lc_action_class TYPE string VALUE `action_link`. DATA lo_toolbar TYPE REF TO zcl_abapgit_html_toolbar. DATA lo_toolbar_more_sub TYPE REF TO zcl_abapgit_html_toolbar. CREATE OBJECT lo_toolbar EXPORTING iv_id = 'toolbar-ovp'. lo_toolbar->add( iv_txt = |Pull| iv_act = |{ zif_abapgit_definitions=>c_action-git_reset }{ lc_dummy_key }| iv_class = |{ lc_action_class } { lc_online_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar->add( iv_txt = |Stage| iv_act = |{ zif_abapgit_definitions=>c_action-go_stage }{ lc_dummy_key }| iv_class = |{ lc_action_class } { lc_online_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar->add( iv_txt = |Patch| iv_act = |{ zif_abapgit_definitions=>c_action-go_patch }{ lc_dummy_key }| iv_class = |{ lc_action_class } { lc_online_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar->add( iv_txt = |Diff| iv_act = |{ zif_abapgit_definitions=>c_action-go_repo_diff }{ lc_dummy_key }| iv_class = |{ lc_action_class } { lc_online_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar->add( iv_txt = |Check| iv_act = |{ zif_abapgit_definitions=>c_action-repo_code_inspector }{ lc_dummy_key }| iv_class = |{ lc_action_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar->add( iv_txt = |Import| iv_act = |{ zif_abapgit_definitions=>c_action-zip_import }{ lc_dummy_key }| iv_class = |{ lc_action_class } { lc_offline_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar->add( iv_txt = |Export| iv_act = |{ zif_abapgit_definitions=>c_action-zip_export }{ lc_dummy_key }| iv_class = |{ lc_action_class } { lc_offline_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar->add( iv_txt = |Settings| iv_act = |{ zif_abapgit_definitions=>c_action-repo_settings }{ lc_dummy_key }| iv_class = |{ lc_action_class }| iv_li_class = |{ lc_action_class }| ). CREATE OBJECT lo_toolbar_more_sub EXPORTING iv_id = 'toolbar-ovp-more_sub'. lo_toolbar_more_sub->add( iv_txt = |Stage by Transport| iv_act = |{ zif_abapgit_definitions=>c_action-go_stage_transport }{ lc_dummy_key }| iv_class = |{ lc_action_class } { lc_online_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar_more_sub->add( iv_txt = |Export by Transport| iv_act = |{ zif_abapgit_definitions=>c_action-zip_export_transport }{ lc_dummy_key }| iv_class = |{ lc_action_class } { lc_offline_class }| iv_li_class = |{ lc_action_class }| ). lo_toolbar->add( iv_txt = |More| io_sub = lo_toolbar_more_sub iv_class = |{ lc_action_class }| iv_li_class = |{ lc_action_class }| ). ii_html->add( lo_toolbar->render( iv_right = abap_true ) ). ENDMETHOD. METHOD shorten_repo_url. DATA lv_new_length TYPE i. DATA lv_length_to_truncate_to TYPE i. rv_shortened = iv_full_url. REPLACE FIRST OCCURRENCE OF 'https://' IN rv_shortened WITH ''. REPLACE FIRST OCCURRENCE OF 'http://' IN rv_shortened WITH ''. IF rv_shortened CP '*.git'. lv_new_length = strlen( rv_shortened ) - 4. rv_shortened = rv_shortened(lv_new_length). ENDIF. IF strlen( rv_shortened ) > iv_max_length. lv_length_to_truncate_to = iv_max_length - 3. rv_shortened = rv_shortened(lv_length_to_truncate_to) && `...`. ENDIF. ENDMETHOD. METHOD render_table_header. CLEAR mt_col_spec. _add_column( iv_tech_name = 'FAVORITE' iv_css_class = 'wmin' iv_allow_order_by = abap_false ). _add_column( iv_tech_name = 'TYPE' iv_css_class = 'wmin' iv_allow_order_by = abap_false ). _add_column( iv_tech_name = 'NAME' iv_display_name = 'Name' iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'PACKAGE' iv_display_name = 'Package' iv_css_class = 'package' iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'URL' iv_display_name = 'Remote' iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'BRANCH' iv_display_name = 'Branch' iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'DESERIALIZED_BY' iv_display_name = 'Deserialized by' iv_css_class = 'ro-detail' iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'DESERIALIZED_AT' iv_display_name = 'Deserialized at' iv_css_class = 'ro-detail' iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'CREATED_BY' iv_display_name = 'Created by' iv_css_class = 'ro-detail' iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'CREATED_AT' iv_display_name = 'Created at' iv_css_class = 'ro-detail' iv_add_tz = abap_true iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'KEY' iv_display_name = 'Key' iv_css_class = 'ro-detail' iv_allow_order_by = abap_true ). _add_column( iv_tech_name = 'GO' iv_css_class = 'ro-go' iv_allow_order_by = abap_false ). ii_html->add( |<thead>| ). ii_html->add( |<tr>| ). ii_html->add( zcl_abapgit_gui_chunk_lib=>render_order_by_header_cells( it_col_spec = mt_col_spec iv_order_by = mv_order_by iv_order_descending = mv_order_descending ) ). ii_html->add( '</tr>' ). ii_html->add( '</thead>' ). ENDMETHOD. METHOD render_text_input. DATA lv_attrs TYPE string. CREATE OBJECT ri_html TYPE zcl_abapgit_html. IF iv_value IS NOT INITIAL. lv_attrs = | value="{ iv_value }"|. ENDIF. IF iv_max_length IS NOT INITIAL. lv_attrs = lv_attrs && | maxlength="{ iv_max_length }"|. ENDIF. IF iv_autofocus = abap_true. lv_attrs = lv_attrs && | autofocus|. ENDIF. ri_html->add( |<label for="{ iv_name }">{ iv_label }</label>| ). ri_html->add( |<input id="{ iv_name }" name="{ iv_name }" type="text"{ lv_attrs }>| ). ENDMETHOD. METHOD set_filter. FIELD-SYMBOLS: <lv_postdata> LIKE LINE OF it_postdata. READ TABLE it_postdata ASSIGNING <lv_postdata> INDEX 1. IF sy-subrc = 0. FIND FIRST OCCURRENCE OF REGEX `filter=(.*)` IN <lv_postdata> SUBMATCHES mv_filter. ENDIF. mv_filter = condense( mv_filter ). ENDMETHOD. METHOD set_order_by. mv_order_by = iv_order_by. ENDMETHOD. METHOD set_order_direction. mv_order_descending = iv_order_descending. ENDMETHOD. METHOD zif_abapgit_gui_renderable~render. mt_overview = map_repo_list_to_overview( ). apply_order_by( CHANGING ct_overview = mt_overview ). apply_filter( CHANGING ct_overview = mt_overview ). CREATE OBJECT ri_html TYPE zcl_abapgit_html. render_header_bar( ri_html ). zcl_abapgit_exit=>get_instance( )->wall_message_list( ri_html ). render_table( ii_html = ri_html it_overview = mt_overview ). register_deferred_script( render_scripts( ) ). ENDMETHOD. METHOD _add_column. FIELD-SYMBOLS <ls_col> LIKE LINE OF mt_col_spec. APPEND INITIAL LINE TO mt_col_spec ASSIGNING <ls_col>. <ls_col>-display_name = iv_display_name. <ls_col>-tech_name = iv_tech_name. <ls_col>-title = iv_title. <ls_col>-css_class = iv_css_class. <ls_col>-add_tz = iv_add_tz. <ls_col>-allow_order_by = iv_allow_order_by. ENDMETHOD. METHOD column. IF iv_css_class IS NOT INITIAL. rv_html = |<td class="{ iv_css_class }">| && iv_content && |</td>|. ELSE. rv_html = |<td>| && iv_content && |</td>|. ENDIF. ENDMETHOD. METHOD set_only_favorites. mv_only_favorites = iv_only_favorites. ENDMETHOD. METHOD get_only_favorites. rv_result = mv_only_favorites. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 260, 7501, 62, 2502, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 42895, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 48317, 62, 13287, 540, 764, 628, 220, 220, 220, 42865, 285, 85, 62, 2875, 62, 1525, 41876, 4731, 20832, 12, 1340, 11319, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 8807, 62, 69, 5570, 2737, 220, 220, 41876, 450, 499, 62, 30388, 20832, 12, 1340, 11319, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 8807, 62, 69, 5570, 2737, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 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, 2875, 62, 1525, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2875, 62, 1525, 41876, 4731, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 2875, 62, 37295, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2875, 62, 20147, 1571, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 24455, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 340, 62, 7353, 7890, 41876, 1976, 361, 62, 397, 499, 18300, 62, 6494, 62, 1177, 263, 14804, 774, 62, 7353, 62, 7890, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 8807, 62, 69, 5570, 2737, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8807, 62, 69, 5570, 2737, 41876, 450, 499, 62, 30388, 13, 198, 220, 220, 220, 337, 36252, 50, 198, 220, 220, 220, 220, 220, 651, 62, 8807, 62, 69, 5570, 2737, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 20274, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 2502, 1177, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4004, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 366, 0, 6407, 329, 18043, 11, 3991, 329, 2691, 29924, 198, 220, 220, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1994, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 8367, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8478, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 1525, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 403, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 265, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 265, 62, 1831, 220, 220, 220, 220, 220, 41876, 4628, 395, 321, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 748, 48499, 1143, 62, 1525, 220, 220, 220, 220, 41876, 827, 403, 480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 748, 48499, 1143, 62, 265, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 748, 48499, 1143, 62, 265, 62, 1831, 41876, 4628, 395, 321, 489, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3551, 62, 24326, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 2502, 1177, 11, 198, 220, 220, 220, 220, 220, 1259, 62, 2502, 33571, 41876, 49053, 9795, 43679, 3963, 1259, 62, 2502, 1177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 13, 198, 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, 2922, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 19738, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 4174, 62, 24455, 41876, 4731, 26173, 8924, 705, 39014, 62, 24455, 3256, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 2673, 837, 198, 220, 220, 220, 220, 220, 269, 62, 1831, 62, 3245, 62, 37333, 844, 41876, 4731, 26173, 8924, 4600, 62, 20530, 63, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 42865, 25, 285, 85, 62, 2875, 62, 20147, 1571, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 24455, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 2435, 62, 11340 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
class zcl_proota_parallel_runner definition public final create public. public section. methods constructor importing code type ref to zif_proota_parallel_code. methods run importing max_tasks type i optional server_group type spta_rfcgr default 'parallel_generators'. protected section. private section. data parallel_code type ref to zif_proota_parallel_code. endclass. class zcl_proota_parallel_runner implementation. method constructor. parallel_code = code. endmethod. method run. zcl_proota_framework=>run( parallel_code = parallel_code max_tasks = max_tasks ). endmethod. endclass.
[ 4871, 1976, 565, 62, 1676, 4265, 62, 1845, 29363, 62, 16737, 6770, 198, 220, 1171, 198, 220, 2457, 198, 220, 2251, 1171, 13, 628, 220, 1171, 2665, 13, 198, 220, 220, 220, 5050, 23772, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 2438, 2099, 1006, 284, 1976, 361, 62, 1676, 4265, 62, 1845, 29363, 62, 8189, 13, 198, 220, 220, 220, 5050, 1057, 198, 220, 220, 220, 220, 220, 33332, 3509, 62, 83, 6791, 2099, 1312, 11902, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4382, 62, 8094, 2099, 264, 32283, 62, 81, 16072, 2164, 4277, 705, 1845, 29363, 62, 8612, 2024, 4458, 198, 220, 6861, 2665, 13, 198, 220, 2839, 2665, 13, 198, 220, 220, 220, 1366, 10730, 62, 8189, 2099, 1006, 284, 1976, 361, 62, 1676, 4265, 62, 1845, 29363, 62, 8189, 13, 198, 437, 4871, 13, 198, 198, 4871, 1976, 565, 62, 1676, 4265, 62, 1845, 29363, 62, 16737, 7822, 13, 628, 220, 2446, 23772, 13, 198, 220, 220, 220, 10730, 62, 8189, 796, 2438, 13, 198, 220, 886, 24396, 13, 628, 220, 2446, 1057, 13, 198, 220, 220, 220, 1976, 565, 62, 1676, 4265, 62, 30604, 14804, 5143, 7, 198, 220, 220, 220, 220, 220, 220, 220, 10730, 62, 8189, 796, 10730, 62, 8189, 198, 220, 220, 220, 220, 220, 220, 220, 3509, 62, 83, 6791, 796, 3509, 62, 83, 6791, 6739, 198, 220, 886, 24396, 13, 198, 437, 4871, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_definitions PUBLIC . TYPES: ty_type TYPE c LENGTH 6 . TYPES: ty_bitbyte TYPE c LENGTH 8 . TYPES: ty_sha1 TYPE c LENGTH 40 . TYPES: ty_adler32 TYPE x LENGTH 4 . TYPES: BEGIN OF ty_file_signature, path TYPE string, filename TYPE string, sha1 TYPE zif_abapgit_definitions=>ty_sha1, END OF ty_file_signature . TYPES: ty_file_signatures_tt TYPE STANDARD TABLE OF ty_file_signature WITH DEFAULT KEY . TYPES: ty_file_signatures_ts TYPE SORTED TABLE OF ty_file_signature WITH UNIQUE KEY path filename . TYPES: BEGIN OF ty_file. INCLUDE TYPE ty_file_signature. TYPES: data TYPE xstring, END OF ty_file . TYPES: ty_files_tt TYPE STANDARD TABLE OF ty_file WITH DEFAULT KEY . TYPES: ty_string_tt TYPE STANDARD TABLE OF string WITH DEFAULT KEY . TYPES: ty_repo_ref_tt TYPE STANDARD TABLE OF REF TO zcl_abapgit_repo WITH DEFAULT KEY . TYPES ty_git_branch_type TYPE char2 . TYPES: BEGIN OF ty_git_branch, sha1 TYPE zif_abapgit_definitions=>ty_sha1, name TYPE string, type TYPE ty_git_branch_type, is_head TYPE abap_bool, display_name TYPE string, END OF ty_git_branch . TYPES: ty_git_branch_list_tt TYPE STANDARD TABLE OF ty_git_branch WITH DEFAULT KEY . TYPES: BEGIN OF ty_git_tag, sha1 TYPE zif_abapgit_definitions=>ty_sha1, object TYPE zif_abapgit_definitions=>ty_sha1, name TYPE string, type TYPE ty_git_branch_type, display_name TYPE string, tagger_name TYPE string, tagger_email TYPE string, message TYPE string, body TYPE string, END OF ty_git_tag . TYPES: ty_git_tag_list_tt TYPE STANDARD TABLE OF ty_git_tag WITH DEFAULT KEY . TYPES: BEGIN OF ty_hotkey, action TYPE string, hotkey TYPE string, END OF ty_hotkey . TYPES: tty_hotkey TYPE STANDARD TABLE OF ty_hotkey WITH NON-UNIQUE DEFAULT KEY WITH NON-UNIQUE SORTED KEY action COMPONENTS action. TYPES: BEGIN OF ty_git_user, name TYPE string, email TYPE string, END OF ty_git_user . TYPES: BEGIN OF ty_comment, committer TYPE ty_git_user, author TYPE ty_git_user, comment TYPE string, END OF ty_comment . TYPES: BEGIN OF ty_item, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, devclass TYPE devclass, inactive TYPE abap_bool, END OF ty_item . TYPES: ty_items_tt TYPE STANDARD TABLE OF ty_item WITH DEFAULT KEY . TYPES: ty_items_ts TYPE SORTED TABLE OF ty_item WITH UNIQUE KEY obj_type obj_name . TYPES: BEGIN OF ty_file_item, file TYPE zif_abapgit_definitions=>ty_file, item TYPE ty_item, END OF ty_file_item . TYPES: ty_files_item_tt TYPE STANDARD TABLE OF ty_file_item WITH DEFAULT KEY . TYPES: ty_yes_no TYPE c LENGTH 1 . TYPES: BEGIN OF ty_overwrite. INCLUDE TYPE ty_item. TYPES: decision TYPE ty_yes_no, END OF ty_overwrite . TYPES: ty_overwrite_tt TYPE STANDARD TABLE OF ty_overwrite WITH DEFAULT KEY WITH UNIQUE HASHED KEY object_type_and_name COMPONENTS obj_type obj_name . TYPES: BEGIN OF ty_requirements, met TYPE ty_yes_no, decision TYPE ty_yes_no, END OF ty_requirements . TYPES: BEGIN OF ty_transport_type, request TYPE trfunction, task TYPE trfunction, END OF ty_transport_type . TYPES: BEGIN OF ty_transport, required TYPE abap_bool, transport TYPE trkorr, type TYPE ty_transport_type, END OF ty_transport . TYPES: BEGIN OF ty_deserialize_checks, overwrite TYPE ty_overwrite_tt, warning_package TYPE ty_overwrite_tt, requirements TYPE ty_requirements, transport TYPE ty_transport, END OF ty_deserialize_checks . TYPES: BEGIN OF ty_delete_checks, transport TYPE ty_transport, END OF ty_delete_checks . TYPES: BEGIN OF ty_metadata, class TYPE string, version TYPE string, late_deser TYPE abap_bool, " refactor: can be removed later. replaced by steps delete_tadir TYPE abap_bool, ddic TYPE abap_bool, END OF ty_metadata . TYPES: BEGIN OF ty_repo_file, path TYPE string, filename TYPE string, is_changed TYPE abap_bool, rstate TYPE char1, lstate TYPE char1, END OF ty_repo_file . TYPES: tt_repo_files TYPE STANDARD TABLE OF ty_repo_file WITH DEFAULT KEY . TYPES: BEGIN OF ty_stage_files, local TYPE zif_abapgit_definitions=>ty_files_item_tt, remote TYPE zif_abapgit_definitions=>ty_files_tt, END OF ty_stage_files . TYPES: ty_chmod TYPE c LENGTH 6 . TYPES: BEGIN OF ty_object, sha1 TYPE zif_abapgit_definitions=>ty_sha1, type TYPE zif_abapgit_definitions=>ty_type, data TYPE xstring, adler32 TYPE ty_adler32, index TYPE i, END OF ty_object . TYPES: ty_objects_tt TYPE STANDARD TABLE OF ty_object WITH DEFAULT KEY WITH NON-UNIQUE SORTED KEY sha COMPONENTS sha1 WITH NON-UNIQUE SORTED KEY type COMPONENTS type sha1 . TYPES: BEGIN OF ty_tadir, pgmid TYPE tadir-pgmid, object TYPE tadir-object, obj_name TYPE tadir-obj_name, devclass TYPE tadir-devclass, korrnum TYPE tadir-korrnum, delflag TYPE tadir-delflag, path TYPE string, END OF ty_tadir . TYPES: ty_tadir_tt TYPE STANDARD TABLE OF ty_tadir WITH DEFAULT KEY . TYPES: BEGIN OF ty_result, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, inactive TYPE abap_bool, path TYPE string, filename TYPE string, package TYPE devclass, match TYPE abap_bool, lstate TYPE char1, rstate TYPE char1, END OF ty_result . TYPES: ty_results_tt TYPE STANDARD TABLE OF ty_result WITH DEFAULT KEY . TYPES: ty_sval_tt TYPE STANDARD TABLE OF sval WITH DEFAULT KEY . TYPES: ty_seocompotx_tt TYPE STANDARD TABLE OF seocompotx WITH DEFAULT KEY . TYPES: BEGIN OF ty_tpool. INCLUDE TYPE textpool. TYPES: split TYPE c LENGTH 8. TYPES: END OF ty_tpool . TYPES: ty_tpool_tt TYPE STANDARD TABLE OF ty_tpool WITH DEFAULT KEY . TYPES: BEGIN OF ty_sotr, header TYPE sotr_head, entries TYPE sotr_text_tt, END OF ty_sotr . TYPES: ty_sotr_tt TYPE STANDARD TABLE OF ty_sotr WITH DEFAULT KEY . TYPES: BEGIN OF ty_obj_attribute, cmpname TYPE seocmpname, attkeyfld TYPE seokeyfld, attbusobj TYPE seobusobj, END OF ty_obj_attribute . TYPES: ty_obj_attribute_tt TYPE STANDARD TABLE OF ty_obj_attribute WITH DEFAULT KEY WITH NON-UNIQUE SORTED KEY cmpname COMPONENTS cmpname . TYPES: BEGIN OF ty_transport_to_branch, branch_name TYPE string, commit_text TYPE string, END OF ty_transport_to_branch . TYPES: BEGIN OF ty_create, name TYPE string, parent TYPE string, END OF ty_create . TYPES: BEGIN OF ty_commit, sha1 TYPE ty_sha1, parent1 TYPE ty_sha1, parent2 TYPE ty_sha1, author TYPE string, email TYPE string, time TYPE string, message TYPE string, body TYPE stringtab, branch TYPE string, merge TYPE string, tags TYPE stringtab, create TYPE STANDARD TABLE OF ty_create WITH DEFAULT KEY, compressed TYPE abap_bool, END OF ty_commit . TYPES: ty_commit_tt TYPE STANDARD TABLE OF ty_commit WITH DEFAULT KEY . TYPES: BEGIN OF ty_diff, patch_flag TYPE abap_bool, new_num TYPE c LENGTH 6, new TYPE string, result TYPE c LENGTH 1, old_num TYPE c LENGTH 6, old TYPE string, short TYPE abap_bool, beacon TYPE i, END OF ty_diff . TYPES: ty_diffs_tt TYPE STANDARD TABLE OF ty_diff WITH DEFAULT KEY . TYPES: BEGIN OF ty_count, insert TYPE i, delete TYPE i, update TYPE i, END OF ty_count . TYPES: BEGIN OF ty_expanded, path TYPE string, name TYPE string, sha1 TYPE ty_sha1, chmod TYPE ty_chmod, END OF ty_expanded . TYPES: ty_expanded_tt TYPE STANDARD TABLE OF ty_expanded WITH DEFAULT KEY . TYPES: BEGIN OF ty_ancestor, commit TYPE ty_sha1, tree TYPE ty_sha1, time TYPE string, body TYPE string, END OF ty_ancestor . TYPES: BEGIN OF ty_merge, repo TYPE REF TO zcl_abapgit_repo_online, source TYPE ty_git_branch, target TYPE ty_git_branch, common TYPE ty_ancestor, stree TYPE ty_expanded_tt, ttree TYPE ty_expanded_tt, ctree TYPE ty_expanded_tt, result TYPE ty_expanded_tt, stage TYPE REF TO zcl_abapgit_stage, conflict TYPE string, END OF ty_merge . TYPES: BEGIN OF ty_merge_conflict, path TYPE string, filename TYPE string, source_sha1 TYPE zif_abapgit_definitions=>ty_sha1, source_data TYPE xstring, target_sha1 TYPE zif_abapgit_definitions=>ty_sha1, target_data TYPE xstring, result_sha1 TYPE zif_abapgit_definitions=>ty_sha1, result_data TYPE xstring, END OF ty_merge_conflict . TYPES: tt_merge_conflict TYPE STANDARD TABLE OF ty_merge_conflict WITH DEFAULT KEY . TYPES: BEGIN OF ty_repo_item, obj_type TYPE tadir-object, obj_name TYPE tadir-obj_name, inactive TYPE abap_bool, sortkey TYPE i, path TYPE string, is_dir TYPE abap_bool, changes TYPE i, lstate TYPE char1, rstate TYPE char1, files TYPE tt_repo_files, END OF ty_repo_item . TYPES: tt_repo_items TYPE STANDARD TABLE OF ty_repo_item WITH DEFAULT KEY . TYPES: BEGIN OF ty_s_user_settings, max_lines TYPE i, adt_jump_enabled TYPE abap_bool, show_default_repo TYPE abap_bool, link_hints_enabled TYPE abap_bool, link_hint_key TYPE char01, link_hint_background_color TYPE string, hotkeys TYPE tty_hotkey, parallel_proc_disabled TYPE abap_bool, icon_scaling TYPE c LENGTH 1, ui_theme TYPE string, END OF ty_s_user_settings . TYPES: tty_dokil TYPE STANDARD TABLE OF dokil WITH NON-UNIQUE DEFAULT KEY . TYPES: tty_lines TYPE STANDARD TABLE OF i WITH NON-UNIQUE DEFAULT KEY . CONSTANTS: BEGIN OF c_git_branch_type, branch TYPE ty_git_branch_type VALUE 'HD', lightweight_tag TYPE ty_git_branch_type VALUE 'TG', annotated_tag TYPE ty_git_branch_type VALUE 'AT', other TYPE ty_git_branch_type VALUE 'ZZ', END OF c_git_branch_type . CONSTANTS c_head_name TYPE string VALUE 'HEAD' ##NO_TEXT. CONSTANTS: BEGIN OF c_diff, insert TYPE c LENGTH 1 VALUE 'I', delete TYPE c LENGTH 1 VALUE 'D', update TYPE c LENGTH 1 VALUE 'U', END OF c_diff . CONSTANTS: BEGIN OF c_type, commit TYPE zif_abapgit_definitions=>ty_type VALUE 'commit', "#EC NOTEXT tree TYPE zif_abapgit_definitions=>ty_type VALUE 'tree', "#EC NOTEXT ref_d TYPE zif_abapgit_definitions=>ty_type VALUE 'ref_d', "#EC NOTEXT tag TYPE zif_abapgit_definitions=>ty_type VALUE 'tag', "#EC NOTEXT blob TYPE zif_abapgit_definitions=>ty_type VALUE 'blob', "#EC NOTEXT END OF c_type . CONSTANTS: BEGIN OF c_state, " https://git-scm.com/docs/git-status unchanged TYPE char1 VALUE '', added TYPE char1 VALUE 'A', modified TYPE char1 VALUE 'M', deleted TYPE char1 VALUE 'D', "For future use mixed TYPE char1 VALUE '*', END OF c_state . CONSTANTS: BEGIN OF c_chmod, file TYPE ty_chmod VALUE '100644', executable TYPE ty_chmod VALUE '100755', dir TYPE ty_chmod VALUE '40000 ', END OF c_chmod . CONSTANTS c_crlf TYPE abap_cr_lf VALUE cl_abap_char_utilities=>cr_lf ##NO_TEXT. CONSTANTS c_newline TYPE abap_char1 VALUE cl_abap_char_utilities=>newline ##NO_TEXT. CONSTANTS c_english TYPE spras VALUE 'E' ##NO_TEXT. CONSTANTS c_root_dir TYPE string VALUE '/' ##NO_TEXT. CONSTANTS c_dot_abapgit TYPE string VALUE '.abapgit.xml' ##NO_TEXT. CONSTANTS c_author_regex TYPE string VALUE '^([\\\w\s\.\*\,\#@%\-_1-9\(\) ]+) <(.*)> (\d{10})\s?.\d{4}$' ##NO_TEXT. CONSTANTS: BEGIN OF c_action, repo_refresh TYPE string VALUE 'repo_refresh', repo_remove TYPE string VALUE 'repo_remove', repo_settings TYPE string VALUE 'repo_settings', repo_purge TYPE string VALUE 'repo_purge', repo_newonline TYPE string VALUE 'repo_newonline', repo_newoffline TYPE string VALUE 'repo_newoffline', repo_remote_attach TYPE string VALUE 'repo_remote_attach', repo_remote_detach TYPE string VALUE 'repo_remote_detach', repo_remote_change TYPE string VALUE 'repo_remote_change', repo_refresh_checksums TYPE string VALUE 'repo_refresh_checksums', repo_toggle_fav TYPE string VALUE 'repo_toggle_fav', repo_transport_to_branch TYPE string VALUE 'repo_transport_to_branch', repo_syntax_check TYPE string VALUE 'repo_syntax_check', repo_code_inspector TYPE string VALUE 'repo_code_inspector', repo_open_in_master_lang TYPE string VALUE 'repo_open_in_master_lang', abapgit_home TYPE string VALUE 'abapgit_home', abapgit_install TYPE string VALUE 'abapgit_install', zip_import TYPE string VALUE 'zip_import', zip_export TYPE string VALUE 'zip_export', zip_package TYPE string VALUE 'zip_package', zip_transport TYPE string VALUE 'zip_transport', zip_object TYPE string VALUE 'zip_object', git_pull TYPE string VALUE 'git_pull', git_reset TYPE string VALUE 'git_reset', git_branch_create TYPE string VALUE 'git_branch_create', git_branch_switch TYPE string VALUE 'git_branch_switch', git_branch_delete TYPE string VALUE 'git_branch_delete', git_tag_create TYPE string VALUE 'git_tag_create', git_tag_delete TYPE string VALUE 'git_tag_delete', git_tag_switch TYPE string VALUE 'git_tag_switch', git_commit TYPE string VALUE 'git_commit', db_display TYPE string VALUE 'db_display', db_edit TYPE string VALUE 'db_edit', bg_update TYPE string VALUE 'bg_update', go_explore TYPE string VALUE 'go_explore', go_repo_overview TYPE string VALUE 'go_repo_overview', go_db TYPE string VALUE 'go_db', go_background TYPE string VALUE 'go_background', go_background_run TYPE string VALUE 'go_background_run', go_diff TYPE string VALUE 'go_diff', go_stage TYPE string VALUE 'go_stage', go_commit TYPE string VALUE 'go_commit', go_branch_overview TYPE string VALUE 'go_branch_overview', go_tag_overview TYPE string VALUE 'go_tag_overview', go_playground TYPE string VALUE 'go_playground', go_debuginfo TYPE string VALUE 'go_debuginfo', go_settings TYPE string VALUE 'go_settings', go_tutorial TYPE string VALUE 'go_tutorial', go_patch TYPE string VALUE 'go_patch', jump TYPE string VALUE 'jump', jump_pkg TYPE string VALUE 'jump_pkg', jump_transport TYPE string VALUE 'jump_transport', url TYPE string VALUE 'url', END OF c_action . CONSTANTS c_tag_prefix TYPE string VALUE 'refs/tags/' ##NO_TEXT. CONSTANTS c_spagpa_param_repo_key TYPE char20 VALUE 'REPO_KEY' ##NO_TEXT. CONSTANTS c_spagpa_param_package TYPE char20 VALUE 'PACKAGE' ##NO_TEXT. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 198, 220, 44731, 764, 628, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 4906, 220, 220, 220, 41876, 269, 406, 49494, 718, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 2545, 26327, 41876, 269, 406, 49494, 807, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 26270, 16, 220, 220, 220, 41876, 269, 406, 49494, 2319, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 324, 1754, 2624, 41876, 2124, 406, 49494, 604, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 7753, 62, 12683, 1300, 11, 198, 220, 220, 220, 220, 220, 3108, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 29472, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 427, 64, 16, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 7753, 62, 12683, 1300, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 7753, 62, 12683, 6691, 62, 926, 41876, 49053, 9795, 43679, 3963, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 7753, 62, 12683, 1300, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 7753, 62, 12683, 6691, 62, 912, 41876, 311, 9863, 1961, 43679, 3963, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1259, 62, 7753, 62, 12683, 1300, 13315, 4725, 33866, 8924, 35374, 3108, 29472, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 7753, 13, 198, 220, 220, 220, 220, 220, 3268, 5097, 52, 7206, 41876, 1259, 62, 7753, 62, 12683, 1300, 13, 198, 220, 24412, 47, 1546, 25, 1366, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 7753, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 16624, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 7753, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 8841, 62, 926, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 260, 7501, 62, 5420, 62, 926, 41876, 49053, 9795, 43679, 3963, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 1259, 62, 18300, 62, 1671, 3702, 62, 4906, 41876, 1149, 17, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 18300, 62, 1671, 3702, 11, 198, 220, 220, 220, 220, 220, 427, 64, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 11, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 18300, 62, 1671, 3702, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 318, 62, 2256, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 3359, 62, 3672, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 18300, 62, 1671, 3702, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 18300, 62, 1671, 3702, 62, 4868, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 18300, 62, 1671, 3702, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 18300, 62, 12985, 11, 198, 220, 220, 220, 220, 220, 427, 64, 16, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 11, 198, 220, 220, 220, 220, 220, 2134, 220, 220, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 26270, 16, 11, 198, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 2099, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1259, 62, 18300, 62, 1671, 3702, 62, 4906, 11, 198, 220, 220, 220, 220, 220, 3359, 62, 3672, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 7621, 1362, 62, 3672, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 7621, 1362, 62, 12888, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3275, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 1767, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 18300, 62, 12985, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 1259, 62, 18300, 62, 12985, 62, 4868, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 18300, 62, 12985, 13315, 5550, 38865, 35374, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 8940, 2539, 11, 198, 220, 220, 220, 220, 220, 2223, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 3024, 2539, 41876, 4731, 11, 198, 220, 220, 220, 23578, 3963, 1259, 62, 8940, 2539, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 256, 774, 62, 8940, 2539, 41876, 49053, 9795, 43679, 3963, 1259, 62, 8940, 2539, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 5550, 38865, 35374, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 44521, 12, 4944, 33866, 8924, 311, 9863, 1961, 35374, 2223, 198, 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, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
INTERFACE zif_logger_settings PUBLIC . "! Is the log automatically saved when adding messages? "! See setter for more details. METHODS get_autosave RETURNING VALUE(r_auto_save) TYPE abap_bool. "! Set to true if the log is automatically saved when adding messages. "! "! If auto save is disabled, the save() method has to be called manually "! to write the data to the database (it commits the LUW). "! If auto save is enabled, the save() method has no effect. "! By default, auto save is enabled. "! "! Be careful with enabled auto save when processing mass data because it "! can decrease system performance significantly. METHODS set_autosave IMPORTING i_auto_save TYPE abap_bool RETURNING VALUE(r_self) TYPE REF TO zif_logger_settings. "! Get the earliest date on which the log can be deleted. "! See setter for more details. METHODS get_expiry_date RETURNING VALUE(r_expiry_date) TYPE aldate_del. "! Set the earliest date on which the log can be deleted. "! By default the log does not expire. "! "! Further information: https://launchpad.support.sap.com/#/notes/195157 METHODS set_expiry_date IMPORTING i_expiry_date TYPE aldate_del RETURNING VALUE(r_self) TYPE REF TO zif_logger_settings. "! Set the number of days after which the log can be deleted. "! By default the log does not expire. "! "! Further information: https://launchpad.support.sap.com/#/notes/195157 METHODS set_expiry_in_days IMPORTING i_num_days TYPE i RETURNING VALUE(r_self) TYPE REF TO zif_logger_settings. "! Does the log have to be kept until the expiry date is reached? "! See setter for more details. METHODS get_must_be_kept_until_expiry RETURNING VALUE(r_must_be_kept_until_expiry) TYPE del_before. "! Set to true if log must be kept until the expiry date is reached. It "! cannot be deleted before (in transaction SLG2). "! The default is false. "! "! Further information: https://launchpad.support.sap.com/#/notes/195157 METHODS set_must_be_kept_until_expiry IMPORTING i_must_be_kept_until_expiry TYPE del_before RETURNING VALUE(r_self) TYPE REF TO zif_logger_settings. METHODS get_max_exception_drill_down RETURNING VALUE(r_levels) TYPE i. METHODS set_max_exception_drill_down IMPORTING i_levels TYPE i RETURNING VALUE(r_self) TYPE REF TO zif_logger_settings. "! Is a secondary database connection used to write the log entries to the database? "! See setter for more details. METHODS get_usage_of_secondary_db_conn RETURNING VALUE(r_2nd_db_connection_enabled) TYPE flag. "! Set to true if secondary database connection should be used to write the log entries to the database. "! This is important if main program does a rollback (on purpose or after a dump). "! The default is true. METHODS set_usage_of_secondary_db_conn IMPORTING i_use_2nd_db_connection TYPE flag RETURNING VALUE(r_self) TYPE REF TO zif_logger_settings. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 6404, 1362, 62, 33692, 44731, 764, 628, 220, 366, 0, 1148, 262, 2604, 6338, 7448, 618, 4375, 6218, 30, 198, 220, 366, 0, 4091, 900, 353, 329, 517, 3307, 13, 198, 220, 337, 36252, 50, 651, 62, 2306, 418, 1015, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 23736, 62, 21928, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 366, 0, 5345, 284, 2081, 611, 262, 2604, 318, 6338, 7448, 618, 4375, 6218, 13, 198, 220, 366, 0, 198, 220, 366, 0, 1002, 8295, 3613, 318, 10058, 11, 262, 3613, 3419, 2446, 468, 284, 307, 1444, 14500, 198, 220, 366, 0, 284, 3551, 262, 1366, 284, 262, 6831, 357, 270, 23463, 262, 50168, 54, 737, 198, 220, 366, 0, 1002, 8295, 3613, 318, 9343, 11, 262, 3613, 3419, 2446, 468, 645, 1245, 13, 198, 220, 366, 0, 2750, 4277, 11, 8295, 3613, 318, 9343, 13, 198, 220, 366, 0, 198, 220, 366, 0, 1355, 8161, 351, 9343, 8295, 3613, 618, 7587, 2347, 1366, 780, 340, 198, 220, 366, 0, 460, 10070, 1080, 2854, 5566, 13, 198, 220, 337, 36252, 50, 900, 62, 2306, 418, 1015, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1312, 62, 23736, 62, 21928, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 944, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 6404, 1362, 62, 33692, 13, 628, 220, 366, 0, 3497, 262, 14555, 3128, 319, 543, 262, 2604, 460, 307, 13140, 13, 198, 220, 366, 0, 4091, 900, 353, 329, 517, 3307, 13, 198, 220, 337, 36252, 50, 651, 62, 1069, 4063, 88, 62, 4475, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 1069, 4063, 88, 62, 4475, 8, 41876, 257, 335, 378, 62, 12381, 13, 628, 220, 366, 0, 5345, 262, 14555, 3128, 319, 543, 262, 2604, 460, 307, 13140, 13, 198, 220, 366, 0, 2750, 4277, 262, 2604, 857, 407, 24264, 13, 198, 220, 366, 0, 198, 220, 366, 0, 7735, 1321, 25, 3740, 1378, 35681, 15636, 13, 11284, 13, 82, 499, 13, 785, 31113, 14, 17815, 14, 22186, 18458, 198, 220, 337, 36252, 50, 900, 62, 1069, 4063, 88, 62, 4475, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1312, 62, 1069, 4063, 88, 62, 4475, 41876, 257, 335, 378, 62, 12381, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 944, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 6404, 1362, 62, 33692, 13, 628, 220, 366, 0, 5345, 262, 1271, 286, 1528, 706, 543, 262, 2604, 460, 307, 13140, 13, 198, 220, 366, 0, 2750, 4277, 262, 2604, 857, 407, 24264, 13, 198, 220, 366, 0, 198, 220, 366, 0, 7735, 1321, 25, 3740, 1378, 35681, 15636, 13, 11284, 13, 82, 499, 13, 785, 31113, 14, 17815, 14, 22186, 18458, 198, 220, 337, 36252, 50, 900, 62, 1069, 4063, 88, 62, 259, 62, 12545, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1312, 62, 22510, 62, 12545, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 944, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 6404, 1362, 62, 33692, 13, 628, 220, 366, 0, 8314, 262, 2604, 423, 284, 307, 4030, 1566, 262, 1033, 9045, 3128, 318, 4251, 30, 198, 220, 366, 0, 4091, 900, 353, 329, 517, 3307, 13, 198, 220, 337, 36252, 50, 651, 62, 27238, 62, 1350, 62, 45089, 62, 28446, 62, 1069, 4063, 88, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 27238, 62, 1350, 62, 45089, 62, 28446, 62, 1069, 4063, 88, 8, 41876, 1619, 62, 19052, 13, 628, 220, 366, 0, 5345, 284, 2081, 611, 2604, 1276, 307, 4030, 1566, 262, 1033, 9045, 3128, 318, 4251, 13, 632, 198, 220, 366, 0, 2314, 307, 13140, 878, 357, 259, 8611, 12419, 38, 17, 737, 198, 220, 366, 0, 383, 4277, 318, 3991, 13, 198, 220, 366, 0, 198, 220, 366, 0, 7735, 1321, 25, 3740, 1378, 35681, 15636, 13, 11284, 13, 82, 499, 13, 785, 31113, 14, 17815, 14, 22186, 18458, 198, 220, 337, 36252, 50, 900, 62, 27238, 62, 1350, 62, 45089, 62, 28446, 62, 1069, 4063, 88, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1312, 62, 27238, 62, 1350, 62, 45089, 62, 28446, 62, 1069, 4063, 88, 41876, 1619, 62, 19052, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 944, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 6404, 1362, 62, 33692, 13, 628, 220, 337, 36252, 50, 651, 62, 9806, 62, 1069, 4516, 62, 7109, 359, 62, 2902, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 46170, 8, 41876, 1312, 13, 628, 220, 337, 36252, 50, 900, 62, 9806, 62, 1069, 4516, 62, 7109, 359, 62, 2902, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1312, 62, 46170, 220, 220, 220, 220, 220, 41876, 1312, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 944, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 6404, 1362, 62, 33692, 13, 628, 220, 366, 0, 1148, 257, 9233, 6831, 4637, 973, 284, 3551, 262, 2604, 12784, 284, 262, 6831, 30, 198, 220, 366, 0, 4091, 900, 353, 329, 517, 3307, 13, 198, 220, 337, 36252, 50, 651, 62, 26060, 62, 1659, 62, 38238, 62, 9945, 62, 37043, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZLNKECL_AWS_SIGN_V4_HEADER definition public inheriting from ZLNKECL_AWS_SIGN_V4_BASE final create public . *"* public components of class ZLNKECL_AWS_SIGN_V4_HEADER *"* do not include other source files here!!! public section. methods CONSTRUCTOR importing !I_HTTP_REQUEST type ref to IF_HTTP_REQUEST !I_ENDPOINT_URL type STRING !I_HTTP_METHOD type STRING !I_SERVICE_NAME type STRING default 's3' !I_REGION type STRING . methods COMPUTESIGNATURE importing !I_BODY_HASH type STRING !I_AWS_ACCESS_KEY type STRING !I_AWS_SECRET_KEY type STRING raising CX_ABAP_MESSAGE_DIGEST . protected section. *"* protected components of class ZLNKECL_AWS_SIGN_V4_HEADER *"* do not include other source files here!!! private section. *"* private components of class ZLNKECL_AWS_SIGN_V4_HEADER *"* do not include other source files here!!! ENDCLASS. CLASS ZLNKECL_AWS_SIGN_V4_HEADER IMPLEMENTATION. METHOD computesignature. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 26th March 2014 * Signs the http_request adding to the header the required data *--------------------------------------------------------------------* DATA: l_date TYPE datum, l_time TYPE uzeit. DATA: l_x_amz_date TYPE string, l_datestmp TYPE string. DATA: l_host TYPE string. DATA: l_canonicalizedheadernames TYPE string. DATA: l_canonicalizedheaders TYPE string. DATA: l_canonicalizedqueryparameters TYPE string. DATA: l_canonicalrequest TYPE string. DATA: l_scope TYPE string. DATA: l_stringtosign TYPE string. DATA: l_ksecret TYPE string, l_signature TYPE string. DATA: l_xkdate TYPE xstring, l_xkregion TYPE xstring, l_xkservice TYPE xstring, l_xksigning TYPE xstring, l_xsignature TYPE xstring. DATA: l_authorizationheader TYPE string. lr_attr_http_request->set_header_field( name = 'x-amz-content-sha256' "#EC NOTEXT value = i_body_hash ). get_date_time_utc( IMPORTING e_date_utc = l_date e_time_utc = l_time ). l_x_amz_date = get_tstmp_iso8601basicformat( i_date = l_date i_time = l_time ). lr_attr_http_request->set_header_field( name = 'x-amz-date' "#EC NOTEXT value = l_x_amz_date ). l_host = get_host( ). lr_attr_http_request->set_header_field( name = 'Host' "#EC NOTEXT value = l_host ). l_canonicalizedheadernames = get_canonicalizeheadernames( ). l_canonicalizedheaders = get_canonicalizedheaderstring( ). l_canonicalizedqueryparameters = get_canonicalizedquerystring( ). * WRITE:/ 'Canonicalized Query Parameters:'. * WRITE:/ l_canonicalizedqueryparameters. l_canonicalrequest = get_canonicalrequest( i_canonicalizedqueryparameters = l_canonicalizedqueryparameters i_canonicalizedheadernames = l_canonicalizedheadernames i_canonicalizedheaders = l_canonicalizedheaders i_bodyhash = i_body_hash ). * Builds the scope CONCATENATE l_date attr_region attr_service_name c_terminator INTO l_scope SEPARATED BY '/'. l_stringtosign = get_stringtosign( i_scheme = c_scheme i_algorithm = c_algorithm i_datetime = l_x_amz_date i_scope = l_scope i_canonicalrequest = l_canonicalrequest ). * WRITE:/ 'Canonical Request:'. * WRITE:/ l_canonicalrequest. * WRITE:/ 'String to sign:'. * WRITE:/ l_stringtosign. * WRITE:/. CONCATENATE c_scheme i_aws_secret_key INTO l_ksecret. l_datestmp = l_date. l_xkdate = hmac_sign_kstring( i_string = l_datestmp i_key = l_ksecret ). l_xkregion = hmac_sign_kxstring( i_string = attr_region i_xkey = l_xkdate ). l_xkservice = hmac_sign_kxstring( i_string = attr_service_name i_xkey = l_xkregion ). l_xksigning = hmac_sign_kxstring( i_string = c_terminator i_xkey = l_xkservice ). l_xsignature = hmac_sign_kxstring( i_string = l_stringtosign i_xkey = l_xksigning ). l_signature = l_xsignature. TRANSLATE l_signature TO LOWER CASE. CONCATENATE c_scheme '-' c_algorithm ' ' "#EC NOTEXT 'Credential=' i_aws_access_key '/' l_scope ', ' 'SignedHeaders=' l_canonicalizedheadernames ', ' 'Signature=' l_signature INTO l_authorizationheader RESPECTING BLANKS. lr_attr_http_request->set_header_field( name = 'Authorization' "#EC NOTEXT value = l_authorizationheader ). ENDMETHOD. METHOD CONSTRUCTOR. *--------------------------------------------------------------------* * Company: RocketSteam * Author: Jordi Escoda, 26th March 2014 * Object constructor *--------------------------------------------------------------------* CALL METHOD super->constructor EXPORTING i_http_request = i_http_request i_endpoint_url = i_endpoint_url i_http_method = i_http_method i_service_name = i_service_name i_region = i_region. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 43, 46888, 2943, 43, 62, 12298, 50, 62, 46224, 62, 53, 19, 62, 37682, 1137, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 43, 46888, 2943, 43, 62, 12298, 50, 62, 46224, 62, 53, 19, 62, 33, 11159, 198, 220, 2457, 198, 220, 2251, 1171, 764, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 12298, 50, 62, 46224, 62, 53, 19, 62, 37682, 1137, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 11377, 2665, 13, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 40717, 62, 2200, 35780, 2099, 1006, 284, 16876, 62, 40717, 62, 2200, 35780, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 1677, 6322, 46, 12394, 62, 21886, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 40717, 62, 49273, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 35009, 27389, 62, 20608, 2099, 19269, 2751, 4277, 705, 82, 18, 6, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 31553, 2849, 2099, 19269, 2751, 764, 198, 220, 5050, 24301, 3843, 1546, 16284, 40086, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 33, 33076, 62, 39, 11211, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 12298, 50, 62, 26861, 7597, 62, 20373, 2099, 19269, 2751, 198, 220, 220, 220, 220, 220, 5145, 40, 62, 12298, 50, 62, 23683, 26087, 62, 20373, 2099, 19269, 2751, 198, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 327, 55, 62, 6242, 2969, 62, 44, 1546, 4090, 8264, 62, 35, 3528, 6465, 764, 198, 24326, 2665, 13, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 12298, 50, 62, 46224, 62, 53, 19, 62, 37682, 1137, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 19734, 2665, 13, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1168, 43, 46888, 2943, 43, 62, 12298, 50, 62, 46224, 62, 53, 19, 62, 37682, 1137, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 43, 46888, 2943, 43, 62, 12298, 50, 62, 46224, 62, 53, 19, 62, 37682, 1137, 30023, 2538, 10979, 6234, 13, 628, 198, 49273, 552, 1769, 570, 1300, 13, 198, 9, 10097, 650, 9, 198, 9, 5834, 25, 16920, 19109, 198, 9, 6434, 25, 38317, 72, 16319, 11329, 11, 2608, 400, 2805, 1946, 198, 9, 37027, 262, 2638, 62, 25927, 4375, 284, 262, 13639, 262, 2672, 1366, 198, 9, 10097, 650, 9, 198, 220, 42865, 25, 300, 62, 4475, 41876, 4818, 388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 2435, 41876, 334, 2736, 270, 13, 198, 220, 42865, 25, 300, 62, 87, 62, 321, 89, 62, 4475, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 19608, 395, 3149, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 4774, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 49883, 605, 1143, 2256, 1142, 1047, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 49883, 605, 1143, 50145, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 49883, 605, 1143, 22766, 17143, 7307, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 49883, 605, 25927, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 29982, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 8841, 83, 418, 570, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 74, 21078, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 12683, 1300, 41876, 4731, 13, 198, 220, 42865, 25, 300, 62, 87, 74, 4475, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 87, 74, 36996, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 87, 591, 712, 501, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 87, 591, 38944, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 62, 87, 12683, 1300, 41876, 2124, 8841, 13, 198, 220, 42865, 25, 300, 62, 9800, 1634, 25677, 41876, 4731, 13, 628, 220, 300, 81, 62, 35226, 62, 4023, 62, 25927, 3784, 2617, 62, 25677, 62, 3245, 7, 1438, 220, 796, 705, 87, 12, 321, 89, 12, 11299, 12, 26270, 11645, 6, 25113, 2943, 5626, 13918, 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, 1988, 796, 1312, 62, 2618, 62, 17831, 6739, 628, 220, 651, 62, 4475, 62, 2435, 62, 315, 66, 7, 30023, 9863, 2751, 304, 62, 4475, 62, 315, 66, 796, 300, 62, 4475, 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, 304, 62, 2435, 62, 315, 66, 796, 300, 62, 2435, 6739, 628, 220, 300, 62, 87, 62, 321, 89, 62, 4475, 796, 651, 62, 83, 301, 3149, 62, 26786, 4521, 486, 35487, 18982, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 4475, 796, 300, 62, 4475, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 2435, 796, 300, 62, 2435, 6739, 628, 220, 300, 81, 62, 35226, 62, 4023, 62, 25927, 3784, 2617, 62, 25677, 62, 3245, 7, 1438, 220, 796, 705, 87, 12, 321, 89, 12, 4475, 6, 25113, 2943, 5626, 13918, 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, 1988, 796, 300, 62, 87, 62, 321, 89 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*/--------------------------------------------------------------------------------\ *| Include assembler - create a program text with statically included includes. | *| | *| The MIT License (MIT) | *| | *| Copyright (c) 2019 Alexander Tsybulsky | *| | *| Permission is hereby granted, free of charge, to any person obtaining a copy | *| of this software and associated documentation files (the "Software"), to deal | *| in the Software without restriction, including without limitation the rights | *| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | *| copies of the Software, and to permit persons to whom the Software is | *| furnished to do so, subject to the following conditions: | *| | *| The above copyright notice and this permission notice shall be included in all | *| copies or substantial portions of the Software. | *| | *| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | *| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | *| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | *| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | *| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | *| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | *| SOFTWARE. | *\--------------------------------------------------------------------------------/ */--------------------------------------------------------------------------------\ *| Developers : Alexander Tsybulsky ([email protected]) | *| project homepage: https://github.com/sbcgua/abap_include_assembler | *\--------------------------------------------------------------------------------/ report zinclude_assembler. include zinclude_assembler_errors. include zinclude_assembler_interfaces. include zinclude_assembler_extractors. include zinclude_assembler_matchers. include zinclude_assembler_code_obj. include zinclude_assembler_assembler. include zinclude_assembler_saver. ********************************************************************** * MAIN ********************************************************************** class lcl_main definition final. public section. types: begin of ty_deps, depends type seoclasstx-clsname, from type seoclasstx-clsname, end of ty_deps, tt_deps type standard table of ty_deps with default key, tt_class_names type standard table of seoclasstx-clsname with default key, ts_class_names type sorted table of seoclasstx-clsname with unique key table_line. data: m_progname type sobj_name, m_classes type ts_class_names, m_disable_marking type abap_bool, m_path type string, m_saver type char1. methods constructor importing i_progname type sobj_name i_classes type tt_class_names i_disable_marking type abap_bool i_path type string i_saver type char1. methods run. methods list_includes importing io_prog type ref to lcl_code_object. methods save importing it_codetab type string_table raising lcx_error. methods process_prog returning value(rt_codetab) type string_table raising lcx_error. methods process_clas returning value(rt_codetab) type string_table raising lcx_error. endclass. class lcl_main implementation. method constructor. m_progname = i_progname. m_classes = i_classes. m_disable_marking = i_disable_marking. m_path = i_path. m_saver = i_saver. endmethod. method run. data lo_ex type ref to lcx_error. data lt_codetab type string_table. try. write: / 'Assembling program:', m_progname. "#EC NOTEXT if m_progname is not initial. lt_codetab = process_prog( ). elseif m_classes is not initial. lt_codetab = process_clas( ). else. lcx_error=>raise( 'No source specified' ). endif. skip. uline. save( lt_codetab ). catch lcx_error into lo_ex. write: / lo_ex->msg. return. endtry. endmethod. method process_prog. data lo_accessor type ref to lcl_extractor_prog. data lo_progcode type ref to lcl_code_object. create object lo_accessor. lo_progcode = lcl_code_object=>load( io_accessor = lo_accessor i_progname = m_progname ). list_includes( lo_progcode ). data lo_assembler type ref to lcl_assembler. data ls_params type lcl_assembler=>ty_params. create object lo_assembler exporting io_prog = lo_progcode. ls_params-disable_marking = m_disable_marking. rt_codetab = lo_assembler->assemble( ls_params ). endmethod. method process_clas. data lt_deps type tt_deps. field-symbols <c> like line of m_classes. field-symbols <dep> like line of lt_deps. loop at m_classes assigning <c>. data lt_env type senvi_tab. data ls_env_types type envi_types. data lv_name type tadir-obj_name. data lv_type type euobj-id. lv_name = <c>. ls_env_types-clas = abap_true. data lo_type type ref to cl_abap_typedescr. lo_type = cl_abap_typedescr=>describe_by_name( lv_name ). if lo_type is not bound. lcx_error=>raise( |Class/intf { lv_name } not found| ). endif. if lo_type->type_kind = lo_type->typekind_class. lv_type = 'CLAS'. elseif lo_type->type_kind = lo_type->typekind_intf. lv_type = 'INTF'. else. lcx_error=>raise( |{ lv_name } has unexpected type kind ({ lo_type->type_kind })| ). endif. call function 'REPOSITORY_ENVIRONMENT_SET' exporting obj_type = lv_type object_name = lv_name environment_types = ls_env_types tables environment = lt_env exceptions others = 4. field-symbols <env> like line of lt_env. data lv_search_key type seoclasstx-clsname. data lv_dep_size type i. lv_dep_size = lines( lt_deps ). loop at lt_env assigning <env>. check <env>-type = 'CLAS' or <env>-type = 'INTF' or <env>-type = 'OM'. if <env>-type = 'CLAS' or <env>-type = 'INTF'. lv_search_key = <env>-object. elseif <env>-type = 'OM'. lv_search_key = <env>-encl_obj. else. continue. endif. read table m_classes with key table_line = lv_search_key transporting no fields. if sy-subrc = 0. append initial line to lt_deps assigning <dep>. <dep>-depends = <c>. <dep>-from = lv_search_key. endif. endloop. if lines( lt_deps ) = lv_dep_size. " No dependencies append initial line to lt_deps assigning <dep>. <dep>-depends = <c>. endif. * data lt_tadir type if_ris_environment_types=>ty_t_senvi_tadir. * cl_wb_ris_environment=>convert_senvi_to_tadir( * exporting * senvi = lt_env * importing * senvi_tadir = lt_tadir ). endloop. " Protection from self cycle sort lt_deps by depends from. delete adjacent duplicates from lt_deps. loop at lt_deps assigning <dep>. read table lt_deps transporting no fields binary search with key depends = <dep>-from from = <dep>-depends. if sy-subrc = 0. lcx_error=>raise( 'Class self cycle detected' ). endif. endloop. data lt_ordered_classes type tt_class_names. data lt_unordered_classes type tt_class_names. data l_index type i. lt_unordered_classes = m_classes. while lines( lt_unordered_classes ) > 0. loop at lt_unordered_classes assigning <c>. l_index = sy-tabix. read table lt_deps assigning <dep> binary search with key depends = <c>. assert sy-subrc = 0. if <dep>-from is initial. delete lt_deps index sy-tabix. loop at lt_deps assigning <dep> where from = <c>. clear <dep>-from. endloop. append <c> to lt_ordered_classes. delete lt_unordered_classes index l_index. endif. endloop. endwhile. " Serialize data lt_code like rt_codetab. data lo_accessor type ref to lcl_extractor_clas. create object lo_accessor. loop at lt_ordered_classes assigning <c>. if rt_codetab is not initial. append '' to rt_codetab. append '' to rt_codetab. endif. lt_code = lo_accessor->lif_devobj_accessor~get_code( |{ <c> }| ). append lines of lt_code to rt_codetab. endloop. " TODO: strip "public" from definition endmethod. method list_includes. data ls_include type lcl_code_object=>ty_include. data l_tmp type string. loop at io_prog->at_includes into ls_include. l_tmp = |@{ io_prog->a_name }:{ ls_include-lnum } |. write: / ' include found:', ls_include-obj->a_name, l_tmp, "#EC NOTEXT 'DEVC =', ls_include-obj->a_devclass. list_includes( ls_include-obj ). endloop. endmethod. method save. data lo_saver type ref to lif_devobj_saver. data l_path type string. l_path = m_path. case m_saver. when 'D'. create object lo_saver type lcl_saver_to_display. when 'F'. create object lo_saver type lcl_saver_to_file. data len type i. len = strlen( l_path ) - 1. if len >= 0 and m_path+len(1) = '\'. concatenate l_path m_progname '.abap' into l_path. "#EC NOTEXT endif. when 'C'. create object lo_saver type lcl_saver_to_program. when others. lcx_error=>raise( 'ERROR: unknown saver' ). "#EC NOTEXT endcase. lo_saver->save( i_path = l_path i_codetab = it_codetab ). case m_saver. when 'F'. write: / 'Result saved to file:', l_path. "#EC NOTEXT when 'C'. write: / 'Result saved to program:', l_path. "#EC NOTEXT write: / 'The program remained inactive'. "#EC NOTEXT endcase. endmethod. endclass. ********************************************************************** * SELECTION SCREEN ********************************************************************** tables: seoclasstx. selection-screen begin of block b1 with frame title txt_b1. parameters p_prog type programm default 'ZIS_EXAMPLE'. select-options s_class for seoclasstx-clsname. parameters p_womark type xfeld. selection-screen end of block b1. selection-screen begin of block b2 with frame title txt_b2. selection-screen begin of line. selection-screen comment (24) txt_disp for field p_disp. parameters p_disp type char1 radiobutton group r1 default 'X'. selection-screen end of line. selection-screen begin of line. selection-screen comment (24) txt_file for field p_file. parameters p_file type char1 radiobutton group r1. selection-screen end of line. selection-screen begin of line. selection-screen comment (24) txt_code for field p_code. parameters p_code type char1 radiobutton group r1. selection-screen end of line. selection-screen begin of line. selection-screen comment (24) txt_path for field p_path modif id pth. parameters p_path type char255 modif id pth. selection-screen end of line. selection-screen end of block b2. initialization. txt_b1 = 'Source program'. "#EC NOTEXT txt_b2 = 'Save parameters'. "#EC NOTEXT txt_disp = 'Show on display'. "#EC NOTEXT txt_file = 'Save to file'. "#EC NOTEXT txt_code = 'Save to target program'. "#EC NOTEXT txt_path = 'Path to file / Prog name'."#EC NOTEXT " TODO normal parameters show/hide and file/prog-search ********************************************************************** * ENTRY POINT ********************************************************************** start-of-selection. data go_main type ref to lcl_main. data g_saver type char1. data gt_class_list type lcl_main=>tt_class_names. case 'X'. when p_disp. g_saver = 'D'. when p_file. g_saver = 'F'. when p_code. g_saver = 'C'. endcase. select clsname from seoclasstx into table gt_class_list where clsname in s_class. create object go_main exporting i_progname = p_prog i_classes = gt_class_list i_disable_marking = p_womark i_path = |{ p_path }| i_saver = g_saver. go_main->run( ).
[ 16208, 10097, 1783, 59, 198, 9, 91, 40348, 11156, 1754, 532, 2251, 257, 1430, 2420, 351, 47746, 3017, 3407, 13, 220, 220, 930, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 383, 17168, 13789, 357, 36393, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 15069, 357, 66, 8, 13130, 10009, 309, 1837, 65, 5753, 2584, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 220, 220, 930, 198, 9, 91, 286, 428, 3788, 290, 3917, 10314, 3696, 357, 1169, 366, 25423, 12340, 284, 1730, 220, 930, 198, 9, 91, 287, 262, 10442, 1231, 17504, 11, 1390, 1231, 17385, 262, 2489, 220, 220, 930, 198, 9, 91, 284, 779, 11, 4866, 11, 13096, 11, 20121, 11, 7715, 11, 14983, 11, 850, 43085, 11, 290, 14, 273, 3677, 220, 220, 220, 220, 220, 930, 198, 9, 91, 9088, 286, 262, 10442, 11, 290, 284, 8749, 6506, 284, 4150, 262, 10442, 318, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 30760, 284, 466, 523, 11, 2426, 284, 262, 1708, 3403, 25, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 383, 2029, 6634, 4003, 290, 428, 7170, 4003, 2236, 307, 3017, 287, 477, 930, 198, 9, 91, 9088, 393, 8904, 16690, 286, 262, 10442, 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, 930, 198, 9, 91, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 3336, 47466, 3180, 36592, 2389, 1961, 366, 1921, 3180, 1600, 42881, 34764, 56, 3963, 15529, 509, 12115, 11, 7788, 32761, 6375, 220, 220, 220, 220, 930, 198, 9, 91, 8959, 49094, 11, 47783, 2751, 21728, 5626, 40880, 5390, 3336, 34764, 11015, 3963, 34482, 3398, 1565, 5603, 25382, 11, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 376, 46144, 7473, 317, 16652, 2149, 37232, 33079, 48933, 5357, 44521, 1268, 10913, 2751, 12529, 13, 3268, 8005, 49261, 50163, 3336, 220, 220, 220, 930, 198, 9, 91, 37195, 20673, 6375, 27975, 38162, 9947, 367, 15173, 4877, 9348, 43031, 19146, 7473, 15529, 47666, 3955, 11, 29506, 25552, 6375, 25401, 220, 220, 220, 220, 220, 220, 220, 220, 930, 198, 9, 91, 43031, 25382, 11, 7655, 2767, 16879, 3268, 3537, 40282, 3963, 27342, 10659, 11, 309, 9863, 6375, 25401, 54, 24352, 11, 5923, 1797, 2751, 16034, 11, 220, 930, 198, 9, 91, 16289, 3963, 6375, 3268, 7102, 45, 24565, 13315, 3336, 47466, 6375, 3336, 23210, 6375, 25401, 5550, 1847, 20754, 3268, 3336, 220, 930, 198, 9, 91, 47466, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
"Name: \FU:LAST_WEEK\SE:END\EI ENHANCEMENT 0 ZDOP_STD_FM_CODE_ENHANCEMENT. * data tatil_gunu_tablosu_zdop type table of iscal_day. CALL FUNCTION 'HOLIDAY_GET' EXPORTING HOLIDAY_CALENDAR = 'GE' DATE_FROM = Monday DATE_TO = Sunday TABLES holidays = tatil_gunu_tablosu_zdop EXCEPTIONS FACTORY_CALENDAR_NOT_FOUND = 1 HOLIDAY_CALENDAR_NOT_FOUND = 2 DATE_HAS_INVALID_FORMAT = 3 DATE_INCONSISTENCY = 4 OTHERS = 5. IF sy-subrc = 0. TATIL_GUNU_SAYISI_5 = lines( tatil_gunu_tablosu_zdop ). ENDIF. ENDENHANCEMENT.
[ 1, 5376, 25, 3467, 38989, 25, 43, 11262, 62, 54, 33823, 59, 5188, 25, 10619, 59, 36, 40, 198, 1677, 39, 20940, 12529, 657, 1168, 35, 3185, 62, 32147, 62, 23264, 62, 34, 16820, 62, 1677, 39, 20940, 12529, 13, 198, 9, 198, 220, 1366, 256, 265, 346, 62, 7145, 84, 62, 8658, 33280, 84, 62, 89, 67, 404, 2099, 3084, 286, 318, 9948, 62, 820, 13, 628, 220, 42815, 29397, 4177, 2849, 705, 39, 3535, 2389, 4792, 62, 18851, 6, 198, 220, 7788, 15490, 2751, 198, 220, 220, 220, 49707, 2389, 4792, 62, 34, 1847, 10619, 1503, 796, 705, 8264, 6, 198, 220, 220, 220, 360, 6158, 62, 10913, 2662, 796, 3321, 198, 220, 220, 220, 360, 6158, 62, 10468, 796, 3502, 198, 220, 309, 6242, 28378, 198, 220, 220, 220, 17122, 796, 256, 265, 346, 62, 7145, 84, 62, 8658, 33280, 84, 62, 89, 67, 404, 198, 220, 7788, 42006, 11053, 198, 220, 220, 220, 376, 10659, 15513, 62, 34, 1847, 10619, 1503, 62, 11929, 62, 37, 15919, 796, 352, 198, 220, 220, 220, 49707, 2389, 4792, 62, 34, 1847, 10619, 1503, 62, 11929, 62, 37, 15919, 796, 362, 198, 220, 220, 220, 360, 6158, 62, 39, 1921, 62, 1268, 23428, 2389, 62, 21389, 1404, 796, 513, 198, 220, 220, 220, 360, 6158, 62, 1268, 10943, 50, 8808, 45155, 796, 604, 198, 220, 220, 220, 440, 4221, 4877, 796, 642, 13, 628, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 309, 1404, 4146, 62, 38, 4944, 52, 62, 27358, 1797, 40, 62, 20, 796, 3951, 7, 256, 265, 346, 62, 7145, 84, 62, 8658, 33280, 84, 62, 89, 67, 404, 6739, 198, 220, 23578, 5064, 13, 198, 10619, 1677, 39, 20940, 12529, 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 ]
class ZCL_MONSTER_OBJECT_FACTORY definition public create public global friends ZCL_MONSTER_OBJECT_INJECTOR . public section. *--------------------------------------------------------------------* * Listing 05.10: Monster Object Factory Class Definiton *--------------------------------------------------------------------* methods GET_MONSTER_MAKING_MACHINE returning value(RO_MONSTER_MAKING_MACHINE) type ref to ZIF_MONSTER_MAKING_MACHINE . methods GET_PERSISTENCY_LAYER returning value(RO_PERSISTENCY_LAYER) type ref to ZIF_MONSTER_SIM_PERS_LAYER . methods GET_LOGGER returning value(RO_LOGGER) type ref to ZIF_MONSTER_LOGGER . class-methods GET_INSTANCE returning value(RO_FACTORY) type ref to ZCL_MONSTER_OBJECT_FACTORY . PROTECTED SECTION. private section. data MO_MONSTER_MAKING_MACHINE type ref to ZIF_MONSTER_MAKING_MACHINE . data MO_PERS_LAYER type ref to ZIF_MONSTER_SIM_PERS_LAYER . data MO_LOGGER type ref to ZIF_MONSTER_LOGGER . class-data MO_FACTORY type ref to ZCL_MONSTER_OBJECT_FACTORY . ENDCLASS. CLASS ZCL_MONSTER_OBJECT_FACTORY IMPLEMENTATION. METHOD get_instance. IF mo_factory IS NOT BOUND. CREATE OBJECT mo_factory. ENDIF. ro_factory = mo_factory. ENDMETHOD. METHOD get_logger. IF mo_logger IS NOT BOUND. "Logic could be really complicated here CREATE OBJECT mo_logger TYPE zcl_monster_logger. ENDIF. ro_logger = mo_logger. ENDMETHOD. METHOD get_monster_making_machine. *--------------------------------------------------------------------* * Listing 05.12: Monster Object Factory Returning an Instance *--------------------------------------------------------------------* IF mo_monster_making_machine IS NOT BOUND. "Logic could be really complicated here - all data needed to determine the "exact class type can be passed into the GET method an then the so called "OPENC-CLOSED factory determines the correct concrete class CREATE OBJECT mo_monster_making_machine TYPE zcl_monster_making_machine. ENDIF. ro_monster_making_machine = mo_monster_making_machine. ENDMETHOD. METHOD get_persistency_layer. IF mo_pers_layer IS NOT BOUND. CREATE OBJECT mo_pers_layer TYPE zcl_monster_sim_pers_layer EXPORTING io_logger = get_logger( ) id_valid_on = sy-datum. " Validaty Date ENDIF. ro_persistency_layer = mo_pers_layer. ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 27857, 41809, 62, 9864, 23680, 62, 37, 10659, 15513, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 628, 220, 3298, 2460, 1168, 5097, 62, 27857, 41809, 62, 9864, 23680, 62, 1268, 23680, 1581, 764, 198, 198, 11377, 2665, 13, 198, 198, 9, 10097, 650, 9, 198, 9, 7343, 278, 8870, 13, 940, 25, 12635, 9515, 19239, 5016, 2896, 15003, 261, 198, 9, 10097, 650, 9, 198, 220, 5050, 17151, 62, 27857, 41809, 62, 5673, 37286, 62, 44, 16219, 8881, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 13252, 62, 27857, 41809, 62, 5673, 37286, 62, 44, 16219, 8881, 8, 2099, 1006, 284, 1168, 5064, 62, 27857, 41809, 62, 5673, 37286, 62, 44, 16219, 8881, 764, 198, 220, 5050, 17151, 62, 47, 4877, 8808, 45155, 62, 43, 4792, 1137, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 13252, 62, 47, 4877, 8808, 45155, 62, 43, 4792, 1137, 8, 2099, 1006, 284, 1168, 5064, 62, 27857, 41809, 62, 48913, 62, 47, 4877, 62, 43, 4792, 1137, 764, 198, 220, 5050, 17151, 62, 25294, 30373, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 13252, 62, 25294, 30373, 8, 2099, 1006, 284, 1168, 5064, 62, 27857, 41809, 62, 25294, 30373, 764, 198, 220, 1398, 12, 24396, 82, 17151, 62, 38604, 19240, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 13252, 62, 37, 10659, 15513, 8, 2099, 1006, 284, 1168, 5097, 62, 27857, 41809, 62, 9864, 23680, 62, 37, 10659, 15513, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 19734, 2665, 13, 628, 220, 1366, 13070, 62, 27857, 41809, 62, 5673, 37286, 62, 44, 16219, 8881, 2099, 1006, 284, 1168, 5064, 62, 27857, 41809, 62, 5673, 37286, 62, 44, 16219, 8881, 764, 198, 220, 1366, 13070, 62, 47, 4877, 62, 43, 4792, 1137, 2099, 1006, 284, 1168, 5064, 62, 27857, 41809, 62, 48913, 62, 47, 4877, 62, 43, 4792, 1137, 764, 198, 220, 1366, 13070, 62, 25294, 30373, 2099, 1006, 284, 1168, 5064, 62, 27857, 41809, 62, 25294, 30373, 764, 198, 220, 1398, 12, 7890, 13070, 62, 37, 10659, 15513, 2099, 1006, 284, 1168, 5097, 62, 27857, 41809, 62, 9864, 23680, 62, 37, 10659, 15513, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 27857, 41809, 62, 9864, 23680, 62, 37, 10659, 15513, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 651, 62, 39098, 13, 628, 220, 220, 220, 16876, 6941, 62, 69, 9548, 3180, 5626, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 69, 9548, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 686, 62, 69, 9548, 796, 6941, 62, 69, 9548, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 6404, 1362, 13, 628, 220, 220, 220, 16876, 6941, 62, 6404, 1362, 3180, 5626, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 366, 11187, 291, 714, 307, 1107, 8253, 994, 198, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 6404, 1362, 41876, 1976, 565, 62, 39050, 62, 6404, 1362, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 686, 62, 6404, 1362, 796, 6941, 62, 6404, 1362, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 39050, 62, 8601, 62, 30243, 13, 198, 9, 10097, 650, 9, 198, 9, 7343, 278, 8870, 13, 1065, 25, 12635, 9515, 19239, 42882, 281, 2262, 590, 198, 9, 10097, 650, 9, 198, 220, 220, 220, 16876, 6941, 62, 39050, 62, 8601, 62, 30243, 3180, 5626, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 366, 11187, 291, 714, 307, 1107, 8253, 994, 532, 477, 1366, 2622, 284, 5004, 262, 198, 220, 220, 220, 220, 220, 366, 1069, 529, 1398, 2099, 460, 307, 3804, 656, 262, 17151, 2446, 281, 788, 262, 523, 1444, 198, 220, 220, 220, 220, 220, 366, 3185, 24181, 12, 5097, 48751, 8860, 15947, 262, 3376, 10017, 1398, 198, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 39050, 62, 8601, 62, 30243, 41876, 1976, 565, 62, 39050, 62, 8601, 62, 30243, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 686, 62, 39050, 62, 8601, 62, 30243, 796, 6941, 62, 39050, 62, 8601, 62, 30243, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 19276, 396, 1387, 62, 29289, 13, 628, 220, 220, 220, 16876, 6941, 62, 19276, 62, 29289, 3180, 5626, 347, 15919, 13, 198, 220, 220, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 19276, 62, 29289, 41876, 1976, 565, 62, 39050, 62, 14323, 62, 19276, 62, 29289, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 6404, 1362, 220, 220, 796, 651, 62, 6404, 1362, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 62, 12102, 62, 261, 796, 827, 12, 19608, 388, 13, 220, 220, 220, 366, 48951, 265, 88, 7536, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 686, 62, 19276, 396, 1387, 62, 29289, 796, 6941, 62, 19276, 62, 29289, 13, 628, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ydk_alv. "MESSAGE-ID .. *&---------------------------------------------------------------------* *& Autor: Kiyanov Dmitry *& Email: [email protected] *& Site: https://github.com/DKiyanov *& utilities for ALV *&---------------------------------------------------------------------* DATA: BEGIN OF gt_cinfo OCCURS 0, cvnum TYPE n LENGTH 2, " номер преобразования program TYPE string, form TYPE string, instance TYPE REF TO object, classname TYPE string, method TYPE string, domname TYPE string, itval TYPE vrm_values, itmctx TYPE STANDARD TABLE OF string, output_len TYPE i, END OF gt_cinfo. DATA: gv_last_cvnum TYPE n LENGTH 2. FORM prepare_mctext CHANGING str. CONDENSE str NO-GAPS. TRANSLATE str TO UPPER CASE. ENDFORM. FORM input USING cvnum external CHANGING internal. CLEAR internal. READ TABLE gt_cinfo ASSIGNING FIELD-SYMBOL(<cinfo>) WITH KEY cvnum = cvnum. IF sy-subrc <> 0. MESSAGE |conversion setting not found. see FM YDK_CONVERSION_EXIT_REGISTER| TYPE 'X'. ENDIF. IF <cinfo>-form IS NOT INITIAL. PERFORM (<cinfo>-form) IN PROGRAM (<cinfo>-program) USING 'I' external CHANGING internal. ELSEIF <cinfo>-method IS NOT INITIAL. DATA: rptab TYPE abap_parmbind_tab. rptab = VALUE #( ( name = 'KIND' value = REF #( 'I' ) ) ( name = 'INPUT' value = REF #( external ) ) ( name = 'OUTPUT' value = REF #( internal ) ) ). IF <cinfo>-classname IS NOT INITIAL. CALL METHOD (<cinfo>-classname)=>(<cinfo>-method) PARAMETER-TABLE rptab. ELSE. CALL METHOD <cinfo>-instance->(<cinfo>-method) PARAMETER-TABLE rptab. ENDIF. ELSE. FIELD-SYMBOLS <val> LIKE LINE OF gt_cinfo-itval. READ TABLE <cinfo>-itval ASSIGNING <val> WITH KEY text = external. IF sy-subrc <> 0. DATA: lv_external TYPE string. lv_external = external. PERFORM prepare_mctext CHANGING lv_external. READ TABLE <cinfo>-itmctx WITH KEY table_line = lv_external TRANSPORTING NO FIELDS. IF sy-subrc = 0. READ TABLE <cinfo>-itval ASSIGNING <val> INDEX sy-tabix. ENDIF. ENDIF. IF <val> IS ASSIGNED. internal = <val>-key. ENDIF. ENDIF. ENDFORM. FORM output USING cvnum internal CHANGING external. CLEAR external. READ TABLE gt_cinfo ASSIGNING FIELD-SYMBOL(<cinfo>) WITH KEY cvnum = cvnum. IF sy-subrc <> 0. MESSAGE |conversion setting not found. see FM YDK_CONVERSION_EXIT_REGISTER| TYPE 'X'. ENDIF. IF <cinfo>-form IS NOT INITIAL. PERFORM (<cinfo>-form) IN PROGRAM (<cinfo>-program) USING 'O' internal CHANGING external. ELSEIF <cinfo>-method IS NOT INITIAL. DATA: rptab TYPE abap_parmbind_tab. rptab = VALUE #( ( name = 'KIND' value = REF #( 'O' ) ) ( name = 'INPUT' value = REF #( internal ) ) ( name = 'OUTPUT' value = REF #( external ) ) ). IF <cinfo>-classname IS NOT INITIAL. CALL METHOD (<cinfo>-classname)=>(<cinfo>-method) PARAMETER-TABLE rptab. ELSE. CALL METHOD <cinfo>-instance->(<cinfo>-method) PARAMETER-TABLE rptab. ENDIF. ELSE. FIELD-SYMBOLS <val> LIKE LINE OF gt_cinfo-itval. READ TABLE <cinfo>-itval ASSIGNING <val> WITH KEY key = internal. IF <val> IS ASSIGNED. external = <val>-text. ENDIF. ENDIF. ENDFORM.
[ 42296, 4177, 2849, 12, 16402, 3535, 331, 34388, 62, 282, 85, 13, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 44, 1546, 4090, 8264, 12, 2389, 11485, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 5231, 273, 25, 21927, 4121, 709, 45181, 198, 9, 5, 9570, 25, 32975, 72, 4121, 709, 31, 4529, 13, 622, 198, 9, 5, 14413, 25, 3740, 1378, 12567, 13, 785, 14, 48510, 72, 4121, 709, 198, 9, 5, 20081, 329, 8355, 53, 198, 9, 5, 10097, 30934, 9, 198, 198, 26947, 25, 347, 43312, 3963, 308, 83, 62, 66, 10951, 440, 4093, 4261, 50, 657, 11, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 22510, 220, 220, 220, 220, 220, 41876, 299, 406, 49494, 362, 11, 366, 220, 12466, 121, 25443, 120, 16843, 21169, 12466, 123, 21169, 16843, 25443, 109, 21169, 16142, 140, 115, 25443, 110, 16142, 22177, 18849, 40623, 198, 220, 220, 220, 220, 220, 220, 220, 1430, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1296, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4554, 220, 220, 41876, 4526, 37, 5390, 2134, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1398, 3672, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2446, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2401, 3672, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 340, 2100, 220, 220, 220, 220, 220, 41876, 410, 26224, 62, 27160, 11, 198, 220, 220, 220, 220, 220, 220, 220, 340, 76, 49464, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5072, 62, 11925, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 23578, 220, 220, 3963, 308, 83, 62, 66, 10951, 13, 198, 198, 26947, 25, 308, 85, 62, 12957, 62, 33967, 22510, 41876, 299, 406, 49494, 362, 13, 198, 198, 21389, 8335, 62, 76, 310, 2302, 5870, 15567, 2751, 965, 13, 198, 220, 7102, 35, 24290, 965, 8005, 12, 38, 44580, 13, 198, 220, 48213, 8634, 6158, 965, 5390, 471, 10246, 1137, 42001, 13, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 5128, 1294, 2751, 269, 85, 22510, 7097, 5870, 15567, 2751, 5387, 13, 198, 220, 30301, 1503, 5387, 13, 628, 220, 20832, 43679, 308, 83, 62, 66, 10951, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 66, 10951, 43734, 13315, 35374, 269, 85, 22510, 796, 269, 85, 22510, 13, 198, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 337, 1546, 4090, 8264, 930, 1102, 9641, 4634, 407, 1043, 13, 766, 18695, 575, 48510, 62, 10943, 43717, 62, 6369, 2043, 62, 31553, 41517, 91, 41876, 705, 55, 4458, 198, 220, 23578, 5064, 13, 628, 220, 16876, 1279, 66, 10951, 29, 12, 687, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 19878, 21389, 38155, 66, 10951, 29, 12, 687, 8, 3268, 46805, 38155, 66, 10951, 29, 12, 23065, 8, 1294, 2751, 705, 40, 6, 7097, 5870, 15567, 2751, 5387, 13, 198, 220, 17852, 5188, 5064, 1279, 66, 10951, 29, 12, 24396, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 42865, 25, 374, 457, 397, 41876, 450, 499, 62, 79, 1670, 21653, 62, 8658, 13, 198, 220, 220, 220, 374, 457, 397, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 1438, 796, 705, 42, 12115, 6, 220, 220, 1988, 796, 4526, 37, 1303, 7, 705, 40, 6, 1267, 1267, 198, 220, 220, 220, 220, 220, 357, 1438, 796, 705, 1268, 30076, 6, 220, 1988, 796, 4526, 37, 1303, 7, 7097, 1267, 1267, 198, 220, 220, 220, 220, 220, 357, 1438, 796, 705, 2606, 7250, 3843, 6, 1988, 796, 4526, 37, 1303, 7, 5387, 1267, 1267, 198, 220, 220, 220, 6739, 628, 220, 220, 220, 16876, 1279, 66, 10951, 29, 12, 4871, 3672, 3180, 5626, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 42815, 337, 36252, 38155, 66, 10951, 29, 12, 4871, 3672, 8, 14804, 7, 27, 66, 10951, 29, 12, 24396, 8, 29463, 2390, 2767, 1137, 12, 38148, 374, 457, 397, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 42815, 337, 36252, 1279, 66, 10951, 29, 12, 39098, 3784, 7, 27, 66, 10951, 29, 12, 24396, 8, 29463, 2390, 2767, 1137, 12, 38148, 374, 457, 397, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 2100, 29, 34178, 48920, 3963, 308, 83, 62, 66, 10951, 12, 270, 2100, 13, 628, 220, 220, 220, 20832, 43679, 1279, 66, 10951, 29, 12, 270, 2100, 24994, 3528, 15871, 1279, 2100, 29, 13315, 35374, 2420, 796, 7097, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 42865, 25, 300, 85, 62, 22615, 41876, 4731, 13, 198, 220, 220, 220, 220, 220, 300, 85, 62, 22615, 796, 7097, 13, 198, 220, 220, 220, 220, 220, 19878, 21389, 8335, 62, 76, 310, 2302, 5870, 15567, 2751, 300, 85, 62, 22615, 13, 628, 220, 220, 220, 220, 220, 20832, 43679, 1279, 66, 10951, 29, 12, 270, 76, 49464, 13315, 35374, 3084, 62, 1370, 796, 300, 85, 62, 22615, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 13, 198, 220, 220, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 20832, 43679, 1279, 66, 10951, 29, 12, 270, 2100, 24994, 3528, 15871, 1279, 2100, 29, 24413, 6369, 827, 12, 8658, 844, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 1279, 2100, 29, 3180, 24994, 16284, 1961, 13, 198, 220, 220, 220, 220, 220, 5387, 796, 1279, 2100, 29, 12, 2539, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 5064, 13, 198, 1677, 8068, 1581 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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ool, text TYPE string, END OF ty_log . TYPES: tt_log TYPE STANDARD TABLE OF ty_log WITH DEFAULT KEY . CONSTANTS c_tail_length TYPE i VALUE 5 ##NO_TEXT. " Number of versions to display if no updates CLASS-METHODS create " TODO REFACTOR IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo RETURNING VALUE(ro_instance) TYPE REF TO zcl_abapgit_news RAISING zcx_abapgit_exception . METHODS get_log RETURNING VALUE(rt_log) TYPE tt_log . METHODS has_news RETURNING VALUE(rv_boolean) TYPE abap_bool . METHODS has_important RETURNING VALUE(rv_boolean) TYPE abap_bool . METHODS has_updates RETURNING VALUE(rv_boolean) TYPE abap_bool . METHODS has_unseen RETURNING VALUE(rv_boolean) TYPE abap_bool . PRIVATE SECTION. DATA mt_log TYPE tt_log . DATA mv_current_version TYPE string . DATA mv_lastseen_version TYPE string . DATA mv_latest_version TYPE string . CLASS-METHODS is_relevant IMPORTING !iv_url TYPE string RETURNING VALUE(rv_relevant) TYPE abap_bool . METHODS latest_version RETURNING VALUE(rv_version) TYPE string . METHODS constructor IMPORTING !iv_rawdata TYPE xstring !iv_lastseen_version TYPE string !iv_current_version TYPE string . CLASS-METHODS version_to_numeric IMPORTING !iv_version TYPE string RETURNING VALUE(rv_version) TYPE i . CLASS-METHODS normalize_version IMPORTING !iv_version TYPE string RETURNING VALUE(rv_version) TYPE string . CLASS-METHODS compare_versions IMPORTING !iv_a TYPE string !iv_b TYPE string RETURNING VALUE(rv_result) TYPE i . CLASS-METHODS parse_line IMPORTING !iv_line TYPE string !iv_current_version TYPE string RETURNING VALUE(rs_log) TYPE ty_log . CLASS-METHODS parse IMPORTING !it_lines TYPE string_table !iv_current_version TYPE string RETURNING VALUE(rt_log) TYPE tt_log . ENDCLASS. CLASS ZCL_ABAPGIT_NEWS IMPLEMENTATION. METHOD compare_versions. DATA: lv_version_a TYPE i, lv_version_b TYPE i. " Convert versions to numeric lv_version_a = version_to_numeric( iv_a ). lv_version_b = version_to_numeric( iv_b ). " Compare versions IF lv_version_a > lv_version_b. rv_result = 1. ELSEIF lv_version_a < lv_version_b. rv_result = -1. ELSE. rv_result = 0. ENDIF. ENDMETHOD. METHOD constructor. DATA: lt_lines TYPE string_table, lv_string TYPE string, ls_log_line LIKE LINE OF mt_log. " Validate params mv_current_version = normalize_version( iv_current_version ). mv_lastseen_version = normalize_version( iv_lastseen_version ). IF mv_current_version IS INITIAL. RETURN. " Internal format of program version is not correct -> abort parsing ENDIF. lv_string = zcl_abapgit_convert=>xstring_to_string_utf8( iv_rawdata ). lt_lines = zcl_abapgit_convert=>split_string( lv_string ). mt_log = parse( it_lines = lt_lines iv_current_version = mv_current_version ). READ TABLE mt_log INTO ls_log_line INDEX 1. mv_latest_version = ls_log_line-version. " Empty if not found ENDMETHOD. METHOD create. " TODO REFACTOR ! CONSTANTS: " TODO refactor lc_log_path TYPE string VALUE '/', lc_log_filename TYPE string VALUE 'changelog.txt'. DATA: lt_remote TYPE zif_abapgit_definitions=>ty_files_tt, lv_last_seen TYPE string, lv_url TYPE string, lo_repo_online TYPE REF TO zcl_abapgit_repo_online. FIELD-SYMBOLS <ls_file> LIKE LINE OF lt_remote. IF io_repo->is_offline( ) = abap_true. RETURN. ENDIF. lo_repo_online ?= io_repo. lv_url = lo_repo_online->get_url( ). IF is_relevant( lv_url ) = abap_false. RETURN. ENDIF. lv_last_seen = zcl_abapgit_persistence_user=>get_instance( )->get_repo_last_change_seen( lv_url ). TRY. " Find changelog lt_remote = io_repo->get_files_remote( ). CATCH zcx_abapgit_exception. RETURN. ENDTRY. READ TABLE lt_remote ASSIGNING <ls_file> WITH KEY path = lc_log_path filename = lc_log_filename. IF sy-subrc = 0. CREATE OBJECT ro_instance EXPORTING iv_rawdata = <ls_file>-data iv_current_version = zif_abapgit_version=>gc_abap_version " TODO refactor iv_lastseen_version = normalize_version( lv_last_seen ). ENDIF. IF ro_instance IS BOUND AND lv_last_seen <> ro_instance->latest_version( ). zcl_abapgit_persistence_user=>get_instance( )->set_repo_last_change_seen( iv_url = lv_url iv_version = ro_instance->latest_version( ) ). ENDIF. ENDMETHOD. METHOD get_log. rt_log = me->mt_log. ENDMETHOD. METHOD has_important. READ TABLE mt_log WITH KEY is_important = abap_true TRANSPORTING NO FIELDS. rv_boolean = boolc( sy-subrc IS INITIAL ). ENDMETHOD. METHOD has_news. rv_boolean = boolc( lines( mt_log ) > 0 ). ENDMETHOD. METHOD has_unseen. rv_boolean = boolc( compare_versions( iv_a = mv_latest_version iv_b = mv_lastseen_version ) > 0 ). ENDMETHOD. METHOD has_updates. rv_boolean = boolc( compare_versions( iv_a = mv_latest_version iv_b = mv_current_version ) > 0 ). ENDMETHOD. METHOD is_relevant. " News announcement restricted to abapGit only IF iv_url CS '/abapGit' OR iv_url CS '/abapGit.git'. rv_relevant = abap_true. ENDIF. ENDMETHOD. METHOD latest_version. rv_version = me->mv_latest_version. ENDMETHOD. METHOD normalize_version. " Internal program version should be in format "XXX.XXX.XXX" or "vXXX.XXX.XXX" CONSTANTS: lc_version_pattern TYPE string VALUE '^v?(\d{1,3}\.\d{1,3}\.\d{1,3})\s*$'. FIND FIRST OCCURRENCE OF REGEX lc_version_pattern IN iv_version SUBMATCHES rv_version. ENDMETHOD. METHOD parse. DATA: lv_tail TYPE i, lv_first_version_found TYPE abap_bool, lv_version TYPE string, ls_log LIKE LINE OF rt_log. FIELD-SYMBOLS: <lv_line> LIKE LINE OF it_lines. LOOP AT it_lines ASSIGNING <lv_line>. ls_log = parse_line( iv_line = <lv_line> iv_current_version = iv_current_version ). " Skip until first version head and Skip empty lines CHECK ls_log IS NOT INITIAL AND ( lv_first_version_found = abap_true OR ls_log-version IS NOT INITIAL ). IF lv_first_version_found = abap_false. lv_first_version_found = abap_true. IF compare_versions( iv_a = ls_log-version iv_b = iv_current_version ) <= 0. lv_tail = c_tail_length. " Display some last versions if no updates ENDIF. ENDIF. IF ls_log-is_header = abap_true. "Skip everything below current version or show tail news IF compare_versions( iv_a = ls_log-version iv_b = iv_current_version ) <= 0. IF lv_tail > 0. lv_tail = lv_tail - 1. ELSE. EXIT. ENDIF. ENDIF. lv_version = ls_log-version. " Save to fill news lines ELSE. ls_log-version = lv_version. ENDIF. APPEND ls_log TO rt_log. ENDLOOP. ENDMETHOD. METHOD parse_line. CONSTANTS: lc_header_pattern TYPE string VALUE '^\d{4}-\d{2}-\d{2}\s+v(\d{1,3}\.\d{1,3}\.\d{1,3})\s*$'. DATA: lv_version TYPE string. IF iv_line IS INITIAL OR iv_line CO ' -='. RETURN. " Skip empty and markup lines ENDIF. " Check if line is a header line FIND FIRST OCCURRENCE OF REGEX lc_header_pattern IN iv_line SUBMATCHES lv_version. IF sy-subrc IS INITIAL. lv_version = normalize_version( lv_version ). rs_log-version = lv_version. rs_log-is_header = abap_true. rs_log-pos_to_cur = compare_versions( iv_a = lv_version iv_b = iv_current_version ). ELSE. FIND FIRST OCCURRENCE OF REGEX '^\s*!' IN iv_line. rs_log-is_important = boolc( sy-subrc IS INITIAL ). " Change is important ENDIF. rs_log-text = iv_line. ENDMETHOD. METHOD version_to_numeric. DATA: lv_major TYPE numc4, lv_minor TYPE numc4, lv_release TYPE numc4. SPLIT iv_version AT '.' INTO lv_major lv_minor lv_release. " Calculated value of version number, empty version will become 0 which is OK rv_version = lv_major * 1000000 + lv_minor * 1000 + lv_release. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 10827, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 6404, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2196, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1426, 62, 1462, 62, 22019, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 25677, 220, 220, 220, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 18049, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2420, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 6404, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 83, 62, 6404, 41876, 49053, 9795, 43679, 3963, 1259, 62, 6404, 13315, 5550, 38865, 35374, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 13199, 62, 13664, 41876, 1312, 26173, 8924, 642, 22492, 15285, 62, 32541, 13, 220, 220, 366, 7913, 286, 6300, 284, 3359, 611, 645, 5992, 628, 220, 220, 220, 42715, 12, 49273, 50, 2251, 220, 220, 366, 16926, 46, 4526, 37, 10659, 1581, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 39098, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 10827, 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, 6404, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 6404, 8, 41876, 256, 83, 62, 6404, 764, 198, 220, 220, 220, 337, 36252, 50, 468, 62, 10827, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2127, 21052, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 468, 62, 18049, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2127, 21052, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 468, 62, 929, 19581, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2127, 21052, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 468, 62, 403, 15898, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2127, 21052, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 45079, 62, 6404, 41876, 256, 83, 62, 6404, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 14421, 62, 9641, 41876, 4731, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 12957, 15898, 62, 9641, 41876, 4731, 764, 198, 220, 220, 220, 42865, 285, 85, 62, 42861, 62, 9641, 41876, 4731, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 318, 62, 49659, 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, 4731, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 49659, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 3452, 62, 9641, 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, 764, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1831, 7890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 2124, 8841, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 12957, 15898, 62, 9641, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 14421, 62, 9641, 220, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 2196, 62, 1462, 62, 77, 39223, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9641, 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, 9641, 8, 41876, 1312, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 3487, 1096, 62, 9641, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 9641, 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, 9641, 8, 41876, 4731, 764, 198, 220, 220, 220, 42715, 12, 49273, 50, 8996, 62, 47178, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 64, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 65, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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ROM zcl_aoc_super CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS check REDEFINITION . METHODS get_attributes REDEFINITION . METHODS if_ci_test~query_attributes REDEFINITION . METHODS put_attributes REDEFINITION . PROTECTED SECTION. PRIVATE SECTION. DATA mv_ignore TYPE flag. ENDCLASS. CLASS ZCL_AOC_CHECK_41 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DATA: lv_include TYPE sobj_name, lv_comment TYPE abap_bool, lv_len TYPE i, lv_prev TYPE i. FIELD-SYMBOLS: <ls_statement> LIKE LINE OF io_scan->statements, <ls_token> LIKE LINE OF io_scan->tokens, <ls_scomment> LIKE LINE OF io_scan->statements, <ls_tcomment> LIKE LINE OF io_scan->tokens. LOOP AT io_scan->statements ASSIGNING <ls_statement> WHERE type <> io_scan->gc_statement-empty AND type <> io_scan->gc_statement-comment AND type <> io_scan->gc_statement-comment_in_stmnt AND type <> io_scan->gc_statement-macro_definition AND type <> io_scan->gc_statement-pragma AND colonrow = 0. CLEAR lv_prev. LOOP AT io_scan->tokens ASSIGNING <ls_token> FROM <ls_statement>-from TO <ls_statement>-to. lv_len = strlen( <ls_token>-str ) - 1. IF <ls_token>-str(1) = '(' AND <ls_token>-str+lv_len(1) = ')'. * special case see unit test 05, SAP is fun EXIT. ENDIF. IF lv_prev IS INITIAL OR lv_prev = <ls_token>-row OR lv_prev = <ls_token>-row - 1. lv_prev = <ls_token>-row. CONTINUE. ENDIF. IF <ls_token>-str = 'GLOBAL'. * global friends in classes are auto generated with newlines EXIT. ENDIF. lv_comment = abap_false. LOOP AT io_scan->statements ASSIGNING <ls_scomment> WHERE type = io_scan->gc_statement-comment_in_stmnt AND level = <ls_statement>-level. LOOP AT io_scan->tokens ASSIGNING <ls_tcomment> FROM <ls_statement>-from TO <ls_statement>-to. IF <ls_tcomment>-row = lv_prev. lv_comment = abap_true. ENDIF. ENDLOOP. ENDLOOP. IF mv_ignore = abap_false OR lv_comment = abap_false. lv_include = io_scan->get_include( <ls_statement>-level ). inform( p_sub_obj_name = lv_include p_line = <ls_token>-row p_kind = mv_errty p_test = myname p_code = '001' ). EXIT. ENDIF. lv_prev = <ls_token>-row. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). version = '001'. position = '041'. has_attributes = abap_true. attributes_ok = abap_true. mv_ignore = abap_false. enable_rfc( ). insert_scimessage( iv_code = '001' iv_text = 'Empty line in statement'(m01) ). ENDMETHOD. METHOD get_attributes. EXPORT mv_errty = mv_errty mv_ignore = mv_ignore TO DATA BUFFER p_attributes. ENDMETHOD. METHOD if_ci_test~query_attributes. zzaoc_top. zzaoc_fill_att mv_errty 'Error Type' ''. "#EC NOTEXT zzaoc_fill_att mv_ignore 'Ignore comments' ''. "#EC NOTEXT zzaoc_popup. ENDMETHOD. METHOD put_attributes. IMPORT mv_errty = mv_errty mv_ignore = mv_ignore FROM DATA BUFFER p_attributes. "#EC CI_USE_WANTED ASSERT sy-subrc = 0. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 3901, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 22766, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1234, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 285, 85, 62, 46430, 41876, 6056, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 3901, 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, 17256, 41876, 27355, 73, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 23893, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 11925, 220, 220, 220, 220, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 47050, 220, 220, 220, 41876, 1312, 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, 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, 82, 23893, 29, 220, 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, 83, 23893, 29, 220, 34178, 48920, 3963, 33245, 62, 35836, 3784, 83, 482, 641, 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, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 28920, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 23893, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 23893, 62, 259, 62, 301, 76, 429, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 20285, 305, 62, 46758, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 2099, 1279, 29, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 1050, 363, 2611, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 7633, 808, 796, 657, 13, 628, 220, 220, 220, 220, 220, 30301, 1503, 300, 85, 62, 47050, 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, 16034, 1279, 7278, 62, 26090, 29, 12, 6738, 5390, 1279, 7278, 62, 26090, 29, 12, 1462, 13, 198, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 11925, 796, 965, 11925, 7, 1279, 7278, 62, 30001, 29, 12, 2536, 1267, 532, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 16876, 1279, 7278, 62, 30001, 29, 12, 2536, 7, 16, 8, 796, 705, 10786, 5357, 1279, 7278, 62, 30001, 29, 12, 2536, 10, 6780, 62, 11925, 7, 16, 8, 796, 705, 8, 4458, 198, 9, 2041, 1339, 766, 4326, 1332, 8870, 11, 48323, 318, 1257, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 300, 85, 62, 47050, 3180, 3268, 2043, 12576, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 300, 85, 62, 47050, 796, 1279, 7278, 62, 30001, 29, 12, 808, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6375, 300, 85, 62, 47050, 796, 1279, 7278, 62, 30001, 29, 12, 808, 532, 352, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 47050, 796, 1279, 7278, 62, 30001, 29, 12, 808, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 16876, 1279, 7278, 62, 30001, 29, 12, 2536, 796, 705, 8763, 9864, 1847, 4458, 198, 9, 3298, 2460, 287, 6097, 389, 8295, 7560, 351, 649, 6615, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 220, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 23893, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 220, 220, 17579, 3185, 5161, 33245, 62, 35836, 3784, 14269, 3196, 24994, 3528, 15871, 1279, 7278, 62, 82, 23893, 29, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 2099, 796, 33245, 62, 35836, 3784, 36484, 62, 26090, 12, 23893, 62, 259, 62, 301, 76, 429, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5357, 1241, 796, 1279 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_58 DEFINITION PUBLIC INHERITING FROM zcl_aoc_super CREATE PUBLIC . PUBLIC SECTION. METHODS constructor . METHODS check REDEFINITION . METHODS get_attributes REDEFINITION . METHODS if_ci_test~query_attributes REDEFINITION . METHODS put_attributes REDEFINITION . PROTECTED SECTION. TYPES: BEGIN OF gty_reference_s, clsname TYPE seocompodf-clsname, cmpname TYPE seocompodf-cmpname, exposure TYPE seocompodf-cmpname, alias TYPE seocompodf-alias, END OF gty_reference_s . TYPES: gty_reference_t TYPE STANDARD TABLE OF gty_reference_s WITH DEFAULT KEY . TYPES: gty_include_t TYPE STANDARD TABLE OF wbcrossgt-include WITH DEFAULT KEY . CONSTANTS c_private TYPE seocompodf-exposure VALUE '0' ##NO_TEXT. CONSTANTS c_protected TYPE seocompodf-exposure VALUE '1' ##NO_TEXT. CONSTANTS c_public TYPE seocompodf-exposure VALUE '2' ##NO_TEXT. DATA mv_skip_ccau TYPE sap_bool . DATA mt_methods TYPE zaoc_seocmpname_range_tt . METHODS check_types . METHODS report_clas IMPORTING !is_method TYPE gty_reference_s !iv_err_code TYPE sci_errc . METHODS is_bopf_interface RETURNING VALUE(rv_boolean) TYPE abap_bool . METHODS check_constants . METHODS check_methods . METHODS filter_implementations IMPORTING !is_method TYPE gty_reference_s CHANGING !ct_include TYPE gty_include_t . METHODS filter_self_references IMPORTING !is_method TYPE gty_reference_s CHANGING !ct_include TYPE gty_include_t . PRIVATE SECTION. ENDCLASS. CLASS ZCL_AOC_CHECK_58 IMPLEMENTATION. METHOD check. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License IF object_type <> 'CLAS' AND object_type <> 'INTF'. RETURN. ENDIF. check_methods( ). check_constants( ). check_types( ). ENDMETHOD. METHOD check_constants. DATA: lv_name TYPE wbcrossgt-name, lv_include TYPE programm, lt_constants TYPE gty_reference_t. FIELD-SYMBOLS: <ls_constant> LIKE LINE OF lt_constants. IF is_bopf_interface( ) = abap_true. RETURN. ENDIF. SELECT clsname cmpname exposure alias FROM seocompodf INTO CORRESPONDING FIELDS OF TABLE lt_constants WHERE clsname = object_name AND version = '1' AND exposure = c_public AND attdecltyp = '2' ORDER BY PRIMARY KEY. "#EC CI_SUBRC LOOP AT lt_constants ASSIGNING <ls_constant>. CONCATENATE <ls_constant>-clsname '\DA:' <ls_constant>-cmpname INTO lv_name. SELECT SINGLE name FROM wbcrossgt INTO lv_name WHERE otype = 'DA' AND name = lv_name ##WARN_OK. IF sy-subrc <> 0. IF object_type = 'CLAS'. lv_include = cl_oo_classname_service=>get_pubsec_name( <ls_constant>-clsname ). ELSE. lv_include = cl_oo_classname_service=>get_interfacepool_name( <ls_constant>-clsname ). ENDIF. inform( p_sub_obj_name = lv_include p_kind = mv_errty p_test = myname p_code = '002' p_param_1 = <ls_constant>-cmpname ). ENDIF. ENDLOOP. ENDMETHOD. METHOD check_methods. DATA: lt_methods TYPE gty_reference_t, lv_name TYPE wbcrossgt-name, lv_category TYPE seoclassdf-category, lt_ref_include TYPE gty_include_t. FIELD-SYMBOLS: <ls_method> LIKE LINE OF lt_methods. IF mv_skip_ccau = abap_true. SELECT SINGLE category FROM seoclassdf INTO lv_category WHERE version = '1' AND clsname = object_name. IF sy-subrc = 0 AND lv_category = '05'. RETURN. ENDIF. ENDIF. SELECT clsname cmpname exposure alias FROM vseocompdf INTO CORRESPONDING FIELDS OF TABLE lt_methods WHERE clsname = object_name AND cmptype = '1' AND version = '1' AND ( exposure = c_protected OR exposure = c_public OR exposure = c_private ) AND type = '' AND cmpname <> 'CLASS_CONSTRUCTOR' AND cmpname <> 'CONSTRUCTOR' ORDER BY clsname cmpname version. "#EC CI_SUBRC LOOP AT lt_methods ASSIGNING <ls_method>. CONCATENATE <ls_method>-clsname '\ME:' <ls_method>-cmpname INTO lv_name. SELECT include FROM wbcrossgt INTO TABLE lt_ref_include WHERE otype = 'ME' AND name = lv_name. "#EC CI_SUBRC IF mv_skip_ccau = abap_true. DELETE lt_ref_include WHERE table_line+30 = 'CCAU'. ENDIF. IF lines( lt_ref_include ) = 0 AND object_type = 'CLAS'. IF <ls_method>-alias = abap_false. report_clas( is_method = <ls_method> iv_err_code = '001' ). ELSE. report_clas( is_method = <ls_method> iv_err_code = '007' ). ENDIF. ELSEIF lines( lt_ref_include ) = 0 AND object_type = 'INTF'. inform( p_param_1 = <ls_method>-cmpname p_kind = mv_errty p_test = myname p_code = '005' ). ELSEIF object_type = 'CLAS' AND <ls_method>-exposure = c_public. filter_self_references( EXPORTING is_method = <ls_method> CHANGING ct_include = lt_ref_include ). IF lines( lt_ref_include ) = 0. report_clas( is_method = <ls_method> iv_err_code = '003' ). ENDIF. ELSEIF object_type = 'INTF'. filter_implementations( EXPORTING is_method = <ls_method> CHANGING ct_include = lt_ref_include ). IF lines( lt_ref_include ) = 0. inform( p_param_1 = <ls_method>-cmpname p_kind = mv_errty p_test = myname p_code = '004' ). ENDIF. ENDIF. ENDLOOP. ENDMETHOD. METHOD check_types. DATA: lt_types TYPE gty_reference_t, lv_name TYPE wbcrossgt-name, lv_include TYPE programm. FIELD-SYMBOLS: <ls_type> LIKE LINE OF lt_types. SELECT clsname cmpname exposure alias FROM vseocompdf INTO CORRESPONDING FIELDS OF TABLE lt_types WHERE clsname = object_name AND cmptype = '3' AND version = '1' AND ( exposure = c_protected OR exposure = c_public OR exposure = c_private ) AND type = '' ORDER BY clsname cmpname version. "#EC CI_SUBRC LOOP AT lt_types ASSIGNING <ls_type>. CONCATENATE <ls_type>-clsname '\TY:' <ls_type>-cmpname INTO lv_name. SELECT SINGLE name FROM wbcrossgt INTO lv_name WHERE otype = 'TY' AND name = lv_name ##WARN_OK. IF sy-subrc <> 0. IF object_type = 'CLAS'. lv_include = cl_oo_classname_service=>get_pubsec_name( <ls_type>-clsname ). ELSE. lv_include = cl_oo_classname_service=>get_interfacepool_name( <ls_type>-clsname ). ENDIF. inform( p_sub_obj_name = lv_include p_kind = mv_errty p_test = myname p_code = '006' p_param_1 = <ls_type>-cmpname ). ENDIF. ENDLOOP. ENDMETHOD. METHOD constructor. super->constructor( ). version = '001'. position = '058'. has_attributes = abap_true. attributes_ok = abap_true. mv_skip_ccau = abap_true. insert_scimessage( iv_code = '001' iv_text = 'Method not referenced statically'(m01) ). insert_scimessage( iv_code = '002' iv_text = 'Constant &1 not referenced statically'(m02) ). insert_scimessage( iv_code = '003' iv_text = 'Method is only referenced locally. Should be changed to private or protected.'(m03) ). insert_scimessage( iv_code = '004' iv_text = 'Method &1 only implemented, not referenced statically'(m04) ). insert_scimessage( iv_code = '005' iv_text = '&1 not referenced statically'(m05) ). insert_scimessage( iv_code = '006' iv_text = 'Type &1 not referenced statically'(m06) ). insert_scimessage( iv_code = '007' iv_text = 'Alias not referenced statically'(m07) ). ENDMETHOD. METHOD filter_implementations. DATA: ls_mtdkey TYPE seocpdkey. FIELD-SYMBOLS: <lv_include> LIKE LINE OF ct_include. LOOP AT ct_include ASSIGNING <lv_include>. cl_oo_classname_service=>get_method_by_include( EXPORTING incname = <lv_include> RECEIVING mtdkey = ls_mtdkey EXCEPTIONS class_not_existing = 1 method_not_existing = 2 OTHERS = 3 ). IF sy-subrc = 0 AND ls_mtdkey-cpdname = |{ is_method-clsname }~{ is_method-cmpname }|. DELETE ct_include. ENDIF. ENDLOOP. ENDMETHOD. METHOD filter_self_references. DATA: ls_mtdkey TYPE seocpdkey, lv_pattern TYPE string, lt_method TYPE TABLE OF abaptxt255. FIELD-SYMBOLS: <lv_include> LIKE LINE OF ct_include. LOOP AT ct_include ASSIGNING <lv_include>. cl_oo_classname_service=>get_method_by_include( EXPORTING incname = <lv_include> RECEIVING mtdkey = ls_mtdkey EXCEPTIONS class_not_existing = 1 method_not_existing = 2 OTHERS = 3 ). IF sy-subrc = 0 AND ls_mtdkey-clsname = is_method-clsname. * check for parallel "CALLING method AT END OF TASK", which must be public READ REPORT <lv_include> INTO lt_method. IF sy-subrc = 0. * this is not completely correct, but will work in most cases? lv_pattern = |CALLING { is_method-cmpname }|. LOOP AT lt_method TRANSPORTING NO FIELDS WHERE line CS lv_pattern. EXIT. ENDLOOP. IF sy-subrc = 0. CONTINUE. ENDIF. ENDIF. DELETE ct_include. ENDIF. ENDLOOP. ENDMETHOD. METHOD get_attributes. EXPORT mv_errty = mv_errty mv_skip_ccau = mv_skip_ccau mt_methods = mt_methods TO DATA BUFFER p_attributes. ENDMETHOD. METHOD if_ci_test~query_attributes. zzaoc_top. zzaoc_fill_att mv_errty 'Error Type' ''. "#EC NOTEXT zzaoc_fill_att mv_skip_ccau 'Skip CCAU' 'C'. "#EC NOTEXT zzaoc_fill_att mt_methods 'Methods' 'S'. "#EC NOTEXT zzaoc_popup. ENDMETHOD. METHOD is_bopf_interface. DATA: lv_clsname TYPE seometarel-clsname. IF object_type <> 'INTF'. RETURN. ENDIF. SELECT SINGLE clsname INTO lv_clsname FROM seometarel WHERE clsname = object_name AND refclsname = '/BOBF/IF_LIB_CONSTANTS' AND version = '1' AND state = '1' AND reltype = '0'. IF sy-subrc = 0. rv_boolean = abap_true. ENDIF. ENDMETHOD. METHOD put_attributes. IMPORT mv_errty = mv_errty mv_skip_ccau = mv_skip_ccau mt_methods = mt_methods FROM DATA BUFFER p_attributes. "#EC CI_USE_WANTED ASSERT sy-subrc = 0. ENDMETHOD. METHOD report_clas. DATA: lv_include TYPE programm, lt_includes TYPE seop_methods_w_include, ls_mtdkey TYPE seocpdkey. IF NOT is_method-cmpname IN mt_methods. RETURN. ENDIF. ls_mtdkey-clsname = is_method-clsname. ls_mtdkey-cpdname = is_method-cmpname. cl_oo_classname_service=>get_method_include( EXPORTING mtdkey = ls_mtdkey RECEIVING result = lv_include EXCEPTIONS class_not_existing = 1 method_not_existing = 2 OTHERS = 3 ). IF sy-subrc <> 0. RETURN. ENDIF. * sometimes types are found via GET_METHOD_INCLUDE, * so added an extra check to make sure it is a method cl_oo_classname_service=>get_all_method_includes( EXPORTING clsname = is_method-clsname RECEIVING result = lt_includes EXCEPTIONS class_not_existing = 1 OTHERS = 2 ). IF sy-subrc <> 0. RETURN. ENDIF. READ TABLE lt_includes WITH KEY incname = lv_include TRANSPORTING NO FIELDS. IF sy-subrc <> 0. RETURN. ENDIF. inform( p_sub_obj_name = lv_include p_kind = mv_errty p_test = myname p_code = iv_err_code ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 3365, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 64, 420, 62, 16668, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 611, 62, 979, 62, 9288, 93, 22766, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 1234, 62, 1078, 7657, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 308, 774, 62, 35790, 62, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 537, 82, 3672, 220, 41876, 384, 420, 3361, 375, 69, 12, 565, 82, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 269, 3149, 3672, 220, 41876, 384, 420, 3361, 375, 69, 12, 48991, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7111, 41876, 384, 420, 3361, 375, 69, 12, 48991, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 16144, 220, 220, 220, 41876, 384, 420, 3361, 375, 69, 12, 26011, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 308, 774, 62, 35790, 62, 82, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 308, 774, 62, 35790, 62, 83, 41876, 49053, 9795, 43679, 3963, 308, 774, 62, 35790, 62, 82, 13315, 5550, 38865, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 308, 774, 62, 17256, 62, 83, 41876, 49053, 9795, 43679, 3963, 266, 15630, 1214, 13655, 12, 17256, 13315, 5550, 38865, 35374, 764, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 19734, 41876, 384, 420, 3361, 375, 69, 12, 1069, 26205, 26173, 8924, 705, 15, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 24326, 41876, 384, 420, 3361, 375, 69, 12, 1069, 26205, 26173, 8924, 705, 16, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 269, 62, 11377, 41876, 384, 420, 3361, 375, 69, 12, 1069, 26205, 26173, 8924, 705, 17, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 42865, 285, 85, 62, 48267, 62, 535, 559, 41876, 31841, 62, 30388, 764, 198, 220, 220, 220, 42865, 45079, 62, 24396, 82, 41876, 1976, 64, 420, 62, 325, 420, 3149, 3672, 62, 9521, 62, 926, 764, 628, 220, 220, 220, 337, 36252, 50, 2198, 62, 19199, 764, 198, 220, 220, 220, 337, 36252, 50, 989, 62, 565, 292, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 24396, 220, 220, 41876, 308, 774, 62, 35790, 62, 82, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8056, 62, 8189, 41876, 20681, 62, 263, 6015, 764, 198, 220, 220, 220, 337, 36252, 50, 318, 62, 65, 404, 69, 62, 39994, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2127, 21052, 8, 41876, 450, 499, 62, 30388, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 9979, 1187, 764, 198, 220, 220, 220, 337, 36252, 50, 2198, 62, 24396, 82, 764, 198, 220, 220, 220, 337, 36252, 50, 8106, 62, 320, 26908, 602, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 24396, 220, 41876, 308, 774, 62, 35790, 62, 82, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 17256, 41876, 308, 774, 62, 17256, 62, 83, 764, 198, 220, 220, 220, 337, 36252, 50, 8106, 62, 944, 62, 5420, 4972, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 24396, 220, 41876, 308, 774, 62, 35790, 62, 82, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 310, 62, 17256, 41876, 308, 774, 62, 17256, 62, 83, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 32, 4503, 62, 50084, 62, 3365, 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, 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, 2198, 62, 24396, 82, 7, 6739, 198, 220, 220, 220, 2198, 62, 9979, 1187, 7, 6739, 198, 220, 220, 220, 2198, 62, 19199, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 2198, 62, 9979, 1187, 13, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 3672, 220, 220, 220, 220, 220, 41876, 266, 15630, 1214, 13655, 12, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 17256, 220, 220, 41876, 1430, 76, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 9979, 1187, 41876, 308, 774, 62, 35790, 62, 83, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 9979, 415, 29, 34178, 48920, 3963, 300, 83, 62, 9979, 1187, 13, 628, 198, 220, 220, 220, 16876, 318, 62, 65, 404, 69, 62, 39994, 7, 1267, 796, 450 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_ghes219 PUBLIC. * Generated by abap-openapi-client * GitHub v3 REST API, 1.1.4 * Component schema: global-hook, object TYPES: BEGIN OF subglobal_hook_config, url TYPE string, content_type TYPE string, insecure_ssl TYPE string, secret TYPE string, END OF subglobal_hook_config. TYPES: BEGIN OF global_hook, type TYPE string, id TYPE i, name TYPE string, active TYPE abap_bool, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array config TYPE subglobal_hook_config, updated_at TYPE string, created_at TYPE string, url TYPE string, ping_url TYPE string, END OF global_hook. * Component schema: global-hook-2, object TYPES: BEGIN OF subglobal_hook_2_config, url TYPE string, content_type TYPE string, insecure_ssl TYPE string, END OF subglobal_hook_2_config. TYPES: BEGIN OF global_hook_2, type TYPE string, id TYPE i, name TYPE string, active TYPE abap_bool, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array config TYPE subglobal_hook_2_config, updated_at TYPE string, created_at TYPE string, url TYPE string, ping_url TYPE string, END OF global_hook_2. * Component schema: public-key-full, object TYPES: BEGIN OF public_key_full, id TYPE i, key TYPE string, user_id TYPE i, repository_id TYPE i, url TYPE string, title TYPE string, read_only TYPE abap_bool, verified TYPE abap_bool, created_at TYPE string, last_used TYPE string, END OF public_key_full. * Component schema: ldap-mapping-team, object TYPES: BEGIN OF ldap_mapping_team, ldap_dn TYPE string, id TYPE i, node_id TYPE string, url TYPE string, html_url TYPE string, name TYPE string, slug TYPE string, description TYPE string, privacy TYPE string, permission TYPE string, members_url TYPE string, repositories_url TYPE string, parent TYPE string, END OF ldap_mapping_team. * Component schema: ldap-mapping-user, object TYPES: BEGIN OF subldap_mapping_user_plan, collaborators TYPE i, name TYPE string, space TYPE i, private_repos TYPE i, END OF subldap_mapping_user_plan. TYPES: BEGIN OF ldap_mapping_user, ldap_dn TYPE string, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, name TYPE string, company TYPE string, blog TYPE string, location TYPE string, email TYPE string, hireable TYPE abap_bool, bio TYPE string, twitter_username TYPE string, public_repos TYPE i, public_gists TYPE i, followers TYPE i, following TYPE i, created_at TYPE string, updated_at TYPE string, private_gists TYPE i, total_private_repos TYPE i, owned_private_repos TYPE i, disk_usage TYPE i, collaborators TYPE i, two_factor_authentication TYPE abap_bool, plan TYPE subldap_mapping_user_plan, suspended_at TYPE string, business_plus TYPE abap_bool, END OF ldap_mapping_user. * Component schema: organization-simple, object TYPES: BEGIN OF organization_simple, login TYPE string, id TYPE i, node_id TYPE string, url TYPE string, repos_url TYPE string, events_url TYPE string, hooks_url TYPE string, issues_url TYPE string, members_url TYPE string, public_members_url TYPE string, avatar_url TYPE string, description TYPE string, END OF organization_simple. * Component schema: pre-receive-environment, object TYPES: BEGIN OF subpre_receive_environment_dow, url TYPE string, state TYPE string, downloaded_at TYPE string, message TYPE string, END OF subpre_receive_environment_dow. TYPES: BEGIN OF pre_receive_environment, id TYPE i, name TYPE string, image_url TYPE string, url TYPE string, html_url TYPE string, default_environment TYPE abap_bool, created_at TYPE string, hooks_count TYPE i, download TYPE subpre_receive_environment_dow, END OF pre_receive_environment. * Component schema: pre-receive-environment-download-status, object TYPES: BEGIN OF pre_receive_environment_downlo, url TYPE string, state TYPE string, downloaded_at TYPE string, message TYPE string, END OF pre_receive_environment_downlo. * Component schema: pre-receive-hook, object TYPES: BEGIN OF subsubpre_receive_hook_environ, url TYPE string, state TYPE string, downloaded_at TYPE string, message TYPE string, END OF subsubpre_receive_hook_environ. TYPES: BEGIN OF subpre_receive_hook_environmen, id TYPE i, name TYPE string, image_url TYPE string, url TYPE string, html_url TYPE string, default_environment TYPE abap_bool, created_at TYPE string, hooks_count TYPE i, download TYPE subsubpre_receive_hook_environ, END OF subpre_receive_hook_environmen. TYPES: BEGIN OF subpre_receive_hook_script_rep, id TYPE i, full_name TYPE string, url TYPE string, html_url TYPE string, END OF subpre_receive_hook_script_rep. TYPES: BEGIN OF pre_receive_hook, id TYPE i, name TYPE string, enforcement TYPE string, script TYPE string, script_repository TYPE subpre_receive_hook_script_rep, environment TYPE subpre_receive_hook_environmen, allow_downstream_configuration TYPE abap_bool, END OF pre_receive_hook. * Component schema: nullable-simple-user, object TYPES: BEGIN OF nullable_simple_user, name TYPE string, email TYPE string, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, starred_at TYPE string, END OF nullable_simple_user. * Component schema: app-permissions, object TYPES: BEGIN OF app_permissions, actions TYPE string, administration TYPE string, checks TYPE string, content_references TYPE string, contents TYPE string, deployments TYPE string, environments TYPE string, issues TYPE string, metadata TYPE string, packages TYPE string, pages TYPE string, pull_requests TYPE string, repository_hooks TYPE string, repository_projects TYPE string, secret_scanning_alerts TYPE string, secrets TYPE string, security_events TYPE string, single_file TYPE string, statuses TYPE string, vulnerability_alerts TYPE string, workflows TYPE string, members TYPE string, organization_administration TYPE string, organization_hooks TYPE string, organization_plan TYPE string, organization_projects TYPE string, organization_packages TYPE string, organization_secrets TYPE string, organization_self_hosted_runne TYPE string, organization_user_blocking TYPE string, team_discussions TYPE string, END OF app_permissions. * Component schema: simple-user, object TYPES: BEGIN OF simple_user, name TYPE string, email TYPE string, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, starred_at TYPE string, END OF simple_user. * Component schema: nullable-scoped-installation, object TYPES: BEGIN OF nullable_scoped_installation, permissions TYPE app_permissions, repository_selection TYPE string, single_file_name TYPE string, has_multiple_single_files TYPE abap_bool, single_file_paths TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array repositories_url TYPE string, account TYPE simple_user, END OF nullable_scoped_installation. * Component schema: authorization, object TYPES: BEGIN OF subauthorization_app, client_id TYPE string, name TYPE string, url TYPE string, END OF subauthorization_app. TYPES: BEGIN OF authorization, id TYPE i, url TYPE string, scopes TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array token TYPE string, token_last_eight TYPE string, hashed_token TYPE string, app TYPE subauthorization_app, note TYPE string, note_url TYPE string, updated_at TYPE string, created_at TYPE string, fingerprint TYPE string, user TYPE nullable_simple_user, installation TYPE nullable_scoped_installation, END OF authorization. * Component schema: integration, object TYPES: BEGIN OF subintegration_permissions, issues TYPE string, checks TYPE string, metadata TYPE string, contents TYPE string, deployments TYPE string, END OF subintegration_permissions. TYPES: BEGIN OF integration, id TYPE i, slug TYPE string, node_id TYPE string, owner TYPE nullable_simple_user, name TYPE string, description TYPE string, external_url TYPE string, html_url TYPE string, created_at TYPE string, updated_at TYPE string, permissions TYPE subintegration_permissions, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array installations_count TYPE i, client_id TYPE string, client_secret TYPE string, webhook_secret TYPE string, pem TYPE string, END OF integration. * Component schema: basic-error, object TYPES: BEGIN OF basic_error, message TYPE string, documentation_url TYPE string, url TYPE string, status TYPE string, END OF basic_error. * Component schema: validation-error-simple, object TYPES: BEGIN OF validation_error_simple, message TYPE string, documentation_url TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF validation_error_simple. * Component schema: enterprise, object TYPES: BEGIN OF enterprise, description TYPE string, html_url TYPE string, website_url TYPE string, id TYPE i, node_id TYPE string, name TYPE string, slug TYPE string, created_at TYPE string, updated_at TYPE string, avatar_url TYPE string, END OF enterprise. * Component schema: installation-ghes-2, object TYPES: BEGIN OF subinstallation_ghes_2_permiss, deployments TYPE string, checks TYPE string, metadata TYPE string, contents TYPE string, pull_requests TYPE string, statuses TYPE string, issues TYPE string, organization_administration TYPE string, END OF subinstallation_ghes_2_permiss. TYPES: BEGIN OF installation_ghes_2, id TYPE i, account TYPE string, repository_selection TYPE string, access_tokens_url TYPE string, repositories_url TYPE string, html_url TYPE string, app_id TYPE i, target_id TYPE i, target_type TYPE string, permissions TYPE subinstallation_ghes_2_permiss, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array created_at TYPE string, updated_at TYPE string, single_file_name TYPE string, app_slug TYPE string, suspended_by TYPE nullable_simple_user, suspended_at TYPE string, contact_email TYPE string, END OF installation_ghes_2. * Component schema: nullable-license-simple, object TYPES: BEGIN OF nullable_license_simple, key TYPE string, name TYPE string, url TYPE string, spdx_id TYPE string, node_id TYPE string, html_url TYPE string, END OF nullable_license_simple. * Component schema: repository, object TYPES: BEGIN OF subsubrepository_template_re01, admin TYPE abap_bool, maintain TYPE abap_bool, push TYPE abap_bool, triage TYPE abap_bool, pull TYPE abap_bool, END OF subsubrepository_template_re01. TYPES: BEGIN OF subsubrepository_template_repo, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, END OF subsubrepository_template_repo. TYPES: BEGIN OF subrepository_template_reposit, id TYPE i, node_id TYPE string, name TYPE string, full_name TYPE string, owner TYPE subsubrepository_template_repo, private TYPE abap_bool, html_url TYPE string, description TYPE string, fork TYPE abap_bool, url TYPE string, archive_url TYPE string, assignees_url TYPE string, blobs_url TYPE string, branches_url TYPE string, collaborators_url TYPE string, comments_url TYPE string, commits_url TYPE string, compare_url TYPE string, contents_url TYPE string, contributors_url TYPE string, deployments_url TYPE string, downloads_url TYPE string, events_url TYPE string, forks_url TYPE string, git_commits_url TYPE string, git_refs_url TYPE string, git_tags_url TYPE string, git_url TYPE string, issue_comment_url TYPE string, issue_events_url TYPE string, issues_url TYPE string, keys_url TYPE string, labels_url TYPE string, languages_url TYPE string, merges_url TYPE string, milestones_url TYPE string, notifications_url TYPE string, pulls_url TYPE string, releases_url TYPE string, ssh_url TYPE string, stargazers_url TYPE string, statuses_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, tags_url TYPE string, teams_url TYPE string, trees_url TYPE string, clone_url TYPE string, mirror_url TYPE string, hooks_url TYPE string, svn_url TYPE string, homepage TYPE string, language TYPE string, forks_count TYPE i, stargazers_count TYPE i, watchers_count TYPE i, size TYPE i, default_branch TYPE string, open_issues_count TYPE i, is_template TYPE abap_bool, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, has_pages TYPE abap_bool, has_downloads TYPE abap_bool, archived TYPE abap_bool, disabled TYPE abap_bool, pushed_at TYPE string, created_at TYPE string, updated_at TYPE string, permissions TYPE subsubrepository_template_re01, allow_rebase_merge TYPE abap_bool, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, subscribers_count TYPE i, network_count TYPE i, anonymous_access_enabled TYPE abap_bool, END OF subrepository_template_reposit. TYPES: BEGIN OF subrepository_permissions, admin TYPE abap_bool, pull TYPE abap_bool, triage TYPE abap_bool, push TYPE abap_bool, maintain TYPE abap_bool, END OF subrepository_permissions. TYPES: BEGIN OF repository, id TYPE i, node_id TYPE string, name TYPE string, full_name TYPE string, license TYPE nullable_license_simple, organization TYPE nullable_simple_user, forks TYPE i, permissions TYPE subrepository_permissions, owner TYPE simple_user, private TYPE abap_bool, html_url TYPE string, description TYPE string, fork TYPE abap_bool, url TYPE string, archive_url TYPE string, assignees_url TYPE string, blobs_url TYPE string, branches_url TYPE string, collaborators_url TYPE string, comments_url TYPE string, commits_url TYPE string, compare_url TYPE string, contents_url TYPE string, contributors_url TYPE string, deployments_url TYPE string, downloads_url TYPE string, events_url TYPE string, forks_url TYPE string, git_commits_url TYPE string, git_refs_url TYPE string, git_tags_url TYPE string, git_url TYPE string, issue_comment_url TYPE string, issue_events_url TYPE string, issues_url TYPE string, keys_url TYPE string, labels_url TYPE string, languages_url TYPE string, merges_url TYPE string, milestones_url TYPE string, notifications_url TYPE string, pulls_url TYPE string, releases_url TYPE string, ssh_url TYPE string, stargazers_url TYPE string, statuses_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, tags_url TYPE string, teams_url TYPE string, trees_url TYPE string, clone_url TYPE string, mirror_url TYPE string, hooks_url TYPE string, svn_url TYPE string, homepage TYPE string, language TYPE string, forks_count TYPE i, stargazers_count TYPE i, watchers_count TYPE i, size TYPE i, default_branch TYPE string, open_issues_count TYPE i, is_template TYPE abap_bool, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, has_pages TYPE abap_bool, has_downloads TYPE abap_bool, archived TYPE abap_bool, disabled TYPE abap_bool, pushed_at TYPE string, created_at TYPE string, updated_at TYPE string, allow_rebase_merge TYPE abap_bool, template_repository TYPE subrepository_template_reposit, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, allow_forking TYPE abap_bool, subscribers_count TYPE i, network_count TYPE i, open_issues TYPE i, watchers TYPE i, master_branch TYPE string, starred_at TYPE string, anonymous_access_enabled TYPE abap_bool, END OF repository. * Component schema: installation-token, object TYPES: BEGIN OF installation_token, token TYPE string, expires_at TYPE string, permissions TYPE app_permissions, repository_selection TYPE string, repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array single_file TYPE string, has_multiple_single_files TYPE abap_bool, single_file_paths TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF installation_token. * Component schema: validation-error, object TYPES: BEGIN OF validation_error, message TYPE string, documentation_url TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF validation_error. * Component schema: application-grant, object TYPES: BEGIN OF subapplication_grant_app, client_id TYPE string, name TYPE string, url TYPE string, END OF subapplication_grant_app. TYPES: BEGIN OF application_grant, id TYPE i, url TYPE string, app TYPE subapplication_grant_app, created_at TYPE string, updated_at TYPE string, scopes TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array user TYPE nullable_simple_user, END OF application_grant. * Component schema: authorization-with-user, object TYPES: BEGIN OF subauthorization_with_user_use, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, END OF subauthorization_with_user_use. TYPES: BEGIN OF subauthorization_with_user_app, url TYPE string, name TYPE string, client_id TYPE string, END OF subauthorization_with_user_app. TYPES: BEGIN OF authorization_with_user, id TYPE i, url TYPE string, scopes TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array token TYPE string, token_last_eight TYPE string, hashed_token TYPE string, app TYPE subauthorization_with_user_app, note TYPE string, note_url TYPE string, updated_at TYPE string, created_at TYPE string, fingerprint TYPE string, user TYPE subauthorization_with_user_use, END OF authorization_with_user. * Component schema: code-of-conduct, object TYPES: BEGIN OF code_of_conduct, key TYPE string, name TYPE string, url TYPE string, body TYPE string, html_url TYPE string, END OF code_of_conduct. * Component schema: license-info, object TYPES: BEGIN OF license_info, seats TYPE string, seats_used TYPE i, seats_available TYPE string, kind TYPE string, days_until_expiration TYPE i, expire_at TYPE string, END OF license_info. * Component schema: enterprise-repository-overview, object TYPES: BEGIN OF enterprise_repository_overview, total_repos TYPE i, root_repos TYPE i, fork_repos TYPE i, org_repos TYPE i, total_pushes TYPE i, total_wikis TYPE i, END OF enterprise_repository_overview. * Component schema: enterprise-hook-overview, object TYPES: BEGIN OF enterprise_hook_overview, total_hooks TYPE i, active_hooks TYPE i, inactive_hooks TYPE i, END OF enterprise_hook_overview. * Component schema: enterprise-page-overview, object TYPES: BEGIN OF enterprise_page_overview, total_pages TYPE i, END OF enterprise_page_overview. * Component schema: enterprise-organization-overview, object TYPES: BEGIN OF enterprise_organization_overvi, total_orgs TYPE i, disabled_orgs TYPE i, total_teams TYPE i, total_team_members TYPE i, END OF enterprise_organization_overvi. * Component schema: enterprise-user-overview, object TYPES: BEGIN OF enterprise_user_overview, total_users TYPE i, admin_users TYPE i, suspended_users TYPE i, END OF enterprise_user_overview. * Component schema: enterprise-pull-request-overview, object TYPES: BEGIN OF enterprise_pull_request_overvi, total_pulls TYPE i, merged_pulls TYPE i, mergeable_pulls TYPE i, unmergeable_pulls TYPE i, END OF enterprise_pull_request_overvi. * Component schema: enterprise-issue-overview, object TYPES: BEGIN OF enterprise_issue_overview, total_issues TYPE i, open_issues TYPE i, closed_issues TYPE i, END OF enterprise_issue_overview. * Component schema: enterprise-milestone-overview, object TYPES: BEGIN OF enterprise_milestone_overview, total_milestones TYPE i, open_milestones TYPE i, closed_milestones TYPE i, END OF enterprise_milestone_overview. * Component schema: enterprise-gist-overview, object TYPES: BEGIN OF enterprise_gist_overview, total_gists TYPE i, private_gists TYPE i, public_gists TYPE i, END OF enterprise_gist_overview. * Component schema: enterprise-comment-overview, object TYPES: BEGIN OF enterprise_comment_overview, total_commit_comments TYPE i, total_gist_comments TYPE i, total_issue_comments TYPE i, total_pull_request_comments TYPE i, END OF enterprise_comment_overview. * Component schema: enterprise-overview, object TYPES: BEGIN OF enterprise_overview, repos TYPE enterprise_repository_overview, hooks TYPE enterprise_hook_overview, pages TYPE enterprise_page_overview, orgs TYPE enterprise_organization_overvi, users TYPE enterprise_user_overview, pulls TYPE enterprise_pull_request_overvi, issues TYPE enterprise_issue_overview, milestones TYPE enterprise_milestone_overview, gists TYPE enterprise_gist_overview, comments TYPE enterprise_comment_overview, END OF enterprise_overview. * Component schema: actor, object TYPES: BEGIN OF actor, id TYPE i, login TYPE string, display_login TYPE string, gravatar_id TYPE string, url TYPE string, avatar_url TYPE string, END OF actor. * Component schema: label, object TYPES: BEGIN OF label, id TYPE i, node_id TYPE string, url TYPE string, name TYPE string, description TYPE string, color TYPE string, default TYPE abap_bool, END OF label. * Component schema: nullable-milestone, object TYPES: BEGIN OF nullable_milestone, url TYPE string, html_url TYPE string, labels_url TYPE string, id TYPE i, node_id TYPE string, number TYPE i, state TYPE string, title TYPE string, description TYPE string, creator TYPE nullable_simple_user, open_issues TYPE i, closed_issues TYPE i, created_at TYPE string, updated_at TYPE string, closed_at TYPE string, due_on TYPE string, END OF nullable_milestone. * Component schema: author_association, string TYPES author_association TYPE string. * Component schema: nullable-integration, object TYPES: BEGIN OF subnullable_integration_permis, issues TYPE string, checks TYPE string, metadata TYPE string, contents TYPE string, deployments TYPE string, END OF subnullable_integration_permis. TYPES: BEGIN OF nullable_integration, id TYPE i, slug TYPE string, node_id TYPE string, owner TYPE nullable_simple_user, name TYPE string, description TYPE string, external_url TYPE string, html_url TYPE string, created_at TYPE string, updated_at TYPE string, permissions TYPE subnullable_integration_permis, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array installations_count TYPE i, client_id TYPE string, client_secret TYPE string, webhook_secret TYPE string, pem TYPE string, END OF nullable_integration. * Component schema: issue-simple, object TYPES: BEGIN OF subissue_simple_pull_request, merged_at TYPE string, diff_url TYPE string, html_url TYPE string, patch_url TYPE string, url TYPE string, END OF subissue_simple_pull_request. TYPES: BEGIN OF issue_simple, id TYPE i, node_id TYPE string, url TYPE string, repository_url TYPE string, labels_url TYPE string, comments_url TYPE string, events_url TYPE string, html_url TYPE string, number TYPE i, state TYPE string, title TYPE string, body TYPE string, user TYPE nullable_simple_user, labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array assignee TYPE nullable_simple_user, assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array milestone TYPE nullable_milestone, locked TYPE abap_bool, active_lock_reason TYPE string, comments TYPE i, pull_request TYPE subissue_simple_pull_request, closed_at TYPE string, created_at TYPE string, updated_at TYPE string, author_association TYPE author_association, body_html TYPE string, body_text TYPE string, timeline_url TYPE string, repository TYPE repository, performed_via_github_app TYPE nullable_integration, END OF issue_simple. * Component schema: reaction-rollup, object TYPES: BEGIN OF reaction_rollup, url TYPE string, total_count TYPE i, n1 TYPE i, _1 TYPE i, laugh TYPE i, confused TYPE i, heart TYPE i, hooray TYPE i, eyes TYPE i, rocket TYPE i, END OF reaction_rollup. * Component schema: issue-comment, object TYPES: BEGIN OF issue_comment, id TYPE i, node_id TYPE string, url TYPE string, body TYPE string, body_text TYPE string, body_html TYPE string, html_url TYPE string, user TYPE nullable_simple_user, created_at TYPE string, updated_at TYPE string, issue_url TYPE string, author_association TYPE author_association, performed_via_github_app TYPE nullable_integration, reactions TYPE reaction_rollup, END OF issue_comment. * Component schema: event, object TYPES: BEGIN OF subevent_payload, action TYPE string, issue TYPE issue_simple, comment TYPE issue_comment, pages TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subevent_payload. TYPES: BEGIN OF subevent_repo, id TYPE i, name TYPE string, url TYPE string, END OF subevent_repo. TYPES: BEGIN OF event, id TYPE string, type TYPE string, actor TYPE actor, repo TYPE subevent_repo, org TYPE actor, payload TYPE subevent_payload, public TYPE abap_bool, created_at TYPE string, END OF event. * Component schema: link-with-type, object TYPES: BEGIN OF link_with_type, href TYPE string, type TYPE string, END OF link_with_type. * Component schema: feed, object TYPES: BEGIN OF subfeed__links, timeline TYPE link_with_type, user TYPE link_with_type, security_advisories TYPE link_with_type, current_user TYPE link_with_type, current_user_public TYPE link_with_type, current_user_actor TYPE link_with_type, current_user_organization TYPE link_with_type, current_user_organizations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subfeed__links. TYPES: BEGIN OF feed, timeline_url TYPE string, user_url TYPE string, current_user_public_url TYPE string, current_user_url TYPE string, current_user_actor_url TYPE string, current_user_organization_url TYPE string, current_user_organization_urls TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array _links TYPE subfeed__links, END OF feed. * Component schema: base-gist, object TYPES: BEGIN OF subbase_gist_files, dummy_workaround TYPE i, END OF subbase_gist_files. TYPES: BEGIN OF base_gist, url TYPE string, forks_url TYPE string, commits_url TYPE string, id TYPE string, node_id TYPE string, git_pull_url TYPE string, git_push_url TYPE string, html_url TYPE string, files TYPE subbase_gist_files, public TYPE abap_bool, created_at TYPE string, updated_at TYPE string, description TYPE string, comments TYPE i, user TYPE nullable_simple_user, comments_url TYPE string, owner TYPE simple_user, truncated TYPE abap_bool, forks TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array history TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF base_gist. * Component schema: public-user, object TYPES: BEGIN OF subpublic_user_plan, collaborators TYPE i, name TYPE string, space TYPE i, private_repos TYPE i, END OF subpublic_user_plan. TYPES: BEGIN OF public_user, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, name TYPE string, company TYPE string, blog TYPE string, location TYPE string, email TYPE string, hireable TYPE abap_bool, bio TYPE string, public_repos TYPE i, public_gists TYPE i, followers TYPE i, following TYPE i, created_at TYPE string, updated_at TYPE string, plan TYPE subpublic_user_plan, suspended_at TYPE string, private_gists TYPE i, total_private_repos TYPE i, owned_private_repos TYPE i, disk_usage TYPE i, collaborators TYPE i, END OF public_user. * Component schema: gist-history, object TYPES: BEGIN OF subgist_history_change_status, total TYPE i, additions TYPE i, deletions TYPE i, END OF subgist_history_change_status. TYPES: BEGIN OF gist_history, user TYPE nullable_simple_user, version TYPE string, committed_at TYPE string, change_status TYPE subgist_history_change_status, url TYPE string, END OF gist_history. * Component schema: gist-simple, object TYPES: BEGIN OF subgist_simple_files, dummy_workaround TYPE i, END OF subgist_simple_files. TYPES: BEGIN OF subsubgist_simple_fork_of_file, dummy_workaround TYPE i, END OF subsubgist_simple_fork_of_file. TYPES: BEGIN OF subgist_simple_fork_of, url TYPE string, forks_url TYPE string, commits_url TYPE string, id TYPE string, node_id TYPE string, git_pull_url TYPE string, git_push_url TYPE string, html_url TYPE string, files TYPE subsubgist_simple_fork_of_file, public TYPE abap_bool, created_at TYPE string, updated_at TYPE string, description TYPE string, comments TYPE i, user TYPE nullable_simple_user, comments_url TYPE string, owner TYPE nullable_simple_user, truncated TYPE abap_bool, forks TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array history TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subgist_simple_fork_of. TYPES: BEGIN OF gist_simple, forks TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array history TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array fork_of TYPE subgist_simple_fork_of, url TYPE string, forks_url TYPE string, commits_url TYPE string, id TYPE string, node_id TYPE string, git_pull_url TYPE string, git_push_url TYPE string, html_url TYPE string, files TYPE subgist_simple_files, public TYPE abap_bool, created_at TYPE string, updated_at TYPE string, description TYPE string, comments TYPE i, user TYPE string, comments_url TYPE string, owner TYPE simple_user, truncated TYPE abap_bool, END OF gist_simple. * Component schema: gist-comment, object TYPES: BEGIN OF gist_comment, id TYPE i, node_id TYPE string, url TYPE string, body TYPE string, user TYPE nullable_simple_user, created_at TYPE string, updated_at TYPE string, author_association TYPE author_association, END OF gist_comment. * Component schema: gist-commit, object TYPES: BEGIN OF subgist_commit_change_status, total TYPE i, additions TYPE i, deletions TYPE i, END OF subgist_commit_change_status. TYPES: BEGIN OF gist_commit, url TYPE string, version TYPE string, user TYPE nullable_simple_user, change_status TYPE subgist_commit_change_status, committed_at TYPE string, END OF gist_commit. * Component schema: gitignore-template, object TYPES: BEGIN OF gitignore_template, name TYPE string, source TYPE string, END OF gitignore_template. * Component schema: issue, object TYPES: BEGIN OF subissue_pull_request, merged_at TYPE string, diff_url TYPE string, html_url TYPE string, patch_url TYPE string, url TYPE string, END OF subissue_pull_request. TYPES: BEGIN OF issue, id TYPE i, node_id TYPE string, url TYPE string, repository_url TYPE string, labels_url TYPE string, comments_url TYPE string, events_url TYPE string, html_url TYPE string, number TYPE i, state TYPE string, title TYPE string, body TYPE string, user TYPE nullable_simple_user, labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array assignee TYPE nullable_simple_user, assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array milestone TYPE nullable_milestone, locked TYPE abap_bool, active_lock_reason TYPE string, comments TYPE i, pull_request TYPE subissue_pull_request, closed_at TYPE string, created_at TYPE string, updated_at TYPE string, closed_by TYPE nullable_simple_user, body_html TYPE string, body_text TYPE string, timeline_url TYPE string, repository TYPE repository, performed_via_github_app TYPE nullable_integration, author_association TYPE author_association, reactions TYPE reaction_rollup, END OF issue. * Component schema: license-simple, object TYPES: BEGIN OF license_simple, key TYPE string, name TYPE string, url TYPE string, spdx_id TYPE string, node_id TYPE string, html_url TYPE string, END OF license_simple. * Component schema: license, object TYPES: BEGIN OF license, key TYPE string, name TYPE string, spdx_id TYPE string, url TYPE string, node_id TYPE string, html_url TYPE string, description TYPE string, implementation TYPE string, permissions TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array conditions TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array limitations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array body TYPE string, featured TYPE abap_bool, END OF license. * Component schema: api-overview, object TYPES: BEGIN OF api_overview, verifiable_password_authentica TYPE abap_bool, packages TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array dependabot TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array installed_version TYPE string, github_services_sha TYPE string, END OF api_overview. * Component schema: nullable-repository, object TYPES: BEGIN OF subsubnullable_repository_te01, admin TYPE abap_bool, maintain TYPE abap_bool, push TYPE abap_bool, triage TYPE abap_bool, pull TYPE abap_bool, END OF subsubnullable_repository_te01. TYPES: BEGIN OF subsubnullable_repository_temp, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, END OF subsubnullable_repository_temp. TYPES: BEGIN OF subnullable_repository_templat, id TYPE i, node_id TYPE string, name TYPE string, full_name TYPE string, owner TYPE subsubnullable_repository_temp, private TYPE abap_bool, html_url TYPE string, description TYPE string, fork TYPE abap_bool, url TYPE string, archive_url TYPE string, assignees_url TYPE string, blobs_url TYPE string, branches_url TYPE string, collaborators_url TYPE string, comments_url TYPE string, commits_url TYPE string, compare_url TYPE string, contents_url TYPE string, contributors_url TYPE string, deployments_url TYPE string, downloads_url TYPE string, events_url TYPE string, forks_url TYPE string, git_commits_url TYPE string, git_refs_url TYPE string, git_tags_url TYPE string, git_url TYPE string, issue_comment_url TYPE string, issue_events_url TYPE string, issues_url TYPE string, keys_url TYPE string, labels_url TYPE string, languages_url TYPE string, merges_url TYPE string, milestones_url TYPE string, notifications_url TYPE string, pulls_url TYPE string, releases_url TYPE string, ssh_url TYPE string, stargazers_url TYPE string, statuses_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, tags_url TYPE string, teams_url TYPE string, trees_url TYPE string, clone_url TYPE string, mirror_url TYPE string, hooks_url TYPE string, svn_url TYPE string, homepage TYPE string, language TYPE string, forks_count TYPE i, stargazers_count TYPE i, watchers_count TYPE i, size TYPE i, default_branch TYPE string, open_issues_count TYPE i, is_template TYPE abap_bool, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, has_pages TYPE abap_bool, has_downloads TYPE abap_bool, archived TYPE abap_bool, disabled TYPE abap_bool, pushed_at TYPE string, created_at TYPE string, updated_at TYPE string, permissions TYPE subsubnullable_repository_te01, allow_rebase_merge TYPE abap_bool, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, subscribers_count TYPE i, network_count TYPE i, anonymous_access_enabled TYPE abap_bool, END OF subnullable_repository_templat. TYPES: BEGIN OF subnullable_repository_permiss, admin TYPE abap_bool, pull TYPE abap_bool, triage TYPE abap_bool, push TYPE abap_bool, maintain TYPE abap_bool, END OF subnullable_repository_permiss. TYPES: BEGIN OF nullable_repository, id TYPE i, node_id TYPE string, name TYPE string, full_name TYPE string, license TYPE nullable_license_simple, organization TYPE nullable_simple_user, forks TYPE i, permissions TYPE subnullable_repository_permiss, owner TYPE simple_user, private TYPE abap_bool, html_url TYPE string, description TYPE string, fork TYPE abap_bool, url TYPE string, archive_url TYPE string, assignees_url TYPE string, blobs_url TYPE string, branches_url TYPE string, collaborators_url TYPE string, comments_url TYPE string, commits_url TYPE string, compare_url TYPE string, contents_url TYPE string, contributors_url TYPE string, deployments_url TYPE string, downloads_url TYPE string, events_url TYPE string, forks_url TYPE string, git_commits_url TYPE string, git_refs_url TYPE string, git_tags_url TYPE string, git_url TYPE string, issue_comment_url TYPE string, issue_events_url TYPE string, issues_url TYPE string, keys_url TYPE string, labels_url TYPE string, languages_url TYPE string, merges_url TYPE string, milestones_url TYPE string, notifications_url TYPE string, pulls_url TYPE string, releases_url TYPE string, ssh_url TYPE string, stargazers_url TYPE string, statuses_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, tags_url TYPE string, teams_url TYPE string, trees_url TYPE string, clone_url TYPE string, mirror_url TYPE string, hooks_url TYPE string, svn_url TYPE string, homepage TYPE string, language TYPE string, forks_count TYPE i, stargazers_count TYPE i, watchers_count TYPE i, size TYPE i, default_branch TYPE string, open_issues_count TYPE i, is_template TYPE abap_bool, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, has_pages TYPE abap_bool, has_downloads TYPE abap_bool, archived TYPE abap_bool, disabled TYPE abap_bool, pushed_at TYPE string, created_at TYPE string, updated_at TYPE string, allow_rebase_merge TYPE abap_bool, template_repository TYPE subnullable_repository_templat, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, allow_forking TYPE abap_bool, subscribers_count TYPE i, network_count TYPE i, open_issues TYPE i, watchers TYPE i, master_branch TYPE string, starred_at TYPE string, anonymous_access_enabled TYPE abap_bool, END OF nullable_repository. * Component schema: minimal-repository, object TYPES: BEGIN OF subminimal_repository_license, key TYPE string, name TYPE string, spdx_id TYPE string, url TYPE string, node_id TYPE string, END OF subminimal_repository_license. TYPES: BEGIN OF subminimal_repository_permissi, admin TYPE abap_bool, maintain TYPE abap_bool, push TYPE abap_bool, triage TYPE abap_bool, pull TYPE abap_bool, END OF subminimal_repository_permissi. TYPES: BEGIN OF minimal_repository, id TYPE i, node_id TYPE string, name TYPE string, full_name TYPE string, owner TYPE simple_user, private TYPE abap_bool, html_url TYPE string, description TYPE string, fork TYPE abap_bool, url TYPE string, archive_url TYPE string, assignees_url TYPE string, blobs_url TYPE string, branches_url TYPE string, collaborators_url TYPE string, comments_url TYPE string, commits_url TYPE string, compare_url TYPE string, contents_url TYPE string, contributors_url TYPE string, deployments_url TYPE string, downloads_url TYPE string, events_url TYPE string, forks_url TYPE string, git_commits_url TYPE string, git_refs_url TYPE string, git_tags_url TYPE string, git_url TYPE string, issue_comment_url TYPE string, issue_events_url TYPE string, issues_url TYPE string, keys_url TYPE string, labels_url TYPE string, languages_url TYPE string, merges_url TYPE string, milestones_url TYPE string, notifications_url TYPE string, pulls_url TYPE string, releases_url TYPE string, ssh_url TYPE string, stargazers_url TYPE string, statuses_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, tags_url TYPE string, teams_url TYPE string, trees_url TYPE string, clone_url TYPE string, mirror_url TYPE string, hooks_url TYPE string, svn_url TYPE string, homepage TYPE string, language TYPE string, forks_count TYPE i, stargazers_count TYPE i, watchers_count TYPE i, size TYPE i, default_branch TYPE string, open_issues_count TYPE i, is_template TYPE abap_bool, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, has_pages TYPE abap_bool, has_downloads TYPE abap_bool, archived TYPE abap_bool, disabled TYPE abap_bool, pushed_at TYPE string, created_at TYPE string, updated_at TYPE string, permissions TYPE subminimal_repository_permissi, template_repository TYPE nullable_repository, subscribers_count TYPE i, network_count TYPE i, code_of_conduct TYPE code_of_conduct, license TYPE subminimal_repository_license, forks TYPE i, open_issues TYPE i, watchers TYPE i, allow_forking TYPE abap_bool, anonymous_access_enabled TYPE abap_bool, END OF minimal_repository. * Component schema: thread, object TYPES: BEGIN OF subthread_subject, title TYPE string, url TYPE string, latest_comment_url TYPE string, type TYPE string, END OF subthread_subject. TYPES: BEGIN OF thread, id TYPE string, repository TYPE minimal_repository, subject TYPE subthread_subject, reason TYPE string, unread TYPE abap_bool, updated_at TYPE string, last_read_at TYPE string, url TYPE string, subscription_url TYPE string, END OF thread. * Component schema: thread-subscription, object TYPES: BEGIN OF thread_subscription, subscribed TYPE abap_bool, ignored TYPE abap_bool, reason TYPE string, created_at TYPE string, url TYPE string, thread_url TYPE string, repository_url TYPE string, END OF thread_subscription. * Component schema: organization-full, object TYPES: BEGIN OF suborganization_full_plan, name TYPE string, space TYPE i, private_repos TYPE i, filled_seats TYPE i, seats TYPE i, END OF suborganization_full_plan. TYPES: BEGIN OF organization_full, login TYPE string, id TYPE i, node_id TYPE string, url TYPE string, repos_url TYPE string, events_url TYPE string, hooks_url TYPE string, issues_url TYPE string, members_url TYPE string, public_members_url TYPE string, avatar_url TYPE string, description TYPE string, name TYPE string, company TYPE string, blog TYPE string, location TYPE string, email TYPE string, has_organization_projects TYPE abap_bool, has_repository_projects TYPE abap_bool, public_repos TYPE i, public_gists TYPE i, followers TYPE i, following TYPE i, html_url TYPE string, created_at TYPE string, type TYPE string, total_private_repos TYPE i, owned_private_repos TYPE i, private_gists TYPE i, disk_usage TYPE i, collaborators TYPE i, billing_email TYPE string, plan TYPE suborganization_full_plan, default_repository_permission TYPE string, members_can_create_repositorie TYPE abap_bool, two_factor_requirement_enabled TYPE abap_bool, members_allowed_repository_cre TYPE string, members_can_create_pages TYPE abap_bool, members_can_create_public_page TYPE abap_bool, members_can_create_private_pag TYPE abap_bool, updated_at TYPE string, END OF organization_full. * Component schema: org-hook, object TYPES: BEGIN OF suborg_hook_config, url TYPE string, insecure_ssl TYPE string, content_type TYPE string, secret TYPE string, END OF suborg_hook_config. TYPES: BEGIN OF org_hook, id TYPE i, url TYPE string, ping_url TYPE string, name TYPE string, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, config TYPE suborg_hook_config, updated_at TYPE string, created_at TYPE string, type TYPE string, END OF org_hook. * Component schema: webhook-config-url, string TYPES webhook_config_url TYPE string. * Component schema: webhook-config-content-type, string TYPES webhook_config_content_type TYPE string. * Component schema: webhook-config-secret, string TYPES webhook_config_secret TYPE string. * Component schema: webhook-config-insecure-ssl, string TYPES webhook_config_insecure_ssl TYPE string. * Component schema: org-membership, object TYPES: BEGIN OF suborg_membership_permissions, can_create_repository TYPE abap_bool, END OF suborg_membership_permissions. TYPES: BEGIN OF org_membership, url TYPE string, state TYPE string, role TYPE string, organization_url TYPE string, organization TYPE organization_simple, user TYPE nullable_simple_user, permissions TYPE suborg_membership_permissions, END OF org_membership. * Component schema: org-pre-receive-hook, object TYPES: BEGIN OF org_pre_receive_hook, id TYPE i, name TYPE string, enforcement TYPE string, configuration_url TYPE string, allow_downstream_configuration TYPE abap_bool, END OF org_pre_receive_hook. * Component schema: project, object TYPES: BEGIN OF project, owner_url TYPE string, url TYPE string, html_url TYPE string, columns_url TYPE string, id TYPE i, node_id TYPE string, name TYPE string, body TYPE string, number TYPE i, state TYPE string, creator TYPE nullable_simple_user, created_at TYPE string, updated_at TYPE string, organization_permission TYPE string, private TYPE abap_bool, END OF project. * Component schema: nullable-team-simple, object TYPES: BEGIN OF nullable_team_simple, id TYPE i, node_id TYPE string, url TYPE string, members_url TYPE string, name TYPE string, description TYPE string, permission TYPE string, privacy TYPE string, html_url TYPE string, repositories_url TYPE string, slug TYPE string, ldap_dn TYPE string, END OF nullable_team_simple. * Component schema: team, object TYPES: BEGIN OF subteam_permissions, pull TYPE abap_bool, triage TYPE abap_bool, push TYPE abap_bool, maintain TYPE abap_bool, admin TYPE abap_bool, END OF subteam_permissions. TYPES: BEGIN OF team, id TYPE i, node_id TYPE string, name TYPE string, slug TYPE string, description TYPE string, privacy TYPE string, permission TYPE string, permissions TYPE subteam_permissions, url TYPE string, html_url TYPE string, members_url TYPE string, repositories_url TYPE string, parent TYPE nullable_team_simple, END OF team. * Component schema: team-full, object TYPES: BEGIN OF team_full, id TYPE i, node_id TYPE string, url TYPE string, html_url TYPE string, name TYPE string, slug TYPE string, description TYPE string, privacy TYPE string, permission TYPE string, members_url TYPE string, repositories_url TYPE string, parent TYPE nullable_team_simple, members_count TYPE i, repos_count TYPE i, created_at TYPE string, updated_at TYPE string, organization TYPE organization_full, ldap_dn TYPE string, END OF team_full. * Component schema: project-card, object TYPES: BEGIN OF project_card, url TYPE string, id TYPE i, node_id TYPE string, note TYPE string, creator TYPE nullable_simple_user, created_at TYPE string, updated_at TYPE string, archived TYPE abap_bool, column_name TYPE string, project_id TYPE string, column_url TYPE string, content_url TYPE string, project_url TYPE string, END OF project_card. * Component schema: project-column, object TYPES: BEGIN OF project_column, url TYPE string, project_url TYPE string, cards_url TYPE string, id TYPE i, node_id TYPE string, name TYPE string, created_at TYPE string, updated_at TYPE string, END OF project_column. * Component schema: repository-collaborator-permission, object TYPES: BEGIN OF repository_collaborator_permis, permission TYPE string, user TYPE nullable_simple_user, END OF repository_collaborator_permis. * Component schema: rate-limit, object TYPES: BEGIN OF rate_limit, limit TYPE i, remaining TYPE i, reset TYPE i, used TYPE i, END OF rate_limit. * Component schema: rate-limit-overview, object TYPES: BEGIN OF subrate_limit_overview_resourc, core TYPE rate_limit, graphql TYPE rate_limit, search TYPE rate_limit, source_import TYPE rate_limit, integration_manifest TYPE rate_limit, code_scanning_upload TYPE rate_limit, END OF subrate_limit_overview_resourc. TYPES: BEGIN OF rate_limit_overview, resources TYPE subrate_limit_overview_resourc, rate TYPE rate_limit, END OF rate_limit_overview. * Component schema: code-of-conduct-simple, object TYPES: BEGIN OF code_of_conduct_simple, url TYPE string, key TYPE string, name TYPE string, html_url TYPE string, END OF code_of_conduct_simple. * Component schema: full-repository, object TYPES: BEGIN OF subfull_repository_permissions, admin TYPE abap_bool, maintain TYPE abap_bool, push TYPE abap_bool, triage TYPE abap_bool, pull TYPE abap_bool, END OF subfull_repository_permissions. TYPES: BEGIN OF full_repository, id TYPE i, node_id TYPE string, name TYPE string, full_name TYPE string, owner TYPE simple_user, private TYPE abap_bool, html_url TYPE string, description TYPE string, fork TYPE abap_bool, url TYPE string, archive_url TYPE string, assignees_url TYPE string, blobs_url TYPE string, branches_url TYPE string, collaborators_url TYPE string, comments_url TYPE string, commits_url TYPE string, compare_url TYPE string, contents_url TYPE string, contributors_url TYPE string, deployments_url TYPE string, downloads_url TYPE string, events_url TYPE string, forks_url TYPE string, git_commits_url TYPE string, git_refs_url TYPE string, git_tags_url TYPE string, git_url TYPE string, issue_comment_url TYPE string, issue_events_url TYPE string, issues_url TYPE string, keys_url TYPE string, labels_url TYPE string, languages_url TYPE string, merges_url TYPE string, milestones_url TYPE string, notifications_url TYPE string, pulls_url TYPE string, releases_url TYPE string, ssh_url TYPE string, stargazers_url TYPE string, statuses_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, tags_url TYPE string, teams_url TYPE string, trees_url TYPE string, clone_url TYPE string, mirror_url TYPE string, hooks_url TYPE string, svn_url TYPE string, homepage TYPE string, language TYPE string, forks_count TYPE i, stargazers_count TYPE i, watchers_count TYPE i, size TYPE i, default_branch TYPE string, open_issues_count TYPE i, is_template TYPE abap_bool, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, has_pages TYPE abap_bool, has_downloads TYPE abap_bool, archived TYPE abap_bool, disabled TYPE abap_bool, pushed_at TYPE string, created_at TYPE string, updated_at TYPE string, permissions TYPE subfull_repository_permissions, allow_rebase_merge TYPE abap_bool, template_repository TYPE nullable_repository, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, allow_forking TYPE abap_bool, subscribers_count TYPE i, network_count TYPE i, license TYPE nullable_license_simple, organization TYPE nullable_simple_user, parent TYPE repository, source TYPE repository, forks TYPE i, master_branch TYPE string, open_issues TYPE i, watchers TYPE i, anonymous_access_enabled TYPE abap_bool, code_of_conduct TYPE code_of_conduct_simple, END OF full_repository. * Component schema: protected-branch-admin-enforced, object TYPES: BEGIN OF protected_branch_admin_enforce, url TYPE string, enabled TYPE abap_bool, END OF protected_branch_admin_enforce. * Component schema: protected-branch-pull-request-review, object TYPES: BEGIN OF subprotected_branch_pull_reque, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array url TYPE string, users_url TYPE string, teams_url TYPE string, END OF subprotected_branch_pull_reque. TYPES: BEGIN OF protected_branch_pull_request_, url TYPE string, dismissal_restrictions TYPE subprotected_branch_pull_reque, dismiss_stale_reviews TYPE abap_bool, require_code_owner_reviews TYPE abap_bool, required_approving_review_coun TYPE i, END OF protected_branch_pull_request_. * Component schema: branch-restriction-policy, object TYPES: BEGIN OF branch_restriction_policy, url TYPE string, users_url TYPE string, teams_url TYPE string, apps_url TYPE string, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array apps TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array restrictions TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF branch_restriction_policy. * Component schema: branch-protection, object TYPES: BEGIN OF subbranch_protection_require02, url TYPE string, enabled TYPE abap_bool, END OF subbranch_protection_require02. TYPES: BEGIN OF subbranch_protection_require01, enabled TYPE abap_bool, END OF subbranch_protection_require01. TYPES: BEGIN OF subbranch_protection_required_, url TYPE string, enforcement_level TYPE string, contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array contexts_url TYPE string, strict TYPE abap_bool, END OF subbranch_protection_required_. TYPES: BEGIN OF branch_protection, url TYPE string, enabled TYPE abap_bool, required_status_checks TYPE subbranch_protection_required_, enforce_admins TYPE protected_branch_admin_enforce, required_pull_request_reviews TYPE protected_branch_pull_request_, restrictions TYPE branch_restriction_policy, required_conversation_resoluti TYPE subbranch_protection_require01, name TYPE string, protection_url TYPE string, required_signatures TYPE subbranch_protection_require02, END OF branch_protection. * Component schema: short-branch, object TYPES: BEGIN OF subshort_branch_commit, sha TYPE string, url TYPE string, END OF subshort_branch_commit. TYPES: BEGIN OF short_branch, name TYPE string, commit TYPE subshort_branch_commit, protected TYPE abap_bool, protection TYPE branch_protection, protection_url TYPE string, END OF short_branch. * Component schema: nullable-git-user, object TYPES: BEGIN OF nullable_git_user, name TYPE string, email TYPE string, date TYPE string, END OF nullable_git_user. * Component schema: verification, object TYPES: BEGIN OF verification, verified TYPE abap_bool, reason TYPE string, payload TYPE string, signature TYPE string, END OF verification. * Component schema: commit, object TYPES: BEGIN OF subcommit_stats, additions TYPE i, deletions TYPE i, total TYPE i, END OF subcommit_stats. TYPES: BEGIN OF subsubcommit_commit_tree, sha TYPE string, url TYPE string, END OF subsubcommit_commit_tree. TYPES: BEGIN OF subcommit_commit, url TYPE string, author TYPE nullable_git_user, committer TYPE nullable_git_user, message TYPE string, comment_count TYPE i, tree TYPE subsubcommit_commit_tree, verification TYPE verification, END OF subcommit_commit. TYPES: BEGIN OF commit, url TYPE string, sha TYPE string, node_id TYPE string, html_url TYPE string, comments_url TYPE string, commit TYPE subcommit_commit, author TYPE nullable_simple_user, committer TYPE nullable_simple_user, parents TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array stats TYPE subcommit_stats, files TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF commit. * Component schema: branch-with-protection, object TYPES: BEGIN OF subbranch_with_protection__lin, html TYPE string, self TYPE string, END OF subbranch_with_protection__lin. TYPES: BEGIN OF branch_with_protection, name TYPE string, commit TYPE commit, _links TYPE subbranch_with_protection__lin, protected TYPE abap_bool, protection TYPE branch_protection, protection_url TYPE string, pattern TYPE string, required_approving_review_coun TYPE i, END OF branch_with_protection. * Component schema: status-check-policy, object TYPES: BEGIN OF status_check_policy, url TYPE string, strict TYPE abap_bool, contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array contexts_url TYPE string, END OF status_check_policy. * Component schema: protected-branch, object TYPES: BEGIN OF subprotected_branch_required_c, enabled TYPE abap_bool, END OF subprotected_branch_required_c. TYPES: BEGIN OF subprotected_branch_allow_dele, enabled TYPE abap_bool, END OF subprotected_branch_allow_dele. TYPES: BEGIN OF subprotected_branch_allow_forc, enabled TYPE abap_bool, END OF subprotected_branch_allow_forc. TYPES: BEGIN OF subprotected_branch_required_l, enabled TYPE abap_bool, END OF subprotected_branch_required_l. TYPES: BEGIN OF subprotected_branch_enforce_ad, url TYPE string, enabled TYPE abap_bool, END OF subprotected_branch_enforce_ad. TYPES: BEGIN OF subprotected_branch_required_s, url TYPE string, enabled TYPE abap_bool, END OF subprotected_branch_required_s. TYPES: BEGIN OF subsubprotected_branch_require, url TYPE string, users_url TYPE string, teams_url TYPE string, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subsubprotected_branch_require. TYPES: BEGIN OF subprotected_branch_required_p, url TYPE string, dismiss_stale_reviews TYPE abap_bool, require_code_owner_reviews TYPE abap_bool, required_approving_review_coun TYPE i, dismissal_restrictions TYPE subsubprotected_branch_require, END OF subprotected_branch_required_p. TYPES: BEGIN OF protected_branch, url TYPE string, required_status_checks TYPE status_check_policy, required_pull_request_reviews TYPE subprotected_branch_required_p, required_signatures TYPE subprotected_branch_required_s, enforce_admins TYPE subprotected_branch_enforce_ad, required_linear_history TYPE subprotected_branch_required_l, allow_force_pushes TYPE subprotected_branch_allow_forc, allow_deletions TYPE subprotected_branch_allow_dele, restrictions TYPE branch_restriction_policy, required_conversation_resoluti TYPE subprotected_branch_required_c, END OF protected_branch. * Component schema: pull-request-minimal, object TYPES: BEGIN OF subsubpull_request_minimal_bas, id TYPE i, url TYPE string, name TYPE string, END OF subsubpull_request_minimal_bas. TYPES: BEGIN OF subpull_request_minimal_base, ref TYPE string, sha TYPE string, repo TYPE subsubpull_request_minimal_bas, END OF subpull_request_minimal_base. TYPES: BEGIN OF subsubpull_request_minimal_hea, id TYPE i, url TYPE string, name TYPE string, END OF subsubpull_request_minimal_hea. TYPES: BEGIN OF subpull_request_minimal_head, ref TYPE string, sha TYPE string, repo TYPE subsubpull_request_minimal_hea, END OF subpull_request_minimal_head. TYPES: BEGIN OF pull_request_minimal, id TYPE i, number TYPE i, url TYPE string, head TYPE subpull_request_minimal_head, base TYPE subpull_request_minimal_base, END OF pull_request_minimal. * Component schema: deployment-simple, object TYPES: BEGIN OF deployment_simple, url TYPE string, id TYPE i, node_id TYPE string, task TYPE string, original_environment TYPE string, environment TYPE string, description TYPE string, created_at TYPE string, updated_at TYPE string, statuses_url TYPE string, repository_url TYPE string, transient_environment TYPE abap_bool, production_environment TYPE abap_bool, performed_via_github_app TYPE nullable_integration, END OF deployment_simple. * Component schema: check-run, object TYPES: BEGIN OF subcheck_run_check_suite, id TYPE i, END OF subcheck_run_check_suite. TYPES: BEGIN OF subcheck_run_output, title TYPE string, summary TYPE string, text TYPE string, annotations_count TYPE i, annotations_url TYPE string, END OF subcheck_run_output. TYPES: BEGIN OF check_run, id TYPE i, head_sha TYPE string, node_id TYPE string, external_id TYPE string, url TYPE string, html_url TYPE string, details_url TYPE string, status TYPE string, conclusion TYPE string, started_at TYPE string, completed_at TYPE string, output TYPE subcheck_run_output, name TYPE string, check_suite TYPE subcheck_run_check_suite, app TYPE nullable_integration, pull_requests TYPE string, deployment TYPE deployment_simple, END OF check_run. * Component schema: check-annotation, object TYPES: BEGIN OF check_annotation, path TYPE string, start_line TYPE i, end_line TYPE i, start_column TYPE i, end_column TYPE i, annotation_level TYPE string, title TYPE string, message TYPE string, raw_details TYPE string, blob_href TYPE string, END OF check_annotation. * Component schema: simple-commit, object TYPES: BEGIN OF subsimple_commit_committer, name TYPE string, email TYPE string, END OF subsimple_commit_committer. TYPES: BEGIN OF subsimple_commit_author, name TYPE string, email TYPE string, END OF subsimple_commit_author. TYPES: BEGIN OF simple_commit, id TYPE string, tree_id TYPE string, message TYPE string, timestamp TYPE string, author TYPE subsimple_commit_author, committer TYPE subsimple_commit_committer, END OF simple_commit. * Component schema: check-suite, object TYPES: BEGIN OF check_suite, id TYPE i, node_id TYPE string, head_branch TYPE string, head_sha TYPE string, status TYPE string, conclusion TYPE string, url TYPE string, before TYPE string, after TYPE string, pull_requests TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array app TYPE nullable_integration, repository TYPE minimal_repository, created_at TYPE string, updated_at TYPE string, head_commit TYPE simple_commit, latest_check_runs_count TYPE i, check_runs_url TYPE string, END OF check_suite. * Component schema: check-suite-preference, object TYPES: BEGIN OF subcheck_suite_preference_pref, auto_trigger_checks TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subcheck_suite_preference_pref. TYPES: BEGIN OF check_suite_preference, preferences TYPE subcheck_suite_preference_pref, repository TYPE minimal_repository, END OF check_suite_preference. * Component schema: collaborator, object TYPES: BEGIN OF subcollaborator_permissions, pull TYPE abap_bool, triage TYPE abap_bool, push TYPE abap_bool, maintain TYPE abap_bool, admin TYPE abap_bool, END OF subcollaborator_permissions. TYPES: BEGIN OF collaborator, login TYPE string, id TYPE i, email TYPE string, name TYPE string, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, permissions TYPE subcollaborator_permissions, END OF collaborator. * Component schema: repository-invitation, object TYPES: BEGIN OF repository_invitation, id TYPE i, repository TYPE minimal_repository, invitee TYPE nullable_simple_user, inviter TYPE nullable_simple_user, permissions TYPE string, created_at TYPE string, expired TYPE abap_bool, url TYPE string, html_url TYPE string, node_id TYPE string, END OF repository_invitation. * Component schema: commit-comment, object TYPES: BEGIN OF commit_comment, html_url TYPE string, url TYPE string, id TYPE i, node_id TYPE string, body TYPE string, path TYPE string, position TYPE i, line TYPE i, commit_id TYPE string, user TYPE nullable_simple_user, created_at TYPE string, updated_at TYPE string, author_association TYPE author_association, reactions TYPE reaction_rollup, END OF commit_comment. * Component schema: reaction, object TYPES: BEGIN OF reaction, id TYPE i, node_id TYPE string, user TYPE nullable_simple_user, content TYPE string, created_at TYPE string, END OF reaction. * Component schema: scim-error, object TYPES: BEGIN OF scim_error, message TYPE string, documentation_url TYPE string, detail TYPE string, status TYPE i, scimtype TYPE string, schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF scim_error. * Component schema: branch-short, object TYPES: BEGIN OF subbranch_short_commit, sha TYPE string, url TYPE string, END OF subbranch_short_commit. TYPES: BEGIN OF branch_short, name TYPE string, commit TYPE subbranch_short_commit, protected TYPE abap_bool, END OF branch_short. * Component schema: link, object TYPES: BEGIN OF link, href TYPE string, END OF link. * Component schema: pull-request-simple, object TYPES: BEGIN OF subpull_request_simple__links, comments TYPE link, commits TYPE link, statuses TYPE link, html TYPE link, issue TYPE link, review_comments TYPE link, review_comment TYPE link, self TYPE link, END OF subpull_request_simple__links. TYPES: BEGIN OF subpull_request_simple_base, label TYPE string, ref TYPE string, repo TYPE repository, sha TYPE string, user TYPE nullable_simple_user, END OF subpull_request_simple_base. TYPES: BEGIN OF subpull_request_simple_head, label TYPE string, ref TYPE string, repo TYPE repository, sha TYPE string, user TYPE nullable_simple_user, END OF subpull_request_simple_head. TYPES: BEGIN OF pull_request_simple, url TYPE string, id TYPE i, node_id TYPE string, html_url TYPE string, diff_url TYPE string, patch_url TYPE string, issue_url TYPE string, commits_url TYPE string, review_comments_url TYPE string, review_comment_url TYPE string, comments_url TYPE string, statuses_url TYPE string, number TYPE i, state TYPE string, locked TYPE abap_bool, title TYPE string, user TYPE nullable_simple_user, body TYPE string, labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array milestone TYPE nullable_milestone, active_lock_reason TYPE string, created_at TYPE string, updated_at TYPE string, closed_at TYPE string, merged_at TYPE string, merge_commit_sha TYPE string, assignee TYPE nullable_simple_user, assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array requested_reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array requested_teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array head TYPE subpull_request_simple_head, base TYPE subpull_request_simple_base, _links TYPE subpull_request_simple__links, author_association TYPE author_association, draft TYPE abap_bool, END OF pull_request_simple. * Component schema: simple-commit-status, object TYPES: BEGIN OF simple_commit_status, description TYPE string, id TYPE i, node_id TYPE string, state TYPE string, context TYPE string, target_url TYPE string, required TYPE abap_bool, avatar_url TYPE string, url TYPE string, created_at TYPE string, updated_at TYPE string, END OF simple_commit_status. * Component schema: combined-commit-status, object TYPES: BEGIN OF combined_commit_status, state TYPE string, statuses TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array sha TYPE string, total_count TYPE i, repository TYPE minimal_repository, commit_url TYPE string, url TYPE string, END OF combined_commit_status. * Component schema: status, object TYPES: BEGIN OF status, url TYPE string, avatar_url TYPE string, id TYPE i, node_id TYPE string, state TYPE string, description TYPE string, target_url TYPE string, context TYPE string, created_at TYPE string, updated_at TYPE string, creator TYPE nullable_simple_user, END OF status. * Component schema: diff-entry, object TYPES: BEGIN OF diff_entry, sha TYPE string, filename TYPE string, status TYPE string, additions TYPE i, deletions TYPE i, changes TYPE i, blob_url TYPE string, raw_url TYPE string, contents_url TYPE string, patch TYPE string, previous_filename TYPE string, END OF diff_entry. * Component schema: commit-comparison, object TYPES: BEGIN OF commit_comparison, url TYPE string, html_url TYPE string, permalink_url TYPE string, diff_url TYPE string, patch_url TYPE string, base_commit TYPE commit, merge_base_commit TYPE commit, status TYPE string, ahead_by TYPE i, behind_by TYPE i, total_commits TYPE i, commits TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array files TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF commit_comparison. * Component schema: content-reference-attachment, object TYPES: BEGIN OF content_reference_attachment, id TYPE i, title TYPE string, body TYPE string, node_id TYPE string, END OF content_reference_attachment. * Component schema: content-tree, object TYPES: BEGIN OF subcontent_tree__links, git TYPE string, html TYPE string, self TYPE string, END OF subcontent_tree__links. TYPES: BEGIN OF content_tree, type TYPE string, size TYPE i, name TYPE string, path TYPE string, sha TYPE string, url TYPE string, git_url TYPE string, html_url TYPE string, download_url TYPE string, entries TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array _links TYPE subcontent_tree__links, END OF content_tree. * Component schema: content-directory, array TYPES content_directory TYPE string. " array todo * Component schema: content-file, object TYPES: BEGIN OF subcontent_file__links, git TYPE string, html TYPE string, self TYPE string, END OF subcontent_file__links. TYPES: BEGIN OF content_file, type TYPE string, encoding TYPE string, size TYPE i, name TYPE string, path TYPE string, content TYPE string, sha TYPE string, url TYPE string, git_url TYPE string, html_url TYPE string, download_url TYPE string, _links TYPE subcontent_file__links, target TYPE string, submodule_git_url TYPE string, END OF content_file. * Component schema: content-symlink, object TYPES: BEGIN OF subcontent_symlink__links, git TYPE string, html TYPE string, self TYPE string, END OF subcontent_symlink__links. TYPES: BEGIN OF content_symlink, type TYPE string, target TYPE string, size TYPE i, name TYPE string, path TYPE string, sha TYPE string, url TYPE string, git_url TYPE string, html_url TYPE string, download_url TYPE string, _links TYPE subcontent_symlink__links, END OF content_symlink. * Component schema: content-submodule, object TYPES: BEGIN OF subcontent_submodule__links, git TYPE string, html TYPE string, self TYPE string, END OF subcontent_submodule__links. TYPES: BEGIN OF content_submodule, type TYPE string, submodule_git_url TYPE string, size TYPE i, name TYPE string, path TYPE string, sha TYPE string, url TYPE string, git_url TYPE string, html_url TYPE string, download_url TYPE string, _links TYPE subcontent_submodule__links, END OF content_submodule. * Component schema: file-commit, object TYPES: BEGIN OF subsubfile_commit_commit_verif, verified TYPE abap_bool, reason TYPE string, signature TYPE string, payload TYPE string, END OF subsubfile_commit_commit_verif. TYPES: BEGIN OF subsubfile_commit_commit_tree, url TYPE string, sha TYPE string, END OF subsubfile_commit_commit_tree. TYPES: BEGIN OF subsubfile_commit_commit_commi, date TYPE string, name TYPE string, email TYPE string, END OF subsubfile_commit_commit_commi. TYPES: BEGIN OF subsubfile_commit_commit_autho, date TYPE string, name TYPE string, email TYPE string, END OF subsubfile_commit_commit_autho. TYPES: BEGIN OF subfile_commit_commit, sha TYPE string, node_id TYPE string, url TYPE string, html_url TYPE string, author TYPE subsubfile_commit_commit_autho, committer TYPE subsubfile_commit_commit_commi, message TYPE string, tree TYPE subsubfile_commit_commit_tree, parents TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array verification TYPE subsubfile_commit_commit_verif, END OF subfile_commit_commit. TYPES: BEGIN OF subsubfile_commit_content__lin, self TYPE string, git TYPE string, html TYPE string, END OF subsubfile_commit_content__lin. TYPES: BEGIN OF subfile_commit_content, name TYPE string, path TYPE string, sha TYPE string, size TYPE i, url TYPE string, html_url TYPE string, git_url TYPE string, download_url TYPE string, type TYPE string, _links TYPE subsubfile_commit_content__lin, END OF subfile_commit_content. TYPES: BEGIN OF file_commit, content TYPE subfile_commit_content, commit TYPE subfile_commit_commit, END OF file_commit. * Component schema: contributor, object TYPES: BEGIN OF contributor, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, contributions TYPE i, email TYPE string, name TYPE string, END OF contributor. * Component schema: deployment, object TYPES: BEGIN OF deployment, url TYPE string, id TYPE i, node_id TYPE string, sha TYPE string, ref TYPE string, task TYPE string, payload TYPE string, original_environment TYPE string, environment TYPE string, description TYPE string, creator TYPE nullable_simple_user, created_at TYPE string, updated_at TYPE string, statuses_url TYPE string, repository_url TYPE string, transient_environment TYPE abap_bool, production_environment TYPE abap_bool, performed_via_github_app TYPE nullable_integration, END OF deployment. * Component schema: deployment-status, object TYPES: BEGIN OF deployment_status, url TYPE string, id TYPE i, node_id TYPE string, state TYPE string, creator TYPE nullable_simple_user, description TYPE string, environment TYPE string, target_url TYPE string, created_at TYPE string, updated_at TYPE string, deployment_url TYPE string, repository_url TYPE string, environment_url TYPE string, log_url TYPE string, performed_via_github_app TYPE nullable_integration, END OF deployment_status. * Component schema: short-blob, object TYPES: BEGIN OF short_blob, url TYPE string, sha TYPE string, END OF short_blob. * Component schema: blob, object TYPES: BEGIN OF blob, content TYPE string, encoding TYPE string, url TYPE string, sha TYPE string, size TYPE i, node_id TYPE string, highlighted_content TYPE string, END OF blob. * Component schema: git-commit, object TYPES: BEGIN OF subgit_commit_verification, verified TYPE abap_bool, reason TYPE string, signature TYPE string, payload TYPE string, END OF subgit_commit_verification. TYPES: BEGIN OF subgit_commit_tree, sha TYPE string, url TYPE string, END OF subgit_commit_tree. TYPES: BEGIN OF subgit_commit_committer, date TYPE string, email TYPE string, name TYPE string, END OF subgit_commit_committer. TYPES: BEGIN OF subgit_commit_author, date TYPE string, email TYPE string, name TYPE string, END OF subgit_commit_author. TYPES: BEGIN OF git_commit, sha TYPE string, node_id TYPE string, url TYPE string, author TYPE subgit_commit_author, committer TYPE subgit_commit_committer, message TYPE string, tree TYPE subgit_commit_tree, parents TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array verification TYPE subgit_commit_verification, html_url TYPE string, END OF git_commit. * Component schema: git-ref, object TYPES: BEGIN OF subgit_ref_object, type TYPE string, sha TYPE string, url TYPE string, END OF subgit_ref_object. TYPES: BEGIN OF git_ref, ref TYPE string, node_id TYPE string, url TYPE string, object TYPE subgit_ref_object, END OF git_ref. * Component schema: git-tag, object TYPES: BEGIN OF subgit_tag_object, sha TYPE string, type TYPE string, url TYPE string, END OF subgit_tag_object. TYPES: BEGIN OF subgit_tag_tagger, date TYPE string, email TYPE string, name TYPE string, END OF subgit_tag_tagger. TYPES: BEGIN OF git_tag, node_id TYPE string, tag TYPE string, sha TYPE string, url TYPE string, message TYPE string, tagger TYPE subgit_tag_tagger, object TYPE subgit_tag_object, verification TYPE verification, END OF git_tag. * Component schema: git-tree, object TYPES: BEGIN OF git_tree, sha TYPE string, url TYPE string, truncated TYPE abap_bool, tree TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF git_tree. * Component schema: hook-response, object TYPES: BEGIN OF hook_response, code TYPE i, status TYPE string, message TYPE string, END OF hook_response. * Component schema: hook, object TYPES: BEGIN OF subhook_config, email TYPE string, password TYPE string, room TYPE string, subdomain TYPE string, url TYPE webhook_config_url, insecure_ssl TYPE webhook_config_insecure_ssl, content_type TYPE webhook_config_content_type, digest TYPE string, secret TYPE webhook_config_secret, token TYPE string, END OF subhook_config. TYPES: BEGIN OF hook, type TYPE string, id TYPE i, name TYPE string, active TYPE abap_bool, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array config TYPE subhook_config, updated_at TYPE string, created_at TYPE string, url TYPE string, test_url TYPE string, ping_url TYPE string, last_response TYPE hook_response, END OF hook. * Component schema: issue-event-label, object TYPES: BEGIN OF issue_event_label, name TYPE string, color TYPE string, END OF issue_event_label. * Component schema: issue-event-dismissed-review, object TYPES: BEGIN OF issue_event_dismissed_review, state TYPE string, review_id TYPE i, dismissal_message TYPE string, dismissal_commit_id TYPE string, END OF issue_event_dismissed_review. * Component schema: issue-event-milestone, object TYPES: BEGIN OF issue_event_milestone, title TYPE string, END OF issue_event_milestone. * Component schema: issue-event-project-card, object TYPES: BEGIN OF issue_event_project_card, url TYPE string, id TYPE i, project_url TYPE string, project_id TYPE i, column_name TYPE string, previous_column_name TYPE string, END OF issue_event_project_card. * Component schema: issue-event-rename, object TYPES: BEGIN OF issue_event_rename, from TYPE string, to TYPE string, END OF issue_event_rename. * Component schema: issue-event, object TYPES: BEGIN OF issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE nullable_simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, issue TYPE issue_simple, label TYPE issue_event_label, assignee TYPE nullable_simple_user, assigner TYPE nullable_simple_user, review_requester TYPE nullable_simple_user, requested_reviewer TYPE nullable_simple_user, requested_team TYPE team, dismissed_review TYPE issue_event_dismissed_review, milestone TYPE issue_event_milestone, project_card TYPE issue_event_project_card, rename TYPE issue_event_rename, author_association TYPE author_association, lock_reason TYPE string, performed_via_github_app TYPE nullable_integration, END OF issue_event. * Component schema: labeled-issue-event, object TYPES: BEGIN OF sublabeled_issue_event_label, name TYPE string, color TYPE string, END OF sublabeled_issue_event_label. TYPES: BEGIN OF labeled_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, label TYPE sublabeled_issue_event_label, END OF labeled_issue_event. * Component schema: unlabeled-issue-event, object TYPES: BEGIN OF subunlabeled_issue_event_label, name TYPE string, color TYPE string, END OF subunlabeled_issue_event_label. TYPES: BEGIN OF unlabeled_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, label TYPE subunlabeled_issue_event_label, END OF unlabeled_issue_event. * Component schema: assigned-issue-event, object TYPES: BEGIN OF assigned_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE integration, assignee TYPE simple_user, assigner TYPE simple_user, END OF assigned_issue_event. * Component schema: unassigned-issue-event, object TYPES: BEGIN OF unassigned_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, assignee TYPE simple_user, assigner TYPE simple_user, END OF unassigned_issue_event. * Component schema: milestoned-issue-event, object TYPES: BEGIN OF submilestoned_issue_event_mile, title TYPE string, END OF submilestoned_issue_event_mile. TYPES: BEGIN OF milestoned_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, milestone TYPE submilestoned_issue_event_mile, END OF milestoned_issue_event. * Component schema: demilestoned-issue-event, object TYPES: BEGIN OF subdemilestoned_issue_event_mi, title TYPE string, END OF subdemilestoned_issue_event_mi. TYPES: BEGIN OF demilestoned_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, milestone TYPE subdemilestoned_issue_event_mi, END OF demilestoned_issue_event. * Component schema: renamed-issue-event, object TYPES: BEGIN OF subrenamed_issue_event_rename, from TYPE string, to TYPE string, END OF subrenamed_issue_event_rename. TYPES: BEGIN OF renamed_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, rename TYPE subrenamed_issue_event_rename, END OF renamed_issue_event. * Component schema: review-requested-issue-event, object TYPES: BEGIN OF review_requested_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, review_requester TYPE simple_user, requested_team TYPE team, requested_reviewer TYPE simple_user, END OF review_requested_issue_event. * Component schema: review-request-removed-issue-event, object TYPES: BEGIN OF review_request_removed_issue_e, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, review_requester TYPE simple_user, requested_team TYPE team, requested_reviewer TYPE simple_user, END OF review_request_removed_issue_e. * Component schema: review-dismissed-issue-event, object TYPES: BEGIN OF subreview_dismissed_issue_even, state TYPE string, review_id TYPE i, dismissal_message TYPE string, dismissal_commit_id TYPE string, END OF subreview_dismissed_issue_even. TYPES: BEGIN OF review_dismissed_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, dismissed_review TYPE subreview_dismissed_issue_even, END OF review_dismissed_issue_event. * Component schema: locked-issue-event, object TYPES: BEGIN OF locked_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, lock_reason TYPE string, END OF locked_issue_event. * Component schema: added-to-project-issue-event, object TYPES: BEGIN OF subadded_to_project_issue_even, id TYPE i, url TYPE string, project_id TYPE i, project_url TYPE string, column_name TYPE string, previous_column_name TYPE string, END OF subadded_to_project_issue_even. TYPES: BEGIN OF added_to_project_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, project_card TYPE subadded_to_project_issue_even, END OF added_to_project_issue_event. * Component schema: moved-column-in-project-issue-event, object TYPES: BEGIN OF submoved_column_in_project_iss, id TYPE i, url TYPE string, project_id TYPE i, project_url TYPE string, column_name TYPE string, previous_column_name TYPE string, END OF submoved_column_in_project_iss. TYPES: BEGIN OF moved_column_in_project_issue_, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, project_card TYPE submoved_column_in_project_iss, END OF moved_column_in_project_issue_. * Component schema: removed-from-project-issue-event, object TYPES: BEGIN OF subremoved_from_project_issue_, id TYPE i, url TYPE string, project_id TYPE i, project_url TYPE string, column_name TYPE string, previous_column_name TYPE string, END OF subremoved_from_project_issue_. TYPES: BEGIN OF removed_from_project_issue_eve, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, project_card TYPE subremoved_from_project_issue_, END OF removed_from_project_issue_eve. * Component schema: converted-note-to-issue-issue-event, object TYPES: BEGIN OF subconverted_note_to_issue_iss, id TYPE i, url TYPE string, project_id TYPE i, project_url TYPE string, column_name TYPE string, previous_column_name TYPE string, END OF subconverted_note_to_issue_iss. TYPES: BEGIN OF converted_note_to_issue_issue_, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE integration, project_card TYPE subconverted_note_to_issue_iss, END OF converted_note_to_issue_issue_. * Component schema: issue-event-for-issue, string TYPES issue_event_for_issue TYPE string. * Component schema: timeline-comment-event, object TYPES: BEGIN OF timeline_comment_event, event TYPE string, actor TYPE simple_user, id TYPE i, node_id TYPE string, url TYPE string, body TYPE string, body_text TYPE string, body_html TYPE string, html_url TYPE string, user TYPE simple_user, created_at TYPE string, updated_at TYPE string, issue_url TYPE string, author_association TYPE author_association, performed_via_github_app TYPE nullable_integration, reactions TYPE reaction_rollup, END OF timeline_comment_event. * Component schema: timeline-cross-referenced-event, object TYPES: BEGIN OF subtimeline_cross_referenced_e, type TYPE string, issue TYPE issue_simple, END OF subtimeline_cross_referenced_e. TYPES: BEGIN OF timeline_cross_referenced_even, event TYPE string, actor TYPE simple_user, created_at TYPE string, updated_at TYPE string, source TYPE subtimeline_cross_referenced_e, END OF timeline_cross_referenced_even. * Component schema: timeline-committed-event, object TYPES: BEGIN OF subtimeline_committed_event_ve, verified TYPE abap_bool, reason TYPE string, signature TYPE string, payload TYPE string, END OF subtimeline_committed_event_ve. TYPES: BEGIN OF subtimeline_committed_event_tr, sha TYPE string, url TYPE string, END OF subtimeline_committed_event_tr. TYPES: BEGIN OF subtimeline_committed_event_co, date TYPE string, email TYPE string, name TYPE string, END OF subtimeline_committed_event_co. TYPES: BEGIN OF subtimeline_committed_event_au, date TYPE string, email TYPE string, name TYPE string, END OF subtimeline_committed_event_au. TYPES: BEGIN OF timeline_committed_event, event TYPE string, sha TYPE string, node_id TYPE string, url TYPE string, author TYPE subtimeline_committed_event_au, committer TYPE subtimeline_committed_event_co, message TYPE string, tree TYPE subtimeline_committed_event_tr, parents TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array verification TYPE subtimeline_committed_event_ve, html_url TYPE string, END OF timeline_committed_event. * Component schema: timeline-reviewed-event, object TYPES: BEGIN OF subsubtimeline_reviewed_even01, href TYPE string, END OF subsubtimeline_reviewed_even01. TYPES: BEGIN OF subsubtimeline_reviewed_event_, href TYPE string, END OF subsubtimeline_reviewed_event_. TYPES: BEGIN OF subtimeline_reviewed_event__li, html TYPE subsubtimeline_reviewed_event_, pull_request TYPE subsubtimeline_reviewed_even01, END OF subtimeline_reviewed_event__li. TYPES: BEGIN OF timeline_reviewed_event, event TYPE string, id TYPE i, node_id TYPE string, user TYPE simple_user, body TYPE string, state TYPE string, html_url TYPE string, pull_request_url TYPE string, _links TYPE subtimeline_reviewed_event__li, submitted_at TYPE string, commit_id TYPE string, body_html TYPE string, body_text TYPE string, author_association TYPE author_association, END OF timeline_reviewed_event. * Component schema: pull-request-review-comment, object TYPES: BEGIN OF subsubpull_request_review_co02, href TYPE string, END OF subsubpull_request_review_co02. TYPES: BEGIN OF subsubpull_request_review_co01, href TYPE string, END OF subsubpull_request_review_co01. TYPES: BEGIN OF subsubpull_request_review_comm, href TYPE string, END OF subsubpull_request_review_comm. TYPES: BEGIN OF subpull_request_review_comment, self TYPE subsubpull_request_review_comm, html TYPE subsubpull_request_review_co01, pull_request TYPE subsubpull_request_review_co02, END OF subpull_request_review_comment. TYPES: BEGIN OF pull_request_review_comment, url TYPE string, pull_request_review_id TYPE i, id TYPE i, node_id TYPE string, diff_hunk TYPE string, path TYPE string, position TYPE i, original_position TYPE i, commit_id TYPE string, original_commit_id TYPE string, in_reply_to_id TYPE i, user TYPE simple_user, body TYPE string, created_at TYPE string, updated_at TYPE string, html_url TYPE string, pull_request_url TYPE string, author_association TYPE author_association, _links TYPE subpull_request_review_comment, reactions TYPE reaction_rollup, body_html TYPE string, body_text TYPE string, END OF pull_request_review_comment. * Component schema: timeline-line-commented-event, object TYPES: BEGIN OF timeline_line_commented_event, event TYPE string, node_id TYPE string, comments TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF timeline_line_commented_event. * Component schema: timeline-commit-commented-event, object TYPES: BEGIN OF timeline_commit_commented_even, event TYPE string, node_id TYPE string, commit_id TYPE string, comments TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF timeline_commit_commented_even. * Component schema: timeline-assigned-issue-event, object TYPES: BEGIN OF timeline_assigned_issue_event, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, assignee TYPE simple_user, END OF timeline_assigned_issue_event. * Component schema: timeline-unassigned-issue-event, object TYPES: BEGIN OF timeline_unassigned_issue_even, id TYPE i, node_id TYPE string, url TYPE string, actor TYPE simple_user, event TYPE string, commit_id TYPE string, commit_url TYPE string, created_at TYPE string, performed_via_github_app TYPE nullable_integration, assignee TYPE simple_user, END OF timeline_unassigned_issue_even. * Component schema: timeline-issue-events, object TYPES: BEGIN OF timeline_issue_events, dummy_workaround TYPE i, END OF timeline_issue_events. * Component schema: deploy-key, object TYPES: BEGIN OF deploy_key, id TYPE i, key TYPE string, url TYPE string, title TYPE string, verified TYPE abap_bool, created_at TYPE string, read_only TYPE abap_bool, END OF deploy_key. * Component schema: language, object TYPES: BEGIN OF language, dummy_workaround TYPE i, END OF language. * Component schema: license-content, object TYPES: BEGIN OF sublicense_content__links, git TYPE string, html TYPE string, self TYPE string, END OF sublicense_content__links. TYPES: BEGIN OF license_content, name TYPE string, path TYPE string, sha TYPE string, size TYPE i, url TYPE string, html_url TYPE string, git_url TYPE string, download_url TYPE string, type TYPE string, content TYPE string, encoding TYPE string, _links TYPE sublicense_content__links, license TYPE nullable_license_simple, END OF license_content. * Component schema: milestone, object TYPES: BEGIN OF milestone, url TYPE string, html_url TYPE string, labels_url TYPE string, id TYPE i, node_id TYPE string, number TYPE i, state TYPE string, title TYPE string, description TYPE string, creator TYPE nullable_simple_user, open_issues TYPE i, closed_issues TYPE i, created_at TYPE string, updated_at TYPE string, closed_at TYPE string, due_on TYPE string, END OF milestone. * Component schema: pages-source-hash, object TYPES: BEGIN OF pages_source_hash, branch TYPE string, path TYPE string, END OF pages_source_hash. * Component schema: pages-https-certificate, object TYPES: BEGIN OF pages_https_certificate, state TYPE string, description TYPE string, domains TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array expires_at TYPE string, END OF pages_https_certificate. * Component schema: page, object TYPES: BEGIN OF page, url TYPE string, status TYPE string, cname TYPE string, custom_404 TYPE abap_bool, html_url TYPE string, source TYPE pages_source_hash, public TYPE abap_bool, https_certificate TYPE pages_https_certificate, https_enforced TYPE abap_bool, END OF page. * Component schema: page-build, object TYPES: BEGIN OF subpage_build_error, message TYPE string, END OF subpage_build_error. TYPES: BEGIN OF page_build, url TYPE string, status TYPE string, error TYPE subpage_build_error, pusher TYPE nullable_simple_user, commit TYPE string, duration TYPE i, created_at TYPE string, updated_at TYPE string, END OF page_build. * Component schema: page-build-status, object TYPES: BEGIN OF page_build_status, url TYPE string, status TYPE string, END OF page_build_status. * Component schema: repository-pre-receive-hook, object TYPES: BEGIN OF repository_pre_receive_hook, id TYPE i, name TYPE string, enforcement TYPE string, configuration_url TYPE string, END OF repository_pre_receive_hook. * Component schema: team-simple, object TYPES: BEGIN OF team_simple, id TYPE i, node_id TYPE string, url TYPE string, members_url TYPE string, name TYPE string, description TYPE string, permission TYPE string, privacy TYPE string, html_url TYPE string, repositories_url TYPE string, slug TYPE string, ldap_dn TYPE string, END OF team_simple. * Component schema: pull-request, object TYPES: BEGIN OF subpull_request__links, comments TYPE link, commits TYPE link, statuses TYPE link, html TYPE link, issue TYPE link, review_comments TYPE link, review_comment TYPE link, self TYPE link, END OF subpull_request__links. TYPES: BEGIN OF subsubpull_request_base_user, avatar_url TYPE string, events_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, gravatar_id TYPE string, html_url TYPE string, id TYPE i, node_id TYPE string, login TYPE string, organizations_url TYPE string, received_events_url TYPE string, repos_url TYPE string, site_admin TYPE abap_bool, starred_url TYPE string, subscriptions_url TYPE string, type TYPE string, url TYPE string, END OF subsubpull_request_base_user. TYPES: BEGIN OF subsubsubpull_request_base_r01, admin TYPE abap_bool, maintain TYPE abap_bool, push TYPE abap_bool, triage TYPE abap_bool, pull TYPE abap_bool, END OF subsubsubpull_request_base_r01. TYPES: BEGIN OF subsubsubpull_request_base_rep, avatar_url TYPE string, events_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, gravatar_id TYPE string, html_url TYPE string, id TYPE i, node_id TYPE string, login TYPE string, organizations_url TYPE string, received_events_url TYPE string, repos_url TYPE string, site_admin TYPE abap_bool, starred_url TYPE string, subscriptions_url TYPE string, type TYPE string, url TYPE string, END OF subsubsubpull_request_base_rep. TYPES: BEGIN OF subsubpull_request_base_repo, archive_url TYPE string, assignees_url TYPE string, blobs_url TYPE string, branches_url TYPE string, collaborators_url TYPE string, comments_url TYPE string, commits_url TYPE string, compare_url TYPE string, contents_url TYPE string, contributors_url TYPE string, deployments_url TYPE string, description TYPE string, downloads_url TYPE string, events_url TYPE string, fork TYPE abap_bool, forks_url TYPE string, full_name TYPE string, git_commits_url TYPE string, git_refs_url TYPE string, git_tags_url TYPE string, hooks_url TYPE string, html_url TYPE string, id TYPE i, node_id TYPE string, issue_comment_url TYPE string, issue_events_url TYPE string, issues_url TYPE string, keys_url TYPE string, labels_url TYPE string, languages_url TYPE string, merges_url TYPE string, milestones_url TYPE string, name TYPE string, notifications_url TYPE string, owner TYPE subsubsubpull_request_base_rep, private TYPE abap_bool, pulls_url TYPE string, releases_url TYPE string, stargazers_url TYPE string, statuses_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, tags_url TYPE string, teams_url TYPE string, trees_url TYPE string, url TYPE string, clone_url TYPE string, default_branch TYPE string, forks TYPE i, forks_count TYPE i, git_url TYPE string, has_downloads TYPE abap_bool, has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, has_pages TYPE abap_bool, homepage TYPE string, language TYPE string, master_branch TYPE string, archived TYPE abap_bool, disabled TYPE abap_bool, mirror_url TYPE string, open_issues TYPE i, open_issues_count TYPE i, permissions TYPE subsubsubpull_request_base_r01, allow_merge_commit TYPE abap_bool, allow_squash_merge TYPE abap_bool, allow_rebase_merge TYPE abap_bool, license TYPE nullable_license_simple, pushed_at TYPE string, size TYPE i, ssh_url TYPE string, stargazers_count TYPE i, svn_url TYPE string, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array watchers TYPE i, watchers_count TYPE i, created_at TYPE string, updated_at TYPE string, allow_forking TYPE abap_bool, anonymous_access_enabled TYPE abap_bool, END OF subsubpull_request_base_repo. TYPES: BEGIN OF subpull_request_base, label TYPE string, ref TYPE string, repo TYPE subsubpull_request_base_repo, sha TYPE string, user TYPE subsubpull_request_base_user, END OF subpull_request_base. TYPES: BEGIN OF subsubpull_request_head_user, avatar_url TYPE string, events_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, gravatar_id TYPE string, html_url TYPE string, id TYPE i, node_id TYPE string, login TYPE string, organizations_url TYPE string, received_events_url TYPE string, repos_url TYPE string, site_admin TYPE abap_bool, starred_url TYPE string, subscriptions_url TYPE string, type TYPE string, url TYPE string, END OF subsubpull_request_head_user. TYPES: BEGIN OF subsubsubpull_request_head_r02, key TYPE string, name TYPE string, url TYPE string, spdx_id TYPE string, node_id TYPE string, END OF subsubsubpull_request_head_r02. TYPES: BEGIN OF subsubsubpull_request_head_r01, admin TYPE abap_bool, maintain TYPE abap_bool, push TYPE abap_bool, triage TYPE abap_bool, pull TYPE abap_bool, END OF subsubsubpull_request_head_r01. TYPES: BEGIN OF subsubsubpull_request_head_rep, avatar_url TYPE string, events_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, gravatar_id TYPE string, html_url TYPE string, id TYPE i, node_id TYPE string, login TYPE string, organizations_url TYPE string, received_events_url TYPE string, repos_url TYPE string, site_admin TYPE abap_bool, starred_url TYPE string, subscriptions_url TYPE string, type TYPE string, url TYPE string, END OF subsubsubpull_request_head_rep. TYPES: BEGIN OF subsubpull_request_head_repo, archive_url TYPE string, assignees_url TYPE string, blobs_url TYPE string, branches_url TYPE string, collaborators_url TYPE string, comments_url TYPE string, commits_url TYPE string, compare_url TYPE string, contents_url TYPE string, contributors_url TYPE string, deployments_url TYPE string, description TYPE string, downloads_url TYPE string, events_url TYPE string, fork TYPE abap_bool, forks_url TYPE string, full_name TYPE string, git_commits_url TYPE string, git_refs_url TYPE string, git_tags_url TYPE string, hooks_url TYPE string, html_url TYPE string, id TYPE i, node_id TYPE string, issue_comment_url TYPE string, issue_events_url TYPE string, issues_url TYPE string, keys_url TYPE string, labels_url TYPE string, languages_url TYPE string, merges_url TYPE string, milestones_url TYPE string, name TYPE string, notifications_url TYPE string, owner TYPE subsubsubpull_request_head_rep, private TYPE abap_bool, pulls_url TYPE string, releases_url TYPE string, stargazers_url TYPE string, statuses_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, tags_url TYPE string, teams_url TYPE string, trees_url TYPE string, url TYPE string, clone_url TYPE string, default_branch TYPE string, forks TYPE i, forks_count TYPE i, git_url TYPE string, has_downloads TYPE abap_bool, has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, has_pages TYPE abap_bool, homepage TYPE string, language TYPE string, master_branch TYPE string, archived TYPE abap_bool, disabled TYPE abap_bool, mirror_url TYPE string, open_issues TYPE i, open_issues_count TYPE i, permissions TYPE subsubsubpull_request_head_r01, allow_merge_commit TYPE abap_bool, allow_squash_merge TYPE abap_bool, allow_rebase_merge TYPE abap_bool, license TYPE subsubsubpull_request_head_r02, pushed_at TYPE string, size TYPE i, ssh_url TYPE string, stargazers_count TYPE i, svn_url TYPE string, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array watchers TYPE i, watchers_count TYPE i, created_at TYPE string, updated_at TYPE string, allow_forking TYPE abap_bool, anonymous_access_enabled TYPE abap_bool, END OF subsubpull_request_head_repo. TYPES: BEGIN OF subpull_request_head, label TYPE string, ref TYPE string, repo TYPE subsubpull_request_head_repo, sha TYPE string, user TYPE subsubpull_request_head_user, END OF subpull_request_head. TYPES: BEGIN OF pull_request, url TYPE string, id TYPE i, node_id TYPE string, html_url TYPE string, diff_url TYPE string, patch_url TYPE string, issue_url TYPE string, commits_url TYPE string, review_comments_url TYPE string, review_comment_url TYPE string, comments_url TYPE string, statuses_url TYPE string, number TYPE i, state TYPE string, locked TYPE abap_bool, title TYPE string, user TYPE nullable_simple_user, body TYPE string, labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array milestone TYPE nullable_milestone, active_lock_reason TYPE string, created_at TYPE string, updated_at TYPE string, closed_at TYPE string, merged_at TYPE string, merge_commit_sha TYPE string, assignee TYPE nullable_simple_user, assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array requested_reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array requested_teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array head TYPE subpull_request_head, base TYPE subpull_request_base, _links TYPE subpull_request__links, author_association TYPE author_association, draft TYPE abap_bool, merged TYPE abap_bool, mergeable TYPE abap_bool, rebaseable TYPE abap_bool, mergeable_state TYPE string, merged_by TYPE nullable_simple_user, comments TYPE i, review_comments TYPE i, maintainer_can_modify TYPE abap_bool, commits TYPE i, additions TYPE i, deletions TYPE i, changed_files TYPE i, END OF pull_request. * Component schema: legacy-review-comment, object TYPES: BEGIN OF subsublegacy_review_comment_02, href TYPE string, END OF subsublegacy_review_comment_02. TYPES: BEGIN OF subsublegacy_review_comment_01, href TYPE string, END OF subsublegacy_review_comment_01. TYPES: BEGIN OF subsublegacy_review_comment__l, href TYPE string, END OF subsublegacy_review_comment__l. TYPES: BEGIN OF sublegacy_review_comment__link, self TYPE subsublegacy_review_comment__l, html TYPE subsublegacy_review_comment_01, pull_request TYPE subsublegacy_review_comment_02, END OF sublegacy_review_comment__link. TYPES: BEGIN OF sublegacy_review_comment_user, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, END OF sublegacy_review_comment_user. TYPES: BEGIN OF legacy_review_comment, url TYPE string, pull_request_review_id TYPE i, id TYPE i, node_id TYPE string, diff_hunk TYPE string, path TYPE string, position TYPE i, original_position TYPE i, commit_id TYPE string, original_commit_id TYPE string, in_reply_to_id TYPE i, user TYPE sublegacy_review_comment_user, body TYPE string, created_at TYPE string, updated_at TYPE string, html_url TYPE string, pull_request_url TYPE string, author_association TYPE string, _links TYPE sublegacy_review_comment__link, END OF legacy_review_comment. * Component schema: pull-request-merge-result, object TYPES: BEGIN OF pull_request_merge_result, sha TYPE string, merged TYPE abap_bool, message TYPE string, END OF pull_request_merge_result. * Component schema: pull-request-review-request, object TYPES: BEGIN OF pull_request_review_request, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF pull_request_review_request. * Component schema: pull-request-review, object TYPES: BEGIN OF subsubpull_request_review__l01, href TYPE string, END OF subsubpull_request_review__l01. TYPES: BEGIN OF subsubpull_request_review__lin, href TYPE string, END OF subsubpull_request_review__lin. TYPES: BEGIN OF subpull_request_review__links, html TYPE subsubpull_request_review__lin, pull_request TYPE subsubpull_request_review__l01, END OF subpull_request_review__links. TYPES: BEGIN OF pull_request_review, id TYPE i, node_id TYPE string, user TYPE nullable_simple_user, body TYPE string, state TYPE string, html_url TYPE string, pull_request_url TYPE string, _links TYPE subpull_request_review__links, submitted_at TYPE string, commit_id TYPE string, body_html TYPE string, body_text TYPE string, author_association TYPE author_association, END OF pull_request_review. * Component schema: review-comment, object TYPES: BEGIN OF subreview_comment__links, self TYPE link, html TYPE link, pull_request TYPE link, END OF subreview_comment__links. TYPES: BEGIN OF review_comment, url TYPE string, pull_request_review_id TYPE i, id TYPE i, node_id TYPE string, diff_hunk TYPE string, path TYPE string, position TYPE i, original_position TYPE i, commit_id TYPE string, original_commit_id TYPE string, in_reply_to_id TYPE i, user TYPE nullable_simple_user, body TYPE string, created_at TYPE string, updated_at TYPE string, html_url TYPE string, pull_request_url TYPE string, author_association TYPE author_association, _links TYPE subreview_comment__links, body_text TYPE string, body_html TYPE string, reactions TYPE reaction_rollup, side TYPE string, start_side TYPE string, line TYPE i, original_line TYPE i, start_line TYPE i, original_start_line TYPE i, END OF review_comment. * Component schema: release-asset, object TYPES: BEGIN OF release_asset, url TYPE string, browser_download_url TYPE string, id TYPE i, node_id TYPE string, name TYPE string, label TYPE string, state TYPE string, content_type TYPE string, size TYPE i, download_count TYPE i, created_at TYPE string, updated_at TYPE string, uploader TYPE nullable_simple_user, END OF release_asset. * Component schema: release, object TYPES: BEGIN OF release, url TYPE string, html_url TYPE string, assets_url TYPE string, upload_url TYPE string, tarball_url TYPE string, zipball_url TYPE string, id TYPE i, node_id TYPE string, tag_name TYPE string, target_commitish TYPE string, name TYPE string, body TYPE string, draft TYPE abap_bool, prerelease TYPE abap_bool, created_at TYPE string, published_at TYPE string, author TYPE simple_user, assets TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array body_html TYPE string, body_text TYPE string, reactions TYPE reaction_rollup, END OF release. * Component schema: stargazer, object TYPES: BEGIN OF stargazer, starred_at TYPE string, user TYPE nullable_simple_user, END OF stargazer. * Component schema: code-frequency-stat, array TYPES code_frequency_stat TYPE string. " array todo * Component schema: commit-activity, object TYPES: BEGIN OF commit_activity, days TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array total TYPE i, week TYPE i, END OF commit_activity. * Component schema: contributor-activity, object TYPES: BEGIN OF contributor_activity, author TYPE nullable_simple_user, total TYPE i, weeks TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF contributor_activity. * Component schema: participation-stats, object TYPES: BEGIN OF participation_stats, all TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array owner TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF participation_stats. * Component schema: repository-subscription, object TYPES: BEGIN OF repository_subscription, subscribed TYPE abap_bool, ignored TYPE abap_bool, reason TYPE string, created_at TYPE string, url TYPE string, repository_url TYPE string, END OF repository_subscription. * Component schema: tag, object TYPES: BEGIN OF subtag_commit, sha TYPE string, url TYPE string, END OF subtag_commit. TYPES: BEGIN OF tag, name TYPE string, commit TYPE subtag_commit, zipball_url TYPE string, tarball_url TYPE string, node_id TYPE string, END OF tag. * Component schema: topic, object TYPES: BEGIN OF topic, names TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF topic. * Component schema: search-result-text-matches, array TYPES search_result_text_matches TYPE string. " array todo * Component schema: code-search-result-item, object TYPES: BEGIN OF code_search_result_item, name TYPE string, path TYPE string, sha TYPE string, url TYPE string, git_url TYPE string, html_url TYPE string, repository TYPE minimal_repository, score TYPE f, file_size TYPE i, language TYPE string, last_modified_at TYPE string, line_numbers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array text_matches TYPE search_result_text_matches, END OF code_search_result_item. * Component schema: commit-search-result-item, object TYPES: BEGIN OF subsubcommit_search_result_i01, sha TYPE string, url TYPE string, END OF subsubcommit_search_result_i01. TYPES: BEGIN OF subsubcommit_search_result_ite, name TYPE string, email TYPE string, date TYPE string, END OF subsubcommit_search_result_ite. TYPES: BEGIN OF subcommit_search_result_item_c, author TYPE subsubcommit_search_result_ite, committer TYPE nullable_git_user, comment_count TYPE i, message TYPE string, tree TYPE subsubcommit_search_result_i01, url TYPE string, verification TYPE verification, END OF subcommit_search_result_item_c. TYPES: BEGIN OF commit_search_result_item, url TYPE string, sha TYPE string, html_url TYPE string, comments_url TYPE string, commit TYPE subcommit_search_result_item_c, author TYPE nullable_simple_user, committer TYPE nullable_git_user, parents TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array repository TYPE minimal_repository, score TYPE f, node_id TYPE string, text_matches TYPE search_result_text_matches, END OF commit_search_result_item. * Component schema: issue-search-result-item, object TYPES: BEGIN OF subissue_search_result_item_pu, merged_at TYPE string, diff_url TYPE string, html_url TYPE string, patch_url TYPE string, url TYPE string, END OF subissue_search_result_item_pu. TYPES: BEGIN OF issue_search_result_item, url TYPE string, repository_url TYPE string, labels_url TYPE string, comments_url TYPE string, events_url TYPE string, html_url TYPE string, id TYPE i, node_id TYPE string, number TYPE i, title TYPE string, locked TYPE abap_bool, active_lock_reason TYPE string, assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array user TYPE nullable_simple_user, labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array state TYPE string, assignee TYPE nullable_simple_user, milestone TYPE nullable_milestone, comments TYPE i, created_at TYPE string, updated_at TYPE string, closed_at TYPE string, text_matches TYPE search_result_text_matches, pull_request TYPE subissue_search_result_item_pu, body TYPE string, score TYPE f, author_association TYPE author_association, draft TYPE abap_bool, repository TYPE repository, body_html TYPE string, body_text TYPE string, timeline_url TYPE string, performed_via_github_app TYPE nullable_integration, END OF issue_search_result_item. * Component schema: label-search-result-item, object TYPES: BEGIN OF label_search_result_item, id TYPE i, node_id TYPE string, url TYPE string, name TYPE string, color TYPE string, default TYPE abap_bool, description TYPE string, score TYPE f, text_matches TYPE search_result_text_matches, END OF label_search_result_item. * Component schema: repo-search-result-item, object TYPES: BEGIN OF subrepo_search_result_item_per, admin TYPE abap_bool, maintain TYPE abap_bool, push TYPE abap_bool, triage TYPE abap_bool, pull TYPE abap_bool, END OF subrepo_search_result_item_per. TYPES: BEGIN OF repo_search_result_item, id TYPE i, node_id TYPE string, name TYPE string, full_name TYPE string, owner TYPE nullable_simple_user, private TYPE abap_bool, html_url TYPE string, description TYPE string, fork TYPE abap_bool, url TYPE string, created_at TYPE string, updated_at TYPE string, pushed_at TYPE string, homepage TYPE string, size TYPE i, stargazers_count TYPE i, watchers_count TYPE i, language TYPE string, forks_count TYPE i, open_issues_count TYPE i, master_branch TYPE string, default_branch TYPE string, score TYPE f, forks_url TYPE string, keys_url TYPE string, collaborators_url TYPE string, teams_url TYPE string, hooks_url TYPE string, issue_events_url TYPE string, events_url TYPE string, assignees_url TYPE string, branches_url TYPE string, tags_url TYPE string, blobs_url TYPE string, git_tags_url TYPE string, git_refs_url TYPE string, trees_url TYPE string, statuses_url TYPE string, languages_url TYPE string, stargazers_url TYPE string, contributors_url TYPE string, subscribers_url TYPE string, subscription_url TYPE string, commits_url TYPE string, git_commits_url TYPE string, comments_url TYPE string, issue_comment_url TYPE string, contents_url TYPE string, compare_url TYPE string, merges_url TYPE string, archive_url TYPE string, downloads_url TYPE string, issues_url TYPE string, pulls_url TYPE string, milestones_url TYPE string, notifications_url TYPE string, labels_url TYPE string, releases_url TYPE string, deployments_url TYPE string, git_url TYPE string, ssh_url TYPE string, clone_url TYPE string, svn_url TYPE string, forks TYPE i, open_issues TYPE i, watchers TYPE i, topics TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array mirror_url TYPE string, has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_pages TYPE abap_bool, has_wiki TYPE abap_bool, has_downloads TYPE abap_bool, archived TYPE abap_bool, disabled TYPE abap_bool, license TYPE nullable_license_simple, permissions TYPE subrepo_search_result_item_per, text_matches TYPE search_result_text_matches, temp_clone_token TYPE string, allow_merge_commit TYPE abap_bool, allow_squash_merge TYPE abap_bool, allow_rebase_merge TYPE abap_bool, delete_branch_on_merge TYPE abap_bool, allow_forking TYPE abap_bool, END OF repo_search_result_item. * Component schema: topic-search-result-item, object TYPES: BEGIN OF topic_search_result_item, name TYPE string, display_name TYPE string, short_description TYPE string, description TYPE string, created_by TYPE string, released TYPE string, created_at TYPE string, updated_at TYPE string, featured TYPE abap_bool, curated TYPE abap_bool, score TYPE f, repository_count TYPE i, logo_url TYPE string, text_matches TYPE search_result_text_matches, related TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array aliases TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF topic_search_result_item. * Component schema: user-search-result-item, object TYPES: BEGIN OF user_search_result_item, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, received_events_url TYPE string, type TYPE string, score TYPE f, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, events_url TYPE string, public_repos TYPE i, public_gists TYPE i, followers TYPE i, following TYPE i, created_at TYPE string, updated_at TYPE string, name TYPE string, bio TYPE string, email TYPE string, location TYPE string, site_admin TYPE abap_bool, hireable TYPE abap_bool, text_matches TYPE search_result_text_matches, blog TYPE string, company TYPE string, suspended_at TYPE string, END OF user_search_result_item. * Component schema: configuration-status, object TYPES: BEGIN OF configuration_status, status TYPE string, progress TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF configuration_status. * Component schema: maintenance-status, object TYPES: BEGIN OF maintenance_status, status TYPE string, scheduled_time TYPE string, connection_services TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF maintenance_status. * Component schema: enterprise-settings, object TYPES: BEGIN OF subsubenterprise_settings_en14, enabled TYPE abap_bool, tileserver TYPE string, basemap TYPE string, token TYPE string, END OF subsubenterprise_settings_en14. TYPES: BEGIN OF subsubenterprise_settings_en13, enabled TYPE abap_bool, server TYPE string, port TYPE i, encryption TYPE string, username TYPE string, password TYPE string, END OF subsubenterprise_settings_en13. TYPES: BEGIN OF subsubenterprise_settings_en12, enabled TYPE abap_bool, END OF subsubenterprise_settings_en12. TYPES: BEGIN OF subsubenterprise_settings_en11, enabled TYPE abap_bool, server TYPE string, protocol_name TYPE string, END OF subsubenterprise_settings_en11. TYPES: BEGIN OF subsubenterprise_settings_en10, enabled TYPE abap_bool, community TYPE string, END OF subsubenterprise_settings_en10. TYPES: BEGIN OF subsubenterprise_settings_en09, primary_server TYPE string, secondary_server TYPE string, END OF subsubenterprise_settings_en09. TYPES: BEGIN OF subsubenterprise_settings_en08, enabled TYPE abap_bool, address TYPE string, authentication TYPE string, port TYPE string, domain TYPE string, username TYPE string, user_name TYPE string, enable_starttls_auto TYPE abap_bool, password TYPE string, discard_to_noreply_address TYPE abap_bool, support_address TYPE string, support_address_type TYPE string, noreply_address TYPE string, END OF subsubenterprise_settings_en08. TYPES: BEGIN OF subsubenterprise_settings_en07, client_id TYPE string, client_secret TYPE string, organization_name TYPE string, organization_team TYPE string, END OF subsubenterprise_settings_en07. TYPES: BEGIN OF subsubenterprise_settings_en06, sso_url TYPE string, certificate TYPE string, certificate_path TYPE string, issuer TYPE string, idp_initiated_sso TYPE abap_bool, disable_admin_demote TYPE abap_bool, END OF subsubenterprise_settings_en06. TYPES: BEGIN OF subsubenterprise_settings_en05, url TYPE string, END OF subsubenterprise_settings_en05. TYPES: BEGIN OF subsubsubenterprise_settings01, uid TYPE string, name TYPE string, mail TYPE string, key TYPE string, END OF subsubsubenterprise_settings01. TYPES: BEGIN OF subsubsubenterprise_settings_e, user TYPE string, org TYPE string, END OF subsubsubenterprise_settings_e. TYPES: BEGIN OF subsubenterprise_settings_en04, host TYPE string, port TYPE i, base TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array uid TYPE string, bind_dn TYPE string, password TYPE string, method TYPE string, search_strategy TYPE string, user_groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array admin_group TYPE string, virtual_attribute_enabled TYPE abap_bool, recursive_group_search TYPE abap_bool, posix_support TYPE abap_bool, user_sync_emails TYPE abap_bool, user_sync_keys TYPE abap_bool, user_sync_interval TYPE i, team_sync_interval TYPE i, sync_enabled TYPE abap_bool, reconciliation TYPE subsubsubenterprise_settings_e, profile TYPE subsubsubenterprise_settings01, END OF subsubenterprise_settings_en04. TYPES: BEGIN OF subsubenterprise_settings_en03, enabled TYPE abap_bool, cert TYPE string, key TYPE string, END OF subsubenterprise_settings_en03. TYPES: BEGIN OF subsubenterprise_settings_en02, seats TYPE i, evaluation TYPE abap_bool, perpetual TYPE abap_bool, unlimited_seating TYPE abap_bool, support_key TYPE string, ssh_allowed TYPE abap_bool, cluster_support TYPE abap_bool, expire_at TYPE string, END OF subsubenterprise_settings_en02. TYPES: BEGIN OF subsubenterprise_settings_en01, name TYPE string, email TYPE string, uuid TYPE string, secret_key_data TYPE string, public_key_data TYPE string, END OF subsubenterprise_settings_en01. TYPES: BEGIN OF subsubenterprise_settings_ente, enabled TYPE abap_bool, uri TYPE string, END OF subsubenterprise_settings_ente. TYPES: BEGIN OF subenterprise_settings_enterpr, private_mode TYPE abap_bool, public_pages TYPE abap_bool, subdomain_isolation TYPE abap_bool, signup_enabled TYPE abap_bool, github_hostname TYPE string, identicons_host TYPE string, http_proxy TYPE string, auth_mode TYPE string, expire_sessions TYPE abap_bool, admin_password TYPE string, configuration_id TYPE i, configuration_run_count TYPE i, avatar TYPE subsubenterprise_settings_ente, customer TYPE subsubenterprise_settings_en01, license TYPE subsubenterprise_settings_en02, github_ssl TYPE subsubenterprise_settings_en03, ldap TYPE subsubenterprise_settings_en04, cas TYPE subsubenterprise_settings_en05, saml TYPE subsubenterprise_settings_en06, github_oauth TYPE subsubenterprise_settings_en07, smtp TYPE subsubenterprise_settings_en08, ntp TYPE subsubenterprise_settings_en09, timezone TYPE string, snmp TYPE subsubenterprise_settings_en10, syslog TYPE subsubenterprise_settings_en11, assets TYPE string, pages TYPE subsubenterprise_settings_en12, collectd TYPE subsubenterprise_settings_en13, mapping TYPE subsubenterprise_settings_en14, load_balancer TYPE string, END OF subenterprise_settings_enterpr. TYPES: BEGIN OF enterprise_settings, enterprise TYPE subenterprise_settings_enterpr, run_list TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF enterprise_settings. * Component schema: ssh-key, object TYPES: BEGIN OF ssh_key, key TYPE string, pretty_print TYPE string, END OF ssh_key. * Component schema: team-discussion, object TYPES: BEGIN OF team_discussion, author TYPE nullable_simple_user, body TYPE string, body_html TYPE string, body_version TYPE string, comments_count TYPE i, comments_url TYPE string, created_at TYPE string, last_edited_at TYPE string, html_url TYPE string, node_id TYPE string, number TYPE i, pinned TYPE abap_bool, private TYPE abap_bool, team_url TYPE string, title TYPE string, updated_at TYPE string, url TYPE string, reactions TYPE reaction_rollup, END OF team_discussion. * Component schema: team-discussion-comment, object TYPES: BEGIN OF team_discussion_comment, author TYPE nullable_simple_user, body TYPE string, body_html TYPE string, body_version TYPE string, created_at TYPE string, last_edited_at TYPE string, discussion_url TYPE string, html_url TYPE string, node_id TYPE string, number TYPE i, updated_at TYPE string, url TYPE string, reactions TYPE reaction_rollup, END OF team_discussion_comment. * Component schema: team-membership, object TYPES: BEGIN OF team_membership, url TYPE string, role TYPE string, state TYPE string, END OF team_membership. * Component schema: team-project, object TYPES: BEGIN OF subteam_project_permissions, read TYPE abap_bool, write TYPE abap_bool, admin TYPE abap_bool, END OF subteam_project_permissions. TYPES: BEGIN OF team_project, owner_url TYPE string, url TYPE string, html_url TYPE string, columns_url TYPE string, id TYPE i, node_id TYPE string, name TYPE string, body TYPE string, number TYPE i, state TYPE string, creator TYPE simple_user, created_at TYPE string, updated_at TYPE string, organization_permission TYPE string, private TYPE abap_bool, permissions TYPE subteam_project_permissions, END OF team_project. * Component schema: team-2, object TYPES: BEGIN OF subteam_2_parent, id TYPE i, node_id TYPE string, url TYPE string, html_url TYPE string, name TYPE string, slug TYPE string, description TYPE string, privacy TYPE string, permission TYPE string, members_url TYPE string, repositories_url TYPE string, END OF subteam_2_parent. TYPES: BEGIN OF team_2, id TYPE i, node_id TYPE string, url TYPE string, name TYPE string, slug TYPE string, description TYPE string, privacy TYPE string, permission TYPE string, members_url TYPE string, repositories_url TYPE string, parent TYPE subteam_2_parent, END OF team_2. * Component schema: private-user, object TYPES: BEGIN OF subprivate_user_plan, collaborators TYPE i, name TYPE string, space TYPE i, private_repos TYPE i, END OF subprivate_user_plan. TYPES: BEGIN OF private_user, login TYPE string, id TYPE i, node_id TYPE string, avatar_url TYPE string, gravatar_id TYPE string, url TYPE string, html_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, starred_url TYPE string, subscriptions_url TYPE string, organizations_url TYPE string, repos_url TYPE string, events_url TYPE string, received_events_url TYPE string, type TYPE string, site_admin TYPE abap_bool, name TYPE string, company TYPE string, blog TYPE string, location TYPE string, email TYPE string, hireable TYPE abap_bool, bio TYPE string, public_repos TYPE i, public_gists TYPE i, followers TYPE i, following TYPE i, created_at TYPE string, updated_at TYPE string, private_gists TYPE i, total_private_repos TYPE i, owned_private_repos TYPE i, disk_usage TYPE i, collaborators TYPE i, two_factor_authentication TYPE abap_bool, plan TYPE subprivate_user_plan, suspended_at TYPE string, business_plus TYPE abap_bool, ldap_dn TYPE string, END OF private_user. * Component schema: email, object TYPES: BEGIN OF email, email TYPE string, primary TYPE abap_bool, verified TYPE abap_bool, visibility TYPE string, END OF email. * Component schema: gpg-key, object TYPES: BEGIN OF gpg_key, id TYPE i, primary_key_id TYPE i, key_id TYPE string, public_key TYPE string, emails TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array subkeys TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array can_sign TYPE abap_bool, can_encrypt_comms TYPE abap_bool, can_encrypt_storage TYPE abap_bool, can_certify TYPE abap_bool, created_at TYPE string, expires_at TYPE string, raw_key TYPE string, END OF gpg_key. * Component schema: key, object TYPES: BEGIN OF key, key TYPE string, id TYPE i, url TYPE string, title TYPE string, created_at TYPE string, verified TYPE abap_bool, read_only TYPE abap_bool, END OF key. * Component schema: starred-repository, object TYPES: BEGIN OF starred_repository, starred_at TYPE string, repo TYPE repository, END OF starred_repository. * Component schema: hovercard, object TYPES: BEGIN OF hovercard, contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF hovercard. * Component schema: key-simple, object TYPES: BEGIN OF key_simple, id TYPE i, key TYPE string, END OF key_simple. * Component schema: bodyenterprise_admin_create_gl, object TYPES: BEGIN OF subbodyenterprise_admin_create, url TYPE string, content_type TYPE string, secret TYPE string, insecure_ssl TYPE string, END OF subbodyenterprise_admin_create. TYPES: BEGIN OF bodyenterprise_admin_create_gl, name TYPE string, config TYPE subbodyenterprise_admin_create, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, END OF bodyenterprise_admin_create_gl. * Component schema: bodyenterprise_admin_update_gl, object TYPES: BEGIN OF subbodyenterprise_admin_update, url TYPE string, content_type TYPE string, secret TYPE string, insecure_ssl TYPE string, END OF subbodyenterprise_admin_update. TYPES: BEGIN OF bodyenterprise_admin_update_gl, config TYPE subbodyenterprise_admin_update, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, END OF bodyenterprise_admin_update_gl. * Component schema: bodyenterprise_admin_delete_gl, object TYPES: BEGIN OF subbodyenterprise_admin_delete, url TYPE string, content_type TYPE string, secret TYPE string, insecure_ssl TYPE string, END OF subbodyenterprise_admin_delete. TYPES: BEGIN OF bodyenterprise_admin_delete_gl, config TYPE subbodyenterprise_admin_delete, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, END OF bodyenterprise_admin_delete_gl. * Component schema: bodyenterprise_admin_update_ld, object TYPES: BEGIN OF bodyenterprise_admin_update_ld, ldap_dn TYPE string, END OF bodyenterprise_admin_update_ld. * Component schema: bodyenterprise_admin_update_01, object TYPES: BEGIN OF bodyenterprise_admin_update_01, ldap_dn TYPE string, END OF bodyenterprise_admin_update_01. * Component schema: bodyenterprise_admin_create_or, object TYPES: BEGIN OF bodyenterprise_admin_create_or, login TYPE string, admin TYPE string, profile_name TYPE string, END OF bodyenterprise_admin_create_or. * Component schema: bodyenterprise_admin_update_or, object TYPES: BEGIN OF bodyenterprise_admin_update_or, login TYPE string, END OF bodyenterprise_admin_update_or. * Component schema: bodyenterprise_admin_create_pr, object TYPES: BEGIN OF bodyenterprise_admin_create_pr, name TYPE string, image_url TYPE string, END OF bodyenterprise_admin_create_pr. * Component schema: bodyenterprise_admin_update_pr, object TYPES: BEGIN OF bodyenterprise_admin_update_pr, name TYPE string, image_url TYPE string, END OF bodyenterprise_admin_update_pr. * Component schema: bodyenterprise_admin_delete_pr, object TYPES: BEGIN OF bodyenterprise_admin_delete_pr, name TYPE string, image_url TYPE string, END OF bodyenterprise_admin_delete_pr. * Component schema: bodyenterprise_admin_create_01, object TYPES: BEGIN OF subbodyenterprise_admin_crea02, dummy_workaround TYPE i, END OF subbodyenterprise_admin_crea02. TYPES: BEGIN OF subbodyenterprise_admin_crea01, dummy_workaround TYPE i, END OF subbodyenterprise_admin_crea01. TYPES: BEGIN OF bodyenterprise_admin_create_01, name TYPE string, script TYPE string, script_repository TYPE subbodyenterprise_admin_crea01, environment TYPE subbodyenterprise_admin_crea02, enforcement TYPE string, allow_downstream_configuration TYPE abap_bool, END OF bodyenterprise_admin_create_01. * Component schema: bodyenterprise_admin_update_02, object TYPES: BEGIN OF subbodyenterprise_admin_upda02, dummy_workaround TYPE i, END OF subbodyenterprise_admin_upda02. TYPES: BEGIN OF subbodyenterprise_admin_upda01, dummy_workaround TYPE i, END OF subbodyenterprise_admin_upda01. TYPES: BEGIN OF bodyenterprise_admin_update_02, name TYPE string, script TYPE string, script_repository TYPE subbodyenterprise_admin_upda01, environment TYPE subbodyenterprise_admin_upda02, enforcement TYPE string, allow_downstream_configuration TYPE abap_bool, END OF bodyenterprise_admin_update_02. * Component schema: bodyenterprise_admin_delete_01, object TYPES: BEGIN OF subbodyenterprise_admin_dele02, dummy_workaround TYPE i, END OF subbodyenterprise_admin_dele02. TYPES: BEGIN OF subbodyenterprise_admin_dele01, dummy_workaround TYPE i, END OF subbodyenterprise_admin_dele01. TYPES: BEGIN OF bodyenterprise_admin_delete_01, name TYPE string, script TYPE string, script_repository TYPE subbodyenterprise_admin_dele01, environment TYPE subbodyenterprise_admin_dele02, enforcement TYPE string, allow_downstream_configuration TYPE abap_bool, END OF bodyenterprise_admin_delete_01. * Component schema: bodyenterprise_admin_create_us, object TYPES: BEGIN OF bodyenterprise_admin_create_us, login TYPE string, email TYPE string, END OF bodyenterprise_admin_create_us. * Component schema: bodyenterprise_admin_update_us, object TYPES: BEGIN OF bodyenterprise_admin_update_us, login TYPE string, END OF bodyenterprise_admin_update_us. * Component schema: bodyenterprise_admin_delete_us, object TYPES: BEGIN OF bodyenterprise_admin_delete_us, login TYPE string, END OF bodyenterprise_admin_delete_us. * Component schema: bodyenterprise_admin_create_im, object TYPES: BEGIN OF bodyenterprise_admin_create_im, scopes TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyenterprise_admin_create_im. * Component schema: bodyenterprise_admin_delete_im, object TYPES: BEGIN OF bodyenterprise_admin_delete_im, scopes TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyenterprise_admin_delete_im. * Component schema: bodyapps_create_from_manifest, object TYPES: BEGIN OF bodyapps_create_from_manifest, dummy_workaround TYPE i, END OF bodyapps_create_from_manifest. * Component schema: bodyapps_create_installation_a, object TYPES: BEGIN OF bodyapps_create_installation_a, repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array permissions TYPE app_permissions, END OF bodyapps_create_installation_a. * Component schema: bodygists_create, object TYPES: BEGIN OF subbodygists_create_files, dummy_workaround TYPE i, END OF subbodygists_create_files. TYPES: BEGIN OF bodygists_create, description TYPE string, files TYPE subbodygists_create_files, public TYPE string, END OF bodygists_create. * Component schema: bodygists_update, object TYPES: BEGIN OF subbodygists_update_files, dummy_workaround TYPE i, END OF subbodygists_update_files. TYPES: BEGIN OF bodygists_update, description TYPE string, files TYPE subbodygists_update_files, END OF bodygists_update. * Component schema: bodygists_delete, object TYPES: BEGIN OF subbodygists_delete_files, dummy_workaround TYPE i, END OF subbodygists_delete_files. TYPES: BEGIN OF bodygists_delete, description TYPE string, files TYPE subbodygists_delete_files, END OF bodygists_delete. * Component schema: bodygists_create_comment, object TYPES: BEGIN OF bodygists_create_comment, body TYPE string, END OF bodygists_create_comment. * Component schema: bodygists_update_comment, object TYPES: BEGIN OF bodygists_update_comment, body TYPE string, END OF bodygists_update_comment. * Component schema: bodygists_delete_comment, object TYPES: BEGIN OF bodygists_delete_comment, body TYPE string, END OF bodygists_delete_comment. * Component schema: bodymarkdown_render, object TYPES: BEGIN OF bodymarkdown_render, text TYPE string, mode TYPE string, context TYPE string, END OF bodymarkdown_render. * Component schema: bodyactivity_mark_notification, object TYPES: BEGIN OF bodyactivity_mark_notification, last_read_at TYPE string, read TYPE abap_bool, END OF bodyactivity_mark_notification. * Component schema: bodyactivity_set_thread_subscr, object TYPES: BEGIN OF bodyactivity_set_thread_subscr, ignored TYPE abap_bool, END OF bodyactivity_set_thread_subscr. * Component schema: bodyactivity_delete_thread_sub, object TYPES: BEGIN OF bodyactivity_delete_thread_sub, ignored TYPE abap_bool, END OF bodyactivity_delete_thread_sub. * Component schema: bodyorgs_update, object TYPES: BEGIN OF bodyorgs_update, billing_email TYPE string, company TYPE string, email TYPE string, twitter_username TYPE string, location TYPE string, name TYPE string, description TYPE string, has_organization_projects TYPE abap_bool, has_repository_projects TYPE abap_bool, default_repository_permission TYPE string, members_can_create_repositorie TYPE abap_bool, members_can_create_internal_re TYPE abap_bool, members_can_create_private_rep TYPE abap_bool, members_can_create_public_repo TYPE abap_bool, members_allowed_repository_cre TYPE string, blog TYPE string, END OF bodyorgs_update. * Component schema: bodyorgs_create_webhook, object TYPES: BEGIN OF subbodyorgs_create_webhook_con, url TYPE webhook_config_url, content_type TYPE webhook_config_content_type, secret TYPE webhook_config_secret, insecure_ssl TYPE webhook_config_insecure_ssl, username TYPE string, password TYPE string, END OF subbodyorgs_create_webhook_con. TYPES: BEGIN OF bodyorgs_create_webhook, name TYPE string, config TYPE subbodyorgs_create_webhook_con, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, END OF bodyorgs_create_webhook. * Component schema: bodyorgs_update_webhook, object TYPES: BEGIN OF subbodyorgs_update_webhook_con, url TYPE webhook_config_url, content_type TYPE webhook_config_content_type, secret TYPE webhook_config_secret, insecure_ssl TYPE webhook_config_insecure_ssl, END OF subbodyorgs_update_webhook_con. TYPES: BEGIN OF bodyorgs_update_webhook, config TYPE subbodyorgs_update_webhook_con, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, name TYPE string, END OF bodyorgs_update_webhook. * Component schema: bodyorgs_delete_webhook, object TYPES: BEGIN OF subbodyorgs_delete_webhook_con, url TYPE webhook_config_url, content_type TYPE webhook_config_content_type, secret TYPE webhook_config_secret, insecure_ssl TYPE webhook_config_insecure_ssl, END OF subbodyorgs_delete_webhook_con. TYPES: BEGIN OF bodyorgs_delete_webhook, config TYPE subbodyorgs_delete_webhook_con, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, name TYPE string, END OF bodyorgs_delete_webhook. * Component schema: bodyorgs_set_membership_for_us, object TYPES: BEGIN OF bodyorgs_set_membership_for_us, role TYPE string, END OF bodyorgs_set_membership_for_us. * Component schema: bodyorgs_remove_membership_for, object TYPES: BEGIN OF bodyorgs_remove_membership_for, role TYPE string, END OF bodyorgs_remove_membership_for. * Component schema: bodyenterprise_admin_update_03, object TYPES: BEGIN OF bodyenterprise_admin_update_03, enforcement TYPE string, allow_downstream_configuration TYPE abap_bool, END OF bodyenterprise_admin_update_03. * Component schema: bodyenterprise_admin_remove_pr, object TYPES: BEGIN OF bodyenterprise_admin_remove_pr, enforcement TYPE string, allow_downstream_configuration TYPE abap_bool, END OF bodyenterprise_admin_remove_pr. * Component schema: bodyprojects_create_for_org, object TYPES: BEGIN OF bodyprojects_create_for_org, name TYPE string, body TYPE string, END OF bodyprojects_create_for_org. * Component schema: bodyrepos_create_in_org, object TYPES: BEGIN OF bodyrepos_create_in_org, name TYPE string, description TYPE string, homepage TYPE string, private TYPE abap_bool, visibility TYPE string, has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, is_template TYPE abap_bool, team_id TYPE i, auto_init TYPE abap_bool, gitignore_template TYPE string, license_template TYPE string, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, allow_rebase_merge TYPE abap_bool, delete_branch_on_merge TYPE abap_bool, END OF bodyrepos_create_in_org. * Component schema: bodyteams_create, object TYPES: BEGIN OF bodyteams_create, name TYPE string, description TYPE string, maintainers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array repo_names TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array privacy TYPE string, permission TYPE string, parent_team_id TYPE i, END OF bodyteams_create. * Component schema: bodyprojects_update_card, object TYPES: BEGIN OF bodyprojects_update_card, note TYPE string, archived TYPE abap_bool, END OF bodyprojects_update_card. * Component schema: bodyprojects_delete_card, object TYPES: BEGIN OF bodyprojects_delete_card, note TYPE string, archived TYPE abap_bool, END OF bodyprojects_delete_card. * Component schema: bodyprojects_move_card, object TYPES: BEGIN OF bodyprojects_move_card, position TYPE string, column_id TYPE i, END OF bodyprojects_move_card. * Component schema: bodyprojects_update_column, object TYPES: BEGIN OF bodyprojects_update_column, name TYPE string, END OF bodyprojects_update_column. * Component schema: bodyprojects_delete_column, object TYPES: BEGIN OF bodyprojects_delete_column, name TYPE string, END OF bodyprojects_delete_column. * Component schema: bodyprojects_move_column, object TYPES: BEGIN OF bodyprojects_move_column, position TYPE string, END OF bodyprojects_move_column. * Component schema: bodyprojects_update, object TYPES: BEGIN OF bodyprojects_update, name TYPE string, body TYPE string, state TYPE string, organization_permission TYPE string, private TYPE abap_bool, END OF bodyprojects_update. * Component schema: bodyprojects_delete, object TYPES: BEGIN OF bodyprojects_delete, name TYPE string, body TYPE string, state TYPE string, organization_permission TYPE string, private TYPE abap_bool, END OF bodyprojects_delete. * Component schema: bodyprojects_add_collaborator, object TYPES: BEGIN OF bodyprojects_add_collaborator, permission TYPE string, END OF bodyprojects_add_collaborator. * Component schema: bodyprojects_remove_collaborat, object TYPES: BEGIN OF bodyprojects_remove_collaborat, permission TYPE string, END OF bodyprojects_remove_collaborat. * Component schema: bodyprojects_create_column, object TYPES: BEGIN OF bodyprojects_create_column, name TYPE string, END OF bodyprojects_create_column. * Component schema: bodyrepos_update, object TYPES: BEGIN OF bodyrepos_update, name TYPE string, description TYPE string, homepage TYPE string, private TYPE abap_bool, visibility TYPE string, has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, is_template TYPE abap_bool, default_branch TYPE string, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, allow_rebase_merge TYPE abap_bool, delete_branch_on_merge TYPE abap_bool, archived TYPE abap_bool, allow_forking TYPE abap_bool, END OF bodyrepos_update. * Component schema: bodyrepos_delete, object TYPES: BEGIN OF bodyrepos_delete, name TYPE string, description TYPE string, homepage TYPE string, private TYPE abap_bool, visibility TYPE string, has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, is_template TYPE abap_bool, default_branch TYPE string, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, allow_rebase_merge TYPE abap_bool, delete_branch_on_merge TYPE abap_bool, archived TYPE abap_bool, allow_forking TYPE abap_bool, END OF bodyrepos_delete. * Component schema: bodyrepos_update_branch_protec, object TYPES: BEGIN OF subbodyrepos_update_branch_p02, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array apps TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subbodyrepos_update_branch_p02. TYPES: BEGIN OF subsubbodyrepos_update_branch_, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subsubbodyrepos_update_branch_. TYPES: BEGIN OF subbodyrepos_update_branch_p01, dismissal_restrictions TYPE subsubbodyrepos_update_branch_, dismiss_stale_reviews TYPE abap_bool, require_code_owner_reviews TYPE abap_bool, required_approving_review_coun TYPE i, END OF subbodyrepos_update_branch_p01. TYPES: BEGIN OF subbodyrepos_update_branch_pro, strict TYPE abap_bool, contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subbodyrepos_update_branch_pro. TYPES: BEGIN OF bodyrepos_update_branch_protec, required_status_checks TYPE subbodyrepos_update_branch_pro, enforce_admins TYPE abap_bool, required_pull_request_reviews TYPE subbodyrepos_update_branch_p01, restrictions TYPE subbodyrepos_update_branch_p02, required_linear_history TYPE abap_bool, allow_force_pushes TYPE abap_bool, allow_deletions TYPE abap_bool, required_conversation_resoluti TYPE abap_bool, END OF bodyrepos_update_branch_protec. * Component schema: bodyrepos_delete_branch_protec, object TYPES: BEGIN OF subbodyrepos_delete_branch_p02, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array apps TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subbodyrepos_delete_branch_p02. TYPES: BEGIN OF subsubbodyrepos_delete_branch_, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subsubbodyrepos_delete_branch_. TYPES: BEGIN OF subbodyrepos_delete_branch_p01, dismissal_restrictions TYPE subsubbodyrepos_delete_branch_, dismiss_stale_reviews TYPE abap_bool, require_code_owner_reviews TYPE abap_bool, required_approving_review_coun TYPE i, END OF subbodyrepos_delete_branch_p01. TYPES: BEGIN OF subbodyrepos_delete_branch_pro, strict TYPE abap_bool, contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subbodyrepos_delete_branch_pro. TYPES: BEGIN OF bodyrepos_delete_branch_protec, required_status_checks TYPE subbodyrepos_delete_branch_pro, enforce_admins TYPE abap_bool, required_pull_request_reviews TYPE subbodyrepos_delete_branch_p01, restrictions TYPE subbodyrepos_delete_branch_p02, required_linear_history TYPE abap_bool, allow_force_pushes TYPE abap_bool, allow_deletions TYPE abap_bool, required_conversation_resoluti TYPE abap_bool, END OF bodyrepos_delete_branch_protec. * Component schema: bodyrepos_update_pull_request_, object TYPES: BEGIN OF subbodyrepos_update_pull_reque, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subbodyrepos_update_pull_reque. TYPES: BEGIN OF bodyrepos_update_pull_request_, dismissal_restrictions TYPE subbodyrepos_update_pull_reque, dismiss_stale_reviews TYPE abap_bool, require_code_owner_reviews TYPE abap_bool, required_approving_review_coun TYPE i, END OF bodyrepos_update_pull_request_. * Component schema: bodyrepos_delete_pull_request_, object TYPES: BEGIN OF subbodyrepos_delete_pull_reque, users TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subbodyrepos_delete_pull_reque. TYPES: BEGIN OF bodyrepos_delete_pull_request_, dismissal_restrictions TYPE subbodyrepos_delete_pull_reque, dismiss_stale_reviews TYPE abap_bool, require_code_owner_reviews TYPE abap_bool, required_approving_review_coun TYPE i, END OF bodyrepos_delete_pull_request_. * Component schema: bodyrepos_update_status_check_, object TYPES: BEGIN OF bodyrepos_update_status_check_, strict TYPE abap_bool, contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyrepos_update_status_check_. * Component schema: bodyrepos_remove_status_check_, object TYPES: BEGIN OF bodyrepos_remove_status_check_, strict TYPE abap_bool, contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyrepos_remove_status_check_. * Component schema: bodychecks_create, object TYPES: BEGIN OF subbodychecks_create_output, title TYPE string, summary TYPE string, text TYPE string, annotations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array images TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subbodychecks_create_output. TYPES: BEGIN OF bodychecks_create, name TYPE string, head_sha TYPE string, details_url TYPE string, external_id TYPE string, status TYPE string, started_at TYPE string, conclusion TYPE string, completed_at TYPE string, output TYPE subbodychecks_create_output, actions TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodychecks_create. * Component schema: bodychecks_update, object TYPES: BEGIN OF subbodychecks_update_output, title TYPE string, summary TYPE string, text TYPE string, annotations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array images TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF subbodychecks_update_output. TYPES: BEGIN OF bodychecks_update, name TYPE string, details_url TYPE string, external_id TYPE string, started_at TYPE string, status TYPE string, conclusion TYPE string, completed_at TYPE string, output TYPE subbodychecks_update_output, actions TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodychecks_update. * Component schema: bodychecks_create_suite, object TYPES: BEGIN OF bodychecks_create_suite, head_sha TYPE string, END OF bodychecks_create_suite. * Component schema: bodychecks_set_suites_preferen, object TYPES: BEGIN OF bodychecks_set_suites_preferen, auto_trigger_checks TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodychecks_set_suites_preferen. * Component schema: bodyrepos_add_collaborator, object TYPES: BEGIN OF bodyrepos_add_collaborator, permission TYPE string, permissions TYPE string, END OF bodyrepos_add_collaborator. * Component schema: bodyrepos_remove_collaborator, object TYPES: BEGIN OF bodyrepos_remove_collaborator, permission TYPE string, permissions TYPE string, END OF bodyrepos_remove_collaborator. * Component schema: bodyrepos_update_commit_commen, object TYPES: BEGIN OF bodyrepos_update_commit_commen, body TYPE string, END OF bodyrepos_update_commit_commen. * Component schema: bodyrepos_delete_commit_commen, object TYPES: BEGIN OF bodyrepos_delete_commit_commen, body TYPE string, END OF bodyrepos_delete_commit_commen. * Component schema: bodyreactions_create_for_commi, object TYPES: BEGIN OF bodyreactions_create_for_commi, content TYPE string, END OF bodyreactions_create_for_commi. * Component schema: bodyrepos_create_commit_commen, object TYPES: BEGIN OF bodyrepos_create_commit_commen, body TYPE string, path TYPE string, position TYPE i, line TYPE i, END OF bodyrepos_create_commit_commen. * Component schema: bodyapps_create_content_attach, object TYPES: BEGIN OF bodyapps_create_content_attach, title TYPE string, body TYPE string, END OF bodyapps_create_content_attach. * Component schema: bodyrepos_create_or_update_fil, object TYPES: BEGIN OF subbodyrepos_create_or_updat01, name TYPE string, email TYPE string, date TYPE string, END OF subbodyrepos_create_or_updat01. TYPES: BEGIN OF subbodyrepos_create_or_update_, name TYPE string, email TYPE string, date TYPE string, END OF subbodyrepos_create_or_update_. TYPES: BEGIN OF bodyrepos_create_or_update_fil, message TYPE string, content TYPE string, sha TYPE string, branch TYPE string, committer TYPE subbodyrepos_create_or_update_, author TYPE subbodyrepos_create_or_updat01, END OF bodyrepos_create_or_update_fil. * Component schema: bodyrepos_delete_file, object TYPES: BEGIN OF subbodyrepos_delete_file_autho, name TYPE string, email TYPE string, END OF subbodyrepos_delete_file_autho. TYPES: BEGIN OF subbodyrepos_delete_file_commi, name TYPE string, email TYPE string, END OF subbodyrepos_delete_file_commi. TYPES: BEGIN OF bodyrepos_delete_file, message TYPE string, sha TYPE string, branch TYPE string, committer TYPE subbodyrepos_delete_file_commi, author TYPE subbodyrepos_delete_file_autho, END OF bodyrepos_delete_file. * Component schema: bodyrepos_create_deployment, object TYPES: BEGIN OF bodyrepos_create_deployment, ref TYPE string, task TYPE string, auto_merge TYPE abap_bool, required_contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array payload TYPE string, environment TYPE string, description TYPE string, transient_environment TYPE abap_bool, production_environment TYPE abap_bool, END OF bodyrepos_create_deployment. * Component schema: bodyrepos_create_deployment_st, object TYPES: BEGIN OF bodyrepos_create_deployment_st, state TYPE string, target_url TYPE string, log_url TYPE string, description TYPE string, environment TYPE string, environment_url TYPE string, auto_inactive TYPE abap_bool, END OF bodyrepos_create_deployment_st. * Component schema: bodyrepos_create_fork, object TYPES: BEGIN OF bodyrepos_create_fork, organization TYPE string, END OF bodyrepos_create_fork. * Component schema: bodygit_create_blob, object TYPES: BEGIN OF bodygit_create_blob, content TYPE string, encoding TYPE string, END OF bodygit_create_blob. * Component schema: bodygit_create_commit, object TYPES: BEGIN OF subbodygit_create_commit_commi, name TYPE string, email TYPE string, date TYPE string, END OF subbodygit_create_commit_commi. TYPES: BEGIN OF subbodygit_create_commit_autho, name TYPE string, email TYPE string, date TYPE string, END OF subbodygit_create_commit_autho. TYPES: BEGIN OF bodygit_create_commit, message TYPE string, tree TYPE string, parents TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array author TYPE subbodygit_create_commit_autho, committer TYPE subbodygit_create_commit_commi, signature TYPE string, END OF bodygit_create_commit. * Component schema: bodygit_create_ref, object TYPES: BEGIN OF bodygit_create_ref, ref TYPE string, sha TYPE string, key TYPE string, END OF bodygit_create_ref. * Component schema: bodygit_update_ref, object TYPES: BEGIN OF bodygit_update_ref, sha TYPE string, force TYPE abap_bool, END OF bodygit_update_ref. * Component schema: bodygit_delete_ref, object TYPES: BEGIN OF bodygit_delete_ref, sha TYPE string, force TYPE abap_bool, END OF bodygit_delete_ref. * Component schema: bodygit_create_tag, object TYPES: BEGIN OF subbodygit_create_tag_tagger, name TYPE string, email TYPE string, date TYPE string, END OF subbodygit_create_tag_tagger. TYPES: BEGIN OF bodygit_create_tag, tag TYPE string, message TYPE string, object TYPE string, type TYPE string, tagger TYPE subbodygit_create_tag_tagger, END OF bodygit_create_tag. * Component schema: bodygit_create_tree, object TYPES: BEGIN OF bodygit_create_tree, tree TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array base_tree TYPE string, END OF bodygit_create_tree. * Component schema: bodyrepos_create_webhook, object TYPES: BEGIN OF subbodyrepos_create_webhook_co, url TYPE webhook_config_url, content_type TYPE webhook_config_content_type, secret TYPE webhook_config_secret, insecure_ssl TYPE webhook_config_insecure_ssl, token TYPE string, digest TYPE string, END OF subbodyrepos_create_webhook_co. TYPES: BEGIN OF bodyrepos_create_webhook, name TYPE string, config TYPE subbodyrepos_create_webhook_co, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, END OF bodyrepos_create_webhook. * Component schema: bodyrepos_update_webhook, object TYPES: BEGIN OF subbodyrepos_update_webhook_co, url TYPE webhook_config_url, content_type TYPE webhook_config_content_type, secret TYPE webhook_config_secret, insecure_ssl TYPE webhook_config_insecure_ssl, address TYPE string, room TYPE string, END OF subbodyrepos_update_webhook_co. TYPES: BEGIN OF bodyrepos_update_webhook, config TYPE subbodyrepos_update_webhook_co, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array add_events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array remove_events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, END OF bodyrepos_update_webhook. * Component schema: bodyrepos_delete_webhook, object TYPES: BEGIN OF subbodyrepos_delete_webhook_co, url TYPE webhook_config_url, content_type TYPE webhook_config_content_type, secret TYPE webhook_config_secret, insecure_ssl TYPE webhook_config_insecure_ssl, address TYPE string, room TYPE string, END OF subbodyrepos_delete_webhook_co. TYPES: BEGIN OF bodyrepos_delete_webhook, config TYPE subbodyrepos_delete_webhook_co, events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array add_events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array remove_events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array active TYPE abap_bool, END OF bodyrepos_delete_webhook. * Component schema: bodyrepos_update_invitation, object TYPES: BEGIN OF bodyrepos_update_invitation, permissions TYPE string, END OF bodyrepos_update_invitation. * Component schema: bodyrepos_delete_invitation, object TYPES: BEGIN OF bodyrepos_delete_invitation, permissions TYPE string, END OF bodyrepos_delete_invitation. * Component schema: bodyissues_create, object TYPES: BEGIN OF bodyissues_create, title TYPE string, body TYPE string, assignee TYPE string, milestone TYPE string, labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyissues_create. * Component schema: bodyissues_update_comment, object TYPES: BEGIN OF bodyissues_update_comment, body TYPE string, END OF bodyissues_update_comment. * Component schema: bodyissues_delete_comment, object TYPES: BEGIN OF bodyissues_delete_comment, body TYPE string, END OF bodyissues_delete_comment. * Component schema: bodyreactions_create_for_issue, object TYPES: BEGIN OF bodyreactions_create_for_issue, content TYPE string, END OF bodyreactions_create_for_issue. * Component schema: bodyissues_update, object TYPES: BEGIN OF bodyissues_update, title TYPE string, body TYPE string, assignee TYPE string, state TYPE string, milestone TYPE string, labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyissues_update. * Component schema: bodyissues_add_assignees, object TYPES: BEGIN OF bodyissues_add_assignees, assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyissues_add_assignees. * Component schema: bodyissues_remove_assignees, object TYPES: BEGIN OF bodyissues_remove_assignees, assignees TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyissues_remove_assignees. * Component schema: bodyissues_create_comment, object TYPES: BEGIN OF bodyissues_create_comment, body TYPE string, END OF bodyissues_create_comment. * Component schema: bodyissues_lock, object TYPES: BEGIN OF bodyissues_lock, lock_reason TYPE string, END OF bodyissues_lock. * Component schema: bodyissues_unlock, object TYPES: BEGIN OF bodyissues_unlock, lock_reason TYPE string, END OF bodyissues_unlock. * Component schema: bodyreactions_create_for_iss01, object TYPES: BEGIN OF bodyreactions_create_for_iss01, content TYPE string, END OF bodyreactions_create_for_iss01. * Component schema: bodyrepos_create_deploy_key, object TYPES: BEGIN OF bodyrepos_create_deploy_key, title TYPE string, key TYPE string, read_only TYPE abap_bool, END OF bodyrepos_create_deploy_key. * Component schema: bodyissues_create_label, object TYPES: BEGIN OF bodyissues_create_label, name TYPE string, color TYPE string, description TYPE string, END OF bodyissues_create_label. * Component schema: bodyissues_update_label, object TYPES: BEGIN OF bodyissues_update_label, new_name TYPE string, color TYPE string, description TYPE string, END OF bodyissues_update_label. * Component schema: bodyissues_delete_label, object TYPES: BEGIN OF bodyissues_delete_label, new_name TYPE string, color TYPE string, description TYPE string, END OF bodyissues_delete_label. * Component schema: bodyrepos_merge, object TYPES: BEGIN OF bodyrepos_merge, base TYPE string, head TYPE string, commit_message TYPE string, END OF bodyrepos_merge. * Component schema: bodyissues_create_milestone, object TYPES: BEGIN OF bodyissues_create_milestone, title TYPE string, state TYPE string, description TYPE string, due_on TYPE string, END OF bodyissues_create_milestone. * Component schema: bodyissues_update_milestone, object TYPES: BEGIN OF bodyissues_update_milestone, title TYPE string, state TYPE string, description TYPE string, due_on TYPE string, END OF bodyissues_update_milestone. * Component schema: bodyissues_delete_milestone, object TYPES: BEGIN OF bodyissues_delete_milestone, title TYPE string, state TYPE string, description TYPE string, due_on TYPE string, END OF bodyissues_delete_milestone. * Component schema: bodyactivity_mark_repo_notific, object TYPES: BEGIN OF bodyactivity_mark_repo_notific, last_read_at TYPE string, END OF bodyactivity_mark_repo_notific. * Component schema: bodyrepos_create_pages_site, object TYPES: BEGIN OF subbodyrepos_create_pages_site, branch TYPE string, path TYPE string, END OF subbodyrepos_create_pages_site. TYPES: BEGIN OF bodyrepos_create_pages_site, source TYPE subbodyrepos_create_pages_site, END OF bodyrepos_create_pages_site. * Component schema: bodyrepos_update_information_a, object TYPES: BEGIN OF bodyrepos_update_information_a, https_enforced TYPE abap_bool, public TYPE abap_bool, source TYPE string, END OF bodyrepos_update_information_a. * Component schema: bodyrepos_delete_pages_site, object TYPES: BEGIN OF bodyrepos_delete_pages_site, https_enforced TYPE abap_bool, public TYPE abap_bool, source TYPE string, END OF bodyrepos_delete_pages_site. * Component schema: bodyenterprise_admin_update_04, object TYPES: BEGIN OF bodyenterprise_admin_update_04, enforcement TYPE string, END OF bodyenterprise_admin_update_04. * Component schema: bodyenterprise_admin_remove_01, object TYPES: BEGIN OF bodyenterprise_admin_remove_01, enforcement TYPE string, END OF bodyenterprise_admin_remove_01. * Component schema: bodyprojects_create_for_repo, object TYPES: BEGIN OF bodyprojects_create_for_repo, name TYPE string, body TYPE string, END OF bodyprojects_create_for_repo. * Component schema: bodypulls_create, object TYPES: BEGIN OF bodypulls_create, title TYPE string, head TYPE string, base TYPE string, body TYPE string, maintainer_can_modify TYPE abap_bool, draft TYPE abap_bool, issue TYPE i, END OF bodypulls_create. * Component schema: bodypulls_update_review_commen, object TYPES: BEGIN OF bodypulls_update_review_commen, body TYPE string, END OF bodypulls_update_review_commen. * Component schema: bodypulls_delete_review_commen, object TYPES: BEGIN OF bodypulls_delete_review_commen, body TYPE string, END OF bodypulls_delete_review_commen. * Component schema: bodyreactions_create_for_pull_, object TYPES: BEGIN OF bodyreactions_create_for_pull_, content TYPE string, END OF bodyreactions_create_for_pull_. * Component schema: bodypulls_update, object TYPES: BEGIN OF bodypulls_update, title TYPE string, body TYPE string, state TYPE string, base TYPE string, maintainer_can_modify TYPE abap_bool, END OF bodypulls_update. * Component schema: bodypulls_create_review_commen, object TYPES: BEGIN OF bodypulls_create_review_commen, body TYPE string, in_reply_to TYPE i, END OF bodypulls_create_review_commen. * Component schema: bodypulls_create_reply_for_rev, object TYPES: BEGIN OF bodypulls_create_reply_for_rev, body TYPE string, END OF bodypulls_create_reply_for_rev. * Component schema: bodypulls_merge, object TYPES: BEGIN OF bodypulls_merge, commit_title TYPE string, commit_message TYPE string, sha TYPE string, merge_method TYPE string, END OF bodypulls_merge. * Component schema: bodypulls_request_reviewers, object TYPES: BEGIN OF bodypulls_request_reviewers, reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array team_reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodypulls_request_reviewers. * Component schema: bodypulls_remove_requested_rev, object TYPES: BEGIN OF bodypulls_remove_requested_rev, reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array team_reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodypulls_remove_requested_rev. * Component schema: bodypulls_create_review, object TYPES: BEGIN OF bodypulls_create_review, commit_id TYPE string, body TYPE string, event TYPE string, comments TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodypulls_create_review. * Component schema: bodypulls_update_review, object TYPES: BEGIN OF bodypulls_update_review, body TYPE string, END OF bodypulls_update_review. * Component schema: bodypulls_delete_pending_revie, object TYPES: BEGIN OF bodypulls_delete_pending_revie, body TYPE string, END OF bodypulls_delete_pending_revie. * Component schema: bodypulls_dismiss_review, object TYPES: BEGIN OF bodypulls_dismiss_review, message TYPE string, event TYPE string, END OF bodypulls_dismiss_review. * Component schema: bodypulls_submit_review, object TYPES: BEGIN OF bodypulls_submit_review, body TYPE string, event TYPE string, END OF bodypulls_submit_review. * Component schema: bodypulls_update_branch, object TYPES: BEGIN OF bodypulls_update_branch, expected_head_sha TYPE string, END OF bodypulls_update_branch. * Component schema: bodyrepos_create_release, object TYPES: BEGIN OF bodyrepos_create_release, tag_name TYPE string, target_commitish TYPE string, name TYPE string, body TYPE string, draft TYPE abap_bool, prerelease TYPE abap_bool, END OF bodyrepos_create_release. * Component schema: bodyrepos_update_release_asset, object TYPES: BEGIN OF bodyrepos_update_release_asset, name TYPE string, label TYPE string, state TYPE string, END OF bodyrepos_update_release_asset. * Component schema: bodyrepos_delete_release_asset, object TYPES: BEGIN OF bodyrepos_delete_release_asset, name TYPE string, label TYPE string, state TYPE string, END OF bodyrepos_delete_release_asset. * Component schema: bodyrepos_update_release, object TYPES: BEGIN OF bodyrepos_update_release, tag_name TYPE string, target_commitish TYPE string, name TYPE string, body TYPE string, draft TYPE abap_bool, prerelease TYPE abap_bool, END OF bodyrepos_update_release. * Component schema: bodyrepos_delete_release, object TYPES: BEGIN OF bodyrepos_delete_release, tag_name TYPE string, target_commitish TYPE string, name TYPE string, body TYPE string, draft TYPE abap_bool, prerelease TYPE abap_bool, END OF bodyrepos_delete_release. * Component schema: bodyrepos_create_commit_status, object TYPES: BEGIN OF bodyrepos_create_commit_status, state TYPE string, target_url TYPE string, description TYPE string, context TYPE string, END OF bodyrepos_create_commit_status. * Component schema: bodyactivity_set_repo_subscrip, object TYPES: BEGIN OF bodyactivity_set_repo_subscrip, subscribed TYPE abap_bool, ignored TYPE abap_bool, END OF bodyactivity_set_repo_subscrip. * Component schema: bodyactivity_delete_repo_subsc, object TYPES: BEGIN OF bodyactivity_delete_repo_subsc, subscribed TYPE abap_bool, ignored TYPE abap_bool, END OF bodyactivity_delete_repo_subsc. * Component schema: bodyrepos_replace_all_topics, object TYPES: BEGIN OF bodyrepos_replace_all_topics, names TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyrepos_replace_all_topics. * Component schema: bodyrepos_transfer, object TYPES: BEGIN OF bodyrepos_transfer, new_owner TYPE string, team_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF bodyrepos_transfer. * Component schema: bodyrepos_create_using_templat, object TYPES: BEGIN OF bodyrepos_create_using_templat, owner TYPE string, name TYPE string, description TYPE string, include_all_branches TYPE abap_bool, private TYPE abap_bool, END OF bodyrepos_create_using_templat. * Component schema: bodyteams_update, object TYPES: BEGIN OF bodyteams_update, name TYPE string, description TYPE string, privacy TYPE string, permission TYPE string, parent_team_id TYPE i, END OF bodyteams_update. * Component schema: bodyteams_delete, object TYPES: BEGIN OF bodyteams_delete, name TYPE string, description TYPE string, privacy TYPE string, permission TYPE string, parent_team_id TYPE i, END OF bodyteams_delete. * Component schema: bodyteams_create_discussion, object TYPES: BEGIN OF bodyteams_create_discussion, title TYPE string, body TYPE string, private TYPE abap_bool, END OF bodyteams_create_discussion. * Component schema: bodyteams_update_discussion, object TYPES: BEGIN OF bodyteams_update_discussion, title TYPE string, body TYPE string, END OF bodyteams_update_discussion. * Component schema: bodyteams_delete_discussion, object TYPES: BEGIN OF bodyteams_delete_discussion, title TYPE string, body TYPE string, END OF bodyteams_delete_discussion. * Component schema: bodyteams_create_discussion_co, object TYPES: BEGIN OF bodyteams_create_discussion_co, body TYPE string, END OF bodyteams_create_discussion_co. * Component schema: bodyteams_update_discussion_co, object TYPES: BEGIN OF bodyteams_update_discussion_co, body TYPE string, END OF bodyteams_update_discussion_co. * Component schema: bodyteams_delete_discussion_co, object TYPES: BEGIN OF bodyteams_delete_discussion_co, body TYPE string, END OF bodyteams_delete_discussion_co. * Component schema: bodyreactions_create_for_team_, object TYPES: BEGIN OF bodyreactions_create_for_team_, content TYPE string, END OF bodyreactions_create_for_team_. * Component schema: bodyreactions_create_for_tea01, object TYPES: BEGIN OF bodyreactions_create_for_tea01, content TYPE string, END OF bodyreactions_create_for_tea01. * Component schema: bodyteams_add_or_update_member, object TYPES: BEGIN OF bodyteams_add_or_update_member, role TYPE string, END OF bodyteams_add_or_update_member. * Component schema: bodyteams_remove_membership_fo, object TYPES: BEGIN OF bodyteams_remove_membership_fo, role TYPE string, END OF bodyteams_remove_membership_fo. * Component schema: bodyteams_add_or_update_projec, object TYPES: BEGIN OF bodyteams_add_or_update_projec, permission TYPE string, END OF bodyteams_add_or_update_projec. * Component schema: bodyteams_remove_project, object TYPES: BEGIN OF bodyteams_remove_project, permission TYPE string, END OF bodyteams_remove_project. * Component schema: bodyteams_add_or_update_repo_p, object TYPES: BEGIN OF bodyteams_add_or_update_repo_p, permission TYPE string, END OF bodyteams_add_or_update_repo_p. * Component schema: bodyteams_remove_repo, object TYPES: BEGIN OF bodyteams_remove_repo, permission TYPE string, END OF bodyteams_remove_repo. * Component schema: bodyusers_update_authenticated, object TYPES: BEGIN OF bodyusers_update_authenticated, name TYPE string, email TYPE string, blog TYPE string, twitter_username TYPE string, company TYPE string, location TYPE string, hireable TYPE abap_bool, bio TYPE string, END OF bodyusers_update_authenticated. * Component schema: bodyusers_create_gpg_key_for_a, object TYPES: BEGIN OF bodyusers_create_gpg_key_for_a, armored_public_key TYPE string, END OF bodyusers_create_gpg_key_for_a. * Component schema: bodyusers_create_public_ssh_ke, object TYPES: BEGIN OF bodyusers_create_public_ssh_ke, title TYPE string, key TYPE string, END OF bodyusers_create_public_ssh_ke. * Component schema: bodyorgs_update_membership_for, object TYPES: BEGIN OF bodyorgs_update_membership_for, state TYPE string, END OF bodyorgs_update_membership_for. * Component schema: bodyprojects_create_for_authen, object TYPES: BEGIN OF bodyprojects_create_for_authen, name TYPE string, body TYPE string, END OF bodyprojects_create_for_authen. * Component schema: bodyrepos_create_for_authentic, object TYPES: BEGIN OF bodyrepos_create_for_authentic, name TYPE string, description TYPE string, homepage TYPE string, private TYPE abap_bool, has_issues TYPE abap_bool, has_projects TYPE abap_bool, has_wiki TYPE abap_bool, team_id TYPE i, auto_init TYPE abap_bool, gitignore_template TYPE string, license_template TYPE string, allow_squash_merge TYPE abap_bool, allow_merge_commit TYPE abap_bool, allow_rebase_merge TYPE abap_bool, delete_branch_on_merge TYPE abap_bool, has_downloads TYPE abap_bool, is_template TYPE abap_bool, END OF bodyrepos_create_for_authentic. * Component schema: bodyenterprise_admin_suspend_u, object TYPES: BEGIN OF bodyenterprise_admin_suspend_u, reason TYPE string, END OF bodyenterprise_admin_suspend_u. * Component schema: bodyenterprise_admin_unsuspend, object TYPES: BEGIN OF bodyenterprise_admin_unsuspend, reason TYPE string, END OF bodyenterprise_admin_unsuspend. * Component schema: response_meta_root, object TYPES: BEGIN OF response_meta_root, current_user_url TYPE string, current_user_authorizations_ht TYPE string, authorizations_url TYPE string, code_search_url TYPE string, commit_search_url TYPE string, emails_url TYPE string, emojis_url TYPE string, events_url TYPE string, feeds_url TYPE string, followers_url TYPE string, following_url TYPE string, gists_url TYPE string, hub_url TYPE string, issue_search_url TYPE string, issues_url TYPE string, keys_url TYPE string, label_search_url TYPE string, notifications_url TYPE string, organization_url TYPE string, organization_repositories_url TYPE string, organization_teams_url TYPE string, public_gists_url TYPE string, rate_limit_url TYPE string, repository_url TYPE string, repository_search_url TYPE string, current_user_repositories_url TYPE string, starred_url TYPE string, starred_gists_url TYPE string, topic_search_url TYPE string, user_url TYPE string, user_organizations_url TYPE string, user_repositories_url TYPE string, user_search_url TYPE string, END OF response_meta_root. * Component schema: response_enterprise_admin_list_global_w, array TYPES response_enterprise_admin_list TYPE STANDARD TABLE OF global_hook WITH DEFAULT KEY. * Component schema: response_enterprise_admin_list_public_k, array TYPES response_enterprise_admin_li01 TYPE STANDARD TABLE OF public_key_full WITH DEFAULT KEY. * Component schema: response_enterprise_admin_sync_ldap_map, object TYPES: BEGIN OF response_enterprise_admin_sync, status TYPE string, END OF response_enterprise_admin_sync. * Component schema: response_enterprise_admin_sync_ldap_m01, object TYPES: BEGIN OF response_enterprise_admin_sy01, status TYPE string, END OF response_enterprise_admin_sy01. * Component schema: response_enterprise_admin_update_org_na, object TYPES: BEGIN OF response_enterprise_admin_upda, message TYPE string, url TYPE string, END OF response_enterprise_admin_upda. * Component schema: response_enterprise_admin_list_pre_rece, array TYPES response_enterprise_admin_li02 TYPE STANDARD TABLE OF pre_receive_environment WITH DEFAULT KEY. * Component schema: response_enterprise_admin_update_pre_re, object TYPES: BEGIN OF response_enterprise_admin_up01, message TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_enterprise_admin_up01. * Component schema: response_enterprise_admin_delete_pre_re, object TYPES: BEGIN OF response_enterprise_admin_dele, message TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_enterprise_admin_dele. * Component schema: response_enterprise_admin_start_pre_rec, object TYPES: BEGIN OF response_enterprise_admin_star, message TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_enterprise_admin_star. * Component schema: response_enterprise_admin_list_pre_re01, array TYPES response_enterprise_admin_li03 TYPE STANDARD TABLE OF pre_receive_hook WITH DEFAULT KEY. * Component schema: response_enterprise_admin_list_personal, array TYPES response_enterprise_admin_li04 TYPE STANDARD TABLE OF authorization WITH DEFAULT KEY. * Component schema: response_enterprise_admin_update_userna, object TYPES: BEGIN OF response_enterprise_admin_up02, message TYPE string, url TYPE string, END OF response_enterprise_admin_up02. * Component schema: response_apps_list_installations, array TYPES response_apps_list_installatio TYPE STANDARD TABLE OF installation_ghes_2 WITH DEFAULT KEY. * Component schema: response_codes_of_conduct_get_all_codes, array TYPES response_codes_of_conduct_get_ TYPE STANDARD TABLE OF code_of_conduct WITH DEFAULT KEY. * Component schema: response_emojis_get, object TYPES: BEGIN OF response_emojis_get, dummy_workaround TYPE i, END OF response_emojis_get. * Component schema: response_activity_list_public_events, array TYPES response_activity_list_public_ TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_gists_list, array TYPES response_gists_list TYPE STANDARD TABLE OF base_gist WITH DEFAULT KEY. * Component schema: response_gists_list_public, array TYPES response_gists_list_public TYPE STANDARD TABLE OF base_gist WITH DEFAULT KEY. * Component schema: response_gists_list_starred, array TYPES response_gists_list_starred TYPE STANDARD TABLE OF base_gist WITH DEFAULT KEY. * Component schema: response_gists_list_comments, array TYPES response_gists_list_comments TYPE STANDARD TABLE OF gist_comment WITH DEFAULT KEY. * Component schema: response_gists_list_commits, array TYPES response_gists_list_commits TYPE STANDARD TABLE OF gist_commit WITH DEFAULT KEY. * Component schema: response_gists_list_forks, array TYPES response_gists_list_forks TYPE STANDARD TABLE OF gist_simple WITH DEFAULT KEY. * Component schema: response_gists_check_is_starred, object TYPES: BEGIN OF response_gists_check_is_starre, dummy_workaround TYPE i, END OF response_gists_check_is_starre. * Component schema: response_gitignore_get_all_templates, array TYPES response_gitignore_get_all_tem TYPE string. " array todo * Component schema: response_apps_list_repos_accessible_to_, object TYPES: BEGIN OF response_apps_list_repos_acces, total_count TYPE i, repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array repository_selection TYPE string, END OF response_apps_list_repos_acces. * Component schema: response_issues_list, array TYPES response_issues_list TYPE STANDARD TABLE OF issue WITH DEFAULT KEY. * Component schema: response_licenses_get_all_commonly_used, array TYPES response_licenses_get_all_comm TYPE STANDARD TABLE OF license_simple WITH DEFAULT KEY. * Component schema: response_activity_list_public_events_fo, array TYPES response_activity_list_publi01 TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_activity_list_notifications_fo, array TYPES response_activity_list_notific TYPE STANDARD TABLE OF thread WITH DEFAULT KEY. * Component schema: response_activity_mark_notifications_as, object TYPES: BEGIN OF response_activity_mark_notific, message TYPE string, END OF response_activity_mark_notific. * Component schema: response_orgs_list, array TYPES response_orgs_list TYPE STANDARD TABLE OF organization_simple WITH DEFAULT KEY. * Component schema: response_activity_list_public_org_event, array TYPES response_activity_list_publi02 TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_orgs_list_webhooks, array TYPES response_orgs_list_webhooks TYPE STANDARD TABLE OF org_hook WITH DEFAULT KEY. * Component schema: response_orgs_list_app_installations, object TYPES: BEGIN OF response_orgs_list_app_install, total_count TYPE i, installations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_orgs_list_app_install. * Component schema: response_issues_list_for_org, array TYPES response_issues_list_for_org TYPE STANDARD TABLE OF issue WITH DEFAULT KEY. * Component schema: response_orgs_list_members, array TYPES response_orgs_list_members TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_orgs_list_outside_collaborator, array TYPES response_orgs_list_outside_col TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_orgs_convert_member_to_outside, object TYPES: BEGIN OF response_orgs_convert_member_t, dummy_workaround TYPE i, END OF response_orgs_convert_member_t. * Component schema: response_orgs_remove_outside_collaborat, object TYPES: BEGIN OF response_orgs_remove_outside_c, message TYPE string, documentation_url TYPE string, END OF response_orgs_remove_outside_c. * Component schema: response_enterprise_admin_list_pre_re02, array TYPES response_enterprise_admin_li05 TYPE STANDARD TABLE OF org_pre_receive_hook WITH DEFAULT KEY. * Component schema: response_projects_list_for_org, array TYPES response_projects_list_for_org TYPE STANDARD TABLE OF project WITH DEFAULT KEY. * Component schema: response_orgs_list_public_members, array TYPES response_orgs_list_public_memb TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_repos_list_for_org, array TYPES response_repos_list_for_org TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY. * Component schema: response_teams_list, array TYPES response_teams_list TYPE STANDARD TABLE OF team WITH DEFAULT KEY. * Component schema: response_projects_delete_card, object TYPES: BEGIN OF response_projects_delete_card, message TYPE string, documentation_url TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_projects_delete_card. * Component schema: response_projects_move_card, object TYPES: BEGIN OF response_projects_move_card, dummy_workaround TYPE i, END OF response_projects_move_card. * Component schema: response_projects_move_card, object TYPES: BEGIN OF response_projects_move_card01, message TYPE string, documentation_url TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_projects_move_card01. * Component schema: response_projects_move_card, object TYPES: BEGIN OF response_projects_move_card02, code TYPE string, message TYPE string, documentation_url TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_projects_move_card02. * Component schema: response_projects_list_cards, array TYPES response_projects_list_cards TYPE STANDARD TABLE OF project_card WITH DEFAULT KEY. * Component schema: response_projects_create_card, object TYPES: BEGIN OF response_projects_create_card, code TYPE string, message TYPE string, documentation_url TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_projects_create_card. * Component schema: response_projects_move_column, object TYPES: BEGIN OF response_projects_move_column, dummy_workaround TYPE i, END OF response_projects_move_column. * Component schema: response_projects_update, object TYPES: BEGIN OF response_projects_update, message TYPE string, documentation_url TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_projects_update. * Component schema: response_projects_delete, object TYPES: BEGIN OF response_projects_delete, message TYPE string, documentation_url TYPE string, errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_projects_delete. * Component schema: response_projects_list_collaborators, array TYPES response_projects_list_collabo TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_projects_list_columns, array TYPES response_projects_list_columns TYPE STANDARD TABLE OF project_column WITH DEFAULT KEY. * Component schema: response_repos_delete, object TYPES: BEGIN OF response_repos_delete, message TYPE string, documentation_url TYPE string, END OF response_repos_delete. * Component schema: response_issues_list_assignees, array TYPES response_issues_list_assignees TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_repos_list_branches, array TYPES response_repos_list_branches TYPE STANDARD TABLE OF short_branch WITH DEFAULT KEY. * Component schema: response_repos_get_all_status_check_con, array TYPES response_repos_get_all_status_ TYPE string. " array todo * Component schema: response_repos_add_status_check_context, array TYPES response_repos_add_status_chec TYPE string. " array todo * Component schema: response_repos_set_status_check_context, array TYPES response_repos_set_status_chec TYPE string. " array todo * Component schema: response_repos_remove_status_check_cont, array TYPES response_repos_remove_status_c TYPE string. " array todo * Component schema: response_repos_get_apps_with_access_to_, array TYPES response_repos_get_apps_with_a TYPE STANDARD TABLE OF integration WITH DEFAULT KEY. * Component schema: response_repos_add_app_access_restricti, array TYPES response_repos_add_app_access_ TYPE STANDARD TABLE OF integration WITH DEFAULT KEY. * Component schema: response_repos_set_app_access_restricti, array TYPES response_repos_set_app_access_ TYPE STANDARD TABLE OF integration WITH DEFAULT KEY. * Component schema: response_repos_remove_app_access_restri, array TYPES response_repos_remove_app_acce TYPE STANDARD TABLE OF integration WITH DEFAULT KEY. * Component schema: response_repos_get_teams_with_access_to, array TYPES response_repos_get_teams_with_ TYPE STANDARD TABLE OF team WITH DEFAULT KEY. * Component schema: response_repos_add_team_access_restrict, array TYPES response_repos_add_team_access TYPE STANDARD TABLE OF team WITH DEFAULT KEY. * Component schema: response_repos_set_team_access_restrict, array TYPES response_repos_set_team_access TYPE STANDARD TABLE OF team WITH DEFAULT KEY. * Component schema: response_repos_remove_team_access_restr, array TYPES response_repos_remove_team_acc TYPE STANDARD TABLE OF team WITH DEFAULT KEY. * Component schema: response_repos_get_users_with_access_to, array TYPES response_repos_get_users_with_ TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_repos_add_user_access_restrict, array TYPES response_repos_add_user_access TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_repos_set_user_access_restrict, array TYPES response_repos_set_user_access TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_repos_remove_user_access_restr, array TYPES response_repos_remove_user_acc TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_checks_list_annotations, array TYPES response_checks_list_annotatio TYPE STANDARD TABLE OF check_annotation WITH DEFAULT KEY. * Component schema: response_checks_list_for_suite, object TYPES: BEGIN OF response_checks_list_for_suite, total_count TYPE i, check_runs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_checks_list_for_suite. * Component schema: response_checks_rerequest_suite, object TYPES: BEGIN OF response_checks_rerequest_suit, dummy_workaround TYPE i, END OF response_checks_rerequest_suit. * Component schema: response_repos_list_collaborators, array TYPES response_repos_list_collaborat TYPE STANDARD TABLE OF collaborator WITH DEFAULT KEY. * Component schema: response_repos_list_commit_comments_for, array TYPES response_repos_list_commit_com TYPE STANDARD TABLE OF commit_comment WITH DEFAULT KEY. * Component schema: response_reactions_list_for_commit_comm, array TYPES response_reactions_list_for_co TYPE STANDARD TABLE OF reaction WITH DEFAULT KEY. * Component schema: response_repos_list_commits, array TYPES response_repos_list_commits TYPE STANDARD TABLE OF commit WITH DEFAULT KEY. * Component schema: response_repos_list_branches_for_head_c, array TYPES response_repos_list_branches_f TYPE STANDARD TABLE OF branch_short WITH DEFAULT KEY. * Component schema: response_repos_list_comments_for_commit, array TYPES response_repos_list_comments_f TYPE STANDARD TABLE OF commit_comment WITH DEFAULT KEY. * Component schema: response_repos_list_pull_requests_assoc, array TYPES response_repos_list_pull_reque TYPE STANDARD TABLE OF pull_request_simple WITH DEFAULT KEY. * Component schema: response_checks_list_for_ref, object TYPES: BEGIN OF response_checks_list_for_ref, total_count TYPE i, check_runs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_checks_list_for_ref. * Component schema: response_checks_list_suites_for_ref, object TYPES: BEGIN OF response_checks_list_suites_fo, total_count TYPE i, check_suites TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_checks_list_suites_fo. * Component schema: response_repos_list_commit_statuses_for, array TYPES response_repos_list_commit_sta TYPE STANDARD TABLE OF status WITH DEFAULT KEY. * Component schema: response_repos_list_contributors, array TYPES response_repos_list_contributo TYPE STANDARD TABLE OF contributor WITH DEFAULT KEY. * Component schema: response_repos_list_deployments, array TYPES response_repos_list_deployment TYPE STANDARD TABLE OF deployment WITH DEFAULT KEY. * Component schema: response_repos_create_deployment, object TYPES: BEGIN OF response_repos_create_deployme, message TYPE string, END OF response_repos_create_deployme. * Component schema: response_repos_list_deployment_statuses, array TYPES response_repos_list_deployme01 TYPE STANDARD TABLE OF deployment_status WITH DEFAULT KEY. * Component schema: response_activity_list_repo_events, array TYPES response_activity_list_repo_ev TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_repos_list_forks, array TYPES response_repos_list_forks TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY. * Component schema: response_git_list_matching_refs, array TYPES response_git_list_matching_ref TYPE STANDARD TABLE OF git_ref WITH DEFAULT KEY. * Component schema: response_repos_list_webhooks, array TYPES response_repos_list_webhooks TYPE STANDARD TABLE OF hook WITH DEFAULT KEY. * Component schema: response_repos_list_invitations, array TYPES response_repos_list_invitation TYPE STANDARD TABLE OF repository_invitation WITH DEFAULT KEY. * Component schema: response_issues_list_for_repo, array TYPES response_issues_list_for_repo TYPE STANDARD TABLE OF issue_simple WITH DEFAULT KEY. * Component schema: response_issues_list_comments_for_repo, array TYPES response_issues_list_comments_ TYPE STANDARD TABLE OF issue_comment WITH DEFAULT KEY. * Component schema: response_reactions_list_for_issue_comme, array TYPES response_reactions_list_for_is TYPE STANDARD TABLE OF reaction WITH DEFAULT KEY. * Component schema: response_issues_list_events_for_repo, array TYPES response_issues_list_events_fo TYPE STANDARD TABLE OF issue_event WITH DEFAULT KEY. * Component schema: response_issues_list_comments, array TYPES response_issues_list_comments TYPE STANDARD TABLE OF issue_comment WITH DEFAULT KEY. * Component schema: response_issues_list_events, array TYPES response_issues_list_events TYPE STANDARD TABLE OF issue_event_for_issue WITH DEFAULT KEY. * Component schema: response_issues_list_labels_on_issue, array TYPES response_issues_list_labels_on TYPE STANDARD TABLE OF label WITH DEFAULT KEY. * Component schema: response_issues_add_labels, array TYPES response_issues_add_labels TYPE STANDARD TABLE OF label WITH DEFAULT KEY. * Component schema: response_issues_set_labels, array TYPES response_issues_set_labels TYPE STANDARD TABLE OF label WITH DEFAULT KEY. * Component schema: response_issues_remove_label, array TYPES response_issues_remove_label TYPE STANDARD TABLE OF label WITH DEFAULT KEY. * Component schema: response_reactions_list_for_issue, array TYPES response_reactions_list_for_01 TYPE STANDARD TABLE OF reaction WITH DEFAULT KEY. * Component schema: response_issues_list_events_for_timelin, array TYPES response_issues_list_events_01 TYPE STANDARD TABLE OF timeline_issue_events WITH DEFAULT KEY. * Component schema: response_repos_list_deploy_keys, array TYPES response_repos_list_deploy_key TYPE STANDARD TABLE OF deploy_key WITH DEFAULT KEY. * Component schema: response_issues_list_labels_for_repo, array TYPES response_issues_list_labels_fo TYPE STANDARD TABLE OF label WITH DEFAULT KEY. * Component schema: response_issues_list_milestones, array TYPES response_issues_list_milestone TYPE STANDARD TABLE OF milestone WITH DEFAULT KEY. * Component schema: response_issues_list_labels_for_milesto, array TYPES response_issues_list_labels_01 TYPE STANDARD TABLE OF label WITH DEFAULT KEY. * Component schema: response_activity_list_repo_notificatio, array TYPES response_activity_list_repo_no TYPE STANDARD TABLE OF thread WITH DEFAULT KEY. * Component schema: response_activity_mark_repo_notificatio, object TYPES: BEGIN OF response_activity_mark_repo_no, message TYPE string, url TYPE string, END OF response_activity_mark_repo_no. * Component schema: response_repos_list_pages_builds, array TYPES response_repos_list_pages_buil TYPE STANDARD TABLE OF page_build WITH DEFAULT KEY. * Component schema: response_enterprise_admin_list_pre_re03, array TYPES response_enterprise_admin_li06 TYPE STANDARD TABLE OF repository_pre_receive_hook WITH DEFAULT KEY. * Component schema: response_projects_list_for_repo, array TYPES response_projects_list_for_rep TYPE STANDARD TABLE OF project WITH DEFAULT KEY. * Component schema: response_pulls_list, array TYPES response_pulls_list TYPE STANDARD TABLE OF pull_request_simple WITH DEFAULT KEY. * Component schema: response_pulls_list_review_comments_for, array TYPES response_pulls_list_review_com TYPE STANDARD TABLE OF pull_request_review_comment WITH DEFAULT KEY. * Component schema: response_reactions_list_for_pull_reques, array TYPES response_reactions_list_for_pu TYPE STANDARD TABLE OF reaction WITH DEFAULT KEY. * Component schema: response_pulls_list_review_comments, array TYPES response_pulls_list_review_c01 TYPE STANDARD TABLE OF pull_request_review_comment WITH DEFAULT KEY. * Component schema: response_pulls_list_commits, array TYPES response_pulls_list_commits TYPE STANDARD TABLE OF commit WITH DEFAULT KEY. * Component schema: response_pulls_list_files, array TYPES response_pulls_list_files TYPE STANDARD TABLE OF diff_entry WITH DEFAULT KEY. * Component schema: response_pulls_merge, object TYPES: BEGIN OF response_pulls_merge, message TYPE string, documentation_url TYPE string, END OF response_pulls_merge. * Component schema: response_pulls_merge, object TYPES: BEGIN OF response_pulls_merge01, message TYPE string, documentation_url TYPE string, END OF response_pulls_merge01. * Component schema: response_pulls_list_reviews, array TYPES response_pulls_list_reviews TYPE STANDARD TABLE OF pull_request_review WITH DEFAULT KEY. * Component schema: response_pulls_list_comments_for_review, array TYPES response_pulls_list_comments_f TYPE STANDARD TABLE OF review_comment WITH DEFAULT KEY. * Component schema: response_pulls_update_branch, object TYPES: BEGIN OF response_pulls_update_branch, message TYPE string, url TYPE string, END OF response_pulls_update_branch. * Component schema: response_repos_list_releases, array TYPES response_repos_list_releases TYPE STANDARD TABLE OF release WITH DEFAULT KEY. * Component schema: response_repos_list_release_assets, array TYPES response_repos_list_release_as TYPE STANDARD TABLE OF release_asset WITH DEFAULT KEY. * Component schema: response_repos_get_code_frequency_stats, array TYPES response_repos_get_code_freque TYPE STANDARD TABLE OF code_frequency_stat WITH DEFAULT KEY. * Component schema: response_repos_get_commit_activity_stat, array TYPES response_repos_get_commit_acti TYPE STANDARD TABLE OF commit_activity WITH DEFAULT KEY. * Component schema: response_repos_get_contributors_stats, array TYPES response_repos_get_contributor TYPE STANDARD TABLE OF contributor_activity WITH DEFAULT KEY. * Component schema: response_repos_get_punch_card_stats, array TYPES response_repos_get_punch_card_ TYPE STANDARD TABLE OF code_frequency_stat WITH DEFAULT KEY. * Component schema: response_activity_list_watchers_for_rep, array TYPES response_activity_list_watcher TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_repos_list_tags, array TYPES response_repos_list_tags TYPE STANDARD TABLE OF tag WITH DEFAULT KEY. * Component schema: response_repos_list_teams, array TYPES response_repos_list_teams TYPE STANDARD TABLE OF team WITH DEFAULT KEY. * Component schema: response_repos_list_public, array TYPES response_repos_list_public TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY. * Component schema: response_search_code, object TYPES: BEGIN OF response_search_code, total_count TYPE i, incomplete_results TYPE abap_bool, items TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_search_code. * Component schema: response_search_commits, object TYPES: BEGIN OF response_search_commits, total_count TYPE i, incomplete_results TYPE abap_bool, items TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_search_commits. * Component schema: response_search_issues_and_pull_request, object TYPES: BEGIN OF response_search_issues_and_pul, total_count TYPE i, incomplete_results TYPE abap_bool, items TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_search_issues_and_pul. * Component schema: response_search_labels, object TYPES: BEGIN OF response_search_labels, total_count TYPE i, incomplete_results TYPE abap_bool, items TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_search_labels. * Component schema: response_search_repos, object TYPES: BEGIN OF response_search_repos, total_count TYPE i, incomplete_results TYPE abap_bool, items TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_search_repos. * Component schema: response_search_topics, object TYPES: BEGIN OF response_search_topics, total_count TYPE i, incomplete_results TYPE abap_bool, items TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_search_topics. * Component schema: response_search_users, object TYPES: BEGIN OF response_search_users, total_count TYPE i, incomplete_results TYPE abap_bool, items TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_search_users. * Component schema: response_enterprise_admin_get_all_autho, array TYPES response_enterprise_admin_get_ TYPE STANDARD TABLE OF ssh_key WITH DEFAULT KEY. * Component schema: response_enterprise_admin_add_authorize, array TYPES response_enterprise_admin_add_ TYPE STANDARD TABLE OF ssh_key WITH DEFAULT KEY. * Component schema: response_enterprise_admin_remove_author, array TYPES response_enterprise_admin_remo TYPE STANDARD TABLE OF ssh_key WITH DEFAULT KEY. * Component schema: response_teams_list_discussions, array TYPES response_teams_list_discussion TYPE STANDARD TABLE OF team_discussion WITH DEFAULT KEY. * Component schema: response_teams_list_discussion_comments, array TYPES response_teams_list_discussi01 TYPE STANDARD TABLE OF team_discussion_comment WITH DEFAULT KEY. * Component schema: response_reactions_list_for_team_discus, array TYPES response_reactions_list_for_te TYPE STANDARD TABLE OF reaction WITH DEFAULT KEY. * Component schema: response_reactions_list_for_team_disc01, array TYPES response_reactions_list_for_02 TYPE STANDARD TABLE OF reaction WITH DEFAULT KEY. * Component schema: response_teams_list_members, array TYPES response_teams_list_members TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_teams_list_projects, array TYPES response_teams_list_projects TYPE STANDARD TABLE OF team_project WITH DEFAULT KEY. * Component schema: response_teams_add_or_update_project_pe, object TYPES: BEGIN OF response_teams_add_or_update_p, message TYPE string, documentation_url TYPE string, END OF response_teams_add_or_update_p. * Component schema: response_teams_list_repos, array TYPES response_teams_list_repos TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY. * Component schema: response_teams_list_child, array TYPES response_teams_list_child TYPE STANDARD TABLE OF team_2 WITH DEFAULT KEY. * Component schema: response_users_list_emails_for_authenti, array TYPES response_users_list_emails_for TYPE STANDARD TABLE OF email WITH DEFAULT KEY. * Component schema: response_users_add_email_for_authentica, array TYPES response_users_add_email_for_a TYPE STANDARD TABLE OF email WITH DEFAULT KEY. * Component schema: response_users_list_followers_for_authe, array TYPES response_users_list_followers_ TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_users_list_followed_by_authent, array TYPES response_users_list_followed_b TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_users_list_gpg_keys_for_authen, array TYPES response_users_list_gpg_keys_f TYPE STANDARD TABLE OF gpg_key WITH DEFAULT KEY. * Component schema: response_apps_list_installations_for_au, object TYPES: BEGIN OF response_apps_list_installat01, total_count TYPE i, installations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_apps_list_installat01. * Component schema: response_apps_list_installation_repos_f, object TYPES: BEGIN OF response_apps_list_installat02, total_count TYPE i, repository_selection TYPE string, repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array END OF response_apps_list_installat02. * Component schema: response_issues_list_for_authenticated_, array TYPES response_issues_list_for_authe TYPE STANDARD TABLE OF issue WITH DEFAULT KEY. * Component schema: response_users_list_public_ssh_keys_for, array TYPES response_users_list_public_ssh TYPE STANDARD TABLE OF key WITH DEFAULT KEY. * Component schema: response_orgs_list_memberships_for_auth, array TYPES response_orgs_list_memberships TYPE STANDARD TABLE OF org_membership WITH DEFAULT KEY. * Component schema: response_orgs_list_for_authenticated_us, array TYPES response_orgs_list_for_authent TYPE STANDARD TABLE OF organization_simple WITH DEFAULT KEY. * Component schema: response_users_list_public_emails_for_a, array TYPES response_users_list_public_ema TYPE STANDARD TABLE OF email WITH DEFAULT KEY. * Component schema: response_repos_list_for_authenticated_u, array TYPES response_repos_list_for_authen TYPE STANDARD TABLE OF repository WITH DEFAULT KEY. * Component schema: response_repos_list_invitations_for_aut, array TYPES response_repos_list_invitati01 TYPE STANDARD TABLE OF repository_invitation WITH DEFAULT KEY. * Component schema: response_activity_list_repos_starred_by, array TYPES response_activity_list_repos_s TYPE STANDARD TABLE OF repository WITH DEFAULT KEY. * Component schema: response_activity_list_watched_repos_fo, array TYPES response_activity_list_watched TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY. * Component schema: response_teams_list_for_authenticated_u, array TYPES response_teams_list_for_authen TYPE STANDARD TABLE OF team_full WITH DEFAULT KEY. * Component schema: response_users_list, array TYPES response_users_list TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_activity_list_events_for_authe, array TYPES response_activity_list_events_ TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_activity_list_org_events_for_a, array TYPES response_activity_list_org_eve TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_activity_list_public_events_01, array TYPES response_activity_list_publi03 TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_users_list_followers_for_user, array TYPES response_users_list_follower01 TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_users_list_following_for_user, array TYPES response_users_list_following_ TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY. * Component schema: response_gists_list_for_user, array TYPES response_gists_list_for_user TYPE STANDARD TABLE OF base_gist WITH DEFAULT KEY. * Component schema: response_users_list_gpg_keys_for_user, array TYPES response_users_list_gpg_keys01 TYPE STANDARD TABLE OF gpg_key WITH DEFAULT KEY. * Component schema: response_users_list_public_keys_for_use, array TYPES response_users_list_public_key TYPE STANDARD TABLE OF key_simple WITH DEFAULT KEY. * Component schema: response_orgs_list_for_user, array TYPES response_orgs_list_for_user TYPE STANDARD TABLE OF organization_simple WITH DEFAULT KEY. * Component schema: response_projects_list_for_user, array TYPES response_projects_list_for_use TYPE STANDARD TABLE OF project WITH DEFAULT KEY. * Component schema: response_activity_list_received_events_, array TYPES response_activity_list_receive TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_activity_list_received_public_, array TYPES response_activity_list_recei01 TYPE STANDARD TABLE OF event WITH DEFAULT KEY. * Component schema: response_repos_list_for_user, array TYPES response_repos_list_for_user TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY. * Component schema: response_activity_list_repos_watched_by, array TYPES response_activity_list_repos_w TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY. * GET - "GitHub API Root" * Operation id: meta/root * Response: 200 * application/json, #/components/schemas/response_meta_root METHODS meta_root RETURNING VALUE(return_data) TYPE response_meta_root RAISING cx_static_check. * GET - "List global webhooks" * Operation id: enterprise-admin/list-global-webhooks * Parameter: accept, required, header * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_list_global_w METHODS enterprise_admin_list_global_w IMPORTING accept TYPE string DEFAULT 'application/vnd.github.superpro-preview+json' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_enterprise_admin_list RAISING cx_static_check. * POST - "Create a global webhook" * Operation id: enterprise-admin/create-global-webhook * Parameter: accept, required, header * Response: 201 * application/json, #/components/schemas/global-hook * Body ref: #/components/schemas/bodyenterprise_admin_create_gl METHODS enterprise_admin_create_global IMPORTING accept TYPE string DEFAULT 'application/vnd.github.superpro-preview+json' body TYPE bodyenterprise_admin_create_gl RETURNING VALUE(return_data) TYPE global_hook RAISING cx_static_check. * GET - "Get a global webhook" * Operation id: enterprise-admin/get-global-webhook * Parameter: accept, required, header * Parameter: hook_id, required, path * Response: 200 * application/json, #/components/schemas/global-hook METHODS enterprise_admin_get_global_we IMPORTING accept TYPE string DEFAULT 'application/vnd.github.superpro-preview+json' hook_id TYPE i RETURNING VALUE(return_data) TYPE global_hook RAISING cx_static_check. * PATCH - "Update a global webhook" * Operation id: enterprise-admin/update-global-webhook * Parameter: accept, required, header * Parameter: hook_id, required, path * Response: 200 * application/json, #/components/schemas/global-hook-2 * Body ref: #/components/schemas/bodyenterprise_admin_update_gl METHODS enterprise_admin_update_global IMPORTING accept TYPE string DEFAULT 'application/vnd.github.superpro-preview+json' hook_id TYPE i body TYPE bodyenterprise_admin_update_gl RETURNING VALUE(return_data) TYPE global_hook_2 RAISING cx_static_check. * DELETE - "Delete a global webhook" * Operation id: enterprise-admin/delete-global-webhook * Parameter: accept, required, header * Parameter: hook_id, required, path * Response: 204 * Body ref: #/components/schemas/bodyenterprise_admin_delete_gl METHODS enterprise_admin_delete_global IMPORTING accept TYPE string DEFAULT 'application/vnd.github.superpro-preview+json' hook_id TYPE i body TYPE bodyenterprise_admin_delete_gl RAISING cx_static_check. * POST - "Ping a global webhook" * Operation id: enterprise-admin/ping-global-webhook * Parameter: accept, required, header * Parameter: hook_id, required, path * Response: 204 METHODS enterprise_admin_ping_global_w IMPORTING accept TYPE string DEFAULT 'application/vnd.github.superpro-preview+json' hook_id TYPE i RAISING cx_static_check. * GET - "List public keys" * Operation id: enterprise-admin/list-public-keys * Parameter: sort, optional, query * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Parameter: direction, optional, query * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_list_public_k METHODS enterprise_admin_list_public_k IMPORTING sort TYPE string DEFAULT 'created' since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 direction TYPE string DEFAULT 'desc' RETURNING VALUE(return_data) TYPE response_enterprise_admin_li01 RAISING cx_static_check. * DELETE - "Delete a public key" * Operation id: enterprise-admin/delete-public-key * Parameter: key_ids, required, path * Response: 204 METHODS enterprise_admin_delete_public IMPORTING key_ids TYPE string RAISING cx_static_check. * PATCH - "Update LDAP mapping for a team" * Operation id: enterprise-admin/update-ldap-mapping-for-team * Parameter: team_id, required, path * Response: 200 * application/json, #/components/schemas/ldap-mapping-team * Body ref: #/components/schemas/bodyenterprise_admin_update_ld METHODS enterprise_admin_update_ldap_m IMPORTING team_id TYPE i body TYPE bodyenterprise_admin_update_ld RETURNING VALUE(return_data) TYPE ldap_mapping_team RAISING cx_static_check. * POST - "Sync LDAP mapping for a team" * Operation id: enterprise-admin/sync-ldap-mapping-for-team * Parameter: team_id, required, path * Response: 201 * application/json, #/components/schemas/response_enterprise_admin_sync_ldap_map METHODS enterprise_admin_sync_ldap_map IMPORTING team_id TYPE i RETURNING VALUE(return_data) TYPE response_enterprise_admin_sync RAISING cx_static_check. * PATCH - "Update LDAP mapping for a user" * Operation id: enterprise-admin/update-ldap-mapping-for-user * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/ldap-mapping-user * Body ref: #/components/schemas/bodyenterprise_admin_update_01 METHODS enterprise_admin_update_ldap01 IMPORTING username TYPE string body TYPE bodyenterprise_admin_update_01 RETURNING VALUE(return_data) TYPE ldap_mapping_user RAISING cx_static_check. * POST - "Sync LDAP mapping for a user" * Operation id: enterprise-admin/sync-ldap-mapping-for-user * Parameter: username, required, path * Response: 201 * application/json, #/components/schemas/response_enterprise_admin_sync_ldap_m01 METHODS enterprise_admin_sync_ldap_m01 IMPORTING username TYPE string RETURNING VALUE(return_data) TYPE response_enterprise_admin_sy01 RAISING cx_static_check. * POST - "Create an organization" * Operation id: enterprise-admin/create-org * Response: 201 * application/json, #/components/schemas/organization-simple * Body ref: #/components/schemas/bodyenterprise_admin_create_or METHODS enterprise_admin_create_org IMPORTING body TYPE bodyenterprise_admin_create_or RETURNING VALUE(return_data) TYPE organization_simple RAISING cx_static_check. * PATCH - "Update an organization name" * Operation id: enterprise-admin/update-org-name * Parameter: org, required, path * Response: 202 * application/json, #/components/schemas/response_enterprise_admin_update_org_na * Body ref: #/components/schemas/bodyenterprise_admin_update_or METHODS enterprise_admin_update_org_na IMPORTING org TYPE string body TYPE bodyenterprise_admin_update_or RAISING cx_static_check. * GET - "List pre-receive environments" * Operation id: enterprise-admin/list-pre-receive-environments * Parameter: sort, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Parameter: direction, optional, query * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_list_pre_rece METHODS enterprise_admin_list_pre_rece IMPORTING sort TYPE string DEFAULT 'created' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 direction TYPE string DEFAULT 'desc' RETURNING VALUE(return_data) TYPE response_enterprise_admin_li02 RAISING cx_static_check. * POST - "Create a pre-receive environment" * Operation id: enterprise-admin/create-pre-receive-environment * Response: 201 * application/json, #/components/schemas/pre-receive-environment * Body ref: #/components/schemas/bodyenterprise_admin_create_pr METHODS enterprise_admin_create_pre_re IMPORTING body TYPE bodyenterprise_admin_create_pr RETURNING VALUE(return_data) TYPE pre_receive_environment RAISING cx_static_check. * GET - "Get a pre-receive environment" * Operation id: enterprise-admin/get-pre-receive-environment * Parameter: pre_receive_environment_id, required, path * Response: 200 * application/json, #/components/schemas/pre-receive-environment METHODS enterprise_admin_get_pre_recei IMPORTING pre_receive_environment_id TYPE i RETURNING VALUE(return_data) TYPE pre_receive_environment RAISING cx_static_check. * PATCH - "Update a pre-receive environment" * Operation id: enterprise-admin/update-pre-receive-environment * Parameter: pre_receive_environment_id, required, path * Response: 200 * application/json, #/components/schemas/pre-receive-environment * Response: 422 * application/json, #/components/schemas/response_enterprise_admin_update_pre_re * Body ref: #/components/schemas/bodyenterprise_admin_update_pr METHODS enterprise_admin_update_pre_re IMPORTING pre_receive_environment_id TYPE i body TYPE bodyenterprise_admin_update_pr RETURNING VALUE(return_data) TYPE pre_receive_environment RAISING cx_static_check. * DELETE - "Delete a pre-receive environment" * Operation id: enterprise-admin/delete-pre-receive-environment * Parameter: pre_receive_environment_id, required, path * Response: 204 * Response: 422 * application/json, #/components/schemas/response_enterprise_admin_delete_pre_re * Body ref: #/components/schemas/bodyenterprise_admin_delete_pr METHODS enterprise_admin_delete_pre_re IMPORTING pre_receive_environment_id TYPE i body TYPE bodyenterprise_admin_delete_pr RAISING cx_static_check. * POST - "Start a pre-receive environment download" * Operation id: enterprise-admin/start-pre-receive-environment-download * Parameter: pre_receive_environment_id, required, path * Response: 202 * application/json, #/components/schemas/pre-receive-environment-download-status * Response: 422 * application/json, #/components/schemas/response_enterprise_admin_start_pre_rec METHODS enterprise_admin_start_pre_rec IMPORTING pre_receive_environment_id TYPE i RAISING cx_static_check. * GET - "Get the download status for a pre-receive environment" * Operation id: enterprise-admin/get-download-status-for-pre-receive-environment * Parameter: pre_receive_environment_id, required, path * Response: 200 * application/json, #/components/schemas/pre-receive-environment-download-status METHODS enterprise_admin_get_download_ IMPORTING pre_receive_environment_id TYPE i RETURNING VALUE(return_data) TYPE pre_receive_environment_downlo RAISING cx_static_check. * GET - "List pre-receive hooks" * Operation id: enterprise-admin/list-pre-receive-hooks * Parameter: sort, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Parameter: direction, optional, query * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_list_pre_re01 METHODS enterprise_admin_list_pre_re01 IMPORTING sort TYPE string DEFAULT 'created' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 direction TYPE string DEFAULT 'desc' RETURNING VALUE(return_data) TYPE response_enterprise_admin_li03 RAISING cx_static_check. * POST - "Create a pre-receive hook" * Operation id: enterprise-admin/create-pre-receive-hook * Response: 201 * application/json, #/components/schemas/pre-receive-hook * Body ref: #/components/schemas/bodyenterprise_admin_create_01 METHODS enterprise_admin_create_pre_01 IMPORTING body TYPE bodyenterprise_admin_create_01 RETURNING VALUE(return_data) TYPE pre_receive_hook RAISING cx_static_check. * GET - "Get a pre-receive hook" * Operation id: enterprise-admin/get-pre-receive-hook * Parameter: pre_receive_hook_id, required, path * Response: 200 * application/json, #/components/schemas/pre-receive-hook METHODS enterprise_admin_get_pre_rec01 IMPORTING pre_receive_hook_id TYPE i RETURNING VALUE(return_data) TYPE pre_receive_hook RAISING cx_static_check. * PATCH - "Update a pre-receive hook" * Operation id: enterprise-admin/update-pre-receive-hook * Parameter: pre_receive_hook_id, required, path * Response: 200 * application/json, #/components/schemas/pre-receive-hook * Body ref: #/components/schemas/bodyenterprise_admin_update_02 METHODS enterprise_admin_update_pre_01 IMPORTING pre_receive_hook_id TYPE i body TYPE bodyenterprise_admin_update_02 RETURNING VALUE(return_data) TYPE pre_receive_hook RAISING cx_static_check. * DELETE - "Delete a pre-receive hook" * Operation id: enterprise-admin/delete-pre-receive-hook * Parameter: pre_receive_hook_id, required, path * Response: 204 * Body ref: #/components/schemas/bodyenterprise_admin_delete_01 METHODS enterprise_admin_delete_pre_01 IMPORTING pre_receive_hook_id TYPE i body TYPE bodyenterprise_admin_delete_01 RAISING cx_static_check. * GET - "List personal access tokens" * Operation id: enterprise-admin/list-personal-access-tokens * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_list_personal METHODS enterprise_admin_list_personal IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_enterprise_admin_li04 RAISING cx_static_check. * DELETE - "Delete a personal access token" * Operation id: enterprise-admin/delete-personal-access-token * Parameter: token_id, required, path * Response: 204 METHODS enterprise_admin_delete_person IMPORTING token_id TYPE i RAISING cx_static_check. * POST - "Create a user" * Operation id: enterprise-admin/create-user * Response: 201 * application/json, #/components/schemas/simple-user * Body ref: #/components/schemas/bodyenterprise_admin_create_us METHODS enterprise_admin_create_user IMPORTING body TYPE bodyenterprise_admin_create_us RETURNING VALUE(return_data) TYPE simple_user RAISING cx_static_check. * PATCH - "Update the username for a user" * Operation id: enterprise-admin/update-username-for-user * Parameter: username, required, path * Response: 202 * application/json, #/components/schemas/response_enterprise_admin_update_userna * Body ref: #/components/schemas/bodyenterprise_admin_update_us METHODS enterprise_admin_update_userna IMPORTING username TYPE string body TYPE bodyenterprise_admin_update_us RAISING cx_static_check. * DELETE - "Delete a user" * Operation id: enterprise-admin/delete-user * Parameter: username, required, path * Response: 204 * Body ref: #/components/schemas/bodyenterprise_admin_delete_us METHODS enterprise_admin_delete_user IMPORTING username TYPE string body TYPE bodyenterprise_admin_delete_us RAISING cx_static_check. * POST - "Create an impersonation OAuth token" * Operation id: enterprise-admin/create-impersonation-o-auth-token * Parameter: username, required, path * Response: 201 * application/json, #/components/schemas/authorization * Body ref: #/components/schemas/bodyenterprise_admin_create_im METHODS enterprise_admin_create_impers IMPORTING username TYPE string body TYPE bodyenterprise_admin_create_im RETURNING VALUE(return_data) TYPE authorization RAISING cx_static_check. * DELETE - "Delete an impersonation OAuth token" * Operation id: enterprise-admin/delete-impersonation-o-auth-token * Parameter: username, required, path * Response: 204 * Body ref: #/components/schemas/bodyenterprise_admin_delete_im METHODS enterprise_admin_delete_impers IMPORTING username TYPE string body TYPE bodyenterprise_admin_delete_im RAISING cx_static_check. * GET - "Get the authenticated app" * Operation id: apps/get-authenticated * Response: 200 * application/json, #/components/schemas/integration METHODS apps_get_authenticated RETURNING VALUE(return_data) TYPE integration RAISING cx_static_check. * POST - "Create a GitHub App from a manifest" * Operation id: apps/create-from-manifest * Parameter: code, required, path * Response: 201 * application/json, string * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyapps_create_from_manifest METHODS apps_create_from_manifest IMPORTING code TYPE string body TYPE bodyapps_create_from_manifest RAISING cx_static_check. * GET - "List installations for the authenticated app" * Operation id: apps/list-installations * Parameter: accept, required, header * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_apps_list_installations METHODS apps_list_installations IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_apps_list_installatio RAISING cx_static_check. * GET - "Get an installation for the authenticated app" * Operation id: apps/get-installation * Parameter: accept, required, header * Parameter: installation_id, required, path * Response: 200 * application/json, #/components/schemas/installation-ghes-2 * Response: 404 * Response: 415 METHODS apps_get_installation IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' installation_id TYPE i RETURNING VALUE(return_data) TYPE installation_ghes_2 RAISING cx_static_check. * DELETE - "Delete an installation for the authenticated app" * Operation id: apps/delete-installation * Parameter: accept, required, header * Parameter: installation_id, required, path * Response: 204 * Response: 404 METHODS apps_delete_installation IMPORTING accept TYPE string DEFAULT 'application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json' installation_id TYPE i RAISING cx_static_check. * POST - "Create an installation access token for an app" * Operation id: apps/create-installation-access-token * Parameter: accept, required, header * Parameter: installation_id, required, path * Response: 201 * application/json, #/components/schemas/installation-token * Response: 401 * Response: 403 * Response: 404 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyapps_create_installation_a METHODS apps_create_installation_acces IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' installation_id TYPE i body TYPE bodyapps_create_installation_a RETURNING VALUE(return_data) TYPE installation_token RAISING cx_static_check. * DELETE - "Revoke a grant for an application" * Operation id: oauth-authorizations/revoke-grant-for-application * Parameter: client_id, required, path * Parameter: access_token, required, path * Response: 204 METHODS oauth_authorizations_revoke_gr IMPORTING client_id TYPE string access_token TYPE string RAISING cx_static_check. * GET - "Check an authorization" * Operation id: oauth-authorizations/check-authorization * Parameter: client_id, required, path * Parameter: access_token, required, path * Response: 200 * application/json, #/components/schemas/authorization-with-user METHODS oauth_authorizations_check_aut IMPORTING client_id TYPE string access_token TYPE string RETURNING VALUE(return_data) TYPE authorization_with_user RAISING cx_static_check. * POST - "Reset an authorization" * Operation id: oauth-authorizations/reset-authorization * Parameter: client_id, required, path * Parameter: access_token, required, path * Response: 200 * application/json, #/components/schemas/authorization-with-user METHODS oauth_authorizations_reset_aut IMPORTING client_id TYPE string access_token TYPE string RETURNING VALUE(return_data) TYPE authorization_with_user RAISING cx_static_check. * DELETE - "Revoke an authorization for an application" * Operation id: oauth-authorizations/revoke-authorization-for-application * Parameter: client_id, required, path * Parameter: access_token, required, path * Response: 204 METHODS oauth_authorizations_revoke_au IMPORTING client_id TYPE string access_token TYPE string RAISING cx_static_check. * GET - "Get an app" * Operation id: apps/get-by-slug * Parameter: app_slug, required, path * Response: 200 * application/json, #/components/schemas/integration * Response: 403 * Response: 404 * Response: 415 METHODS apps_get_by_slug IMPORTING app_slug TYPE string RETURNING VALUE(return_data) TYPE integration RAISING cx_static_check. * GET - "Get all codes of conduct" * Operation id: codes-of-conduct/get-all-codes-of-conduct * Response: 200 * application/json, #/components/schemas/response_codes_of_conduct_get_all_codes * Response: 304 METHODS codes_of_conduct_get_all_codes RETURNING VALUE(return_data) TYPE response_codes_of_conduct_get_ RAISING cx_static_check. * GET - "Get a code of conduct" * Operation id: codes-of-conduct/get-conduct-code * Parameter: key, required, path * Response: 200 * application/json, #/components/schemas/code-of-conduct * Response: 304 * Response: 404 METHODS codes_of_conduct_get_conduct_c IMPORTING key TYPE string RETURNING VALUE(return_data) TYPE code_of_conduct RAISING cx_static_check. * GET - "Get emojis" * Operation id: emojis/get * Response: 200 * application/json, #/components/schemas/response_emojis_get * Response: 304 METHODS emojis_get RETURNING VALUE(return_data) TYPE response_emojis_get RAISING cx_static_check. * GET - "Get license information" * Operation id: enterprise-admin/get-license-information * Response: 200 * application/json, #/components/schemas/license-info METHODS enterprise_admin_get_license_i RETURNING VALUE(return_data) TYPE license_info RAISING cx_static_check. * GET - "Get all statistics" * Operation id: enterprise-admin/get-all-stats * Response: 200 * application/json, #/components/schemas/enterprise-overview METHODS enterprise_admin_get_all_stats RETURNING VALUE(return_data) TYPE enterprise_overview RAISING cx_static_check. * GET - "Get comment statistics" * Operation id: enterprise-admin/get-comment-stats * Response: 200 * application/json, #/components/schemas/enterprise-comment-overview METHODS enterprise_admin_get_comment_s RETURNING VALUE(return_data) TYPE enterprise_comment_overview RAISING cx_static_check. * GET - "Get gist statistics" * Operation id: enterprise-admin/get-all-stats * Response: 200 * application/json, #/components/schemas/enterprise-gist-overview METHODS enterprise_admin_get_all_sta01 RETURNING VALUE(return_data) TYPE enterprise_gist_overview RAISING cx_static_check. * GET - "Get hooks statistics" * Operation id: enterprise-admin/get-hooks-stats * Response: 200 * application/json, #/components/schemas/enterprise-hook-overview METHODS enterprise_admin_get_hooks_sta RETURNING VALUE(return_data) TYPE enterprise_hook_overview RAISING cx_static_check. * GET - "Get issue statistics" * Operation id: enterprise-admin/get-issue-stats * Response: 200 * application/json, #/components/schemas/enterprise-issue-overview METHODS enterprise_admin_get_issue_sta RETURNING VALUE(return_data) TYPE enterprise_issue_overview RAISING cx_static_check. * GET - "Get milestone statistics" * Operation id: enterprise-admin/get-milestone-stats * Response: 200 * application/json, #/components/schemas/enterprise-milestone-overview METHODS enterprise_admin_get_milestone RETURNING VALUE(return_data) TYPE enterprise_milestone_overview RAISING cx_static_check. * GET - "Get organization statistics" * Operation id: enterprise-admin/get-org-stats * Response: 200 * application/json, #/components/schemas/enterprise-organization-overview METHODS enterprise_admin_get_org_stats RETURNING VALUE(return_data) TYPE enterprise_organization_overvi RAISING cx_static_check. * GET - "Get pages statistics" * Operation id: enterprise-admin/get-pages-stats * Response: 200 * application/json, #/components/schemas/enterprise-page-overview METHODS enterprise_admin_get_pages_sta RETURNING VALUE(return_data) TYPE enterprise_page_overview RAISING cx_static_check. * GET - "Get pull request statistics" * Operation id: enterprise-admin/get-pull-request-stats * Response: 200 * application/json, #/components/schemas/enterprise-pull-request-overview METHODS enterprise_admin_get_pull_requ RETURNING VALUE(return_data) TYPE enterprise_pull_request_overvi RAISING cx_static_check. * GET - "Get repository statistics" * Operation id: enterprise-admin/get-repo-stats * Response: 200 * application/json, #/components/schemas/enterprise-repository-overview METHODS enterprise_admin_get_repo_stat RETURNING VALUE(return_data) TYPE enterprise_repository_overview RAISING cx_static_check. * GET - "Get users statistics" * Operation id: enterprise-admin/get-user-stats * Response: 200 * application/json, #/components/schemas/enterprise-user-overview METHODS enterprise_admin_get_user_stat RETURNING VALUE(return_data) TYPE enterprise_user_overview RAISING cx_static_check. * GET - "List public events" * Operation id: activity/list-public-events * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_public_events * Response: 304 * Response: 403 * Response: 503 METHODS activity_list_public_events IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_public_ RAISING cx_static_check. * GET - "Get feeds" * Operation id: activity/get-feeds * Response: 200 * application/json, #/components/schemas/feed METHODS activity_get_feeds RETURNING VALUE(return_data) TYPE feed RAISING cx_static_check. * GET - "List gists for the authenticated user" * Operation id: gists/list * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_gists_list * Response: 304 * Response: 403 METHODS gists_list IMPORTING since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_gists_list RAISING cx_static_check. * POST - "Create a gist" * Operation id: gists/create * Response: 201 * application/json, #/components/schemas/gist-simple * Response: 304 * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodygists_create METHODS gists_create IMPORTING body TYPE bodygists_create RETURNING VALUE(return_data) TYPE gist_simple RAISING cx_static_check. * GET - "List public gists" * Operation id: gists/list-public * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_gists_list_public * Response: 304 * Response: 403 * Response: 422 METHODS gists_list_public IMPORTING since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_gists_list_public RAISING cx_static_check. * GET - "List starred gists" * Operation id: gists/list-starred * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_gists_list_starred * Response: 304 * Response: 401 * Response: 403 METHODS gists_list_starred IMPORTING since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_gists_list_starred RAISING cx_static_check. * GET - "Get a gist" * Operation id: gists/get * Parameter: gist_id, required, path * Response: 200 * application/json, #/components/schemas/gist-simple * Response: 304 * Response: 403 * Response: 404 METHODS gists_get IMPORTING gist_id TYPE string RETURNING VALUE(return_data) TYPE gist_simple RAISING cx_static_check. * PATCH - "Update a gist" * Operation id: gists/update * Parameter: gist_id, required, path * Response: 200 * application/json, #/components/schemas/gist-simple * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodygists_update METHODS gists_update IMPORTING gist_id TYPE string body TYPE bodygists_update RETURNING VALUE(return_data) TYPE gist_simple RAISING cx_static_check. * DELETE - "Delete a gist" * Operation id: gists/delete * Parameter: gist_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 * Body ref: #/components/schemas/bodygists_delete METHODS gists_delete IMPORTING gist_id TYPE string body TYPE bodygists_delete RAISING cx_static_check. * GET - "List gist comments" * Operation id: gists/list-comments * Parameter: gist_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_gists_list_comments * Response: 304 * Response: 403 * Response: 404 METHODS gists_list_comments IMPORTING gist_id TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_gists_list_comments RAISING cx_static_check. * POST - "Create a gist comment" * Operation id: gists/create-comment * Parameter: gist_id, required, path * Response: 201 * application/json, #/components/schemas/gist-comment * Response: 304 * Response: 403 * Response: 404 * Body ref: #/components/schemas/bodygists_create_comment METHODS gists_create_comment IMPORTING gist_id TYPE string body TYPE bodygists_create_comment RETURNING VALUE(return_data) TYPE gist_comment RAISING cx_static_check. * GET - "Get a gist comment" * Operation id: gists/get-comment * Parameter: gist_id, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/gist-comment * Response: 304 * Response: 403 * Response: 404 METHODS gists_get_comment IMPORTING gist_id TYPE string comment_id TYPE i RETURNING VALUE(return_data) TYPE gist_comment RAISING cx_static_check. * PATCH - "Update a gist comment" * Operation id: gists/update-comment * Parameter: gist_id, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/gist-comment * Response: 404 * Body ref: #/components/schemas/bodygists_update_comment METHODS gists_update_comment IMPORTING gist_id TYPE string comment_id TYPE i body TYPE bodygists_update_comment RETURNING VALUE(return_data) TYPE gist_comment RAISING cx_static_check. * DELETE - "Delete a gist comment" * Operation id: gists/delete-comment * Parameter: gist_id, required, path * Parameter: comment_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 * Body ref: #/components/schemas/bodygists_delete_comment METHODS gists_delete_comment IMPORTING gist_id TYPE string comment_id TYPE i body TYPE bodygists_delete_comment RAISING cx_static_check. * GET - "List gist commits" * Operation id: gists/list-commits * Parameter: gist_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_gists_list_commits * Response: 304 * Response: 403 * Response: 404 METHODS gists_list_commits IMPORTING gist_id TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_gists_list_commits RAISING cx_static_check. * GET - "List gist forks" * Operation id: gists/list-forks * Parameter: gist_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_gists_list_forks * Response: 304 * Response: 403 * Response: 404 METHODS gists_list_forks IMPORTING gist_id TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_gists_list_forks RAISING cx_static_check. * POST - "Fork a gist" * Operation id: gists/fork * Parameter: gist_id, required, path * Response: 201 * application/json, #/components/schemas/base-gist * Response: 304 * Response: 403 * Response: 404 * Response: 422 METHODS gists_fork IMPORTING gist_id TYPE string RETURNING VALUE(return_data) TYPE base_gist RAISING cx_static_check. * GET - "Check if a gist is starred" * Operation id: gists/check-is-starred * Parameter: gist_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 * application/json, #/components/schemas/response_gists_check_is_starred METHODS gists_check_is_starred IMPORTING gist_id TYPE string RAISING cx_static_check. * PUT - "Star a gist" * Operation id: gists/star * Parameter: gist_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 METHODS gists_star IMPORTING gist_id TYPE string RAISING cx_static_check. * DELETE - "Unstar a gist" * Operation id: gists/unstar * Parameter: gist_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 METHODS gists_unstar IMPORTING gist_id TYPE string RAISING cx_static_check. * GET - "Get a gist revision" * Operation id: gists/get-revision * Parameter: sha, required, path * Parameter: gist_id, required, path * Response: 200 * application/json, #/components/schemas/gist-simple * Response: 403 * Response: 404 * Response: 422 METHODS gists_get_revision IMPORTING sha TYPE string gist_id TYPE string RETURNING VALUE(return_data) TYPE gist_simple RAISING cx_static_check. * GET - "Get all gitignore templates" * Operation id: gitignore/get-all-templates * Response: 200 * application/json, #/components/schemas/response_gitignore_get_all_templates * Response: 304 METHODS gitignore_get_all_templates RETURNING VALUE(return_data) TYPE response_gitignore_get_all_tem RAISING cx_static_check. * GET - "Get a gitignore template" * Operation id: gitignore/get-template * Parameter: name, required, path * Response: 200 * application/json, #/components/schemas/gitignore-template * Response: 304 METHODS gitignore_get_template IMPORTING name TYPE string RETURNING VALUE(return_data) TYPE gitignore_template RAISING cx_static_check. * GET - "List repositories accessible to the app installation" * Operation id: apps/list-repos-accessible-to-installation * Parameter: accept, required, header * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_apps_list_repos_accessible_to_ * Response: 304 * Response: 401 * Response: 403 METHODS apps_list_repos_accessible_to_ IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_apps_list_repos_acces RAISING cx_static_check. * GET - "List issues assigned to the authenticated user" * Operation id: issues/list * Parameter: filter, optional, query * Parameter: state, optional, query * Parameter: sort, optional, query * Parameter: collab, optional, query * Parameter: orgs, optional, query * Parameter: owned, optional, query * Parameter: pulls, optional, query * Parameter: labels, optional, query * Parameter: direction, optional, query * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list * Response: 304 * Response: 404 * Response: 422 METHODS issues_list IMPORTING filter TYPE string DEFAULT 'assigned' state TYPE string DEFAULT 'open' sort TYPE string DEFAULT 'created' collab TYPE abap_bool OPTIONAL orgs TYPE abap_bool OPTIONAL owned TYPE abap_bool OPTIONAL pulls TYPE abap_bool OPTIONAL labels TYPE string OPTIONAL direction TYPE string DEFAULT 'desc' since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list RAISING cx_static_check. * GET - "Get all commonly used licenses" * Operation id: licenses/get-all-commonly-used * Parameter: featured, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_licenses_get_all_commonly_used * Response: 304 METHODS licenses_get_all_commonly_used IMPORTING featured TYPE abap_bool OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_licenses_get_all_comm RAISING cx_static_check. * GET - "Get a license" * Operation id: licenses/get * Parameter: license, required, path * Response: 200 * application/json, #/components/schemas/license * Response: 304 * Response: 403 * Response: 404 METHODS licenses_get IMPORTING license TYPE string RETURNING VALUE(return_data) TYPE license RAISING cx_static_check. * POST - "Render a Markdown document" * Operation id: markdown/render * Response: 200 * text/html, string * Response: 304 * Body ref: #/components/schemas/bodymarkdown_render METHODS markdown_render IMPORTING body TYPE bodymarkdown_render RAISING cx_static_check. * POST - "Render a Markdown document in raw mode" * Operation id: markdown/render-raw * Response: 200 * text/html, string * Response: 304 METHODS markdown_render_raw RAISING cx_static_check. * GET - "Get GitHub Enterprise Server meta information" * Operation id: meta/get * Response: 200 * application/json, #/components/schemas/api-overview * Response: 304 METHODS meta_get RETURNING VALUE(return_data) TYPE api_overview RAISING cx_static_check. * GET - "List public events for a network of repositories" * Operation id: activity/list-public-events-for-repo-network * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_public_events_fo * Response: 301 * Response: 304 * Response: 403 * Response: 404 METHODS activity_list_public_events_fo IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_publi01 RAISING cx_static_check. * GET - "List notifications for the authenticated user" * Operation id: activity/list-notifications-for-authenticated-user * Parameter: all, optional, query * Parameter: participating, optional, query * Parameter: since, optional, query * Parameter: before, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_notifications_fo * Response: 304 * Response: 401 * Response: 403 * Response: 422 METHODS activity_list_notifications_fo IMPORTING all TYPE abap_bool DEFAULT abap_false participating TYPE abap_bool DEFAULT abap_false since TYPE string OPTIONAL before TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_notific RAISING cx_static_check. * PUT - "Mark notifications as read" * Operation id: activity/mark-notifications-as-read * Response: 202 * application/json, #/components/schemas/response_activity_mark_notifications_as * Response: 205 * Response: 304 * Response: 401 * Response: 403 * Body ref: #/components/schemas/bodyactivity_mark_notification METHODS activity_mark_notifications_as IMPORTING body TYPE bodyactivity_mark_notification RAISING cx_static_check. * GET - "Get a thread" * Operation id: activity/get-thread * Parameter: thread_id, required, path * Response: 200 * application/json, #/components/schemas/thread * Response: 304 * Response: 401 * Response: 403 METHODS activity_get_thread IMPORTING thread_id TYPE i RETURNING VALUE(return_data) TYPE thread RAISING cx_static_check. * PATCH - "Mark a thread as read" * Operation id: activity/mark-thread-as-read * Parameter: thread_id, required, path * Response: 205 * Response: 304 * Response: 403 METHODS activity_mark_thread_as_read IMPORTING thread_id TYPE i RAISING cx_static_check. * GET - "Get a thread subscription for the authenticated user" * Operation id: activity/get-thread-subscription-for-authenticated-user * Parameter: thread_id, required, path * Response: 200 * application/json, #/components/schemas/thread-subscription * Response: 304 * Response: 401 * Response: 403 METHODS activity_get_thread_subscripti IMPORTING thread_id TYPE i RETURNING VALUE(return_data) TYPE thread_subscription RAISING cx_static_check. * PUT - "Set a thread subscription" * Operation id: activity/set-thread-subscription * Parameter: thread_id, required, path * Response: 200 * application/json, #/components/schemas/thread-subscription * Response: 304 * Response: 401 * Response: 403 * Body ref: #/components/schemas/bodyactivity_set_thread_subscr METHODS activity_set_thread_subscripti IMPORTING thread_id TYPE i body TYPE bodyactivity_set_thread_subscr RETURNING VALUE(return_data) TYPE thread_subscription RAISING cx_static_check. * DELETE - "Delete a thread subscription" * Operation id: activity/delete-thread-subscription * Parameter: thread_id, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Body ref: #/components/schemas/bodyactivity_delete_thread_sub METHODS activity_delete_thread_subscri IMPORTING thread_id TYPE i body TYPE bodyactivity_delete_thread_sub RAISING cx_static_check. * GET - "Get Octocat" * Operation id: meta/get-octocat * Parameter: s, optional, query * Response: 200 * application/octocat-stream, string METHODS meta_get_octocat IMPORTING s TYPE string OPTIONAL RAISING cx_static_check. * GET - "List organizations" * Operation id: orgs/list * Parameter: since, optional, query * Parameter: per_page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list * Response: 304 METHODS orgs_list IMPORTING since TYPE i OPTIONAL per_page TYPE i DEFAULT 30 RETURNING VALUE(return_data) TYPE response_orgs_list RAISING cx_static_check. * GET - "Get an organization" * Operation id: orgs/get * Parameter: org, required, path * Response: 200 * application/json, #/components/schemas/organization-full * Response: 404 METHODS orgs_get IMPORTING org TYPE string RETURNING VALUE(return_data) TYPE organization_full RAISING cx_static_check. * PATCH - "Update an organization" * Operation id: orgs/update * Parameter: org, required, path * Response: 200 * application/json, #/components/schemas/organization-full * Response: 409 * Response: 415 * Response: 422 * application/json, string * Body ref: #/components/schemas/bodyorgs_update METHODS orgs_update IMPORTING org TYPE string body TYPE bodyorgs_update RETURNING VALUE(return_data) TYPE organization_full RAISING cx_static_check. * GET - "List public organization events" * Operation id: activity/list-public-org-events * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_public_org_event METHODS activity_list_public_org_event IMPORTING org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_publi02 RAISING cx_static_check. * GET - "List organization webhooks" * Operation id: orgs/list-webhooks * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list_webhooks * Response: 404 METHODS orgs_list_webhooks IMPORTING org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_orgs_list_webhooks RAISING cx_static_check. * POST - "Create an organization webhook" * Operation id: orgs/create-webhook * Parameter: org, required, path * Response: 201 * application/json, #/components/schemas/org-hook * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyorgs_create_webhook METHODS orgs_create_webhook IMPORTING org TYPE string body TYPE bodyorgs_create_webhook RETURNING VALUE(return_data) TYPE org_hook RAISING cx_static_check. * GET - "Get an organization webhook" * Operation id: orgs/get-webhook * Parameter: org, required, path * Parameter: hook_id, required, path * Response: 200 * application/json, #/components/schemas/org-hook * Response: 404 METHODS orgs_get_webhook IMPORTING org TYPE string hook_id TYPE i RETURNING VALUE(return_data) TYPE org_hook RAISING cx_static_check. * PATCH - "Update an organization webhook" * Operation id: orgs/update-webhook * Parameter: org, required, path * Parameter: hook_id, required, path * Response: 200 * application/json, #/components/schemas/org-hook * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyorgs_update_webhook METHODS orgs_update_webhook IMPORTING org TYPE string hook_id TYPE i body TYPE bodyorgs_update_webhook RETURNING VALUE(return_data) TYPE org_hook RAISING cx_static_check. * DELETE - "Delete an organization webhook" * Operation id: orgs/delete-webhook * Parameter: org, required, path * Parameter: hook_id, required, path * Response: 204 * Response: 404 * Body ref: #/components/schemas/bodyorgs_delete_webhook METHODS orgs_delete_webhook IMPORTING org TYPE string hook_id TYPE i body TYPE bodyorgs_delete_webhook RAISING cx_static_check. * POST - "Ping an organization webhook" * Operation id: orgs/ping-webhook * Parameter: org, required, path * Parameter: hook_id, required, path * Response: 204 * Response: 404 METHODS orgs_ping_webhook IMPORTING org TYPE string hook_id TYPE i RAISING cx_static_check. * GET - "Get an organization installation for the authenticated app" * Operation id: apps/get-org-installation * Parameter: accept, required, header * Parameter: org, required, path * Response: 200 * application/json, #/components/schemas/installation-ghes-2 METHODS apps_get_org_installation IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' org TYPE string RETURNING VALUE(return_data) TYPE installation_ghes_2 RAISING cx_static_check. * GET - "List app installations for an organization" * Operation id: orgs/list-app-installations * Parameter: accept, required, header * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list_app_installations METHODS orgs_list_app_installations IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_orgs_list_app_install RAISING cx_static_check. * GET - "List organization issues assigned to the authenticated user" * Operation id: issues/list-for-org * Parameter: filter, optional, query * Parameter: state, optional, query * Parameter: sort, optional, query * Parameter: org, required, path * Parameter: labels, optional, query * Parameter: direction, optional, query * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_for_org * Response: 404 METHODS issues_list_for_org IMPORTING filter TYPE string DEFAULT 'assigned' state TYPE string DEFAULT 'open' sort TYPE string DEFAULT 'created' org TYPE string labels TYPE string OPTIONAL direction TYPE string DEFAULT 'desc' since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_for_org RAISING cx_static_check. * GET - "List organization members" * Operation id: orgs/list-members * Parameter: filter, optional, query * Parameter: role, optional, query * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list_members * Response: 302 * Response: 422 METHODS orgs_list_members IMPORTING filter TYPE string DEFAULT 'all' role TYPE string DEFAULT 'all' org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_orgs_list_members RAISING cx_static_check. * GET - "Check organization membership for a user" * Operation id: orgs/check-membership-for-user * Parameter: org, required, path * Parameter: username, required, path * Response: 204 * Response: 302 * Response: 404 METHODS orgs_check_membership_for_user IMPORTING org TYPE string username TYPE string RAISING cx_static_check. * DELETE - "Remove an organization member" * Operation id: orgs/remove-member * Parameter: org, required, path * Parameter: username, required, path * Response: 204 * Response: 403 METHODS orgs_remove_member IMPORTING org TYPE string username TYPE string RAISING cx_static_check. * GET - "Get organization membership for a user" * Operation id: orgs/get-membership-for-user * Parameter: org, required, path * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/org-membership * Response: 403 * Response: 404 METHODS orgs_get_membership_for_user IMPORTING org TYPE string username TYPE string RETURNING VALUE(return_data) TYPE org_membership RAISING cx_static_check. * PUT - "Set organization membership for a user" * Operation id: orgs/set-membership-for-user * Parameter: org, required, path * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/org-membership * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodyorgs_set_membership_for_us METHODS orgs_set_membership_for_user IMPORTING org TYPE string username TYPE string body TYPE bodyorgs_set_membership_for_us RETURNING VALUE(return_data) TYPE org_membership RAISING cx_static_check. * DELETE - "Remove organization membership for a user" * Operation id: orgs/remove-membership-for-user * Parameter: org, required, path * Parameter: username, required, path * Response: 204 * Response: 403 * Response: 404 * Body ref: #/components/schemas/bodyorgs_remove_membership_for METHODS orgs_remove_membership_for_use IMPORTING org TYPE string username TYPE string body TYPE bodyorgs_remove_membership_for RAISING cx_static_check. * GET - "List outside collaborators for an organization" * Operation id: orgs/list-outside-collaborators * Parameter: filter, optional, query * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list_outside_collaborator METHODS orgs_list_outside_collaborator IMPORTING filter TYPE string DEFAULT 'all' org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_orgs_list_outside_col RAISING cx_static_check. * PUT - "Convert an organization member to outside collaborator" * Operation id: orgs/convert-member-to-outside-collaborator * Parameter: org, required, path * Parameter: username, required, path * Response: 202 * application/json, #/components/schemas/response_orgs_convert_member_to_outside * Response: 204 * Response: 403 * Response: 404 METHODS orgs_convert_member_to_outside IMPORTING org TYPE string username TYPE string RAISING cx_static_check. * DELETE - "Remove outside collaborator from an organization" * Operation id: orgs/remove-outside-collaborator * Parameter: org, required, path * Parameter: username, required, path * Response: 204 * Response: 422 * application/json, #/components/schemas/response_orgs_remove_outside_collaborat METHODS orgs_remove_outside_collaborat IMPORTING org TYPE string username TYPE string RAISING cx_static_check. * GET - "List pre-receive hooks for an organization" * Operation id: enterprise-admin/list-pre-receive-hooks-for-org * Parameter: sort, optional, query * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Parameter: direction, optional, query * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_list_pre_re02 METHODS enterprise_admin_list_pre_re02 IMPORTING sort TYPE string DEFAULT 'created' org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 direction TYPE string DEFAULT 'desc' RETURNING VALUE(return_data) TYPE response_enterprise_admin_li05 RAISING cx_static_check. * GET - "Get a pre-receive hook for an organization" * Operation id: enterprise-admin/get-pre-receive-hook-for-org * Parameter: org, required, path * Parameter: pre_receive_hook_id, required, path * Response: 200 * application/json, #/components/schemas/org-pre-receive-hook METHODS enterprise_admin_get_pre_rec02 IMPORTING org TYPE string pre_receive_hook_id TYPE i RETURNING VALUE(return_data) TYPE org_pre_receive_hook RAISING cx_static_check. * PATCH - "Update pre-receive hook enforcement for an organization" * Operation id: enterprise-admin/update-pre-receive-hook-enforcement-for-org * Parameter: org, required, path * Parameter: pre_receive_hook_id, required, path * Response: 200 * application/json, #/components/schemas/org-pre-receive-hook * Body ref: #/components/schemas/bodyenterprise_admin_update_03 METHODS enterprise_admin_update_pre_02 IMPORTING org TYPE string pre_receive_hook_id TYPE i body TYPE bodyenterprise_admin_update_03 RETURNING VALUE(return_data) TYPE org_pre_receive_hook RAISING cx_static_check. * DELETE - "Remove pre-receive hook enforcement for an organization" * Operation id: enterprise-admin/remove-pre-receive-hook-enforcement-for-org * Parameter: org, required, path * Parameter: pre_receive_hook_id, required, path * Response: 200 * application/json, #/components/schemas/org-pre-receive-hook * Body ref: #/components/schemas/bodyenterprise_admin_remove_pr METHODS enterprise_admin_remove_pre_re IMPORTING org TYPE string pre_receive_hook_id TYPE i body TYPE bodyenterprise_admin_remove_pr RETURNING VALUE(return_data) TYPE org_pre_receive_hook RAISING cx_static_check. * GET - "List organization projects" * Operation id: projects/list-for-org * Parameter: state, optional, query * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_projects_list_for_org * Response: 422 METHODS projects_list_for_org IMPORTING state TYPE string DEFAULT 'open' org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_projects_list_for_org RAISING cx_static_check. * POST - "Create an organization project" * Operation id: projects/create-for-org * Parameter: org, required, path * Response: 201 * application/json, #/components/schemas/project * Response: 401 * Response: 403 * Response: 404 * Response: 410 * Response: 422 * Body ref: #/components/schemas/bodyprojects_create_for_org METHODS projects_create_for_org IMPORTING org TYPE string body TYPE bodyprojects_create_for_org RETURNING VALUE(return_data) TYPE project RAISING cx_static_check. * GET - "List public organization members" * Operation id: orgs/list-public-members * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list_public_members METHODS orgs_list_public_members IMPORTING org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_orgs_list_public_memb RAISING cx_static_check. * GET - "Check public organization membership for a user" * Operation id: orgs/check-public-membership-for-user * Parameter: org, required, path * Parameter: username, required, path * Response: 204 * Response: 404 METHODS orgs_check_public_membership_f IMPORTING org TYPE string username TYPE string RAISING cx_static_check. * PUT - "Set public organization membership for the authenticated user" * Operation id: orgs/set-public-membership-for-authenticated-user * Parameter: org, required, path * Parameter: username, required, path * Response: 204 * Response: 403 METHODS orgs_set_public_membership_for IMPORTING org TYPE string username TYPE string RAISING cx_static_check. * DELETE - "Remove public organization membership for the authenticated user" * Operation id: orgs/remove-public-membership-for-authenticated-user * Parameter: org, required, path * Parameter: username, required, path * Response: 204 METHODS orgs_remove_public_membership_ IMPORTING org TYPE string username TYPE string RAISING cx_static_check. * GET - "List organization repositories" * Operation id: repos/list-for-org * Parameter: type, optional, query * Parameter: sort, optional, query * Parameter: direction, optional, query * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_for_org METHODS repos_list_for_org IMPORTING type TYPE string OPTIONAL sort TYPE string DEFAULT 'created' direction TYPE string OPTIONAL org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_for_org RAISING cx_static_check. * POST - "Create an organization repository" * Operation id: repos/create-in-org * Parameter: org, required, path * Response: 201 * application/json, #/components/schemas/repository * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_in_org METHODS repos_create_in_org IMPORTING org TYPE string body TYPE bodyrepos_create_in_org RETURNING VALUE(return_data) TYPE repository RAISING cx_static_check. * GET - "List teams" * Operation id: teams/list * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_teams_list * Response: 403 METHODS teams_list IMPORTING org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_teams_list RAISING cx_static_check. * POST - "Create a team" * Operation id: teams/create * Parameter: org, required, path * Response: 201 * application/json, #/components/schemas/team-full * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodyteams_create METHODS teams_create IMPORTING org TYPE string body TYPE bodyteams_create RETURNING VALUE(return_data) TYPE team_full RAISING cx_static_check. * GET - "Get a team by name" * Operation id: teams/get-by-name * Parameter: org, required, path * Parameter: team_slug, required, path * Response: 200 * application/json, #/components/schemas/team-full * Response: 404 METHODS teams_get_by_name IMPORTING org TYPE string team_slug TYPE string RETURNING VALUE(return_data) TYPE team_full RAISING cx_static_check. * GET - "Get a project card" * Operation id: projects/get-card * Parameter: card_id, required, path * Response: 200 * application/json, #/components/schemas/project-card * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS projects_get_card IMPORTING card_id TYPE i RETURNING VALUE(return_data) TYPE project_card RAISING cx_static_check. * PATCH - "Update an existing project card" * Operation id: projects/update-card * Parameter: card_id, required, path * Response: 200 * application/json, #/components/schemas/project-card * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyprojects_update_card METHODS projects_update_card IMPORTING card_id TYPE i body TYPE bodyprojects_update_card RETURNING VALUE(return_data) TYPE project_card RAISING cx_static_check. * DELETE - "Delete a project card" * Operation id: projects/delete-card * Parameter: card_id, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * application/json, #/components/schemas/response_projects_delete_card * Response: 404 * Body ref: #/components/schemas/bodyprojects_delete_card METHODS projects_delete_card IMPORTING card_id TYPE i body TYPE bodyprojects_delete_card RAISING cx_static_check. * POST - "Move a project card" * Operation id: projects/move-card * Parameter: card_id, required, path * Response: 201 * application/json, #/components/schemas/response_projects_move_card * Response: 304 * Response: 401 * Response: 403 * application/json, #/components/schemas/response_projects_move_card * Response: 422 * Response: 503 * application/json, #/components/schemas/response_projects_move_card * Body ref: #/components/schemas/bodyprojects_move_card METHODS projects_move_card IMPORTING card_id TYPE i body TYPE bodyprojects_move_card RETURNING VALUE(return_data) TYPE response_projects_move_card RAISING cx_static_check. * GET - "Get a project column" * Operation id: projects/get-column * Parameter: column_id, required, path * Response: 200 * application/json, #/components/schemas/project-column * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS projects_get_column IMPORTING column_id TYPE i RETURNING VALUE(return_data) TYPE project_column RAISING cx_static_check. * PATCH - "Update an existing project column" * Operation id: projects/update-column * Parameter: column_id, required, path * Response: 200 * application/json, #/components/schemas/project-column * Response: 304 * Response: 401 * Response: 403 * Body ref: #/components/schemas/bodyprojects_update_column METHODS projects_update_column IMPORTING column_id TYPE i body TYPE bodyprojects_update_column RETURNING VALUE(return_data) TYPE project_column RAISING cx_static_check. * DELETE - "Delete a project column" * Operation id: projects/delete-column * Parameter: column_id, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Body ref: #/components/schemas/bodyprojects_delete_column METHODS projects_delete_column IMPORTING column_id TYPE i body TYPE bodyprojects_delete_column RAISING cx_static_check. * GET - "List project cards" * Operation id: projects/list-cards * Parameter: archived_state, optional, query * Parameter: column_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_projects_list_cards * Response: 304 * Response: 401 * Response: 403 METHODS projects_list_cards IMPORTING archived_state TYPE string DEFAULT 'not_archived' column_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_projects_list_cards RAISING cx_static_check. * POST - "Create a project card" * Operation id: projects/create-card * Parameter: column_id, required, path * Response: 201 * application/json, #/components/schemas/project-card * Response: 304 * Response: 401 * Response: 403 * Response: 422 * application/json, string * Response: 503 * application/json, #/components/schemas/response_projects_create_card * Body schema: string METHODS projects_create_card IMPORTING column_id TYPE i body TYPE string RETURNING VALUE(return_data) TYPE project_card RAISING cx_static_check. * POST - "Move a project column" * Operation id: projects/move-column * Parameter: column_id, required, path * Response: 201 * application/json, #/components/schemas/response_projects_move_column * Response: 304 * Response: 401 * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodyprojects_move_column METHODS projects_move_column IMPORTING column_id TYPE i body TYPE bodyprojects_move_column RETURNING VALUE(return_data) TYPE response_projects_move_column RAISING cx_static_check. * GET - "Get a project" * Operation id: projects/get * Parameter: project_id, required, path * Response: 200 * application/json, #/components/schemas/project * Response: 304 * Response: 401 * Response: 403 METHODS projects_get IMPORTING project_id TYPE i RETURNING VALUE(return_data) TYPE project RAISING cx_static_check. * PATCH - "Update a project" * Operation id: projects/update * Parameter: project_id, required, path * Response: 200 * application/json, #/components/schemas/project * Response: 304 * Response: 401 * Response: 403 * application/json, #/components/schemas/response_projects_update * Response: 404 * Response: 410 * Response: 422 * Body ref: #/components/schemas/bodyprojects_update METHODS projects_update IMPORTING project_id TYPE i body TYPE bodyprojects_update RETURNING VALUE(return_data) TYPE project RAISING cx_static_check. * DELETE - "Delete a project" * Operation id: projects/delete * Parameter: project_id, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * application/json, #/components/schemas/response_projects_delete * Response: 404 * Response: 410 * Body ref: #/components/schemas/bodyprojects_delete METHODS projects_delete IMPORTING project_id TYPE i body TYPE bodyprojects_delete RAISING cx_static_check. * GET - "List project collaborators" * Operation id: projects/list-collaborators * Parameter: affiliation, optional, query * Parameter: project_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_projects_list_collaborators * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 415 * Response: 422 METHODS projects_list_collaborators IMPORTING affiliation TYPE string DEFAULT 'all' project_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_projects_list_collabo RAISING cx_static_check. * PUT - "Add project collaborator" * Operation id: projects/add-collaborator * Parameter: project_id, required, path * Parameter: username, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyprojects_add_collaborator METHODS projects_add_collaborator IMPORTING project_id TYPE i username TYPE string body TYPE bodyprojects_add_collaborator RAISING cx_static_check. * DELETE - "Remove user as a collaborator" * Operation id: projects/remove-collaborator * Parameter: project_id, required, path * Parameter: username, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyprojects_remove_collaborat METHODS projects_remove_collaborator IMPORTING project_id TYPE i username TYPE string body TYPE bodyprojects_remove_collaborat RAISING cx_static_check. * GET - "Get project permission for a user" * Operation id: projects/get-permission-for-user * Parameter: project_id, required, path * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/repository-collaborator-permission * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 415 * Response: 422 METHODS projects_get_permission_for_us IMPORTING project_id TYPE i username TYPE string RETURNING VALUE(return_data) TYPE repository_collaborator_permis RAISING cx_static_check. * GET - "List project columns" * Operation id: projects/list-columns * Parameter: project_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_projects_list_columns * Response: 304 * Response: 401 * Response: 403 METHODS projects_list_columns IMPORTING project_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_projects_list_columns RAISING cx_static_check. * POST - "Create a project column" * Operation id: projects/create-column * Parameter: project_id, required, path * Response: 201 * application/json, #/components/schemas/project-column * Response: 304 * Response: 401 * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodyprojects_create_column METHODS projects_create_column IMPORTING project_id TYPE i body TYPE bodyprojects_create_column RETURNING VALUE(return_data) TYPE project_column RAISING cx_static_check. * GET - "Get rate limit status for the authenticated user" * Operation id: rate-limit/get * Response: 200 * application/json, #/components/schemas/rate-limit-overview * Response: 304 * Response: 404 METHODS rate_limit_get RETURNING VALUE(return_data) TYPE rate_limit_overview RAISING cx_static_check. * DELETE - "Delete a reaction" * Operation id: reactions/delete * Parameter: accept, required, header * Parameter: reaction_id, required, path * Response: 204 METHODS reactions_delete IMPORTING accept TYPE string DEFAULT 'application/vnd.github.squirrel-girl-preview+json' reaction_id TYPE i RAISING cx_static_check. * GET - "Get a repository" * Operation id: repos/get * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/full-repository * Response: 301 * Response: 403 * Response: 404 METHODS repos_get IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE full_repository RAISING cx_static_check. * PATCH - "Update a repository" * Operation id: repos/update * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/full-repository * Response: 307 * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyrepos_update METHODS repos_update IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_update RETURNING VALUE(return_data) TYPE full_repository RAISING cx_static_check. * DELETE - "Delete a repository" * Operation id: repos/delete * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Response: 307 * Response: 403 * application/json, #/components/schemas/response_repos_delete * Response: 404 * Body ref: #/components/schemas/bodyrepos_delete METHODS repos_delete IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_delete RAISING cx_static_check. * GET - "List assignees" * Operation id: issues/list-assignees * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_assignees * Response: 404 METHODS issues_list_assignees IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_assignees RAISING cx_static_check. * GET - "Check if a user can be assigned" * Operation id: issues/check-user-can-be-assigned * Parameter: assignee, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Response: 404 * application/json, #/components/schemas/basic-error METHODS issues_check_user_can_be_assig IMPORTING assignee TYPE string owner TYPE string repo TYPE string RAISING cx_static_check. * GET - "List branches" * Operation id: repos/list-branches * Parameter: protected, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_branches * Response: 404 METHODS repos_list_branches IMPORTING protected TYPE abap_bool OPTIONAL owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_branches RAISING cx_static_check. * GET - "Get a branch" * Operation id: repos/get-branch * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/branch-with-protection * Response: 301 * Response: 404 * Response: 415 METHODS repos_get_branch IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE branch_with_protection RAISING cx_static_check. * GET - "Get branch protection" * Operation id: repos/get-branch-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/branch-protection * Response: 404 METHODS repos_get_branch_protection IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE branch_protection RAISING cx_static_check. * PUT - "Update branch protection" * Operation id: repos/update-branch-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/protected-branch * Response: 403 * Response: 404 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyrepos_update_branch_protec METHODS repos_update_branch_protection IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE bodyrepos_update_branch_protec RETURNING VALUE(return_data) TYPE protected_branch RAISING cx_static_check. * DELETE - "Delete branch protection" * Operation id: repos/delete-branch-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 204 * Response: 403 * Body ref: #/components/schemas/bodyrepos_delete_branch_protec METHODS repos_delete_branch_protection IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE bodyrepos_delete_branch_protec RAISING cx_static_check. * GET - "Get admin branch protection" * Operation id: repos/get-admin-branch-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/protected-branch-admin-enforced METHODS repos_get_admin_branch_protect IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE protected_branch_admin_enforce RAISING cx_static_check. * POST - "Set admin branch protection" * Operation id: repos/set-admin-branch-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/protected-branch-admin-enforced METHODS repos_set_admin_branch_protect IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE protected_branch_admin_enforce RAISING cx_static_check. * DELETE - "Delete admin branch protection" * Operation id: repos/delete-admin-branch-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 204 * Response: 404 METHODS repos_delete_admin_branch_prot IMPORTING owner TYPE string repo TYPE string branch TYPE string RAISING cx_static_check. * GET - "Get pull request review protection" * Operation id: repos/get-pull-request-review-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/protected-branch-pull-request-review METHODS repos_get_pull_request_review_ IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE protected_branch_pull_request_ RAISING cx_static_check. * PATCH - "Update pull request review protection" * Operation id: repos/update-pull-request-review-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/protected-branch-pull-request-review * Response: 422 * Body ref: #/components/schemas/bodyrepos_update_pull_request_ METHODS repos_update_pull_request_revi IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE bodyrepos_update_pull_request_ RETURNING VALUE(return_data) TYPE protected_branch_pull_request_ RAISING cx_static_check. * DELETE - "Delete pull request review protection" * Operation id: repos/delete-pull-request-review-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 204 * Response: 404 * Body ref: #/components/schemas/bodyrepos_delete_pull_request_ METHODS repos_delete_pull_request_revi IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE bodyrepos_delete_pull_request_ RAISING cx_static_check. * GET - "Get commit signature protection" * Operation id: repos/get-commit-signature-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/protected-branch-admin-enforced * Response: 404 METHODS repos_get_commit_signature_pro IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE protected_branch_admin_enforce RAISING cx_static_check. * POST - "Create commit signature protection" * Operation id: repos/create-commit-signature-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/protected-branch-admin-enforced * Response: 404 METHODS repos_create_commit_signature_ IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE protected_branch_admin_enforce RAISING cx_static_check. * DELETE - "Delete commit signature protection" * Operation id: repos/delete-commit-signature-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 204 * Response: 404 METHODS repos_delete_commit_signature_ IMPORTING owner TYPE string repo TYPE string branch TYPE string RAISING cx_static_check. * GET - "Get status checks protection" * Operation id: repos/get-status-checks-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/status-check-policy * Response: 404 METHODS repos_get_status_checks_protec IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE status_check_policy RAISING cx_static_check. * PATCH - "Update status check protection" * Operation id: repos/update-status-check-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/status-check-policy * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyrepos_update_status_check_ METHODS repos_update_status_check_prot IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE bodyrepos_update_status_check_ RETURNING VALUE(return_data) TYPE status_check_policy RAISING cx_static_check. * DELETE - "Remove status check protection" * Operation id: repos/remove-status-check-protection * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 204 * Body ref: #/components/schemas/bodyrepos_remove_status_check_ METHODS repos_remove_status_check_prot IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE bodyrepos_remove_status_check_ RAISING cx_static_check. * GET - "Get all status check contexts" * Operation id: repos/get-all-status-check-contexts * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_get_all_status_check_con * Response: 404 METHODS repos_get_all_status_check_con IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE response_repos_get_all_status_ RAISING cx_static_check. * POST - "Add status check contexts" * Operation id: repos/add-status-check-contexts * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_add_status_check_context * Response: 403 * Response: 404 * Response: 422 * Body schema: string METHODS repos_add_status_check_context IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_add_status_chec RAISING cx_static_check. * PUT - "Set status check contexts" * Operation id: repos/set-status-check-contexts * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_set_status_check_context * Response: 404 * Response: 422 * Body schema: string METHODS repos_set_status_check_context IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_set_status_chec RAISING cx_static_check. * DELETE - "Remove status check contexts" * Operation id: repos/remove-status-check-contexts * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_remove_status_check_cont * Response: 404 * Response: 422 * Body schema: string METHODS repos_remove_status_check_cont IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_remove_status_c RAISING cx_static_check. * GET - "Get access restrictions" * Operation id: repos/get-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/branch-restriction-policy * Response: 404 METHODS repos_get_access_restrictions IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE branch_restriction_policy RAISING cx_static_check. * DELETE - "Delete access restrictions" * Operation id: repos/delete-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 204 METHODS repos_delete_access_restrictio IMPORTING owner TYPE string repo TYPE string branch TYPE string RAISING cx_static_check. * GET - "Get apps with access to the protected branch" * Operation id: repos/get-apps-with-access-to-protected-branch * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_get_apps_with_access_to_ * Response: 404 METHODS repos_get_apps_with_access_to_ IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE response_repos_get_apps_with_a RAISING cx_static_check. * POST - "Add app access restrictions" * Operation id: repos/add-app-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_add_app_access_restricti * Response: 422 * Body schema: string METHODS repos_add_app_access_restricti IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_add_app_access_ RAISING cx_static_check. * PUT - "Set app access restrictions" * Operation id: repos/set-app-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_set_app_access_restricti * Response: 422 * Body schema: string METHODS repos_set_app_access_restricti IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_set_app_access_ RAISING cx_static_check. * DELETE - "Remove app access restrictions" * Operation id: repos/remove-app-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_remove_app_access_restri * Response: 422 * Body schema: string METHODS repos_remove_app_access_restri IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_remove_app_acce RAISING cx_static_check. * GET - "Get teams with access to the protected branch" * Operation id: repos/get-teams-with-access-to-protected-branch * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_get_teams_with_access_to * Response: 404 METHODS repos_get_teams_with_access_to IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE response_repos_get_teams_with_ RAISING cx_static_check. * POST - "Add team access restrictions" * Operation id: repos/add-team-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_add_team_access_restrict * Response: 422 * Body schema: string METHODS repos_add_team_access_restrict IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_add_team_access RAISING cx_static_check. * PUT - "Set team access restrictions" * Operation id: repos/set-team-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_set_team_access_restrict * Response: 422 * Body schema: string METHODS repos_set_team_access_restrict IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_set_team_access RAISING cx_static_check. * DELETE - "Remove team access restrictions" * Operation id: repos/remove-team-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_remove_team_access_restr * Response: 422 * Body schema: string METHODS repos_remove_team_access_restr IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_remove_team_acc RAISING cx_static_check. * GET - "Get users with access to the protected branch" * Operation id: repos/get-users-with-access-to-protected-branch * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_get_users_with_access_to * Response: 404 METHODS repos_get_users_with_access_to IMPORTING owner TYPE string repo TYPE string branch TYPE string RETURNING VALUE(return_data) TYPE response_repos_get_users_with_ RAISING cx_static_check. * POST - "Add user access restrictions" * Operation id: repos/add-user-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_add_user_access_restrict * Response: 422 * Body schema: string METHODS repos_add_user_access_restrict IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_add_user_access RAISING cx_static_check. * PUT - "Set user access restrictions" * Operation id: repos/set-user-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_set_user_access_restrict * Response: 422 * Body schema: string METHODS repos_set_user_access_restrict IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_set_user_access RAISING cx_static_check. * DELETE - "Remove user access restrictions" * Operation id: repos/remove-user-access-restrictions * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: branch, required, path * Response: 200 * application/json, #/components/schemas/response_repos_remove_user_access_restr * Response: 422 * Body schema: string METHODS repos_remove_user_access_restr IMPORTING owner TYPE string repo TYPE string branch TYPE string body TYPE string RETURNING VALUE(return_data) TYPE response_repos_remove_user_acc RAISING cx_static_check. * POST - "Create a check run" * Operation id: checks/create * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/check-run * Body ref: #/components/schemas/bodychecks_create METHODS checks_create IMPORTING owner TYPE string repo TYPE string body TYPE bodychecks_create RETURNING VALUE(return_data) TYPE check_run RAISING cx_static_check. * GET - "Get a check run" * Operation id: checks/get * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: check_run_id, required, path * Response: 200 * application/json, #/components/schemas/check-run METHODS checks_get IMPORTING owner TYPE string repo TYPE string check_run_id TYPE i RETURNING VALUE(return_data) TYPE check_run RAISING cx_static_check. * PATCH - "Update a check run" * Operation id: checks/update * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: check_run_id, required, path * Response: 200 * application/json, #/components/schemas/check-run * Body ref: #/components/schemas/bodychecks_update METHODS checks_update IMPORTING owner TYPE string repo TYPE string check_run_id TYPE i body TYPE bodychecks_update RETURNING VALUE(return_data) TYPE check_run RAISING cx_static_check. * GET - "List check run annotations" * Operation id: checks/list-annotations * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: check_run_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_checks_list_annotations METHODS checks_list_annotations IMPORTING owner TYPE string repo TYPE string check_run_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_checks_list_annotatio RAISING cx_static_check. * POST - "Create a check suite" * Operation id: checks/create-suite * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/check-suite * Response: 201 * application/json, #/components/schemas/check-suite * Body ref: #/components/schemas/bodychecks_create_suite METHODS checks_create_suite IMPORTING owner TYPE string repo TYPE string body TYPE bodychecks_create_suite RETURNING VALUE(return_data) TYPE check_suite RAISING cx_static_check. * PATCH - "Update repository preferences for check suites" * Operation id: checks/set-suites-preferences * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/check-suite-preference * Body ref: #/components/schemas/bodychecks_set_suites_preferen METHODS checks_set_suites_preferences IMPORTING owner TYPE string repo TYPE string body TYPE bodychecks_set_suites_preferen RETURNING VALUE(return_data) TYPE check_suite_preference RAISING cx_static_check. * GET - "Get a check suite" * Operation id: checks/get-suite * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: check_suite_id, required, path * Response: 200 * application/json, #/components/schemas/check-suite METHODS checks_get_suite IMPORTING owner TYPE string repo TYPE string check_suite_id TYPE i RETURNING VALUE(return_data) TYPE check_suite RAISING cx_static_check. * GET - "List check runs in a check suite" * Operation id: checks/list-for-suite * Parameter: filter, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: check_suite_id, required, path * Parameter: check_name, optional, query * Parameter: status, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_checks_list_for_suite METHODS checks_list_for_suite IMPORTING filter TYPE string DEFAULT 'latest' owner TYPE string repo TYPE string check_suite_id TYPE i check_name TYPE string OPTIONAL status TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_checks_list_for_suite RAISING cx_static_check. * POST - "Rerequest a check suite" * Operation id: checks/rerequest-suite * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: check_suite_id, required, path * Response: 201 * application/json, #/components/schemas/response_checks_rerequest_suite METHODS checks_rerequest_suite IMPORTING owner TYPE string repo TYPE string check_suite_id TYPE i RETURNING VALUE(return_data) TYPE response_checks_rerequest_suit RAISING cx_static_check. * GET - "List repository collaborators" * Operation id: repos/list-collaborators * Parameter: affiliation, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_collaborators * Response: 404 METHODS repos_list_collaborators IMPORTING affiliation TYPE string DEFAULT 'all' owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_collaborat RAISING cx_static_check. * GET - "Check if a user is a repository collaborator" * Operation id: repos/check-collaborator * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: username, required, path * Response: 204 * Response: 404 METHODS repos_check_collaborator IMPORTING owner TYPE string repo TYPE string username TYPE string RAISING cx_static_check. * PUT - "Add a repository collaborator" * Operation id: repos/add-collaborator * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: username, required, path * Response: 201 * application/json, #/components/schemas/repository-invitation * Response: 204 * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodyrepos_add_collaborator METHODS repos_add_collaborator IMPORTING owner TYPE string repo TYPE string username TYPE string body TYPE bodyrepos_add_collaborator RETURNING VALUE(return_data) TYPE repository_invitation RAISING cx_static_check. * DELETE - "Remove a repository collaborator" * Operation id: repos/remove-collaborator * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: username, required, path * Response: 204 * Body ref: #/components/schemas/bodyrepos_remove_collaborator METHODS repos_remove_collaborator IMPORTING owner TYPE string repo TYPE string username TYPE string body TYPE bodyrepos_remove_collaborator RAISING cx_static_check. * GET - "Get repository permissions for a user" * Operation id: repos/get-collaborator-permission-level * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/repository-collaborator-permission * Response: 404 METHODS repos_get_collaborator_permiss IMPORTING owner TYPE string repo TYPE string username TYPE string RETURNING VALUE(return_data) TYPE repository_collaborator_permis RAISING cx_static_check. * GET - "List commit comments for a repository" * Operation id: repos/list-commit-comments-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_commit_comments_for METHODS repos_list_commit_comments_for IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_commit_com RAISING cx_static_check. * GET - "Get a commit comment" * Operation id: repos/get-commit-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/commit-comment * Response: 404 METHODS repos_get_commit_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i RETURNING VALUE(return_data) TYPE commit_comment RAISING cx_static_check. * PATCH - "Update a commit comment" * Operation id: repos/update-commit-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/commit-comment * Response: 404 * Body ref: #/components/schemas/bodyrepos_update_commit_commen METHODS repos_update_commit_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodyrepos_update_commit_commen RETURNING VALUE(return_data) TYPE commit_comment RAISING cx_static_check. * DELETE - "Delete a commit comment" * Operation id: repos/delete-commit-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 204 * Response: 404 * Body ref: #/components/schemas/bodyrepos_delete_commit_commen METHODS repos_delete_commit_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodyrepos_delete_commit_commen RAISING cx_static_check. * GET - "List reactions for a commit comment" * Operation id: reactions/list-for-commit-comment * Parameter: content, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_reactions_list_for_commit_comm * Response: 404 * Response: 415 METHODS reactions_list_for_commit_comm IMPORTING content TYPE string OPTIONAL owner TYPE string repo TYPE string comment_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_reactions_list_for_co RAISING cx_static_check. * POST - "Create reaction for a commit comment" * Operation id: reactions/create-for-commit-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/reaction * Response: 201 * application/json, #/components/schemas/reaction * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyreactions_create_for_commi METHODS reactions_create_for_commit_co IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodyreactions_create_for_commi RETURNING VALUE(return_data) TYPE reaction RAISING cx_static_check. * GET - "List commits" * Operation id: repos/list-commits * Parameter: sha, optional, query * Parameter: path, optional, query * Parameter: author, optional, query * Parameter: until, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_commits * Response: 400 * Response: 404 * Response: 409 * Response: 500 METHODS repos_list_commits IMPORTING sha TYPE string OPTIONAL path TYPE string OPTIONAL author TYPE string OPTIONAL until TYPE string OPTIONAL owner TYPE string repo TYPE string since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_commits RAISING cx_static_check. * GET - "List branches for HEAD commit" * Operation id: repos/list-branches-for-head-commit * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: commit_sha, required, path * Response: 200 * application/json, #/components/schemas/response_repos_list_branches_for_head_c * Response: 415 * Response: 422 METHODS repos_list_branches_for_head_c IMPORTING owner TYPE string repo TYPE string commit_sha TYPE string RETURNING VALUE(return_data) TYPE response_repos_list_branches_f RAISING cx_static_check. * GET - "List commit comments" * Operation id: repos/list-comments-for-commit * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: commit_sha, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_comments_for_commit METHODS repos_list_comments_for_commit IMPORTING owner TYPE string repo TYPE string commit_sha TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_comments_f RAISING cx_static_check. * POST - "Create a commit comment" * Operation id: repos/create-commit-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: commit_sha, required, path * Response: 201 * application/json, #/components/schemas/commit-comment * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_commit_commen METHODS repos_create_commit_comment IMPORTING owner TYPE string repo TYPE string commit_sha TYPE string body TYPE bodyrepos_create_commit_commen RETURNING VALUE(return_data) TYPE commit_comment RAISING cx_static_check. * GET - "List pull requests associated with a commit" * Operation id: repos/list-pull-requests-associated-with-commit * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: commit_sha, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_pull_requests_assoc * Response: 415 METHODS repos_list_pull_requests_assoc IMPORTING owner TYPE string repo TYPE string commit_sha TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_pull_reque RAISING cx_static_check. * GET - "Get a commit" * Operation id: repos/get-commit * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: page, optional, query * Parameter: per_page, optional, query * Response: 200 * application/json, #/components/schemas/commit * Response: 404 * Response: 422 * Response: 500 METHODS repos_get_commit IMPORTING ref TYPE string owner TYPE string repo TYPE string page TYPE i DEFAULT 1 per_page TYPE i DEFAULT 30 RETURNING VALUE(return_data) TYPE commit RAISING cx_static_check. * GET - "List check runs for a Git reference" * Operation id: checks/list-for-ref * Parameter: ref, required, path * Parameter: filter, optional, query * Parameter: app_id, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: check_name, optional, query * Parameter: status, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_checks_list_for_ref METHODS checks_list_for_ref IMPORTING ref TYPE string filter TYPE string DEFAULT 'latest' app_id TYPE i OPTIONAL owner TYPE string repo TYPE string check_name TYPE string OPTIONAL status TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_checks_list_for_ref RAISING cx_static_check. * GET - "List check suites for a Git reference" * Operation id: checks/list-suites-for-ref * Parameter: ref, required, path * Parameter: app_id, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: check_name, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_checks_list_suites_for_ref METHODS checks_list_suites_for_ref IMPORTING ref TYPE string app_id TYPE i OPTIONAL owner TYPE string repo TYPE string check_name TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_checks_list_suites_fo RAISING cx_static_check. * GET - "Get the combined status for a specific reference" * Operation id: repos/get-combined-status-for-ref * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/combined-commit-status * Response: 404 METHODS repos_get_combined_status_for_ IMPORTING ref TYPE string owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE combined_commit_status RAISING cx_static_check. * GET - "List commit statuses for a reference" * Operation id: repos/list-commit-statuses-for-ref * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_commit_statuses_for * Response: 301 METHODS repos_list_commit_statuses_for IMPORTING ref TYPE string owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_commit_sta RAISING cx_static_check. * GET - "Compare two commits" * Operation id: repos/compare-commits * Parameter: basehead, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/commit-comparison * Response: 404 * Response: 500 METHODS repos_compare_commits IMPORTING basehead TYPE string owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE commit_comparison RAISING cx_static_check. * POST - "Create a content attachment" * Operation id: apps/create-content-attachment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: content_reference_id, required, path * Response: 200 * application/json, #/components/schemas/content-reference-attachment * Response: 304 * Response: 403 * Response: 404 * Response: 410 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyapps_create_content_attach METHODS apps_create_content_attachment IMPORTING owner TYPE string repo TYPE string content_reference_id TYPE i body TYPE bodyapps_create_content_attach RETURNING VALUE(return_data) TYPE content_reference_attachment RAISING cx_static_check. * GET - "Get repository content" * Operation id: repos/get-content * Parameter: path, required, path * Parameter: ref, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/vnd.github.v3.object, #/components/schemas/content-tree * application/json, string * Response: 302 * Response: 403 * Response: 404 METHODS repos_get_content IMPORTING path TYPE string ref TYPE string OPTIONAL owner TYPE string repo TYPE string RAISING cx_static_check. * PUT - "Create or update file contents" * Operation id: repos/create-or-update-file-contents * Parameter: path, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/file-commit * Response: 201 * application/json, #/components/schemas/file-commit * Response: 404 * Response: 409 * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_or_update_fil METHODS repos_create_or_update_file_co IMPORTING path TYPE string owner TYPE string repo TYPE string body TYPE bodyrepos_create_or_update_fil RETURNING VALUE(return_data) TYPE file_commit RAISING cx_static_check. * DELETE - "Delete a file" * Operation id: repos/delete-file * Parameter: path, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/file-commit * Response: 404 * Response: 409 * Response: 422 * Response: 503 * Body ref: #/components/schemas/bodyrepos_delete_file METHODS repos_delete_file IMPORTING path TYPE string owner TYPE string repo TYPE string body TYPE bodyrepos_delete_file RETURNING VALUE(return_data) TYPE file_commit RAISING cx_static_check. * GET - "List repository contributors" * Operation id: repos/list-contributors * Parameter: anon, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_contributors * Response: 204 * Response: 403 * Response: 404 METHODS repos_list_contributors IMPORTING anon TYPE string OPTIONAL owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_contributo RAISING cx_static_check. * GET - "List deployments" * Operation id: repos/list-deployments * Parameter: sha, optional, query * Parameter: ref, optional, query * Parameter: task, optional, query * Parameter: environment, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_deployments METHODS repos_list_deployments IMPORTING sha TYPE string DEFAULT 'none' ref TYPE string DEFAULT 'none' task TYPE string DEFAULT 'none' environment TYPE string DEFAULT 'none' owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_deployment RAISING cx_static_check. * POST - "Create a deployment" * Operation id: repos/create-deployment * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/deployment * Response: 202 * application/json, #/components/schemas/response_repos_create_deployment * Response: 409 * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_deployment METHODS repos_create_deployment IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_create_deployment RETURNING VALUE(return_data) TYPE deployment RAISING cx_static_check. * GET - "Get a deployment" * Operation id: repos/get-deployment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: deployment_id, required, path * Response: 200 * application/json, #/components/schemas/deployment * Response: 404 METHODS repos_get_deployment IMPORTING owner TYPE string repo TYPE string deployment_id TYPE i RETURNING VALUE(return_data) TYPE deployment RAISING cx_static_check. * GET - "List deployment statuses" * Operation id: repos/list-deployment-statuses * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: deployment_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_deployment_statuses * Response: 404 METHODS repos_list_deployment_statuses IMPORTING owner TYPE string repo TYPE string deployment_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_deployme01 RAISING cx_static_check. * POST - "Create a deployment status" * Operation id: repos/create-deployment-status * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: deployment_id, required, path * Response: 201 * application/json, #/components/schemas/deployment-status * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_deployment_st METHODS repos_create_deployment_status IMPORTING owner TYPE string repo TYPE string deployment_id TYPE i body TYPE bodyrepos_create_deployment_st RETURNING VALUE(return_data) TYPE deployment_status RAISING cx_static_check. * GET - "Get a deployment status" * Operation id: repos/get-deployment-status * Parameter: status_id, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: deployment_id, required, path * Response: 200 * application/json, #/components/schemas/deployment-status * Response: 404 * Response: 415 METHODS repos_get_deployment_status IMPORTING status_id TYPE i owner TYPE string repo TYPE string deployment_id TYPE i RETURNING VALUE(return_data) TYPE deployment_status RAISING cx_static_check. * GET - "List repository events" * Operation id: activity/list-repo-events * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_repo_events METHODS activity_list_repo_events IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_repo_ev RAISING cx_static_check. * GET - "List forks" * Operation id: repos/list-forks * Parameter: sort, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_forks * Response: 400 METHODS repos_list_forks IMPORTING sort TYPE string DEFAULT 'newest' owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_forks RAISING cx_static_check. * POST - "Create a fork" * Operation id: repos/create-fork * Parameter: owner, required, path * Parameter: repo, required, path * Response: 202 * application/json, #/components/schemas/full-repository * Response: 400 * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_fork METHODS repos_create_fork IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_create_fork RAISING cx_static_check. * POST - "Create a blob" * Operation id: git/create-blob * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/short-blob * Response: 403 * Response: 404 * Response: 409 * Response: 422 * Body ref: #/components/schemas/bodygit_create_blob METHODS git_create_blob IMPORTING owner TYPE string repo TYPE string body TYPE bodygit_create_blob RETURNING VALUE(return_data) TYPE short_blob RAISING cx_static_check. * GET - "Get a blob" * Operation id: git/get-blob * Parameter: file_sha, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/blob * Response: 403 * Response: 404 * Response: 422 METHODS git_get_blob IMPORTING file_sha TYPE string owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE blob RAISING cx_static_check. * POST - "Create a commit" * Operation id: git/create-commit * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/git-commit * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodygit_create_commit METHODS git_create_commit IMPORTING owner TYPE string repo TYPE string body TYPE bodygit_create_commit RETURNING VALUE(return_data) TYPE git_commit RAISING cx_static_check. * GET - "Get a commit" * Operation id: git/get-commit * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: commit_sha, required, path * Response: 200 * application/json, #/components/schemas/git-commit * Response: 404 METHODS git_get_commit IMPORTING owner TYPE string repo TYPE string commit_sha TYPE string RETURNING VALUE(return_data) TYPE git_commit RAISING cx_static_check. * GET - "List matching references" * Operation id: git/list-matching-refs * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_git_list_matching_refs METHODS git_list_matching_refs IMPORTING ref TYPE string owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_git_list_matching_ref RAISING cx_static_check. * GET - "Get a reference" * Operation id: git/get-ref * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/git-ref * Response: 404 METHODS git_get_ref IMPORTING ref TYPE string owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE git_ref RAISING cx_static_check. * POST - "Create a reference" * Operation id: git/create-ref * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/git-ref * Response: 422 * Body ref: #/components/schemas/bodygit_create_ref METHODS git_create_ref IMPORTING owner TYPE string repo TYPE string body TYPE bodygit_create_ref RETURNING VALUE(return_data) TYPE git_ref RAISING cx_static_check. * PATCH - "Update a reference" * Operation id: git/update-ref * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/git-ref * Response: 422 * Body ref: #/components/schemas/bodygit_update_ref METHODS git_update_ref IMPORTING ref TYPE string owner TYPE string repo TYPE string body TYPE bodygit_update_ref RETURNING VALUE(return_data) TYPE git_ref RAISING cx_static_check. * DELETE - "Delete a reference" * Operation id: git/delete-ref * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Response: 422 * Body ref: #/components/schemas/bodygit_delete_ref METHODS git_delete_ref IMPORTING ref TYPE string owner TYPE string repo TYPE string body TYPE bodygit_delete_ref RAISING cx_static_check. * POST - "Create a tag object" * Operation id: git/create-tag * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/git-tag * Response: 422 * Body ref: #/components/schemas/bodygit_create_tag METHODS git_create_tag IMPORTING owner TYPE string repo TYPE string body TYPE bodygit_create_tag RETURNING VALUE(return_data) TYPE git_tag RAISING cx_static_check. * GET - "Get a tag" * Operation id: git/get-tag * Parameter: tag_sha, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/git-tag * Response: 404 METHODS git_get_tag IMPORTING tag_sha TYPE string owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE git_tag RAISING cx_static_check. * POST - "Create a tree" * Operation id: git/create-tree * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/git-tree * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodygit_create_tree METHODS git_create_tree IMPORTING owner TYPE string repo TYPE string body TYPE bodygit_create_tree RETURNING VALUE(return_data) TYPE git_tree RAISING cx_static_check. * GET - "Get a tree" * Operation id: git/get-tree * Parameter: tree_sha, required, path * Parameter: recursive, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/git-tree * Response: 404 * Response: 422 METHODS git_get_tree IMPORTING tree_sha TYPE string recursive TYPE string OPTIONAL owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE git_tree RAISING cx_static_check. * GET - "List repository webhooks" * Operation id: repos/list-webhooks * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_webhooks * Response: 404 METHODS repos_list_webhooks IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_webhooks RAISING cx_static_check. * POST - "Create a repository webhook" * Operation id: repos/create-webhook * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/hook * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_webhook METHODS repos_create_webhook IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_create_webhook RETURNING VALUE(return_data) TYPE hook RAISING cx_static_check. * GET - "Get a repository webhook" * Operation id: repos/get-webhook * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: hook_id, required, path * Response: 200 * application/json, #/components/schemas/hook * Response: 404 METHODS repos_get_webhook IMPORTING owner TYPE string repo TYPE string hook_id TYPE i RETURNING VALUE(return_data) TYPE hook RAISING cx_static_check. * PATCH - "Update a repository webhook" * Operation id: repos/update-webhook * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: hook_id, required, path * Response: 200 * application/json, #/components/schemas/hook * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyrepos_update_webhook METHODS repos_update_webhook IMPORTING owner TYPE string repo TYPE string hook_id TYPE i body TYPE bodyrepos_update_webhook RETURNING VALUE(return_data) TYPE hook RAISING cx_static_check. * DELETE - "Delete a repository webhook" * Operation id: repos/delete-webhook * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: hook_id, required, path * Response: 204 * Response: 404 * Body ref: #/components/schemas/bodyrepos_delete_webhook METHODS repos_delete_webhook IMPORTING owner TYPE string repo TYPE string hook_id TYPE i body TYPE bodyrepos_delete_webhook RAISING cx_static_check. * POST - "Ping a repository webhook" * Operation id: repos/ping-webhook * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: hook_id, required, path * Response: 204 * Response: 404 METHODS repos_ping_webhook IMPORTING owner TYPE string repo TYPE string hook_id TYPE i RAISING cx_static_check. * POST - "Test the push repository webhook" * Operation id: repos/test-push-webhook * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: hook_id, required, path * Response: 204 * Response: 404 METHODS repos_test_push_webhook IMPORTING owner TYPE string repo TYPE string hook_id TYPE i RAISING cx_static_check. * GET - "Get a repository installation for the authenticated app" * Operation id: apps/get-repo-installation * Parameter: accept, required, header * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/installation-ghes-2 * Response: 301 * Response: 404 METHODS apps_get_repo_installation IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE installation_ghes_2 RAISING cx_static_check. * GET - "List repository invitations" * Operation id: repos/list-invitations * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_invitations METHODS repos_list_invitations IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_invitation RAISING cx_static_check. * PATCH - "Update a repository invitation" * Operation id: repos/update-invitation * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: invitation_id, required, path * Response: 200 * application/json, #/components/schemas/repository-invitation * Body ref: #/components/schemas/bodyrepos_update_invitation METHODS repos_update_invitation IMPORTING owner TYPE string repo TYPE string invitation_id TYPE i body TYPE bodyrepos_update_invitation RETURNING VALUE(return_data) TYPE repository_invitation RAISING cx_static_check. * DELETE - "Delete a repository invitation" * Operation id: repos/delete-invitation * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: invitation_id, required, path * Response: 204 * Body ref: #/components/schemas/bodyrepos_delete_invitation METHODS repos_delete_invitation IMPORTING owner TYPE string repo TYPE string invitation_id TYPE i body TYPE bodyrepos_delete_invitation RAISING cx_static_check. * GET - "List repository issues" * Operation id: issues/list-for-repo * Parameter: milestone, optional, query * Parameter: state, optional, query * Parameter: assignee, optional, query * Parameter: creator, optional, query * Parameter: mentioned, optional, query * Parameter: sort, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: labels, optional, query * Parameter: direction, optional, query * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_for_repo * Response: 301 * Response: 404 * Response: 422 METHODS issues_list_for_repo IMPORTING milestone TYPE string OPTIONAL state TYPE string DEFAULT 'open' assignee TYPE string OPTIONAL creator TYPE string OPTIONAL mentioned TYPE string OPTIONAL sort TYPE string DEFAULT 'created' owner TYPE string repo TYPE string labels TYPE string OPTIONAL direction TYPE string DEFAULT 'desc' since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_for_repo RAISING cx_static_check. * POST - "Create an issue" * Operation id: issues/create * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/issue * Response: 403 * Response: 404 * Response: 410 * Response: 422 * Response: 503 * Body ref: #/components/schemas/bodyissues_create METHODS issues_create IMPORTING owner TYPE string repo TYPE string body TYPE bodyissues_create RETURNING VALUE(return_data) TYPE issue RAISING cx_static_check. * GET - "List issue comments for a repository" * Operation id: issues/list-comments-for-repo * Parameter: direction, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: sort, optional, query * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_comments_for_repo * Response: 404 * Response: 422 METHODS issues_list_comments_for_repo IMPORTING direction TYPE string OPTIONAL owner TYPE string repo TYPE string sort TYPE string DEFAULT 'created' since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_comments_ RAISING cx_static_check. * GET - "Get an issue comment" * Operation id: issues/get-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/issue-comment * Response: 404 METHODS issues_get_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i RETURNING VALUE(return_data) TYPE issue_comment RAISING cx_static_check. * PATCH - "Update an issue comment" * Operation id: issues/update-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/issue-comment * Response: 422 * Body ref: #/components/schemas/bodyissues_update_comment METHODS issues_update_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodyissues_update_comment RETURNING VALUE(return_data) TYPE issue_comment RAISING cx_static_check. * DELETE - "Delete an issue comment" * Operation id: issues/delete-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 204 * Body ref: #/components/schemas/bodyissues_delete_comment METHODS issues_delete_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodyissues_delete_comment RAISING cx_static_check. * GET - "List reactions for an issue comment" * Operation id: reactions/list-for-issue-comment * Parameter: content, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_reactions_list_for_issue_comme * Response: 404 * Response: 415 METHODS reactions_list_for_issue_comme IMPORTING content TYPE string OPTIONAL owner TYPE string repo TYPE string comment_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_reactions_list_for_is RAISING cx_static_check. * POST - "Create reaction for an issue comment" * Operation id: reactions/create-for-issue-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/reaction * Response: 201 * application/json, #/components/schemas/reaction * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyreactions_create_for_issue METHODS reactions_create_for_issue_com IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodyreactions_create_for_issue RETURNING VALUE(return_data) TYPE reaction RAISING cx_static_check. * GET - "List issue events for a repository" * Operation id: issues/list-events-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_events_for_repo * Response: 422 METHODS issues_list_events_for_repo IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_events_fo RAISING cx_static_check. * GET - "Get an issue event" * Operation id: issues/get-event * Parameter: event_id, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/issue-event * Response: 403 * Response: 404 * Response: 410 METHODS issues_get_event IMPORTING event_id TYPE i owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE issue_event RAISING cx_static_check. * GET - "Get an issue" * Operation id: issues/get * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 200 * application/json, #/components/schemas/issue * Response: 301 * Response: 304 * Response: 404 * Response: 410 METHODS issues_get IMPORTING owner TYPE string repo TYPE string issue_number TYPE i RETURNING VALUE(return_data) TYPE issue RAISING cx_static_check. * PATCH - "Update an issue" * Operation id: issues/update * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 200 * application/json, #/components/schemas/issue * Response: 301 * Response: 403 * Response: 404 * Response: 410 * Response: 422 * Response: 503 * Body ref: #/components/schemas/bodyissues_update METHODS issues_update IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE bodyissues_update RETURNING VALUE(return_data) TYPE issue RAISING cx_static_check. * POST - "Add assignees to an issue" * Operation id: issues/add-assignees * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 201 * application/json, #/components/schemas/issue-simple * Body ref: #/components/schemas/bodyissues_add_assignees METHODS issues_add_assignees IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE bodyissues_add_assignees RETURNING VALUE(return_data) TYPE issue_simple RAISING cx_static_check. * DELETE - "Remove assignees from an issue" * Operation id: issues/remove-assignees * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 200 * application/json, #/components/schemas/issue-simple * Body ref: #/components/schemas/bodyissues_remove_assignees METHODS issues_remove_assignees IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE bodyissues_remove_assignees RETURNING VALUE(return_data) TYPE issue_simple RAISING cx_static_check. * GET - "List issue comments" * Operation id: issues/list-comments * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_comments * Response: 404 * Response: 410 METHODS issues_list_comments IMPORTING owner TYPE string repo TYPE string issue_number TYPE i since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_comments RAISING cx_static_check. * POST - "Create an issue comment" * Operation id: issues/create-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 201 * application/json, #/components/schemas/issue-comment * Response: 403 * Response: 404 * Response: 410 * Response: 422 * Body ref: #/components/schemas/bodyissues_create_comment METHODS issues_create_comment IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE bodyissues_create_comment RETURNING VALUE(return_data) TYPE issue_comment RAISING cx_static_check. * GET - "List issue events" * Operation id: issues/list-events * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_events * Response: 410 METHODS issues_list_events IMPORTING owner TYPE string repo TYPE string issue_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_events RAISING cx_static_check. * GET - "List labels for an issue" * Operation id: issues/list-labels-on-issue * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_labels_on_issue * Response: 410 METHODS issues_list_labels_on_issue IMPORTING owner TYPE string repo TYPE string issue_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_labels_on RAISING cx_static_check. * POST - "Add labels to an issue" * Operation id: issues/add-labels * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 200 * application/json, #/components/schemas/response_issues_add_labels * Response: 410 * Response: 422 * Body schema: string METHODS issues_add_labels IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE string RETURNING VALUE(return_data) TYPE response_issues_add_labels RAISING cx_static_check. * PUT - "Set labels for an issue" * Operation id: issues/set-labels * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 200 * application/json, #/components/schemas/response_issues_set_labels * Response: 410 * Response: 422 * Body schema: string METHODS issues_set_labels IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE string RETURNING VALUE(return_data) TYPE response_issues_set_labels RAISING cx_static_check. * DELETE - "Remove all labels from an issue" * Operation id: issues/remove-all-labels * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 204 * Response: 410 * Body schema: string METHODS issues_remove_all_labels IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE string RAISING cx_static_check. * DELETE - "Remove a label from an issue" * Operation id: issues/remove-label * Parameter: name, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 200 * application/json, #/components/schemas/response_issues_remove_label * Response: 404 * Response: 410 METHODS issues_remove_label IMPORTING name TYPE string owner TYPE string repo TYPE string issue_number TYPE i RETURNING VALUE(return_data) TYPE response_issues_remove_label RAISING cx_static_check. * PUT - "Lock an issue" * Operation id: issues/lock * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 204 * Response: 403 * Response: 404 * Response: 410 * Response: 422 * Body ref: #/components/schemas/bodyissues_lock METHODS issues_lock IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE bodyissues_lock RAISING cx_static_check. * DELETE - "Unlock an issue" * Operation id: issues/unlock * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 204 * Response: 403 * Response: 404 * Body ref: #/components/schemas/bodyissues_unlock METHODS issues_unlock IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE bodyissues_unlock RAISING cx_static_check. * GET - "List reactions for an issue" * Operation id: reactions/list-for-issue * Parameter: content, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_reactions_list_for_issue * Response: 404 * Response: 410 * Response: 415 METHODS reactions_list_for_issue IMPORTING content TYPE string OPTIONAL owner TYPE string repo TYPE string issue_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_reactions_list_for_01 RAISING cx_static_check. * POST - "Create reaction for an issue" * Operation id: reactions/create-for-issue * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Response: 200 * application/json, #/components/schemas/reaction * Response: 201 * application/json, #/components/schemas/reaction * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyreactions_create_for_iss01 METHODS reactions_create_for_issue IMPORTING owner TYPE string repo TYPE string issue_number TYPE i body TYPE bodyreactions_create_for_iss01 RETURNING VALUE(return_data) TYPE reaction RAISING cx_static_check. * GET - "List timeline events for an issue" * Operation id: issues/list-events-for-timeline * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: issue_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_events_for_timelin * Response: 404 * Response: 410 METHODS issues_list_events_for_timelin IMPORTING owner TYPE string repo TYPE string issue_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_events_01 RAISING cx_static_check. * GET - "List deploy keys" * Operation id: repos/list-deploy-keys * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_deploy_keys METHODS repos_list_deploy_keys IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_deploy_key RAISING cx_static_check. * POST - "Create a deploy key" * Operation id: repos/create-deploy-key * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/deploy-key * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_deploy_key METHODS repos_create_deploy_key IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_create_deploy_key RETURNING VALUE(return_data) TYPE deploy_key RAISING cx_static_check. * GET - "Get a deploy key" * Operation id: repos/get-deploy-key * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: key_id, required, path * Response: 200 * application/json, #/components/schemas/deploy-key * Response: 404 METHODS repos_get_deploy_key IMPORTING owner TYPE string repo TYPE string key_id TYPE i RETURNING VALUE(return_data) TYPE deploy_key RAISING cx_static_check. * DELETE - "Delete a deploy key" * Operation id: repos/delete-deploy-key * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: key_id, required, path * Response: 204 METHODS repos_delete_deploy_key IMPORTING owner TYPE string repo TYPE string key_id TYPE i RAISING cx_static_check. * GET - "List labels for a repository" * Operation id: issues/list-labels-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_labels_for_repo * Response: 404 METHODS issues_list_labels_for_repo IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_labels_fo RAISING cx_static_check. * POST - "Create a label" * Operation id: issues/create-label * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/label * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyissues_create_label METHODS issues_create_label IMPORTING owner TYPE string repo TYPE string body TYPE bodyissues_create_label RETURNING VALUE(return_data) TYPE label RAISING cx_static_check. * GET - "Get a label" * Operation id: issues/get-label * Parameter: name, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/label * Response: 404 METHODS issues_get_label IMPORTING name TYPE string owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE label RAISING cx_static_check. * PATCH - "Update a label" * Operation id: issues/update-label * Parameter: name, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/label * Body ref: #/components/schemas/bodyissues_update_label METHODS issues_update_label IMPORTING name TYPE string owner TYPE string repo TYPE string body TYPE bodyissues_update_label RETURNING VALUE(return_data) TYPE label RAISING cx_static_check. * DELETE - "Delete a label" * Operation id: issues/delete-label * Parameter: name, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Body ref: #/components/schemas/bodyissues_delete_label METHODS issues_delete_label IMPORTING name TYPE string owner TYPE string repo TYPE string body TYPE bodyissues_delete_label RAISING cx_static_check. * GET - "List repository languages" * Operation id: repos/list-languages * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/language METHODS repos_list_languages IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE language RAISING cx_static_check. * GET - "Get the license for a repository" * Operation id: licenses/get-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/license-content METHODS licenses_get_for_repo IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE license_content RAISING cx_static_check. * POST - "Merge a branch" * Operation id: repos/merge * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/commit * Response: 204 * Response: 403 * Response: 404 * Response: 409 * Response: 422 * Body ref: #/components/schemas/bodyrepos_merge METHODS repos_merge IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_merge RETURNING VALUE(return_data) TYPE commit RAISING cx_static_check. * GET - "List milestones" * Operation id: issues/list-milestones * Parameter: state, optional, query * Parameter: sort, optional, query * Parameter: direction, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_milestones * Response: 404 METHODS issues_list_milestones IMPORTING state TYPE string DEFAULT 'open' sort TYPE string DEFAULT 'due_on' direction TYPE string DEFAULT 'asc' owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_milestone RAISING cx_static_check. * POST - "Create a milestone" * Operation id: issues/create-milestone * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/milestone * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyissues_create_milestone METHODS issues_create_milestone IMPORTING owner TYPE string repo TYPE string body TYPE bodyissues_create_milestone RETURNING VALUE(return_data) TYPE milestone RAISING cx_static_check. * GET - "Get a milestone" * Operation id: issues/get-milestone * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: milestone_number, required, path * Response: 200 * application/json, #/components/schemas/milestone * Response: 404 METHODS issues_get_milestone IMPORTING owner TYPE string repo TYPE string milestone_number TYPE i RETURNING VALUE(return_data) TYPE milestone RAISING cx_static_check. * PATCH - "Update a milestone" * Operation id: issues/update-milestone * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: milestone_number, required, path * Response: 200 * application/json, #/components/schemas/milestone * Body ref: #/components/schemas/bodyissues_update_milestone METHODS issues_update_milestone IMPORTING owner TYPE string repo TYPE string milestone_number TYPE i body TYPE bodyissues_update_milestone RETURNING VALUE(return_data) TYPE milestone RAISING cx_static_check. * DELETE - "Delete a milestone" * Operation id: issues/delete-milestone * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: milestone_number, required, path * Response: 204 * Response: 404 * Body ref: #/components/schemas/bodyissues_delete_milestone METHODS issues_delete_milestone IMPORTING owner TYPE string repo TYPE string milestone_number TYPE i body TYPE bodyissues_delete_milestone RAISING cx_static_check. * GET - "List labels for issues in a milestone" * Operation id: issues/list-labels-for-milestone * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: milestone_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_labels_for_milesto METHODS issues_list_labels_for_milesto IMPORTING owner TYPE string repo TYPE string milestone_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_labels_01 RAISING cx_static_check. * GET - "List repository notifications for the authenticated user" * Operation id: activity/list-repo-notifications-for-authenticated-user * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: all, optional, query * Parameter: participating, optional, query * Parameter: since, optional, query * Parameter: before, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_repo_notificatio METHODS activity_list_repo_notificatio IMPORTING owner TYPE string repo TYPE string all TYPE abap_bool DEFAULT abap_false participating TYPE abap_bool DEFAULT abap_false since TYPE string OPTIONAL before TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_repo_no RAISING cx_static_check. * PUT - "Mark repository notifications as read" * Operation id: activity/mark-repo-notifications-as-read * Parameter: owner, required, path * Parameter: repo, required, path * Response: 202 * application/json, #/components/schemas/response_activity_mark_repo_notificatio * Response: 205 * Body ref: #/components/schemas/bodyactivity_mark_repo_notific METHODS activity_mark_repo_notificatio IMPORTING owner TYPE string repo TYPE string body TYPE bodyactivity_mark_repo_notific RAISING cx_static_check. * GET - "Get a GitHub Enterprise Server Pages site" * Operation id: repos/get-pages * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/page * Response: 404 METHODS repos_get_pages IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE page RAISING cx_static_check. * POST - "Create a GitHub Pages site" * Operation id: repos/create-pages-site * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/page * Response: 409 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_pages_site METHODS repos_create_pages_site IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_create_pages_site RETURNING VALUE(return_data) TYPE page RAISING cx_static_check. * PUT - "Update information about a GitHub Pages site" * Operation id: repos/update-information-about-pages-site * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Response: 400 * Response: 422 * Body ref: #/components/schemas/bodyrepos_update_information_a METHODS repos_update_information_about IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_update_information_a RAISING cx_static_check. * DELETE - "Delete a GitHub Enterprise Server Pages site" * Operation id: repos/delete-pages-site * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Response: 404 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyrepos_delete_pages_site METHODS repos_delete_pages_site IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_delete_pages_site RAISING cx_static_check. * GET - "List GitHub Enterprise Server Pages builds" * Operation id: repos/list-pages-builds * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_pages_builds METHODS repos_list_pages_builds IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_pages_buil RAISING cx_static_check. * POST - "Request a GitHub Enterprise Server Pages build" * Operation id: repos/request-pages-build * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/page-build-status METHODS repos_request_pages_build IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE page_build_status RAISING cx_static_check. * GET - "Get latest Pages build" * Operation id: repos/get-latest-pages-build * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/page-build METHODS repos_get_latest_pages_build IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE page_build RAISING cx_static_check. * GET - "Get GitHub Enterprise Server Pages build" * Operation id: repos/get-pages-build * Parameter: build_id, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/page-build METHODS repos_get_pages_build IMPORTING build_id TYPE i owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE page_build RAISING cx_static_check. * GET - "List pre-receive hooks for a repository" * Operation id: enterprise-admin/list-pre-receive-hooks-for-repo * Parameter: sort, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Parameter: direction, optional, query * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_list_pre_re03 METHODS enterprise_admin_list_pre_re03 IMPORTING sort TYPE string DEFAULT 'created' owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 direction TYPE string DEFAULT 'desc' RETURNING VALUE(return_data) TYPE response_enterprise_admin_li06 RAISING cx_static_check. * GET - "Get a pre-receive hook for a repository" * Operation id: enterprise-admin/get-pre-receive-hook-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pre_receive_hook_id, required, path * Response: 200 * application/json, #/components/schemas/repository-pre-receive-hook METHODS enterprise_admin_get_pre_rec03 IMPORTING owner TYPE string repo TYPE string pre_receive_hook_id TYPE i RETURNING VALUE(return_data) TYPE repository_pre_receive_hook RAISING cx_static_check. * PATCH - "Update pre-receive hook enforcement for a repository" * Operation id: enterprise-admin/update-pre-receive-hook-enforcement-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pre_receive_hook_id, required, path * Response: 200 * application/json, #/components/schemas/repository-pre-receive-hook * Body ref: #/components/schemas/bodyenterprise_admin_update_04 METHODS enterprise_admin_update_pre_03 IMPORTING owner TYPE string repo TYPE string pre_receive_hook_id TYPE i body TYPE bodyenterprise_admin_update_04 RETURNING VALUE(return_data) TYPE repository_pre_receive_hook RAISING cx_static_check. * DELETE - "Remove pre-receive hook enforcement for a repository" * Operation id: enterprise-admin/remove-pre-receive-hook-enforcement-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pre_receive_hook_id, required, path * Response: 200 * application/json, #/components/schemas/repository-pre-receive-hook * Body ref: #/components/schemas/bodyenterprise_admin_remove_01 METHODS enterprise_admin_remove_pre_01 IMPORTING owner TYPE string repo TYPE string pre_receive_hook_id TYPE i body TYPE bodyenterprise_admin_remove_01 RETURNING VALUE(return_data) TYPE repository_pre_receive_hook RAISING cx_static_check. * GET - "List repository projects" * Operation id: projects/list-for-repo * Parameter: state, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_projects_list_for_repo * Response: 401 * Response: 403 * Response: 404 * Response: 410 * Response: 422 METHODS projects_list_for_repo IMPORTING state TYPE string DEFAULT 'open' owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_projects_list_for_rep RAISING cx_static_check. * POST - "Create a repository project" * Operation id: projects/create-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/project * Response: 401 * Response: 403 * Response: 404 * Response: 410 * Response: 422 * Body ref: #/components/schemas/bodyprojects_create_for_repo METHODS projects_create_for_repo IMPORTING owner TYPE string repo TYPE string body TYPE bodyprojects_create_for_repo RETURNING VALUE(return_data) TYPE project RAISING cx_static_check. * GET - "List pull requests" * Operation id: pulls/list * Parameter: state, optional, query * Parameter: head, optional, query * Parameter: base, optional, query * Parameter: sort, optional, query * Parameter: direction, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_pulls_list * Response: 304 * Response: 422 METHODS pulls_list IMPORTING state TYPE string DEFAULT 'open' head TYPE string OPTIONAL base TYPE string OPTIONAL sort TYPE string DEFAULT 'created' direction TYPE string OPTIONAL owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_pulls_list RAISING cx_static_check. * POST - "Create a pull request" * Operation id: pulls/create * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/pull-request * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodypulls_create METHODS pulls_create IMPORTING owner TYPE string repo TYPE string body TYPE bodypulls_create RETURNING VALUE(return_data) TYPE pull_request RAISING cx_static_check. * GET - "List review comments in a repository" * Operation id: pulls/list-review-comments-for-repo * Parameter: sort, optional, query * Parameter: direction, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_pulls_list_review_comments_for METHODS pulls_list_review_comments_for IMPORTING sort TYPE string OPTIONAL direction TYPE string OPTIONAL owner TYPE string repo TYPE string since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_pulls_list_review_com RAISING cx_static_check. * GET - "Get a review comment for a pull request" * Operation id: pulls/get-review-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/pull-request-review-comment * Response: 404 METHODS pulls_get_review_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i RETURNING VALUE(return_data) TYPE pull_request_review_comment RAISING cx_static_check. * PATCH - "Update a review comment for a pull request" * Operation id: pulls/update-review-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/pull-request-review-comment * Body ref: #/components/schemas/bodypulls_update_review_commen METHODS pulls_update_review_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodypulls_update_review_commen RETURNING VALUE(return_data) TYPE pull_request_review_comment RAISING cx_static_check. * DELETE - "Delete a review comment for a pull request" * Operation id: pulls/delete-review-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 204 * Response: 404 * Body ref: #/components/schemas/bodypulls_delete_review_commen METHODS pulls_delete_review_comment IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodypulls_delete_review_commen RAISING cx_static_check. * GET - "List reactions for a pull request review comment" * Operation id: reactions/list-for-pull-request-review-comment * Parameter: content, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_reactions_list_for_pull_reques * Response: 404 * Response: 415 METHODS reactions_list_for_pull_reques IMPORTING content TYPE string OPTIONAL owner TYPE string repo TYPE string comment_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_reactions_list_for_pu RAISING cx_static_check. * POST - "Create reaction for a pull request review comment" * Operation id: reactions/create-for-pull-request-review-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: comment_id, required, path * Response: 200 * application/json, #/components/schemas/reaction * Response: 201 * application/json, #/components/schemas/reaction * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyreactions_create_for_pull_ METHODS reactions_create_for_pull_requ IMPORTING owner TYPE string repo TYPE string comment_id TYPE i body TYPE bodyreactions_create_for_pull_ RETURNING VALUE(return_data) TYPE reaction RAISING cx_static_check. * GET - "Get a pull request" * Operation id: pulls/get * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 200 * application/json, #/components/schemas/pull-request * Response: 304 * Response: 404 * Response: 500 METHODS pulls_get IMPORTING owner TYPE string repo TYPE string pull_number TYPE i RETURNING VALUE(return_data) TYPE pull_request RAISING cx_static_check. * PATCH - "Update a pull request" * Operation id: pulls/update * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 200 * application/json, #/components/schemas/pull-request * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodypulls_update METHODS pulls_update IMPORTING owner TYPE string repo TYPE string pull_number TYPE i body TYPE bodypulls_update RETURNING VALUE(return_data) TYPE pull_request RAISING cx_static_check. * GET - "List review comments on a pull request" * Operation id: pulls/list-review-comments * Parameter: direction, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: sort, optional, query * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_pulls_list_review_comments METHODS pulls_list_review_comments IMPORTING direction TYPE string OPTIONAL owner TYPE string repo TYPE string pull_number TYPE i sort TYPE string DEFAULT 'created' since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_pulls_list_review_c01 RAISING cx_static_check. * POST - "Create a review comment for a pull request (alternative)" * Operation id: pulls/create-review-comment-alternative * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 201 * application/json, #/components/schemas/legacy-review-comment * Body ref: #/components/schemas/bodypulls_create_review_commen METHODS pulls_create_review_comment_al IMPORTING owner TYPE string repo TYPE string pull_number TYPE i body TYPE bodypulls_create_review_commen RETURNING VALUE(return_data) TYPE legacy_review_comment RAISING cx_static_check. * POST - "Create a reply for a review comment" * Operation id: pulls/create-reply-for-review-comment * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: comment_id, required, path * Response: 201 * application/json, #/components/schemas/pull-request-review-comment * Response: 404 * Body ref: #/components/schemas/bodypulls_create_reply_for_rev METHODS pulls_create_reply_for_review_ IMPORTING owner TYPE string repo TYPE string pull_number TYPE i comment_id TYPE i body TYPE bodypulls_create_reply_for_rev RETURNING VALUE(return_data) TYPE pull_request_review_comment RAISING cx_static_check. * GET - "List commits on a pull request" * Operation id: pulls/list-commits * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_pulls_list_commits METHODS pulls_list_commits IMPORTING owner TYPE string repo TYPE string pull_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_pulls_list_commits RAISING cx_static_check. * GET - "List pull requests files" * Operation id: pulls/list-files * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_pulls_list_files * Response: 422 * Response: 500 METHODS pulls_list_files IMPORTING owner TYPE string repo TYPE string pull_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_pulls_list_files RAISING cx_static_check. * GET - "Check if a pull request has been merged" * Operation id: pulls/check-if-merged * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 204 * Response: 404 METHODS pulls_check_if_merged IMPORTING owner TYPE string repo TYPE string pull_number TYPE i RAISING cx_static_check. * PUT - "Merge a pull request" * Operation id: pulls/merge * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 200 * application/json, #/components/schemas/pull-request-merge-result * Response: 403 * Response: 404 * Response: 405 * application/json, #/components/schemas/response_pulls_merge * Response: 409 * application/json, #/components/schemas/response_pulls_merge * Response: 422 * Body ref: #/components/schemas/bodypulls_merge METHODS pulls_merge IMPORTING owner TYPE string repo TYPE string pull_number TYPE i body TYPE bodypulls_merge RETURNING VALUE(return_data) TYPE pull_request_merge_result RAISING cx_static_check. * GET - "List requested reviewers for a pull request" * Operation id: pulls/list-requested-reviewers * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/pull-request-review-request METHODS pulls_list_requested_reviewers IMPORTING owner TYPE string repo TYPE string pull_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE pull_request_review_request RAISING cx_static_check. * POST - "Request reviewers for a pull request" * Operation id: pulls/request-reviewers * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 201 * application/json, #/components/schemas/pull-request-simple * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodypulls_request_reviewers METHODS pulls_request_reviewers IMPORTING owner TYPE string repo TYPE string pull_number TYPE i body TYPE bodypulls_request_reviewers RETURNING VALUE(return_data) TYPE pull_request_simple RAISING cx_static_check. * DELETE - "Remove requested reviewers from a pull request" * Operation id: pulls/remove-requested-reviewers * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 200 * application/json, #/components/schemas/pull-request-simple * Response: 422 * Body ref: #/components/schemas/bodypulls_remove_requested_rev METHODS pulls_remove_requested_reviewe IMPORTING owner TYPE string repo TYPE string pull_number TYPE i body TYPE bodypulls_remove_requested_rev RETURNING VALUE(return_data) TYPE pull_request_simple RAISING cx_static_check. * GET - "List reviews for a pull request" * Operation id: pulls/list-reviews * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_pulls_list_reviews METHODS pulls_list_reviews IMPORTING owner TYPE string repo TYPE string pull_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_pulls_list_reviews RAISING cx_static_check. * POST - "Create a review for a pull request" * Operation id: pulls/create-review * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 200 * application/json, #/components/schemas/pull-request-review * Response: 403 * Response: 422 * Body ref: #/components/schemas/bodypulls_create_review METHODS pulls_create_review IMPORTING owner TYPE string repo TYPE string pull_number TYPE i body TYPE bodypulls_create_review RETURNING VALUE(return_data) TYPE pull_request_review RAISING cx_static_check. * GET - "Get a review for a pull request" * Operation id: pulls/get-review * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: review_id, required, path * Response: 200 * application/json, #/components/schemas/pull-request-review * Response: 404 METHODS pulls_get_review IMPORTING owner TYPE string repo TYPE string pull_number TYPE i review_id TYPE i RETURNING VALUE(return_data) TYPE pull_request_review RAISING cx_static_check. * PUT - "Update a review for a pull request" * Operation id: pulls/update-review * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: review_id, required, path * Response: 200 * application/json, #/components/schemas/pull-request-review * Response: 422 * Body ref: #/components/schemas/bodypulls_update_review METHODS pulls_update_review IMPORTING owner TYPE string repo TYPE string pull_number TYPE i review_id TYPE i body TYPE bodypulls_update_review RETURNING VALUE(return_data) TYPE pull_request_review RAISING cx_static_check. * DELETE - "Delete a pending review for a pull request" * Operation id: pulls/delete-pending-review * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: review_id, required, path * Response: 200 * application/json, #/components/schemas/pull-request-review * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodypulls_delete_pending_revie METHODS pulls_delete_pending_review IMPORTING owner TYPE string repo TYPE string pull_number TYPE i review_id TYPE i body TYPE bodypulls_delete_pending_revie RETURNING VALUE(return_data) TYPE pull_request_review RAISING cx_static_check. * GET - "List comments for a pull request review" * Operation id: pulls/list-comments-for-review * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: review_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_pulls_list_comments_for_review * Response: 404 METHODS pulls_list_comments_for_review IMPORTING owner TYPE string repo TYPE string pull_number TYPE i review_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_pulls_list_comments_f RAISING cx_static_check. * PUT - "Dismiss a review for a pull request" * Operation id: pulls/dismiss-review * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: review_id, required, path * Response: 200 * application/json, #/components/schemas/pull-request-review * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodypulls_dismiss_review METHODS pulls_dismiss_review IMPORTING owner TYPE string repo TYPE string pull_number TYPE i review_id TYPE i body TYPE bodypulls_dismiss_review RETURNING VALUE(return_data) TYPE pull_request_review RAISING cx_static_check. * POST - "Submit a review for a pull request" * Operation id: pulls/submit-review * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Parameter: review_id, required, path * Response: 200 * application/json, #/components/schemas/pull-request-review * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodypulls_submit_review METHODS pulls_submit_review IMPORTING owner TYPE string repo TYPE string pull_number TYPE i review_id TYPE i body TYPE bodypulls_submit_review RETURNING VALUE(return_data) TYPE pull_request_review RAISING cx_static_check. * PUT - "Update a pull request branch" * Operation id: pulls/update-branch * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: pull_number, required, path * Response: 202 * application/json, #/components/schemas/response_pulls_update_branch * Response: 403 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodypulls_update_branch METHODS pulls_update_branch IMPORTING owner TYPE string repo TYPE string pull_number TYPE i body TYPE bodypulls_update_branch RAISING cx_static_check. * GET - "Get a repository README" * Operation id: repos/get-readme * Parameter: ref, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/content-file * Response: 404 * Response: 422 METHODS repos_get_readme IMPORTING ref TYPE string OPTIONAL owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE content_file RAISING cx_static_check. * GET - "Get a repository README for a directory" * Operation id: repos/get-readme-in-directory * Parameter: dir, required, path * Parameter: ref, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/content-file * Response: 404 * Response: 422 METHODS repos_get_readme_in_directory IMPORTING dir TYPE string ref TYPE string OPTIONAL owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE content_file RAISING cx_static_check. * GET - "List releases" * Operation id: repos/list-releases * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_releases * Response: 404 METHODS repos_list_releases IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_releases RAISING cx_static_check. * POST - "Create a release" * Operation id: repos/create-release * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/release * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_release METHODS repos_create_release IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_create_release RETURNING VALUE(return_data) TYPE release RAISING cx_static_check. * GET - "Get a release asset" * Operation id: repos/get-release-asset * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: asset_id, required, path * Response: 200 * application/json, #/components/schemas/release-asset * Response: 302 * Response: 404 * Response: 415 METHODS repos_get_release_asset IMPORTING owner TYPE string repo TYPE string asset_id TYPE i RETURNING VALUE(return_data) TYPE release_asset RAISING cx_static_check. * PATCH - "Update a release asset" * Operation id: repos/update-release-asset * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: asset_id, required, path * Response: 200 * application/json, #/components/schemas/release-asset * Body ref: #/components/schemas/bodyrepos_update_release_asset METHODS repos_update_release_asset IMPORTING owner TYPE string repo TYPE string asset_id TYPE i body TYPE bodyrepos_update_release_asset RETURNING VALUE(return_data) TYPE release_asset RAISING cx_static_check. * DELETE - "Delete a release asset" * Operation id: repos/delete-release-asset * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: asset_id, required, path * Response: 204 * Body ref: #/components/schemas/bodyrepos_delete_release_asset METHODS repos_delete_release_asset IMPORTING owner TYPE string repo TYPE string asset_id TYPE i body TYPE bodyrepos_delete_release_asset RAISING cx_static_check. * GET - "Get the latest release" * Operation id: repos/get-latest-release * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/release METHODS repos_get_latest_release IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE release RAISING cx_static_check. * GET - "Get a release by tag name" * Operation id: repos/get-release-by-tag * Parameter: tag, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/release * Response: 404 METHODS repos_get_release_by_tag IMPORTING tag TYPE string owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE release RAISING cx_static_check. * GET - "Get a release" * Operation id: repos/get-release * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: release_id, required, path * Response: 200 * application/json, #/components/schemas/release * Response: 404 METHODS repos_get_release IMPORTING owner TYPE string repo TYPE string release_id TYPE i RETURNING VALUE(return_data) TYPE release RAISING cx_static_check. * PATCH - "Update a release" * Operation id: repos/update-release * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: release_id, required, path * Response: 200 * application/json, #/components/schemas/release * Body ref: #/components/schemas/bodyrepos_update_release METHODS repos_update_release IMPORTING owner TYPE string repo TYPE string release_id TYPE i body TYPE bodyrepos_update_release RETURNING VALUE(return_data) TYPE release RAISING cx_static_check. * DELETE - "Delete a release" * Operation id: repos/delete-release * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: release_id, required, path * Response: 204 * Body ref: #/components/schemas/bodyrepos_delete_release METHODS repos_delete_release IMPORTING owner TYPE string repo TYPE string release_id TYPE i body TYPE bodyrepos_delete_release RAISING cx_static_check. * GET - "List release assets" * Operation id: repos/list-release-assets * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: release_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_release_assets METHODS repos_list_release_assets IMPORTING owner TYPE string repo TYPE string release_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_release_as RAISING cx_static_check. * POST - "Upload a release asset" * Operation id: repos/upload-release-asset * Parameter: name, required, query * Parameter: label, optional, query * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: release_id, required, path * Response: 201 * application/json, #/components/schemas/release-asset METHODS repos_upload_release_asset IMPORTING name TYPE string label TYPE string OPTIONAL owner TYPE string repo TYPE string release_id TYPE i RETURNING VALUE(return_data) TYPE release_asset RAISING cx_static_check. * GET - "List stargazers" * Operation id: activity/list-stargazers-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, string * Response: 422 METHODS activity_list_stargazers_for_r IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RAISING cx_static_check. * GET - "Get the weekly commit activity" * Operation id: repos/get-code-frequency-stats * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/response_repos_get_code_frequency_stats * Response: 202 * Response: 204 METHODS repos_get_code_frequency_stats IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE response_repos_get_code_freque RAISING cx_static_check. * GET - "Get the last year of commit activity" * Operation id: repos/get-commit-activity-stats * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/response_repos_get_commit_activity_stat * Response: 202 * Response: 204 METHODS repos_get_commit_activity_stat IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE response_repos_get_commit_acti RAISING cx_static_check. * GET - "Get all contributor commit activity" * Operation id: repos/get-contributors-stats * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/response_repos_get_contributors_stats * Response: 202 * Response: 204 METHODS repos_get_contributors_stats IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE response_repos_get_contributor RAISING cx_static_check. * GET - "Get the weekly commit count" * Operation id: repos/get-participation-stats * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/participation-stats * Response: 404 METHODS repos_get_participation_stats IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE participation_stats RAISING cx_static_check. * GET - "Get the hourly commit count for each day" * Operation id: repos/get-punch-card-stats * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/response_repos_get_punch_card_stats * Response: 204 METHODS repos_get_punch_card_stats IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE response_repos_get_punch_card_ RAISING cx_static_check. * POST - "Create a commit status" * Operation id: repos/create-commit-status * Parameter: sha, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 201 * application/json, #/components/schemas/status * Body ref: #/components/schemas/bodyrepos_create_commit_status METHODS repos_create_commit_status IMPORTING sha TYPE string owner TYPE string repo TYPE string body TYPE bodyrepos_create_commit_status RETURNING VALUE(return_data) TYPE status RAISING cx_static_check. * GET - "List watchers" * Operation id: activity/list-watchers-for-repo * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_watchers_for_rep METHODS activity_list_watchers_for_rep IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_watcher RAISING cx_static_check. * GET - "Get a repository subscription" * Operation id: activity/get-repo-subscription * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/repository-subscription * Response: 403 * Response: 404 METHODS activity_get_repo_subscription IMPORTING owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE repository_subscription RAISING cx_static_check. * PUT - "Set a repository subscription" * Operation id: activity/set-repo-subscription * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/repository-subscription * Body ref: #/components/schemas/bodyactivity_set_repo_subscrip METHODS activity_set_repo_subscription IMPORTING owner TYPE string repo TYPE string body TYPE bodyactivity_set_repo_subscrip RETURNING VALUE(return_data) TYPE repository_subscription RAISING cx_static_check. * DELETE - "Delete a repository subscription" * Operation id: activity/delete-repo-subscription * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Body ref: #/components/schemas/bodyactivity_delete_repo_subsc METHODS activity_delete_repo_subscript IMPORTING owner TYPE string repo TYPE string body TYPE bodyactivity_delete_repo_subsc RAISING cx_static_check. * GET - "List repository tags" * Operation id: repos/list-tags * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_tags METHODS repos_list_tags IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_tags RAISING cx_static_check. * GET - "Download a repository archive (tar)" * Operation id: repos/download-tarball-archive * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 302 METHODS repos_download_tarball_archive IMPORTING ref TYPE string owner TYPE string repo TYPE string RAISING cx_static_check. * GET - "List repository teams" * Operation id: repos/list-teams * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_teams METHODS repos_list_teams IMPORTING owner TYPE string repo TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_teams RAISING cx_static_check. * GET - "Get all repository topics" * Operation id: repos/get-all-topics * Parameter: owner, required, path * Parameter: repo, required, path * Parameter: page, optional, query * Parameter: per_page, optional, query * Response: 200 * application/json, #/components/schemas/topic * Response: 404 * Response: 415 METHODS repos_get_all_topics IMPORTING owner TYPE string repo TYPE string page TYPE i DEFAULT 1 per_page TYPE i DEFAULT 30 RETURNING VALUE(return_data) TYPE topic RAISING cx_static_check. * PUT - "Replace all repository topics" * Operation id: repos/replace-all-topics * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/topic * Response: 404 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyrepos_replace_all_topics METHODS repos_replace_all_topics IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_replace_all_topics RETURNING VALUE(return_data) TYPE topic RAISING cx_static_check. * POST - "Transfer a repository" * Operation id: repos/transfer * Parameter: owner, required, path * Parameter: repo, required, path * Response: 202 * application/json, #/components/schemas/minimal-repository * Body ref: #/components/schemas/bodyrepos_transfer METHODS repos_transfer IMPORTING owner TYPE string repo TYPE string body TYPE bodyrepos_transfer RAISING cx_static_check. * GET - "Download a repository archive (zip)" * Operation id: repos/download-zipball-archive * Parameter: ref, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 302 METHODS repos_download_zipball_archive IMPORTING ref TYPE string owner TYPE string repo TYPE string RAISING cx_static_check. * POST - "Create a repository using a template" * Operation id: repos/create-using-template * Parameter: template_owner, required, path * Parameter: template_repo, required, path * Response: 201 * application/json, #/components/schemas/repository * Body ref: #/components/schemas/bodyrepos_create_using_templat METHODS repos_create_using_template IMPORTING template_owner TYPE string template_repo TYPE string body TYPE bodyrepos_create_using_templat RETURNING VALUE(return_data) TYPE repository RAISING cx_static_check. * GET - "List public repositories" * Operation id: repos/list-public * Parameter: visibility, optional, query * Parameter: since, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_public * Response: 304 * Response: 422 METHODS repos_list_public IMPORTING visibility TYPE string DEFAULT 'public' since TYPE i OPTIONAL RETURNING VALUE(return_data) TYPE response_repos_list_public RAISING cx_static_check. * GET - "Search code" * Operation id: search/code * Parameter: q, required, query * Parameter: sort, optional, query * Parameter: order, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_search_code * Response: 304 * Response: 403 * Response: 422 * Response: 503 METHODS search_code IMPORTING q TYPE string sort TYPE string OPTIONAL order TYPE string DEFAULT 'desc' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_search_code RAISING cx_static_check. * GET - "Search commits" * Operation id: search/commits * Parameter: q, required, query * Parameter: sort, optional, query * Parameter: order, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_search_commits * Response: 304 * Response: 415 METHODS search_commits IMPORTING q TYPE string sort TYPE string OPTIONAL order TYPE string DEFAULT 'desc' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_search_commits RAISING cx_static_check. * GET - "Search issues and pull requests" * Operation id: search/issues-and-pull-requests * Parameter: q, required, query * Parameter: sort, optional, query * Parameter: order, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_search_issues_and_pull_request * Response: 304 * Response: 403 * Response: 422 * Response: 503 METHODS search_issues_and_pull_request IMPORTING q TYPE string sort TYPE string OPTIONAL order TYPE string DEFAULT 'desc' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_search_issues_and_pul RAISING cx_static_check. * GET - "Search labels" * Operation id: search/labels * Parameter: repository_id, required, query * Parameter: q, required, query * Parameter: sort, optional, query * Parameter: order, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_search_labels * Response: 304 * Response: 403 * Response: 404 * Response: 422 METHODS search_labels IMPORTING repository_id TYPE i q TYPE string sort TYPE string OPTIONAL order TYPE string DEFAULT 'desc' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_search_labels RAISING cx_static_check. * GET - "Search repositories" * Operation id: search/repos * Parameter: q, required, query * Parameter: sort, optional, query * Parameter: order, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_search_repos * Response: 304 * Response: 422 * Response: 503 METHODS search_repos IMPORTING q TYPE string sort TYPE string OPTIONAL order TYPE string DEFAULT 'desc' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_search_repos RAISING cx_static_check. * GET - "Search topics" * Operation id: search/topics * Parameter: q, required, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_search_topics * Response: 304 * Response: 415 METHODS search_topics IMPORTING q TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_search_topics RAISING cx_static_check. * GET - "Search users" * Operation id: search/users * Parameter: q, required, query * Parameter: sort, optional, query * Parameter: order, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_search_users * Response: 304 * Response: 422 * Response: 503 METHODS search_users IMPORTING q TYPE string sort TYPE string OPTIONAL order TYPE string DEFAULT 'desc' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_search_users RAISING cx_static_check. * GET - "Get the configuration status" * Operation id: enterprise-admin/get-configuration-status * Response: 200 * application/json, #/components/schemas/configuration-status METHODS enterprise_admin_get_configura RETURNING VALUE(return_data) TYPE configuration_status RAISING cx_static_check. * POST - "Start a configuration process" * Operation id: enterprise-admin/start-configuration-process * Response: 202 METHODS enterprise_admin_start_configu RAISING cx_static_check. * GET - "Get the maintenance status" * Operation id: enterprise-admin/get-maintenance-status * Response: 200 * application/json, #/components/schemas/maintenance-status METHODS enterprise_admin_get_maintenan RETURNING VALUE(return_data) TYPE maintenance_status RAISING cx_static_check. * POST - "Enable or disable maintenance mode" * Operation id: enterprise-admin/enable-or-disable-maintenance-mode * Response: 200 * application/json, #/components/schemas/maintenance-status METHODS enterprise_admin_enable_or_dis RETURNING VALUE(return_data) TYPE maintenance_status RAISING cx_static_check. * GET - "Get settings" * Operation id: enterprise-admin/get-settings * Response: 200 * application/json, #/components/schemas/enterprise-settings METHODS enterprise_admin_get_settings RETURNING VALUE(return_data) TYPE enterprise_settings RAISING cx_static_check. * PUT - "Set settings" * Operation id: enterprise-admin/set-settings * Response: 204 METHODS enterprise_admin_set_settings RAISING cx_static_check. * GET - "Get all authorized SSH keys" * Operation id: enterprise-admin/get-all-authorized-ssh-keys * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_get_all_autho METHODS enterprise_admin_get_all_autho RETURNING VALUE(return_data) TYPE response_enterprise_admin_get_ RAISING cx_static_check. * POST - "Add an authorized SSH key" * Operation id: enterprise-admin/add-authorized-ssh-key * Response: 201 * application/json, #/components/schemas/response_enterprise_admin_add_authorize METHODS enterprise_admin_add_authorize RETURNING VALUE(return_data) TYPE response_enterprise_admin_add_ RAISING cx_static_check. * DELETE - "Remove an authorized SSH key" * Operation id: enterprise-admin/remove-authorized-ssh-key * Response: 200 * application/json, #/components/schemas/response_enterprise_admin_remove_author METHODS enterprise_admin_remove_author RETURNING VALUE(return_data) TYPE response_enterprise_admin_remo RAISING cx_static_check. * POST - "Create a GitHub license" * Operation id: enterprise-admin/create-enterprise-server-license * Response: 202 METHODS enterprise_admin_create_enterp RAISING cx_static_check. * POST - "Upgrade a license" * Operation id: enterprise-admin/upgrade-license * Response: 202 METHODS enterprise_admin_upgrade_licen RAISING cx_static_check. * GET - "Get a team" * Operation id: teams/get * Parameter: team_id, required, path * Response: 200 * application/json, #/components/schemas/team-full METHODS teams_get IMPORTING team_id TYPE i RETURNING VALUE(return_data) TYPE team_full RAISING cx_static_check. * PATCH - "Update a team" * Operation id: teams/update * Parameter: team_id, required, path * Response: 201 * application/json, #/components/schemas/team-full * Body ref: #/components/schemas/bodyteams_update METHODS teams_update IMPORTING team_id TYPE i body TYPE bodyteams_update RETURNING VALUE(return_data) TYPE team_full RAISING cx_static_check. * DELETE - "Delete a team" * Operation id: teams/delete * Parameter: team_id, required, path * Response: 204 * Body ref: #/components/schemas/bodyteams_delete METHODS teams_delete IMPORTING team_id TYPE i body TYPE bodyteams_delete RAISING cx_static_check. * GET - "List discussions" * Operation id: teams/list-discussions * Parameter: direction, optional, query * Parameter: team_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_teams_list_discussions METHODS teams_list_discussions IMPORTING direction TYPE string DEFAULT 'desc' team_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_teams_list_discussion RAISING cx_static_check. * POST - "Create a discussion" * Operation id: teams/create-discussion * Parameter: team_id, required, path * Response: 201 * application/json, #/components/schemas/team-discussion * Body ref: #/components/schemas/bodyteams_create_discussion METHODS teams_create_discussion IMPORTING team_id TYPE i body TYPE bodyteams_create_discussion RETURNING VALUE(return_data) TYPE team_discussion RAISING cx_static_check. * GET - "Get a discussion" * Operation id: teams/get-discussion * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Response: 200 * application/json, #/components/schemas/team-discussion METHODS teams_get_discussion IMPORTING team_id TYPE i discussion_number TYPE i RETURNING VALUE(return_data) TYPE team_discussion RAISING cx_static_check. * PATCH - "Update a discussion" * Operation id: teams/update-discussion * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Response: 200 * application/json, #/components/schemas/team-discussion * Body ref: #/components/schemas/bodyteams_update_discussion METHODS teams_update_discussion IMPORTING team_id TYPE i discussion_number TYPE i body TYPE bodyteams_update_discussion RETURNING VALUE(return_data) TYPE team_discussion RAISING cx_static_check. * DELETE - "Delete a discussion" * Operation id: teams/delete-discussion * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Response: 204 * Body ref: #/components/schemas/bodyteams_delete_discussion METHODS teams_delete_discussion IMPORTING team_id TYPE i discussion_number TYPE i body TYPE bodyteams_delete_discussion RAISING cx_static_check. * GET - "List discussion comments" * Operation id: teams/list-discussion-comments * Parameter: direction, optional, query * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_teams_list_discussion_comments METHODS teams_list_discussion_comments IMPORTING direction TYPE string DEFAULT 'desc' team_id TYPE i discussion_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_teams_list_discussi01 RAISING cx_static_check. * POST - "Create a discussion comment" * Operation id: teams/create-discussion-comment * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Response: 201 * application/json, #/components/schemas/team-discussion-comment * Body ref: #/components/schemas/bodyteams_create_discussion_co METHODS teams_create_discussion_commen IMPORTING team_id TYPE i discussion_number TYPE i body TYPE bodyteams_create_discussion_co RETURNING VALUE(return_data) TYPE team_discussion_comment RAISING cx_static_check. * GET - "Get a discussion comment" * Operation id: teams/get-discussion-comment * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Parameter: comment_number, required, path * Response: 200 * application/json, #/components/schemas/team-discussion-comment METHODS teams_get_discussion_comment IMPORTING team_id TYPE i discussion_number TYPE i comment_number TYPE i RETURNING VALUE(return_data) TYPE team_discussion_comment RAISING cx_static_check. * PATCH - "Update a discussion comment" * Operation id: teams/update-discussion-comment * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Parameter: comment_number, required, path * Response: 200 * application/json, #/components/schemas/team-discussion-comment * Body ref: #/components/schemas/bodyteams_update_discussion_co METHODS teams_update_discussion_commen IMPORTING team_id TYPE i discussion_number TYPE i comment_number TYPE i body TYPE bodyteams_update_discussion_co RETURNING VALUE(return_data) TYPE team_discussion_comment RAISING cx_static_check. * DELETE - "Delete a discussion comment" * Operation id: teams/delete-discussion-comment * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Parameter: comment_number, required, path * Response: 204 * Body ref: #/components/schemas/bodyteams_delete_discussion_co METHODS teams_delete_discussion_commen IMPORTING team_id TYPE i discussion_number TYPE i comment_number TYPE i body TYPE bodyteams_delete_discussion_co RAISING cx_static_check. * GET - "List reactions for a team discussion comment" * Operation id: reactions/list-for-team-discussion-comment * Parameter: accept, required, header * Parameter: content, optional, query * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Parameter: comment_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_reactions_list_for_team_discus METHODS reactions_list_for_team_discus IMPORTING accept TYPE string DEFAULT 'application/vnd.github.squirrel-girl-preview+json' content TYPE string OPTIONAL team_id TYPE i discussion_number TYPE i comment_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_reactions_list_for_te RAISING cx_static_check. * POST - "Create reaction for a team discussion comment" * Operation id: reactions/create-for-team-discussion-comment * Parameter: accept, required, header * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Parameter: comment_number, required, path * Response: 201 * application/json, #/components/schemas/reaction * Body ref: #/components/schemas/bodyreactions_create_for_team_ METHODS reactions_create_for_team_disc IMPORTING accept TYPE string DEFAULT 'application/vnd.github.squirrel-girl-preview+json' team_id TYPE i discussion_number TYPE i comment_number TYPE i body TYPE bodyreactions_create_for_team_ RETURNING VALUE(return_data) TYPE reaction RAISING cx_static_check. * GET - "List reactions for a team discussion" * Operation id: reactions/list-for-team-discussion * Parameter: accept, required, header * Parameter: content, optional, query * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_reactions_list_for_team_disc01 METHODS reactions_list_for_team_disc01 IMPORTING accept TYPE string DEFAULT 'application/vnd.github.squirrel-girl-preview+json' content TYPE string OPTIONAL team_id TYPE i discussion_number TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_reactions_list_for_02 RAISING cx_static_check. * POST - "Create reaction for a team discussion" * Operation id: reactions/create-for-team-discussion * Parameter: accept, required, header * Parameter: team_id, required, path * Parameter: discussion_number, required, path * Response: 201 * application/json, #/components/schemas/reaction * Body ref: #/components/schemas/bodyreactions_create_for_tea01 METHODS reactions_create_for_team_di01 IMPORTING accept TYPE string DEFAULT 'application/vnd.github.squirrel-girl-preview+json' team_id TYPE i discussion_number TYPE i body TYPE bodyreactions_create_for_tea01 RETURNING VALUE(return_data) TYPE reaction RAISING cx_static_check. * GET - "List team members" * Operation id: teams/list-members * Parameter: role, optional, query * Parameter: team_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_teams_list_members METHODS teams_list_members IMPORTING role TYPE string DEFAULT 'all' team_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_teams_list_members RAISING cx_static_check. * GET - "Get team membership for a user" * Operation id: teams/get-membership-for-user * Parameter: team_id, required, path * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/team-membership METHODS teams_get_membership_for_user IMPORTING team_id TYPE i username TYPE string RETURNING VALUE(return_data) TYPE team_membership RAISING cx_static_check. * PUT - "Add or update team membership for a user" * Operation id: teams/add-or-update-membership-for-user * Parameter: team_id, required, path * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/team-membership * Response: 422 * Body ref: #/components/schemas/bodyteams_add_or_update_member METHODS teams_add_or_update_membership IMPORTING team_id TYPE i username TYPE string body TYPE bodyteams_add_or_update_member RETURNING VALUE(return_data) TYPE team_membership RAISING cx_static_check. * DELETE - "Remove team membership for a user" * Operation id: teams/remove-membership-for-user * Parameter: team_id, required, path * Parameter: username, required, path * Response: 204 * Body ref: #/components/schemas/bodyteams_remove_membership_fo METHODS teams_remove_membership_for_us IMPORTING team_id TYPE i username TYPE string body TYPE bodyteams_remove_membership_fo RAISING cx_static_check. * GET - "List team projects" * Operation id: teams/list-projects * Parameter: accept, required, header * Parameter: team_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_teams_list_projects METHODS teams_list_projects IMPORTING accept TYPE string DEFAULT 'application/vnd.github.inertia-preview+json' team_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_teams_list_projects RAISING cx_static_check. * GET - "Check team permissions for a project" * Operation id: teams/check-permissions-for-project * Parameter: accept, required, header * Parameter: team_id, required, path * Parameter: project_id, required, path * Response: 200 * application/json, #/components/schemas/team-project * Response: 404 METHODS teams_check_permissions_for_pr IMPORTING accept TYPE string DEFAULT 'application/vnd.github.inertia-preview+json' team_id TYPE i project_id TYPE i RETURNING VALUE(return_data) TYPE team_project RAISING cx_static_check. * PUT - "Add or update team project permissions" * Operation id: teams/add-or-update-project-permissions * Parameter: accept, required, header * Parameter: team_id, required, path * Parameter: project_id, required, path * Response: 204 * Response: 403 * application/json, #/components/schemas/response_teams_add_or_update_project_pe * Body ref: #/components/schemas/bodyteams_add_or_update_projec METHODS teams_add_or_update_project_pe IMPORTING accept TYPE string DEFAULT 'application/vnd.github.inertia-preview+json' team_id TYPE i project_id TYPE i body TYPE bodyteams_add_or_update_projec RAISING cx_static_check. * DELETE - "Remove a project from a team" * Operation id: teams/remove-project * Parameter: team_id, required, path * Parameter: project_id, required, path * Response: 204 * Body ref: #/components/schemas/bodyteams_remove_project METHODS teams_remove_project IMPORTING team_id TYPE i project_id TYPE i body TYPE bodyteams_remove_project RAISING cx_static_check. * GET - "List team repositories" * Operation id: teams/list-repos * Parameter: team_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_teams_list_repos METHODS teams_list_repos IMPORTING team_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_teams_list_repos RAISING cx_static_check. * GET - "Check team permissions for a repository" * Operation id: teams/check-permissions-for-repo * Parameter: team_id, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 200 * application/json, #/components/schemas/minimal-repository * application/vnd.github.v3.repository+json, #/components/schemas/full-repository * Response: 204 * Response: 404 METHODS teams_check_permissions_for_re IMPORTING team_id TYPE i owner TYPE string repo TYPE string RETURNING VALUE(return_data) TYPE minimal_repository RAISING cx_static_check. * PUT - "Add or update team repository permissions" * Operation id: teams/add-or-update-repo-permissions * Parameter: team_id, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Body ref: #/components/schemas/bodyteams_add_or_update_repo_p METHODS teams_add_or_update_repo_permi IMPORTING team_id TYPE i owner TYPE string repo TYPE string body TYPE bodyteams_add_or_update_repo_p RAISING cx_static_check. * DELETE - "Remove a repository from a team" * Operation id: teams/remove-repo * Parameter: team_id, required, path * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Body ref: #/components/schemas/bodyteams_remove_repo METHODS teams_remove_repo IMPORTING team_id TYPE i owner TYPE string repo TYPE string body TYPE bodyteams_remove_repo RAISING cx_static_check. * GET - "List child teams" * Operation id: teams/list-child * Parameter: team_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_teams_list_child METHODS teams_list_child IMPORTING team_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_teams_list_child RAISING cx_static_check. * GET - "Get the authenticated user" * Operation id: users/get-authenticated * Response: 200 * application/json, string * Response: 304 * Response: 401 * Response: 403 METHODS users_get_authenticated RAISING cx_static_check. * PATCH - "Update the authenticated user" * Operation id: users/update-authenticated * Response: 200 * application/json, #/components/schemas/private-user * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyusers_update_authenticated METHODS users_update_authenticated IMPORTING body TYPE bodyusers_update_authenticated RETURNING VALUE(return_data) TYPE private_user RAISING cx_static_check. * GET - "List email addresses for the authenticated user" * Operation id: users/list-emails-for-authenticated * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_emails_for_authenti * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_list_emails_for_authenti IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_emails_for RAISING cx_static_check. * POST - "Add an email address for the authenticated user" * Operation id: users/add-email-for-authenticated * Response: 201 * application/json, #/components/schemas/response_users_add_email_for_authentica * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 422 * Body schema: string METHODS users_add_email_for_authentica IMPORTING body TYPE string RETURNING VALUE(return_data) TYPE response_users_add_email_for_a RAISING cx_static_check. * DELETE - "Delete an email address for the authenticated user" * Operation id: users/delete-email-for-authenticated * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 422 * Body schema: string METHODS users_delete_email_for_authent IMPORTING body TYPE string RAISING cx_static_check. * GET - "List followers of the authenticated user" * Operation id: users/list-followers-for-authenticated-user * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_followers_for_authe * Response: 304 * Response: 401 * Response: 403 METHODS users_list_followers_for_authe IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_followers_ RAISING cx_static_check. * GET - "List the people the authenticated user follows" * Operation id: users/list-followed-by-authenticated * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_followed_by_authent * Response: 304 * Response: 401 * Response: 403 METHODS users_list_followed_by_authent IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_followed_b RAISING cx_static_check. * GET - "Check if a person is followed by the authenticated user" * Operation id: users/check-person-is-followed-by-authenticated * Parameter: username, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 * application/json, #/components/schemas/basic-error METHODS users_check_person_is_followed IMPORTING username TYPE string RAISING cx_static_check. * PUT - "Follow a user" * Operation id: users/follow * Parameter: username, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_follow IMPORTING username TYPE string RAISING cx_static_check. * DELETE - "Unfollow a user" * Operation id: users/unfollow * Parameter: username, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_unfollow IMPORTING username TYPE string RAISING cx_static_check. * GET - "List GPG keys for the authenticated user" * Operation id: users/list-gpg-keys-for-authenticated * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_gpg_keys_for_authen * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_list_gpg_keys_for_authen IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_gpg_keys_f RAISING cx_static_check. * POST - "Create a GPG key for the authenticated user" * Operation id: users/create-gpg-key-for-authenticated * Response: 201 * application/json, #/components/schemas/gpg-key * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyusers_create_gpg_key_for_a METHODS users_create_gpg_key_for_authe IMPORTING body TYPE bodyusers_create_gpg_key_for_a RETURNING VALUE(return_data) TYPE gpg_key RAISING cx_static_check. * GET - "Get a GPG key for the authenticated user" * Operation id: users/get-gpg-key-for-authenticated * Parameter: gpg_key_id, required, path * Response: 200 * application/json, #/components/schemas/gpg-key * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_get_gpg_key_for_authenti IMPORTING gpg_key_id TYPE i RETURNING VALUE(return_data) TYPE gpg_key RAISING cx_static_check. * DELETE - "Delete a GPG key for the authenticated user" * Operation id: users/delete-gpg-key-for-authenticated * Parameter: gpg_key_id, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 422 METHODS users_delete_gpg_key_for_authe IMPORTING gpg_key_id TYPE i RAISING cx_static_check. * GET - "List app installations accessible to the user access token" * Operation id: apps/list-installations-for-authenticated-user * Parameter: accept, required, header * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_apps_list_installations_for_au * Response: 304 * Response: 401 * Response: 403 * Response: 415 METHODS apps_list_installations_for_au IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_apps_list_installat01 RAISING cx_static_check. * GET - "List repositories accessible to the user access token" * Operation id: apps/list-installation-repos-for-authenticated-user * Parameter: accept, required, header * Parameter: installation_id, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_apps_list_installation_repos_f * Response: 304 * Response: 403 * Response: 404 METHODS apps_list_installation_repos_f IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' installation_id TYPE i per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_apps_list_installat02 RAISING cx_static_check. * PUT - "Add a repository to an app installation" * Operation id: apps/add-repo-to-installation * Parameter: installation_id, required, path * Parameter: repository_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 METHODS apps_add_repo_to_installation IMPORTING installation_id TYPE i repository_id TYPE i RAISING cx_static_check. * DELETE - "Remove a repository from an app installation" * Operation id: apps/remove-repo-from-installation * Parameter: installation_id, required, path * Parameter: repository_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 METHODS apps_remove_repo_from_installa IMPORTING installation_id TYPE i repository_id TYPE i RAISING cx_static_check. * GET - "List user account issues assigned to the authenticated user" * Operation id: issues/list-for-authenticated-user * Parameter: filter, optional, query * Parameter: state, optional, query * Parameter: sort, optional, query * Parameter: labels, optional, query * Parameter: direction, optional, query * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_issues_list_for_authenticated_ * Response: 304 * Response: 404 METHODS issues_list_for_authenticated_ IMPORTING filter TYPE string DEFAULT 'assigned' state TYPE string DEFAULT 'open' sort TYPE string DEFAULT 'created' labels TYPE string OPTIONAL direction TYPE string DEFAULT 'desc' since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_issues_list_for_authe RAISING cx_static_check. * GET - "List public SSH keys for the authenticated user" * Operation id: users/list-public-ssh-keys-for-authenticated * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_public_ssh_keys_for * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_list_public_ssh_keys_for IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_public_ssh RAISING cx_static_check. * POST - "Create a public SSH key for the authenticated user" * Operation id: users/create-public-ssh-key-for-authenticated * Response: 201 * application/json, #/components/schemas/key * Response: 304 * Response: 401 * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyusers_create_public_ssh_ke METHODS users_create_public_ssh_key_fo IMPORTING body TYPE bodyusers_create_public_ssh_ke RETURNING VALUE(return_data) TYPE key RAISING cx_static_check. * GET - "Get a public SSH key for the authenticated user" * Operation id: users/get-public-ssh-key-for-authenticated * Parameter: key_id, required, path * Response: 200 * application/json, #/components/schemas/key * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_get_public_ssh_key_for_a IMPORTING key_id TYPE i RETURNING VALUE(return_data) TYPE key RAISING cx_static_check. * DELETE - "Delete a public SSH key for the authenticated user" * Operation id: users/delete-public-ssh-key-for-authenticated * Parameter: key_id, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_delete_public_ssh_key_fo IMPORTING key_id TYPE i RAISING cx_static_check. * GET - "List organization memberships for the authenticated user" * Operation id: orgs/list-memberships-for-authenticated-user * Parameter: state, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list_memberships_for_auth * Response: 304 * Response: 401 * Response: 403 * Response: 422 METHODS orgs_list_memberships_for_auth IMPORTING state TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_orgs_list_memberships RAISING cx_static_check. * GET - "Get an organization membership for the authenticated user" * Operation id: orgs/get-membership-for-authenticated-user * Parameter: org, required, path * Response: 200 * application/json, #/components/schemas/org-membership * Response: 403 * Response: 404 METHODS orgs_get_membership_for_authen IMPORTING org TYPE string RETURNING VALUE(return_data) TYPE org_membership RAISING cx_static_check. * PATCH - "Update an organization membership for the authenticated user" * Operation id: orgs/update-membership-for-authenticated-user * Parameter: org, required, path * Response: 200 * application/json, #/components/schemas/org-membership * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyorgs_update_membership_for METHODS orgs_update_membership_for_aut IMPORTING org TYPE string body TYPE bodyorgs_update_membership_for RETURNING VALUE(return_data) TYPE org_membership RAISING cx_static_check. * GET - "List organizations for the authenticated user" * Operation id: orgs/list-for-authenticated-user * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list_for_authenticated_us * Response: 304 * Response: 401 * Response: 403 METHODS orgs_list_for_authenticated_us IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_orgs_list_for_authent RAISING cx_static_check. * POST - "Create a user project" * Operation id: projects/create-for-authenticated-user * Response: 201 * application/json, #/components/schemas/project * Response: 304 * Response: 401 * Response: 403 * Response: 415 * Response: 422 * Body ref: #/components/schemas/bodyprojects_create_for_authen METHODS projects_create_for_authentica IMPORTING body TYPE bodyprojects_create_for_authen RETURNING VALUE(return_data) TYPE project RAISING cx_static_check. * GET - "List public email addresses for the authenticated user" * Operation id: users/list-public-emails-for-authenticated * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_public_emails_for_a * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS users_list_public_emails_for_a IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_public_ema RAISING cx_static_check. * GET - "List repositories for the authenticated user" * Operation id: repos/list-for-authenticated-user * Parameter: visibility, optional, query * Parameter: affiliation, optional, query * Parameter: type, optional, query * Parameter: sort, optional, query * Parameter: direction, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Parameter: since, optional, query * Parameter: before, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_for_authenticated_u * Response: 304 * Response: 401 * Response: 403 * Response: 422 METHODS repos_list_for_authenticated_u IMPORTING visibility TYPE string DEFAULT 'all' affiliation TYPE string DEFAULT 'owner,collaborator,organization_member' type TYPE string DEFAULT 'all' sort TYPE string DEFAULT 'full_name' direction TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 since TYPE string OPTIONAL before TYPE string OPTIONAL RETURNING VALUE(return_data) TYPE response_repos_list_for_authen RAISING cx_static_check. * POST - "Create a repository for the authenticated user" * Operation id: repos/create-for-authenticated-user * Response: 201 * application/json, #/components/schemas/repository * Response: 304 * Response: 400 * Response: 401 * Response: 403 * Response: 404 * Response: 422 * Body ref: #/components/schemas/bodyrepos_create_for_authentic METHODS repos_create_for_authenticated IMPORTING body TYPE bodyrepos_create_for_authentic RETURNING VALUE(return_data) TYPE repository RAISING cx_static_check. * GET - "List repository invitations for the authenticated user" * Operation id: repos/list-invitations-for-authenticated-user * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_invitations_for_aut * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS repos_list_invitations_for_aut IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_invitati01 RAISING cx_static_check. * PATCH - "Accept a repository invitation" * Operation id: repos/accept-invitation * Parameter: invitation_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 * Response: 409 METHODS repos_accept_invitation IMPORTING invitation_id TYPE i RAISING cx_static_check. * DELETE - "Decline a repository invitation" * Operation id: repos/decline-invitation * Parameter: invitation_id, required, path * Response: 204 * Response: 304 * Response: 403 * Response: 404 * Response: 409 METHODS repos_decline_invitation IMPORTING invitation_id TYPE i RAISING cx_static_check. * GET - "List repositories starred by the authenticated user" * Operation id: activity/list-repos-starred-by-authenticated-user * Parameter: sort, optional, query * Parameter: direction, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_repos_starred_by * application/vnd.github.v3.star+json, array * Response: 304 * Response: 401 * Response: 403 METHODS activity_list_repos_starred_by IMPORTING sort TYPE string DEFAULT 'created' direction TYPE string DEFAULT 'desc' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_repos_s RAISING cx_static_check. * GET - "Check if a repository is starred by the authenticated user" * Operation id: activity/check-repo-is-starred-by-authenticated-user * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 * application/json, #/components/schemas/basic-error METHODS activity_check_repo_is_starred IMPORTING owner TYPE string repo TYPE string RAISING cx_static_check. * PUT - "Star a repository for the authenticated user" * Operation id: activity/star-repo-for-authenticated-user * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS activity_star_repo_for_authent IMPORTING owner TYPE string repo TYPE string RAISING cx_static_check. * DELETE - "Unstar a repository for the authenticated user" * Operation id: activity/unstar-repo-for-authenticated-user * Parameter: owner, required, path * Parameter: repo, required, path * Response: 204 * Response: 304 * Response: 401 * Response: 403 * Response: 404 METHODS activity_unstar_repo_for_authe IMPORTING owner TYPE string repo TYPE string RAISING cx_static_check. * GET - "List repositories watched by the authenticated user" * Operation id: activity/list-watched-repos-for-authenticated-user * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_watched_repos_fo * Response: 304 * Response: 401 * Response: 403 METHODS activity_list_watched_repos_fo IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_watched RAISING cx_static_check. * GET - "List teams for the authenticated user" * Operation id: teams/list-for-authenticated-user * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_teams_list_for_authenticated_u * Response: 304 * Response: 403 * Response: 404 METHODS teams_list_for_authenticated_u IMPORTING per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_teams_list_for_authen RAISING cx_static_check. * GET - "List users" * Operation id: users/list * Parameter: since, optional, query * Parameter: per_page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list * Response: 304 METHODS users_list IMPORTING since TYPE i OPTIONAL per_page TYPE i DEFAULT 30 RETURNING VALUE(return_data) TYPE response_users_list RAISING cx_static_check. * GET - "Get a user" * Operation id: users/get-by-username * Parameter: username, required, path * Response: 200 * application/json, string * Response: 202 * Response: 404 METHODS users_get_by_username IMPORTING username TYPE string RAISING cx_static_check. * GET - "List events for the authenticated user" * Operation id: activity/list-events-for-authenticated-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_events_for_authe METHODS activity_list_events_for_authe IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_events_ RAISING cx_static_check. * GET - "List organization events for the authenticated user" * Operation id: activity/list-org-events-for-authenticated-user * Parameter: username, required, path * Parameter: org, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_org_events_for_a METHODS activity_list_org_events_for_a IMPORTING username TYPE string org TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_org_eve RAISING cx_static_check. * GET - "List public events for a user" * Operation id: activity/list-public-events-for-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_public_events_01 METHODS activity_list_public_events_01 IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_publi03 RAISING cx_static_check. * GET - "List followers of a user" * Operation id: users/list-followers-for-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_followers_for_user METHODS users_list_followers_for_user IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_follower01 RAISING cx_static_check. * GET - "List the people a user follows" * Operation id: users/list-following-for-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_following_for_user METHODS users_list_following_for_user IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_following_ RAISING cx_static_check. * GET - "Check if a user follows another user" * Operation id: users/check-following-for-user * Parameter: target_user, required, path * Parameter: username, required, path * Response: 204 * Response: 404 METHODS users_check_following_for_user IMPORTING target_user TYPE string username TYPE string RAISING cx_static_check. * GET - "List gists for a user" * Operation id: gists/list-for-user * Parameter: username, required, path * Parameter: since, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_gists_list_for_user * Response: 422 METHODS gists_list_for_user IMPORTING username TYPE string since TYPE string OPTIONAL per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_gists_list_for_user RAISING cx_static_check. * GET - "List GPG keys for a user" * Operation id: users/list-gpg-keys-for-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_gpg_keys_for_user METHODS users_list_gpg_keys_for_user IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_gpg_keys01 RAISING cx_static_check. * GET - "Get contextual information for a user" * Operation id: users/get-context-for-user * Parameter: subject_type, optional, query * Parameter: subject_id, optional, query * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/hovercard * Response: 404 * Response: 422 METHODS users_get_context_for_user IMPORTING subject_type TYPE string OPTIONAL subject_id TYPE string OPTIONAL username TYPE string RETURNING VALUE(return_data) TYPE hovercard RAISING cx_static_check. * GET - "Get a user installation for the authenticated app" * Operation id: apps/get-user-installation * Parameter: accept, required, header * Parameter: username, required, path * Response: 200 * application/json, #/components/schemas/installation-ghes-2 METHODS apps_get_user_installation IMPORTING accept TYPE string DEFAULT 'application/vnd.github.machine-man-preview+json' username TYPE string RETURNING VALUE(return_data) TYPE installation_ghes_2 RAISING cx_static_check. * GET - "List public keys for a user" * Operation id: users/list-public-keys-for-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_users_list_public_keys_for_use METHODS users_list_public_keys_for_use IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_users_list_public_key RAISING cx_static_check. * GET - "List organizations for a user" * Operation id: orgs/list-for-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_orgs_list_for_user METHODS orgs_list_for_user IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_orgs_list_for_user RAISING cx_static_check. * GET - "List user projects" * Operation id: projects/list-for-user * Parameter: state, optional, query * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_projects_list_for_user * Response: 415 * Response: 422 METHODS projects_list_for_user IMPORTING state TYPE string DEFAULT 'open' username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_projects_list_for_use RAISING cx_static_check. * GET - "List events received by the authenticated user" * Operation id: activity/list-received-events-for-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_received_events_ METHODS activity_list_received_events_ IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_receive RAISING cx_static_check. * GET - "List public events received by a user" * Operation id: activity/list-received-public-events-for-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_received_public_ METHODS activity_list_received_public_ IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_recei01 RAISING cx_static_check. * GET - "List repositories for a user" * Operation id: repos/list-for-user * Parameter: type, optional, query * Parameter: sort, optional, query * Parameter: direction, optional, query * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_repos_list_for_user METHODS repos_list_for_user IMPORTING type TYPE string DEFAULT 'owner' sort TYPE string DEFAULT 'full_name' direction TYPE string OPTIONAL username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_repos_list_for_user RAISING cx_static_check. * PUT - "Promote a user to be a site administrator" * Operation id: enterprise-admin/promote-user-to-be-site-administrator * Parameter: username, required, path * Response: 204 METHODS enterprise_admin_promote_user_ IMPORTING username TYPE string RAISING cx_static_check. * DELETE - "Demote a site administrator" * Operation id: enterprise-admin/demote-site-administrator * Parameter: username, required, path * Response: 204 METHODS enterprise_admin_demote_site_a IMPORTING username TYPE string RAISING cx_static_check. * GET - "List repositories starred by a user" * Operation id: activity/list-repos-starred-by-user * Parameter: username, required, path * Parameter: sort, optional, query * Parameter: direction, optional, query * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, string METHODS activity_list_repos_starred_01 IMPORTING username TYPE string sort TYPE string DEFAULT 'created' direction TYPE string DEFAULT 'desc' per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RAISING cx_static_check. * GET - "List repositories watched by a user" * Operation id: activity/list-repos-watched-by-user * Parameter: username, required, path * Parameter: per_page, optional, query * Parameter: page, optional, query * Response: 200 * application/json, #/components/schemas/response_activity_list_repos_watched_by METHODS activity_list_repos_watched_by IMPORTING username TYPE string per_page TYPE i DEFAULT 30 page TYPE i DEFAULT 1 RETURNING VALUE(return_data) TYPE response_activity_list_repos_w RAISING cx_static_check. * PUT - "Suspend a user" * Operation id: enterprise-admin/suspend-user * Parameter: username, required, path * Response: 204 * Body ref: #/components/schemas/bodyenterprise_admin_suspend_u METHODS enterprise_admin_suspend_user IMPORTING username TYPE string body TYPE bodyenterprise_admin_suspend_u RAISING cx_static_check. * DELETE - "Unsuspend a user" * Operation id: enterprise-admin/unsuspend-user * Parameter: username, required, path * Response: 204 * Body ref: #/components/schemas/bodyenterprise_admin_unsuspend METHODS enterprise_admin_unsuspend_use IMPORTING username TYPE string body TYPE bodyenterprise_admin_unsuspend RAISING cx_static_check. * GET - "Get the Zen of GitHub" * Operation id: meta/get-zen * Response: 200 * text/plain, string METHODS meta_get_zen RAISING cx_static_check. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 70, 956, 28896, 44731, 13, 198, 9, 2980, 515, 416, 450, 499, 12, 9654, 15042, 12, 16366, 198, 9, 21722, 410, 18, 30617, 7824, 11, 352, 13, 16, 13, 19, 198, 198, 9, 35100, 32815, 25, 3298, 12, 25480, 11, 2134, 198, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 850, 20541, 62, 25480, 62, 11250, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2695, 62, 4906, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31955, 62, 45163, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3200, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 850, 20541, 62, 25480, 62, 11250, 13, 198, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 3298, 62, 25480, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4075, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2995, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 11, 366, 284, 4598, 11, 5412, 7177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4566, 41876, 850, 20541, 62, 25480, 62, 11250, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6153, 62, 265, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 265, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29400, 62, 6371, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 3298, 62, 25480, 13, 198, 198, 9, 35100, 32815, 25, 3298, 12, 25480, 12, 17, 11, 2134, 198, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 850, 20541, 62, 25480, 62, 17, 62, 11250, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2695, 62, 4906, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31955, 62, 45163, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 850, 20541, 62, 25480, 62, 17, 62, 11250, 13, 198, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 3298, 62, 25480, 62, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4075, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2995, 41876, 49053, 9795, 43679, 3963, 4731, 13315, 5550, 38865, 35374, 11, 366, 284, 4598, 11, 5412, 7177, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4566, 41876, 850, 20541, 62, 25480, 62, 17, 62, 11250, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6153, 62, 265, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 265, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 29400, 62, 6371, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 3298, 62, 25480, 62, 17, 13, 198, 198, 9, 35100, 32815, 25, 1171, 12, 2539, 12, 12853, 11, 2134, 198, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1171, 62, 2539, 62, 12853, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1994, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2836, 62, 312, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 16099, 62, 312, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3670, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1100, 62, 8807, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19000, 41876, 450, 499, 62, 30388, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2727, 62, 265, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 62, 1484, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1171, 62, 2539, 62, 12853, 13, 198, 198, 9, 35100, 32815, 25, 300, 67, 499, 12, 76, 5912, 12, 15097, 11, 2134, 198, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 300, 67, 499, 62, 76, 5912, 62, 15097, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 67, 499, 62, 32656, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 4686, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10139, 62, 312, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 27711, 62, 6371, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1438, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31065, 41876, 4731, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
class ZCL_JSON_ARRAY definition public inheriting from ZCL_OBJECT final create public . public section. *"* public components of class zCL_JSON_ARRAY *"* do not include other source files here!!! type-pools ABAP . interfaces ZIF_JSON_VALUE . aliases GET_TYPE for ZIF_JSON_VALUE~GET_TYPE . methods CONSTRUCTOR . methods ADD importing !VALUE type ref to ZIF_JSON_VALUE returning value(RETURNING) type ABAP_BOOL . methods CLEAR . methods GET importing !INDEX type I returning value(RETURNING) type ref to ZIF_JSON_VALUE . methods ITERATOR returning value(RETURNING) type ref to ZIF_ITERATOR . methods REMOVE importing !VALUE type ref to ZIF_JSON_VALUE returning value(RETURNING) type ABAP_BOOL . methods SET importing !INDEX type I !VALUE type ref to ZIF_JSON_VALUE returning value(RETURNING) type ref to ZIF_JSON_VALUE . methods SIZE returning value(RETURNING) type I . protected section. *"* protected components of class zCL_JSON_ARRAY *"* do not include other source files here!!! private section. *"* private components of class zCL_JSON_ARRAY *"* do not include other source files here!!! data VALUES type ref to ZCL_ARRAYLIST . ENDCLASS. CLASS ZCL_JSON_ARRAY IMPLEMENTATION. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->ZIF_JSON_VALUE~GET_TYPE * +-------------------------------------------------------------------------------------------------+ * | [<-()] RETURNING TYPE I * +--------------------------------------------------------------------------------------</SIGNATURE> method zif_json_value~get_type. returning = zcl_json_types=>type_array. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->ADD * +-------------------------------------------------------------------------------------------------+ * | [--->] VALUE TYPE REF TO ZIF_JSON_VALUE * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method add. data object type ref to zcl_object. object ?= value. returning = me->values->add( object ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->CLEAR * +-------------------------------------------------------------------------------------------------+ * +--------------------------------------------------------------------------------------</SIGNATURE> method clear. me->values->clear( ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->CONSTRUCTOR * +-------------------------------------------------------------------------------------------------+ * +--------------------------------------------------------------------------------------</SIGNATURE> method constructor. super->constructor( ). " Init values list create object me->values. endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->GET * +-------------------------------------------------------------------------------------------------+ * | [--->] INDEX TYPE I * | [<-()] RETURNING TYPE REF TO ZIF_JSON_VALUE * +--------------------------------------------------------------------------------------</SIGNATURE> method get. returning ?= me->values->get( index ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->ITERATOR * +-------------------------------------------------------------------------------------------------+ * | [<-()] RETURNING TYPE REF TO ZIF_ITERATOR * +--------------------------------------------------------------------------------------</SIGNATURE> method iterator. returning = me->values->iterator( ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->REMOVE * +-------------------------------------------------------------------------------------------------+ * | [--->] VALUE TYPE REF TO ZIF_JSON_VALUE * | [<-()] RETURNING TYPE ABAP_BOOL * +--------------------------------------------------------------------------------------</SIGNATURE> method remove. data object type ref to zcl_object. object ?= value. returning = me->values->remove( object ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->SET * +-------------------------------------------------------------------------------------------------+ * | [--->] INDEX TYPE I * | [--->] VALUE TYPE REF TO ZIF_JSON_VALUE * | [<-()] RETURNING TYPE REF TO ZIF_JSON_VALUE * +--------------------------------------------------------------------------------------</SIGNATURE> method set. data object type ref to zcl_object. object ?= value. returning ?= me->values->set( index = index element = object ). endmethod. * <SIGNATURE>---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_JSON_ARRAY->SIZE * +-------------------------------------------------------------------------------------------------+ * | [<-()] RETURNING TYPE I * +--------------------------------------------------------------------------------------</SIGNATURE> method size. returning = me->values->size( ). endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 40386, 62, 1503, 30631, 6770, 201, 198, 220, 1171, 201, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 9864, 23680, 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, 1976, 5097, 62, 40386, 62, 1503, 30631, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 201, 198, 201, 198, 220, 20314, 1168, 5064, 62, 40386, 62, 39488, 764, 201, 198, 201, 198, 220, 47217, 17151, 62, 25216, 201, 198, 220, 220, 220, 329, 1168, 5064, 62, 40386, 62, 39488, 93, 18851, 62, 25216, 764, 201, 198, 201, 198, 220, 5050, 7102, 46126, 1581, 764, 201, 198, 220, 5050, 27841, 201, 198, 220, 220, 220, 33332, 201, 198, 220, 220, 220, 220, 220, 5145, 39488, 2099, 1006, 284, 1168, 5064, 62, 40386, 62, 39488, 201, 198, 220, 220, 220, 8024, 201, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 4261, 15871, 8, 2099, 9564, 2969, 62, 8202, 3535, 764, 201, 198, 220, 5050, 30301, 1503, 764, 201, 198, 220, 5050, 17151, 201, 198, 220, 220, 220, 33332, 201, 198, 220, 220, 220, 220, 220, 5145, 12115, 6369, 2099, 314, 201, 198, 220, 220, 220, 8024, 201, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 4261, 15871, 8, 2099, 1006, 284, 1168, 5064, 62, 40386, 62, 39488, 764, 201, 198, 220, 5050, 314, 5781, 25633, 201, 198, 220, 220, 220, 8024, 201, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 4261, 15871, 8, 2099, 1006, 284, 1168, 5064, 62, 2043, 1137, 25633, 764, 201, 198, 220, 5050, 22657, 46, 6089, 201, 198, 220, 220, 220, 33332, 201, 198, 220, 220, 220, 220, 220, 5145, 39488, 2099, 1006, 284, 1168, 5064, 62, 40386, 62, 39488, 201, 198, 220, 220, 220, 8024, 201, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 4261, 15871, 8, 2099, 9564, 2969, 62, 8202, 3535, 764, 201, 198, 220, 5050, 25823, 201, 198, 220, 220, 220, 33332, 201, 198, 220, 220, 220, 220, 220, 5145, 12115, 6369, 2099, 314, 201, 198, 220, 220, 220, 220, 220, 5145, 39488, 2099, 1006, 284, 1168, 5064, 62, 40386, 62, 39488, 201, 198, 220, 220, 220, 8024, 201, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 4261, 15871, 8, 2099, 1006, 284, 1168, 5064, 62, 40386, 62, 39488, 764, 201, 198, 220, 5050, 311, 35400, 201, 198, 220, 220, 220, 8024, 201, 198, 220, 220, 220, 220, 220, 1988, 7, 26087, 4261, 15871, 8, 2099, 314, 764, 201, 198, 24326, 2665, 13, 201, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1976, 5097, 62, 40386, 62, 1503, 30631, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 19734, 2665, 13, 201, 198, 201, 198, 9, 1, 9, 2839, 6805, 286, 1398, 1976, 5097, 62, 40386, 62, 1503, 30631, 201, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 201, 198, 220, 1366, 26173, 35409, 2099, 1006, 284, 1168, 5097, 62, 1503, 30631, 45849, 764, 201, 198, 10619, 31631, 13, 201, 198, 201, 198, 201, 198, 201, 198, 31631, 1168, 5097, 62, 40386, 62, 1503, 30631, 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, 40386, 62, 1503, 30631, 3784, 57, 5064, 62, 40386, 62, 39488, 93, 18851, 62, 25216, 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, 220, 220, 220, 220, 220, 220, 220, 314, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 1976, 361, 62, 17752, 62, 8367, 93, 1136, 62, 4906, 13, 201, 198, 220, 8024, 796, 1976, 565, 62, 17752, 62, 19199, 14804, 4906, 62, 18747, 13, 201, 198, 437, 24396, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 40386, 62, 1503, 30631, 3784, 29266, 201, 198, 9, 1343, 10097, 3880, 19529, 201, 198, 9, 930, 685, 438, 3784, 60, 26173, 8924, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1168, 5064, 62, 40386, 62, 39488, 201, 198, 9, 930, 685, 27, 12, 3419, 60, 30826, 4261, 15871, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 220, 220, 220, 220, 220, 220, 220, 9564, 2969, 62, 8202, 3535, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 751, 13, 201, 198, 220, 1366, 2134, 2099, 1006, 284, 1976, 565, 62, 15252, 13, 201, 198, 220, 2134, 5633, 28, 1988, 13, 201, 198, 220, 8024, 796, 502, 3784, 27160, 3784, 2860, 7, 2134, 6739, 201, 198, 437, 24396, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 40386, 62, 1503, 30631, 3784, 29931, 1503, 201, 198, 9, 1343, 10097, 3880, 19529, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 1598, 13, 201, 198, 220, 502, 3784, 27160, 3784, 20063, 7, 6739, 201, 198, 437, 24396, 13, 201, 198, 201, 198, 201, 198, 9, 1279, 46224, 40086, 29, 10097, 19351, 6329, 10, 201, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 40386, 62, 1503, 30631, 3784, 10943, 46126, 1581, 201, 198, 9, 1343, 10097, 3880, 19529, 201, 198, 9, 1343, 10097, 19351, 438, 3556, 46224, 40086, 29, 201, 198, 24396, 23772, 13, 201, 198, 220, 2208, 3784, 41571, 273, 7, 6739, 201, 198, 220, 366, 44707, 3815, 1351, 201, 198, 220, 2251, 2134, 502, 3784, 27160, 13, 201, 198, 437, 24396 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*&---------------------------------------------------------------------* *& Include ZDOP_TABSTRIP_F01 *&---------------------------------------------------------------------*
[ 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, 37, 486, 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 ]
CLASS ycl_abapgit_gui_page_commit DEFINITION PUBLIC INHERITING FROM ycl_abapgit_gui_page FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES: yif_abapgit_gui_page_hotkey. CONSTANTS: BEGIN OF c_action, commit_post TYPE string VALUE 'commit_post', commit_cancel TYPE string VALUE 'commit_cancel', END OF c_action . METHODS constructor IMPORTING io_repo TYPE REF TO ycl_abapgit_repo_online io_stage TYPE REF TO ycl_abapgit_stage RAISING ycx_abapgit_exception. METHODS yif_abapgit_gui_page~on_event REDEFINITION . PROTECTED SECTION. CLASS-METHODS parse_commit_request IMPORTING !it_postdata TYPE cnht_post_data_tab EXPORTING !eg_fields TYPE any . METHODS render_content REDEFINITION . METHODS scripts REDEFINITION . PRIVATE SECTION. DATA: mo_repo TYPE REF TO ycl_abapgit_repo_online, mo_stage TYPE REF TO ycl_abapgit_stage. METHODS: render_menu RETURNING VALUE(ro_html) TYPE REF TO ycl_abapgit_html, render_stage RETURNING VALUE(ro_html) TYPE REF TO ycl_abapgit_html RAISING ycx_abapgit_exception, render_form RETURNING VALUE(ro_html) TYPE REF TO ycl_abapgit_html RAISING ycx_abapgit_exception, render_text_input IMPORTING iv_name TYPE string iv_label TYPE string iv_value TYPE string OPTIONAL iv_max_length TYPE string OPTIONAL RETURNING VALUE(ro_html) TYPE REF TO ycl_abapgit_html. ENDCLASS. CLASS YCL_ABAPGIT_GUI_PAGE_COMMIT IMPLEMENTATION. METHOD constructor. super->constructor( ). mo_repo = io_repo. mo_stage = io_stage. ms_control-page_title = 'COMMIT'. ENDMETHOD. METHOD parse_commit_request. CONSTANTS: lc_replace TYPE string VALUE '<<new>>'. DATA: lv_string TYPE string, lt_fields TYPE tihttpnvp. FIELD-SYMBOLS <lv_body> TYPE string. CLEAR eg_fields. CONCATENATE LINES OF it_postdata INTO lv_string. REPLACE ALL OCCURRENCES OF yif_abapgit_definitions=>c_crlf IN lv_string WITH lc_replace. REPLACE ALL OCCURRENCES OF yif_abapgit_definitions=>c_newline IN lv_string WITH lc_replace. lt_fields = ycl_abapgit_html_action_utils=>parse_fields_upper_case_name( lv_string ). ycl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'COMMITTER_NAME' it_field = lt_fields CHANGING cg_field = eg_fields ). ycl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'COMMITTER_EMAIL' it_field = lt_fields CHANGING cg_field = eg_fields ). ycl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'AUTHOR_NAME' it_field = lt_fields CHANGING cg_field = eg_fields ). ycl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'AUTHOR_EMAIL' it_field = lt_fields CHANGING cg_field = eg_fields ). ycl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'COMMENT' it_field = lt_fields CHANGING cg_field = eg_fields ). ycl_abapgit_html_action_utils=>get_field( EXPORTING iv_name = 'BODY' it_field = lt_fields CHANGING cg_field = eg_fields ). ASSIGN COMPONENT 'BODY' OF STRUCTURE eg_fields TO <lv_body>. ASSERT <lv_body> IS ASSIGNED. REPLACE ALL OCCURRENCES OF lc_replace IN <lv_body> WITH yif_abapgit_definitions=>c_newline. ENDMETHOD. METHOD render_content. CREATE OBJECT ro_html. ro_html->add( '<div class="repo">' ). ro_html->add( ycl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo iv_show_package = abap_false iv_branch = mo_repo->get_branch_name( ) ) ). ro_html->add( render_menu( ) ). ro_html->add( render_form( ) ). ro_html->add( render_stage( ) ). ro_html->add( '</div>' ). ENDMETHOD. METHOD render_form. CONSTANTS: lc_body_col_max TYPE i VALUE 150. DATA: li_user TYPE REF TO yif_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 ycl_abapgit_settings. DATA: lv_body_size TYPE i. * see https://git-scm.com/book/ch5-2.html * commit messages should be max 50 characters * body should wrap at 72 characters li_user = ycl_abapgit_persistence_user=>get_instance( ). lv_user = li_user->get_repo_git_user_name( mo_repo->get_url( ) ). IF lv_user IS INITIAL. lv_user = li_user->get_default_git_user_name( ). ENDIF. IF lv_user IS INITIAL. " get default from user master record lv_user = ycl_abapgit_user_master_record=>get_instance( sy-uname )->get_name( ). ENDIF. lv_email = li_user->get_repo_git_user_email( mo_repo->get_url( ) ). IF lv_email IS INITIAL. lv_email = li_user->get_default_git_user_email( ). ENDIF. IF lv_email IS INITIAL. " get default from user master record lv_email = ycl_abapgit_user_master_record=>get_instance( sy-uname )->get_email( ). ENDIF. CREATE OBJECT ro_html. ro_html->add( '<div class="form-container">' ). ro_html->add( '<form id="commit_form" class="aligned-form"' && ' method="post" action="sapevent:commit_post">' ). ro_html->add( render_text_input( iv_name = 'committer_name' iv_label = 'committer name' iv_value = lv_user ) ). ro_html->add( render_text_input( iv_name = 'committer_email' iv_label = 'committer e-mail' iv_value = lv_email ) ). lo_settings = ycl_abapgit_persist_settings=>get_instance( )->read( ). lv_s_param = lo_settings->get_commitmsg_comment_length( ). ro_html->add( render_text_input( iv_name = 'comment' iv_label = 'comment' iv_max_length = lv_s_param ) ). ro_html->add( '<div class="row">' ). ro_html->add( '<label for="c-body">body</label>' ). lv_body_size = lo_settings->get_commitmsg_body_size( ). IF lv_body_size > lc_body_col_max. lv_body_size = lc_body_col_max. ENDIF. ro_html->add( |<textarea id="c-body" name="body" rows="10" cols="| && |{ lv_body_size }"></textarea>| ). ro_html->add( '<input type="submit" class="hidden-submit">' ). ro_html->add( '</div>' ). ro_html->add( '<div class="row">' ). ro_html->add( '<span class="cell"></span>' ). ro_html->add( '<span class="cell sub-title">Optionally,' && ' specify author (same as committer by default)</span>' ). ro_html->add( '</div>' ). ro_html->add( render_text_input( iv_name = 'author_name' iv_label = 'author name' ) ). ro_html->add( render_text_input( iv_name = 'author_email' iv_label = 'author e-mail' ) ). ro_html->add( '</form>' ). ro_html->add( '</div>' ). ENDMETHOD. METHOD render_menu. DATA lo_toolbar TYPE REF TO ycl_abapgit_html_toolbar. CREATE OBJECT ro_html. CREATE OBJECT lo_toolbar. lo_toolbar->add( iv_act = 'submitFormById(''commit_form'');' iv_txt = 'Commit' iv_typ = yif_abapgit_definitions=>c_action_type-onclick iv_opt = yif_abapgit_definitions=>c_html_opt-strong ) ##NO_TEXT. lo_toolbar->add( iv_act = c_action-commit_cancel iv_txt = 'Cancel' iv_opt = yif_abapgit_definitions=>c_html_opt-cancel ) ##NO_TEXT. ro_html->add( '<div class="paddings">' ). ro_html->add( lo_toolbar->render( ) ). ro_html->add( '</div>' ). ENDMETHOD. METHOD render_stage. DATA: lt_stage TYPE ycl_abapgit_stage=>ty_stage_tt. FIELD-SYMBOLS: <ls_stage> LIKE LINE OF lt_stage. CREATE OBJECT ro_html. lt_stage = mo_stage->get_all( ). ro_html->add( '<table class="stage_tab">' ). ro_html->add( '<thead>' ). ro_html->add( '<tr>'). ro_html->add( '<th colspan="2">Staged files</th>'). ro_html->add( '</tr>' ). ro_html->add( '</thead>' ). ro_html->add( '<tbody>' ). LOOP AT lt_stage ASSIGNING <ls_stage>. ro_html->add( '<tr>' ). ro_html->add( '<td class="method">' ). ro_html->add( ycl_abapgit_stage=>method_description( <ls_stage>-method ) ). ro_html->add( '</td>' ). ro_html->add( '<td>' ). ro_html->add( <ls_stage>-file-path && <ls_stage>-file-filename ). ro_html->add( '</td>' ). ro_html->add( '</tr>' ). ENDLOOP. ro_html->add( '</tbody>' ). ro_html->add( '</table>' ). ENDMETHOD. METHOD render_text_input. DATA lv_attrs TYPE string. CREATE OBJECT ro_html. IF iv_value IS NOT INITIAL. lv_attrs = | value="{ iv_value }"|. ENDIF. IF iv_max_length IS NOT INITIAL. lv_attrs = | maxlength="{ iv_max_length }"|. ENDIF. ro_html->add( '<div class="row">' ). ro_html->add( |<label for="{ iv_name }">{ iv_label }</label>| ). ro_html->add( |<input id="{ iv_name }" name="{ iv_name }" type="text"{ lv_attrs }>| ). ro_html->add( '</div>' ). ENDMETHOD. METHOD scripts. ro_html = super->scripts( ). ro_html->add( 'setInitialFocus("comment");' ). ENDMETHOD. METHOD yif_abapgit_gui_page_hotkey~get_hotkey_actions. ENDMETHOD. METHOD yif_abapgit_gui_page~on_event. DATA: ls_commit TYPE ycl_abapgit_services_git=>ty_commit_fields. CASE iv_action. WHEN c_action-commit_post. parse_commit_request( EXPORTING it_postdata = it_postdata IMPORTING eg_fields = ls_commit ). ls_commit-repo_key = mo_repo->get_key( ). ycl_abapgit_services_git=>commit( is_commit = ls_commit io_repo = mo_repo io_stage = mo_stage ). ev_state = yif_abapgit_definitions=>c_event_state-go_back_to_bookmark. WHEN c_action-commit_cancel. ev_state = yif_abapgit_definitions=>c_event_state-go_back. ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 41509, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 331, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 8940, 2539, 13, 628, 220, 220, 220, 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, 331, 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, 331, 565, 62, 397, 499, 18300, 62, 14247, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 337, 36252, 50, 331, 361, 62, 397, 499, 18300, 62, 48317, 62, 7700, 93, 261, 62, 15596, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 21136, 62, 41509, 62, 25927, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 7353, 7890, 41876, 269, 77, 4352, 62, 7353, 62, 7890, 62, 8658, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 1533, 62, 25747, 220, 220, 41876, 597, 764, 628, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 220, 220, 337, 36252, 50, 14750, 198, 220, 220, 220, 220, 220, 220, 220, 23848, 36, 20032, 17941, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 6941, 62, 260, 7501, 220, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6941, 62, 14247, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 14247, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 26272, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 6494, 11, 198, 220, 220, 220, 220, 220, 8543, 62, 14247, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 8543, 62, 687, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 331, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 11, 198, 220, 220, 220, 220, 220, 8543, 62, 5239, 62, 15414, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 3672, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 18242, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8367, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 9806, 62, 13664, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 305, 62, 6494, 8, 41876, 4526, 37, 5390, 331, 565, 62, 397, 499, 18300, 62, 6494, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 9858, 36393, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 6941, 62, 260, 7501, 220, 220, 796, 33245, 62, 260, 7501, 13, 198, 220, 220, 220, 6941, 62, 14247, 220, 796, 33245, 62, 14247, 13, 628, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 9858, 36393, 4458, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 21136, 62, 41509, 62, 25927, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 300, 66, 62, 33491, 41876, 4731, 26173, 8924, 705, 16791, 3605, 4211, 4458, 628, 220, 220, 220, 42865, 25, 300, 85, 62, 8841, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 25747, 41876, 46668, 4023, 77, 36133, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 1279, 6780, 62, 2618, 29, 41876, 4731, 13, 628, 220, 220, 220, 30301, 1503, 29206, 62, 25747, 13, 628, 220, 220, 220, 39962, 1404, 1677, 6158, 43277, 1546, 3963, 340, 62, 7353, 7890, 39319, 300, 85, 62, 8841, 13, 198, 220, 220, 220, 45285, 11598, 11096, 440, 4093, 31302, 24181, 1546, 3963, 331, 361, 62, 397, 499, 18300, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
FUNCTION zpof_gtt_ee_sh_hdr_arr_rel. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_EVENT_TYPES) TYPE /SAPTRX/EVTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERENCE(I_EVENTTYPE_TAB) TYPE TRXAS_EVENTTYPE_TABS_WA *" REFERENCE(I_EVENT) TYPE TRXAS_EVT_CTAB_WA *" EXPORTING *" VALUE(E_RESULT) LIKE SY-BINPT *" TABLES *" C_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" EXCEPTIONS *" PARAMETER_ERROR *" RELEVANCE_DETERM_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- DATA: lo_udm_message TYPE REF TO cx_udm_message, ls_bapiret TYPE bapiret2. TRY. e_result = lcl_ae_performer=>check_relevance( EXPORTING is_definition = VALUE #( maintab = lif_app_constants=>cs_tabledef-sh_header_new ) io_ae_factory = NEW lcl_ae_factory_sh_header_arr( ) iv_appsys = i_appsys is_event_type = i_event_types it_all_appl_tables = i_all_appl_tables is_events = i_event ). CATCH cx_udm_message INTO lo_udm_message. lcl_tools=>get_errors_log( EXPORTING io_umd_message = lo_udm_message iv_appsys = i_appsys IMPORTING es_bapiret = ls_bapiret ). " add error message APPEND ls_bapiret TO c_logtable. " throw corresponding exception CASE lo_udm_message->textid. WHEN lif_ef_constants=>cs_errors-stop_processing. RAISE stop_processing. WHEN lif_ef_constants=>cs_errors-table_determination. RAISE relevance_determ_error. ENDCASE. ENDTRY. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 79, 1659, 62, 70, 926, 62, 1453, 62, 1477, 62, 71, 7109, 62, 3258, 62, 2411, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 62, 9936, 47, 1546, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 20114, 9936, 47, 1546, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 7036, 62, 2969, 6489, 62, 5603, 9148, 1546, 8, 41876, 220, 7579, 55, 1921, 62, 5603, 2749, 1340, 30339, 1137, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 25216, 62, 5603, 33, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 3525, 25216, 62, 5603, 4462, 62, 15543, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 51, 62, 4177, 6242, 62, 15543, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 36, 62, 19535, 16724, 8, 34178, 220, 19704, 12, 33, 1268, 11571, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 327, 62, 25294, 38148, 19269, 18415, 11335, 220, 347, 17614, 26087, 17, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 29463, 2390, 2767, 1137, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 49968, 53, 19240, 62, 35, 2767, 1137, 44, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 44934, 62, 4805, 4503, 7597, 2751, 198, 9, 1, 10097, 23031, 198, 220, 42865, 25, 2376, 62, 463, 76, 62, 20500, 41876, 4526, 37, 5390, 43213, 62, 463, 76, 62, 20500, 11, 198, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 65, 499, 557, 83, 220, 220, 220, 220, 41876, 275, 499, 557, 83, 17, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 304, 62, 20274, 220, 796, 300, 565, 62, 3609, 62, 525, 16354, 14804, 9122, 62, 260, 2768, 590, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 46758, 220, 220, 220, 220, 220, 220, 796, 26173, 8924, 1303, 7, 1388, 8658, 796, 3868, 62, 1324, 62, 9979, 1187, 14804, 6359, 62, 83, 4510, 891, 12, 1477, 62, 25677, 62, 3605, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 3609, 62, 69, 9548, 220, 220, 220, 220, 220, 220, 796, 12682, 300, 565, 62, 3609, 62, 69, 9548, 62, 1477, 62, 25677, 62, 3258, 7, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 15596, 62, 4906, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 15596, 62, 19199, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 439, 62, 1324, 75, 62, 83, 2977, 220, 796, 1312, 62, 439, 62, 1324, 75, 62, 83, 2977, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 31534, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 15596, 198, 220, 220, 220, 220, 220, 6739, 628, 220, 220, 220, 327, 11417, 43213, 62, 463, 76, 62, 20500, 39319, 2376, 62, 463, 76, 62, 20500, 13, 198, 220, 220, 220, 220, 220, 300, 565, 62, 31391, 14804, 1136, 62, 48277, 62, 6404, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 388, 67, 62, 20500, 796, 2376, 62, 463, 76, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 65, 499, 557, 83, 220, 220, 220, 220, 796, 43979, 62, 65, 499, 557, 83, 6739, 628, 220, 220, 220, 220, 220, 366, 751, 4049, 3275, 198, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 65, 499, 557, 83, 5390, 269, 62, 6404, 11487, 13, 628, 220, 220, 220, 220, 220, 366, 3714, 11188, 6631, 198, 220, 220, 220, 220, 220, 42001, 2376, 62, 463, 76, 62, 20500, 3784, 5239, 312, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 3868, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 48277, 12, 11338, 62, 36948, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 2245, 62, 36948, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42099, 3868, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 48277, 12, 11487, 62, 40869, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 24352, 23082, 62, 67, 2357, 76, 62, 18224, 13, 198, 220, 220, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 40405, 13, 198, 198, 1677, 8068, 4944, 4177, 2849, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tabl DEFINITION 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. TYPES: BEGIN OF ty_segment_definition, segmentheader TYPE edisegmhd, segmentdefinition TYPE edisegmdef, segmentstructures TYPE STANDARD TABLE OF edisegstru WITH DEFAULT KEY, END OF ty_segment_definition. TYPES: ty_segment_definitions TYPE STANDARD TABLE OF ty_segment_definition WITH DEFAULT KEY. TYPES: BEGIN OF ty_tabl_extras, tddat TYPE tddat, END OF ty_tabl_extras. "! get additional data like table authorization group "! @parameter iv_tabname | name of the table METHODS read_extras IMPORTING iv_tabname TYPE ddobjname RETURNING VALUE(rs_tabl_extras) TYPE ty_tabl_extras. "! Update additional data "! @parameter iv_tabname | name of the table "! @parameter is_tabl_extras | additional table data METHODS update_extras IMPORTING iv_tabname TYPE ddobjname is_tabl_extras TYPE ty_tabl_extras. "! Delete additional data "! @parameter iv_tabname | name of the table METHODS delete_extras IMPORTING iv_tabname TYPE ddobjname. "! Serialize IDoc Segment type/definition if exits "! @parameter io_xml | XML writer "! @raising zcx_abapgit_exception | Exceptions METHODS serialize_idoc_segment IMPORTING io_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception. "! Deserialize IDoc Segment type/definition if exits "! @parameter io_xml | XML writer "! @parameter iv_package | Target package "! @parameter rv_deserialized | It's a segment and was desserialized "! @raising zcx_abapgit_exception | Exceptions METHODS deserialize_idoc_segment IMPORTING io_xml TYPE REF TO zif_abapgit_xml_input iv_package TYPE devclass RETURNING VALUE(rv_deserialized) TYPE abap_bool RAISING zcx_abapgit_exception. "! Delete the IDoc Segment type if exists "! @parameter rv_deleted | It's a segment and was deleted "! @raising zcx_abapgit_exception | Exceptions METHODS delete_idoc_segment RETURNING VALUE(rv_deleted) TYPE abap_bool RAISING zcx_abapgit_exception. PRIVATE SECTION. TYPES: ty_dd03p_tt TYPE STANDARD TABLE OF dd03p . TYPES: BEGIN OF ty_dd02_text, ddlanguage TYPE dd02t-ddlanguage, ddtext TYPE dd02t-ddtext, END OF ty_dd02_text, ty_dd02_texts TYPE STANDARD TABLE OF ty_dd02_text. CONSTANTS c_longtext_id_tabl TYPE dokil-id VALUE 'TB' ##NO_TEXT. CONSTANTS: BEGIN OF c_s_dataname, segment_definition TYPE string VALUE 'SEGMENT_DEFINITION', tabl_extras TYPE string VALUE 'TABL_EXTRAS', END OF c_s_dataname. METHODS clear_dd03p_fields CHANGING !ct_dd03p TYPE ty_dd03p_tt . "! Check if structure is an IDoc segment "! @parameter rv_is_idoc_segment | It's an IDoc segment or not METHODS is_idoc_segment RETURNING VALUE(rv_is_idoc_segment) TYPE abap_bool. METHODS clear_dd03p_fields_common CHANGING !cs_dd03p TYPE dd03p . METHODS clear_dd03p_fields_dataelement CHANGING !cs_dd03p TYPE dd03p . METHODS: serialize_texts IMPORTING io_xml TYPE REF TO zif_abapgit_xml_output RAISING zcx_abapgit_exception, deserialize_texts IMPORTING io_xml TYPE REF TO zif_abapgit_xml_input is_dd02v TYPE dd02v RAISING zcx_abapgit_exception, is_db_table_category IMPORTING iv_tabclass TYPE dd02l-tabclass RETURNING VALUE(rv_is_db_table_type) TYPE dd02l-tabclass. ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_TABL IMPLEMENTATION. METHOD clear_dd03p_fields. CONSTANTS lc_comptype_dataelement TYPE comptype VALUE 'E'. DATA: lv_masklen TYPE c LENGTH 4. FIELD-SYMBOLS: <ls_dd03p> TYPE dd03p. * remove nested structures DELETE ct_dd03p WHERE depth <> '00'. * remove fields from .INCLUDEs DELETE ct_dd03p WHERE adminfield <> '0'. LOOP AT ct_dd03p ASSIGNING <ls_dd03p> WHERE NOT rollname IS INITIAL. clear_dd03p_fields_common( CHANGING cs_dd03p = <ls_dd03p> ). lv_masklen = <ls_dd03p>-masklen. IF lv_masklen = '' OR NOT lv_masklen CO '0123456789'. * make sure the field contains valid data, or the XML will dump CLEAR <ls_dd03p>-masklen. ENDIF. IF <ls_dd03p>-comptype = lc_comptype_dataelement. clear_dd03p_fields_dataelement( CHANGING cs_dd03p = <ls_dd03p> ). ENDIF. IF <ls_dd03p>-shlporigin = 'D'. * search help from domain CLEAR: <ls_dd03p>-shlpfield, <ls_dd03p>-shlpname. ENDIF. * XML output assumes correct field content IF <ls_dd03p>-routputlen = ' '. CLEAR <ls_dd03p>-routputlen. ENDIF. ENDLOOP. ENDMETHOD. METHOD clear_dd03p_fields_common. CLEAR: cs_dd03p-ddlanguage, cs_dd03p-dtelmaster, cs_dd03p-logflag, cs_dd03p-ddtext, cs_dd03p-reservedte, cs_dd03p-reptext, cs_dd03p-scrtext_s, cs_dd03p-scrtext_m, cs_dd03p-scrtext_l. ENDMETHOD. METHOD clear_dd03p_fields_dataelement. * type specified via data element CLEAR: cs_dd03p-domname, cs_dd03p-inttype, cs_dd03p-intlen, cs_dd03p-mask, cs_dd03p-memoryid, cs_dd03p-headlen, cs_dd03p-scrlen1, cs_dd03p-scrlen2, cs_dd03p-scrlen3, cs_dd03p-datatype, cs_dd03p-leng, cs_dd03p-outputlen, cs_dd03p-deffdname, cs_dd03p-convexit, cs_dd03p-entitytab, cs_dd03p-dommaster, cs_dd03p-domname3l, cs_dd03p-decimals, cs_dd03p-lowercase, cs_dd03p-signflag. ENDMETHOD. METHOD delete_extras. DELETE FROM tddat WHERE tabname = iv_tabname. ENDMETHOD. METHOD delete_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. DATA lv_result LIKE sy-subrc. IF is_idoc_segment( ) = abap_false. rv_deleted = abap_false. RETURN. "previous XML version or no IDoc segment ENDIF. rv_deleted = abap_true. lv_segment_type = ms_item-obj_name. CALL FUNCTION 'SEGMENT_DELETE' EXPORTING segmenttyp = lv_segment_type IMPORTING result = lv_result EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDMETHOD. METHOD deserialize_idoc_segment. DATA lv_result LIKE sy-subrc. DATA lt_segment_definitions TYPE ty_segment_definitions. DATA lv_package TYPE devclass. DATA lv_uname TYPE sy-uname. FIELD-SYMBOLS <ls_segment_definition> TYPE ty_segment_definition. rv_deserialized = abap_false. TRY. io_xml->read( EXPORTING iv_name = c_s_dataname-segment_definition CHANGING cg_data = lt_segment_definitions ). CATCH zcx_abapgit_exception. RETURN. "previous XML version or no IDoc segment ENDTRY. IF lines( lt_segment_definitions ) = 0. RETURN. "no IDoc segment ENDIF. rv_deserialized = abap_true. lv_package = iv_package. LOOP AT lt_segment_definitions ASSIGNING <ls_segment_definition>. <ls_segment_definition>-segmentheader-presp = <ls_segment_definition>-segmentheader-pwork = cl_abap_syst=>get_user_name( ). CALL FUNCTION 'SEGMENT_READ' EXPORTING segmenttyp = <ls_segment_definition>-segmentheader-segtyp IMPORTING result = lv_result EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. CALL FUNCTION 'SEGMENT_CREATE' IMPORTING segmentdefinition = <ls_segment_definition>-segmentdefinition TABLES segmentstructure = <ls_segment_definition>-segmentstructures CHANGING segmentheader = <ls_segment_definition>-segmentheader devclass = lv_package EXCEPTIONS OTHERS = 1. ELSE. CALL FUNCTION 'SEGMENT_MODIFY' CHANGING segmentheader = <ls_segment_definition>-segmentheader devclass = lv_package EXCEPTIONS OTHERS = 1. IF sy-subrc = 0. CALL FUNCTION 'SEGMENTDEFINITION_MODIFY' TABLES segmentstructure = <ls_segment_definition>-segmentstructures CHANGING segmentdefinition = <ls_segment_definition>-segmentdefinition EXCEPTIONS OTHERS = 1. ENDIF. ENDIF. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDLOOP. lv_uname = cl_abap_syst=>get_user_name( ). CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_test_modus = abap_false wi_tadir_pgmid = 'R3TR' wi_tadir_object = ms_item-obj_type wi_tadir_obj_name = ms_item-obj_name wi_tadir_author = lv_uname wi_tadir_devclass = iv_package wi_tadir_masterlang = mv_language iv_set_edtflag = abap_true iv_delflag = abap_false EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from TR_TADIR_INTERFACE' ). ENDIF. ENDMETHOD. METHOD deserialize_texts. DATA: lv_name TYPE ddobjname, ls_dd02v_tmp TYPE dd02v, lt_i18n_langs TYPE TABLE OF langu, lt_dd02_texts TYPE ty_dd02_texts. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd02_text> LIKE LINE OF lt_dd02_texts. lv_name = ms_item-obj_name. io_xml->read( EXPORTING iv_name = 'I18N_LANGS' CHANGING cg_data = lt_i18n_langs ). io_xml->read( EXPORTING iv_name = 'DD02_TEXTS' CHANGING cg_data = lt_dd02_texts ). SORT lt_i18n_langs. SORT lt_dd02_texts BY ddlanguage. " Optimization LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. " Table description ls_dd02v_tmp = is_dd02v. READ TABLE lt_dd02_texts ASSIGNING <ls_dd02_text> WITH KEY ddlanguage = <lv_lang>. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |DD02_TEXTS cannot find lang { <lv_lang> } in XML| ). ENDIF. MOVE-CORRESPONDING <ls_dd02_text> TO ls_dd02v_tmp. CALL FUNCTION 'DDIF_TABL_PUT' EXPORTING name = lv_name dd02v_wa = ls_dd02v_tmp EXCEPTIONS tabl_not_found = 1 name_inconsistent = 2 tabl_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |error from DDIF_TABL_PUT @TEXTS, { sy-subrc }| ). ENDIF. ENDLOOP. ENDMETHOD. METHOD is_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. lv_segment_type = ms_item-obj_name. SELECT SINGLE segtyp FROM edisegment INTO lv_segment_type WHERE segtyp = lv_segment_type. rv_is_idoc_segment = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD read_extras. SELECT SINGLE * FROM tddat INTO rs_tabl_extras-tddat WHERE tabname = iv_tabname. ENDMETHOD. METHOD serialize_idoc_segment. DATA lv_segment_type TYPE edilsegtyp. DATA lv_result LIKE sy-subrc. DATA lv_devclass TYPE devclass. DATA lt_segmentdefinitions TYPE STANDARD TABLE OF edisegmdef. DATA ls_segment_definition TYPE ty_segment_definition. DATA lt_segment_definitions TYPE ty_segment_definitions. FIELD-SYMBOLS: <ls_segemtndefinition> TYPE edisegmdef. IF is_idoc_segment( ) = abap_false. RETURN. ENDIF. lv_segment_type = ms_item-obj_name. CALL FUNCTION 'SEGMENT_READ' EXPORTING segmenttyp = lv_segment_type IMPORTING result = lv_result TABLES segmentdefinition = lt_segmentdefinitions EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. LOOP AT lt_segmentdefinitions ASSIGNING <ls_segemtndefinition>. CLEAR ls_segment_definition. CALL FUNCTION 'SEGMENTDEFINITION_READ' EXPORTING segmenttyp = <ls_segemtndefinition>-segtyp IMPORTING result = lv_result devclass = lv_devclass segmentheader = ls_segment_definition-segmentheader segmentdefinition = ls_segment_definition-segmentdefinition TABLES segmentstructure = ls_segment_definition-segmentstructures CHANGING version = <ls_segemtndefinition>-version EXCEPTIONS no_authority = 1 segment_not_existing = 2 OTHERS = 3. IF sy-subrc <> 0 OR lv_result <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. zcl_abapgit_object_idoc=>clear_idoc_segement_fields( CHANGING cg_structure = ls_segment_definition-segmentdefinition ). zcl_abapgit_object_idoc=>clear_idoc_segement_fields( CHANGING cg_structure = ls_segment_definition-segmentheader ). APPEND ls_segment_definition TO lt_segment_definitions. ENDLOOP. io_xml->add( iv_name = c_s_dataname-segment_definition ig_data = lt_segment_definitions ). ENDMETHOD. METHOD serialize_texts. DATA: lv_name TYPE ddobjname, lv_index TYPE i, ls_dd02v TYPE dd02v, lt_dd02_texts TYPE ty_dd02_texts, lt_i18n_langs TYPE TABLE OF langu. FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs, <ls_dd02_text> LIKE LINE OF lt_dd02_texts. IF io_xml->i18n_params( )-serialize_master_lang_only = abap_true. RETURN. ENDIF. lv_name = ms_item-obj_name. " Collect additional languages, skip master lang - it was serialized already SELECT DISTINCT ddlanguage AS langu INTO TABLE lt_i18n_langs FROM dd02v WHERE tabname = lv_name AND ddlanguage <> mv_language. "#EC CI_SUBRC LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. lv_index = sy-tabix. CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = lv_name langu = <lv_lang> IMPORTING dd02v_wa = ls_dd02v EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0 OR ls_dd02v-ddlanguage IS INITIAL. DELETE lt_i18n_langs INDEX lv_index. " Don't save this lang CONTINUE. ENDIF. APPEND INITIAL LINE TO lt_dd02_texts ASSIGNING <ls_dd02_text>. MOVE-CORRESPONDING ls_dd02v TO <ls_dd02_text>. ENDLOOP. SORT lt_i18n_langs ASCENDING. SORT lt_dd02_texts BY ddlanguage ASCENDING. IF lines( lt_i18n_langs ) > 0. io_xml->add( iv_name = 'I18N_LANGS' ig_data = lt_i18n_langs ). io_xml->add( iv_name = 'DD02_TEXTS' ig_data = lt_dd02_texts ). ENDIF. ENDMETHOD. METHOD update_extras. IF is_tabl_extras-tddat IS INITIAL. delete_extras( iv_tabname = iv_tabname ). ELSE. MODIFY tddat FROM is_tabl_extras-tddat. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. TYPES: BEGIN OF ty_data, as4user TYPE dd02l-as4user, as4date TYPE dd02l-as4date, as4time TYPE dd02l-as4time, END OF ty_data. DATA: lt_data TYPE STANDARD TABLE OF ty_data WITH DEFAULT KEY, ls_data LIKE LINE OF lt_data. SELECT as4user as4date as4time FROM dd02l INTO TABLE lt_data WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SELECT as4user as4date as4time APPENDING TABLE lt_data FROM dd09l WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SELECT as4user as4date as4time APPENDING TABLE lt_data FROM dd12l WHERE sqltab = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. SORT lt_data BY as4date DESCENDING as4time DESCENDING. READ TABLE lt_data INDEX 1 INTO ls_data. IF sy-subrc = 0. rv_user = ls_data-as4user. ELSE. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lv_objname TYPE rsedd0-ddobjname, lv_no_ask TYPE abap_bool, lv_subrc TYPE sy-subrc, BEGIN OF ls_dd02l, tabname TYPE dd02l-tabname, tabclass TYPE dd02l-tabclass, sqltab TYPE dd02l-sqltab, END OF ls_dd02l. IF zif_abapgit_object~exists( ) = abap_false. " Proxies e.g. delete on its own, nothing todo here then. RETURN. ENDIF. lv_objname = ms_item-obj_name. IF delete_idoc_segment( ) = abap_false. lv_no_ask = abap_true. SELECT SINGLE tabname tabclass sqltab FROM dd02l INTO CORRESPONDING FIELDS OF ls_dd02l WHERE tabname = ms_item-obj_name AND as4local = 'A' AND as4vers = '0000'. IF sy-subrc = 0 AND is_db_table_category( ls_dd02l-tabclass ) = abap_true. CALL FUNCTION 'DD_EXISTS_DATA' EXPORTING reftab = ls_dd02l-sqltab tabclass = ls_dd02l-tabclass tabname = ls_dd02l-tabname IMPORTING subrc = lv_subrc EXCEPTIONS missing_reftab = 1 sql_error = 2 buffer_overflow = 3 unknown_error = 4 OTHERS = 5. IF sy-subrc = 0 AND lv_subrc = 0. lv_no_ask = abap_false. ENDIF. ENDIF. delete_ddic( iv_objtype = 'T' iv_no_ask = lv_no_ask ). delete_longtexts( c_longtext_id_tabl ). delete_extras( iv_tabname = lv_objname ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: lv_name TYPE ddobjname, lv_tname TYPE trobj_name, ls_dd02v TYPE dd02v, ls_dd09l TYPE dd09l, lt_dd03p TYPE TABLE OF dd03p, lt_dd05m TYPE TABLE OF dd05m, lt_dd08v TYPE TABLE OF dd08v, lt_dd12v TYPE dd12vtab, lt_dd17v TYPE dd17vtab, ls_dd17v LIKE LINE OF lt_dd17v, lt_secondary LIKE lt_dd17v, lt_dd35v TYPE TABLE OF dd35v, lt_dd36m TYPE dd36mttyp, ls_dd12v LIKE LINE OF lt_dd12v, lv_refs TYPE abap_bool, ls_extras TYPE ty_tabl_extras. FIELD-SYMBOLS: <ls_dd03p> TYPE dd03p. IF deserialize_idoc_segment( io_xml = io_xml iv_package = iv_package ) = abap_false. io_xml->read( EXPORTING iv_name = 'DD02V' CHANGING cg_data = ls_dd02v ). io_xml->read( EXPORTING iv_name = 'DD09L' CHANGING cg_data = ls_dd09l ). io_xml->read( EXPORTING iv_name = 'DD03P_TABLE' CHANGING cg_data = lt_dd03p ). " DDIC Step: Replace REF TO class/interface with generic reference to avoid cyclic dependency LOOP AT lt_dd03p ASSIGNING <ls_dd03p> WHERE datatype = 'REF'. IF iv_step = zif_abapgit_object=>gc_step_id-ddic. <ls_dd03p>-rollname = 'OBJECT'. ELSE. lv_refs = abap_true. ENDIF. ENDLOOP. io_xml->read( EXPORTING iv_name = 'DD05M_TABLE' CHANGING cg_data = lt_dd05m ). io_xml->read( EXPORTING iv_name = 'DD08V_TABLE' CHANGING cg_data = lt_dd08v ). io_xml->read( EXPORTING iv_name = 'DD12V' CHANGING cg_data = lt_dd12v ). io_xml->read( EXPORTING iv_name = 'DD17V' CHANGING cg_data = lt_dd17v ). io_xml->read( EXPORTING iv_name = 'DD35V_TALE' CHANGING cg_data = lt_dd35v ). io_xml->read( EXPORTING iv_name = 'DD36M' CHANGING cg_data = lt_dd36m ). " DDIC Step: Remove references to search helps and foreign keys IF iv_step = zif_abapgit_object=>gc_step_id-ddic. CLEAR: lt_dd08v, lt_dd35v, lt_dd36m. ENDIF. IF iv_step = zif_abapgit_object=>gc_step_id-late AND lv_refs = abap_false AND lines( lt_dd35v ) = 0 AND lines( lt_dd08v ) = 0. RETURN. " already active ENDIF. corr_insert( iv_package = iv_package ig_object_class = 'DICT' ). lv_name = ms_item-obj_name. " type conversion CALL FUNCTION 'DDIF_TABL_PUT' EXPORTING name = lv_name dd02v_wa = ls_dd02v dd09l_wa = ls_dd09l TABLES dd03p_tab = lt_dd03p dd05m_tab = lt_dd05m dd08v_tab = lt_dd08v dd35v_tab = lt_dd35v dd36m_tab = lt_dd36m EXCEPTIONS tabl_not_found = 1 name_inconsistent = 2 tabl_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_TABL_PUT' ). ENDIF. zcl_abapgit_objects_activation=>add_item( ms_item ). * handle indexes LOOP AT lt_dd12v INTO ls_dd12v. * todo, call corr_insert? CLEAR lt_secondary. LOOP AT lt_dd17v INTO ls_dd17v WHERE sqltab = ls_dd12v-sqltab AND indexname = ls_dd12v-indexname. APPEND ls_dd17v TO lt_secondary. ENDLOOP. CALL FUNCTION 'DDIF_INDX_PUT' EXPORTING name = ls_dd12v-sqltab id = ls_dd12v-indexname dd12v_wa = ls_dd12v TABLES dd17v_tab = lt_secondary EXCEPTIONS indx_not_found = 1 name_inconsistent = 2 indx_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_INDX_PUT' ). ENDIF. CALL FUNCTION 'DD_DD_TO_E071' EXPORTING type = 'INDX' name = ls_dd12v-sqltab id = ls_dd12v-indexname IMPORTING obj_name = lv_tname. zcl_abapgit_objects_activation=>add( iv_type = 'INDX' iv_name = lv_tname ). ENDLOOP. deserialize_texts( io_xml = io_xml is_dd02v = ls_dd02v ). deserialize_longtexts( io_xml ). io_xml->read( EXPORTING iv_name = c_s_dataname-tabl_extras CHANGING cg_data = ls_extras ). update_extras( iv_tabname = lv_name is_tabl_extras = ls_extras ). ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: lv_tabname TYPE dd02l-tabname. lv_tabname = ms_item-obj_name. " Check nametab because it's fast CALL FUNCTION 'DD_GET_NAMETAB_HEADER' EXPORTING tabname = lv_tabname EXCEPTIONS not_found = 1 OTHERS = 2. IF sy-subrc <> 0. " Check for new, inactive, or modified versions that might not be in nametab SELECT SINGLE tabname FROM dd02l INTO lv_tabname WHERE tabname = lv_tabname. ENDIF. rv_bool = boolc( sy-subrc = 0 ). ENDMETHOD. METHOD zif_abapgit_object~get_comparator. DATA: li_local_version_output TYPE REF TO zif_abapgit_xml_output, li_local_version_input TYPE REF TO zif_abapgit_xml_input. CREATE OBJECT li_local_version_output TYPE zcl_abapgit_xml_output. me->zif_abapgit_object~serialize( li_local_version_output ). CREATE OBJECT li_local_version_input TYPE zcl_abapgit_xml_input EXPORTING iv_xml = li_local_version_output->render( ). CREATE OBJECT ri_comparator TYPE zcl_abapgit_object_tabl_compar EXPORTING ii_local = li_local_version_input. ENDMETHOD. METHOD zif_abapgit_object~get_deserialize_steps. APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_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-ddic = abap_true. ENDMETHOD. METHOD zif_abapgit_object~is_active. rv_active = is_active( ). ENDMETHOD. METHOD zif_abapgit_object~is_locked. rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESDICT' iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ). ENDMETHOD. METHOD zif_abapgit_object~jump. jump_se11( iv_radio = 'RSRD1-DDTYPE' iv_field = 'RSRD1-DDTYPE_VAL' ). ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: lv_name TYPE ddobjname, ls_dd02v TYPE dd02v, ls_dd09l TYPE dd09l, lt_dd03p TYPE ty_dd03p_tt, lt_dd05m TYPE TABLE OF dd05m, lt_dd08v TYPE TABLE OF dd08v, lt_dd12v TYPE dd12vtab, lt_dd17v TYPE dd17vtab, lt_dd35v TYPE TABLE OF dd35v, lv_index LIKE sy-index, lt_dd36m TYPE dd36mttyp, ls_extras TYPE ty_tabl_extras. FIELD-SYMBOLS: <ls_dd12v> LIKE LINE OF lt_dd12v, <ls_dd05m> LIKE LINE OF lt_dd05m, <ls_dd36m> LIKE LINE OF lt_dd36m, <lg_roworcolst> TYPE any. lv_name = ms_item-obj_name. CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = lv_name langu = mv_language IMPORTING dd02v_wa = ls_dd02v dd09l_wa = ls_dd09l TABLES dd03p_tab = lt_dd03p dd05m_tab = lt_dd05m dd08v_tab = lt_dd08v dd12v_tab = lt_dd12v dd17v_tab = lt_dd17v dd35v_tab = lt_dd35v dd36m_tab = lt_dd36m EXCEPTIONS illegal_input = 1 OTHERS = 2. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'error from DDIF_TABL_GET' ). ENDIF. IF ls_dd02v IS INITIAL. RETURN. " object does not exits ENDIF. CLEAR: ls_dd02v-as4user, ls_dd02v-as4date, ls_dd02v-as4time. * reset numeric field, so XML does not crash IF ls_dd02v-prozpuff = ''. CLEAR ls_dd02v-prozpuff. ENDIF. IF ls_dd02v-datmin = ''. CLEAR ls_dd02v-datmin. ENDIF. IF ls_dd02v-datmax = ''. CLEAR ls_dd02v-datmax. ENDIF. IF ls_dd02v-datavg = ''. CLEAR ls_dd02v-datavg. ENDIF. CLEAR: ls_dd09l-as4user, ls_dd09l-as4date, ls_dd09l-as4time. ASSIGN COMPONENT 'ROWORCOLST' OF STRUCTURE ls_dd09l TO <lg_roworcolst>. IF sy-subrc = 0 AND <lg_roworcolst> = 'C'. CLEAR <lg_roworcolst>. "To avoid diff errors. This field doesn't exists in all releases ENDIF. LOOP AT lt_dd12v ASSIGNING <ls_dd12v>. CLEAR: <ls_dd12v>-as4user, <ls_dd12v>-as4date, <ls_dd12v>-as4time. ENDLOOP. clear_dd03p_fields( CHANGING ct_dd03p = lt_dd03p ). * remove foreign keys inherited from .INCLUDEs DELETE lt_dd08v WHERE noinherit = 'N'. LOOP AT lt_dd05m ASSIGNING <ls_dd05m>. lv_index = sy-tabix. READ TABLE lt_dd08v WITH KEY fieldname = <ls_dd05m>-fieldname TRANSPORTING NO FIELDS. IF sy-subrc <> 0. DELETE lt_dd05m INDEX lv_index. ENDIF. ENDLOOP. * remove inherited search helps DELETE lt_dd35v WHERE shlpinher = abap_true. LOOP AT lt_dd36m ASSIGNING <ls_dd36m>. lv_index = sy-tabix. READ TABLE lt_dd35v WITH KEY fieldname = <ls_dd36m>-fieldname TRANSPORTING NO FIELDS. IF sy-subrc <> 0. DELETE lt_dd36m INDEX lv_index. ENDIF. ENDLOOP. io_xml->add( iv_name = 'DD02V' ig_data = ls_dd02v ). IF NOT ls_dd09l IS INITIAL. io_xml->add( iv_name = 'DD09L' ig_data = ls_dd09l ). ENDIF. io_xml->add( iv_name = 'DD03P_TABLE' ig_data = lt_dd03p ). io_xml->add( iv_name = 'DD05M_TABLE' ig_data = lt_dd05m ). io_xml->add( iv_name = 'DD08V_TABLE' ig_data = lt_dd08v ). io_xml->add( iv_name = 'DD12V' ig_data = lt_dd12v ). io_xml->add( iv_name = 'DD17V' ig_data = lt_dd17v ). io_xml->add( iv_name = 'DD35V_TALE' ig_data = lt_dd35v ). io_xml->add( iv_name = 'DD36M' ig_data = lt_dd36m ). serialize_texts( io_xml ). serialize_longtexts( ii_xml = io_xml iv_longtext_id = c_longtext_id_tabl ). serialize_idoc_segment( io_xml ). ls_extras = read_extras( iv_tabname = lv_name ). io_xml->add( iv_name = c_s_dataname-tabl_extras ig_data = ls_extras ). ENDMETHOD. METHOD is_db_table_category. " values from domain TABCLASS rv_is_db_table_type = boolc( iv_tabclass = 'TRANSP' OR iv_tabclass = 'CLUSTER' OR iv_tabclass = 'POOL' ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 8658, 75, 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, 628, 220, 220, 220, 23255, 37, 2246, 1546, 1976, 361, 62, 397, 499, 18300, 62, 15252, 764, 628, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 198, 220, 220, 220, 220, 220, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 325, 5154, 62, 46758, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10618, 25677, 220, 220, 220, 220, 41876, 1225, 786, 39870, 31298, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10618, 46758, 41876, 1225, 786, 39870, 4299, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 10618, 7249, 942, 41876, 49053, 9795, 43679, 3963, 1225, 786, 70, 19554, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 325, 5154, 62, 46758, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 1259, 62, 325, 5154, 62, 4299, 50101, 41876, 49053, 9795, 43679, 3963, 1259, 62, 325, 5154, 62, 46758, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 8658, 75, 62, 2302, 8847, 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, 23578, 3963, 1259, 62, 8658, 75, 62, 2302, 8847, 13, 628, 220, 220, 220, 366, 0, 651, 3224, 1366, 588, 3084, 19601, 1448, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 8658, 3672, 930, 1438, 286, 262, 3084, 198, 220, 220, 220, 337, 36252, 50, 1100, 62, 2302, 8847, 30023, 9863, 2751, 21628, 62, 8658, 3672, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49427, 26801, 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, 30826, 4261, 15871, 26173, 8924, 7, 3808, 62, 8658, 75, 62, 2302, 8847, 8, 41876, 1259, 62, 8658, 75, 62, 2302, 8847, 13, 628, 220, 220, 220, 366, 0, 10133, 3224, 1366, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 8658, 3672, 930, 1438, 286, 262, 3084, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 318, 62, 8658, 75, 62, 2302, 8847, 930, 3224, 3084, 1366, 198, 220, 220, 220, 337, 36252, 50, 4296, 62, 2302, 8847, 30023, 9863, 2751, 21628, 62, 8658, 3672, 220, 220, 220, 220, 41876, 49427, 26801, 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, 318, 62, 8658, 75, 62, 2302, 8847, 41876, 1259, 62, 8658, 75, 62, 2302, 8847, 13, 628, 220, 220, 220, 366, 0, 23520, 3224, 1366, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 8658, 3672, 930, 1438, 286, 262, 3084, 198, 220, 220, 220, 337, 36252, 50, 12233, 62, 2302, 8847, 30023, 9863, 2751, 21628, 62, 8658, 3672, 41876, 49427, 26801, 3672, 13, 628, 220, 220, 220, 366, 0, 23283, 1096, 4522, 420, 1001, 5154, 2099, 14, 46758, 611, 30151, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 19875, 930, 23735, 6260, 198, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 930, 1475, 11755, 198, 220, 220, 220, 337, 36252, 50, 11389, 1096, 62, 312, 420, 62, 325, 5154, 30023, 9863, 2751, 33245, 62, 19875, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19875, 62, 22915, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 628, 220, 220, 220, 366, 0, 2935, 48499, 1096, 4522, 420, 1001, 5154, 2099, 14, 46758, 611, 30151, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 33245, 62, 19875, 930, 23735, 6260, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 21628, 62, 26495, 930, 12744, 5301, 198, 220, 220, 220, 366, 0, 2488, 17143, 2357, 374, 85, 62, 8906, 48499, 1143, 930, 632, 338, 257, 10618, 290, 373, 288, 408, 48499, 1143, 198, 220, 220, 220, 366, 0, 2488, 32741, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 930, 1475, 11755, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 312, 420, 62, 325, 5154, 30023, 9863, 2751, 33245, 62, 19875, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 19875, 62, 15414, 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, 21628, 62, 26495, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 8906, 48499, 1143, 8, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
****************************************************************************** * Author : Pawel Grzeskowiak * Email : [email protected] * WWW : http://sapported.com *----------------------------------------------------------------------------* IF i_fkkko-blart = '06' and i_fkkko-abgrd IS INITIAL. MESSAGE 'For returns documents return reason is obligatory' type 'E'. ENDIF.
[ 17174, 17174, 46068, 1174, 198, 9, 6434, 220, 1058, 35553, 417, 1902, 12271, 74, 322, 32994, 198, 9, 9570, 220, 220, 1058, 41827, 417, 13, 2164, 12271, 74, 322, 32994, 31, 14816, 13, 785, 198, 9, 13505, 54, 220, 220, 220, 220, 1058, 2638, 1378, 82, 1324, 9741, 13, 785, 198, 9, 10097, 10541, 9, 198, 220, 16876, 1312, 62, 69, 28747, 7204, 12, 2436, 433, 796, 705, 3312, 6, 290, 1312, 62, 69, 28747, 7204, 12, 397, 2164, 67, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 337, 1546, 4090, 8264, 705, 1890, 5860, 4963, 1441, 1738, 318, 44609, 6, 2099, 705, 36, 4458, 198, 220, 23578, 5064, 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 ]
INTERFACE zif_sat_c_sql_function PUBLIC . CONSTANTS upper TYPE zsat_sql_function VALUE 'UPPER' ##no_text. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 49720, 62, 66, 62, 25410, 62, 8818, 198, 220, 44731, 764, 628, 220, 7102, 2257, 1565, 4694, 6727, 41876, 1976, 49720, 62, 25410, 62, 8818, 26173, 8924, 705, 8577, 18973, 6, 22492, 3919, 62, 5239, 13, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_object_chdo DEFINITION 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. METHODS constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item iv_language TYPE spras. PROTECTED SECTION. METHODS after_import RAISING zcx_abapgit_exception . METHODS delete_tadir_cdnames IMPORTING !is_cdnames TYPE cdnames RAISING zcx_abapgit_exception . METHODS delete_tadir_tabl IMPORTING !is_tcdrs TYPE tcdrs RAISING zcx_abapgit_exception . PRIVATE SECTION. TYPES: BEGIN OF ty_change_document, reports_generated TYPE SORTED TABLE OF tcdrps WITH UNIQUE KEY object reportname, objects TYPE SORTED TABLE OF tcdobs WITH UNIQUE KEY object tabname, objects_text TYPE SORTED TABLE OF tcdobts WITH UNIQUE KEY spras object, END OF ty_change_document. DATA: mv_object TYPE cdobjectcl. ENDCLASS. CLASS zcl_abapgit_object_chdo IMPLEMENTATION. METHOD after_import. DATA: lt_cts_object_entry TYPE STANDARD TABLE OF e071 WITH DEFAULT KEY, ls_cts_object_entry LIKE LINE OF lt_cts_object_entry, lt_errormsg TYPE STANDARD TABLE OF sprot_u WITH DEFAULT KEY. ls_cts_object_entry-pgmid = seok_pgmid_r3tr. ls_cts_object_entry-object = ms_item-obj_type. ls_cts_object_entry-obj_name = ms_item-obj_name. INSERT ls_cts_object_entry INTO TABLE lt_cts_object_entry. CALL FUNCTION 'AFTER_IMP_CHDO' EXPORTING iv_tarclient = sy-mandt iv_is_upgrade = abap_false TABLES tt_e071 = lt_cts_object_entry tt_errormsg = lt_errormsg. LOOP AT lt_errormsg TRANSPORTING NO FIELDS WHERE severity = 'E' OR severity = 'A'. EXIT. ENDLOOP. IF sy-subrc = 0. zcx_abapgit_exception=>raise( 'Error from AFTER_IMP_CHDO' ). ENDIF. ENDMETHOD. METHOD constructor. super->constructor( is_item = is_item iv_language = iv_language ). mv_object = is_item-obj_name. ENDMETHOD. METHOD delete_tadir_cdnames. DATA: lv_obj_name TYPE sobj_name. IF is_cdnames-repnamec IS NOT INITIAL. lv_obj_name = is_cdnames-repnamec. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = abap_true wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'PROG' wi_tadir_obj_name = lv_obj_name wi_test_modus = abap_false EXCEPTIONS tadir_entry_not_existing = 1 OTHERS = 2. IF sy-subrc > 1. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. IF is_cdnames-repnamet IS NOT INITIAL. lv_obj_name = is_cdnames-repnamet. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = abap_true wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'PROG' wi_tadir_obj_name = lv_obj_name wi_test_modus = abap_false EXCEPTIONS tadir_entry_not_existing = 1 OTHERS = 2. IF sy-subrc > 1. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. IF is_cdnames-repnamefix IS NOT INITIAL. lv_obj_name = is_cdnames-repnamefix. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = abap_true wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'PROG' wi_tadir_obj_name = lv_obj_name wi_test_modus = abap_false EXCEPTIONS tadir_entry_not_existing = 1 OTHERS = 2. IF sy-subrc > 1. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. IF is_cdnames-repnamevar IS NOT INITIAL. lv_obj_name = is_cdnames-repnamevar. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = abap_true wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'PROG' wi_tadir_obj_name = lv_obj_name wi_test_modus = abap_false EXCEPTIONS tadir_entry_not_existing = 1 OTHERS = 2. IF sy-subrc > 1. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. IF is_cdnames-fgrp IS NOT INITIAL. lv_obj_name = is_cdnames-fgrp. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = abap_true wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'FUGR' wi_tadir_obj_name = lv_obj_name wi_test_modus = abap_false EXCEPTIONS tadir_entry_not_existing = 1 OTHERS = 2. IF sy-subrc > 1. zcx_abapgit_exception=>raise_t100( ). ENDIF. ENDIF. ENDMETHOD. METHOD delete_tadir_tabl. DATA: lv_obj_name TYPE sobj_name. IF is_tcdrs-tabname IS NOT INITIAL. lv_obj_name = is_tcdrs-tabname. CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = abap_true wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'TABL' wi_tadir_obj_name = lv_obj_name wi_test_modus = abap_false EXCEPTIONS tadir_entry_not_existing = 1 OTHERS = 2. IF sy-subrc > 1. zcx_abapgit_exception=>raise( |Error from TR_TADIR_INTERFACE (subrc={ sy-subrc } ).| ). ENDIF. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE updname INTO rv_user FROM tcdrp WHERE object = mv_object. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~delete. DATA: lt_cdnames TYPE STANDARD TABLE OF cdnames, ls_cdnames TYPE cdnames, lt_tcdrs TYPE STANDARD TABLE OF tcdrs, ls_tcdrs TYPE tcdrs, lv_msg TYPE symsgv. CALL FUNCTION 'CDNAMES_GET' EXPORTING iv_object = mv_object TABLES it_tcdrs = lt_tcdrs it_names = lt_cdnames EXCEPTIONS object_space = 1 object_not_found = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. CALL FUNCTION 'CHDO_DELETE' EXPORTING iv_object = mv_object iv_with_tadir = abap_true EXCEPTIONS object_is_space = 1 object_not_found = 2 other_error = 3 OTHERS = 4. IF sy-subrc <> 0. lv_msg = mv_object. zcx_abapgit_exception=>raise_t100( iv_msgid = 'CD' iv_msgno = '869' iv_msgv1 = lv_msg ). ENDIF. LOOP AT lt_cdnames INTO ls_cdnames. delete_tadir_cdnames( ls_cdnames ). ENDLOOP. LOOP AT lt_tcdrs INTO ls_tcdrs. delete_tadir_tabl( ls_tcdrs ). ENDLOOP. corr_insert( iv_package ). ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_change_object TYPE ty_change_document. FIELD-SYMBOLS: <ls_report_generated> LIKE LINE OF ls_change_object-reports_generated. io_xml->read( EXPORTING iv_name = 'CHDO' CHANGING cg_data = ls_change_object ). DELETE FROM tcdobs WHERE object = mv_object. DELETE FROM tcdobts WHERE object = mv_object. DELETE FROM tcdrps WHERE object = mv_object. LOOP AT ls_change_object-reports_generated ASSIGNING <ls_report_generated>. <ls_report_generated>-devclass = iv_package. ENDLOOP. INSERT tcdobs FROM TABLE ls_change_object-objects. INSERT tcdobts FROM TABLE ls_change_object-objects_text. INSERT tcdrps FROM TABLE ls_change_object-reports_generated. tadir_insert( iv_package ). after_import( ). corr_insert( iv_package ). ENDMETHOD. METHOD zif_abapgit_object~exists. SELECT COUNT(*) FROM tcdrp WHERE object = mv_object. 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. rv_is_locked = abap_false. ENDMETHOD. METHOD zif_abapgit_object~jump. DATA: lt_bdcdata TYPE STANDARD TABLE OF bdcdata, ls_bdcdata LIKE LINE OF lt_bdcdata. CLEAR: ls_bdcdata. ls_bdcdata-program = 'SAPMSCDO_NEW'. ls_bdcdata-dynpro = '0100'. ls_bdcdata-dynbegin = abap_true. APPEND ls_bdcdata TO lt_bdcdata. CLEAR: ls_bdcdata. ls_bdcdata-fnam = 'TCDOB-OBJECT'. ls_bdcdata-fval = mv_object. APPEND ls_bdcdata TO lt_bdcdata. CLEAR: ls_bdcdata. ls_bdcdata-fnam = 'BDC_OKCODE'. ls_bdcdata-fval = '=DISP'. APPEND ls_bdcdata TO lt_bdcdata. zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input( iv_tcode = 'SCDO' it_bdcdata = lt_bdcdata ). rv_exit = abap_true. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_change_object TYPE ty_change_document, lt_tcdrp TYPE STANDARD TABLE OF tcdrp, lt_tcdob TYPE STANDARD TABLE OF tcdob, lt_tcdobt TYPE STANDARD TABLE OF tcdobt, BEGIN OF ls_nulldatetime, " hack ro reset fields when they exist without syntax errors when they don't udate TYPE sy-datum, utime TYPE sy-uzeit, END OF ls_nulldatetime. FIELD-SYMBOLS: <ls_reports_generated> LIKE LINE OF ls_change_object-reports_generated, <ls_objects> LIKE LINE OF ls_change_object-objects, <ls_objects_text> LIKE LINE OF ls_change_object-objects_text. CALL FUNCTION 'CDNAMES_GET' EXPORTING iv_object = mv_object TABLES it_tcdrp = lt_tcdrp it_tcdob = lt_tcdob it_tcdobt = lt_tcdobt EXCEPTIONS object_space = 1 object_not_found = 2 OTHERS = 3. IF sy-subrc <> 0. zcx_abapgit_exception=>raise_t100( ). ENDIF. ls_change_object-reports_generated = lt_tcdrp. ls_change_object-objects = lt_tcdob. ls_change_object-objects_text = lt_tcdobt. " At import, when CHDO is generated date & time change, so always detects changes for this fields LOOP AT ls_change_object-reports_generated ASSIGNING <ls_reports_generated>. CLEAR: <ls_reports_generated>-datum, <ls_reports_generated>-uzeit, <ls_reports_generated>-author, <ls_reports_generated>-updname, <ls_reports_generated>-devclass. ENDLOOP. LOOP AT ls_change_object-objects ASSIGNING <ls_objects>. MOVE-CORRESPONDING ls_nulldatetime TO <ls_objects>. " reset date and time ENDLOOP. LOOP AT ls_change_object-objects_text ASSIGNING <ls_objects_text>. MOVE-CORRESPONDING ls_nulldatetime TO <ls_objects_text>. " reset date and time ENDLOOP. io_xml->add( iv_name = 'CHDO' ig_data = ls_change_object ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 354, 4598, 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, 13, 198, 220, 220, 220, 8355, 43429, 1546, 6941, 62, 16624, 7473, 1976, 361, 62, 397, 499, 18300, 62, 15252, 93, 5908, 62, 16624, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 41876, 7500, 292, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 706, 62, 11748, 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, 12233, 62, 83, 324, 343, 62, 10210, 14933, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 10210, 14933, 41876, 22927, 14933, 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, 12233, 62, 83, 324, 343, 62, 8658, 75, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 83, 10210, 3808, 41876, 256, 10210, 3808, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 3803, 62, 22897, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 3136, 62, 27568, 41876, 311, 9863, 1961, 43679, 3963, 37096, 7109, 862, 13315, 4725, 33866, 8924, 35374, 2134, 989, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5563, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 311, 9863, 1961, 43679, 3963, 256, 10210, 8158, 13315, 4725, 33866, 8924, 35374, 2134, 7400, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5563, 62, 5239, 220, 220, 220, 220, 220, 41876, 311, 9863, 1961, 43679, 3963, 256, 10210, 672, 912, 13315, 4725, 33866, 8924, 35374, 7500, 292, 2134, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 3803, 62, 22897, 13, 628, 220, 220, 220, 42865, 25, 285, 85, 62, 15252, 41876, 22927, 15252, 565, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 15252, 62, 354, 4598, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 706, 62, 11748, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 310, 82, 62, 15252, 62, 13000, 41876, 49053, 9795, 43679, 3963, 304, 2998, 16, 13315, 5550, 38865, 35374, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 310, 82, 62, 15252, 62, 13000, 34178, 48920, 3963, 300, 83, 62, 310, 82, 62, 15252, 62, 13000, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 8056, 579, 45213, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 49053, 9795, 43679, 3963, 599, 10599, 62, 84, 13315, 5550, 38865, 35374, 13, 628, 220, 220, 220, 43979, 62, 310, 82, 62, 15252, 62, 13000, 12, 6024, 13602, 220, 220, 220, 796, 384, 482, 62, 6024, 13602, 62, 81, 18, 2213, 13, 198, 220, 220, 220, 43979, 62, 310, 82, 62, 15252, 62, 13000, 12, 15252, 220, 220, 796, 13845, 62, 9186, 12, 26801, 62, 4906, 13, 198, 220, 220, 220, 43979, 62, 310, 82, 62, 15252, 62, 13000, 12, 26801, 62, 3672, 796, 13845, 62, 9186, 12, 26801, 62, 3672, 13, 198, 220, 220, 220, 29194, 17395, 43979, 62, 310, 82, 62, 15252, 62, 13000, 39319, 43679, 300, 83, 62, 310, 82, 62, 15252, 62, 13000, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 8579, 5781, 62, 3955, 47, 62, 3398, 18227, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 18870, 16366, 220, 796, 827, 12, 22249, 83, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 271, 62, 929, 9526, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 68, 2998, 16, 220, 220, 220, 220, 220, 220, 796, 300, 83, 62, 310, 82, 62, 15252, 62, 13000, 198, 220, 220, 220, 220, 220, 220, 220, 256, 83, 62, 8056, 579, 45213, 220, 220, 796, 300, 83, 62, 8056, 579, 45213, 13, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 8056, 579, 45213, 48213, 4303, 9863, 2751, 8005, 18930, 3698, 5258, 33411, 19440, 796, 705, 36, 6, 6375, 19440, 796, 705, 32, 4458, 198, 220, 220, 220, 220, 220, 7788, 2043, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 705, 12331, 422, 36050, 62, 3955, 47, 62, 3398, 18227, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_review DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. TYPES: BEGIN OF ty_pull_url, package TYPE devclass, url TYPE string, END OF ty_pull_url. TYPES: tt_pull_urls TYPE STANDARD TABLE OF ty_pull_url WITH NON-UNIQUE KEY package. TYPES: tt_repos TYPE STANDARD TABLE OF REF TO zcl_abapgit_repo. TYPES: tt_packages TYPE STANDARD TABLE OF devclass. METHODS release IMPORTING !iv_trkorr TYPE trkorr RAISING cx_static_check . METHODS find_pull_request_urls IMPORTING !iv_trkorr TYPE trkorr EXPORTING et_pull_requests TYPE tt_pull_urls et_packages TYPE tt_packages RAISING cx_static_check. PROTECTED SECTION. TYPES: BEGIN OF ty_tadir, pgmid TYPE tadir-pgmid, object TYPE tadir-object, obj_name TYPE tadir-obj_name, END OF ty_tadir . TYPES: ty_tadir_tt TYPE STANDARD TABLE OF ty_tadir WITH EMPTY KEY . TYPES: BEGIN OF ty_repo, package TYPE devclass, repo TYPE REF TO zcl_abapgit_repo, END OF ty_repo. CONSTANTS gc_workbench TYPE e070-trfunction VALUE 'K' ##NO_TEXT. CONSTANTS gc_development TYPE e070-trfunction VALUE 'S' ##NO_TEXT. METHODS create_branch_if_missing IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo_online !iv_branch_name TYPE string RAISING cx_static_check . METHODS create_http_client RETURNING VALUE(ri_client) TYPE REF TO if_http_client RAISING zcx_abapgit_exception . METHODS create_pr_if_missing IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo_online !iv_branch_name TYPE string !iv_request TYPE trkorr RAISING cx_static_check . METHODS create_pull_request IMPORTING !iv_url TYPE string !iv_branch_name TYPE string !iv_request TYPE trkorr !iv_base TYPE string RAISING cx_static_check . METHODS find_abapgit_repo IMPORTING !it_tadir TYPE ty_tadir_tt RETURNING VALUE(ro_repo) TYPE REF TO zcl_abapgit_repo_online RAISING cx_static_check . METHODS find_abapgit_repos IMPORTING !iv_trkorr TYPE trkorr EXPORTING et_repos TYPE tt_repos RAISING cx_static_check. METHODS find_pull_requests IMPORTING it_repos TYPE tt_repos iv_branch_name TYPE string RETURNING VALUE(rt_result) TYPE tt_pull_urls RAISING cx_static_check. METHODS find_ags_merge_requests IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online iv_branch_name TYPE string CHANGING ct_result TYPE tt_pull_urls RAISING zcx_abapgit_review. METHODS find_github_pull_requests IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online iv_branch_name TYPE string CHANGING ct_result TYPE tt_pull_urls RAISING cx_static_check. METHODS list_objects IMPORTING !iv_request TYPE trkorr RETURNING VALUE(rt_tadir) TYPE ty_tadir_tt . METHODS push_changes IMPORTING !io_repo TYPE REF TO zcl_abapgit_repo_online !iv_task TYPE trkorr !it_objects TYPE ty_tadir_tt !iv_branch_name TYPE string RAISING zcx_abapgit_exception . METHODS release_request IMPORTING !iv_request TYPE trkorr !io_repo TYPE REF TO zcl_abapgit_repo_online RAISING cx_static_check . METHODS release_task IMPORTING !iv_task TYPE trkorr !io_repo TYPE REF TO zcl_abapgit_repo_online !it_objects TYPE ty_tadir_tt !iv_request TYPE trkorr RAISING cx_static_check . PRIVATE SECTION. ENDCLASS. CLASS ZCL_ABAPGIT_REVIEW IMPLEMENTATION. METHOD create_branch_if_missing. DATA(lv_full_name) = |{ zif_abapgit_definitions=>c_git_branch-heads_prefix }{ iv_branch_name }|. DATA(lo_branches) = zcl_abapgit_git_transport=>branches( io_repo->get_url( ) ). TRY. lo_branches->find_by_name( lv_full_name ). CATCH zcx_abapgit_exception. * branch not found, create it, based on HEAD DATA(ls_head) = lo_branches->find_by_name( lo_branches->get_head_symref( ) ). io_repo->create_branch( iv_name = lv_full_name iv_from = ls_head-sha1 ). ENDTRY. ENDMETHOD. METHOD create_http_client. DATA lv_url TYPE string VALUE 'https://api.github.com'. DATA lo_proxy_configuration TYPE REF TO zcl_abapgit_proxy_config. ri_client = zcl_abapgit_exit=>get_instance( )->create_http_client( lv_url ). IF ri_client IS INITIAL. lo_proxy_configuration = NEW #( ). cl_http_client=>create_by_url( EXPORTING url = lv_url ssl_id = zcl_abapgit_exit=>get_instance( )->get_ssl_id( ) proxy_host = lo_proxy_configuration->get_proxy_url( lv_url ) proxy_service = lo_proxy_configuration->get_proxy_port( lv_url ) IMPORTING client = ri_client ). ENDIF. ENDMETHOD. METHOD create_pr_if_missing. * todo, there must be commits on the branch for it to be possible to create the PR DATA(lo_branches) = zcl_abapgit_git_transport=>branches( io_repo->get_url( ) ). DATA(ls_head) = lo_branches->find_by_name( lo_branches->get_head_symref( ) ). SELECT SINGLE @abap_true FROM zagr_created_prs INTO @DATA(lv_created) WHERE trkorr = @iv_request. "#EC CI_SUBRC IF lv_created = abap_false. create_pull_request( iv_url = io_repo->get_url( ) iv_request = iv_request iv_base = ls_head-display_name iv_branch_name = iv_branch_name ). ENDIF. ENDMETHOD. METHOD create_pull_request. FIND REGEX 'https:\/\/github\.com\/([-\d\w]+)\/([-\d\w]+)(\.git)?' IN iv_url SUBMATCHES DATA(lv_owner) DATA(lv_repo). IF sy-subrc <> 0. RETURN. ENDIF. DATA(li_github) = CAST zif_githubcom( NEW zcl_githubcom( create_http_client( ) ) ). DATA(ls_created) = li_github->pulls_create( owner = lv_owner repo = lv_repo body = VALUE #( title = |{ sy-sysid } - { iv_request }| head = iv_branch_name base = iv_base maintainer_can_modify = abap_true draft = abap_false issue = cl_abap_math=>max_int4 body = |{ sy-sysid } - { iv_request }| ) ). IF ls_created-number IS NOT INITIAL. DATA(ls_pr) = VALUE zagr_created_prs( trkorr = iv_request pr = ls_created-number url = ls_created-html_url ). INSERT zagr_created_prs FROM @ls_pr. ASSERT sy-subrc = 0. ENDIF. ENDMETHOD. METHOD find_abapgit_repo. IF lines( it_tadir ) = 0. RETURN. ENDIF. SELECT DISTINCT devclass FROM tadir INTO TABLE @DATA(lt_packages) FOR ALL ENTRIES IN @it_tadir WHERE pgmid = @it_tadir-pgmid AND object = @it_tadir-object AND obj_name = @it_tadir-obj_name. "#EC CI_SUBRC DATA(lt_repos) = zcl_abapgit_repo_srv=>get_instance( )->list( ). LOOP AT lt_packages INTO DATA(lv_package). DATA(lt_supers) = zcl_abapgit_factory=>get_sap_package( lv_package-devclass )->list_superpackages( ). LOOP AT lt_supers INTO DATA(lv_super). LOOP AT lt_repos INTO DATA(lo_repo). IF lo_repo->is_offline( ) = abap_true. CONTINUE. ELSEIF lo_repo->get_package( ) = lv_super. IF ro_repo IS INITIAL. ro_repo ?= lo_repo. ELSEIF ro_repo->get_package( ) = lo_repo->get_package( ). CONTINUE. ELSE. ASSERT 0 = 'the transport spans multiple repos'. ENDIF. ENDIF. ENDLOOP. ENDLOOP. ENDLOOP. ENDMETHOD. METHOD find_abapgit_repos. DATA: lt_repos TYPE HASHED TABLE OF ty_repo WITH UNIQUE KEY package. DATA(lt_objects) = list_objects( iv_trkorr ). IF lt_objects IS INITIAL. RETURN. ENDIF. SELECT DISTINCT devclass FROM tadir INTO TABLE @DATA(lt_packages) FOR ALL ENTRIES IN @lt_objects WHERE pgmid = @lt_objects-pgmid AND object = @lt_objects-object AND obj_name = @lt_objects-obj_name. "#EC CI_SUBRC DATA(lt_abapgit_repos) = zcl_abapgit_repo_srv=>get_instance( )->list( ). LOOP AT lt_packages INTO DATA(lv_package). DATA(lt_supers) = zcl_abapgit_factory=>get_sap_package( lv_package-devclass )->list_superpackages( ). LOOP AT lt_supers INTO DATA(lv_super). LOOP AT lt_abapgit_repos INTO DATA(lo_abapgit_repo). IF lo_abapgit_repo->is_offline( ) = abap_true. CONTINUE. ELSEIF lo_abapgit_repo->get_package( ) = lv_super. INSERT VALUE #( package = lo_abapgit_repo->get_package( ) repo = lo_abapgit_repo ) INTO TABLE lt_repos. ENDIF. ENDLOOP. ENDLOOP. ENDLOOP. et_repos = VALUE #( FOR ls_repo IN lt_repos ( ls_repo-repo ) ). ENDMETHOD. METHOD find_ags_merge_requests. DATA: lv_query_url TYPE string, lt_merge_requests TYPE zagr_ags_merge_req_tt. FIND REGEX '(http|https):\/\/([\.\d\w]+)\/sap\/zabapgitserver\/git\/([-\d\w]+)(\.git)?' IN io_repo->get_url( ) SUBMATCHES DATA(lv_protocol) DATA(lv_host) DATA(lv_repo_name). IF sy-subrc <> 0. RETURN. ENDIF. lv_query_url = |{ lv_protocol }://{ lv_host }/sap/zabapgitserver/rest/| && |find_merge_requests/{ lv_repo_name }/{ iv_branch_name }|. TRY. cl_http_client=>create_by_url( EXPORTING url = lv_query_url IMPORTING client = DATA(lo_http_client) ). DATA(lo_http_rest_client) = NEW cl_rest_http_client( lo_http_client ). lo_http_rest_client->if_rest_resource~get( ). DATA(lv_response) = lo_http_rest_client->if_rest_client~get_response_entity( )->get_binary_data( ). CALL TRANSFORMATION id SOURCE XML lv_response RESULT data = lt_merge_requests. LOOP AT lt_merge_requests REFERENCE INTO DATA(lr_merge_req). DATA(lv_merge_request_url) = |{ lv_protocol }://{ lv_host }/sap/zabapgitserver/| && |{ lv_repo_name }/merge_request/{ lr_merge_req->*-id }|. INSERT VALUE #( package = io_repo->get_package( ) url = lv_merge_request_url ) INTO TABLE ct_result. ENDLOOP. CATCH cx_transformation_error INTO DATA(lo_transformation_error). RAISE EXCEPTION TYPE zcx_abapgit_review EXPORTING textid = zcx_abapgit_review=>read_ags_merge_request previous = lo_transformation_error. CATCH cx_rest_client_exception INTO DATA(lo_http_exception). RAISE EXCEPTION TYPE zcx_abapgit_review EXPORTING textid = zcx_abapgit_review=>read_ags_merge_request previous = lo_http_exception. ENDTRY. ENDMETHOD. METHOD find_github_pull_requests. FIND REGEX 'https:\/\/github\.com\/([-\d\w]+)\/([-\d\w]+)(\.git)?' IN io_repo->get_url( ) SUBMATCHES DATA(lv_owner) DATA(lv_repo). IF sy-subrc <> 0. RETURN. ENDIF. DATA(li_github) = CAST zif_githubcom( NEW zcl_githubcom( create_http_client( ) ) ). DATA(lt_pr) = li_github->pulls_list( owner = lv_owner repo = lv_repo head = |{ lv_owner }:{ iv_branch_name }| ). LOOP AT lt_pr REFERENCE INTO DATA(lr_pr). INSERT VALUE #( package = io_repo->get_package( ) url = lr_pr->*-html_url ) INTO TABLE ct_result. ENDLOOP. ENDMETHOD. METHOD find_pull_requests. LOOP AT it_repos INTO DATA(lo_repo). find_github_pull_requests( EXPORTING io_repo = CAST zcl_abapgit_repo_online( lo_repo ) iv_branch_name = iv_branch_name CHANGING ct_result = rt_result ). find_ags_merge_requests( EXPORTING io_repo = CAST zcl_abapgit_repo_online( lo_repo ) iv_branch_name = iv_branch_name CHANGING ct_result = rt_result ). ENDLOOP. ENDMETHOD. METHOD find_pull_request_urls. find_abapgit_repos( EXPORTING iv_trkorr = iv_trkorr IMPORTING et_repos = DATA(lt_repos) ). et_pull_requests = find_pull_requests( it_repos = lt_repos iv_branch_name = CONV string( iv_trkorr ) ). et_packages = VALUE #( FOR lo_repo IN lt_repos ( lo_repo->get_package( ) ) ). ENDMETHOD. METHOD list_objects. SELECT trkorr FROM e070 INTO TABLE @DATA(lt_e070) WHERE strkorr = @iv_request ORDER BY PRIMARY KEY. IF sy-subrc <> 0. RETURN. ENDIF. SELECT pgmid, object, obj_name FROM e071 INTO TABLE @DATA(lt_e071) FOR ALL ENTRIES IN @lt_e070 WHERE trkorr = @lt_e070-trkorr. "#EC CI_SUBRC SORT lt_e071 BY pgmid object obj_name. DELETE ADJACENT DUPLICATES FROM lt_e071 COMPARING pgmid object obj_name. LOOP AT lt_e071 INTO DATA(ls_list). IF ls_list-pgmid = 'R3TR'. APPEND CORRESPONDING #( ls_list ) TO rt_tadir. ELSE. DATA(ls_tadir) = cl_wb_object_type=>get_tadir_from_limu( p_object = ls_list-object p_obj_name = ls_list-obj_name ). APPEND CORRESPONDING #( ls_tadir ) TO rt_tadir. ENDIF. ENDLOOP. SORT rt_tadir BY pgmid object obj_name. DELETE ADJACENT DUPLICATES FROM rt_tadir COMPARING pgmid object obj_name. ENDMETHOD. METHOD push_changes. io_repo->select_branch( |refs/heads/{ iv_branch_name }| ). DATA(ls_files) = zcl_abapgit_factory=>get_stage_logic( )->get( io_repo ). DATA(lt_file_status) = zcl_abapgit_file_status=>status( io_repo ). DATA(lo_stage) = NEW zcl_abapgit_stage( ). LOOP AT lt_file_status ASSIGNING FIELD-SYMBOL(<ls_status>) WHERE match <> abap_true AND obj_type IS NOT INITIAL. * the object must be part of the task's request IF NOT line_exists( it_objects[ object = <ls_status>-obj_type obj_name = <ls_status>-obj_name ] ). CONTINUE. ENDIF. CASE <ls_status>-lstate. WHEN zif_abapgit_definitions=>c_state-deleted. lo_stage->rm( iv_path = <ls_status>-path iv_filename = <ls_status>-filename ). WHEN OTHERS. DATA(lv_data) = ls_files-local[ file-filename = <ls_status>-filename file-path = <ls_status>-path ]-file-data. lo_stage->add( iv_path = <ls_status>-path iv_filename = <ls_status>-filename iv_data = lv_data ). ENDCASE. ENDLOOP. IF lo_stage->count( ) > 0. io_repo->push( is_comment = VALUE #( committer = VALUE #( name = 'name' email = 'name@localhost' ) author = VALUE #( name = 'name' email = 'name@localhost' ) comment = iv_task ) io_stage = lo_stage ). ENDIF. ENDMETHOD. METHOD release. SELECT SINGLE strkorr, trfunction FROM e070 INTO @DATA(ls_e070) WHERE trkorr = @iv_trkorr. IF sy-subrc <> 0 OR ( ls_e070-trfunction <> gc_workbench AND ls_e070-trfunction <> gc_development ). RETURN. ENDIF. IF ls_e070-strkorr IS NOT INITIAL. DATA(lv_request) = ls_e070-strkorr. ELSE. lv_request = iv_trkorr. ENDIF. DATA(lt_objects) = list_objects( lv_request ). IF lines( lt_objects ) = 0. RETURN. ENDIF. DATA(lo_repo) = find_abapgit_repo( lt_objects ). IF lo_repo IS INITIAL OR lo_repo->get_url( ) NP '*github.com*'. RETURN. ENDIF. IF ls_e070-strkorr IS NOT INITIAL. release_task( iv_task = iv_trkorr it_objects = lt_objects iv_request = lv_request io_repo = lo_repo ). ELSE. release_request( iv_request = iv_trkorr io_repo = lo_repo ). ENDIF. ENDMETHOD. METHOD release_request. * call github api to check if PR is merged SELECT SINGLE pr FROM zagr_created_prs INTO @DATA(lv_pr) WHERE trkorr = @iv_request. IF sy-subrc <> 0. RETURN. ENDIF. FIND REGEX 'https:\/\/github\.com\/([-\d\w]+)\/([-\d\w]+)(\.git)?' IN io_repo->get_url( ) SUBMATCHES DATA(lv_owner) DATA(lv_repo). ASSERT sy-subrc = 0. DATA(li_github) = CAST zif_githubcom( NEW zcl_githubcom( create_http_client( ) ) ). DATA(ls_pr) = li_github->pulls_get( owner = lv_owner repo = lv_repo pull_number = lv_pr ). IF ls_pr-state = 'open'. zcx_abapgit_exception=>raise( |PR #{ lv_pr } must be merged before the request can be released| ). ENDIF. ENDMETHOD. METHOD release_task. DATA(lv_branch_name) = |{ iv_request }|. create_branch_if_missing( io_repo = io_repo iv_branch_name = lv_branch_name ). push_changes( io_repo = io_repo it_objects = it_objects iv_task = iv_task iv_branch_name = lv_branch_name ). create_pr_if_missing( io_repo = io_repo iv_request = iv_request iv_branch_name = lv_branch_name ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 19023, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 31216, 62, 6371, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5301, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 19016, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 31216, 62, 6371, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 31216, 62, 6371, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 31216, 62, 6371, 13315, 44521, 12, 4944, 33866, 8924, 35374, 5301, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 260, 1930, 41876, 49053, 9795, 43679, 3963, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 256, 83, 62, 43789, 41876, 49053, 9795, 43679, 3963, 1614, 4871, 13, 628, 220, 220, 220, 337, 36252, 50, 2650, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2213, 74, 38890, 41876, 491, 74, 38890, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 220, 220, 337, 36252, 50, 1064, 62, 31216, 62, 25927, 62, 6371, 82, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 2213, 74, 38890, 220, 220, 220, 220, 220, 220, 41876, 491, 74, 38890, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 31216, 62, 8897, 3558, 41876, 256, 83, 62, 31216, 62, 6371, 82, 198, 220, 220, 220, 220, 220, 220, 220, 2123, 62, 43789, 220, 220, 220, 220, 220, 41876, 256, 83, 62, 43789, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 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, 83, 324, 343, 11, 198, 220, 220, 220, 220, 220, 220, 220, 23241, 13602, 220, 220, 220, 41876, 36264, 343, 12, 6024, 13602, 11, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 220, 220, 41876, 36264, 343, 12, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 62, 3672, 41876, 36264, 343, 12, 26801, 62, 3672, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 83, 324, 343, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 83, 324, 343, 62, 926, 41876, 49053, 9795, 43679, 3963, 1259, 62, 83, 324, 343, 13315, 38144, 9936, 35374, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 1259, 62, 260, 7501, 11, 198, 220, 220, 220, 220, 220, 220, 220, 5301, 41876, 1614, 4871, 11, 198, 220, 220, 220, 220, 220, 220, 220, 29924, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 260, 7501, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 308, 66, 62, 1818, 26968, 41876, 304, 43509, 12, 2213, 8818, 26173, 8924, 705, 42, 6, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 308, 66, 62, 31267, 41876, 304, 43509, 12, 2213, 8818, 26173, 8924, 705, 50, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 337, 36252, 50, 2251, 62, 1671, 3702, 62, 361, 62, 45688, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 16366, 8, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 16366, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 1050, 62, 361, 62, 45688, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 260, 7501, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 25927, 220, 220, 220, 220, 41876, 491, 74, 38890, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 43213, 62, 12708, 62, 9122, 764, 198, 220, 220, 220, 337, 36252, 50, 2251, 62, 31216, 62, 25927, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 1671, 3702, 62, 3672, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 25927, 220, 220, 220, 220, 41876, 491, 74, 38890, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 8692, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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IC . PUBLIC SECTION. DATA ms_data TYPE zif_abapgit_persistence=>ty_repo READ-ONLY. METHODS bind_listener IMPORTING !ii_listener TYPE REF TO zif_abapgit_repo_listener . METHODS deserialize_checks RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_deserialize_checks RAISING zcx_abapgit_exception . METHODS delete_checks RETURNING VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_delete_checks RAISING zcx_abapgit_exception . METHODS constructor IMPORTING !is_data TYPE zif_abapgit_persistence=>ty_repo . METHODS get_key RETURNING VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_value . METHODS get_name RETURNING VALUE(rv_name) TYPE string RAISING zcx_abapgit_exception . METHODS get_files_local IMPORTING !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt RAISING zcx_abapgit_exception . METHODS get_local_checksums_per_file RETURNING VALUE(rt_checksums) TYPE zif_abapgit_definitions=>ty_file_signatures_tt . METHODS get_files_remote RETURNING VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt RAISING zcx_abapgit_exception . METHODS get_package RETURNING VALUE(rv_package) TYPE zif_abapgit_persistence=>ty_repo-package . METHODS get_dot_abapgit RETURNING VALUE(ro_dot_abapgit) TYPE REF TO zcl_abapgit_dot_abapgit . METHODS set_dot_abapgit IMPORTING !io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit RAISING zcx_abapgit_exception . METHODS get_dot_apack RETURNING VALUE(ro_dot_apack) TYPE REF TO zcl_abapgit_apack_reader . METHODS get_data_config RETURNING VALUE(ri_config) TYPE REF TO zif_abapgit_data_config RAISING zcx_abapgit_exception . METHODS deserialize IMPORTING !is_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks !ii_log TYPE REF TO zif_abapgit_log RAISING zcx_abapgit_exception . METHODS refresh IMPORTING !iv_drop_cache TYPE abap_bool DEFAULT abap_false !iv_drop_log TYPE abap_bool DEFAULT abap_true PREFERRED PARAMETER iv_drop_cache RAISING zcx_abapgit_exception . METHODS update_local_checksums IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt RAISING zcx_abapgit_exception . METHODS rebuild_local_checksums RAISING zcx_abapgit_exception . METHODS find_remote_dot_abapgit RETURNING VALUE(ro_dot) TYPE REF TO zcl_abapgit_dot_abapgit RAISING zcx_abapgit_exception . METHODS is_offline RETURNING VALUE(rv_offline) TYPE abap_bool RAISING zcx_abapgit_exception . METHODS set_files_remote IMPORTING !it_files TYPE zif_abapgit_definitions=>ty_files_tt . METHODS get_local_settings RETURNING VALUE(rs_settings) TYPE zif_abapgit_persistence=>ty_repo-local_settings . METHODS set_local_settings IMPORTING !is_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings RAISING zcx_abapgit_exception . METHODS has_remote_source ABSTRACT RETURNING VALUE(rv_yes) TYPE abap_bool . METHODS status IMPORTING !ii_log TYPE REF TO zif_abapgit_log OPTIONAL RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt RAISING zcx_abapgit_exception . METHODS switch_repo_type IMPORTING !iv_offline TYPE abap_bool RAISING zcx_abapgit_exception . METHODS create_new_log IMPORTING !iv_title TYPE string OPTIONAL RETURNING VALUE(ri_log) TYPE REF TO zif_abapgit_log . METHODS get_log RETURNING VALUE(ri_log) TYPE REF TO zif_abapgit_log . METHODS refresh_local_object IMPORTING !iv_obj_type TYPE tadir-object !iv_obj_name TYPE tadir-obj_name RAISING zcx_abapgit_exception . METHODS refresh_local_objects RAISING zcx_abapgit_exception . METHODS reset_status . METHODS get_unsupported_objects_local RETURNING VALUE(rt_objects) TYPE zif_abapgit_definitions=>ty_items_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. DATA mt_local TYPE zif_abapgit_definitions=>ty_files_item_tt . DATA mt_remote TYPE zif_abapgit_definitions=>ty_files_tt . DATA mv_request_local_refresh TYPE abap_bool . DATA mv_request_remote_refresh TYPE abap_bool . DATA mt_status TYPE zif_abapgit_definitions=>ty_results_tt . DATA mi_log TYPE REF TO zif_abapgit_log . DATA mi_listener TYPE REF TO zif_abapgit_repo_listener . DATA mo_apack_reader TYPE REF TO zcl_abapgit_apack_reader . DATA mi_data_config TYPE REF TO zif_abapgit_data_config . METHODS find_remote_dot_apack RETURNING VALUE(ro_dot) TYPE REF TO zcl_abapgit_apack_reader RAISING zcx_abapgit_exception . METHODS set_dot_apack IMPORTING !io_dot_apack TYPE REF TO zcl_abapgit_apack_reader RAISING zcx_abapgit_exception . METHODS set IMPORTING !it_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt OPTIONAL !iv_url TYPE zif_abapgit_persistence=>ty_repo-url OPTIONAL !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name OPTIONAL !iv_selected_commit TYPE zif_abapgit_persistence=>ty_repo-selected_commit OPTIONAL !iv_head_branch TYPE zif_abapgit_persistence=>ty_repo-head_branch OPTIONAL !iv_offline TYPE zif_abapgit_persistence=>ty_repo-offline OPTIONAL !is_dot_abapgit TYPE zif_abapgit_persistence=>ty_repo-dot_abapgit OPTIONAL !is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings OPTIONAL !iv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at OPTIONAL !iv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by OPTIONAL !iv_switched_origin TYPE zif_abapgit_persistence=>ty_repo-switched_origin OPTIONAL RAISING zcx_abapgit_exception . METHODS reset_remote . PRIVATE SECTION. METHODS get_local_checksums RETURNING VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt . METHODS notify_listener IMPORTING !is_change_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask RAISING zcx_abapgit_exception . METHODS update_last_deserialize RAISING zcx_abapgit_exception . METHODS check_for_restart . METHODS check_write_protect RAISING zcx_abapgit_exception . METHODS check_language RAISING zcx_abapgit_exception . METHODS remove_non_code_related_files CHANGING !ct_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt . METHODS compare_with_remote_checksum IMPORTING !it_remote_files TYPE zif_abapgit_definitions=>ty_files_tt !is_local_file TYPE zif_abapgit_definitions=>ty_file_item-file CHANGING !cs_checksum TYPE zif_abapgit_persistence=>ty_local_checksum . ENDCLASS. CLASS zcl_abapgit_repo IMPLEMENTATION. METHOD bind_listener. mi_listener = ii_listener. ENDMETHOD. METHOD check_for_restart. CONSTANTS: lc_abapgit_prog TYPE progname VALUE `ZABAPGIT`. " If abapGit was used to update itself, then restart to avoid LOAD_PROGRAM_&_MISMATCH dumps " because abapGit code was changed at runtime IF zcl_abapgit_ui_factory=>get_gui_functions( )->gui_is_available( ) = abap_true AND zcl_abapgit_url=>is_abapgit_repo( ms_data-url ) = abap_true AND sy-batch = abap_false AND sy-cprog = lc_abapgit_prog. IF zcl_abapgit_persist_factory=>get_settings( )->read( )->get_show_default_repo( ) = abap_false. MESSAGE 'abapGit was updated and will restart itself' TYPE 'I'. ENDIF. SUBMIT (sy-cprog). ENDIF. ENDMETHOD. METHOD check_language. DATA lv_main_language TYPE spras. " assumes find_remote_dot_abapgit has been called before lv_main_language = get_dot_abapgit( )->get_main_language( ). IF lv_main_language <> sy-langu. zcx_abapgit_exception=>raise( |Current login language | && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( sy-langu ) }'| && | does not match main language | && |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_main_language ) }'.| && | Select 'Advanced' > 'Open in Main Language'| ). ENDIF. ENDMETHOD. METHOD check_write_protect. IF get_local_settings( )-write_protected = abap_true. zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ). ENDIF. ENDMETHOD. METHOD compare_with_remote_checksum. FIELD-SYMBOLS: <ls_remote_file> LIKE LINE OF it_remote_files, <ls_file_sig> LIKE LINE OF cs_checksum-files. READ TABLE it_remote_files ASSIGNING <ls_remote_file> WITH KEY path = is_local_file-path filename = is_local_file-filename BINARY SEARCH. IF sy-subrc <> 0. " Ignore new local ones RETURN. ENDIF. APPEND INITIAL LINE TO cs_checksum-files ASSIGNING <ls_file_sig>. MOVE-CORRESPONDING is_local_file TO <ls_file_sig>. " If hashes are equal -> local sha1 is OK " Else if R-branch is ahead -> assume changes were remote, state - local sha1 " Else (branches equal) -> assume changes were local, state - remote sha1 IF is_local_file-sha1 <> <ls_remote_file>-sha1. <ls_file_sig>-sha1 = <ls_remote_file>-sha1. ENDIF. ENDMETHOD. METHOD constructor. ASSERT NOT is_data-key IS INITIAL. ms_data = is_data. mv_request_remote_refresh = abap_true. ENDMETHOD. METHOD create_new_log. CREATE OBJECT mi_log TYPE zcl_abapgit_log. mi_log->set_title( iv_title ). ri_log = mi_log. ENDMETHOD. METHOD delete_checks. DATA: li_package TYPE REF TO zif_abapgit_sap_package. li_package = zcl_abapgit_factory=>get_sap_package( get_package( ) ). rs_checks-transport-required = li_package->are_changes_recorded_in_tr_req( ). ENDMETHOD. METHOD deserialize. DATA: lt_updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lt_result TYPE zif_abapgit_data_deserializer=>ty_results, lx_error TYPE REF TO zcx_abapgit_exception. find_remote_dot_abapgit( ). find_remote_dot_apack( ). check_write_protect( ). check_language( ). IF is_checks-requirements-met = zif_abapgit_definitions=>c_no AND is_checks-requirements-decision IS INITIAL. zcx_abapgit_exception=>raise( 'Requirements not met and undecided' ). ENDIF. IF is_checks-dependencies-met = zif_abapgit_definitions=>c_no. zcx_abapgit_exception=>raise( 'APACK dependencies not met' ). ENDIF. IF is_checks-transport-required = abap_true AND is_checks-transport-transport IS INITIAL. zcx_abapgit_exception=>raise( |No transport request was supplied| ). ENDIF. " Deserialize objects TRY. lt_updated_files = zcl_abapgit_objects=>deserialize( io_repo = me is_checks = is_checks ii_log = ii_log ). CATCH zcx_abapgit_exception INTO lx_error. * ensure to reset default transport request task zcl_abapgit_default_transport=>get_instance( )->reset( ). RAISE EXCEPTION lx_error. ENDTRY. APPEND get_dot_abapgit( )->get_signature( ) TO lt_updated_files. update_local_checksums( lt_updated_files ). " Deserialize data (no save to database, just test for now) lt_result = zcl_abapgit_data_factory=>get_deserializer( )->deserialize( ii_config = get_data_config( ) it_files = get_files_remote( ) ). CLEAR: mt_local. update_last_deserialize( ). reset_status( ). COMMIT WORK AND WAIT. check_for_restart( ). ENDMETHOD. METHOD deserialize_checks. DATA: lt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt, lt_dependencies TYPE zif_abapgit_apack_definitions=>ty_dependencies. find_remote_dot_abapgit( ). find_remote_dot_apack( ). check_write_protect( ). check_language( ). rs_checks = zcl_abapgit_objects=>deserialize_checks( me ). lt_requirements = get_dot_abapgit( )->get_data( )-requirements. rs_checks-requirements-met = zcl_abapgit_requirement_helper=>is_requirements_met( lt_requirements ). lt_dependencies = get_dot_apack( )->get_manifest_descriptor( )-dependencies. rs_checks-dependencies-met = zcl_abapgit_apack_helper=>are_dependencies_met( lt_dependencies ). ENDMETHOD. METHOD find_remote_dot_abapgit. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote. get_files_remote( ). READ TABLE mt_remote ASSIGNING <ls_remote> WITH KEY file_path COMPONENTS path = zif_abapgit_definitions=>c_root_dir filename = zif_abapgit_definitions=>c_dot_abapgit. IF sy-subrc = 0. ro_dot = zcl_abapgit_dot_abapgit=>deserialize( <ls_remote>-data ). set_dot_abapgit( ro_dot ). COMMIT WORK AND WAIT. " to release lock ENDIF. ENDMETHOD. METHOD find_remote_dot_apack. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote. get_files_remote( ). READ TABLE mt_remote ASSIGNING <ls_remote> WITH KEY file_path COMPONENTS path = zif_abapgit_definitions=>c_root_dir filename = zif_abapgit_apack_definitions=>c_dot_apack_manifest. IF sy-subrc = 0. ro_dot = zcl_abapgit_apack_reader=>deserialize( iv_package_name = ms_data-package iv_xstr = <ls_remote>-data ). set_dot_apack( ro_dot ). ENDIF. ENDMETHOD. METHOD get_data_config. FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote. IF mi_data_config IS BOUND. ri_config = mi_data_config. RETURN. ENDIF. get_files_remote( ). CREATE OBJECT ri_config TYPE zcl_abapgit_data_config. mi_data_config = ri_config. READ TABLE mt_remote ASSIGNING <ls_remote> WITH KEY file_path COMPONENTS path = zif_abapgit_data_config=>c_default_path. IF sy-subrc = 0. ri_config->from_json( mt_remote ). ENDIF. ENDMETHOD. METHOD get_dot_abapgit. CREATE OBJECT ro_dot_abapgit EXPORTING is_data = ms_data-dot_abapgit. ENDMETHOD. METHOD get_dot_apack. IF mo_apack_reader IS NOT BOUND. mo_apack_reader = zcl_abapgit_apack_reader=>create_instance( ms_data-package ). ENDIF. ro_dot_apack = mo_apack_reader. ENDMETHOD. METHOD get_files_local. DATA lo_serialize TYPE REF TO zcl_abapgit_serialize. " Serialization happened before and no refresh request IF lines( mt_local ) > 0 AND mv_request_local_refresh = abap_false. rt_files = mt_local. RETURN. ENDIF. CREATE OBJECT lo_serialize EXPORTING io_dot_abapgit = get_dot_abapgit( ) is_local_settings = get_local_settings( ). rt_files = lo_serialize->files_local( iv_package = get_package( ) ii_data_config = get_data_config( ) ii_log = ii_log ). mt_local = rt_files. mv_request_local_refresh = abap_false. " Fulfill refresh ENDMETHOD. METHOD get_files_remote. rt_files = mt_remote. ENDMETHOD. METHOD get_key. rv_key = ms_data-key. ENDMETHOD. METHOD get_local_checksums. rt_checksums = ms_data-local_checksums. ENDMETHOD. METHOD get_local_checksums_per_file. FIELD-SYMBOLS <ls_object> LIKE LINE OF ms_data-local_checksums. LOOP AT ms_data-local_checksums ASSIGNING <ls_object>. APPEND LINES OF <ls_object>-files TO rt_checksums. ENDLOOP. ENDMETHOD. METHOD get_local_settings. rs_settings = ms_data-local_settings. ENDMETHOD. METHOD get_log. ri_log = mi_log. ENDMETHOD. METHOD get_name. rv_name = ms_data-local_settings-display_name. ENDMETHOD. METHOD get_package. rv_package = ms_data-package. ENDMETHOD. METHOD get_unsupported_objects_local. DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lt_supported_types TYPE zcl_abapgit_objects=>ty_types_tt. FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF lt_tadir, <ls_object> LIKE LINE OF rt_objects. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = ms_data-package iv_ignore_subpackages = ms_data-local_settings-ignore_subpackages iv_only_local_objects = ms_data-local_settings-only_local_objects io_dot = get_dot_abapgit( ) ). lt_supported_types = zcl_abapgit_objects=>supported_list( ). LOOP AT lt_tadir ASSIGNING <ls_tadir>. READ TABLE lt_supported_types WITH KEY table_line = <ls_tadir>-object TRANSPORTING NO FIELDS. IF sy-subrc <> 0. APPEND INITIAL LINE TO rt_objects ASSIGNING <ls_object>. MOVE-CORRESPONDING <ls_tadir> TO <ls_object>. <ls_object>-obj_type = <ls_tadir>-object. ENDIF. ENDLOOP. ENDMETHOD. METHOD is_offline. rv_offline = ms_data-offline. ENDMETHOD. METHOD notify_listener. DATA ls_meta_slug TYPE zif_abapgit_persistence=>ty_repo_xml. IF mi_listener IS BOUND. MOVE-CORRESPONDING ms_data TO ls_meta_slug. mi_listener->on_meta_change( iv_key = ms_data-key is_meta = ls_meta_slug is_change_mask = is_change_mask ). ENDIF. ENDMETHOD. METHOD rebuild_local_checksums. DATA: lt_remote TYPE zif_abapgit_definitions=>ty_files_tt, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, ls_last_item TYPE zif_abapgit_definitions=>ty_item, lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt. FIELD-SYMBOLS: <ls_checksum> LIKE LINE OF lt_checksums, <ls_local> LIKE LINE OF lt_local. lt_local = get_files_local( ). remove_non_code_related_files( CHANGING ct_local_files = lt_local ). lt_remote = get_files_remote( ). SORT lt_remote BY path filename. LOOP AT lt_local ASSIGNING <ls_local>. IF ls_last_item <> <ls_local>-item OR sy-tabix = 1. " First or New item reached ? APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>. <ls_checksum>-item = <ls_local>-item. ls_last_item = <ls_local>-item. ENDIF. compare_with_remote_checksum( EXPORTING it_remote_files = lt_remote is_local_file = <ls_local>-file CHANGING cs_checksum = <ls_checksum> ). ENDLOOP. set( it_checksums = lt_checksums ). reset_status( ). ENDMETHOD. METHOD refresh. mv_request_local_refresh = abap_true. reset_remote( ). IF iv_drop_log = abap_true. CLEAR mi_log. ENDIF. IF iv_drop_cache = abap_true. CLEAR mt_local. ENDIF. ENDMETHOD. METHOD refresh_local_object. DATA: ls_tadir TYPE zif_abapgit_definitions=>ty_tadir, lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt, lt_new_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt, lo_serialize TYPE REF TO zcl_abapgit_serialize. lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( iv_package = ms_data-package io_dot = get_dot_abapgit( ) ). DELETE mt_local WHERE item-obj_type = iv_obj_type AND item-obj_name = iv_obj_name. READ TABLE lt_tadir INTO ls_tadir WITH KEY object = iv_obj_type obj_name = iv_obj_name. IF sy-subrc <> 0 OR ls_tadir-delflag = abap_true. " object doesn't exist anymore, nothing todo here RETURN. ENDIF. CLEAR lt_tadir. INSERT ls_tadir INTO TABLE lt_tadir. CREATE OBJECT lo_serialize. lt_new_local_files = lo_serialize->serialize( lt_tadir ). INSERT LINES OF lt_new_local_files INTO TABLE mt_local. ENDMETHOD. METHOD refresh_local_objects. mv_request_local_refresh = abap_true. get_files_local( ). ENDMETHOD. METHOD remove_non_code_related_files. DELETE ct_local_files WHERE item IS INITIAL AND NOT ( file-path = zif_abapgit_definitions=>c_root_dir AND file-filename = zif_abapgit_definitions=>c_dot_abapgit ). SORT ct_local_files BY item. ENDMETHOD. METHOD reset_remote. CLEAR mt_remote. mv_request_remote_refresh = abap_true. reset_status( ). ENDMETHOD. METHOD reset_status. CLEAR mt_status. ENDMETHOD. METHOD set. * TODO: refactor, maybe use zcl_abapgit_string_map ? DATA: ls_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask. ASSERT it_checksums IS SUPPLIED OR iv_url IS SUPPLIED OR iv_branch_name IS SUPPLIED OR iv_selected_commit IS SUPPLIED OR iv_head_branch IS SUPPLIED OR iv_offline IS SUPPLIED OR is_dot_abapgit IS SUPPLIED OR is_local_settings IS SUPPLIED OR iv_deserialized_by IS SUPPLIED OR iv_deserialized_at IS SUPPLIED OR iv_switched_origin IS SUPPLIED. IF it_checksums IS SUPPLIED. ms_data-local_checksums = it_checksums. ls_mask-local_checksums = abap_true. ENDIF. IF iv_url IS SUPPLIED. ms_data-url = iv_url. ls_mask-url = abap_true. ENDIF. IF iv_branch_name IS SUPPLIED. ms_data-branch_name = iv_branch_name. ls_mask-branch_name = abap_true. ENDIF. IF iv_selected_commit IS SUPPLIED. ms_data-selected_commit = iv_selected_commit. ls_mask-selected_commit = abap_true. ENDIF. IF iv_head_branch IS SUPPLIED. ms_data-head_branch = iv_head_branch. ls_mask-head_branch = abap_true. ENDIF. IF iv_offline IS SUPPLIED. ms_data-offline = iv_offline. ls_mask-offline = abap_true. ENDIF. IF is_dot_abapgit IS SUPPLIED. ms_data-dot_abapgit = is_dot_abapgit. ls_mask-dot_abapgit = abap_true. ENDIF. IF is_local_settings IS SUPPLIED. ms_data-local_settings = is_local_settings. ls_mask-local_settings = abap_true. ENDIF. IF iv_deserialized_at IS SUPPLIED OR iv_deserialized_by IS SUPPLIED. ms_data-deserialized_at = iv_deserialized_at. ms_data-deserialized_by = iv_deserialized_by. ls_mask-deserialized_at = abap_true. ls_mask-deserialized_by = abap_true. ENDIF. IF iv_switched_origin IS SUPPLIED. ms_data-switched_origin = iv_switched_origin. ls_mask-switched_origin = abap_true. ENDIF. notify_listener( ls_mask ). ENDMETHOD. METHOD set_dot_abapgit. set( is_dot_abapgit = io_dot_abapgit->get_data( ) ). ENDMETHOD. METHOD set_dot_apack. get_dot_apack( ). mo_apack_reader->set_manifest_descriptor( io_dot_apack->get_manifest_descriptor( ) ). ENDMETHOD. METHOD set_files_remote. mt_remote = it_files. mv_request_remote_refresh = abap_false. ENDMETHOD. METHOD set_local_settings. set( is_local_settings = is_settings ). ENDMETHOD. METHOD status. IF lines( mt_status ) = 0. mt_status = zcl_abapgit_file_status=>status( io_repo = me ii_log = ii_log ). ENDIF. rt_results = mt_status. ENDMETHOD. METHOD switch_repo_type. IF iv_offline = ms_data-offline. zcx_abapgit_exception=>raise( |Cannot switch_repo_type, offline already = "{ ms_data-offline }"| ). ENDIF. IF iv_offline = abap_true. " On-line -> OFFline set( iv_url = zcl_abapgit_url=>name( ms_data-url ) iv_branch_name = '' iv_selected_commit = '' iv_head_branch = '' iv_offline = abap_true ). ELSE. " OFFline -> On-line set( iv_offline = abap_false ). ENDIF. ENDMETHOD. METHOD update_last_deserialize. DATA: lv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at, lv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by. GET TIME STAMP FIELD lv_deserialized_at. lv_deserialized_by = sy-uname. set( iv_deserialized_at = lv_deserialized_at iv_deserialized_by = lv_deserialized_by ). ENDMETHOD. METHOD update_local_checksums. " ASSUMTION: SHA1 in param is actual and correct. " Push fills it from local files before pushing, deserialize from remote " If this is not true that there is an error somewhere but not here DATA: lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt, lt_files_idx TYPE zif_abapgit_definitions=>ty_file_signatures_tt, lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt, lv_chks_row TYPE i, lv_file_row TYPE i. FIELD-SYMBOLS: <ls_checksum> LIKE LINE OF lt_checksums, <ls_file> LIKE LINE OF <ls_checksum>-files, <ls_local> LIKE LINE OF lt_local, <ls_new_state> LIKE LINE OF it_files. lt_checksums = get_local_checksums( ). lt_files_idx = it_files. SORT lt_files_idx BY path filename. " Sort for binary search " Loop through current chacksum state, update sha1 for common files LOOP AT lt_checksums ASSIGNING <ls_checksum>. lv_chks_row = sy-tabix. LOOP AT <ls_checksum>-files ASSIGNING <ls_file>. lv_file_row = sy-tabix. READ TABLE lt_files_idx ASSIGNING <ls_new_state> WITH KEY path = <ls_file>-path filename = <ls_file>-filename BINARY SEARCH. CHECK sy-subrc = 0. " Missing in param table, skip IF <ls_new_state>-sha1 IS INITIAL. " Empty input sha1 is a deletion marker DELETE <ls_checksum>-files INDEX lv_file_row. ELSE. <ls_file>-sha1 = <ls_new_state>-sha1. " Update sha1 CLEAR <ls_new_state>-sha1. " Mark as processed ENDIF. ENDLOOP. IF lines( <ls_checksum>-files ) = 0. " Remove empty objects DELETE lt_checksums INDEX lv_chks_row. ENDIF. ENDLOOP. DELETE lt_files_idx WHERE sha1 IS INITIAL. " Remove processed IF lines( lt_files_idx ) > 0. lt_local = get_files_local( ). SORT lt_local BY file-path file-filename. " Sort for binary search ENDIF. " Add new files - not deleted and not marked as processed above LOOP AT lt_files_idx ASSIGNING <ls_new_state>. READ TABLE lt_local ASSIGNING <ls_local> WITH KEY file-path = <ls_new_state>-path file-filename = <ls_new_state>-filename BINARY SEARCH. IF sy-subrc <> 0. * if the deserialization fails, the local file might not be there CONTINUE. ENDIF. READ TABLE lt_checksums ASSIGNING <ls_checksum> " TODO Optimize WITH KEY item = <ls_local>-item. IF sy-subrc > 0. APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>. <ls_checksum>-item = <ls_local>-item. ENDIF. APPEND <ls_new_state> TO <ls_checksum>-files. ENDLOOP. SORT lt_checksums BY item. set( it_checksums = lt_checksums ). ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 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, 42865, 13845, 62, 7890, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 20832, 12, 1340, 11319, 13, 628, 220, 220, 220, 337, 36252, 50, 11007, 62, 4868, 877, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 4868, 877, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 260, 7501, 62, 4868, 877, 764, 198, 220, 220, 220, 337, 36252, 50, 748, 48499, 1096, 62, 42116, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 42116, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 8906, 48499, 1096, 62, 42116, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 12233, 62, 42116, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 3808, 62, 42116, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 33678, 62, 42116, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7890, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 2539, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 2539, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 8367, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 3672, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 3672, 8, 41876, 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, 16624, 62, 12001, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 6404, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 6404, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 16624, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 9186, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 12001, 62, 42116, 5700, 62, 525, 62, 7753, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 42116, 5700, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 7753, 62, 12683, 6691, 62, 926, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 16624, 62, 47960, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 16624, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 16624, 62, 926, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26495, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 26495, 8, 41876, 1976, 361, 62, 397, 499, 18300, 62, 19276, 13274, 14804, 774, 62, 260, 7501, 12, 26495, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26518, 62, 397, 499, 18300, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 26518, 62, 397, 499, 18300, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 26518, 62, 397, 499, 18300, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 26518, 62, 499, 441, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26518, 62, 499, 441, 8, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 499, 441, 62, 46862, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 62, 7890, 62, 11250, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 380, 62, 11250, 8, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 7890, 62, 11250, 198, 220, 220, 220, 220, 220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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
class ZCL_EXCEL_WRITER_2007 definition public create public . public section. *"* public components of class ZCL_EXCEL_WRITER_2007 *"* do not include other source files here!!! interfaces ZIF_EXCEL_WRITER . protected section. data MV_SHEET_DATA_XSTRING type XSTRING . data MV_SHEET_DATA_XSTRING_DUMMY type XSTRING . *"* protected components of class ZCL_EXCEL_WRITER_2007 *"* do not include other source files here!!! constants C_CONTENT_TYPES type STRING value '[Content_Types].xml'. "#EC NOTEXT constants C_DOCPROPS_APP type STRING value 'docProps/app.xml'. "#EC NOTEXT constants C_DOCPROPS_CORE type STRING value 'docProps/core.xml'. "#EC NOTEXT constants C_RELATIONSHIPS type STRING value '_rels/.rels'. "#EC NOTEXT constants C_XL_CALCCHAIN type STRING value 'xl/calcChain.xml'. "#EC NOTEXT constants C_XL_DRAWINGS type STRING value 'xl/drawings/drawing#.xml'. "#EC NOTEXT constants C_XL_DRAWINGS_RELS type STRING value 'xl/drawings/_rels/drawing#.xml.rels'. "#EC NOTEXT constants C_XL_RELATIONSHIPS type STRING value 'xl/_rels/workbook.xml.rels'. "#EC NOTEXT constants C_XL_SHAREDSTRINGS type STRING value 'xl/sharedStrings.xml'. "#EC NOTEXT constants C_XL_SHEET type STRING value 'xl/worksheets/sheet#.xml'. "#EC NOTEXT constants C_XL_SHEET_RELS type STRING value 'xl/worksheets/_rels/sheet#.xml.rels'. "#EC NOTEXT constants C_XL_STYLES type STRING value 'xl/styles.xml'. "#EC NOTEXT constants C_XL_THEME type STRING value 'xl/theme/theme1.xml'. "#EC NOTEXT constants C_XL_WORKBOOK type STRING value 'xl/workbook.xml'. "#EC NOTEXT data EXCEL type ref to ZCL_EXCEL . data SHARED_STRINGS type ZEXCEL_T_SHARED_STRING . data STYLES_COND_MAPPING type ZEXCEL_T_STYLES_COND_MAPPING . data STYLES_MAPPING type ZEXCEL_T_STYLES_MAPPING . methods CREATE_XL_SHEET_SHEET_DATA importing !IO_DOCUMENT type ref to IF_IXML_DOCUMENT !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET returning value(RV_IXML_SHEET_DATA_ROOT) type ref to IF_IXML_ELEMENT . methods ADD_FURTHER_DATA_TO_ZIP importing !IO_ZIP type ref to CL_ABAP_ZIP . methods CREATE returning value(EP_EXCEL) type XSTRING . methods CREATE_CONTENT_TYPES returning value(EP_CONTENT) type XSTRING . methods CREATE_DOCPROPS_APP returning value(EP_CONTENT) type XSTRING . methods CREATE_DOCPROPS_CORE returning value(EP_CONTENT) type XSTRING . methods CREATE_DXF_STYLE importing !IV_CELL_STYLE type ZEXCEL_CELL_STYLE !IO_DXF_ELEMENT type ref to IF_IXML_ELEMENT !IO_IXML_DOCUMENT type ref to IF_IXML_DOCUMENT !IT_CELLXFS type ZEXCEL_T_CELLXFS !IT_FONTS type ZEXCEL_T_STYLE_FONT !IT_FILLS type ZEXCEL_T_STYLE_FILL changing !CV_DFX_COUNT type I . methods CREATE_RELATIONSHIPS returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_CHARTS importing !IO_DRAWING type ref to ZCL_EXCEL_DRAWING returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_DRAWINGS importing !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_DRAWINGS_RELS importing !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_DRAWING_ANCHOR importing !IO_DRAWING type ref to ZCL_EXCEL_DRAWING !IO_DOCUMENT type ref to IF_IXML_DOCUMENT !IP_INDEX type I returning value(EP_ANCHOR) type ref to IF_IXML_ELEMENT . methods CREATE_XL_RELATIONSHIPS returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_SHAREDSTRINGS returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_SHEET importing !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET !IV_ACTIVE type FLAG default '' returning value(EP_CONTENT) type XSTRING raising ZCX_EXCEL . methods CREATE_XL_SHEET_PAGEBREAKS importing !IO_DOCUMENT type ref to IF_IXML_DOCUMENT !IO_PARENT type ref to IF_IXML_ELEMENT !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET raising ZCX_EXCEL . methods CREATE_XL_SHEET_RELS importing !IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET !IV_DRAWING_INDEX type I returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_STYLES returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_STYLES_COLOR_NODE importing !IO_DOCUMENT type ref to IF_IXML_DOCUMENT !IO_PARENT type ref to IF_IXML_ELEMENT !IV_COLOR_ELEM_NAME type STRING default 'color' !IS_COLOR type ZEXCEL_S_STYLE_COLOR . methods CREATE_XL_TABLE importing !IO_TABLE type ref to ZCL_EXCEL_TABLE returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_THEME returning value(EP_CONTENT) type XSTRING . methods CREATE_XL_WORKBOOK returning value(EP_CONTENT) type XSTRING . methods GET_SHARED_STRING_INDEX importing !IP_CELL_VALUE type ZEXCEL_CELL_VALUE returning value(EP_INDEX) type INT4 . methods RENDER_IXML_ELEMENT_NO_HEADER importing !IV_IXML_ELEMENT type ref to IF_IXML_ELEMENT returning value(RV_XSTRING) type XSTRING . private section. *"* private components of class ZCL_EXCEL_WRITER_2007 *"* do not include other source files here!!! constants C_OFF type STRING value '0'. "#EC NOTEXT constants C_ON type STRING value '1'. "#EC NOTEXT constants C_XL_PRINTERSETTINGS type STRING value 'xl/printerSettings/printerSettings#.bin'. "#EC NOTEXT methods FLAG2BOOL importing !IP_FLAG type FLAG returning value(EP_BOOLEAN) type CHAR5 . ENDCLASS. CLASS ZCL_EXCEL_WRITER_2007 IMPLEMENTATION. METHOD add_further_data_to_zip. * Can be used by child classes like xlsm-writer to write additional data to zip archive ENDMETHOD. method CREATE. * Office 2007 file format is a cab of several xml files with extension .xlsx DATA: lo_zip TYPE REF TO cl_abap_zip, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_active_worksheet TYPE REF TO zcl_excel_worksheet, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_nested_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table, lo_drawing TYPE REF TO zcl_excel_drawing, lo_drawings TYPE REF TO zcl_excel_drawings. DATA: lv_content TYPE xstring, lv_active TYPE flag, lv_xl_sheet TYPE string, lv_xl_sheet_rels TYPE string, lv_xl_drawing TYPE string, lv_xl_drawing_rels TYPE string, lv_syindex TYPE string, lv_value TYPE string, lv_drawing_index TYPE i. ********************************************************************** * Start of insertion # issue 139 - Dateretention of cellstyles me->excel->add_static_styles( ). * End of insertion # issue 139 - Dateretention of cellstyles ********************************************************************** * STEP 1: Create archive object file (ZIP) CREATE OBJECT lo_zip. ********************************************************************** * STEP 2: Add [Content_Types].xml to zip lv_content = me->create_content_types( ). lo_zip->add( name = me->c_content_types content = lv_content ). ********************************************************************** * STEP 3: Add _rels/.rels to zip lv_content = me->create_relationships( ). lo_zip->add( name = me->c_relationships content = lv_content ). ********************************************************************** * STEP 4: Add docProps/app.xml to zip lv_content = me->create_docprops_app( ). lo_zip->add( name = me->c_docprops_app content = lv_content ). ********************************************************************** * STEP 5: Add docProps/core.xml to zip lv_content = me->create_docprops_core( ). lo_zip->add( name = me->c_docprops_core content = lv_content ). ********************************************************************** * STEP 6: Add xl/_rels/workbook.xml.rels to zip lv_content = me->create_xl_relationships( ). lo_zip->add( name = me->c_xl_relationships content = lv_content ). ********************************************************************** * STEP 6: Add xl/_rels/workbook.xml.rels to zip lv_content = me->create_xl_theme( ). lo_zip->add( name = me->c_xl_theme content = lv_content ). ********************************************************************** * STEP 7: Add xl/workbook.xml to zip lv_content = me->create_xl_workbook( ). lo_zip->add( name = me->c_xl_workbook content = lv_content ). ********************************************************************** * STEP 8: Add xl/workbook.xml to zip * lv_content = me->create_xl_styles_static( ). lv_content = me->create_xl_styles( ). lo_zip->add( name = me->c_xl_styles content = lv_content ). ********************************************************************** * STEP 9: Add sharedStrings.xml to zip lv_content = me->create_xl_sharedstrings( ). lo_zip->add( name = me->c_xl_sharedstrings content = lv_content ). ********************************************************************** * STEP 10: Add sheet#.xml and drawing#.xml to zip lo_iterator = me->excel->get_worksheets_iterator( ). lo_active_worksheet = me->excel->get_active_worksheet( ). lv_drawing_index = 1. WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). IF lo_active_worksheet->get_guid( ) EQ lo_worksheet->get_guid( ). lv_active = abap_true. ELSE. lv_active = abap_false. ENDIF. lv_content = me->create_xl_sheet( io_worksheet = lo_worksheet iv_active = lv_active ). lv_xl_sheet = me->c_xl_sheet. MOVE sy-index TO lv_syindex. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. REPLACE ALL OCCURRENCES OF '#' IN lv_xl_sheet WITH lv_syindex. lo_zip->add( name = lv_xl_sheet content = lv_content ). lv_xl_sheet_rels = me->c_xl_sheet_rels. lv_content = me->create_xl_sheet_rels( io_worksheet = lo_worksheet iv_drawing_index = lv_drawing_index ). REPLACE ALL OCCURRENCES OF '#' IN lv_xl_sheet_rels WITH lv_syindex. lo_zip->add( name = lv_xl_sheet_rels content = lv_content ). lo_nested_iterator = lo_worksheet->get_tables_iterator( ). WHILE lo_nested_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_nested_iterator->if_object_collection_iterator~get_next( ). lv_content = me->create_xl_table( lo_table ). lv_value = lo_table->get_name( ). CONCATENATE 'xl/tables/' lv_value '.xml' INTO lv_value. lo_zip->add( name = lv_value content = lv_content ). ENDWHILE. * Add drawings ********************************** lo_drawings = lo_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. MOVE lv_drawing_index TO lv_syindex. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. lv_content = me->create_xl_drawings( lo_worksheet ). lv_xl_drawing = me->c_xl_drawings. REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing WITH lv_syindex. lo_zip->add( name = lv_xl_drawing content = lv_content ). lv_content = me->create_xl_drawings_rels( lo_worksheet ). lv_xl_drawing_rels = me->c_xl_drawings_rels. REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing_rels WITH lv_syindex. lo_zip->add( name = lv_xl_drawing_rels content = lv_content ). ADD 1 TO lv_drawing_index. ENDIF. ENDWHILE. ********************************************************************** * STEP 11: Add media lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_image ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_content = lo_drawing->get_media( ). lv_value = lo_drawing->get_media_name( ). CONCATENATE 'xl/media/' lv_value INTO lv_value. lo_zip->add( name = lv_value content = lv_content ). ENDWHILE. ********************************************************************** * STEP 12: Add charts lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_chart ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_content = lo_drawing->get_media( ). "-------------Added by Alessandro Iannacci - Only if template exist IF lv_content IS NOT INITIAL AND me->excel->use_template EQ abap_true. lv_value = lo_drawing->get_media_name( ). CONCATENATE 'xl/charts/' lv_value INTO lv_value. lo_zip->add( name = lv_value content = lv_content ). ELSE. "ADD CUSTOM CHART!!!! lv_content = me->create_xl_charts( lo_drawing ). lv_value = lo_drawing->get_media_name( ). CONCATENATE 'xl/charts/' lv_value INTO lv_value. lo_zip->add( name = lv_value content = lv_content ). ENDIF. "------------------------------------------------- ENDWHILE. * Second to last step: Allow further information put into the zip archive by child classes me->add_further_data_to_zip( lo_zip ). ********************************************************************** * Last step: Create the final zip ep_excel = lo_zip->save( ). endmethod. method CREATE_CONTENT_TYPES. ** Constant node name DATA: lc_xml_node_types TYPE string VALUE 'Types', lc_xml_node_override TYPE string VALUE 'Override', lc_xml_node_default TYPE string VALUE 'Default', " Node attributes lc_xml_attr_partname TYPE string VALUE 'PartName', lc_xml_attr_extension TYPE string VALUE 'Extension', lc_xml_attr_contenttype TYPE string VALUE 'ContentType', " Node namespace lc_xml_node_types_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/content-types', " Node extension lc_xml_node_rels_ext TYPE string VALUE 'rels', lc_xml_node_xml_ext TYPE string VALUE 'xml', " Node partnumber lc_xml_node_theme_pn TYPE string VALUE '/xl/theme/theme1.xml', lc_xml_node_styles_pn TYPE string VALUE '/xl/styles.xml', lc_xml_node_workb_pn TYPE string VALUE '/xl/workbook.xml', lc_xml_node_props_pn TYPE string VALUE '/docProps/app.xml', lc_xml_node_worksheet_pn TYPE string VALUE '/xl/worksheets/sheet#.xml', lc_xml_node_strings_pn TYPE string VALUE '/xl/sharedStrings.xml', lc_xml_node_core_pn TYPE string VALUE '/docProps/core.xml', lc_xml_node_chart_pn TYPE string VALUE '/xl/charts/chart#.xml', " Node contentType lc_xml_node_theme_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.theme+xml', lc_xml_node_styles_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml', lc_xml_node_workb_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml', lc_xml_node_rels_ct TYPE string VALUE 'application/vnd.openxmlformats-package.relationships+xml', lc_xml_node_xml_ct TYPE string VALUE 'application/xml', lc_xml_node_props_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.extended-properties+xml', lc_xml_node_worksheet_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml', lc_xml_node_strings_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml', lc_xml_node_core_ct TYPE string VALUE 'application/vnd.openxmlformats-package.core-properties+xml', lc_xml_node_table_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml', lc_xml_node_drawings_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.drawing+xml', lc_xml_node_chart_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_nested_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table. DATA: lv_worksheets_num TYPE i, lv_worksheets_numc TYPE numc3, lv_xml_node_worksheet_pn TYPE string, lv_value TYPE string, lv_drawing_index TYPE i VALUE 1, lv_index_str TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'UTF-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node types lo_element_root = lo_document->create_simple_element( name = lc_xml_node_types parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_types_ns ). ********************************************************************** * STEP 4: Create subnodes " rels node lo_element = lo_document->create_simple_element( name = lc_xml_node_default parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_extension value = lc_xml_node_rels_ext ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_rels_ct ). lo_element_root->append_child( new_child = lo_element ). " extension node lo_element = lo_document->create_simple_element( name = lc_xml_node_default parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_extension value = lc_xml_node_xml_ext ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_xml_ct ). lo_element_root->append_child( new_child = lo_element ). " Theme node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_theme_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_theme_ct ). lo_element_root->append_child( new_child = lo_element ). " Styles node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_styles_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_styles_ct ). lo_element_root->append_child( new_child = lo_element ). " Workbook node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_workb_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_workb_ct ). lo_element_root->append_child( new_child = lo_element ). " Properties node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_props_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_props_ct ). lo_element_root->append_child( new_child = lo_element ). " Worksheet node lv_worksheets_num = excel->get_worksheets_size( ). DO lv_worksheets_num TIMES. lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). MOVE sy-index TO lv_worksheets_numc. SHIFT lv_worksheets_numc LEFT DELETING LEADING '0'. lv_xml_node_worksheet_pn = lc_xml_node_worksheet_pn. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_worksheet_pn WITH lv_worksheets_numc. lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lv_xml_node_worksheet_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_worksheet_ct ). lo_element_root->append_child( new_child = lo_element ). ENDDO. lo_iterator = me->excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). lo_nested_iterator = lo_worksheet->get_tables_iterator( ). WHILE lo_nested_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_nested_iterator->if_object_collection_iterator~get_next( ). lv_value = lo_table->get_name( ). CONCATENATE '/xl/tables/' lv_value '.xml' INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_table_ct ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. " Drawings DATA: lo_drawings TYPE REF TO zcl_excel_drawings. lo_drawings = lo_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. lv_index_str = lv_drawing_index. CONDENSE lv_index_str NO-GAPS. CONCATENATE '/' me->c_xl_drawings INTO lv_value. REPLACE '#' WITH lv_index_str INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_drawings_ct ). lo_element_root->append_child( new_child = lo_element ). ADD 1 TO lv_drawing_index. ENDIF. ENDWHILE. " media mimes DATA: lo_drawing TYPE REF TO zcl_excel_drawing, lt_media_type TYPE TABLE OF mimetypes-extension, lv_media_type TYPE mimetypes-extension, lv_mime_type TYPE mimetypes-type. lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_image ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) = abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_media_type = lo_drawing->get_media_type( ). COLLECT lv_media_type INTO lt_media_type. ENDWHILE. LOOP AT lt_media_type INTO lv_media_type. CALL FUNCTION 'SDOK_MIMETYPE_GET' EXPORTING extension = lv_media_type IMPORTING mimetype = lv_mime_type. lo_element = lo_document->create_simple_element( name = lc_xml_node_default parent = lo_document ). lv_value = lv_media_type. lo_element->set_attribute_ns( name = lc_xml_attr_extension value = lv_value ). lv_value = lv_mime_type. lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDLOOP. " Charts lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_chart ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) = abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lv_index_str = lo_drawing->get_index( ). CONDENSE lv_index_str. lv_value = lc_xml_node_chart_pn. REPLACE ALL OCCURRENCES OF '#' IN lv_value WITH lv_index_str. lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_chart_ct ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. " Strings node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_strings_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_strings_ct ). lo_element_root->append_child( new_child = lo_element ). " Strings node lo_element = lo_document->create_simple_element( name = lc_xml_node_override parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_partname value = lc_xml_node_core_pn ). lo_element->set_attribute_ns( name = lc_xml_attr_contenttype value = lc_xml_node_core_ct ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. method CREATE_DOCPROPS_APP. ** Constant node name DATA: lc_xml_node_properties TYPE string VALUE 'Properties', lc_xml_node_application TYPE string VALUE 'Application', lc_xml_node_docsecurity TYPE string VALUE 'DocSecurity', lc_xml_node_scalecrop TYPE string VALUE 'ScaleCrop', lc_xml_node_headingpairs TYPE string VALUE 'HeadingPairs', lc_xml_node_vector TYPE string VALUE 'vector', lc_xml_node_variant TYPE string VALUE 'variant', lc_xml_node_lpstr TYPE string VALUE 'lpstr', lc_xml_node_i4 TYPE string VALUE 'i4', lc_xml_node_titlesofparts TYPE string VALUE 'TitlesOfParts', lc_xml_node_company TYPE string VALUE 'Company', lc_xml_node_linksuptodate TYPE string VALUE 'LinksUpToDate', lc_xml_node_shareddoc TYPE string VALUE 'SharedDoc', lc_xml_node_hyperlinkschanged TYPE string VALUE 'HyperlinksChanged', lc_xml_node_appversion TYPE string VALUE 'AppVersion', " Namespace prefix lc_vt_ns TYPE string VALUE 'vt', lc_xml_node_props_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties', lc_xml_node_props_vt_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes', " Node attributes lc_xml_attr_size TYPE string VALUE 'size', lc_xml_attr_basetype TYPE string VALUE 'baseType'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_sub_element_vector TYPE REF TO if_ixml_element, lo_sub_element_variant TYPE REF TO if_ixml_element, lo_sub_element_lpstr TYPE REF TO if_ixml_element, lo_sub_element_i4 TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: lv_value TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node properties lo_element_root = lo_document->create_simple_element( name = lc_xml_node_properties parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_props_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:vt' value = lc_xml_node_props_vt_ns ). ********************************************************************** * STEP 4: Create subnodes " Application lo_element = lo_document->create_simple_element( name = lc_xml_node_application parent = lo_document ). lv_value = excel->zif_excel_book_properties~application. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " DocSecurity lo_element = lo_document->create_simple_element( name = lc_xml_node_docsecurity parent = lo_document ). lv_value = excel->zif_excel_book_properties~docsecurity. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " ScaleCrop lo_element = lo_document->create_simple_element( name = lc_xml_node_scalecrop parent = lo_document ). lv_value = me->flag2bool( excel->zif_excel_book_properties~scalecrop ). lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " HeadingPairs lo_element = lo_document->create_simple_element( name = lc_xml_node_headingpairs parent = lo_document ). " * vector node lo_sub_element_vector = lo_document->create_simple_element_ns( name = lc_xml_node_vector prefix = lc_vt_ns parent = lo_document ). lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_size value = '2' ). lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_basetype value = lc_xml_node_variant ). " ** variant node lo_sub_element_variant = lo_document->create_simple_element_ns( name = lc_xml_node_variant prefix = lc_vt_ns parent = lo_document ). " *** lpstr node lo_sub_element_lpstr = lo_document->create_simple_element_ns( name = lc_xml_node_lpstr prefix = lc_vt_ns parent = lo_document ). lv_value = excel->get_worksheets_name( ). lo_sub_element_lpstr->set_value( value = lv_value ). lo_sub_element_variant->append_child( new_child = lo_sub_element_lpstr ). " lpstr node lo_sub_element_vector->append_child( new_child = lo_sub_element_variant ). " variant node " ** variant node lo_sub_element_variant = lo_document->create_simple_element_ns( name = lc_xml_node_variant prefix = lc_vt_ns parent = lo_document ). " *** i4 node lo_sub_element_i4 = lo_document->create_simple_element_ns( name = lc_xml_node_i4 prefix = lc_vt_ns parent = lo_document ). lv_value = excel->get_worksheets_size( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element_i4->set_value( value = lv_value ). lo_sub_element_variant->append_child( new_child = lo_sub_element_i4 ). " lpstr node lo_sub_element_vector->append_child( new_child = lo_sub_element_variant ). " variant node lo_element->append_child( new_child = lo_sub_element_vector ). " vector node lo_element_root->append_child( new_child = lo_element ). " HeadingPairs " TitlesOfParts lo_element = lo_document->create_simple_element( name = lc_xml_node_titlesofparts parent = lo_document ). " * vector node lo_sub_element_vector = lo_document->create_simple_element_ns( name = lc_xml_node_vector prefix = lc_vt_ns parent = lo_document ). lv_value = excel->get_worksheets_size( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_size value = lv_value ). lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_basetype value = lc_xml_node_lpstr ). lo_iterator = excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. " ** lpstr node lo_sub_element_lpstr = lo_document->create_simple_element_ns( name = lc_xml_node_lpstr prefix = lc_vt_ns parent = lo_document ). lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_value = lo_worksheet->get_title( ). lo_sub_element_lpstr->set_value( value = lv_value ). lo_sub_element_vector->append_child( new_child = lo_sub_element_lpstr ). " lpstr node ENDWHILE. lo_element->append_child( new_child = lo_sub_element_vector ). " vector node lo_element_root->append_child( new_child = lo_element ). " TitlesOfParts " Company IF excel->zif_excel_book_properties~company IS NOT INITIAL. lo_element = lo_document->create_simple_element( name = lc_xml_node_company parent = lo_document ). lv_value = excel->zif_excel_book_properties~company. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. " LinksUpToDate lo_element = lo_document->create_simple_element( name = lc_xml_node_linksuptodate parent = lo_document ). lv_value = me->flag2bool( excel->zif_excel_book_properties~linksuptodate ). lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " SharedDoc lo_element = lo_document->create_simple_element( name = lc_xml_node_shareddoc parent = lo_document ). lv_value = me->flag2bool( excel->zif_excel_book_properties~shareddoc ). lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " HyperlinksChanged lo_element = lo_document->create_simple_element( name = lc_xml_node_hyperlinkschanged parent = lo_document ). lv_value = me->flag2bool( excel->zif_excel_book_properties~hyperlinkschanged ). lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " AppVersion lo_element = lo_document->create_simple_element( name = lc_xml_node_appversion parent = lo_document ). lv_value = excel->zif_excel_book_properties~appversion. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. method CREATE_DOCPROPS_CORE. ** Constant node name DATA: lc_xml_node_coreproperties TYPE string VALUE 'coreProperties', lc_xml_node_creator TYPE string VALUE 'creator', lc_xml_node_description TYPE string VALUE 'description', lc_xml_node_lastmodifiedby TYPE string VALUE 'lastModifiedBy', lc_xml_node_created TYPE string VALUE 'created', lc_xml_node_modified TYPE string VALUE 'modified', " Node attributes lc_xml_attr_type TYPE string VALUE 'type', lc_xml_attr_target TYPE string VALUE 'dcterms:W3CDTF', " Node namespace lc_cp_ns TYPE string VALUE 'cp', lc_dc_ns TYPE string VALUE 'dc', lc_dcterms_ns TYPE string VALUE 'dcterms', * lc_dcmitype_ns TYPE string VALUE 'dcmitype', lc_xsi_ns TYPE string VALUE 'xsi', lc_xml_node_cp_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/metadata/core-properties', lc_xml_node_dc_ns TYPE string VALUE 'http://purl.org/dc/elements/1.1/', lc_xml_node_dcterms_ns TYPE string VALUE 'http://purl.org/dc/terms/', lc_xml_node_dcmitype_ns TYPE string VALUE 'http://purl.org/dc/dcmitype/', lc_xml_node_xsi_ns TYPE string VALUE 'http://www.w3.org/2001/XMLSchema-instance'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. DATA: lv_value TYPE string, lv_date TYPE sydatum, lv_time TYPE syuzeit. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node coreProperties lo_element_root = lo_document->create_simple_element_ns( name = lc_xml_node_coreproperties prefix = lc_cp_ns parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns:cp' value = lc_xml_node_cp_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:dc' value = lc_xml_node_dc_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:dcterms' value = lc_xml_node_dcterms_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:dcmitype' value = lc_xml_node_dcmitype_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:xsi' value = lc_xml_node_xsi_ns ). ********************************************************************** * STEP 4: Create subnodes " Creator node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_creator prefix = lc_dc_ns parent = lo_document ). lv_value = excel->zif_excel_book_properties~creator. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " Description node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_description prefix = lc_dc_ns parent = lo_document ). lv_value = excel->zif_excel_book_properties~description. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " lastModifiedBy node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_lastmodifiedby prefix = lc_cp_ns parent = lo_document ). lv_value = excel->zif_excel_book_properties~lastmodifiedby. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " Created node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_created prefix = lc_dcterms_ns parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_type prefix = lc_xsi_ns value = lc_xml_attr_target ). CONVERT TIME STAMP excel->zif_excel_book_properties~created TIME ZONE sy-zonlo INTO DATE lv_date TIME lv_time. CONCATENATE lv_date lv_time INTO lv_value RESPECTING BLANKS. REPLACE ALL OCCURRENCES OF REGEX '([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})' IN lv_value WITH '$1-$2-$3T$4:$5:$6Z'. * lv_value = excel->zif_excel_book_properties~created. * lv_value = '2010-07-04T14:58:53Z'. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " Modified node lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_modified prefix = lc_dcterms_ns parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_type prefix = lc_xsi_ns value = lc_xml_attr_target ). CONVERT TIME STAMP excel->zif_excel_book_properties~modified TIME ZONE sy-zonlo INTO DATE lv_date TIME lv_time. CONCATENATE lv_date lv_time INTO lv_value RESPECTING BLANKS. REPLACE ALL OCCURRENCES OF REGEX '([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})' IN lv_value WITH '$1-$2-$3T$4:$5:$6Z'. * lv_value = excel->zif_excel_book_properties~modified. * lv_value = '2010-07-04T14:58:53Z'. lo_element->set_value( value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. METHOD create_dxf_style. CONSTANTS: lc_xml_node_dxf TYPE string VALUE 'dxf', lc_xml_node_font TYPE string VALUE 'font', lc_xml_node_b TYPE string VALUE 'b', "bold lc_xml_node_i TYPE string VALUE 'i', "italic lc_xml_node_u TYPE string VALUE 'u', "underline lc_xml_node_strike TYPE string VALUE 'strike', "strikethrough lc_xml_attr_val TYPE string VALUE 'val', lc_xml_node_fill TYPE string VALUE 'fill', lc_xml_node_patternfill TYPE string VALUE 'patternFill', lc_xml_attr_patterntype TYPE string VALUE 'patternType', lc_xml_node_fgcolor TYPE string VALUE 'fgColor', lc_xml_node_bgcolor TYPE string VALUE 'bgColor'. DATA: ls_styles_mapping TYPE zexcel_s_styles_mapping, ls_cellxfs TYPE zexcel_s_cellxfs, ls_style_cond_mapping TYPE zexcel_s_styles_cond_mapping, lo_sub_element TYPE REF TO if_ixml_element, lo_sub_element_2 TYPE REF TO if_ixml_element, lv_index TYPE i, ls_font TYPE zexcel_s_style_font, lo_element_font TYPE REF TO if_ixml_element, lv_value TYPE string, ls_fill TYPE zexcel_s_style_fill, lo_element_fill TYPE REF TO if_ixml_element. CHECK iv_cell_style IS NOT INITIAL. READ TABLE me->styles_mapping INTO ls_styles_mapping WITH KEY guid = iv_cell_style. ADD 1 TO ls_styles_mapping-style. " the numbering starts from 0 READ TABLE it_cellxfs INTO ls_cellxfs INDEX ls_styles_mapping-style. ADD 1 TO ls_cellxfs-fillid. " the numbering starts from 0 READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY style = ls_styles_mapping-style. IF sy-subrc EQ 0. ls_style_cond_mapping-guid = iv_cell_style. APPEND ls_style_cond_mapping TO me->styles_cond_mapping. ELSE. ls_style_cond_mapping-guid = iv_cell_style. ls_style_cond_mapping-style = ls_styles_mapping-style. ls_style_cond_mapping-dxf = cv_dfx_count. APPEND ls_style_cond_mapping TO me->styles_cond_mapping. ADD 1 TO cv_dfx_count. " dxf node lo_sub_element = io_ixml_document->create_simple_element( name = lc_xml_node_dxf parent = io_ixml_document ). "Conditional formatting font style correction by Alessandro Iannacci START lv_index = ls_cellxfs-fontid + 1. READ TABLE it_fonts INTO ls_font INDEX lv_index. IF ls_font IS NOT INITIAL. lo_element_font = io_ixml_document->create_simple_element( name = lc_xml_node_font parent = io_ixml_document ). IF ls_font-bold EQ abap_true. lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_b parent = io_ixml_document ). lo_element_font->append_child( new_child = lo_sub_element_2 ). ENDIF. IF ls_font-italic EQ abap_true. lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_i parent = io_ixml_document ). lo_element_font->append_child( new_child = lo_sub_element_2 ). ENDIF. IF ls_font-underline EQ abap_true. lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_u parent = io_ixml_document ). lv_value = ls_font-underline_mode. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element_2 ). ENDIF. IF ls_font-strikethrough EQ abap_true. lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_strike parent = io_ixml_document ). lo_element_font->append_child( new_child = lo_sub_element_2 ). ENDIF. "color create_xl_styles_color_node( io_document = io_ixml_document io_parent = lo_element_font is_color = ls_font-color ). lo_sub_element->append_child( new_child = lo_element_font ). ENDIF. "---Conditional formatting font style correction by Alessandro Iannacci END READ TABLE it_fills INTO ls_fill INDEX ls_cellxfs-fillid. IF ls_fill IS NOT INITIAL. " fill properties lo_element_fill = io_ixml_document->create_simple_element( name = lc_xml_node_fill parent = io_ixml_document ). "pattern lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_patternfill parent = io_ixml_document ). lv_value = ls_fill-filltype. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_patterntype value = lv_value ). " fgcolor create_xl_styles_color_node( io_document = io_ixml_document io_parent = lo_sub_element_2 is_color = ls_fill-fgcolor iv_color_elem_name = lc_xml_node_fgcolor ). IF ls_fill-fgcolor-rgb IS INITIAL AND ls_fill-fgcolor-indexed EQ zcl_excel_style_color=>c_indexed_not_set AND ls_fill-fgcolor-theme EQ zcl_excel_style_color=>c_theme_not_set AND ls_fill-fgcolor-tint IS INITIAL AND ls_fill-bgcolor-indexed EQ zcl_excel_style_color=>c_indexed_sys_foreground. " bgcolor create_xl_styles_color_node( io_document = io_ixml_document io_parent = lo_sub_element_2 is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_bgcolor ). ENDIF. lo_element_fill->append_child( new_child = lo_sub_element_2 ). "pattern lo_sub_element->append_child( new_child = lo_element_fill ). ENDIF. ENDIF. io_dxf_element->append_child( new_child = lo_sub_element ). ENDMETHOD. method CREATE_RELATIONSHIPS. ** Constant node name DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'Id', lc_xml_attr_type TYPE string VALUE 'Type', lc_xml_attr_target TYPE string VALUE 'Target', " Node namespace lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', " Node id lc_xml_node_rId1_id TYPE string VALUE 'rId1', lc_xml_node_rId2_id TYPE string VALUE 'rId2', lc_xml_node_rId3_id TYPE string VALUE 'rId3', " Node type lc_xml_node_rId1_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument', lc_xml_node_rId2_tp TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties', lc_xml_node_rId3_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties', " Node target lc_xml_node_rId1_tg TYPE string VALUE 'xl/workbook.xml', lc_xml_node_rId2_tg TYPE string VALUE 'docProps/core.xml', lc_xml_node_rId3_tg TYPE string VALUE 'docProps/app.xml'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_rels_ns ). ********************************************************************** * STEP 4: Create subnodes " Theme node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lc_xml_node_rId3_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rId3_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rId3_tg ). lo_element_root->append_child( new_child = lo_element ). " Styles node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lc_xml_node_rId2_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rId2_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rId2_tg ). lo_element_root->append_child( new_child = lo_element ). " rels node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lc_xml_node_rId1_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rId1_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rId1_tg ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. METHOD create_xl_charts. ** Constant node name CONSTANTS: lc_xml_node_chartspace TYPE string VALUE 'c:chartSpace', lc_xml_node_ns_c TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/chart', lc_xml_node_ns_a TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/main', lc_xml_node_ns_r TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', lc_xml_node_date1904 TYPE string VALUE 'c:date1904', lc_xml_node_lang TYPE string VALUE 'c:lang', lc_xml_node_roundedcorners TYPE string VALUE 'c:roundedCorners', lc_xml_node_altcont TYPE string VALUE 'mc:AlternateContent', lc_xml_node_altcont_ns_mc TYPE string VALUE 'http://schemas.openxmlformats.org/markup-compatibility/2006', lc_xml_node_choice TYPE string VALUE 'mc:Choice', lc_xml_node_choice_ns_requires TYPE string VALUE 'c14', lc_xml_node_choice_ns_c14 TYPE string VALUE 'http://schemas.microsoft.com/office/drawing/2007/8/2/chart', lc_xml_node_style TYPE string VALUE 'c14:style', lc_xml_node_fallback TYPE string VALUE 'mc:Fallback', lc_xml_node_style2 TYPE string VALUE 'c:style', "---------------------------CHART lc_xml_node_chart TYPE string VALUE 'c:chart', lc_xml_node_autotitledeleted TYPE string VALUE 'c:autoTitleDeleted', "plotArea lc_xml_node_plotarea TYPE string VALUE 'c:plotArea', lc_xml_node_layout TYPE string VALUE 'c:layout', lc_xml_node_varycolors TYPE string VALUE 'c:varyColors', lc_xml_node_ser TYPE string VALUE 'c:ser', lc_xml_node_idx TYPE string VALUE 'c:idx', lc_xml_node_order TYPE string VALUE 'c:order', lc_xml_node_tx TYPE string VALUE 'c:tx', lc_xml_node_v TYPE string VALUE 'c:v', lc_xml_node_val TYPE string VALUE 'c:val', lc_xml_node_cat TYPE string VALUE 'c:cat', lc_xml_node_numref TYPE string VALUE 'c:numRef', lc_xml_node_strref TYPE string VALUE 'c:strRef', lc_xml_node_f TYPE string VALUE 'c:f', "this is the range lc_xml_node_overlap TYPE string VALUE 'c:overlap', "note: numcache avoided lc_xml_node_dlbls TYPE string VALUE 'c:dLbls', lc_xml_node_showlegendkey TYPE string VALUE 'c:showLegendKey', lc_xml_node_showval TYPE string VALUE 'c:showVal', lc_xml_node_showcatname TYPE string VALUE 'c:showCatName', lc_xml_node_showsername TYPE string VALUE 'c:showSerName', lc_xml_node_showpercent TYPE string VALUE 'c:showPercent', lc_xml_node_showbubblesize TYPE string VALUE 'c:showBubbleSize', "plotArea->pie lc_xml_node_piechart TYPE string VALUE 'c:pieChart', lc_xml_node_showleaderlines TYPE string VALUE 'c:showLeaderLines', lc_xml_node_firstsliceang TYPE string VALUE 'c:firstSliceAng', "plotArea->line lc_xml_node_linechart TYPE string VALUE 'c:lineChart', lc_xml_node_symbol TYPE string VALUE 'c:symbol', lc_xml_node_marker TYPE string VALUE 'c:marker', lc_xml_node_smooth TYPE string VALUE 'c:smooth', "plotArea->bar lc_xml_node_invertifnegative TYPE string VALUE 'c:invertIfNegative', lc_xml_node_barchart TYPE string VALUE 'c:barChart', lc_xml_node_bardir TYPE string VALUE 'c:barDir', lc_xml_node_gapwidth TYPE string VALUE 'c:gapWidth', "plotArea->line + plotArea->bar lc_xml_node_grouping TYPE string VALUE 'c:grouping', lc_xml_node_axid TYPE string VALUE 'c:axId', lc_xml_node_catax TYPE string VALUE 'c:catAx', lc_xml_node_valax TYPE string VALUE 'c:valAx', lc_xml_node_scaling TYPE string VALUE 'c:scaling', lc_xml_node_orientation TYPE string VALUE 'c:orientation', lc_xml_node_delete TYPE string VALUE 'c:delete', lc_xml_node_axpos TYPE string VALUE 'c:axPos', lc_xml_node_numfmt TYPE string VALUE 'c:numFmt', lc_xml_node_majorgridlines TYPE string VALUE 'c:majorGridlines', lc_xml_node_majortickmark TYPE string VALUE 'c:majorTickMark', lc_xml_node_minortickmark TYPE string VALUE 'c:minorTickMark', lc_xml_node_ticklblpos TYPE string VALUE 'c:tickLblPos', lc_xml_node_crossax TYPE string VALUE 'c:crossAx', lc_xml_node_crosses TYPE string VALUE 'c:crosses', lc_xml_node_auto TYPE string VALUE 'c:auto', lc_xml_node_lblalgn TYPE string VALUE 'c:lblAlgn', lc_xml_node_lbloffset TYPE string VALUE 'c:lblOffset', lc_xml_node_nomultilvllbl TYPE string VALUE 'c:noMultiLvlLbl', lc_xml_node_crossbetween TYPE string VALUE 'c:crossBetween', "legend lc_xml_node_legend TYPE string VALUE 'c:legend', "legend->pie lc_xml_node_legendpos TYPE string VALUE 'c:legendPos', * lc_xml_node_layout TYPE string VALUE 'c:layout', "already exist lc_xml_node_overlay TYPE string VALUE 'c:overlay', lc_xml_node_txpr TYPE string VALUE 'c:txPr', lc_xml_node_bodypr TYPE string VALUE 'a:bodyPr', lc_xml_node_lststyle TYPE string VALUE 'a:lstStyle', lc_xml_node_p TYPE string VALUE 'a:p', lc_xml_node_ppr TYPE string VALUE 'a:pPr', lc_xml_node_defrpr TYPE string VALUE 'a:defRPr', lc_xml_node_endpararpr TYPE string VALUE 'a:endParaRPr', "legend->bar + legend->line lc_xml_node_plotvisonly TYPE string VALUE 'c:plotVisOnly', lc_xml_node_dispblanksas TYPE string VALUE 'c:dispBlanksAs', lc_xml_node_showdlblsovermax TYPE string VALUE 'c:showDLblsOverMax', "---------------------------END OF CHART lc_xml_node_printsettings TYPE string VALUE 'c:printSettings', lc_xml_node_headerfooter TYPE string VALUE 'c:headerFooter', lc_xml_node_pagemargins TYPE string VALUE 'c:pageMargins', lc_xml_node_pagesetup TYPE string VALUE 'c:pageSetup'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. DATA lo_element TYPE REF TO if_ixml_element. DATA lo_element2 TYPE REF TO if_ixml_element. DATA lo_element3 TYPE REF TO if_ixml_element. DATA lo_el_rootchart TYPE REF TO if_ixml_element. DATA lo_element4 TYPE REF TO if_ixml_element. DATA lo_element5 TYPE REF TO if_ixml_element. DATA lo_element6 TYPE REF TO if_ixml_element. DATA lo_element7 TYPE REF TO if_ixml_element. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). *********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_chartspace parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns:c' value = lc_xml_node_ns_c ). lo_element_root->set_attribute_ns( name = 'xmlns:a' value = lc_xml_node_ns_a ). lo_element_root->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_ns_r ). ********************************************************************** * STEP 4: Create chart DATA lo_chartb TYPE REF TO zcl_excel_graph_bars. DATA lo_chartp TYPE REF TO zcl_excel_graph_pie. DATA lo_chartl TYPE REF TO zcl_excel_graph_line. DATA lo_chart TYPE REF TO zcl_excel_graph. DATA ls_serie TYPE zcl_excel_graph=>s_series. DATA ls_ax TYPE zcl_excel_graph_bars=>s_ax. DATA lv_str TYPE string. "Identify chart type CASE io_drawing->graph_type. WHEN zcl_excel_drawing=>c_graph_bars. lo_chartb ?= io_drawing->graph. WHEN zcl_excel_drawing=>c_graph_pie. lo_chartp ?= io_drawing->graph. WHEN zcl_excel_drawing=>c_graph_line. lo_chartl ?= io_drawing->graph. WHEN OTHERS. ENDCASE. lo_chart = io_drawing->graph. lo_element = lo_document->create_simple_element( name = lc_xml_node_date1904 parent = lo_element_root ). lo_element->set_attribute_ns( name = 'val' value = lo_chart->ns_1904val ). lo_element = lo_document->create_simple_element( name = lc_xml_node_lang parent = lo_element_root ). lo_element->set_attribute_ns( name = 'val' value = lo_chart->ns_langval ). lo_element = lo_document->create_simple_element( name = lc_xml_node_roundedcorners parent = lo_element_root ). lo_element->set_attribute_ns( name = 'val' value = lo_chart->ns_roundedcornersval ). lo_element = lo_document->create_simple_element( name = lc_xml_node_altcont parent = lo_element_root ). lo_element->set_attribute_ns( name = 'xmlns:mc' value = lc_xml_node_altcont_ns_mc ). "Choice lo_element2 = lo_document->create_simple_element( name = lc_xml_node_choice parent = lo_element ). lo_element2->set_attribute_ns( name = 'Requires' value = lc_xml_node_choice_ns_requires ). lo_element2->set_attribute_ns( name = 'xmlns:c14' value = lc_xml_node_choice_ns_c14 ). "C14:style lo_element3 = lo_document->create_simple_element( name = lc_xml_node_style parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chart->ns_c14styleval ). "Fallback lo_element2 = lo_document->create_simple_element( name = lc_xml_node_fallback parent = lo_element ). "C:style lo_element3 = lo_document->create_simple_element( name = lc_xml_node_style2 parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chart->ns_styleval ). "---------------------------CHART lo_element = lo_document->create_simple_element( name = lc_xml_node_chart parent = lo_element_root ). "Added IF lo_chart->title IS NOT INITIAL. lo_element2 = lo_document->create_simple_element( name = 'c:title' parent = lo_element ). lo_element3 = lo_document->create_simple_element( name = 'c:tx' parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = 'c:rich' parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = 'a:bodyPr' parent = lo_element4 ). lo_element5 = lo_document->create_simple_element( name = 'a:lstStyle' parent = lo_element4 ). lo_element5 = lo_document->create_simple_element( name = 'a:p' parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = 'a:pPr' parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = 'a:defRPr' parent = lo_element6 ). lo_element6 = lo_document->create_simple_element( name = 'a:r' parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = 'a:rPr' parent = lo_element6 ). lo_element7->set_attribute_ns( name = 'lang' value = 'en-US' ). lo_element7 = lo_document->create_simple_element( name = 'a:t' parent = lo_element6 ). lo_element7->set_value( value = lo_chart->title ). ENDIF. "End lo_element2 = lo_document->create_simple_element( name = lc_xml_node_autotitledeleted parent = lo_element ). lo_element2->set_attribute_ns( name = 'val' value = lo_chart->ns_autotitledeletedval ). "plotArea lo_element2 = lo_document->create_simple_element( name = lc_xml_node_plotarea parent = lo_element ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout parent = lo_element2 ). CASE io_drawing->graph_type. WHEN zcl_excel_drawing=>c_graph_bars. "----bar lo_element3 = lo_document->create_simple_element( name = lc_xml_node_barchart parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_bardir parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartb->ns_bardirval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_grouping parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartb->ns_groupingval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartb->ns_varycolorsval ). "series LOOP AT lo_chartb->series INTO ls_serie. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx parent = lo_element4 ). IF ls_serie-idx IS NOT INITIAL. lv_str = ls_serie-idx. ELSE. lv_str = sy-tabix - 1. ENDIF. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order parent = lo_element4 ). lv_str = ls_serie-order. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). IF ls_serie-sername IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v parent = lo_element5 ). lo_element6->set_value( value = ls_serie-sername ). ENDIF. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_invertifnegative parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_serie-invertifnegative ). IF ls_serie-lbl IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-lbl ). ENDIF. IF ls_serie-ref IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-ref ). ENDIF. ENDLOOP. "endseries IF lo_chartb->ns_groupingval = zcl_excel_graph_bars=>c_groupingval_stacked. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_overlap parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = '100' ). ENDIF. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showlegendkeyval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showvalval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showcatnameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showsernameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showpercentval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartb->ns_showbubblesizeval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_gapwidth parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartb->ns_gapwidthval ). "axes lo_el_rootchart = lo_element3. LOOP AT lo_chartb->axes INTO ls_ax. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_el_rootchart ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). CASE ls_ax-type. WHEN zcl_excel_graph_bars=>c_catax. lo_element3 = lo_document->create_simple_element( name = lc_xml_node_catax parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_ax-orientation ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-delete ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'formatCode' value = ls_ax-formatcode ). lo_element4->set_attribute_ns( name = 'sourceLinked' value = ls_ax-sourcelinked ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-majortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-minortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-ticklblpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossax ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crosses ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_auto parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-auto ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lblalgn parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-lblalgn ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lbloffset parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-lbloffset ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_nomultilvllbl parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-nomultilvllbl ). WHEN zcl_excel_graph_bars=>c_valax. lo_element3 = lo_document->create_simple_element( name = lc_xml_node_valax parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_ax-orientation ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-delete ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majorgridlines parent = lo_element3 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'formatCode' value = ls_ax-formatcode ). lo_element4->set_attribute_ns( name = 'sourceLinked' value = ls_ax-sourcelinked ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-majortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-minortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-ticklblpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossax ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crosses ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossbetween parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossbetween ). WHEN OTHERS. ENDCASE. ENDLOOP. "endaxes WHEN zcl_excel_drawing=>c_graph_pie. "----pie lo_element3 = lo_document->create_simple_element( name = lc_xml_node_piechart parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartp->ns_varycolorsval ). "series LOOP AT lo_chartp->series INTO ls_serie. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx parent = lo_element4 ). IF ls_serie-idx IS NOT INITIAL. lv_str = ls_serie-idx. ELSE. lv_str = sy-tabix - 1. ENDIF. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order parent = lo_element4 ). lv_str = ls_serie-order. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). IF ls_serie-sername IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v parent = lo_element5 ). lo_element6->set_value( value = ls_serie-sername ). ENDIF. IF ls_serie-lbl IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-lbl ). ENDIF. IF ls_serie-ref IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-ref ). ENDIF. ENDLOOP. "endseries lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showlegendkeyval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showvalval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showcatnameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showsernameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showpercentval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showbubblesizeval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showleaderlines parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartp->ns_showleaderlinesval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_firstsliceang parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartp->ns_firstsliceangval ). WHEN zcl_excel_drawing=>c_graph_line. "----line lo_element3 = lo_document->create_simple_element( name = lc_xml_node_linechart parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_grouping parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartl->ns_groupingval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartl->ns_varycolorsval ). "series LOOP AT lo_chartl->series INTO ls_serie. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx parent = lo_element4 ). IF ls_serie-idx IS NOT INITIAL. lv_str = ls_serie-idx. ELSE. lv_str = sy-tabix - 1. ENDIF. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order parent = lo_element4 ). lv_str = ls_serie-order. CONDENSE lv_str. lo_element5->set_attribute_ns( name = 'val' value = lv_str ). IF ls_serie-sername IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v parent = lo_element5 ). lo_element6->set_value( value = ls_serie-sername ). ENDIF. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_marker parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_symbol parent = lo_element5 ). lo_element6->set_attribute_ns( name = 'val' value = ls_serie-symbol ). IF ls_serie-lbl IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-lbl ). ENDIF. IF ls_serie-ref IS NOT INITIAL. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val parent = lo_element4 ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref parent = lo_element5 ). lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f parent = lo_element6 ). lo_element7->set_value( value = ls_serie-ref ). ENDIF. lo_element5 = lo_document->create_simple_element( name = lc_xml_node_smooth parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_serie-smooth ). ENDLOOP. "endseries lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showlegendkeyval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showvalval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showcatnameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showsernameval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showpercentval ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = lo_chartl->ns_showbubblesizeval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_marker parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartl->ns_markerval ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_smooth parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = lo_chartl->ns_smoothval ). "axes lo_el_rootchart = lo_element3. LOOP AT lo_chartl->axes INTO ls_ax. lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_el_rootchart ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). CASE ls_ax-type. WHEN zcl_excel_graph_line=>c_catax. lo_element3 = lo_document->create_simple_element( name = lc_xml_node_catax parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_ax-orientation ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-delete ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axpos ). * lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt * parent = lo_element3 ). * lo_element4->set_attribute_ns( name = 'formatCode' * value = ls_ax-formatcode ). * lo_element4->set_attribute_ns( name = 'sourceLinked' * value = ls_ax-sourcelinked ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-majortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-minortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-ticklblpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossax ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crosses ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_auto parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-auto ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lblalgn parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-lblalgn ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lbloffset parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-lbloffset ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_nomultilvllbl parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-nomultilvllbl ). WHEN zcl_excel_graph_line=>c_valax. lo_element3 = lo_document->create_simple_element( name = lc_xml_node_valax parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axid ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'val' value = ls_ax-orientation ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-delete ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-axpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majorgridlines parent = lo_element3 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'formatCode' value = ls_ax-formatcode ). lo_element4->set_attribute_ns( name = 'sourceLinked' value = ls_ax-sourcelinked ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-majortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-minortickmark ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-ticklblpos ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossax ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crosses ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossbetween parent = lo_element3 ). lo_element4->set_attribute_ns( name = 'val' value = ls_ax-crossbetween ). WHEN OTHERS. ENDCASE. ENDLOOP. "endaxes WHEN OTHERS. ENDCASE. "legend IF lo_chart->print_label EQ abap_true. lo_element2 = lo_document->create_simple_element( name = lc_xml_node_legend parent = lo_element ). CASE io_drawing->graph_type. WHEN zcl_excel_drawing=>c_graph_bars. "----bar lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartb->ns_legendposval ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout parent = lo_element2 ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartb->ns_overlayval ). WHEN zcl_excel_drawing=>c_graph_line. "----line lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartl->ns_legendposval ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout parent = lo_element2 ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartl->ns_overlayval ). WHEN zcl_excel_drawing=>c_graph_pie. "----pie lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartp->ns_legendposval ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout parent = lo_element2 ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay parent = lo_element2 ). lo_element3->set_attribute_ns( name = 'val' value = lo_chartp->ns_overlayval ). lo_element3 = lo_document->create_simple_element( name = lc_xml_node_txpr parent = lo_element2 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_bodypr parent = lo_element3 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lststyle parent = lo_element3 ). lo_element4 = lo_document->create_simple_element( name = lc_xml_node_p parent = lo_element3 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_ppr parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'rtl' value = lo_chartp->ns_pprrtl ). lo_element6 = lo_document->create_simple_element( name = lc_xml_node_defrpr parent = lo_element5 ). lo_element5 = lo_document->create_simple_element( name = lc_xml_node_endpararpr parent = lo_element4 ). lo_element5->set_attribute_ns( name = 'lang' value = lo_chartp->ns_endpararprlang ). WHEN OTHERS. ENDCASE. ENDIF. lo_element2 = lo_document->create_simple_element( name = lc_xml_node_plotvisonly parent = lo_element ). lo_element2->set_attribute_ns( name = 'val' value = lo_chart->ns_plotvisonlyval ). lo_element2 = lo_document->create_simple_element( name = lc_xml_node_dispblanksas parent = lo_element ). lo_element2->set_attribute_ns( name = 'val' value = lo_chart->ns_dispblanksasval ). lo_element2 = lo_document->create_simple_element( name = lc_xml_node_showdlblsovermax parent = lo_element ). lo_element2->set_attribute_ns( name = 'val' value = lo_chart->ns_showdlblsovermaxval ). "---------------------------END OF CHART "printSettings lo_element = lo_document->create_simple_element( name = lc_xml_node_printsettings parent = lo_element_root ). "headerFooter lo_element2 = lo_document->create_simple_element( name = lc_xml_node_headerfooter parent = lo_element ). "pageMargins lo_element2 = lo_document->create_simple_element( name = lc_xml_node_pagemargins parent = lo_element ). lo_element2->set_attribute_ns( name = 'b' value = lo_chart->pagemargins-b ). lo_element2->set_attribute_ns( name = 'l' value = lo_chart->pagemargins-l ). lo_element2->set_attribute_ns( name = 'r' value = lo_chart->pagemargins-r ). lo_element2->set_attribute_ns( name = 't' value = lo_chart->pagemargins-t ). lo_element2->set_attribute_ns( name = 'header' value = lo_chart->pagemargins-header ). lo_element2->set_attribute_ns( name = 'footer' value = lo_chart->pagemargins-footer ). "pageSetup lo_element2 = lo_document->create_simple_element( name = lc_xml_node_pagesetup parent = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. method CREATE_XL_DRAWINGS. ** Constant node name CONSTANTS: lc_xml_node_wsdr TYPE string VALUE 'xdr:wsDr', lc_xml_node_ns_xdr TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing', lc_xml_node_ns_a TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/main'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element_cellanchor TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_drawings TYPE REF TO zcl_excel_drawings, lo_drawing TYPE REF TO zcl_excel_drawing. DATA: lv_rel_id TYPE i. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). *********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_wsdr parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns:xdr' value = lc_xml_node_ns_xdr ). lo_element_root->set_attribute_ns( name = 'xmlns:a' value = lc_xml_node_ns_a ). ********************************************************************** * STEP 4: Create drawings CLEAR: lv_rel_id. lo_drawings = io_worksheet->get_drawings( ). lo_iterator = lo_drawings->get_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). ADD 1 TO lv_rel_id. lo_element_cellanchor = me->create_xl_drawing_anchor( io_drawing = lo_drawing io_document = lo_document ip_index = lv_rel_id ). lo_element_root->append_child( new_child = lo_element_cellanchor ). ENDWHILE. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. method CREATE_XL_DRAWINGS_RELS. ** Constant node name DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'Id', lc_xml_attr_type TYPE string VALUE 'Type', lc_xml_attr_target TYPE string VALUE 'Target', " Node namespace lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', lc_xml_node_rid_image_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image', lc_xml_node_rid_chart_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_drawings TYPE REF TO zcl_excel_drawings, lo_drawing TYPE REF TO zcl_excel_drawing. DATA: lv_value TYPE string, lv_counter TYPE i. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_rels_ns ). ********************************************************************** * STEP 4: Create subnodes " Add sheet Relationship nodes here lv_counter = 0. lo_drawings = io_worksheet->get_drawings( ). lo_iterator = lo_drawings->get_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_drawing ?= lo_iterator->if_object_collection_iterator~get_next( ). ADD 1 TO lv_counter. lv_value = lv_counter. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). lv_value = lo_drawing->get_media_name( ). CASE lo_drawing->get_type( ). WHEN zcl_excel_drawing=>type_image. CONCATENATE '../media/' lv_value INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_image_tp ). WHEN zcl_excel_drawing=>type_chart. CONCATENATE '../charts/' lv_value INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_chart_tp ). ENDCASE. lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. method CREATE_XL_DRAWING_ANCHOR. ** Constant node name CONSTANTS: lc_xml_node_onecellanchor TYPE string VALUE 'xdr:oneCellAnchor', lc_xml_node_twocellanchor TYPE string VALUE 'xdr:twoCellAnchor', lc_xml_node_from TYPE string VALUE 'xdr:from', lc_xml_node_to TYPE string VALUE 'xdr:to', lc_xml_node_pic TYPE string VALUE 'xdr:pic', lc_xml_node_ext TYPE string VALUE 'xdr:ext', lc_xml_node_clientdata TYPE string VALUE 'xdr:clientData', lc_xml_node_col TYPE string VALUE 'xdr:col', lc_xml_node_coloff TYPE string VALUE 'xdr:colOff', lc_xml_node_row TYPE string VALUE 'xdr:row', lc_xml_node_rowoff TYPE string VALUE 'xdr:rowOff', lc_xml_node_nvpicpr TYPE string VALUE 'xdr:nvPicPr', lc_xml_node_cnvpr TYPE string VALUE 'xdr:cNvPr', lc_xml_node_cnvpicpr TYPE string VALUE 'xdr:cNvPicPr', lc_xml_node_piclocks TYPE string VALUE 'a:picLocks', lc_xml_node_sppr TYPE string VALUE 'xdr:spPr', lc_xml_node_apgeom TYPE string VALUE 'a:prstGeom', lc_xml_node_aavlst TYPE string VALUE 'a:avLst', lc_xml_node_graphicframe TYPE string VALUE 'xdr:graphicFrame', lc_xml_node_nvgraphicframepr TYPE string VALUE 'xdr:nvGraphicFramePr', lc_xml_node_cnvgraphicframepr TYPE string VALUE 'xdr:cNvGraphicFramePr', lc_xml_node_graphicframelocks TYPE string VALUE 'a:graphicFrameLocks', lc_xml_node_xfrm TYPE string VALUE 'xdr:xfrm', lc_xml_node_aoff TYPE string VALUE 'a:off', lc_xml_node_aext TYPE string VALUE 'a:ext', lc_xml_node_agraphic TYPE string VALUE 'a:graphic', lc_xml_node_agraphicdata TYPE string VALUE 'a:graphicData', lc_xml_node_ns_c TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/chart', lc_xml_node_cchart TYPE string VALUE 'c:chart', lc_xml_node_blipfill TYPE string VALUE 'xdr:blipFill', lc_xml_node_ablip TYPE string VALUE 'a:blip', lc_xml_node_astretch TYPE string VALUE 'a:stretch', lc_xml_node_ns_r TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'. DATA: lo_element_graphicframe TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_element2 TYPE REF TO if_ixml_element, lo_element3 TYPE REF TO if_ixml_element, lo_element_from TYPE REF TO if_ixml_element, lo_element_to TYPE REF TO if_ixml_element, lo_element_ext TYPE REF TO if_ixml_element, lo_element_pic TYPE REF TO if_ixml_element, lo_element_clientdata TYPE REF TO if_ixml_element, ls_position TYPE zexcel_drawing_position, lv_col TYPE string, " zexcel_cell_column, lv_row TYPE string, " zexcel_cell_row. lv_col_offset TYPE string, lv_row_offset TYPE string, lv_value TYPE string. ls_position = io_drawing->get_position( ). IF ls_position-anchor = 'ONE'. ep_anchor = io_document->create_simple_element( name = lc_xml_node_onecellanchor parent = io_document ). ELSE. ep_anchor = io_document->create_simple_element( name = lc_xml_node_twocellanchor parent = io_document ). ENDIF. * from cell ****************************** lo_element_from = io_document->create_simple_element( name = lc_xml_node_from parent = io_document ). lv_col = ls_position-from-col. lv_row = ls_position-from-row. lv_col_offset = ls_position-from-col_offset. lv_row_offset = ls_position-from-row_offset. CONDENSE lv_col NO-GAPS. CONDENSE lv_row NO-GAPS. CONDENSE lv_col_offset NO-GAPS. CONDENSE lv_row_offset NO-GAPS. lo_element = io_document->create_simple_element( name = lc_xml_node_col parent = io_document ). lo_element->set_value( value = lv_col ). lo_element_from->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_coloff parent = io_document ). lo_element->set_value( value = lv_col_offset ). lo_element_from->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_row parent = io_document ). lo_element->set_value( value = lv_row ). lo_element_from->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_rowoff parent = io_document ). lo_element->set_value( value = lv_row_offset ). lo_element_from->append_child( new_child = lo_element ). ep_anchor->append_child( new_child = lo_element_from ). IF ls_position-anchor = 'ONE'. * ext ****************************** lo_element_ext = io_document->create_simple_element( name = lc_xml_node_ext parent = io_document ). lv_value = io_drawing->get_width_emu_str( ). lo_element_ext->set_attribute_ns( name = 'cx' value = lv_value ). lv_value = io_drawing->get_height_emu_str( ). lo_element_ext->set_attribute_ns( name = 'cy' value = lv_value ). ep_anchor->append_child( new_child = lo_element_ext ). ELSEIF ls_position-anchor = 'TWO'. * to cell ****************************** lo_element_to = io_document->create_simple_element( name = lc_xml_node_to parent = io_document ). lv_col = ls_position-to-col. lv_row = ls_position-to-row. lv_col_offset = ls_position-to-col_offset. lv_row_offset = ls_position-to-row_offset. CONDENSE lv_col NO-GAPS. CONDENSE lv_row NO-GAPS. CONDENSE lv_col_offset NO-GAPS. CONDENSE lv_row_offset NO-GAPS. lo_element = io_document->create_simple_element( name = lc_xml_node_col parent = io_document ). lo_element->set_value( value = lv_col ). lo_element_to->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_coloff parent = io_document ). lo_element->set_value( value = lv_col_offset ). lo_element_to->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_row parent = io_document ). lo_element->set_value( value = lv_row ). lo_element_to->append_child( new_child = lo_element ). lo_element = io_document->create_simple_element( name = lc_xml_node_rowoff parent = io_document ). lo_element->set_value( value = lv_row_offset ). lo_element_to->append_child( new_child = lo_element ). ep_anchor->append_child( new_child = lo_element_to ). ENDIF. CASE io_drawing->get_type( ). WHEN zcl_excel_drawing=>type_image. * pic ********************************** lo_element_pic = io_document->create_simple_element( name = lc_xml_node_pic parent = io_document ). * nvPicPr lo_element = io_document->create_simple_element( name = lc_xml_node_nvpicpr parent = io_document ). * cNvPr lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpr parent = io_document ). lv_value = sy-index. CONDENSE lv_value. lo_element2->set_attribute_ns( name = 'id' value = lv_value ). lo_element2->set_attribute_ns( name = 'name' value = io_drawing->title ). lo_element->append_child( new_child = lo_element2 ). * cNvPicPr lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpicpr parent = io_document ). * picLocks lo_element3 = io_document->create_simple_element( name = lc_xml_node_piclocks parent = io_document ). lo_element3->set_attribute_ns( name = 'noChangeAspect' value = '1' ). lo_element2->append_child( new_child = lo_element3 ). lo_element->append_child( new_child = lo_element2 ). lo_element_pic->append_child( new_child = lo_element ). * blipFill lv_value = ip_index. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element = io_document->create_simple_element( name = lc_xml_node_blipfill parent = io_document ). lo_element2 = io_document->create_simple_element( name = lc_xml_node_ablip parent = io_document ). lo_element2->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_ns_r ). lo_element2->set_attribute_ns( name = 'r:embed' value = lv_value ). lo_element->append_child( new_child = lo_element2 ). lo_element2 = io_document->create_simple_element( name = lc_xml_node_astretch parent = io_document ). lo_element->append_child( new_child = lo_element2 ). lo_element_pic->append_child( new_child = lo_element ). * spPr lo_element = io_document->create_simple_element( name = lc_xml_node_sppr parent = io_document ). lo_element2 = io_document->create_simple_element( name = lc_xml_node_apgeom parent = io_document ). lo_element2->set_attribute_ns( name = 'prst' value = 'rect' ). lo_element3 = io_document->create_simple_element( name = lc_xml_node_aavlst parent = io_document ). lo_element2->append_child( new_child = lo_element3 ). lo_element->append_child( new_child = lo_element2 ). lo_element_pic->append_child( new_child = lo_element ). ep_anchor->append_child( new_child = lo_element_pic ). WHEN zcl_excel_drawing=>type_chart. * graphicFrame ********************************** lo_element_graphicframe = io_document->create_simple_element( name = lc_xml_node_graphicframe parent = io_document ). * nvGraphicFramePr lo_element = io_document->create_simple_element( name = lc_xml_node_nvgraphicframepr parent = io_document ). * cNvPr lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpr parent = io_document ). lv_value = sy-index. CONDENSE lv_value. lo_element2->set_attribute_ns( name = 'id' value = lv_value ). lo_element2->set_attribute_ns( name = 'name' value = io_drawing->title ). lo_element->append_child( new_child = lo_element2 ). * cNvGraphicFramePr lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvgraphicframepr parent = io_document ). lo_element3 = io_document->create_simple_element( name = lc_xml_node_graphicframelocks parent = io_document ). lo_element2->append_child( new_child = lo_element3 ). lo_element->append_child( new_child = lo_element2 ). lo_element_graphicframe->append_child( new_child = lo_element ). * xfrm lo_element = io_document->create_simple_element( name = lc_xml_node_xfrm parent = io_document ). * off lo_element2 = io_document->create_simple_element( name = lc_xml_node_aoff parent = io_document ). lo_element2->set_attribute_ns( name = 'y' value = '0' ). lo_element2->set_attribute_ns( name = 'x' value = '0' ). lo_element->append_child( new_child = lo_element2 ). * ext lo_element2 = io_document->create_simple_element( name = lc_xml_node_aext parent = io_document ). lo_element2->set_attribute_ns( name = 'cy' value = '0' ). lo_element2->set_attribute_ns( name = 'cx' value = '0' ). lo_element->append_child( new_child = lo_element2 ). lo_element_graphicframe->append_child( new_child = lo_element ). * graphic lo_element = io_document->create_simple_element( name = lc_xml_node_agraphic parent = io_document ). * graphicData lo_element2 = io_document->create_simple_element( name = lc_xml_node_agraphicdata parent = io_document ). lo_element2->set_attribute_ns( name = 'uri' value = lc_xml_node_ns_c ). * chart lo_element3 = io_document->create_simple_element( name = lc_xml_node_cchart parent = io_document ). lo_element3->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_ns_r ). lo_element3->set_attribute_ns( name = 'xmlns:c' value = lc_xml_node_ns_c ). lv_value = ip_index. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element3->set_attribute_ns( name = 'r:id' value = lv_value ). lo_element2->append_child( new_child = lo_element3 ). lo_element->append_child( new_child = lo_element2 ). lo_element_graphicframe->append_child( new_child = lo_element ). ep_anchor->append_child( new_child = lo_element_graphicframe ). ENDCASE. * client data *************************** lo_element_clientdata = io_document->create_simple_element( name = lc_xml_node_clientdata parent = io_document ). ep_anchor->append_child( new_child = lo_element_clientdata ). endmethod. method CREATE_XL_RELATIONSHIPS. ** Constant node name DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'Id', lc_xml_attr_type TYPE string VALUE 'Type', lc_xml_attr_target TYPE string VALUE 'Target', " Node namespace lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', " Node id lc_xml_node_ridx_id TYPE string VALUE 'rId#', " Node type lc_xml_node_rid_sheet_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet', lc_xml_node_rid_theme_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme', lc_xml_node_rid_styles_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles', lc_xml_node_rid_shared_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings', " Node target lc_xml_node_ridx_tg TYPE string VALUE 'worksheets/sheet#.xml', lc_xml_node_rid_shared_tg TYPE string VALUE 'sharedStrings.xml', lc_xml_node_rid_styles_tg TYPE string VALUE 'styles.xml', lc_xml_node_rid_theme_tg TYPE string VALUE 'theme/theme1.xml'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. DATA: lv_xml_node_ridx_tg TYPE string, lv_xml_node_ridx_id TYPE string, lv_size TYPE i, lv_syindex(3) TYPE c. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_rels_ns ). ********************************************************************** * STEP 4: Create subnodes lv_size = excel->get_worksheets_size( ). " Relationship node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lv_size = lv_size + 1. lv_syindex = lv_size. shift lv_syindex RIGHT DELETING TRAILING space. shift lv_syindex left DELETING leading space. lv_xml_node_ridx_id = lc_xml_node_ridx_id. replace all occurrences of '#' in lv_xml_node_ridx_id with lv_syindex. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_xml_node_ridx_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_theme_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rid_theme_tg ). lo_element_root->append_child( new_child = lo_element ). " Relationship node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lv_size = lv_size + 1. lv_syindex = lv_size. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. lv_xml_node_ridx_id = lc_xml_node_ridx_id. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_xml_node_ridx_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_styles_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rid_styles_tg ). lo_element_root->append_child( new_child = lo_element ). lv_size = excel->get_worksheets_size( ). DO lv_size TIMES. " Relationship node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lv_xml_node_ridx_id = lc_xml_node_ridx_id. lv_xml_node_ridx_tg = lc_xml_node_ridx_tg. lv_syindex = sy-index. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_tg WITH lv_syindex. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_xml_node_ridx_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_sheet_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_xml_node_ridx_tg ). lo_element_root->append_child( new_child = lo_element ). ENDDO. " Relationship node lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). ADD 3 TO lv_size. lv_syindex = lv_size. SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. lv_xml_node_ridx_id = lc_xml_node_ridx_id. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_xml_node_ridx_id ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_shared_tp ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lc_xml_node_rid_shared_tg ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). endmethod. METHOD create_xl_sharedstrings. ** Constant node name DATA: lc_xml_node_sst TYPE string VALUE 'sst', lc_xml_node_si TYPE string VALUE 'si', lc_xml_node_t TYPE string VALUE 't', " Node attributes lc_xml_attr_count TYPE string VALUE 'count', lc_xml_attr_uniquecount TYPE string VALUE 'uniqueCount', " Node namespace lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_sub_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: lt_cell_data TYPE zexcel_t_cell_data_unsorted, ls_shared_string TYPE zexcel_s_shared_string, lv_count_str TYPE string, lv_uniquecount_str TYPE string, lv_sytabix TYPE sytabix, lv_count TYPE i, lv_uniquecount TYPE i. FIELD-SYMBOLS: <fs_sheet_content> TYPE zexcel_s_cell_data, <fs_sheet_string> TYPE zexcel_s_shared_string. ********************************************************************** * STEP 1: Collect strings from each worksheet lo_iterator = excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). APPEND LINES OF lo_worksheet->sheet_content TO lt_cell_data. ENDWHILE. DELETE lt_cell_data WHERE cell_formula IS NOT INITIAL. " delete formula content DESCRIBE TABLE lt_cell_data LINES lv_count. MOVE lv_count TO lv_count_str. SHIFT lv_count_str RIGHT DELETING TRAILING space. SHIFT lv_count_str LEFT DELETING LEADING space. SORT lt_cell_data BY cell_value data_type. DELETE ADJACENT DUPLICATES FROM lt_cell_data COMPARING cell_value data_type. DESCRIBE TABLE lt_cell_data LINES lv_uniquecount. MOVE lv_uniquecount TO lv_uniquecount_str. SHIFT lv_uniquecount_str RIGHT DELETING TRAILING space. SHIFT lv_uniquecount_str LEFT DELETING LEADING space. clear lv_count. LOOP AT lt_cell_data ASSIGNING <fs_sheet_content> where data_type = 's'. * lv_sytabix = sy-tabix - 1. lv_sytabix = lv_count. MOVE lv_sytabix TO ls_shared_string-string_no. MOVE <fs_sheet_content>-cell_value TO ls_shared_string-string_value. MOVE <fs_sheet_content>-data_type TO ls_shared_string-string_type. APPEND ls_shared_string TO shared_strings. add 1 to lv_count. ENDLOOP. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node lo_element_root = lo_document->create_simple_element( name = lc_xml_node_sst parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_ns ). lo_element_root->set_attribute_ns( name = lc_xml_attr_count value = lv_count_str ). lo_element_root->set_attribute_ns( name = lc_xml_attr_uniquecount value = lv_uniquecount_str ). ********************************************************************** * STEP 4: Create subnode LOOP AT shared_strings ASSIGNING <fs_sheet_string>. lo_element = lo_document->create_simple_element( name = lc_xml_node_si parent = lo_document ). lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_t parent = lo_document ). * if <fs_sheet_string>-string_type EQ 's_leading_blanks'. IF <fs_sheet_string>-string_value IS NOT INITIAL AND <fs_sheet_string>-string_value(1) EQ ` `. lo_sub_element->set_attribute( name = 'space' namespace = 'xml' value = 'preserve' ). ENDIF. lo_sub_element->set_value( value = <fs_sheet_string>-string_value ). lo_element->append_child( new_child = lo_sub_element ). lo_element_root->append_child( new_child = lo_element ). ENDLOOP. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. METHOD create_xl_sheet. *--------------------------------------------------------------------* * issue #330 - Adding ColorScale conditional formatting * - Ivan Femia, 2014-08-25 *--------------------------------------------------------------------* TYPES: BEGIN OF colors, colorrgb TYPE zexcel_color, END OF colors. *--------------------------------------------------------------------* * issue #237 - Error writing column-style * - Stefan Schmoecker, 2012-11-01 *--------------------------------------------------------------------* TYPES: BEGIN OF cfvo, value TYPE zexcel_conditional_value, type TYPE zexcel_conditional_type, END OF cfvo. *--------------------------------------------------------------------* * issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 1 - start *--------------------------------------------------------------------* TYPES: BEGIN OF lty_table_area, left TYPE i, right TYPE i, top TYPE i, bottom TYPE i, END OF lty_table_area. *--------------------------------------------------------------------* * issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 1 - end *--------------------------------------------------------------------* ** Constant node name DATA: lc_xml_node_worksheet TYPE string VALUE 'worksheet', lc_xml_node_sheetpr TYPE string VALUE 'sheetPr', lc_xml_node_tabcolor TYPE string VALUE 'tabColor', lc_xml_node_outlinepr TYPE string VALUE 'outlinePr', lc_xml_node_dimension TYPE string VALUE 'dimension', lc_xml_node_sheetviews TYPE string VALUE 'sheetViews', lc_xml_node_sheetview TYPE string VALUE 'sheetView', lc_xml_node_selection TYPE string VALUE 'selection', lc_xml_node_pane TYPE string VALUE 'pane', lc_xml_node_sheetformatpr TYPE string VALUE 'sheetFormatPr', lc_xml_node_cols TYPE string VALUE 'cols', lc_xml_node_col TYPE string VALUE 'col', lc_xml_node_sheetprotection TYPE string VALUE 'sheetProtection', lc_xml_node_pagemargins TYPE string VALUE 'pageMargins', lc_xml_node_pagesetup TYPE string VALUE 'pageSetup', lc_xml_node_pagesetuppr TYPE string VALUE 'pageSetUpPr', lc_xml_node_condformatting TYPE string VALUE 'conditionalFormatting', lc_xml_node_cfrule TYPE string VALUE 'cfRule', lc_xml_node_color TYPE string VALUE 'color', " Databar by Albert Lladanosa lc_xml_node_databar TYPE string VALUE 'dataBar', " Databar by Albert Lladanosa lc_xml_node_colorscale TYPE string VALUE 'colorScale', lc_xml_node_iconset TYPE string VALUE 'iconSet', lc_xml_node_cfvo TYPE string VALUE 'cfvo', lc_xml_node_formula TYPE string VALUE 'formula', lc_xml_node_datavalidations TYPE string VALUE 'dataValidations', lc_xml_node_datavalidation TYPE string VALUE 'dataValidation', lc_xml_node_formula1 TYPE string VALUE 'formula1', lc_xml_node_formula2 TYPE string VALUE 'formula2', lc_xml_node_mergecell TYPE string VALUE 'mergeCell', lc_xml_node_mergecells TYPE string VALUE 'mergeCells', lc_xml_node_drawing TYPE string VALUE 'drawing', lc_xml_node_headerfooter TYPE string VALUE 'headerFooter', lc_xml_node_oddheader TYPE string VALUE 'oddHeader', lc_xml_node_oddfooter TYPE string VALUE 'oddFooter', lc_xml_node_evenheader TYPE string VALUE 'evenHeader', lc_xml_node_evenfooter TYPE string VALUE 'evenFooter', lc_xml_node_autofilter TYPE string VALUE 'autoFilter', lc_xml_node_filtercolumn TYPE string VALUE 'filterColumn', lc_xml_node_filters TYPE string VALUE 'filters', lc_xml_node_filter TYPE string VALUE 'filter', " Node attributes lc_xml_attr_ref TYPE string VALUE 'ref', lc_xml_attr_summarybelow TYPE string VALUE 'summaryBelow', lc_xml_attr_summaryright TYPE string VALUE 'summaryRight', lc_xml_attr_tabselected TYPE string VALUE 'tabSelected', lc_xml_attr_showzeros TYPE string VALUE 'showZeros', lc_xml_attr_zoomscale TYPE string VALUE 'zoomScale', lc_xml_attr_zoomscalenormal TYPE string VALUE 'zoomScaleNormal', lc_xml_attr_zoomscalepageview TYPE string VALUE 'zoomScalePageLayoutView', lc_xml_attr_zoomscalesheetview TYPE string VALUE 'zoomScaleSheetLayoutView', lc_xml_attr_workbookviewid TYPE string VALUE 'workbookViewId', lc_xml_attr_showgridlines TYPE string VALUE 'showGridLines', lc_xml_attr_gridlines TYPE string VALUE 'gridLines', lc_xml_attr_showrowcolheaders TYPE string VALUE 'showRowColHeaders', lc_xml_attr_activecell TYPE string VALUE 'activeCell', lc_xml_attr_sqref TYPE string VALUE 'sqref', lc_xml_attr_min TYPE string VALUE 'min', lc_xml_attr_max TYPE string VALUE 'max', lc_xml_attr_hidden TYPE string VALUE 'hidden', lc_xml_attr_width TYPE string VALUE 'width', lc_xml_attr_defaultwidth TYPE string VALUE '9.10', lc_xml_attr_style TYPE string VALUE 'style', lc_xml_attr_true TYPE string VALUE 'true', lc_xml_attr_bestfit TYPE string VALUE 'bestFit', lc_xml_attr_customheight TYPE string VALUE 'customHeight', lc_xml_attr_customwidth TYPE string VALUE 'customWidth', lc_xml_attr_collapsed TYPE string VALUE 'collapsed', lc_xml_attr_defaultrowheight TYPE string VALUE 'defaultRowHeight', lc_xml_attr_defaultcolwidth TYPE string VALUE 'defaultColWidth', lc_xml_attr_outlinelevelrow TYPE string VALUE 'x14ac:outlineLevelRow', lc_xml_attr_outlinelevelcol TYPE string VALUE 'x14ac:outlineLevelCol', lc_xml_attr_outlinelevel TYPE string VALUE 'outlineLevel', lc_xml_attr_password TYPE string VALUE 'password', lc_xml_attr_sheet TYPE string VALUE 'sheet', lc_xml_attr_objects TYPE string VALUE 'objects', lc_xml_attr_scenarios TYPE string VALUE 'scenarios', lc_xml_attr_autofilter TYPE string VALUE 'autoFilter', lc_xml_attr_deletecolumns TYPE string VALUE 'deleteColumns', lc_xml_attr_deleterows TYPE string VALUE 'deleteRows', lc_xml_attr_formatcells TYPE string VALUE 'formatCells', lc_xml_attr_formatcolumns TYPE string VALUE 'formatColumns', lc_xml_attr_formatrows TYPE string VALUE 'formatRows', lc_xml_attr_insertcolumns TYPE string VALUE 'insertColumns', lc_xml_attr_inserthyperlinks TYPE string VALUE 'insertHyperlinks', lc_xml_attr_insertrows TYPE string VALUE 'insertRows', lc_xml_attr_pivottables TYPE string VALUE 'pivotTables', lc_xml_attr_selectlockedcells TYPE string VALUE 'selectLockedCells', lc_xml_attr_selectunlockedcell TYPE string VALUE 'selectUnlockedCells', lc_xml_attr_sort TYPE string VALUE 'sort', lc_xml_attr_left TYPE string VALUE 'left', lc_xml_attr_right TYPE string VALUE 'right', lc_xml_attr_top TYPE string VALUE 'top', lc_xml_attr_bottom TYPE string VALUE 'bottom', lc_xml_attr_header TYPE string VALUE 'header', lc_xml_attr_footer TYPE string VALUE 'footer', lc_xml_attr_type TYPE string VALUE 'type', lc_xml_attr_iconset TYPE string VALUE 'iconSet', lc_xml_attr_showvalue TYPE string VALUE 'showValue', lc_xml_attr_val TYPE string VALUE 'val', lc_xml_attr_dxfid TYPE string VALUE 'dxfId', lc_xml_attr_priority TYPE string VALUE 'priority', lc_xml_attr_operator TYPE string VALUE 'operator', lc_xml_attr_allowblank TYPE string VALUE 'allowBlank', lc_xml_attr_showinputmessage TYPE string VALUE 'showInputMessage', lc_xml_attr_showerrormessage TYPE string VALUE 'showErrorMessage', lc_xml_attr_showdropdown TYPE string VALUE 'showDropDown', lc_xml_attr_errortitle TYPE string VALUE 'errorTitle', lc_xml_attr_error TYPE string VALUE 'error', lc_xml_attr_prompttitle TYPE string VALUE 'promptTitle', lc_xml_attr_prompt TYPE string VALUE 'prompt', lc_xml_attr_count TYPE string VALUE 'count', lc_xml_attr_blackandwhite TYPE string VALUE 'blackAndWhite', lc_xml_attr_cellcomments TYPE string VALUE 'cellComments', lc_xml_attr_copies TYPE string VALUE 'copies', lc_xml_attr_draft TYPE string VALUE 'draft', lc_xml_attr_errors TYPE string VALUE 'errors', lc_xml_attr_firstpagenumber TYPE string VALUE 'firstPageNumber', lc_xml_attr_fittopage TYPE string VALUE 'fitToPage', lc_xml_attr_fittoheight TYPE string VALUE 'fitToHeight', lc_xml_attr_fittowidth TYPE string VALUE 'fitToWidth', lc_xml_attr_horizontaldpi TYPE string VALUE 'horizontalDpi', lc_xml_attr_orientation TYPE string VALUE 'orientation', lc_xml_attr_pageorder TYPE string VALUE 'pageOrder', lc_xml_attr_paperheight TYPE string VALUE 'paperHeight', lc_xml_attr_papersize TYPE string VALUE 'paperSize', lc_xml_attr_paperwidth TYPE string VALUE 'paperWidth', lc_xml_attr_scale TYPE string VALUE 'scale', lc_xml_attr_usefirstpagenumber TYPE string VALUE 'useFirstPageNumber', lc_xml_attr_useprinterdefaults TYPE string VALUE 'usePrinterDefaults', lc_xml_attr_verticaldpi TYPE string VALUE 'verticalDpi', lc_xml_attr_differentoddeven TYPE string VALUE 'differentOddEven', lc_xml_attr_colid TYPE string VALUE 'colId', lc_xml_attr_filtermode TYPE string VALUE 'filterMode', lc_xml_attr_tabcolor_rgb TYPE string VALUE 'rgb', " Node namespace lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', lc_xml_node_r_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', lc_xml_node_comp_ns TYPE string VALUE 'http://schemas.openxmlformats.org/markup-compatibility/2006', lc_xml_node_comp_pref TYPE string VALUE 'x14ac', lc_xml_node_ig_ns TYPE string VALUE 'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_element_2 TYPE REF TO if_ixml_element, lo_element_3 TYPE REF TO if_ixml_element, lo_element_4 TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_style_cond TYPE REF TO zcl_excel_style_cond, lo_data_validation TYPE REF TO zcl_excel_data_validation, lo_table TYPE REF TO zcl_excel_table, lo_column_default TYPE REF TO zcl_excel_column, lo_row_default TYPE REF TO zcl_excel_row. DATA: lv_value TYPE string, lt_range_merge TYPE string_table, lv_column TYPE zexcel_cell_column, lv_style_guid TYPE zexcel_cell_style, ls_databar TYPE zexcel_conditional_databar, " Databar by Albert Lladanosa ls_colorscale TYPE zexcel_conditional_colorscale, ls_iconset TYPE zexcel_conditional_iconset, ls_cellis TYPE zexcel_conditional_cellis, ls_expression TYPE zexcel_conditional_expression, ls_conditional_top10 TYPE zexcel_conditional_top10, ls_conditional_above_avg TYPE zexcel_conditional_above_avg, lt_cfvo TYPE TABLE OF cfvo, ls_cfvo TYPE cfvo, lt_colors TYPE TABLE OF colors, ls_colors TYPE colors, lv_cell_row_s TYPE string, ls_style_mapping TYPE zexcel_s_styles_mapping, lv_freeze_cell_row TYPE zexcel_cell_row, lv_freeze_cell_column TYPE zexcel_cell_column, lv_freeze_cell_column_alpha TYPE zexcel_cell_column_alpha, lo_column_iterator TYPE REF TO cl_object_collection_iterator, lo_column TYPE REF TO zcl_excel_column, lo_row_iterator TYPE REF TO cl_object_collection_iterator, ls_style_cond_mapping TYPE zexcel_s_styles_cond_mapping, lv_relation_id TYPE i VALUE 0, outline_level_col TYPE i VALUE 0, lts_row_outlines TYPE zcl_excel_worksheet=>mty_ts_outlines_row, merge_count TYPE int4, lt_values TYPE zexcel_t_autofilter_values, ls_values TYPE zexcel_s_autofilter_values, lo_autofilters TYPE REF TO zcl_excel_autofilters, lo_autofilter TYPE REF TO zcl_excel_autofilter, lv_ref TYPE string. FIELD-SYMBOLS: <ls_sheet_content> TYPE zexcel_s_cell_data, <fs_range_merge> LIKE LINE OF lt_range_merge, <ls_row_outline> LIKE LINE OF lts_row_outlines. *--------------------------------------------------------------------* * issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 2 - start *--------------------------------------------------------------------* DATA: lt_table_areas TYPE SORTED TABLE OF lty_table_area WITH NON-UNIQUE KEY left right top bottom. *--------------------------------------------------------------------* * issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 2 - end *--------------------------------------------------------------------* ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). *********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_worksheet parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_r_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:mc' value = lc_xml_node_comp_ns ). lo_element_root->set_attribute_ns( name = 'mc:Ignorable' value = lc_xml_node_comp_pref ). lo_element_root->set_attribute_ns( name = 'xmlns:x14ac' value = lc_xml_node_ig_ns ). ********************************************************************** * STEP 4: Create subnodes " sheetPr lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetpr parent = lo_document ). " TODO tabColor IF io_worksheet->tabcolor IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_tabcolor parent = lo_element ). * Theme not supported yet - start with RGB lv_value = io_worksheet->tabcolor-rgb. lo_element_2->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb value = lv_value ). ENDIF. " outlinePr lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_outlinepr parent = lo_document ). lv_value = io_worksheet->zif_excel_sheet_properties~summarybelow. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_summarybelow value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_properties~summaryright. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_summaryright value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). IF io_worksheet->sheet_setup->fit_to_page IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_pagesetuppr parent = lo_document ). lo_element_2->set_attribute_ns( name = lc_xml_attr_fittopage value = `1` ). lo_element->append_child( new_child = lo_element_2 ). " pageSetupPr node ENDIF. lo_element_root->append_child( new_child = lo_element ). " dimension node lo_element = lo_document->create_simple_element( name = lc_xml_node_dimension parent = lo_document ). lv_value = io_worksheet->get_dimension_range( ). lo_element->set_attribute_ns( name = lc_xml_attr_ref value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " sheetViews node lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetviews parent = lo_document ). " sheetView node lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_sheetview parent = lo_document ). IF io_worksheet->zif_excel_sheet_properties~show_zeros EQ abap_false. lo_element_2->set_attribute_ns( name = lc_xml_attr_showzeros value = '0' ). ENDIF. IF iv_active = abap_true OR io_worksheet->zif_excel_sheet_properties~selected EQ abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_tabselected value = '1' ). ELSE. lo_element_2->set_attribute_ns( name = lc_xml_attr_tabselected value = '0' ). ENDIF. " Zoom scale IF io_worksheet->zif_excel_sheet_properties~zoomscale GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale = 10. ENDIF. lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscale value = lv_value ). IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_normal LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 10. ENDIF. lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_normal. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalenormal value = lv_value ). ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 10. ENDIF. lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalepageview value = lv_value ). ENDIF. IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview NE 0. IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview GT 400. io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 400. ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview LT 10. io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 10. ENDIF. lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalesheetview value = lv_value ). ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_workbookviewid value = '0' ). " showGridLines attribute IF io_worksheet->show_gridlines = abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_showgridlines value = '1' ). ELSE. lo_element_2->set_attribute_ns( name = lc_xml_attr_showgridlines value = '0' ). ENDIF. " showRowColHeaders attribute IF io_worksheet->show_rowcolheaders = abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_showrowcolheaders value = '1' ). ELSE. lo_element_2->set_attribute_ns( name = lc_xml_attr_showrowcolheaders value = '0' ). ENDIF. " freeze panes io_worksheet->get_freeze_cell( IMPORTING ep_row = lv_freeze_cell_row ep_column = lv_freeze_cell_column ). IF lv_freeze_cell_row IS NOT INITIAL AND lv_freeze_cell_column IS NOT INITIAL. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_pane parent = lo_element_2 ). IF lv_freeze_cell_row > 1. lv_value = lv_freeze_cell_row - 1. CONDENSE lv_value. lo_element_3->set_attribute_ns( name = 'ySplit' value = lv_value ). ENDIF. IF lv_freeze_cell_column > 1. lv_value = lv_freeze_cell_column - 1. CONDENSE lv_value. lo_element_3->set_attribute_ns( name = 'xSplit' value = lv_value ). ENDIF. lv_freeze_cell_column_alpha = zcl_excel_common=>convert_column2alpha( ip_column = lv_freeze_cell_column ). lv_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_freeze_cell_row ). CONCATENATE lv_freeze_cell_column_alpha lv_value INTO lv_value. lo_element_3->set_attribute_ns( name = 'topLeftCell' value = lv_value ). lo_element_3->set_attribute_ns( name = 'activePane' value = 'bottomRight' ). lo_element_3->set_attribute_ns( name = 'state' value = 'frozen' ). lo_element_2->append_child( new_child = lo_element_3 ). ENDIF. " selection node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_selection parent = lo_document ). lv_value = io_worksheet->get_active_cell( ). lo_element_3->set_attribute_ns( name = lc_xml_attr_activecell value = lv_value ). lo_element_3->set_attribute_ns( name = lc_xml_attr_sqref value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " sheetView node lo_element->append_child( new_child = lo_element_2 ). " sheetView node lo_element_root->append_child( new_child = lo_element ). " sheetViews node lo_column_iterator = io_worksheet->get_columns_iterator( ). lo_row_iterator = io_worksheet->get_rows_iterator( ). " Calculate col IF NOT lo_column_iterator IS BOUND. io_worksheet->calculate_column_widths( ). lo_column_iterator = io_worksheet->get_columns_iterator( ). ENDIF. " sheetFormatPr node lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetformatpr parent = lo_document ). " defaultRowHeight lo_row_default = io_worksheet->get_default_row( ). IF lo_row_default IS BOUND. IF lo_row_default->get_row_height( ) >= 0. lo_element->set_attribute_ns( name = lc_xml_attr_customheight value = lc_xml_attr_true ). lv_value = lo_row_default->get_row_height( ). ELSE. lv_value = '12.75'. ENDIF. ELSE. lv_value = '12.75'. ENDIF. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_defaultrowheight value = lv_value ). " defaultColWidth lo_column_default = io_worksheet->get_default_column( ). IF lo_column_default IS BOUND AND lo_column_default->get_width( ) >= 0. lv_value = lo_column_default->get_width( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_defaultcolwidth value = lv_value ). ENDIF. " outlineLevelCol WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). IF lo_column->get_outline_level( ) > outline_level_col. outline_level_col = lo_column->get_outline_level( ). ENDIF. ENDWHILE. lv_value = outline_level_col. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_outlinelevelcol value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " sheetFormatPr node * Reset column iterator lo_column_iterator = io_worksheet->get_columns_iterator( ). IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL OR lo_column_iterator->has_next( ) = abap_true. " cols node lo_element = lo_document->create_simple_element( name = lc_xml_node_cols parent = lo_document ). " This code have to be enhanced in order to manage also column style properties " Now it is an out/out IF lo_column_iterator->has_next( ) = abap_true. WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). " col node lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col parent = lo_document ). lv_value = lo_column->get_column_index( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_min value = lv_value ). lo_element_2->set_attribute_ns( name = lc_xml_attr_max value = lv_value ). " Width IF lo_column->get_width( ) < 0. lo_element_2->set_attribute_ns( name = lc_xml_attr_width value = lc_xml_attr_defaultwidth ). ELSE. lv_value = lo_column->get_width( ). lo_element_2->set_attribute_ns( name = lc_xml_attr_width value = lv_value ). ENDIF. " Column visibility IF lo_column->get_visible( ) = abap_false. lo_element_2->set_attribute_ns( name = lc_xml_attr_hidden value = lc_xml_attr_true ). ENDIF. " Auto size? IF lo_column->get_auto_size( ) = abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_bestfit value = lc_xml_attr_true ). ENDIF. " Custom width? IF lo_column_default IS BOUND. IF lo_column->get_width( ) <> lo_column_default->get_width( ). lo_element_2->set_attribute_ns( name = lc_xml_attr_customwidth value = lc_xml_attr_true ). ENDIF. ELSE. lo_element_2->set_attribute_ns( name = lc_xml_attr_customwidth value = lc_xml_attr_true ). ENDIF. " Collapsed IF lo_column->get_collapsed( ) = abap_true. lo_element_2->set_attribute_ns( name = lc_xml_attr_collapsed value = lc_xml_attr_true ). ENDIF. " outlineLevel IF lo_column->get_outline_level( ) > 0. lv_value = lo_column->get_outline_level( ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_outlinelevel value = lv_value ). ENDIF. " Style lv_style_guid = lo_column->get_column_style_guid( ). "ins issue #157 - set column style CLEAR ls_style_mapping. READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid. IF sy-subrc = 0. "ins issue #295 lv_value = ls_style_mapping-style. "ins issue #295 SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. "ins issue #237 lo_element->append_child( new_child = lo_element_2 ). " col node ENDWHILE. * ELSE. "del issue #157 - set sheet style ( add missing columns * IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL. "del issue #157 - set sheet style ( add missing columns * Begin of insertion issue #157 - set sheet style ( add missing columns ENDIF. * Always pass through this coding IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL. DATA: lts_sorted_columns TYPE SORTED TABLE OF zexcel_cell_column WITH UNIQUE KEY table_line. TYPES: BEGIN OF ty_missing_columns, first_column TYPE zexcel_cell_column, last_column TYPE zexcel_cell_column, END OF ty_missing_columns. DATA: t_missing_columns TYPE STANDARD TABLE OF ty_missing_columns WITH NON-UNIQUE DEFAULT KEY, missing_column LIKE LINE OF t_missing_columns. * First collect columns that were already handled before. The rest has to be inserted now lo_column_iterator = io_worksheet->get_columns_iterator( ). WHILE lo_column_iterator->has_next( ) = abap_true. lo_column ?= lo_column_iterator->get_next( ). lv_column = zcl_excel_common=>convert_column2int( lo_column->get_column_index( ) ). INSERT lv_column INTO TABLE lts_sorted_columns. ENDWHILE. * Now find all columns that were missing so far missing_column-first_column = 1. LOOP AT lts_sorted_columns INTO lv_column. IF lv_column > missing_column-first_column. missing_column-last_column = lv_column - 1. APPEND missing_column TO t_missing_columns. ENDIF. missing_column-first_column = lv_column + 1. ENDLOOP. missing_column-last_column = zcl_excel_common=>c_excel_sheet_max_col. APPEND missing_column TO t_missing_columns. * Now apply stylesetting ( and other defaults - I copy it from above. Whoever programmed that seems to know what to do :o) LOOP AT t_missing_columns INTO missing_column. * End of insertion issue #157 - set column style lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col parent = lo_document ). * lv_value = zcl_excel_common=>c_excel_sheet_min_col."del issue #157 - set sheet style ( add missing columns lv_value = missing_column-first_column. "ins issue #157 - set sheet style ( add missing columns CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_min value = lv_value ). * lv_value = zcl_excel_common=>c_excel_sheet_max_col."del issue #157 - set sheet style ( add missing columns lv_value = missing_column-last_column. "ins issue #157 - set sheet style ( add missing columns CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_max value = lv_value ). lo_element_2->set_attribute_ns( name = lc_xml_attr_width value = lc_xml_attr_defaultwidth ). lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ). READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid. lv_value = ls_style_mapping-style. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). " col node ENDLOOP. "ins issue #157 - set sheet style ( add missing columns ENDIF. *--------------------------------------------------------------------* * issue #367 add feature hide columns from *--------------------------------------------------------------------* IF io_worksheet->zif_excel_sheet_properties~hide_columns_from IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col parent = lo_document ). lv_value = zcl_excel_common=>convert_column2int( io_worksheet->zif_excel_sheet_properties~hide_columns_from ). CONDENSE lv_value NO-GAPS. lo_element_2->set_attribute_ns( name = lc_xml_attr_min value = lv_value ). lo_element_2->set_attribute_ns( name = lc_xml_attr_max value = '16384' ). lo_element_2->set_attribute_ns( name = lc_xml_attr_hidden value = '1' ). lo_element->append_child( new_child = lo_element_2 ). " col node ENDIF. lo_element_root->append_child( new_child = lo_element ). " cols node ENDIF. *--------------------------------------------------------------------* * Sheet content - use own method to create this *--------------------------------------------------------------------* lo_element = create_xl_sheet_sheet_data( io_worksheet = io_worksheet io_document = lo_document ) . lo_autofilters = excel->get_autofilters_reference( ). lo_autofilter = lo_autofilters->get( io_worksheet = io_worksheet ) . lo_element_root->append_child( new_child = lo_element ). " sheetData node IF lo_autofilter IS BOUND. * Create node autofilter lo_element = lo_document->create_simple_element( name = lc_xml_node_autofilter parent = lo_document ). lv_ref = lo_autofilter->get_filter_range( ) . CONDENSE lv_ref NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_ref value = lv_ref ). lt_values = lo_autofilter->get_values( ) . IF lt_values IS NOT INITIAL. * If we filter we need to set the filter mode to 1. lo_element_2 = lo_document->find_from_name( name = lc_xml_node_sheetpr ). lo_element_2->set_attribute_ns( name = lc_xml_attr_filtermode value = '1' ). * Create node filtercolumn CLEAR lv_column. LOOP AT lt_values INTO ls_values. IF ls_values-column <> lv_column. IF lv_column IS NOT INITIAL. lo_element_2->append_child( new_child = lo_element_3 ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_filtercolumn parent = lo_element ). lv_column = ls_values-column - lo_autofilter->filter_area-col_start. lv_value = lv_column. CONDENSE lv_value NO-GAPS. lo_element_2->set_attribute_ns( name = lc_xml_attr_colid value = lv_value ). lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_filters parent = lo_element_2 ). lv_column = ls_values-column. ENDIF. lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_filter parent = lo_element_3 ). lo_element_4->set_attribute_ns( name = lc_xml_attr_val value = ls_values-value ). lo_element_3->append_child( new_child = lo_element_4 ). " value node ENDLOOP. lo_element_2->append_child( new_child = lo_element_3 ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. lo_element_root->append_child( new_child = lo_element ). ENDIF. IF io_worksheet->zif_excel_sheet_protection~protected EQ abap_true. " sheetProtection node lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetprotection parent = lo_document ). MOVE io_worksheet->zif_excel_sheet_protection~password TO lv_value. IF lv_value IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_password value = lv_value ). ENDIF. lv_value = io_worksheet->zif_excel_sheet_protection~auto_filter. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_autofilter value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~delete_columns. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_deletecolumns value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~delete_rows. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_deleterows value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~format_cells. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_formatcells value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~format_columns. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_formatcolumns value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~format_rows. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_formatrows value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~insert_columns. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_insertcolumns value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~insert_hyperlinks. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_inserthyperlinks value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~insert_rows. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_insertrows value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~objects. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_objects value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~pivot_tables. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_pivottables value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~scenarios. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_scenarios value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~select_locked_cells. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_selectlockedcells value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~select_unlocked_cells. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_selectunlockedcell value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~sheet. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_sheet value = lv_value ). lv_value = io_worksheet->zif_excel_sheet_protection~sort. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_sort value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. " Merged cells lt_range_merge = io_worksheet->get_merge( ). IF lt_range_merge IS NOT INITIAL. lo_element = lo_document->create_simple_element( name = lc_xml_node_mergecells parent = lo_document ). DESCRIBE TABLE lt_range_merge LINES merge_count. lv_value = merge_count. CONDENSE lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). LOOP AT lt_range_merge ASSIGNING <fs_range_merge>. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_mergecell parent = lo_document ). lo_element_2->set_attribute_ns( name = lc_xml_attr_ref value = <fs_range_merge> ). lo_element->append_child( new_child = lo_element_2 ). lo_element_root->append_child( new_child = lo_element ). io_worksheet->delete_merge( ). ENDLOOP. ENDIF. " Conditional formatting node lo_iterator = io_worksheet->get_style_cond_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_style_cond ?= lo_iterator->if_object_collection_iterator~get_next( ). IF lo_style_cond->rule IS INITIAL. CONTINUE. ENDIF. lo_element = lo_document->create_simple_element( name = lc_xml_node_condformatting parent = lo_document ). lv_value = lo_style_cond->get_dimension_range( ) . lo_element->set_attribute_ns( name = lc_xml_attr_sqref value = lv_value ). " cfRule node lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_cfrule parent = lo_document ). lv_value = lo_style_cond->rule. lo_element_2->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). lv_value = lo_style_cond->priority. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_priority value = lv_value ). CASE lo_style_cond->rule. " Start >> Databar by Albert Lladanosa WHEN zcl_excel_style_cond=>c_rule_databar. ls_databar = lo_style_cond->mode_databar. CLEAR lt_cfvo. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_databar parent = lo_document ). MOVE ls_databar-cfvo1_value TO ls_cfvo-value. MOVE ls_databar-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_databar-cfvo2_value TO ls_cfvo-value. MOVE ls_databar-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. LOOP AT lt_cfvo INTO ls_cfvo. " cfvo node lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo parent = lo_document ). lv_value = ls_cfvo-type. lo_element_4->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). lv_value = ls_cfvo-value. lo_element_4->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node ENDLOOP. lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_color parent = lo_document ). lv_value = ls_databar-colorrgb. lo_element_4->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " color node lo_element_2->append_child( new_child = lo_element_3 ). " databar node " End << Databar by Albert Lladanosa WHEN zcl_excel_style_cond=>c_rule_colorscale. ls_colorscale = lo_style_cond->mode_colorscale. CLEAR: lt_cfvo, lt_colors. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_colorscale parent = lo_document ). MOVE ls_colorscale-cfvo1_value TO ls_cfvo-value. MOVE ls_colorscale-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_colorscale-cfvo2_value TO ls_cfvo-value. MOVE ls_colorscale-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_colorscale-cfvo3_value TO ls_cfvo-value. MOVE ls_colorscale-cfvo3_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. APPEND ls_colorscale-colorrgb1 TO lt_colors. APPEND ls_colorscale-colorrgb2 TO lt_colors. APPEND ls_colorscale-colorrgb3 TO lt_colors. LOOP AT lt_cfvo INTO ls_cfvo. IF ls_cfvo IS INITIAL. CONTINUE. ENDIF. " cfvo node lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo parent = lo_document ). lv_value = ls_cfvo-type. lo_element_4->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). lv_value = ls_cfvo-value. lo_element_4->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node ENDLOOP. LOOP AT lt_colors INTO ls_colors. IF ls_colors IS INITIAL. CONTINUE. ENDIF. lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_color parent = lo_document ). lv_value = ls_colors-colorrgb. lo_element_4->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " color node ENDLOOP. lo_element_2->append_child( new_child = lo_element_3 ). " databar node WHEN zcl_excel_style_cond=>c_rule_iconset. ls_iconset = lo_style_cond->mode_iconset. CLEAR lt_cfvo. " iconset node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_iconset parent = lo_document ). IF ls_iconset-iconset NE zcl_excel_style_cond=>c_iconset_3trafficlights. lv_value = ls_iconset-iconset. lo_element_3->set_attribute_ns( name = lc_xml_attr_iconset value = lv_value ). ENDIF. " Set the showValue attribute lv_value = ls_iconset-showvalue. lo_element_3->set_attribute_ns( name = lc_xml_attr_showvalue value = lv_value ). CASE ls_iconset-iconset. WHEN zcl_excel_style_cond=>c_iconset_3trafficlights2 OR zcl_excel_style_cond=>c_iconset_3arrows OR zcl_excel_style_cond=>c_iconset_3arrowsgray OR zcl_excel_style_cond=>c_iconset_3flags OR zcl_excel_style_cond=>c_iconset_3signs OR zcl_excel_style_cond=>c_iconset_3symbols OR zcl_excel_style_cond=>c_iconset_3symbols2 OR zcl_excel_style_cond=>c_iconset_3trafficlights OR zcl_excel_style_cond=>c_iconset_3trafficlights2. MOVE ls_iconset-cfvo1_value TO ls_cfvo-value. MOVE ls_iconset-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo2_value TO ls_cfvo-value. MOVE ls_iconset-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo3_value TO ls_cfvo-value. MOVE ls_iconset-cfvo3_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. WHEN zcl_excel_style_cond=>c_iconset_4arrows OR zcl_excel_style_cond=>c_iconset_4arrowsgray OR zcl_excel_style_cond=>c_iconset_4rating OR zcl_excel_style_cond=>c_iconset_4redtoblack OR zcl_excel_style_cond=>c_iconset_4trafficlights. MOVE ls_iconset-cfvo1_value TO ls_cfvo-value. MOVE ls_iconset-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo2_value TO ls_cfvo-value. MOVE ls_iconset-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo3_value TO ls_cfvo-value. MOVE ls_iconset-cfvo3_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo4_value TO ls_cfvo-value. MOVE ls_iconset-cfvo4_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. WHEN zcl_excel_style_cond=>c_iconset_5arrows OR zcl_excel_style_cond=>c_iconset_5arrowsgray OR zcl_excel_style_cond=>c_iconset_5quarters OR zcl_excel_style_cond=>c_iconset_5rating. MOVE ls_iconset-cfvo1_value TO ls_cfvo-value. MOVE ls_iconset-cfvo1_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo2_value TO ls_cfvo-value. MOVE ls_iconset-cfvo2_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo3_value TO ls_cfvo-value. MOVE ls_iconset-cfvo3_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo4_value TO ls_cfvo-value. MOVE ls_iconset-cfvo4_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. MOVE ls_iconset-cfvo5_value TO ls_cfvo-value. MOVE ls_iconset-cfvo5_type TO ls_cfvo-type. APPEND ls_cfvo TO lt_cfvo. WHEN OTHERS. CLEAR lt_cfvo. ENDCASE. LOOP AT lt_cfvo INTO ls_cfvo. " cfvo node lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo parent = lo_document ). lv_value = ls_cfvo-type. lo_element_4->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). lv_value = ls_cfvo-value. lo_element_4->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node ENDLOOP. lo_element_2->append_child( new_child = lo_element_3 ). " iconset node WHEN zcl_excel_style_cond=>c_rule_cellis. ls_cellis = lo_style_cond->mode_cellis. READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_cellis-cell_style. lv_value = ls_style_cond_mapping-dxf. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid value = lv_value ). lv_value = ls_cellis-operator. lo_element_2->set_attribute_ns( name = lc_xml_attr_operator value = lv_value ). " formula node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula parent = lo_document ). lv_value = ls_cellis-formula. lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " formula node IF ls_cellis-formula2 IS NOT INITIAL. lv_value = ls_cellis-formula2. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula parent = lo_document ). lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " 2nd formula node ENDIF. WHEN zcl_excel_style_cond=>c_rule_expression. ls_expression = lo_style_cond->mode_expression. READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_expression-cell_style. lv_value = ls_style_cond_mapping-dxf. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid value = lv_value ). " formula node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula parent = lo_document ). lv_value = ls_expression-formula. lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " formula node * begin of ins issue #366 - missing conditional rules: top10 WHEN zcl_excel_style_cond=>c_rule_top10. ls_conditional_top10 = lo_style_cond->mode_top10. READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_conditional_top10-cell_style. lv_value = ls_style_cond_mapping-dxf. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid value = lv_value ). lv_value = ls_conditional_top10-topxx_count. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = 'rank' value = lv_value ). IF ls_conditional_top10-bottom = 'X'. lo_element_2->set_attribute_ns( name = 'bottom' value = '1' ). ENDIF. IF ls_conditional_top10-percent = 'X'. lo_element_2->set_attribute_ns( name = 'percent' value ='1' ). ENDIF. WHEN zcl_excel_style_cond=>c_rule_above_average. ls_conditional_above_avg = lo_style_cond->mode_above_average. READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_conditional_above_avg-cell_style. lv_value = ls_style_cond_mapping-dxf. CONDENSE lv_value. lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid value = lv_value ). IF ls_conditional_above_avg-above_average IS INITIAL. " = below average lo_element_2->set_attribute_ns( name = 'aboveAverage' value = '0' ). ENDIF. IF ls_conditional_above_avg-equal_average = 'X'. " = equal average also lo_element_2->set_attribute_ns( name = 'equalAverage' value = '1' ). ENDIF. IF ls_conditional_above_avg-standard_deviation <> 0. " standard deviation instead of value lv_value = ls_conditional_above_avg-standard_deviation. lo_element_2->set_attribute_ns( name = 'stdDev' value = lv_value ). ENDIF. * end of ins issue #366 - missing conditional rules: top10 ENDCASE. lo_element->append_child( new_child = lo_element_2 ). " cfRule node lo_element_root->append_child( new_child = lo_element ). " Conditional formatting node ENDWHILE. IF io_worksheet->get_data_validations_size( ) GT 0. " dataValidations node lo_element = lo_document->create_simple_element( name = lc_xml_node_datavalidations parent = lo_document ). " Conditional formatting node lo_iterator = io_worksheet->get_data_validations_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_data_validation ?= lo_iterator->if_object_collection_iterator~get_next( ). " dataValidation node lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_datavalidation parent = lo_document ). lv_value = lo_data_validation->type. lo_element_2->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). IF NOT lo_data_validation->operator IS INITIAL. lv_value = lo_data_validation->operator. lo_element_2->set_attribute_ns( name = lc_xml_attr_operator value = lv_value ). ENDIF. IF lo_data_validation->allowblank EQ abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_allowblank value = lv_value ). IF lo_data_validation->showinputmessage EQ abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_showinputmessage value = lv_value ). IF lo_data_validation->showerrormessage EQ abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_showerrormessage value = lv_value ). IF lo_data_validation->showdropdown EQ abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_showdropdown value = lv_value ). IF NOT lo_data_validation->errortitle IS INITIAL. lv_value = lo_data_validation->errortitle. lo_element_2->set_attribute_ns( name = lc_xml_attr_errortitle value = lv_value ). ENDIF. IF NOT lo_data_validation->error IS INITIAL. lv_value = lo_data_validation->error. lo_element_2->set_attribute_ns( name = lc_xml_attr_error value = lv_value ). ENDIF. IF NOT lo_data_validation->prompttitle IS INITIAL. lv_value = lo_data_validation->prompttitle. lo_element_2->set_attribute_ns( name = lc_xml_attr_prompttitle value = lv_value ). ENDIF. IF NOT lo_data_validation->prompt IS INITIAL. lv_value = lo_data_validation->prompt. lo_element_2->set_attribute_ns( name = lc_xml_attr_prompt value = lv_value ). ENDIF. lv_cell_row_s = lo_data_validation->cell_row. CONDENSE lv_cell_row_s. CONCATENATE lo_data_validation->cell_column lv_cell_row_s INTO lv_value. IF lo_data_validation->cell_row_to IS NOT INITIAL. lv_cell_row_s = lo_data_validation->cell_row_to. CONDENSE lv_cell_row_s. CONCATENATE lv_value ':' lo_data_validation->cell_column_to lv_cell_row_s INTO lv_value. ENDIF. lo_element_2->set_attribute_ns( name = lc_xml_attr_sqref value = lv_value ). " formula1 node lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula1 parent = lo_document ). lv_value = lo_data_validation->formula1. lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " formula1 node " formula2 node IF NOT lo_data_validation->formula2 IS INITIAL. lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula2 parent = lo_document ). lv_value = lo_data_validation->formula2. lo_element_3->set_value( value = lv_value ). lo_element_2->append_child( new_child = lo_element_3 ). " formula2 node ENDIF. lo_element->append_child( new_child = lo_element_2 ). " dataValidation node ENDWHILE. lo_element_root->append_child( new_child = lo_element ). " dataValidations node ENDIF. " Hyperlinks DATA: lv_hyperlinks_count TYPE i, lo_link TYPE REF TO zcl_excel_hyperlink. lv_hyperlinks_count = io_worksheet->get_hyperlinks_size( ). IF lv_hyperlinks_count > 0. lo_element = lo_document->create_simple_element( name = 'hyperlinks' parent = lo_document ). lo_iterator = io_worksheet->get_hyperlinks_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_link ?= lo_iterator->if_object_collection_iterator~get_next( ). lo_element_2 = lo_document->create_simple_element( name = 'hyperlink' parent = lo_element ). lv_value = lo_link->get_ref( ). lo_element_2->set_attribute_ns( name = 'ref' value = lv_value ). IF lo_link->is_internal( ) = abap_true. lv_value = lo_link->get_url( ). lo_element_2->set_attribute_ns( name = 'location' value = lv_value ). ELSE. ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element_2->set_attribute_ns( name = 'r:id' value = lv_value ). ENDIF. lo_element->append_child( new_child = lo_element_2 ). ENDWHILE. lo_element_root->append_child( new_child = lo_element ). ENDIF. " PrintOptions IF io_worksheet->print_gridlines = abap_true OR io_worksheet->sheet_setup->vertical_centered = abap_true OR io_worksheet->sheet_setup->horizontal_centered = abap_true. lo_element = lo_document->create_simple_element( name = 'printOptions' parent = lo_document ). IF io_worksheet->print_gridlines = abap_true. lo_element->set_attribute_ns( name = lc_xml_attr_gridlines value = 'true' ). ENDIF. IF io_worksheet->sheet_setup->horizontal_centered = abap_true. lo_element->set_attribute_ns( name = 'horizontalCentered' value = 'true' ). ENDIF. IF io_worksheet->sheet_setup->vertical_centered = abap_true. lo_element->set_attribute_ns( name = 'verticalCentered' value = 'true' ). ENDIF. lo_element_root->append_child( new_child = lo_element ). ENDIF. " pageMargins node lo_element = lo_document->create_simple_element( name = lc_xml_node_pagemargins parent = lo_document ). lv_value = io_worksheet->sheet_setup->margin_left. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_left value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_right. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_right value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_top. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_top value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_bottom. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_bottom value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_header. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_header value = lv_value ). lv_value = io_worksheet->sheet_setup->margin_footer. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_footer value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " pageMargins node * pageSetup node lo_element = lo_document->create_simple_element( name = lc_xml_node_pagesetup parent = lo_document ). IF io_worksheet->sheet_setup->black_and_white IS NOT INITIAL. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_blackandwhite value = `1` ). ENDIF. IF io_worksheet->sheet_setup->cell_comments IS NOT INITIAL. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_cellcomments value = io_worksheet->sheet_setup->cell_comments ). ENDIF. IF io_worksheet->sheet_setup->copies IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->copies. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_copies value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->draft IS NOT INITIAL. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_draft value = `1` ). ENDIF. IF io_worksheet->sheet_setup->errors IS NOT INITIAL. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_errors value = io_worksheet->sheet_setup->errors ). ENDIF. IF io_worksheet->sheet_setup->first_page_number IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->first_page_number. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_firstpagenumber value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->fit_to_page IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->fit_to_height. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_fittoheight value = lv_value ). lv_value = io_worksheet->sheet_setup->fit_to_width. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_fittowidth value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->horizontal_dpi IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->horizontal_dpi. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_horizontaldpi value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->orientation IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->orientation. lo_element->set_attribute_ns( name = lc_xml_attr_orientation value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->page_order IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_pageorder value = io_worksheet->sheet_setup->page_order ). ENDIF. IF io_worksheet->sheet_setup->paper_height IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->paper_height. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_paperheight value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->paper_size IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->paper_size. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_papersize value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->paper_width IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->paper_width. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_paperwidth value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->scale IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->scale. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_scale value = lv_value ). ENDIF. IF io_worksheet->sheet_setup->use_first_page_num IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_usefirstpagenumber value = `1` ). ENDIF. IF io_worksheet->sheet_setup->use_printer_defaults IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_useprinterdefaults value = `1` ). ENDIF. IF io_worksheet->sheet_setup->vertical_dpi IS NOT INITIAL. lv_value = io_worksheet->sheet_setup->vertical_dpi. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_verticaldpi value = lv_value ). ENDIF. lo_element_root->append_child( new_child = lo_element ). " pageSetup node * { headerFooter necessary? > IF io_worksheet->sheet_setup->odd_header IS NOT INITIAL OR io_worksheet->sheet_setup->odd_footer IS NOT INITIAL OR io_worksheet->sheet_setup->diff_oddeven_headerfooter = abap_true. lo_element = lo_document->create_simple_element( name = lc_xml_node_headerfooter parent = lo_document ). " Different header/footer for odd/even pages? IF io_worksheet->sheet_setup->diff_oddeven_headerfooter = abap_true. lo_element->set_attribute_ns( name = lc_xml_attr_differentoddeven value = '1' ). ENDIF. " OddHeader CLEAR: lv_value. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_odd_header = lv_value ) . IF lv_value IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_oddheader parent = lo_document ). lo_element_2->set_value( value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. " OddFooter CLEAR: lv_value. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_odd_footer = lv_value ) . IF lv_value IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_oddfooter parent = lo_document ). lo_element_2->set_value( value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. " evenHeader CLEAR: lv_value. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_even_header = lv_value ) . IF lv_value IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_evenheader parent = lo_document ). lo_element_2->set_value( value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. " evenFooter CLEAR: lv_value. io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_even_footer = lv_value ) . IF lv_value IS NOT INITIAL. lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_evenfooter parent = lo_document ). lo_element_2->set_value( value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDIF. lo_element_root->append_child( new_child = lo_element ). " headerFooter ENDIF. * issue #377 pagebreaks TRY. create_xl_sheet_pagebreaks( io_document = lo_document io_parent = lo_element_root io_worksheet = io_worksheet ) . CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify ENDTRY. * drawing DATA: lo_drawings TYPE REF TO zcl_excel_drawings. lo_drawings = io_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. lo_element = lo_document->create_simple_element( name = lc_xml_node_drawing parent = lo_document ). ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element->set_attribute( name = 'r:id' value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. * tables DATA lv_table_count TYPE i. lv_table_count = io_worksheet->get_tables_size( ). IF lv_table_count > 0. lo_element = lo_document->create_simple_element( name = 'tableParts' parent = lo_document ). lv_value = lv_table_count. CONDENSE lv_value. lo_element->set_attribute_ns( name = 'count' value = lv_value ). lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_iterator->if_object_collection_iterator~get_next( ). ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element_2 = lo_document->create_simple_element( name = 'tablePart' parent = lo_element ). lo_element_2->set_attribute_ns( name = 'r:id' value = lv_value ). lo_element->append_child( new_child = lo_element_2 ). ENDWHILE. lo_element_root->append_child( new_child = lo_element ). ENDIF. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. METHOD create_xl_sheet_pagebreaks. DATA: lo_pagebreaks TYPE REF TO zcl_excel_worksheet_pagebreaks, lt_pagebreaks TYPE zcl_excel_worksheet_pagebreaks=>tt_pagebreak_at, lt_rows TYPE HASHED TABLE OF int4 WITH UNIQUE KEY table_line, lt_columns TYPE HASHED TABLE OF int4 WITH UNIQUE KEY table_line, lo_node_rowbreaks TYPE REF TO if_ixml_element, lo_node_colbreaks TYPE REF TO if_ixml_element, lo_node_break TYPE REF TO if_ixml_element, lv_value TYPE string. FIELD-SYMBOLS: <ls_pagebreak> LIKE LINE OF lt_pagebreaks. lo_pagebreaks = io_worksheet->get_pagebreaks( ). CHECK lo_pagebreaks IS BOUND. lt_pagebreaks = lo_pagebreaks->get_all_pagebreaks( ). CHECK lt_pagebreaks IS NOT INITIAL. " No need to proceed if don't have any pagebreaks. lo_node_rowbreaks = io_document->create_simple_element( name = 'rowBreaks' parent = io_document ). lo_node_colbreaks = io_document->create_simple_element( name = 'colBreaks' parent = io_document ). LOOP AT lt_pagebreaks ASSIGNING <ls_pagebreak>. * Count how many rows and columns need to be broken INSERT <ls_pagebreak>-cell_row INTO TABLE lt_rows. IF sy-subrc = 0. " New lv_value = <ls_pagebreak>-cell_row. CONDENSE lv_value. lo_node_break = io_document->create_simple_element( name = 'brk' parent = io_document ). lo_node_break->set_attribute( name = 'id' value = lv_value ). lo_node_break->set_attribute( name = 'man' value = '1' ). " Manual break lo_node_break->set_attribute( name = 'max' value = '16383' ). " Max columns lo_node_rowbreaks->append_child( new_child = lo_node_break ). ENDIF. INSERT <ls_pagebreak>-cell_column INTO TABLE lt_columns. IF sy-subrc = 0. " New lv_value = <ls_pagebreak>-cell_column. CONDENSE lv_value. lo_node_break = io_document->create_simple_element( name = 'brk' parent = io_document ). lo_node_break->set_attribute( name = 'id' value = lv_value ). lo_node_break->set_attribute( name = 'man' value = '1' ). " Manual break lo_node_break->set_attribute( name = 'max' value = '1048575' ). " Max rows lo_node_colbreaks->append_child( new_child = lo_node_break ). ENDIF. ENDLOOP. lv_value = lines( lt_rows ). CONDENSE lv_value. lo_node_rowbreaks->set_attribute( name = 'count' value = lv_value ). lo_node_rowbreaks->set_attribute( name = 'manualBreakCount' value = lv_value ). lv_value = lines( lt_rows ). CONDENSE lv_value. lo_node_colbreaks->set_attribute( name = 'count' value = lv_value ). lo_node_colbreaks->set_attribute( name = 'manualBreakCount' value = lv_value ). io_parent->append_child( new_child = lo_node_rowbreaks ). io_parent->append_child( new_child = lo_node_colbreaks ). ENDMETHOD. METHOD create_xl_sheet_rels. ** Constant node name DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'Id', lc_xml_attr_type TYPE string VALUE 'Type', lc_xml_attr_target TYPE string VALUE 'Target', lc_xml_attr_target_mode TYPE string VALUE 'TargetMode', lc_xml_val_external TYPE string VALUE 'External', " Node namespace lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships', lc_xml_node_rid_table_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/table', lc_xml_node_rid_printer_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings', lc_xml_node_rid_drawing_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing', lc_xml_node_rid_link_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table, lo_link TYPE REF TO zcl_excel_hyperlink. DATA: lv_value TYPE string, lv_relation_id TYPE i, lv_index_str TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_rels_ns ). ********************************************************************** * STEP 4: Create subnodes " Add sheet Relationship nodes here lv_relation_id = 0. lo_iterator = io_worksheet->get_hyperlinks_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_link ?= lo_iterator->if_object_collection_iterator~get_next( ). CHECK lo_link->is_internal( ) = abap_false. " issue #340 - don't put internal links here ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_link_tp ). lv_value = lo_link->get_url( ). lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_target_mode value = lc_xml_val_external ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. * drawing DATA: lo_drawings TYPE REF TO zcl_excel_drawings. lo_drawings = io_worksheet->get_drawings( ). IF lo_drawings->is_empty( ) = abap_false. lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_drawing_tp ). lv_index_str = iv_drawing_index. CONDENSE lv_index_str NO-GAPS. MOVE me->c_xl_drawings TO lv_value. REPLACE 'xl' WITH '..' INTO lv_value. REPLACE '#' WITH lv_index_str INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_iterator->if_object_collection_iterator~get_next( ). ADD 1 TO lv_relation_id. lv_value = lv_relation_id. CONDENSE lv_value. CONCATENATE 'rId' lv_value INTO lv_value. lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). lo_element->set_attribute_ns( name = lc_xml_attr_type value = lc_xml_node_rid_table_tp ). lv_value = lo_table->get_name( ). CONCATENATE '../tables/' lv_value '.xml' INTO lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_target value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDWHILE. * IF io_worksheet->get_print_settings( )->is_empty( ) = abap_false. * ADD 1 TO lv_relation_id. * lv_value = lv_relation_id. * CONDENSE lv_value. * CONCATENATE 'rId' lv_value INTO lv_value. * * lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship * parent = lo_document ). * lo_element->set_attribute_ns( name = lc_xml_attr_id * value = lv_value ). * lo_element->set_attribute_ns( name = lc_xml_attr_type * value = lc_xml_node_rid_printer_tp ). * * lv_index_str = iv_printer_index. * CONDENSE lv_index_str NO-GAPS. * MOVE me->c_xl_printersettings TO lv_value. * REPLACE 'xl' WITH '..' INTO lv_value. * REPLACE '#' WITH lv_index_str INTO lv_value. * lo_element->set_attribute_ns( name = lc_xml_attr_target * value = lv_value ). * * lo_element_root->append_child( new_child = lo_element ). * ENDIF. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. METHOD create_xl_sheet_sheet_data. TYPES: BEGIN OF lty_table_area, left TYPE i, right TYPE i, top TYPE i, bottom TYPE i, END OF lty_table_area. CONSTANTS: lc_dummy_cell_content TYPE zexcel_s_cell_data-cell_value VALUE '})~~~ This is a dummy value for ABAP2XLSX and you should never find this in a real excelsheet Ihope'. CONSTANTS: lc_xml_node_sheetdata TYPE string VALUE 'sheetData', " SheetData tag lc_xml_node_row TYPE string VALUE 'row', " Row tag lc_xml_attr_r TYPE string VALUE 'r', " Cell: row-attribute lc_xml_attr_spans TYPE string VALUE 'spans', " Cell: spans-attribute lc_xml_node_c TYPE string VALUE 'c', " Cell tag lc_xml_node_v TYPE string VALUE 'v', " Cell: value lc_xml_node_f TYPE string VALUE 'f', " Cell: formula lc_xml_attr_s TYPE string VALUE 's', " Cell: style lc_xml_attr_t TYPE string VALUE 't'. " Cell: type DATA: col_count TYPE int4, lo_autofilters TYPE REF TO zcl_excel_autofilters, lo_autofilter TYPE REF TO zcl_excel_autofilter, l_autofilter_hidden TYPE flag, lt_values TYPE zexcel_t_autofilter_values, ls_values TYPE zexcel_s_autofilter_values, ls_area TYPE zexcel_s_autofilter_area, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_table TYPE REF TO zcl_excel_table, lt_table_areas TYPE SORTED TABLE OF lty_table_area WITH NON-UNIQUE KEY left right top bottom, ls_table_area LIKE LINE OF lt_table_areas, lo_column TYPE REF TO zcl_excel_column, ls_sheet_content LIKE LINE OF io_worksheet->sheet_content, ls_sheet_content_empty LIKE LINE OF io_worksheet->sheet_content, lv_current_row TYPE i, lv_next_row TYPE i, lv_last_row TYPE i, * lts_row_dimensions TYPE zexcel_t_worksheet_rowdimensio, lo_row_iterator TYPE REF TO cl_object_collection_iterator, lo_row TYPE REF TO zcl_excel_row, lo_row_empty TYPE REF TO zcl_excel_row, lts_row_outlines TYPE zcl_excel_worksheet=>mty_ts_outlines_row, ls_last_row TYPE zexcel_s_cell_data, ls_style_mapping TYPE zexcel_s_styles_mapping, lo_element_2 TYPE REF TO if_ixml_element, lo_element_3 TYPE REF TO if_ixml_element, lo_element_4 TYPE REF TO if_ixml_element, lv_value TYPE string, lv_style_guid TYPE zexcel_cell_style. FIELD-SYMBOLS: <ls_sheet_content> TYPE zexcel_s_cell_data, <ls_row_outline> LIKE LINE OF lts_row_outlines. " sheetData node rv_ixml_sheet_data_root = io_document->create_simple_element( name = lc_xml_node_sheetdata parent = io_document ). me->mv_sheet_data_xstring_dummy = render_ixml_element_no_header( rv_ixml_sheet_data_root ). " Get column count col_count = io_worksheet->get_highest_column( ). " Get autofilter *lv_guid = io_worksheet->get_guid( ) . lo_autofilters = excel->get_autofilters_reference( ). lo_autofilter = lo_autofilters->get( io_worksheet = io_worksheet ) . IF lo_autofilter IS BOUND. lt_values = lo_autofilter->get_values( ) . ls_area = lo_autofilter->get_filter_area( ) . l_autofilter_hidden = abap_true. " First defautl is not showing ENDIF. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 1 - start *--------------------------------------------------------------------* *Build table to hold all table-areas attached to this sheet lo_iterator = io_worksheet->get_tables_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_table ?= lo_iterator->if_object_collection_iterator~get_next( ). ls_table_area-left = zcl_excel_common=>convert_column2int( lo_table->settings-top_left_column ). ls_table_area-right = lo_table->get_right_column_integer( ). ls_table_area-top = lo_table->settings-top_left_row. ls_table_area-bottom = lo_table->get_bottom_row_integer( ). INSERT ls_table_area INTO TABLE lt_table_areas. ENDWHILE. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 1 - end *--------------------------------------------------------------------* *We have problems when the first rows or trailing rows are not set but we have rowinformation *to solve this we add dummycontent into first and last line that will not be set *Set first line if necessary READ TABLE io_worksheet->sheet_content TRANSPORTING NO FIELDS WITH KEY cell_row = 1. IF sy-subrc <> 0. ls_sheet_content_empty-cell_row = 1. ls_sheet_content_empty-cell_column = 1. ls_sheet_content_empty-cell_value = lc_dummy_cell_content. INSERT ls_sheet_content_empty INTO TABLE io_worksheet->sheet_content. ENDIF. *Set last line if necessary *Last row with cell content lv_last_row = io_worksheet->get_highest_row( ). *Last line with row-information set directly ( like line height, hidden-status ... ) lo_row_iterator = io_worksheet->get_rows_iterator( ). WHILE lo_row_iterator->has_next( ) = abap_true. lo_row ?= lo_row_iterator->get_next( ). IF lo_row->get_row_index( ) > lv_last_row. lv_last_row = lo_row->get_row_index( ). ENDIF. ENDWHILE. *Last line with row-information set indirectly by row outline lts_row_outlines = io_worksheet->get_row_outlines( ). LOOP AT lts_row_outlines ASSIGNING <ls_row_outline>. IF <ls_row_outline>-collapsed = 'X'. lv_current_row = <ls_row_outline>-row_to + 1. " collapsed-status may be set on following row ELSE. lv_current_row = <ls_row_outline>-row_to. " collapsed-status may be set on following row ENDIF. IF lv_current_row > lv_last_row. lv_last_row = lv_current_row. ENDIF. ENDLOOP. READ TABLE io_worksheet->sheet_content TRANSPORTING NO FIELDS WITH KEY cell_row = lv_last_row. IF sy-subrc <> 0. ls_sheet_content_empty-cell_row = lv_last_row. ls_sheet_content_empty-cell_column = 1. ls_sheet_content_empty-cell_value = lc_dummy_cell_content. INSERT ls_sheet_content_empty INTO TABLE io_worksheet->sheet_content. ENDIF. CLEAR ls_sheet_content. LOOP AT io_worksheet->sheet_content INTO ls_sheet_content. IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much CLEAR l_autofilter_hidden. ELSE. READ TABLE lt_values INTO ls_values WITH KEY column = ls_last_row-cell_column. IF sy-subrc = 0 AND ls_values-value = ls_last_row-cell_value. CLEAR l_autofilter_hidden. ENDIF. ENDIF. CLEAR ls_style_mapping. *Create row element *issues #346,#154, #195 - problems when we have information in row_dimension but no cell content in that row *Get next line that may have to be added. If we have empty lines this is the next line after previous cell content *Otherwise it is the line of the current cell content lv_current_row = ls_last_row-cell_row + 1. IF lv_current_row > ls_sheet_content-cell_row. lv_current_row = ls_sheet_content-cell_row. ENDIF. *Fill in empty lines if necessary - assign an emtpy sheet content lv_next_row = lv_current_row. WHILE lv_next_row <= ls_sheet_content-cell_row. lv_current_row = lv_next_row. lv_next_row = lv_current_row + 1. IF lv_current_row = ls_sheet_content-cell_row. " cell value found in this row ASSIGN ls_sheet_content TO <ls_sheet_content>. ELSE. *Check if empty row is really necessary - this is basically the case when we have information in row_dimension lo_row_empty = io_worksheet->get_row( lv_current_row ). CHECK lo_row_empty->get_row_height( ) >= 0 OR lo_row_empty->get_collapsed( io_worksheet ) = abap_true OR lo_row_empty->get_outline_level( io_worksheet ) > 0 OR lo_row_empty->get_xf_index( ) <> 0. " Dummyentry A1 ls_sheet_content_empty-cell_row = lv_current_row. ls_sheet_content_empty-cell_column = 1. ASSIGN ls_sheet_content_empty TO <ls_sheet_content>. ENDIF. IF ls_last_row-cell_row NE <ls_sheet_content>-cell_row. IF lo_autofilter IS BOUND. IF ls_area-row_start >= ls_last_row-cell_row OR " One less for header ls_area-row_end < ls_last_row-cell_row . CLEAR l_autofilter_hidden. ENDIF. ELSE. CLEAR l_autofilter_hidden. ENDIF. IF ls_last_row-cell_row IS NOT INITIAL. " Row visibility of previos row. IF lo_row->get_visible( io_worksheet ) = abap_false OR l_autofilter_hidden = abap_true. lo_element_2->set_attribute_ns( name = 'hidden' value = 'true'). ENDIF. * lv_xstring_partial = render_ixml_element_no_header( lo_element_2 ). * CONCATENATE lv_xstring lv_xstring_partial * INTO lv_xstring IN BYTE MODE. rv_ixml_sheet_data_root->append_child( new_child = lo_element_2 ). " row node ENDIF. " Add new row lo_element_2 = io_document->create_simple_element( name = lc_xml_node_row parent = io_document ). " r lv_value = <ls_sheet_content>-cell_row. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_r value = lv_value ). " Spans lv_value = col_count. CONCATENATE '1:' lv_value INTO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = lc_xml_attr_spans value = lv_value ). lo_row = io_worksheet->get_row( <ls_sheet_content>-cell_row ). " Do we need the row dimension attributes? IF lo_row->get_row_height( ) >= 0 OR lo_row->get_collapsed( io_worksheet ) = abap_true OR lo_row->get_outline_level( io_worksheet ) > 0 OR lo_row->get_xf_index( ) <> 0 OR l_autofilter_hidden = abap_true. " Row dimensions IF lo_row->get_row_height( ) >= 0. lo_element_2->set_attribute_ns( name = 'customHeight' value = '1'). lv_value = lo_row->get_row_height( ). lo_element_2->set_attribute_ns( name = 'ht' value = lv_value ). ENDIF. " Collapsed IF lo_row->get_collapsed( io_worksheet ) = abap_true. lo_element_2->set_attribute_ns( name = 'collapsed' value = 'true'). ENDIF. " Outline level IF lo_row->get_outline_level( io_worksheet ) > 0. lv_value = lo_row->get_outline_level( io_worksheet ). SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_2->set_attribute_ns( name = 'outlineLevel' value = lv_value ). ENDIF. " Style IF lo_row->get_xf_index( ) <> 0. lv_value = lo_row->get_xf_index( ). lo_element_2->set_attribute_ns( name = 's' value = lv_value ). lo_element_2->set_attribute_ns( name = 'customFormat' value = '1'). ENDIF. ENDIF. IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much CLEAR l_autofilter_hidden. ELSE. l_autofilter_hidden = abap_true. " First default is not showing ENDIF. ELSE. ENDIF. ENDWHILE. lo_element_3 = io_document->create_simple_element( name = lc_xml_node_c parent = io_document ). lo_element_3->set_attribute_ns( name = lc_xml_attr_r value = <ls_sheet_content>-cell_coords ). *begin of change issue #157 - allow column cellstyle *if no cellstyle is set, look into column, then into sheet IF <ls_sheet_content>-cell_style IS NOT INITIAL. lv_style_guid = <ls_sheet_content>-cell_style. ELSE. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 2 - start *--------------------------------------------------------------------* *Check if cell in any of the table areas LOOP AT lt_table_areas TRANSPORTING NO FIELDS WHERE top <= <ls_sheet_content>-cell_row AND bottom >= <ls_sheet_content>-cell_row AND left <= <ls_sheet_content>-cell_column AND right >= <ls_sheet_content>-cell_column. EXIT. ENDLOOP. IF sy-subrc = 0. CLEAR lv_style_guid. " No style --> EXCEL will use built-in-styles as declared in the tables-section ELSE. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 2 - end *--------------------------------------------------------------------* lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ). lo_column ?= io_worksheet->get_column( <ls_sheet_content>-cell_column ). IF lo_column->get_column_index( ) = <ls_sheet_content>-cell_column. lv_style_guid = lo_column->get_column_style_guid( ). IF lv_style_guid IS INITIAL. lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ). ENDIF. ENDIF. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 3 - start *--------------------------------------------------------------------* ENDIF. *--------------------------------------------------------------------* *issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 3 - end *--------------------------------------------------------------------* ENDIF. * IF <ls_sheet_content>-cell_style IS NOT INITIAL. * READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = <ls_sheet_content>-cell_style. IF lv_style_guid IS NOT INITIAL. READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid. *end of change issue #157 - allow column cellstyles lv_value = ls_style_mapping-style. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_3->set_attribute_ns( name = lc_xml_attr_s value = lv_value ). ENDIF. " For cells with formula ignore the value - Excel will calculate it IF <ls_sheet_content>-cell_formula IS NOT INITIAL. " fomula node lo_element_4 = io_document->create_simple_element( name = lc_xml_node_f parent = io_document ). lv_value = <ls_sheet_content>-cell_formula. CONDENSE lv_value. lo_element_4->set_value( value = lv_value ). lo_element_3->append_child( new_child = lo_element_4 ). " fomula node ELSEIF <ls_sheet_content>-cell_value IS NOT INITIAL "cell can have just style or formula AND <ls_sheet_content>-cell_value <> lc_dummy_cell_content. IF <ls_sheet_content>-data_type IS NOT INITIAL. IF <ls_sheet_content>-data_type EQ 's_leading_blanks'. lo_element_3->set_attribute_ns( name = lc_xml_attr_t value = 's' ). ELSE. lo_element_3->set_attribute_ns( name = lc_xml_attr_t value = <ls_sheet_content>-data_type ). ENDIF. ENDIF. " value node lo_element_4 = io_document->create_simple_element( name = lc_xml_node_v parent = io_document ). IF <ls_sheet_content>-data_type EQ 's' OR <ls_sheet_content>-data_type EQ 's_leading_blanks'. lv_value = me->get_shared_string_index( <ls_sheet_content>-cell_value ). CONDENSE lv_value. lo_element_4->set_value( value = lv_value ). ELSE. lv_value = <ls_sheet_content>-cell_value. CONDENSE lv_value. lo_element_4->set_value( value = lv_value ). ENDIF. lo_element_3->append_child( new_child = lo_element_4 ). " value node ENDIF. lo_element_2->append_child( new_child = lo_element_3 ). " column node ls_last_row = <ls_sheet_content>. ENDLOOP. IF sy-subrc = 0. READ TABLE lt_values INTO ls_values WITH KEY column = ls_last_row-cell_column. IF sy-subrc = 0 AND ls_values-value = ls_last_row-cell_value. CLEAR l_autofilter_hidden. ENDIF. IF lo_autofilter IS BOUND. IF ls_area-row_start >= ls_last_row-cell_row OR " One less for header ls_area-row_end < ls_last_row-cell_row . CLEAR l_autofilter_hidden. ENDIF. ELSE. CLEAR l_autofilter_hidden. ENDIF. " Row visibility of previos row. IF lo_row->get_visible( ) = abap_false OR l_autofilter_hidden = abap_true. lo_element_2->set_attribute_ns( name = 'hidden' value = 'true'). ENDIF. * lv_xstring_partial = render_ixml_element_no_header( lo_element_2 ). * CONCATENATE lv_xstring lv_xstring_partial * INTO lv_xstring IN BYTE MODE. rv_ixml_sheet_data_root->append_child( new_child = lo_element_2 ). " row node ENDIF. DELETE io_worksheet->sheet_content WHERE cell_value = lc_dummy_cell_content. " Get rid of dummyentries * * * me->mv_sheet_data_xstring = render_ixml_element_no_header( rv_ixml_sheet_data_root ). * * ** Für den Dummystringersatz jetzt alles zurück auf Anfang * rv_ixml_sheet_data_root = io_document->create_simple_element( name = lc_xml_node_sheetdata * parent = io_document ). * me->mv_sheet_data_xstring_dummy = render_ixml_element_no_header( rv_ixml_sheet_data_root ). * * DATA: lv_sheetdata_tag_start TYPE xstring, * lv_sheetdata_tag_end TYPE xstring. * * lv_sheetdata_tag_start = cl_bcs_convert=>string_to_xstring( '<sheetData>' ). * lv_sheetdata_tag_end = cl_bcs_convert=>string_to_xstring( '</sheetData>' ). * CONCATENATE lv_sheetdata_tag_start lv_xstring lv_sheetdata_tag_end * INTO lv_xstring IN BYTE MODE. * me->mv_sheet_data_xstring = lv_xstring. ENDMETHOD. METHOD create_xl_styles. *--------------------------------------------------------------------* * ToDos: * 2do§1 dxfs-cellstyles are used in conditional formats: * CellIs, Expression, top10 ( forthcoming above average as well ) * create own method to write dsfx-cellstyle to be reuseable by all these *--------------------------------------------------------------------* ** Constant node name CONSTANTS: lc_xml_node_stylesheet TYPE string VALUE 'styleSheet', " font lc_xml_node_fonts TYPE string VALUE 'fonts', lc_xml_node_font TYPE string VALUE 'font', lc_xml_node_b TYPE string VALUE 'b', "bold lc_xml_node_i TYPE string VALUE 'i', "italic lc_xml_node_u TYPE string VALUE 'u', "underline lc_xml_node_strike TYPE string VALUE 'strike', "strikethrough lc_xml_node_sz TYPE string VALUE 'sz', lc_xml_node_color TYPE string VALUE 'color', lc_xml_node_name TYPE string VALUE 'name', lc_xml_node_family TYPE string VALUE 'family', lc_xml_node_scheme TYPE string VALUE 'scheme', " fill lc_xml_node_fills TYPE string VALUE 'fills', lc_xml_node_fill TYPE string VALUE 'fill', lc_xml_node_patternfill TYPE string VALUE 'patternFill', lc_xml_node_fgcolor TYPE string VALUE 'fgColor', lc_xml_node_bgcolor TYPE string VALUE 'bgColor', lc_xml_node_gradientfill TYPE string VALUE 'gradientFill', lc_xml_node_stop TYPE string VALUE 'stop', " borders lc_xml_node_borders TYPE string VALUE 'borders', lc_xml_node_border TYPE string VALUE 'border', lc_xml_node_left TYPE string VALUE 'left', lc_xml_node_right TYPE string VALUE 'right', lc_xml_node_top TYPE string VALUE 'top', lc_xml_node_bottom TYPE string VALUE 'bottom', lc_xml_node_diagonal TYPE string VALUE 'diagonal', " numfmt lc_xml_node_numfmts TYPE string VALUE 'numFmts', lc_xml_node_numfmt TYPE string VALUE 'numFmt', " Styles lc_xml_node_cellstylexfs TYPE string VALUE 'cellStyleXfs', lc_xml_node_xf TYPE string VALUE 'xf', lc_xml_node_cellxfs TYPE string VALUE 'cellXfs', lc_xml_node_cellstyles TYPE string VALUE 'cellStyles', lc_xml_node_cellstyle TYPE string VALUE 'cellStyle', lc_xml_node_dxfs TYPE string VALUE 'dxfs', lc_xml_node_tablestyles TYPE string VALUE 'tableStyles', " Colors lc_xml_node_colors TYPE string VALUE 'colors', lc_xml_node_indexedcolors TYPE string VALUE 'indexedColors', lc_xml_node_rgbcolor TYPE string VALUE 'rgbColor', lc_xml_node_mrucolors TYPE string VALUE 'mruColors', " Alignment lc_xml_node_alignment TYPE string VALUE 'alignment', " Protection lc_xml_node_protection TYPE string VALUE 'protection', " Node attributes lc_xml_attr_count TYPE string VALUE 'count', lc_xml_attr_val TYPE string VALUE 'val', lc_xml_attr_theme TYPE string VALUE 'theme', lc_xml_attr_rgb TYPE string VALUE 'rgb', lc_xml_attr_indexed TYPE string VALUE 'indexed', lc_xml_attr_tint TYPE string VALUE 'tint', lc_xml_attr_style TYPE string VALUE 'style', lc_xml_attr_position TYPE string VALUE 'position', lc_xml_attr_degree TYPE string VALUE 'degree', lc_xml_attr_patterntype TYPE string VALUE 'patternType', lc_xml_attr_numfmtid TYPE string VALUE 'numFmtId', lc_xml_attr_fontid TYPE string VALUE 'fontId', lc_xml_attr_fillid TYPE string VALUE 'fillId', lc_xml_attr_borderid TYPE string VALUE 'borderId', lc_xml_attr_xfid TYPE string VALUE 'xfId', lc_xml_attr_applynumberformat TYPE string VALUE 'applyNumberFormat', lc_xml_attr_applyprotection TYPE string VALUE 'applyProtection', lc_xml_attr_applyfont TYPE string VALUE 'applyFont', lc_xml_attr_applyfill TYPE string VALUE 'applyFill', lc_xml_attr_applyborder TYPE string VALUE 'applyBorder', lc_xml_attr_name TYPE string VALUE 'name', lc_xml_attr_builtinid TYPE string VALUE 'builtinId', lc_xml_attr_defaulttablestyle TYPE string VALUE 'defaultTableStyle', lc_xml_attr_defaultpivotstyle TYPE string VALUE 'defaultPivotStyle', lc_xml_attr_applyalignment TYPE string VALUE 'applyAlignment', lc_xml_attr_horizontal TYPE string VALUE 'horizontal', lc_xml_attr_formatcode TYPE string VALUE 'formatCode', lc_xml_attr_vertical TYPE string VALUE 'vertical', lc_xml_attr_wraptext TYPE string VALUE 'wrapText', lc_xml_attr_textrotation TYPE string VALUE 'textRotation', lc_xml_attr_shrinktofit TYPE string VALUE 'shrinkToFit', lc_xml_attr_indent TYPE string VALUE 'indent', lc_xml_attr_locked TYPE string VALUE 'locked', lc_xml_attr_hidden TYPE string VALUE 'hidden', lc_xml_attr_diagonalup TYPE string VALUE 'diagonalUp', lc_xml_attr_diagonaldown TYPE string VALUE 'diagonalDown', " Node namespace lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', lc_xml_attr_type TYPE string VALUE 'type', lc_xml_attr_bottom TYPE string VALUE 'bottom', lc_xml_attr_top TYPE string VALUE 'top', lc_xml_attr_right TYPE string VALUE 'right', lc_xml_attr_left TYPE string VALUE 'left'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element_fonts TYPE REF TO if_ixml_element, lo_element_font TYPE REF TO if_ixml_element, lo_element_fills TYPE REF TO if_ixml_element, lo_element_fill TYPE REF TO if_ixml_element, lo_element_borders TYPE REF TO if_ixml_element, lo_element_border TYPE REF TO if_ixml_element, lo_element_numfmts TYPE REF TO if_ixml_element, lo_element_numfmt TYPE REF TO if_ixml_element, lo_element_cellxfs TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_sub_element TYPE REF TO if_ixml_element, lo_sub_element_2 TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_iterator2 TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_style_cond TYPE REF TO zcl_excel_style_cond, lo_style TYPE REF TO zcl_excel_style. DATA: lt_fonts TYPE zexcel_t_style_font, ls_font TYPE zexcel_s_style_font, lt_fills TYPE zexcel_t_style_fill, ls_fill TYPE zexcel_s_style_fill, lt_borders TYPE zexcel_t_style_border, ls_border TYPE zexcel_s_style_border, lt_numfmts TYPE zexcel_t_style_numfmt, ls_numfmt TYPE zexcel_s_style_numfmt, lt_protections TYPE zexcel_t_style_protection, ls_protection TYPE zexcel_s_style_protection, lt_alignments TYPE zexcel_t_style_alignment, ls_alignment TYPE zexcel_s_style_alignment, lt_cellxfs TYPE zexcel_t_cellxfs, ls_cellxfs TYPE zexcel_s_cellxfs, ls_styles_mapping TYPE zexcel_s_styles_mapping, lt_colors TYPE zexcel_t_style_color_argb, ls_color LIKE LINE OF lt_colors. DATA: lv_value TYPE string, lv_dfx_count TYPE i, lv_fonts_count TYPE i, lv_fills_count TYPE i, lv_borders_count TYPE i, lv_cellxfs_count TYPE i. TYPES: BEGIN OF ts_built_in_format, num_format TYPE zexcel_number_format, id TYPE sytabix, END OF ts_built_in_format. DATA: lt_built_in_num_formats TYPE HASHED TABLE OF ts_built_in_format WITH UNIQUE KEY num_format, ls_built_in_num_format LIKE LINE OF lt_built_in_num_formats. FIELD-SYMBOLS: <ls_built_in_format> LIKE LINE OF lt_built_in_num_formats, <ls_reader_built_in> LIKE LINE OF zcl_excel_style_number_format=>mt_built_in_num_formats. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). *********************************************************************** * STEP 3: Create main node relationships lo_element_root = lo_document->create_simple_element( name = lc_xml_node_stylesheet parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_ns ). ********************************************************************** * STEP 4: Create subnodes lo_element_fonts = lo_document->create_simple_element( name = lc_xml_node_fonts parent = lo_document ). lo_element_fills = lo_document->create_simple_element( name = lc_xml_node_fills parent = lo_document ). lo_element_borders = lo_document->create_simple_element( name = lc_xml_node_borders parent = lo_document ). lo_element_cellxfs = lo_document->create_simple_element( name = lc_xml_node_cellxfs parent = lo_document ). lo_element_numfmts = lo_document->create_simple_element( name = lc_xml_node_numfmts parent = lo_document ). * Prepare built-in number formats. LOOP AT zcl_excel_style_number_format=>mt_built_in_num_formats ASSIGNING <ls_reader_built_in>. ls_built_in_num_format-id = <ls_reader_built_in>-id. ls_built_in_num_format-num_format = <ls_reader_built_in>-format->format_code. INSERT ls_built_in_num_format INTO TABLE lt_built_in_num_formats. ENDLOOP. * Compress styles lo_iterator = excel->get_styles_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_style ?= lo_iterator->if_object_collection_iterator~get_next( ). ls_font = lo_style->font->get_structure( ). ls_fill = lo_style->fill->get_structure( ). ls_border = lo_style->borders->get_structure( ). ls_alignment = lo_style->alignment->get_structure( ). ls_protection = lo_style->protection->get_structure( ). ls_numfmt = lo_style->number_format->get_structure( ). CLEAR ls_cellxfs. * Compress fonts READ TABLE lt_fonts FROM ls_font TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-fontid = sy-tabix. ELSE. APPEND ls_font TO lt_fonts. DESCRIBE TABLE lt_fonts LINES ls_cellxfs-fontid. ENDIF. SUBTRACT 1 FROM ls_cellxfs-fontid. * Compress alignment READ TABLE lt_alignments FROM ls_alignment TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-alignmentid = sy-tabix. ELSE. APPEND ls_alignment TO lt_alignments. DESCRIBE TABLE lt_alignments LINES ls_cellxfs-alignmentid. ENDIF. SUBTRACT 1 FROM ls_cellxfs-alignmentid. * Compress fills READ TABLE lt_fills FROM ls_fill TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-fillid = sy-tabix. ELSE. APPEND ls_fill TO lt_fills. DESCRIBE TABLE lt_fills LINES ls_cellxfs-fillid. ENDIF. SUBTRACT 1 FROM ls_cellxfs-fillid. * Compress borders READ TABLE lt_borders FROM ls_border TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-borderid = sy-tabix. ELSE. APPEND ls_border TO lt_borders. DESCRIBE TABLE lt_borders LINES ls_cellxfs-borderid. ENDIF. SUBTRACT 1 FROM ls_cellxfs-borderid. * Compress protection IF ls_protection-locked EQ c_on AND ls_protection-hidden EQ c_off. ls_cellxfs-applyprotection = 0. ELSE. READ TABLE lt_protections FROM ls_protection TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-protectionid = sy-tabix. ELSE. APPEND ls_protection TO lt_protections. DESCRIBE TABLE lt_protections LINES ls_cellxfs-protectionid. ENDIF. ls_cellxfs-applyprotection = 1. ENDIF. SUBTRACT 1 FROM ls_cellxfs-protectionid. * Compress number formats "----------- IF ls_numfmt-numfmt NE zcl_excel_style_number_format=>c_format_date_std." and ls_numfmt-NUMFMT ne 'STD_NDEC'. " ALE Changes on going "--- IF ls_numfmt IS NOT INITIAL. * issue #389 - Problem with built-in format ( those are not being taken account of ) * There are some internal number formats built-in into EXCEL * Use these instead of duplicating the entries here, since they seem to be language-dependant and adjust to user settings in excel READ TABLE lt_built_in_num_formats ASSIGNING <ls_built_in_format> WITH TABLE KEY num_format = ls_numfmt-numfmt. IF sy-subrc = 0. ls_cellxfs-numfmtid = <ls_built_in_format>-id. ELSE. READ TABLE lt_numfmts FROM ls_numfmt TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_cellxfs-numfmtid = sy-tabix. ELSE. APPEND ls_numfmt TO lt_numfmts. DESCRIBE TABLE lt_numfmts LINES ls_cellxfs-numfmtid. ENDIF. ADD zcl_excel_common=>c_excel_numfmt_offset TO ls_cellxfs-numfmtid. " Add OXML offset for custom styles ENDIF. ls_cellxfs-applynumberformat = 1. ELSE. ls_cellxfs-applynumberformat = 0. ENDIF. "----------- " ALE changes on going ELSE. ls_cellxfs-applynumberformat = 1. IF ls_numfmt-numfmt EQ zcl_excel_style_number_format=>c_format_date_std. ls_cellxfs-numfmtid = 14. * elseif ls_numfmt-NUMFMT eq 'STD_NDEC'. * ls_cellxfs-numfmtid = 2. ENDIF. ENDIF. "--- IF ls_cellxfs-fontid NE 0. ls_cellxfs-applyfont = 1. ELSE. ls_cellxfs-applyfont = 0. ENDIF. IF ls_cellxfs-alignmentid NE 0. ls_cellxfs-applyalignment = 1. ELSE. ls_cellxfs-applyalignment = 0. ENDIF. IF ls_cellxfs-fillid NE 0. ls_cellxfs-applyfill = 1. ELSE. ls_cellxfs-applyfill = 0. ENDIF. IF ls_cellxfs-borderid NE 0. ls_cellxfs-applyborder = 1. ELSE. ls_cellxfs-applyborder = 0. ENDIF. * Remap styles READ TABLE lt_cellxfs FROM ls_cellxfs TRANSPORTING NO FIELDS. IF sy-subrc EQ 0. ls_styles_mapping-style = sy-tabix. ELSE. APPEND ls_cellxfs TO lt_cellxfs. DESCRIBE TABLE lt_cellxfs LINES ls_styles_mapping-style. ENDIF. SUBTRACT 1 FROM ls_styles_mapping-style. ls_styles_mapping-guid = lo_style->get_guid( ). APPEND ls_styles_mapping TO me->styles_mapping. ENDWHILE. " create numfmt elements LOOP AT lt_numfmts INTO ls_numfmt. lo_element_numfmt = lo_document->create_simple_element( name = lc_xml_node_numfmt parent = lo_document ). lv_value = sy-tabix + zcl_excel_common=>c_excel_numfmt_offset. CONDENSE lv_value. lo_element_numfmt->set_attribute_ns( name = lc_xml_attr_numfmtid value = lv_value ). lv_value = ls_numfmt-numfmt. * REPLACE ALL OCCURRENCES OF '.' IN lv_value WITH '\.'. lo_element_numfmt->set_attribute_ns( name = lc_xml_attr_formatcode value = lv_value ). lo_element_numfmts->append_child( new_child = lo_element_numfmt ). ENDLOOP. " create font elements LOOP AT lt_fonts INTO ls_font. lo_element_font = lo_document->create_simple_element( name = lc_xml_node_font parent = lo_document ). IF ls_font-bold EQ abap_true. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_b parent = lo_document ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. IF ls_font-italic EQ abap_true. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_i parent = lo_document ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. IF ls_font-underline EQ abap_true. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_u parent = lo_document ). lv_value = ls_font-underline_mode. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. IF ls_font-strikethrough EQ abap_true. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_strike parent = lo_document ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. "size lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_sz parent = lo_document ). lv_value = ls_font-size. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). "color create_xl_styles_color_node( io_document = lo_document io_parent = lo_element_font is_color = ls_font-color ). "name lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_name parent = lo_document ). lv_value = ls_font-name. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). "family lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_family parent = lo_document ). lv_value = ls_font-family. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). "scheme IF ls_font-scheme IS NOT INITIAL. lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_scheme parent = lo_document ). lv_value = ls_font-scheme. lo_sub_element->set_attribute_ns( name = lc_xml_attr_val value = lv_value ). lo_element_font->append_child( new_child = lo_sub_element ). ENDIF. lo_element_fonts->append_child( new_child = lo_element_font ). ENDLOOP. " create fill elements LOOP AT lt_fills INTO ls_fill. lo_element_fill = lo_document->create_simple_element( name = lc_xml_node_fill parent = lo_document ). IF ls_fill-gradtype IS NOT INITIAL. "gradient lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_gradientfill parent = lo_document ). IF ls_fill-gradtype-degree IS NOT INITIAL. lv_value = ls_fill-gradtype-degree. lo_sub_element->set_attribute_ns( name = lc_xml_attr_degree value = lv_value ). ENDIF. IF ls_fill-gradtype-type IS NOT INITIAL. lv_value = ls_fill-gradtype-type. lo_sub_element->set_attribute_ns( name = lc_xml_attr_type value = lv_value ). ENDIF. IF ls_fill-gradtype-bottom IS NOT INITIAL. lv_value = ls_fill-gradtype-bottom. lo_sub_element->set_attribute_ns( name = lc_xml_attr_bottom value = lv_value ). ENDIF. IF ls_fill-gradtype-top IS NOT INITIAL. lv_value = ls_fill-gradtype-top. lo_sub_element->set_attribute_ns( name = lc_xml_attr_top value = lv_value ). ENDIF. IF ls_fill-gradtype-right IS NOT INITIAL. lv_value = ls_fill-gradtype-right. lo_sub_element->set_attribute_ns( name = lc_xml_attr_right value = lv_value ). ENDIF. IF ls_fill-gradtype-left IS NOT INITIAL. lv_value = ls_fill-gradtype-left. lo_sub_element->set_attribute_ns( name = lc_xml_attr_left value = lv_value ). ENDIF. IF ls_fill-gradtype-position3 IS NOT INITIAL. "create <stop> elements for gradients, we can have 2 or 3 stops in each gradient lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position1. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position2. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-fgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position3. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). ELSE. "create <stop> elements for gradients, we can have 2 or 3 stops in each gradient lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position1. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop parent = lo_sub_element ). lv_value = ls_fill-gradtype-position2. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ). create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element_2 is_color = ls_fill-fgcolor iv_color_elem_name = lc_xml_node_color ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). ENDIF. ELSE. "pattern lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_patternfill parent = lo_document ). lv_value = ls_fill-filltype. lo_sub_element->set_attribute_ns( name = lc_xml_attr_patterntype value = lv_value ). " fgcolor create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_fill-fgcolor iv_color_elem_name = lc_xml_node_fgcolor ). IF ls_fill-fgcolor-rgb IS INITIAL AND ls_fill-fgcolor-indexed EQ zcl_excel_style_color=>c_indexed_not_set AND ls_fill-fgcolor-theme EQ zcl_excel_style_color=>c_theme_not_set AND ls_fill-fgcolor-tint IS INITIAL AND ls_fill-bgcolor-indexed EQ zcl_excel_style_color=>c_indexed_sys_foreground. " bgcolor create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_fill-bgcolor iv_color_elem_name = lc_xml_node_bgcolor ). ENDIF. ENDIF. lo_element_fill->append_child( new_child = lo_sub_element )."pattern lo_element_fills->append_child( new_child = lo_element_fill ). ENDLOOP. " create border elements LOOP AT lt_borders INTO ls_border. lo_element_border = lo_document->create_simple_element( name = lc_xml_node_border parent = lo_document ). IF ls_border-diagonalup IS NOT INITIAL. lv_value = ls_border-diagonalup. CONDENSE lv_value. lo_element_border->set_attribute_ns( name = lc_xml_attr_diagonalup value = lv_value ). ENDIF. IF ls_border-diagonaldown IS NOT INITIAL. lv_value = ls_border-diagonaldown. CONDENSE lv_value. lo_element_border->set_attribute_ns( name = lc_xml_attr_diagonaldown value = lv_value ). ENDIF. "left lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_left parent = lo_document ). IF ls_border-left_style IS NOT INITIAL. lv_value = ls_border-left_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-left_color ). lo_element_border->append_child( new_child = lo_sub_element ). "right lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_right parent = lo_document ). IF ls_border-right_style IS NOT INITIAL. lv_value = ls_border-right_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-right_color ). lo_element_border->append_child( new_child = lo_sub_element ). "top lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_top parent = lo_document ). IF ls_border-top_style IS NOT INITIAL. lv_value = ls_border-top_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-top_color ). lo_element_border->append_child( new_child = lo_sub_element ). "bottom lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_bottom parent = lo_document ). IF ls_border-bottom_style IS NOT INITIAL. lv_value = ls_border-bottom_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-bottom_color ). lo_element_border->append_child( new_child = lo_sub_element ). "diagonal lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_diagonal parent = lo_document ). IF ls_border-diagonal_style IS NOT INITIAL. lv_value = ls_border-diagonal_style. lo_sub_element->set_attribute_ns( name = lc_xml_attr_style value = lv_value ). ENDIF. create_xl_styles_color_node( io_document = lo_document io_parent = lo_sub_element is_color = ls_border-diagonal_color ). lo_element_border->append_child( new_child = lo_sub_element ). lo_element_borders->append_child( new_child = lo_element_border ). ENDLOOP. " update attribute "count" DESCRIBE TABLE lt_fonts LINES lv_fonts_count. MOVE lv_fonts_count TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_fonts->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). DESCRIBE TABLE lt_fills LINES lv_fills_count. MOVE lv_fills_count TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_fills->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). DESCRIBE TABLE lt_borders LINES lv_borders_count. MOVE lv_borders_count TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_borders->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). DESCRIBE TABLE lt_cellxfs LINES lv_cellxfs_count. MOVE lv_cellxfs_count TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element_cellxfs->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). " Append to root node lo_element_root->append_child( new_child = lo_element_numfmts ). lo_element_root->append_child( new_child = lo_element_fonts ). lo_element_root->append_child( new_child = lo_element_fills ). lo_element_root->append_child( new_child = lo_element_borders ). " cellstylexfs node lo_element = lo_document->create_simple_element( name = lc_xml_node_cellstylexfs parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_count value = '1' ). lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_xf parent = lo_document ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_numfmtid value = c_off ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_fontid value = c_off ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_fillid value = c_off ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_borderid value = c_off ). lo_element->append_child( new_child = lo_sub_element ). lo_element_root->append_child( new_child = lo_element ). LOOP AT lt_cellxfs INTO ls_cellxfs. lo_element = lo_document->create_simple_element( name = lc_xml_node_xf parent = lo_document ). MOVE ls_cellxfs-numfmtid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_numfmtid value = lv_value ). MOVE ls_cellxfs-fontid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_fontid value = lv_value ). MOVE ls_cellxfs-fillid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_fillid value = lv_value ). MOVE ls_cellxfs-borderid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_borderid value = lv_value ). MOVE ls_cellxfs-xfid TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_xfid value = lv_value ). IF ls_cellxfs-applynumberformat EQ 1. MOVE ls_cellxfs-applynumberformat TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applynumberformat value = lv_value ). ENDIF. IF ls_cellxfs-applyfont EQ 1. MOVE ls_cellxfs-applyfont TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applyfont value = lv_value ). ENDIF. IF ls_cellxfs-applyfill EQ 1. MOVE ls_cellxfs-applyfill TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applyfill value = lv_value ). ENDIF. IF ls_cellxfs-applyborder EQ 1. MOVE ls_cellxfs-applyborder TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applyborder value = lv_value ). ENDIF. IF ls_cellxfs-applyalignment EQ 1. " depends on each style not for all the sheet MOVE ls_cellxfs-applyalignment TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_element->set_attribute_ns( name = lc_xml_attr_applyalignment value = lv_value ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_alignment parent = lo_document ). ADD 1 TO ls_cellxfs-alignmentid. "Table index starts from 1 READ TABLE lt_alignments INTO ls_alignment INDEX ls_cellxfs-alignmentid. SUBTRACT 1 FROM ls_cellxfs-alignmentid. IF ls_alignment-horizontal IS NOT INITIAL. MOVE ls_alignment-horizontal TO lv_value. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_horizontal value = lv_value ). ENDIF. IF ls_alignment-vertical IS NOT INITIAL. MOVE ls_alignment-vertical TO lv_value. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_vertical value = lv_value ). ENDIF. IF ls_alignment-wraptext EQ abap_true. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_wraptext value = c_on ). ENDIF. IF ls_alignment-textrotation IS NOT INITIAL. MOVE ls_alignment-textrotation TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_textrotation value = lv_value ). ENDIF. IF ls_alignment-shrinktofit EQ abap_true. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_shrinktofit value = c_on ). ENDIF. IF ls_alignment-indent IS NOT INITIAL. MOVE ls_alignment-indent TO lv_value. SHIFT lv_value RIGHT DELETING TRAILING space. SHIFT lv_value LEFT DELETING LEADING space. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_indent value = lv_value ). ENDIF. lo_element->append_child( new_child = lo_sub_element_2 ). ENDIF. IF ls_cellxfs-applyprotection EQ 1. MOVE ls_cellxfs-applyprotection TO lv_value. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_applyprotection value = lv_value ). lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_protection parent = lo_document ). ADD 1 TO ls_cellxfs-protectionid. "Table index starts from 1 READ TABLE lt_protections INTO ls_protection INDEX ls_cellxfs-protectionid. SUBTRACT 1 FROM ls_cellxfs-protectionid. IF ls_protection-locked IS NOT INITIAL. MOVE ls_protection-locked TO lv_value. CONDENSE lv_value. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_locked value = lv_value ). ENDIF. IF ls_protection-hidden IS NOT INITIAL. MOVE ls_protection-hidden TO lv_value. CONDENSE lv_value. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_hidden value = lv_value ). ENDIF. lo_element->append_child( new_child = lo_sub_element_2 ). ENDIF. lo_element_cellxfs->append_child( new_child = lo_element ). ENDLOOP. lo_element_root->append_child( new_child = lo_element_cellxfs ). " cellStyles node lo_element = lo_document->create_simple_element( name = lc_xml_node_cellstyles parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_count value = '1' ). lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_cellstyle parent = lo_document ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = 'Normal' ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_xfid value = c_off ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_builtinid value = c_off ). lo_element->append_child( new_child = lo_sub_element ). lo_element_root->append_child( new_child = lo_element ). " dxfs node lo_element = lo_document->create_simple_element( name = lc_xml_node_dxfs parent = lo_document ). lo_iterator = me->excel->get_worksheets_iterator( ). " get sheets WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). " Conditional formatting styles into exch sheet lo_iterator2 = lo_worksheet->get_style_cond_iterator( ). WHILE lo_iterator2->if_object_collection_iterator~has_next( ) EQ abap_true. lo_style_cond ?= lo_iterator2->if_object_collection_iterator~get_next( ). CASE lo_style_cond->rule. * begin of change issue #366 - missing conditional rules: top10, move dfx-styles to own method WHEN zcl_excel_style_cond=>c_rule_cellis. me->create_dxf_style( EXPORTING iv_cell_style = lo_style_cond->mode_cellis-cell_style io_dxf_element = lo_element io_ixml_document = lo_document it_cellxfs = lt_cellxfs it_fonts = lt_fonts it_fills = lt_fills CHANGING cv_dfx_count = lv_dfx_count ). WHEN zcl_excel_style_cond=>c_rule_expression. me->create_dxf_style( EXPORTING iv_cell_style = lo_style_cond->mode_expression-cell_style io_dxf_element = lo_element io_ixml_document = lo_document it_cellxfs = lt_cellxfs it_fonts = lt_fonts it_fills = lt_fills CHANGING cv_dfx_count = lv_dfx_count ). WHEN zcl_excel_style_cond=>c_rule_top10. me->create_dxf_style( EXPORTING iv_cell_style = lo_style_cond->mode_top10-cell_style io_dxf_element = lo_element io_ixml_document = lo_document it_cellxfs = lt_cellxfs it_fonts = lt_fonts it_fills = lt_fills CHANGING cv_dfx_count = lv_dfx_count ). WHEN zcl_excel_style_cond=>c_rule_above_average. me->create_dxf_style( EXPORTING iv_cell_style = lo_style_cond->mode_above_average-cell_style io_dxf_element = lo_element io_ixml_document = lo_document it_cellxfs = lt_cellxfs it_fonts = lt_fonts it_fills = lt_fills CHANGING cv_dfx_count = lv_dfx_count ). * begin of change issue #366 - missing conditional rules: top10, move dfx-styles to own method WHEN OTHERS. CONTINUE. ENDCASE. ENDWHILE. ENDWHILE. lv_value = lv_dfx_count. CONDENSE lv_value. lo_element->set_attribute_ns( name = lc_xml_attr_count value = lv_value ). lo_element_root->append_child( new_child = lo_element ). " tableStyles node lo_element = lo_document->create_simple_element( name = lc_xml_node_tablestyles parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_count value = '0' ). lo_element->set_attribute_ns( name = lc_xml_attr_defaulttablestyle value = zcl_excel_table=>builtinstyle_medium9 ). lo_element->set_attribute_ns( name = lc_xml_attr_defaultpivotstyle value = zcl_excel_table=>builtinstyle_pivot_light16 ). lo_element_root->append_child( new_child = lo_element ). "write legacy color palette in case any indexed color was changed IF excel->legacy_palette->is_modified( ) = abap_true. lo_element = lo_document->create_simple_element( name = lc_xml_node_colors parent = lo_document ). lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_indexedcolors parent = lo_document ). lo_element->append_child( new_child = lo_sub_element ). lt_colors = excel->legacy_palette->get_colors( ). LOOP AT lt_colors INTO ls_color. lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_rgbcolor parent = lo_document ). lv_value = ls_color. lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). lo_sub_element->append_child( new_child = lo_sub_element_2 ). ENDLOOP. lo_element_root->append_child( new_child = lo_element ). ENDIF. ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. METHOD create_xl_styles_color_node. DATA: lo_sub_element TYPE REF TO if_ixml_element, lv_value TYPE string. CONSTANTS: lc_xml_attr_theme TYPE string VALUE 'theme', lc_xml_attr_rgb TYPE string VALUE 'rgb', lc_xml_attr_indexed TYPE string VALUE 'indexed', lc_xml_attr_tint TYPE string VALUE 'tint'. "add node only if at least one attribute is set CHECK is_color-rgb IS NOT INITIAL OR is_color-indexed <> zcl_excel_style_color=>c_indexed_not_set OR is_color-theme <> zcl_excel_style_color=>c_theme_not_set OR is_color-tint IS NOT INITIAL. lo_sub_element = io_document->create_simple_element( name = iv_color_elem_name parent = io_parent ). IF is_color-rgb IS NOT INITIAL. lv_value = is_color-rgb. lo_sub_element->set_attribute_ns( name = lc_xml_attr_rgb value = lv_value ). ENDIF. IF is_color-indexed <> zcl_excel_style_color=>c_indexed_not_set. lv_value = zcl_excel_common=>number_to_excel_string( is_color-indexed ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_indexed value = lv_value ). ENDIF. IF is_color-theme <> zcl_excel_style_color=>c_theme_not_set. lv_value = zcl_excel_common=>number_to_excel_string( is_color-theme ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_theme value = lv_value ). ENDIF. IF is_color-tint IS NOT INITIAL. lv_value = zcl_excel_common=>number_to_excel_string( is_color-tint ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_tint value = lv_value ). ENDIF. io_parent->append_child( new_child = lo_sub_element ). ENDMETHOD. METHOD create_xl_table. DATA: lc_xml_node_table TYPE string VALUE 'table', lc_xml_node_relationship TYPE string VALUE 'Relationship', " Node attributes lc_xml_attr_id TYPE string VALUE 'id', lc_xml_attr_name TYPE string VALUE 'name', lc_xml_attr_display_name TYPE string VALUE 'displayName', lc_xml_attr_ref TYPE string VALUE 'ref', lc_xml_attr_totals TYPE string VALUE 'totalsRowShown', " Node namespace lc_xml_node_table_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', " Node id lc_xml_node_ridx_id TYPE string VALUE 'rId#'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_element2 TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lv_table_name TYPE string, lv_id TYPE i, lv_match TYPE i, lv_ref TYPE string, lv_value TYPE string, lv_num_columns TYPE i, ls_fieldcat TYPE zexcel_s_fieldcatalog. ********************************************************************** * STEP 1: Create xml lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node table lo_element_root = lo_document->create_simple_element( name = lc_xml_node_table parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_table_ns ). lv_id = io_table->get_id( ). lv_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_id ). lo_element_root->set_attribute_ns( name = lc_xml_attr_id value = lv_value ). FIND ALL OCCURRENCES OF REGEX '[^_a-zA-Z0-9]' IN io_table->settings-table_name IGNORING CASE MATCH COUNT lv_match. IF io_table->settings-table_name IS NOT INITIAL AND lv_match EQ 0. lv_table_name = io_table->settings-table_name. ELSE. lv_table_name = io_table->get_name( ). ENDIF. lo_element_root->set_attribute_ns( name = lc_xml_attr_name value = lv_table_name ). lo_element_root->set_attribute_ns( name = lc_xml_attr_display_name value = lv_table_name ). lv_ref = io_table->get_reference( ). lo_element_root->set_attribute_ns( name = lc_xml_attr_ref value = lv_ref ). IF io_table->has_totals( ) = abap_true. lo_element_root->set_attribute_ns( name = 'totalsRowCount' value = '1' ). ELSE. lo_element_root->set_attribute_ns( name = lc_xml_attr_totals value = '0' ). ENDIF. ********************************************************************** * STEP 4: Create subnodes " autoFilter IF io_table->settings-nofilters EQ abap_false. lo_element = lo_document->create_simple_element( name = 'autoFilter' parent = lo_document ). lv_ref = io_table->get_reference( ip_include_totals_row = abap_false ). lo_element->set_attribute_ns( name = 'ref' value = lv_ref ). lo_element_root->append_child( new_child = lo_element ). ENDIF. "columns lo_element = lo_document->create_simple_element( name = 'tableColumns' parent = lo_document ). * lo_columns = io_table->get_columns( ). LOOP AT io_table->fieldcat INTO ls_fieldcat WHERE dynpfld = abap_true. ADD 1 TO lv_num_columns. ENDLOOP. lv_value = lv_num_columns. CONDENSE lv_value. lo_element->set_attribute_ns( name = 'count' value = lv_value ). lo_element_root->append_child( new_child = lo_element ). LOOP AT io_table->fieldcat INTO ls_fieldcat WHERE dynpfld = abap_true. lo_element2 = lo_document->create_simple_element_ns( name = 'tableColumn' parent = lo_element ). lv_value = ls_fieldcat-position. SHIFT lv_value LEFT DELETING LEADING '0'. lo_element2->set_attribute_ns( name = 'id' value = lv_value ). lv_value = ls_fieldcat-scrtext_l. lo_element2->set_attribute_ns( name = 'name' value = lv_value ). IF ls_fieldcat-totals_function IS NOT INITIAL. lo_element2->set_attribute_ns( name = 'totalsRowFunction' value = ls_fieldcat-totals_function ). ENDIF. lo_element->append_child( new_child = lo_element2 ). ENDLOOP. lo_element = lo_document->create_simple_element( name = 'tableStyleInfo' parent = lo_element_root ). lo_element->set_attribute_ns( name = 'name' value = io_table->settings-table_style ). lo_element->set_attribute_ns( name = 'showFirstColumn' value = '0' ). lo_element->set_attribute_ns( name = 'showLastColumn' value = '0' ). IF io_table->settings-show_row_stripes = abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element->set_attribute_ns( name = 'showRowStripes' value = lv_value ). IF io_table->settings-show_column_stripes = abap_true. lv_value = '1'. ELSE. lv_value = '0'. ENDIF. lo_element->set_attribute_ns( name = 'showColumnStripes' value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. method create_xl_theme. data: lo_theme type ref to zcl_excel_theme. excel->get_theme( importing eo_theme = lo_theme ). if lo_theme is initial. create object lo_theme. endif. ep_content = lo_theme->write_theme( ). endmethod. METHOD create_xl_workbook. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (done) 2012-11-07 * - ... * changes: aligning code * adding comments to explain what we are trying to achieve *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmoecker, 2012-12-01 * changes: correction of pointer to localSheetId *--------------------------------------------------------------------* ** Constant node name DATA: lc_xml_node_workbook TYPE string VALUE 'workbook', lc_xml_node_fileversion TYPE string VALUE 'fileVersion', lc_xml_node_workbookpr TYPE string VALUE 'workbookPr', lc_xml_node_bookviews TYPE string VALUE 'bookViews', lc_xml_node_workbookview TYPE string VALUE 'workbookView', lc_xml_node_sheets TYPE string VALUE 'sheets', lc_xml_node_sheet TYPE string VALUE 'sheet', lc_xml_node_calcpr TYPE string VALUE 'calcPr', lc_xml_node_workbookprotection TYPE string VALUE 'workbookProtection', lc_xml_node_definednames TYPE string VALUE 'definedNames', lc_xml_node_definedname TYPE string VALUE 'definedName', " Node attributes lc_xml_attr_appname TYPE string VALUE 'appName', lc_xml_attr_lastedited TYPE string VALUE 'lastEdited', lc_xml_attr_lowestedited TYPE string VALUE 'lowestEdited', lc_xml_attr_rupbuild TYPE string VALUE 'rupBuild', lc_xml_attr_xwindow TYPE string VALUE 'xWindow', lc_xml_attr_ywindow TYPE string VALUE 'yWindow', lc_xml_attr_windowwidth TYPE string VALUE 'windowWidth', lc_xml_attr_windowheight TYPE string VALUE 'windowHeight', lc_xml_attr_activetab TYPE string VALUE 'activeTab', lc_xml_attr_name TYPE string VALUE 'name', lc_xml_attr_sheetid TYPE string VALUE 'sheetId', lc_xml_attr_state TYPE string VALUE 'state', lc_xml_attr_id TYPE string VALUE 'id', lc_xml_attr_calcid TYPE string VALUE 'calcId', lc_xml_attr_lockrevision TYPE string VALUE 'lockRevision', lc_xml_attr_lockstructure TYPE string VALUE 'lockStructure', lc_xml_attr_lockwindows TYPE string VALUE 'lockWindows', lc_xml_attr_revisionspassword TYPE string VALUE 'revisionsPassword', lc_xml_attr_workbookpassword TYPE string VALUE 'workbookPassword', lc_xml_attr_hidden TYPE string VALUE 'hidden', lc_xml_attr_localsheetid TYPE string VALUE 'localSheetId', " Node namespace lc_r_ns TYPE string VALUE 'r', lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main', lc_xml_node_r_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships', " Node id lc_xml_node_ridx_id TYPE string VALUE 'rId#'. DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, lo_element_root TYPE REF TO if_ixml_element, lo_element TYPE REF TO if_ixml_element, lo_element_range TYPE REF TO if_ixml_element, lo_sub_element TYPE REF TO if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer, lo_iterator TYPE REF TO cl_object_collection_iterator, lo_iterator_range TYPE REF TO cl_object_collection_iterator, lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_range TYPE REF TO zcl_excel_range, lo_autofilters TYPE REF TO zcl_excel_autofilters, lo_autofilter TYPE REF TO zcl_excel_autofilter. DATA: lv_xml_node_ridx_id TYPE string, lv_value TYPE string, lv_syindex TYPE string, l_guid TYPE uuid, lv_active_sheet TYPE zexcel_active_worksheet. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). ********************************************************************** * STEP 3: Create main node lo_element_root = lo_document->create_simple_element( name = lc_xml_node_workbook parent = lo_document ). lo_element_root->set_attribute_ns( name = 'xmlns' value = lc_xml_node_ns ). lo_element_root->set_attribute_ns( name = 'xmlns:r' value = lc_xml_node_r_ns ). ********************************************************************** * STEP 4: Create subnode " fileVersion node lo_element = lo_document->create_simple_element( name = lc_xml_node_fileversion parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_appname value = 'xl' ). lo_element->set_attribute_ns( name = lc_xml_attr_lastedited value = '4' ). lo_element->set_attribute_ns( name = lc_xml_attr_lowestedited value = '4' ). lo_element->set_attribute_ns( name = lc_xml_attr_rupbuild value = '4506' ). lo_element_root->append_child( new_child = lo_element ). " fileVersion node lo_element = lo_document->create_simple_element( name = lc_xml_node_workbookpr parent = lo_document ). * lo_element->set_attribute_ns( name = lc_xml_attr_themeversion * value = '124226' ). lo_element_root->append_child( new_child = lo_element ). " workbookProtection node IF me->excel->zif_excel_book_protection~protected EQ abap_true. lo_element = lo_document->create_simple_element( name = lc_xml_node_workbookprotection parent = lo_document ). MOVE me->excel->zif_excel_book_protection~workbookpassword TO lv_value. IF lv_value IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_workbookpassword value = lv_value ). ENDIF. MOVE me->excel->zif_excel_book_protection~revisionspassword TO lv_value. IF lv_value IS NOT INITIAL. lo_element->set_attribute_ns( name = lc_xml_attr_revisionspassword value = lv_value ). ENDIF. MOVE me->excel->zif_excel_book_protection~lockrevision TO lv_value. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_lockrevision value = lv_value ). MOVE me->excel->zif_excel_book_protection~lockstructure TO lv_value. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_lockstructure value = lv_value ). MOVE me->excel->zif_excel_book_protection~lockwindows TO lv_value. CONDENSE lv_value NO-GAPS. lo_element->set_attribute_ns( name = lc_xml_attr_lockwindows value = lv_value ). lo_element_root->append_child( new_child = lo_element ). ENDIF. " bookviews node lo_element = lo_document->create_simple_element( name = lc_xml_node_bookviews parent = lo_document ). " bookview node lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_workbookview parent = lo_document ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_xwindow value = '120' ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_ywindow value = '120' ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_windowwidth value = '19035' ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_windowheight value = '8445' ). " Set Active Sheet lv_active_sheet = excel->get_active_sheet_index( ). * issue #365 - test if sheet exists - otherwise set active worksheet to 1 lo_worksheet = excel->get_worksheet_by_index( lv_active_sheet ). IF lo_worksheet IS NOT BOUND. lv_active_sheet = 1. excel->SET_ACTIVE_SHEET_INDEX( lv_active_sheet ). ENDIF. IF lv_active_sheet > 1. lv_active_sheet = lv_active_sheet - 1. lv_value = lv_active_sheet. CONDENSE lv_value. lo_sub_element->set_attribute_ns( name = lc_xml_attr_activetab value = lv_value ). ENDIF. lo_element->append_child( new_child = lo_sub_element )." bookview node lo_element_root->append_child( new_child = lo_element )." bookviews node " sheets node lo_element = lo_document->create_simple_element( name = lc_xml_node_sheets parent = lo_document ). lo_iterator = excel->get_worksheets_iterator( ). " ranges node lo_element_range = lo_document->create_simple_element( name = lc_xml_node_definednames " issue 163 + parent = lo_document ). " issue 163 + WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. " sheet node lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_sheet parent = lo_document ). lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_syindex = sy-index. " question by Stefan Schmöcker 2012-12-02: sy-index seems to do the job - but is it proven to work or purely coincedence lv_value = lo_worksheet->get_title( ). SHIFT lv_syindex RIGHT DELETING TRAILING space. SHIFT lv_syindex LEFT DELETING LEADING space. lv_xml_node_ridx_id = lc_xml_node_ridx_id. REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex. lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = lv_value ). lo_sub_element->set_attribute_ns( name = lc_xml_attr_sheetid value = lv_syindex ). IF lo_worksheet->zif_excel_sheet_properties~hidden EQ zif_excel_sheet_properties=>c_hidden. lo_sub_element->set_attribute_ns( name = lc_xml_attr_state value = 'hidden' ). ELSEIF lo_worksheet->zif_excel_sheet_properties~hidden EQ zif_excel_sheet_properties=>c_veryhidden. lo_sub_element->set_attribute_ns( name = lc_xml_attr_state value = 'veryHidden' ). ENDIF. lo_sub_element->set_attribute_ns( name = lc_xml_attr_id prefix = lc_r_ns value = lv_xml_node_ridx_id ). lo_element->append_child( new_child = lo_sub_element ). " sheet node " issue 163 >>> lo_iterator_range = lo_worksheet->get_ranges_iterator( ). *--------------------------------------------------------------------* * Defined names sheetlocal: Ranges, Repeat rows and columns *--------------------------------------------------------------------* WHILE lo_iterator_range->if_object_collection_iterator~has_next( ) EQ abap_true. " range node lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname parent = lo_document ). lo_range ?= lo_iterator_range->if_object_collection_iterator~get_next( ). lv_value = lo_range->name. lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = lv_value ). * lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid "del #235 Repeat rows/cols - EXCEL starts couting from zero * value = lv_xml_node_ridx_id ). "del #235 Repeat rows/cols - and needs absolute referencing to localSheetId lv_value = lv_syindex - 1. "ins #235 Repeat rows/cols CONDENSE lv_value NO-GAPS. "ins #235 Repeat rows/cols lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid value = lv_value ). lv_value = lo_range->get_value( ). lo_sub_element->set_value( value = lv_value ). lo_element_range->append_child( new_child = lo_sub_element ). " range node ENDWHILE. " issue 163 <<< ENDWHILE. lo_element_root->append_child( new_child = lo_element )." sheets node *--------------------------------------------------------------------* * Defined names workbookgolbal: Ranges *--------------------------------------------------------------------* * " ranges node * lo_element = lo_document->create_simple_element( name = lc_xml_node_definednames " issue 163 - * parent = lo_document ). " issue 163 - lo_iterator = excel->get_ranges_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. " range node lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname parent = lo_document ). lo_range ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_value = lo_range->name. lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = lv_value ). lv_value = lo_range->get_value( ). lo_sub_element->set_value( value = lv_value ). lo_element_range->append_child( new_child = lo_sub_element ). " range node ENDWHILE. *--------------------------------------------------------------------* * Defined names - Autofilters ( also sheetlocal ) *--------------------------------------------------------------------* lo_autofilters = excel->get_autofilters_reference( ). IF lo_autofilters->is_empty( ) = abap_false. lo_iterator = excel->get_worksheets_iterator( ). WHILE lo_iterator->if_object_collection_iterator~has_next( ) EQ abap_true. lo_worksheet ?= lo_iterator->if_object_collection_iterator~get_next( ). lv_syindex = sy-index - 1 . l_guid = lo_worksheet->get_guid( ). lo_autofilter = lo_autofilters->get( i_sheet_guid = l_guid ) . IF lo_autofilter IS BOUND. lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname parent = lo_document ). lv_value = lo_autofilters->c_autofilter. lo_sub_element->set_attribute_ns( name = lc_xml_attr_name value = lv_value ). lv_value = lv_syindex. CONDENSE lv_value NO-GAPS. lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid value = lv_value ). lv_value = '1'. " Always hidden lo_sub_element->set_attribute_ns( name = lc_xml_attr_hidden value = lv_value ). lv_value = lo_autofilter->get_filter_reference( ). lo_sub_element->set_value( value = lv_value ). lo_element_range->append_child( new_child = lo_sub_element ). " range node ENDIF. ENDWHILE. ENDIF. lo_element_root->append_child( new_child = lo_element_range ). " ranges node " calcPr node lo_element = lo_document->create_simple_element( name = lc_xml_node_calcpr parent = lo_document ). lo_element->set_attribute_ns( name = lc_xml_attr_calcid value = '125725' ). lo_element_root->append_child( new_child = lo_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). ENDMETHOD. method FLAG2BOOL. IF ip_flag EQ abap_true. ep_boolean = 'true'. ELSE. ep_boolean = 'false'. ENDIF. endmethod. METHOD get_shared_string_index. DATA ls_shared_string TYPE zexcel_s_shared_string. * READ TABLE shared_strings INTO ls_shared_string WITH KEY string_value = ip_cell_value BINARY SEARCH. READ TABLE shared_strings INTO ls_shared_string WITH TABLE KEY string_value = ip_cell_value. ep_index = ls_shared_string-string_no. ENDMETHOD. METHOD render_ixml_element_no_header. * DATA: lo_ixml TYPE REF TO if_ixml, lo_document TYPE REF TO if_ixml_document, * lo_element_root type ref to if_ixml_element, * lo_element type ref to if_ixml_element, lo_encoding TYPE REF TO if_ixml_encoding, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_ostream TYPE REF TO if_ixml_ostream, lo_renderer TYPE REF TO if_ixml_renderer. DATA: lv_content TYPE string. ********************************************************************** * STEP 1: Create [Content_Types].xml into the root of the ZIP lo_ixml = cl_ixml=>create( ). ********************************************************************** * STEP 2: Set document attributes lo_encoding = lo_ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian character_set = 'utf-8' ). lo_document = lo_ixml->create_document( ). lo_document->set_encoding( lo_encoding ). lo_document->set_standalone( abap_true ). lo_document->set_declaration( abap_false ). " NO header!! lo_document->append_child( new_child = iv_ixml_element ). ********************************************************************** * STEP 5: Create xstring stream lo_streamfactory = lo_ixml->create_stream_factory( ). * lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). lo_ostream = lo_streamfactory->create_ostream_cstring( string = lv_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). * write:/ lv_content. lo_streamfactory = lo_ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = rv_xstring ). * lo_ostream = lo_streamfactory->create_ostream_cstring( string = lv_content ). lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). * rv_xstring = lv_contentx. ENDMETHOD. method ZIF_EXCEL_WRITER~WRITE_FILE. me->excel = io_excel. ep_file = me->create( ). endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 12726, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 198, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 12726, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 20314, 1168, 5064, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 764, 198, 24326, 2665, 13, 628, 220, 1366, 32947, 62, 9693, 36, 2767, 62, 26947, 62, 55, 18601, 2751, 2099, 1395, 18601, 2751, 764, 198, 220, 1366, 32947, 62, 9693, 36, 2767, 62, 26947, 62, 55, 18601, 2751, 62, 35, 5883, 26708, 2099, 1395, 18601, 2751, 764, 198, 9, 1, 9, 6861, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 18564, 2043, 1137, 62, 12726, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 38491, 327, 62, 37815, 3525, 62, 9936, 47, 1546, 2099, 19269, 2751, 1988, 44438, 19746, 62, 31431, 4083, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 38715, 4805, 30737, 62, 24805, 2099, 19269, 2751, 1988, 705, 15390, 2964, 862, 14, 1324, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 38715, 4805, 30737, 62, 34, 6965, 2099, 19269, 2751, 1988, 705, 15390, 2964, 862, 14, 7295, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 16448, 6234, 9693, 47643, 2099, 19269, 2751, 1988, 705, 62, 2411, 82, 11757, 2411, 82, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 34, 1847, 34, 3398, 29833, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 9948, 66, 35491, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 35, 20530, 20754, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 19334, 654, 14, 19334, 278, 2, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 35, 20530, 20754, 62, 2200, 6561, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 19334, 654, 47835, 2411, 82, 14, 19334, 278, 2, 13, 19875, 13, 2411, 82, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 16448, 6234, 9693, 47643, 2099, 19269, 2751, 1988, 705, 87, 75, 47835, 2411, 82, 14, 1818, 2070, 13, 19875, 13, 2411, 82, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 9693, 1503, 1961, 18601, 20754, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 28710, 13290, 654, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 9693, 36, 2767, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 5225, 258, 1039, 14, 21760, 2, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 9693, 36, 2767, 62, 2200, 6561, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 5225, 258, 1039, 47835, 2411, 82, 14, 21760, 2, 13, 19875, 13, 2411, 82, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 2257, 56, 28378, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 47720, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 4221, 3620, 36, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 43810, 14, 43810, 16, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 38491, 327, 62, 32457, 62, 33249, 39453, 2099, 19269, 2751, 1988, 705, 87, 75, 14, 1818, 2070, 13, 19875, 4458, 25113, 2943, 5626, 13918, 198, 220, 1366, 7788, 34, 3698, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 764, 198, 220, 1366, 39225, 1961, 62, 18601, 20754, 2099, 1168, 6369, 34, 3698, 62, 51, 62, 9693, 1503, 1961, 62, 18601, 2751, 764, 198, 220, 1366, 3563, 56, 28378, 62, 10943, 35, 62, 44, 24805, 2751, 2099, 1168, 6369, 34, 3698, 62, 51, 62, 2257, 56, 28378, 62, 10943, 35, 62, 44, 24805, 2751, 764, 198, 220, 1366, 3563, 56, 28378, 62, 44, 24805, 2751, 2099, 1168, 6369, 34, 3698, 62, 51, 62, 2257, 56, 28378, 62, 44, 24805, 2751, 764, 628, 220, 5050, 29244, 6158, 62, 32457, 62, 9693, 36, 2767, 62, 9693, 36, 2767, 62, 26947, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 38715, 5883, 3525, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 38715, 5883, 3525, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 33249, 9693, 36, 2767, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 49, 53, 62, 10426, 5805, 62, 9693, 36, 2767, 62, 26947, 62, 13252, 2394, 8, 2099, 1006, 284, 16876, 62, 10426, 5805, 62, 36, 2538, 10979, 764, 198, 220, 5050, 27841, 62, 37, 4261, 21250, 62, 26947, 62, 10468, 62, 57, 4061, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 57, 4061, 2099, 1006, 284, 7852, 62, 6242, 2969, 62, 57, 4061, 764, 198, 220, 5050, 29244, 6158, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 6369, 34, 3698, 8, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 29244, 6158, 62, 37815, 3525, 62, 9936, 47, 1546, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 37815, 3525, 8, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 29244, 6158, 62, 38715, 4805, 30737, 62, 24805, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 37815, 3525, 8, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 29244, 6158, 62, 38715, 4805, 30737, 62, 34, 6965, 198, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 1988, 7, 8905, 62, 37815, 3525, 8, 2099, 1395, 18601, 2751, 764, 198, 220, 5050, 29244, 6158, 62, 36227, 37, 62, 2257, 56, 2538, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 5222, 3069, 62, 2257, 56, 2538, 2099, 1168, 6369, 34, 3698, 62, 5222, 3069, 62, 2257, 56, 2538, 198, 220, 220, 220, 220, 220, 5145, 9399, 62, 36227, 37, 62, 36, 2538, 10979, 2099, 1006, 284, 16876, 62, 10426 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
INTERFACE zif_abapdi_test PUBLIC . METHODS initialize. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 397, 499, 10989, 62, 9288, 198, 220, 44731, 764, 628, 220, 337, 36252, 50, 41216, 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 ]
CLASS zcl_aoc_check_36 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_36 IMPLEMENTATION. METHOD constructor. super->constructor( ). version = '001'. position = '036'. has_documentation = abap_true. has_attributes = abap_true. attributes_ok = abap_true. add_obj_type( 'CLAS' ). insert_scimessage( iv_code = '001' iv_text = 'Exception text not in use, &1'(m01) ). ENDMETHOD. METHOD run. * abapOpenChecks * https://github.com/larshp/abapOpenChecks * MIT License DEFINE _check_field. READ TABLE lt_comp WITH KEY name = &1 TRANSPORTING NO FIELDS. IF sy-subrc <> 0. CONTINUE. ENDIF. END-OF-DEFINITION. DATA: lo_object TYPE REF TO cl_abap_objectdescr, lo_struct TYPE REF TO cl_abap_structdescr, lv_name TYPE wbcrossgt-name, lv_category TYPE seoclassdf-category, lt_comp TYPE cl_abap_structdescr=>component_table. FIELD-SYMBOLS: <ls_attr> LIKE LINE OF lo_object->attributes. IF object_type <> 'CLAS'. RETURN. ENDIF. SELECT SINGLE category FROM seoclassdf INTO lv_category WHERE clsname = object_name AND version = '1'. IF sy-subrc <> 0 OR lv_category <> seoc_category_exception. RETURN. ENDIF. lo_object ?= cl_abap_objectdescr=>describe_by_name( object_name ). LOOP AT lo_object->attributes ASSIGNING <ls_attr> WHERE type_kind = cl_abap_classdescr=>typekind_struct2 AND visibility = cl_abap_classdescr=>public AND is_constant = abap_true AND is_inherited = abap_false AND is_interface = abap_false. IF <ls_attr>-name = object_name. * ignore default text name CONTINUE. ENDIF. lo_struct ?= lo_object->get_attribute_type( <ls_attr>-name ). lt_comp = lo_struct->get_components( ). IF lines( lt_comp ) <> 6. CONTINUE. ENDIF. _check_field 'MSGID'. _check_field 'MSGNO'. _check_field 'ATTR1'. _check_field 'ATTR2'. _check_field 'ATTR3'. _check_field 'ATTR4'. CONCATENATE object_name '\DA:' <ls_attr>-name INTO lv_name. SELECT SINGLE name FROM wbcrossgt INTO lv_name WHERE otype = 'DA' AND name = lv_name ##WARN_OK. IF sy-subrc <> 0. inform( p_sub_obj_type = object_type p_sub_obj_name = object_name p_test = myname p_kind = mv_errty p_code = '001' p_param_1 = <ls_attr>-name ). ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 64, 420, 62, 9122, 62, 2623, 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, 2623, 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, 48597, 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, 628, 220, 220, 220, 7550, 62, 1416, 320, 7589, 7, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 8189, 796, 705, 8298, 6, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 5239, 796, 705, 16922, 2420, 407, 287, 779, 11, 1222, 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, 23449, 8881, 4808, 9122, 62, 3245, 13, 198, 220, 220, 220, 220, 220, 20832, 43679, 300, 83, 62, 5589, 13315, 35374, 1438, 796, 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, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 12, 19238, 12, 7206, 20032, 17941, 13, 628, 220, 220, 220, 42865, 25, 2376, 62, 15252, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 15252, 20147, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 7249, 220, 220, 41876, 4526, 37, 5390, 537, 62, 397, 499, 62, 7249, 20147, 81, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 3672, 220, 220, 220, 220, 41876, 266, 15630, 1214, 13655, 12, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 85, 62, 22872, 41876, 384, 420, 31172, 7568, 12, 22872, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 5589, 220, 220, 220, 220, 41876, 537, 62, 397, 499, 62, 7249, 20147, 81, 14804, 42895, 62, 11487, 13, 628, 220, 220, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 35226, 29, 34178, 48920, 3963, 2376, 62, 15252, 3784, 1078, 7657, 13, 628, 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, 33493, 311, 2751, 2538, 6536, 16034, 384, 420, 31172, 7568, 198, 220, 220, 220, 220, 220, 39319, 300, 85, 62, 22872, 198, 220, 220, 220, 220, 220, 33411, 537, 82, 3672, 796, 2134, 62, 3672, 198, 220, 220, 220, 220, 220, 5357, 2196, 796, 705, 16, 4458, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 6375, 300, 85, 62, 22872, 1279, 29, 384, 420, 62, 22872, 62, 1069, 4516, 13, 198, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 2376, 62, 15252, 5633, 28, 537, 62, 397, 499, 62, 15252, 20147, 81, 14804, 20147, 4892, 62, 1525, 62, 3672, 7, 2134, 62, 3672, 6739, 628, 220, 220, 220, 17579, 3185, 5161, 2376, 62, 15252, 3784, 1078, 7657, 24994, 3528, 15871, 1279, 7278, 62, 35226, 29, 198, 220, 220, 220, 220, 220, 220, 220, 33411, 2099, 62, 11031, 796, 537, 62, 397, 499, 62, 4871, 20147, 81, 14804, 4906, 11031, 62, 7249, 17, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 20742, 796, 537, 62, 397, 499, 62, 4871, 20147, 81, 14804, 11377, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 318, 62, 9979, 415, 796, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 318, 62, 259, 372, 863, 796, 450, 499, 62, 9562, 198, 220, 220, 220, 220, 220, 220, 220, 5357, 318, 62, 39994, 796, 450, 499, 62, 9562, 13, 628, 220, 220, 220, 220, 220, 16876, 1279, 7278, 62, 35226, 29, 12, 3672, 796, 2134, 62, 3672, 13, 198, 9, 8856, 4277, 2420, 1438, 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, 2376, 62, 7249, 5633, 28, 2376, 62, 15252, 3784, 1136, 62, 42348, 62, 4906, 7, 1279, 7278, 62, 35226, 29, 12, 3672, 6739, 198, 220, 220, 220, 220, 220, 300, 83, 62, 5589, 796, 2376, 62, 7249, 3784, 1136, 62, 5589, 3906, 7, 6739, 628, 220, 220, 220, 220, 220, 16876, 3951, 7, 300, 83, 62, 5589, 1267, 1279, 29, 718, 13, 198, 220, 220, 220, 220, 220, 220, 220, 43659, 8924, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 220, 220, 4808, 9122, 62, 3245, 705, 5653, 38, 2389, 4458, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
********************************************************************** * PROGRAMM CODE CLASS ABSTRACTION ********************************************************************** class lcl_code_object definition create private final. public section. types: begin of ty_include, lnum type i, obj type ref to lcl_code_object, end of ty_include. data a_name type sobj_name. data at_includes type standard table of ty_include read-only. data at_codetab type string_table read-only. data a_devclass type devclass read-only. class-methods load importing io_accessor type ref to lif_devobj_accessor i_progname type sobj_name returning value(ro_obj) type ref to lcl_code_object raising lcx_error. endclass. class lcl_code_object implementation. method load. data lo type ref to lcl_code_object. data lo_ex type ref to lcx_error. data l_line like line of lo->at_codetab. data l_incname type sobj_name. data ls_include type ty_include. create object lo. lo->at_codetab = io_accessor->get_code( i_progname = i_progname ). lo->a_devclass = io_accessor->get_devc( i_progname = i_progname ). lo->a_name = i_progname. data lo_matcher type ref to lcl_include_matcher. create object lo_matcher. loop at lo->at_codetab into l_line. clear l_incname. ls_include-lnum = sy-tabix. l_incname = lo_matcher->match_include( l_line ). if l_incname is not initial. try. ls_include-obj = load( io_accessor = io_accessor i_progname = l_incname ). catch lcx_error into lo_ex. lo_ex->msg = lo_ex->msg && `; ` && i_progname && '@' && |{ ls_include-lnum }|. raise exception lo_ex. endtry. append ls_include to lo->at_includes. endif. endloop. ro_obj = lo. endmethod. endclass. ********************************************************************** * TEST - CODE OBJECT ********************************************************************** class ltcl_code_object_test definition final for testing duration short risk level harmless. private section. methods load for testing raising lcx_error. endclass. class ltcl_code_object_test implementation. method load. data lo_obj type ref to lcl_code_object. data lo_acc type ref to ltcl_dummy_extractor. create object lo_acc. lo_obj = lcl_code_object=>load( io_accessor = lo_acc i_progname = 'XTESTPROG' ). cl_abap_unit_assert=>assert_not_initial( act = lines( lo_obj->at_codetab ) ). cl_abap_unit_assert=>assert_not_initial( act = lines( lo_obj->at_includes ) ). cl_abap_unit_assert=>assert_equals( act = lo_obj->a_devclass exp = 'XTEST' ). cl_abap_unit_assert=>assert_equals( exp = lo_acc->lif_devobj_accessor~get_code( 'XTESTPROG' ) act = lo_obj->at_codetab ). data ls_include type lcl_code_object=>ty_include. read table lo_obj->at_includes into ls_include index 1. cl_abap_unit_assert=>assert_not_initial( act = lines( ls_include-obj->at_codetab ) ). cl_abap_unit_assert=>assert_not_initial( act = lines( ls_include-obj->at_includes ) ). cl_abap_unit_assert=>assert_equals( act = ls_include-obj->a_devclass exp = 'XTEST' ). cl_abap_unit_assert=>assert_equals( act = ls_include-lnum exp = 2 ). cl_abap_unit_assert=>assert_equals( exp = lo_acc->lif_devobj_accessor~get_code( 'XTESTPROG_TOP' ) act = ls_include-obj->at_codetab ). read table lo_obj->at_includes into ls_include index 2. cl_abap_unit_assert=>assert_not_initial( act = lines( ls_include-obj->at_codetab ) ). cl_abap_unit_assert=>assert_initial( act = lines( ls_include-obj->at_includes ) ). cl_abap_unit_assert=>assert_equals( act = ls_include-obj->a_devclass exp = 'XTEST' ). cl_abap_unit_assert=>assert_equals( act = ls_include-lnum exp = 3 ). cl_abap_unit_assert=>assert_equals( exp = lo_acc->lif_devobj_accessor~get_code( 'XTESTPROG_F01' ) act = ls_include-obj->at_codetab ). read table lo_obj->at_includes into ls_include index 3. cl_abap_unit_assert=>assert_not_initial( act = lines( ls_include-obj->at_codetab ) ). cl_abap_unit_assert=>assert_initial( act = lines( ls_include-obj->at_includes ) ). cl_abap_unit_assert=>assert_equals( act = ls_include-obj->a_devclass exp = 'XTEST_EXT' ). endmethod. endclass.
[ 17174, 17174, 2466, 1174, 198, 9, 46805, 44, 42714, 42715, 9564, 18601, 44710, 198, 17174, 17174, 2466, 1174, 198, 198, 4871, 300, 565, 62, 8189, 62, 15252, 6770, 2251, 2839, 2457, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 1259, 62, 17256, 11, 198, 220, 220, 220, 220, 220, 220, 220, 300, 22510, 220, 2099, 1312, 11, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 220, 220, 2099, 1006, 284, 300, 565, 62, 8189, 62, 15252, 11, 198, 220, 220, 220, 220, 220, 886, 286, 1259, 62, 17256, 13, 628, 220, 220, 220, 1366, 257, 62, 3672, 220, 220, 220, 220, 220, 2099, 27355, 73, 62, 3672, 13, 198, 220, 220, 220, 1366, 379, 62, 42813, 2099, 3210, 3084, 286, 1259, 62, 17256, 1100, 12, 8807, 13, 198, 220, 220, 220, 1366, 379, 62, 19815, 316, 397, 220, 2099, 4731, 62, 11487, 1100, 12, 8807, 13, 198, 220, 220, 220, 1366, 257, 62, 7959, 4871, 220, 2099, 1614, 4871, 1100, 12, 8807, 13, 628, 220, 220, 220, 1398, 12, 24396, 82, 3440, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 15526, 273, 2099, 1006, 284, 3868, 62, 7959, 26801, 62, 15526, 273, 198, 220, 220, 220, 220, 220, 220, 220, 1312, 62, 1676, 70, 3672, 220, 2099, 27355, 73, 62, 3672, 198, 220, 220, 220, 220, 220, 8024, 198, 220, 220, 220, 220, 220, 220, 220, 1988, 7, 305, 62, 26801, 8, 2099, 1006, 284, 300, 565, 62, 8189, 62, 15252, 198, 220, 220, 220, 220, 220, 8620, 198, 220, 220, 220, 220, 220, 220, 220, 300, 66, 87, 62, 18224, 13, 198, 437, 4871, 13, 628, 198, 4871, 300, 565, 62, 8189, 62, 15252, 7822, 13, 198, 220, 2446, 3440, 13, 198, 220, 220, 220, 1366, 2376, 220, 220, 220, 220, 220, 220, 220, 220, 2099, 1006, 284, 300, 565, 62, 8189, 62, 15252, 13, 198, 220, 220, 220, 1366, 2376, 62, 1069, 220, 220, 220, 220, 220, 2099, 1006, 284, 300, 66, 87, 62, 18224, 13, 198, 220, 220, 220, 1366, 300, 62, 1370, 220, 220, 220, 220, 588, 1627, 286, 2376, 3784, 265, 62, 19815, 316, 397, 13, 198, 220, 220, 220, 1366, 300, 62, 1939, 3672, 220, 2099, 27355, 73, 62, 3672, 13, 198, 220, 220, 220, 1366, 43979, 62, 17256, 2099, 1259, 62, 17256, 13, 628, 220, 220, 220, 2251, 2134, 2376, 13, 198, 220, 220, 220, 2376, 3784, 265, 62, 19815, 316, 397, 796, 33245, 62, 15526, 273, 3784, 1136, 62, 8189, 7, 1312, 62, 1676, 70, 3672, 796, 1312, 62, 1676, 70, 3672, 6739, 198, 220, 220, 220, 2376, 3784, 64, 62, 7959, 4871, 796, 33245, 62, 15526, 273, 3784, 1136, 62, 7959, 66, 7, 1312, 62, 1676, 70, 3672, 796, 1312, 62, 1676, 70, 3672, 6739, 198, 220, 220, 220, 2376, 3784, 64, 62, 3672, 220, 220, 220, 220, 796, 1312, 62, 1676, 70, 3672, 13, 628, 220, 220, 220, 1366, 2376, 62, 6759, 2044, 2099, 1006, 284, 300, 565, 62, 17256, 62, 6759, 2044, 13, 198, 220, 220, 220, 2251, 2134, 2376, 62, 6759, 2044, 13, 628, 220, 220, 220, 9052, 379, 2376, 3784, 265, 62, 19815, 316, 397, 656, 300, 62, 1370, 13, 198, 220, 220, 220, 220, 220, 1598, 300, 62, 1939, 3672, 13, 198, 220, 220, 220, 220, 220, 43979, 62, 17256, 12, 18755, 388, 796, 827, 12, 8658, 844, 13, 198, 220, 220, 220, 220, 220, 300, 62, 1939, 3672, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 6759, 2044, 3784, 15699, 62, 17256, 7, 300, 62, 1370, 6739, 628, 220, 220, 220, 220, 220, 611, 300, 62, 1939, 3672, 318, 407, 4238, 13, 198, 220, 220, 220, 220, 220, 220, 220, 1949, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 17256, 12, 26801, 220, 796, 3440, 7, 33245, 62, 15526, 273, 796, 33245, 62, 15526, 273, 1312, 62, 1676, 70, 3672, 796, 300, 62, 1939, 3672, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 4929, 300, 66, 87, 62, 18224, 656, 2376, 62, 1069, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2376, 62, 1069, 3784, 19662, 796, 2376, 62, 1069, 3784, 19662, 11405, 4600, 26, 4600, 11405, 1312, 62, 1676, 70, 3672, 11405, 705, 31, 6, 11405, 930, 90, 43979, 62, 17256, 12, 18755, 388, 1782, 91, 13, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 5298, 6631, 2376, 62, 1069, 13, 198, 220, 220, 220, 220, 220, 220, 220, 886, 28311, 13, 198, 220, 220, 220, 220, 220, 220, 220, 24443, 43979, 62, 17256, 284, 2376, 3784, 265, 62, 42813, 13, 198, 220, 220, 220, 220, 220, 45762, 13, 198, 220, 220, 220, 886, 26268, 13, 628, 220, 220, 220, 686, 62, 26801, 796, 2376, 13, 628, 220, 886, 24396, 13, 198, 198, 437, 4871, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 43001, 532, 42714, 25334, 23680, 198, 17174, 17174, 2466, 1174, 198, 198, 4871, 300, 83, 565, 62, 8189, 62, 15252, 62, 9288, 6770, 2457, 198, 220, 329, 4856, 198, 220, 9478, 1790, 198, 220, 2526, 1241, 23585, 13, 628, 220, 2839, 2665, 13, 198, 220, 220, 220, 5050, 3440, 329, 4856, 8620, 300, 66, 87, 62, 18224, 13, 198, 437, 4871, 13, 198, 198, 4871, 300, 83, 565, 62, 8189, 62, 15252, 62, 9288, 7822, 13, 198, 220, 2446, 3440, 13, 198, 220, 220, 220, 1366, 2376, 62, 26801, 220, 2099, 1006, 284, 300, 565, 62, 8189, 62, 15252, 13, 198, 220, 220, 220, 1366, 2376, 62, 4134, 220, 2099, 1006, 284, 300, 83, 565, 62, 67, 13513, 62, 2302, 40450, 13, 628, 220, 220, 220, 2251, 2134, 2376, 62, 4134, 13, 628, 220, 220, 220, 2376, 62, 26801, 796, 300, 565, 62, 8189, 62, 15252, 14804, 2220, 7, 33245, 62, 15526, 273, 796, 2376, 62, 4134, 1312, 62, 1676, 70, 3672, 796, 705, 25010, 6465, 4805, 7730, 6, 6739, 628, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 1662, 62, 36733, 7, 719, 796, 3951, 7, 2376, 62, 26801, 3784, 265, 62, 19815 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
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. "add_field 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. "dbkey_decode 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. "dbkey_encode 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. "dir_decode 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. "dir_encode 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. "file_encode 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. "file_decode 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. "get_field 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. "jump_decode 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. "jump_encode 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. "obj_encode 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. " parse_fields. 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. " stage_decode. 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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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_t100_dyn_msg PUBLIC. INTERFACES if_message. INTERFACES if_t100_message. DATA msgv1 TYPE string. DATA msgv2 TYPE string. DATA msgv3 TYPE string. DATA msgv4 TYPE string. DATA msgty TYPE string. ENDINTERFACE.
[ 41358, 49836, 611, 62, 83, 3064, 62, 67, 2047, 62, 19662, 44731, 13, 628, 220, 23255, 37, 2246, 1546, 611, 62, 20500, 13, 198, 220, 23255, 37, 2246, 1546, 611, 62, 83, 3064, 62, 20500, 13, 628, 220, 42865, 31456, 85, 16, 41876, 4731, 13, 198, 220, 42865, 31456, 85, 17, 41876, 4731, 13, 198, 220, 42865, 31456, 85, 18, 41876, 4731, 13, 198, 220, 42865, 31456, 85, 19, 41876, 4731, 13, 198, 220, 42865, 31456, 774, 41876, 4731, 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 ]
CLASS ltd_clean_code_manager DEFINITION FOR TESTING. PUBLIC SECTION. INTERFACES: y_if_clean_code_manager. ENDCLASS. CLASS ltd_clean_code_manager IMPLEMENTATION. METHOD y_if_clean_code_manager~read_check_customizing. result = VALUE #( ( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'N' threshold = 2 ) ( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'E' threshold = 2 ) ). ENDMETHOD. METHOD y_if_clean_code_manager~calculate_obj_creation_date. result = '20190101'. ENDMETHOD. ENDCLASS. CLASS ltd_ref_scan_manager DEFINITION INHERITING FROM y_scan_manager_double FOR TESTING. PUBLIC SECTION. METHODS set_data_for_ok. METHODS set_data_for_error. METHODS set_pseudo_comment_ok. PRIVATE SECTION. ENDCLASS. CLASS ltd_ref_scan_manager IMPLEMENTATION. METHOD set_data_for_ok. convert_code( VALUE #( ( 'REPORT y_example. ' ) ( ' CLASS y_example_class DEFINITION. "#EC NUMBER_METHODS ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS one. ' ) ( ' PROTECTED SECTION. ' ) ( ' PRIVATE SECTION. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example_class IMPLEMENTATION. ' ) ( ' METHOD one. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ) ). ENDMETHOD. METHOD set_data_for_error. convert_code( VALUE #( ( 'REPORT y_example. ' ) ( ' CLASS y_example_class DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS one. ' ) ( ' PROTECTED SECTION. ' ) ( ' CLASS-METHODS two. ' ) ( ' METHODS: ' ) ( ' three, ' ) ( ' four. ' ) ( ' PRIVATE SECTION. ' ) ( ' METHODS: five. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example_class IMPLEMENTATION. ' ) ( ' METHOD one. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD two. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD three. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD four. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD five. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ) ). ENDMETHOD. METHOD set_pseudo_comment_ok. convert_code( VALUE #( ( 'REPORT y_example. ' ) ( ' CLASS y_example_class DEFINITION. "#EC NUMBER_METHODS ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS one. ' ) ( ' PROTECTED SECTION. ' ) ( ' CLASS-METHODS two. ' ) ( ' METHODS: ' ) ( ' three, ' ) ( ' four. ' ) ( ' PRIVATE SECTION. ' ) ( ' METHODS: five. ' ) ( ' ENDCLASS. ' ) ( ' CLASS y_example_class IMPLEMENTATION. ' ) ( ' METHOD one. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD two. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD three. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD four. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD five. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ) ). ENDMETHOD. ENDCLASS. CLASS ltd_clean_code_exemption_no DEFINITION FOR TESTING INHERITING FROM y_exemption_handler. PUBLIC SECTION. METHODS: is_object_exempted REDEFINITION. ENDCLASS. CLASS ltd_clean_code_exemption_no IMPLEMENTATION. METHOD is_object_exempted. RETURN. ENDMETHOD. ENDCLASS. CLASS local_test_class DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. DATA: cut TYPE REF TO y_check_number_methods, ref_scan_manager_double TYPE REF TO ltd_ref_scan_manager. METHODS: setup, assert_errors IMPORTING err_cnt TYPE i, assert_pseudo_comments IMPORTING pc_cnt TYPE i, is_bound FOR TESTING, number_methods_ok FOR TESTING, number_methods_error FOR TESTING, pseudo_comment_ok FOR TESTING. ENDCLASS. CLASS y_check_number_methods DEFINITION LOCAL FRIENDS local_test_class. CLASS local_test_class IMPLEMENTATION. METHOD setup. cut = NEW y_check_number_methods( ). ref_scan_manager_double = NEW ltd_ref_scan_manager( ). cut->ref_scan_manager ?= ref_scan_manager_double. cut->clean_code_manager = NEW ltd_clean_code_manager( ). cut->clean_code_exemption_handler = NEW ltd_clean_code_exemption_no( ). cut->attributes_maintained = abap_true. ENDMETHOD. METHOD is_bound. cl_abap_unit_assert=>assert_bound( EXPORTING act = cut ). ENDMETHOD. METHOD number_methods_ok. ref_scan_manager_double->set_data_for_ok( ). cut->run( ). assert_errors( 0 ). assert_pseudo_comments( 0 ). ENDMETHOD. METHOD number_methods_error. ref_scan_manager_double->set_data_for_error( ). cut->run( ). assert_errors( 1 ). assert_pseudo_comments( 0 ). ENDMETHOD. METHOD pseudo_comment_ok. ref_scan_manager_double->set_pseudo_comment_ok( ). cut->run( ). assert_errors( 0 ). assert_pseudo_comments( 1 ). ENDMETHOD. METHOD assert_errors. cl_abap_unit_assert=>assert_equals( EXPORTING act = cut->statistics->get_number_errors( ) exp = err_cnt ). ENDMETHOD. METHOD assert_pseudo_comments. cl_abap_unit_assert=>assert_equals( EXPORTING act = cut->statistics->get_number_pseudo_comments( ) exp = pc_cnt ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 8671, 62, 27773, 62, 8189, 62, 37153, 5550, 20032, 17941, 7473, 43001, 2751, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 25, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 8671, 62, 27773, 62, 8189, 62, 37153, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 93, 961, 62, 9122, 62, 23144, 2890, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 357, 4174, 62, 261, 62, 9288, 8189, 796, 450, 499, 62, 7942, 4174, 62, 261, 62, 27781, 62, 8189, 796, 450, 499, 62, 7942, 1293, 78, 796, 705, 45, 6, 11387, 796, 362, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 357, 4174, 62, 261, 62, 9288, 8189, 796, 450, 499, 62, 7942, 4174, 62, 261, 62, 27781, 62, 8189, 796, 450, 499, 62, 7942, 1293, 78, 796, 705, 36, 6, 11387, 796, 362, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 331, 62, 361, 62, 27773, 62, 8189, 62, 37153, 93, 9948, 3129, 378, 62, 26801, 62, 38793, 62, 4475, 13, 198, 220, 220, 220, 1255, 796, 705, 23344, 486, 486, 4458, 198, 220, 23578, 49273, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 8671, 62, 5420, 62, 35836, 62, 37153, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 331, 62, 35836, 62, 37153, 62, 23352, 7473, 43001, 2751, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 7890, 62, 1640, 62, 482, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 7890, 62, 1640, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 7752, 12003, 62, 23893, 62, 482, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 8671, 62, 5420, 62, 35836, 62, 37153, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 900, 62, 7890, 62, 1640, 62, 482, 13, 198, 220, 220, 220, 10385, 62, 8189, 7, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 62, 4871, 5550, 20032, 17941, 13, 25113, 2943, 36871, 13246, 62, 49273, 50, 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, 530, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 48006, 9782, 1961, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 4810, 3824, 6158, 44513, 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, 62, 4871, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 530, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 198, 220, 220, 220, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 900, 62, 7890, 62, 1640, 62, 18224, 13, 198, 220, 220, 220, 10385, 62, 8189, 7, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 42715, 331, 62, 20688, 62, 4871, 5550, 20032, 17941, 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, 530, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 48006, 9782, 1961, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 42715, 12, 49273, 50, 734, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 50, 25, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 1115, 11, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 1440, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 4810, 3824, 6158, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 50, 25, 1936, 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, 62, 4871, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 530, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 734, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1115, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1440, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 337, 36252, 1936, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 23578, 31631, 13, 705, 1267, 198, 220, 220, 220, 1267, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 900, 62, 7752, 12003, 62, 23893, 62, 482, 13, 198, 220, 220, 220, 10385, 62, 8189, 7, 26173, 8924, 1303, 7, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ZCQSE_MRG_ABAP_EXPORT *& *&---------------------------------------------------------------------* *& Exports ABAP Code for ConQAT analysis. *& (c) 2013 CQSE GmbH *&---------------------------------------------------------------------* REPORT zcqse_mrg_abap_export. TYPE-POOLS abap. *---------------------------------------------------------------------------- * Parmeters which must be configured for the analyzed MR system *---------------------------------------------------------------------------- CONSTANTS: export_all(3) TYPE c VALUE 'all', " if true, always write output to application server, otherwise " file is saved directly to conqat server (does not work in batch mode) force_save_to_as TYPE abap_bool VALUE abap_false. PARAMETERS: " name of the application, if 'all' all custom code /MRG/*, Y*, Z* will be " exported applname TYPE string DEFAULT export_all LOWER CASE, " pattern for package names to export, ignored if application is 'all' packages TYPE string, " enable code inspector analysis exec_ci TYPE abap_bool DEFAULT abap_true AS CHECKBOX, " variant for code inspector ci_var TYPE sci_chkv DEFAULT 'TQE_RULESET', ci_user TYPE syuname DEFAULT 'NY25163'. DATA: machine TYPE string. machine = sy-sysid. *---------------------------------------------------------------------------- PERFORM main. *&---------------------------------------------------------------------* *& Form main *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM main. DATA: file_name TYPE string, tmp_file_name TYPE string, exporter TYPE REF TO zcl_cqse_abap_exporter, save_to_as TYPE abap_bool. IF force_save_to_as EQ abap_true. save_to_as = abap_true. ELSE. save_to_as = sy-batch. ENDIF. PERFORM init_filenames USING save_to_as CHANGING file_name tmp_file_name. IF save_to_as EQ abap_true. CREATE OBJECT exporter EXPORTING file_name = tmp_file_name. ELSE. CREATE OBJECT exporter EXPORTING file_name = file_name. ENDIF. IF applname EQ export_all OR packages IS INITIAL. exporter->add_by_name_pattern('/MRG/%'). exporter->add_by_name_pattern('Y%'). exporter->add_by_name_pattern('Z%'). ELSE. exporter->add_by_package_pattern( pattern = packages include_subpackages = abap_false ). ENDIF. IF exec_ci EQ abap_true. exporter->add_ci_variant( variant = ci_var variant_user = ci_user ). ENDIF. exporter->save( save_to_server = save_to_as ). IF save_to_as EQ abap_true. PERFORM rename_tmp_to_zip USING tmp_file_name file_name. ENDIF. ENDFORM. "main *&---------------------------------------------------------------------* *& Form init_filenames *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM init_filenames USING value(save_to_server) TYPE abap_bool CHANGING file_name TYPE string tmp_file_name TYPE string. CONSTANTS: basedir_gui TYPE string VALUE '\\mucs801046.dev.munich.munichre.com\conqat_inbox', basedir_batch TYPE string VALUE '/sapexpimp/all'. IF save_to_server EQ abap_true. IF applname EQ export_all. CONCATENATE basedir_batch '/tqe/' INTO file_name . ELSE. CONCATENATE basedir_batch '/' machine '/soquo/zip/' INTO file_name. ENDIF. ELSE. IF applname EQ export_all. CONCATENATE basedir_gui '\abap\' INTO file_name. ELSE. CONCATENATE basedir_gui '\SAP_' applname '\' machine '\' INTO file_name. ENDIF. ENDIF. CONCATENATE file_name 'abap_' machine '_' applname '_' sy-datum '-' sy-uzeit INTO file_name. CONCATENATE file_name '.tmp' INTO tmp_file_name. CONCATENATE file_name '.zip' INTO file_name. ENDFORM. "build_filenames *&---------------------------------------------------------------------* *& Form rename_tmp_to_zip *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM rename_tmp_to_zip USING value(tmp_file_name) TYPE string value(file_name) TYPE string. DATA: cmd_mv(180) TYPE c, response TYPE TABLE OF char200. CONCATENATE 'mv ' tmp_file_name ' ' file_name INTO cmd_mv RESPECTING BLANKS. CALL 'SYSTEM' ID 'COMMAND' FIELD cmd_mv ID 'TAB' FIELD response. ENDFORM. "rename_tmp_to_zip
[ 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 6358, 220, 1168, 34, 48, 5188, 62, 13599, 38, 62, 6242, 2969, 62, 6369, 15490, 201, 198, 9, 5, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 1475, 3742, 9564, 2969, 6127, 329, 1482, 48, 1404, 3781, 13, 201, 198, 9, 5, 357, 66, 8, 2211, 327, 48, 5188, 402, 2022, 39, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 201, 198, 2200, 15490, 220, 1976, 66, 80, 325, 62, 76, 41345, 62, 397, 499, 62, 39344, 13, 201, 198, 201, 198, 25216, 12, 16402, 3535, 50, 450, 499, 13, 201, 198, 201, 198, 9, 10097, 10541, 201, 198, 9, 47796, 7307, 543, 1276, 307, 17839, 329, 262, 15475, 17242, 1080, 201, 198, 9, 10097, 10541, 201, 198, 201, 198, 10943, 2257, 1565, 4694, 25, 201, 198, 220, 10784, 62, 439, 7, 18, 8, 41876, 269, 26173, 8924, 220, 705, 439, 3256, 201, 198, 201, 198, 220, 366, 611, 2081, 11, 1464, 3551, 5072, 284, 3586, 4382, 11, 4306, 201, 198, 220, 366, 2393, 318, 7448, 3264, 284, 369, 80, 265, 4382, 357, 22437, 407, 670, 287, 15458, 4235, 8, 201, 198, 220, 2700, 62, 21928, 62, 1462, 62, 292, 41876, 450, 499, 62, 30388, 26173, 8924, 450, 499, 62, 9562, 13, 201, 198, 201, 198, 201, 198, 27082, 2390, 2767, 4877, 25, 201, 198, 220, 366, 1438, 286, 262, 3586, 11, 611, 705, 439, 6, 477, 2183, 2438, 1220, 13599, 38, 15211, 11, 575, 25666, 1168, 9, 481, 307, 201, 198, 220, 366, 29050, 201, 198, 220, 3680, 3672, 41876, 4731, 5550, 38865, 10784, 62, 439, 406, 36048, 42001, 11, 201, 198, 201, 198, 220, 366, 3912, 329, 5301, 3891, 284, 10784, 11, 9514, 611, 3586, 318, 705, 439, 6, 201, 198, 220, 10392, 41876, 4731, 11, 201, 198, 201, 198, 220, 366, 7139, 2438, 24110, 3781, 201, 198, 220, 2452, 62, 979, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 7054, 5870, 25171, 39758, 11, 201, 198, 201, 198, 220, 366, 15304, 329, 2438, 24110, 201, 198, 220, 269, 72, 62, 7785, 41876, 20681, 62, 354, 74, 85, 5550, 38865, 705, 51, 48, 36, 62, 49, 6239, 1546, 2767, 3256, 201, 198, 220, 269, 72, 62, 7220, 41876, 827, 403, 480, 5550, 38865, 705, 12805, 1495, 24136, 4458, 201, 198, 201, 198, 26947, 25, 201, 198, 220, 220, 220, 4572, 41876, 4731, 13, 201, 198, 201, 198, 30243, 796, 827, 12, 17597, 312, 13, 201, 198, 201, 198, 9, 10097, 10541, 201, 198, 201, 198, 201, 198, 18973, 21389, 1388, 13, 201, 198, 201, 198, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 5, 220, 220, 220, 220, 220, 5178, 220, 1388, 201, 198, 9, 5, 10097, 30934, 9, 201, 198, 9, 220, 220, 220, 220, 220, 220, 2420, 201, 198, 9, 10097, 23031, 9, 201, 198, 21389, 1388, 13, 201, 198, 201, 198, 220, 42865, 25, 201, 198, 220, 220, 220, 2393, 62, 3672, 41876, 4731, 11, 201, 198, 220, 220, 220, 45218, 62, 7753, 62, 3672, 41876, 4731, 11, 201, 198, 220, 220, 220, 1033, 4337, 41876, 4526, 37, 5390, 1976, 565, 62, 66, 80, 325, 62, 397, 499, 62, 1069, 26634, 11, 201, 198, 220, 220, 220, 3613, 62, 1462, 62, 292, 41876, 450, 499, 62, 30388, 13, 201, 198, 201, 198, 220, 16876, 2700, 62, 21928, 62, 1462, 62, 292, 36529, 450, 499, 62, 7942, 13, 201, 198, 220, 220, 220, 3613, 62, 1462, 62, 292, 796, 450, 499, 62, 7942, 13, 201, 198, 220, 17852, 5188, 13, 201, 198, 220, 220, 220, 3613, 62, 1462, 62, 292, 796, 827, 12, 43501, 13, 201, 198, 220, 23578, 5064, 13, 201, 198, 201, 198, 220, 19878, 21389, 2315, 62, 10379, 268, 1047, 201, 198, 220, 220, 220, 1294, 2751, 3613, 62, 1462, 62, 292, 201, 198, 220, 220, 220, 5870, 15567, 2751, 2393, 62, 3672, 45218, 62, 7753, 62, 3672, 13, 201, 198, 201, 198, 220, 16876, 3613, 62, 1462, 62, 292, 36529, 450, 499, 62, 7942, 13, 201, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 1033, 4337, 201, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 62, 3672, 796, 45218, 62, 7753, 62, 3672, 13, 201, 198, 220, 17852, 5188, 13, 201, 198, 220, 220, 220, 29244, 6158, 25334, 23680, 1033, 4337, 201, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 201, 198, 220, 220, 220, 220, 220, 220, 220, 2393, 62, 3672, 796, 2393, 62, 3672, 13, 201, 198, 220, 23578, 5064, 13, 201, 198, 201, 198, 220, 16876, 3680, 3672, 36529, 10784, 62, 439, 6375, 10392, 3180, 3268, 2043, 12576, 13, 201, 198, 220, 220, 220, 1033, 4337, 3784, 2860, 62, 1525, 62, 3672, 62, 33279, 10786, 14, 13599, 38, 14, 4, 27691, 201, 198, 220, 220, 220, 1033, 4337, 3784, 2860, 62, 1525, 62, 3672, 62, 33279, 10786, 56, 4, 27691, 201, 198, 220, 220, 220, 1033, 4337, 3784, 2860, 62, 1525, 62, 3672, 62, 33279, 10786, 57, 4, 27691, 201, 198, 220, 17852, 5188, 13, 201, 198, 220, 220, 220, 1033, 4337, 3784, 2860, 62, 1525, 62, 26495, 62, 33279, 7, 201, 198, 220, 220, 220, 220, 220, 3912, 796, 10392, 201, 198, 220, 220, 220, 220, 220, 2291, 62, 7266, 43789, 796, 450, 499, 62, 9562, 201, 198, 220, 220, 220, 220, 220, 6739, 201, 198, 220, 23578, 5064, 13, 201, 198, 201, 198, 220, 16876, 2452, 62, 979, 36529, 450, 499, 62, 7942, 13, 201, 198, 220, 220, 220, 1033, 4337, 3784, 2860, 62, 979, 62, 25641, 415, 7, 201, 198, 220, 220, 220, 220, 220, 220, 220, 15304, 220, 220, 220, 220, 220, 796, 269, 72, 62, 7785, 201, 198, 220, 220, 220, 220, 220, 220, 220, 15304, 62, 7220, 796, 269, 72, 62, 7220, 201, 198, 220, 220, 220, 6739, 201, 198, 220, 23578, 5064, 13, 201, 198, 201, 198, 220, 1033, 4337, 3784, 21928, 7, 201, 198, 220, 220, 220, 3613, 62, 1462, 62, 15388, 796, 3613, 62, 1462, 62, 292, 201, 198, 220, 6739, 201, 198, 201, 198, 220, 16876, 3613, 62, 1462, 62, 292, 36529, 450 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION /gal/js_db_write. *"---------------------------------------------------------------------- *"*"Lokale Schnittstelle: *" IMPORTING *" REFERENCE(RFC_ROUTE_INFO) TYPE /GAL/RFC_ROUTE_INFO OPTIONAL *" REFERENCE(TABLE_NAME) TYPE TABNAME *" REFERENCE(TABLE_LINE) TYPE /GAL/DB_DATAS *" REFERENCE(MODIFY_ONLY) TYPE ABAP_BOOL DEFAULT ABAP_FALSE *" EXCEPTIONS *" WRONG_CONTENT_DATA *" CANNOT_WRITE_TO_DB *" RFC_EXCEPTION *"---------------------------------------------------------------------- DATA: l_data TYPE REF TO data, l_table_line_elem TYPE /gal/db_data. FIELD-SYMBOLS: <l_structure> TYPE any, <l_field> TYPE any. cfw_follow_rfc_route rfc_route_info. cfw_pass_exception rfc_exception. cfw_pass_exception wrong_content_data. cfw_pass_exception cannot_write_to_db. cfw_remote_coding. IF table_name NP '/GAL/JOBDATA*'. MESSAGE e034 WITH table_name RAISING cannot_write_to_db. ENDIF. CREATE DATA l_data TYPE (table_name). ASSIGN l_data->* TO <l_structure>. LOOP AT table_line INTO l_table_line_elem. ASSIGN COMPONENT l_table_line_elem-attribute OF STRUCTURE <l_structure> TO <l_field>. IF sy-subrc = 0. <l_field> = l_table_line_elem-value. ELSE. MESSAGE e000 WITH l_table_line_elem-attribute table_name RAISING wrong_content_data. ENDIF. ENDLOOP. IF modify_only = abap_false. "Caution: naming is confusing. "MODIFY_ONLY leads to the behavior that the table is only mofified (no values inserted). "So only UPDATE and _not_ MODIFY is executed. MODIFY (table_name) FROM <l_structure>. "#EC CI_DYNTAB ELSE. UPDATE (table_name) FROM <l_structure>. "#EC CI_DYNTAB ENDIF. IF sy-subrc <> 0. MESSAGE e001 WITH table_name RAISING cannot_write_to_db. ENDIF. COMMIT WORK. ENDFUNCTION.
[ 42296, 4177, 2849, 1220, 13528, 14, 8457, 62, 9945, 62, 13564, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 43, 482, 1000, 45606, 715, 301, 13485, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 41150, 62, 49, 2606, 9328, 62, 10778, 8, 41876, 220, 1220, 38, 1847, 14, 41150, 62, 49, 2606, 9328, 62, 10778, 39852, 2849, 1847, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 38148, 62, 20608, 8, 41876, 220, 309, 6242, 20608, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 38148, 62, 24027, 8, 41876, 220, 1220, 38, 1847, 14, 11012, 62, 35, 1404, 1921, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 33365, 5064, 56, 62, 1340, 11319, 8, 41876, 220, 9564, 2969, 62, 8202, 3535, 5550, 38865, 9564, 2969, 62, 37, 23719, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 11342, 18494, 62, 37815, 3525, 62, 26947, 198, 9, 1, 220, 220, 220, 220, 220, 15628, 11929, 62, 18564, 12709, 62, 10468, 62, 11012, 198, 9, 1, 220, 220, 220, 220, 220, 30978, 62, 6369, 42006, 2849, 198, 9, 1, 10097, 23031, 628, 220, 42865, 25, 198, 220, 220, 220, 300, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1366, 11, 198, 220, 220, 220, 300, 62, 11487, 62, 1370, 62, 68, 10671, 41876, 1220, 13528, 14, 9945, 62, 7890, 13, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 198, 220, 220, 220, 1279, 75, 62, 301, 5620, 29, 41876, 597, 11, 198, 220, 220, 220, 1279, 75, 62, 3245, 29, 220, 220, 220, 220, 41876, 597, 13, 628, 198, 220, 30218, 86, 62, 27780, 62, 81, 16072, 62, 38629, 374, 16072, 62, 38629, 62, 10951, 13, 198, 220, 30218, 86, 62, 6603, 62, 1069, 4516, 374, 16072, 62, 1069, 4516, 13, 198, 220, 30218, 86, 62, 6603, 62, 1069, 4516, 2642, 62, 11299, 62, 7890, 13, 198, 220, 30218, 86, 62, 6603, 62, 1069, 4516, 2314, 62, 13564, 62, 1462, 62, 9945, 13, 198, 220, 30218, 86, 62, 47960, 62, 66, 7656, 13, 628, 220, 16876, 3084, 62, 3672, 28498, 31051, 38, 1847, 14, 41, 9864, 26947, 9, 4458, 198, 220, 220, 220, 337, 1546, 4090, 8264, 304, 49841, 13315, 3084, 62, 3672, 17926, 1797, 2751, 2314, 62, 13564, 62, 1462, 62, 9945, 13, 198, 220, 23578, 5064, 13, 628, 220, 29244, 6158, 42865, 300, 62, 7890, 41876, 357, 11487, 62, 3672, 737, 198, 220, 24994, 16284, 300, 62, 7890, 3784, 9, 5390, 1279, 75, 62, 301, 5620, 28401, 628, 220, 17579, 3185, 5161, 3084, 62, 1370, 39319, 300, 62, 11487, 62, 1370, 62, 68, 10671, 13, 198, 220, 220, 220, 24994, 16284, 24301, 1340, 3525, 300, 62, 11487, 62, 1370, 62, 68, 10671, 12, 42348, 3963, 19269, 18415, 11335, 1279, 75, 62, 301, 5620, 29, 5390, 1279, 75, 62, 3245, 28401, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 1279, 75, 62, 3245, 29, 796, 300, 62, 11487, 62, 1370, 62, 68, 10671, 12, 8367, 13, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 304, 830, 13315, 300, 62, 11487, 62, 1370, 62, 68, 10671, 12, 42348, 3084, 62, 3672, 17926, 1797, 2751, 2642, 62, 11299, 62, 7890, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 21982, 3185, 13, 628, 220, 16876, 13096, 62, 8807, 796, 450, 499, 62, 9562, 13, 366, 24334, 1009, 25, 19264, 318, 15337, 13, 198, 220, 220, 220, 366, 33365, 5064, 56, 62, 1340, 11319, 5983, 284, 262, 4069, 326, 262, 3084, 318, 691, 285, 1659, 1431, 357, 3919, 3815, 18846, 737, 198, 220, 220, 220, 366, 2396, 691, 35717, 290, 4808, 1662, 62, 19164, 5064, 56, 318, 10945, 13, 198, 220, 220, 220, 19164, 5064, 56, 357, 11487, 62, 3672, 8, 16034, 1279, 75, 62, 301, 5620, 28401, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 35, 40760, 5603, 33, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 35717, 357, 11487, 62, 3672, 8, 16034, 1279, 75, 62, 301, 5620, 28401, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 14514, 62, 35, 40760, 5603, 33, 198, 220, 23578, 5064, 13, 198, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 337, 1546, 4090, 8264, 304, 8298, 13315, 3084, 62, 3672, 17926, 1797, 2751, 2314, 62, 13564, 62, 1462, 62, 9945, 13, 198, 220, 23578, 5064, 13, 628, 220, 22240, 2043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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*&---------------------------------------------------------------------* *& Report ZOO_TUTORIAL_PROG_2 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zoo_tutorial_prog_3a. START-OF-SELECTION. DATA l_price TYPE s_price. DATA l_currency TYPE s_currcode. data l_sflight type sflight. DATA lr_flight TYPE REF TO zcl_oo_tutorial_3. CREATE OBJECT lr_flight EXPORTING i_carrid = 'AA' i_connid = '0017' i_fldate = '20080130' EXCEPTIONS invalid_flight = 1 OTHERS = 2. IF sy-subrc <> 0. WRITE: / 'Invalid Input'. ELSE. lr_flight->gs_sflight-price = '0.01'. lr_flight->get_flight_details( IMPORTING e_sflight = l_sflight ). WRITE: / l_sflight-carrid, l_sflight-connid, l_sflight-fldate. lr_flight->calculate_flight_price( IMPORTING e_price = l_price e_currency = l_currency ). WRITE: / 'Flight Price: ', l_price CURRENCY l_currency, l_currency. ENDIF. CREATE OBJECT lr_flight EXPORTING i_carrid = 'LH' i_connid = '0400' i_fldate = '20080202' EXCEPTIONS invalid_flight = 1 OTHERS = 2. IF sy-subrc <> 0. WRITE: / 'Invalid Input'. ELSE. lr_flight->get_flight_details( IMPORTING e_sflight = l_sflight ). WRITE: / l_sflight-carrid, l_sflight-connid, l_sflight-fldate. lr_flight->calculate_flight_price( IMPORTING e_price = l_price e_currency = l_currency ). WRITE: / 'Flight Price: ', l_price CURRENCY l_currency, l_currency. ENDIF.
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 6684, 62, 51, 3843, 1581, 12576, 62, 4805, 7730, 62, 17, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 220, 26626, 62, 83, 44917, 62, 1676, 70, 62, 18, 64, 13, 628, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 42865, 300, 62, 20888, 41876, 264, 62, 20888, 13, 198, 220, 42865, 300, 62, 34415, 41876, 264, 62, 22019, 6015, 1098, 13, 198, 220, 1366, 300, 62, 82, 22560, 2099, 264, 22560, 13, 198, 220, 42865, 300, 81, 62, 22560, 41876, 4526, 37, 5390, 1976, 565, 62, 2238, 62, 83, 44917, 62, 18, 13, 628, 220, 29244, 6158, 25334, 23680, 300, 81, 62, 22560, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 1312, 62, 66, 3258, 312, 220, 220, 220, 220, 220, 220, 796, 705, 3838, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 37043, 312, 220, 220, 220, 220, 220, 220, 796, 705, 405, 1558, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 69, 335, 378, 220, 220, 220, 220, 220, 220, 796, 705, 11528, 486, 1270, 6, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 12515, 62, 22560, 796, 352, 198, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 13, 198, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 44423, 25, 1220, 705, 44651, 23412, 4458, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 300, 81, 62, 22560, 3784, 14542, 62, 82, 22560, 12, 20888, 796, 705, 15, 13, 486, 4458, 198, 220, 220, 220, 300, 81, 62, 22560, 3784, 1136, 62, 22560, 62, 36604, 7, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 304, 62, 82, 22560, 220, 220, 220, 220, 220, 796, 300, 62, 82, 22560, 6739, 628, 220, 220, 220, 44423, 25, 1220, 300, 62, 82, 22560, 12, 66, 3258, 312, 11, 300, 62, 82, 22560, 12, 37043, 312, 11, 300, 62, 82, 22560, 12, 69, 335, 378, 13, 198, 220, 220, 220, 300, 81, 62, 22560, 3784, 9948, 3129, 378, 62, 22560, 62, 20888, 7, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 20888, 220, 220, 220, 220, 220, 220, 220, 796, 300, 62, 20888, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 34415, 220, 220, 220, 220, 796, 300, 62, 34415, 6739, 198, 220, 220, 220, 44423, 25, 1220, 705, 43069, 7886, 25, 46083, 300, 62, 20888, 327, 31302, 45155, 300, 62, 34415, 11, 300, 62, 34415, 13, 198, 220, 23578, 5064, 13, 628, 220, 29244, 6158, 25334, 23680, 300, 81, 62, 22560, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 1312, 62, 66, 3258, 312, 220, 220, 220, 220, 220, 220, 796, 705, 43, 39, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 37043, 312, 220, 220, 220, 220, 220, 220, 796, 705, 3023, 405, 6, 198, 220, 220, 220, 220, 220, 1312, 62, 69, 335, 378, 220, 220, 220, 220, 220, 220, 796, 705, 2167, 1795, 19004, 6, 198, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 12515, 62, 22560, 796, 352, 198, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 13, 198, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 44423, 25, 1220, 705, 44651, 23412, 4458, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 300, 81, 62, 22560, 3784, 1136, 62, 22560, 62, 36604, 7, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 304, 62, 82, 22560, 220, 220, 220, 220, 220, 796, 300, 62, 82, 22560, 6739, 628, 220, 220, 220, 44423, 25, 1220, 300, 62, 82, 22560, 12, 66, 3258, 312, 11, 300, 62, 82, 22560, 12, 37043, 312, 11, 300, 62, 82, 22560, 12, 69, 335, 378, 13, 198, 220, 220, 220, 300, 81, 62, 22560, 3784, 9948, 3129, 378, 62, 22560, 62, 20888, 7, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 20888, 220, 220, 220, 220, 220, 220, 220, 796, 300, 62, 20888, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 62, 34415, 220, 220, 220, 220, 796, 300, 62, 34415, 6739, 198, 220, 220, 220, 44423, 25, 1220, 705, 43069, 7886, 25, 46083, 300, 62, 20888, 327, 31302, 45155, 300, 62, 34415, 11, 300, 62, 34415, 13, 198, 220, 23578, 5064, 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, 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DEMO_TECHED2 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT zdemo_teched2. ******************************* * Data Object declaration * ******************************* DATA: lo_excel TYPE REF TO zcl_excel, lo_excel_writer TYPE REF TO zif_excel_writer, lo_worksheet TYPE REF TO zcl_excel_worksheet. DATA: lo_style_title TYPE REF TO zcl_excel_style, lv_style_title_guid TYPE zexcel_cell_style. DATA: lv_file TYPE xstring, lv_bytecount TYPE i, lt_file_tab TYPE solix_tab. DATA: lv_full_path TYPE string, lv_workdir TYPE string, lv_file_separator TYPE c. CONSTANTS: lv_default_file_name TYPE string VALUE 'TechEd01.xlsx'. ******************************* * Selection screen management * ******************************* PARAMETERS: p_path TYPE zexcel_export_dir. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path. lv_workdir = p_path. cl_gui_frontend_services=>directory_browse( EXPORTING initial_folder = lv_workdir CHANGING selected_folder = lv_workdir ). p_path = lv_workdir. INITIALIZATION. cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = lv_workdir ). cl_gui_cfw=>flush( ). p_path = lv_workdir. START-OF-SELECTION. IF p_path IS INITIAL. p_path = lv_workdir. ENDIF. cl_gui_frontend_services=>get_file_separator( CHANGING file_separator = lv_file_separator ). CONCATENATE p_path lv_file_separator lv_default_file_name INTO lv_full_path. ******************************* * abap2xlsx create XLSX * ******************************* " Create excel instance CREATE OBJECT lo_excel. " Styles lo_style_title = lo_excel->add_new_style( ). lo_style_title->font->bold = abap_true. lo_style_title->font->color-rgb = zcl_excel_style_color=>c_blue. lv_style_title_guid = lo_style_title->get_guid( ). " Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). lo_worksheet->set_title( ip_title = 'Demo TechEd' ). lo_worksheet->set_cell( ip_column = 'B' ip_row = 5 ip_value = 'TechEd demo' ip_style = lv_style_title_guid ). " Create xlsx stream CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_2007. lv_file = lo_excel_writer->write_file( lo_excel ). ******************************* * Output * ******************************* " Convert to binary lt_file_tab = cl_bcs_convert=>xstring_to_solix( iv_xstring = lv_file ). lv_bytecount = xstrlen( lv_file ). " Save the file cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = lv_bytecount filename = lv_full_path filetype = 'BIN' CHANGING data_tab = lt_file_tab ).
[ 9, 5, 10097, 30934, 9, 198, 9, 5, 6358, 220, 1168, 39429, 46, 62, 51, 25994, 1961, 17, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 9, 5, 198, 9, 5, 198, 9, 5, 10097, 30934, 9, 198, 198, 2200, 15490, 1976, 9536, 78, 62, 660, 1740, 17, 13, 198, 198, 8412, 46068, 8162, 198, 9, 220, 220, 6060, 9515, 14305, 220, 220, 1635, 198, 8412, 46068, 8162, 198, 198, 26947, 25, 2376, 62, 1069, 5276, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 1069, 5276, 62, 16002, 41876, 4526, 37, 5390, 1976, 361, 62, 1069, 5276, 62, 16002, 11, 198, 220, 220, 220, 220, 220, 2376, 62, 5225, 25473, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 5225, 25473, 13, 198, 198, 26947, 25, 2376, 62, 7635, 62, 7839, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 1069, 5276, 62, 7635, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7635, 62, 7839, 62, 5162, 312, 41876, 1976, 1069, 5276, 62, 3846, 62, 7635, 13, 198, 198, 26947, 25, 300, 85, 62, 7753, 220, 220, 220, 220, 220, 41876, 2124, 8841, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 26327, 9127, 41876, 1312, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 7753, 62, 8658, 220, 41876, 1540, 844, 62, 8658, 13, 198, 198, 26947, 25, 300, 85, 62, 12853, 62, 6978, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 1818, 15908, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7753, 62, 25512, 1352, 41876, 269, 13, 198, 198, 10943, 2257, 1565, 4694, 25, 300, 85, 62, 12286, 62, 7753, 62, 3672, 41876, 4731, 26173, 8924, 705, 17760, 7407, 486, 13, 87, 7278, 87, 4458, 198, 198, 8412, 46068, 8162, 198, 9, 29538, 3159, 4542, 1635, 198, 8412, 46068, 8162, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 6978, 41876, 1976, 1069, 5276, 62, 39344, 62, 15908, 13, 198, 198, 1404, 33493, 2849, 12, 6173, 2200, 1677, 6177, 26173, 8924, 12, 2200, 35780, 7473, 279, 62, 6978, 13, 198, 220, 300, 85, 62, 1818, 15908, 796, 279, 62, 6978, 13, 198, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 34945, 62, 25367, 325, 7, 7788, 15490, 2751, 4238, 62, 43551, 220, 796, 300, 85, 62, 1818, 15908, 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, 5870, 15567, 2751, 220, 6163, 62, 43551, 796, 300, 85, 62, 1818, 15908, 6739, 198, 220, 279, 62, 6978, 796, 300, 85, 62, 1818, 15908, 13, 198, 198, 1268, 2043, 12576, 14887, 6234, 13, 198, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 1136, 62, 82, 499, 48317, 62, 1818, 15908, 7, 5870, 15567, 2751, 31841, 1818, 15908, 796, 300, 85, 62, 1818, 15908, 6739, 198, 220, 537, 62, 48317, 62, 12993, 86, 14804, 25925, 7, 6739, 198, 220, 279, 62, 6978, 796, 300, 85, 62, 1818, 15908, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 628, 220, 16876, 279, 62, 6978, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 279, 62, 6978, 796, 300, 85, 62, 1818, 15908, 13, 198, 220, 23578, 5064, 13, 198, 220, 537, 62, 48317, 62, 8534, 437, 62, 30416, 14804, 1136, 62, 7753, 62, 25512, 1352, 7, 5870, 15567, 2751, 2393, 62, 25512, 1352, 796, 300, 85, 62, 7753, 62, 25512, 1352, 6739, 198, 220, 39962, 1404, 1677, 6158, 279, 62, 6978, 300, 85, 62, 7753, 62, 25512, 1352, 300, 85, 62, 12286, 62, 7753, 62, 3672, 39319, 300, 85, 62, 12853, 62, 6978, 13, 198, 198, 8412, 46068, 8162, 198, 9, 220, 220, 220, 450, 499, 17, 87, 7278, 87, 2251, 1395, 6561, 55, 220, 220, 220, 1635, 198, 8412, 46068, 8162, 628, 220, 366, 13610, 27336, 4554, 198, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 13, 628, 220, 366, 44963, 198, 220, 2376, 62, 7635, 62, 7839, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 1069, 5276, 3784, 2860, 62, 3605, 62, 7635, 7, 6739, 198, 220, 2376, 62, 7635, 62, 7839, 3784, 10331, 3784, 36575, 220, 220, 220, 220, 220, 220, 796, 450, 499, 62, 7942, 13, 198, 220, 2376, 62, 7635, 62, 7839, 3784, 10331, 3784, 8043, 12, 81, 22296, 220, 796, 1976, 565, 62, 1069, 5276, 62, 7635, 62, 8043, 14804, 66, 62, 17585, 13, 198, 220, 300, 85, 62, 7635, 62, 7839, 62, 5162, 312, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 2376, 62, 7635, 62, 7839, 3784, 1136, 62, 5162, 312, 7, 6739, 628, 220, 366, 3497, 4075, 9629, 198, 220, 2376, 62, 5225, 25473, 796, 2376, 62, 1069, 5276, 3784, 1136, 62, 5275, 62, 5225, 25473, 7, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 7839, 7, 20966, 62, 7839, 796, 705, 11522, 78, 9634, 7407, 6, 6739, 198, 220, 2376, 62, 5225, 25473, 3784, 2617, 62, 3846, 7, 20966, 62, 28665, 796, 705, 33, 6, 20966, 62, 808, 796, 642, 20966, 62, 8367, 796, 705, 17760, 7407, 13605, 6, 20966, 62, 7635, 796, 300, 85, 62, 7635, 62, 7839, 62, 5162, 312, 6739, 628, 220, 366, 13610, 2124, 7278, 87, 4269, 198, 220, 29244, 6158, 25334, 23680, 2376, 62, 1069, 5276, 62, 16002, 41876, 1976, 565, 62, 1069, 5276, 62, 16002, 62, 12726, 13, 198, 220, 300, 85, 62, 7753, 796, 2376, 62, 1069, 5276, 62, 16002, 3784, 13564, 62, 7753, 7, 2376, 62, 1069, 5276, 6739, 198, 198, 8412, 46068, 8162, 198, 9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 25235, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1635, 198, 8412, 46068 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*"* use this source file for the definition and implementation of *"* local helper classes, interface definitions and type *"* declarations CLASS lcl_weapon_iterator DEFINITION ##CLASS_FINAL. PUBLIC SECTION. METHODS: constructor, get_next_weapon RETURNING VALUE(rd_weapon) TYPE string."INTF_IN_CLASS PRIVATE SECTION. DATA: weapon_table TYPE TABLE OF string, last_used_index TYPE sy-tabix. ENDCLASS. CLASS lcl_weapon_iterator IMPLEMENTATION. METHOD constructor. weapon_table = VALUE string_table( ( |'FEATHER DUSTER'| ) ( |'PEASHOOTER'| ) ( |'THE BIG KNIFE'| ) ( |'GUN'| ) ( |'MACHINE GUN'| ) ( |'LASER PISTOL'| ) ( |'NUCLEAR MISSILE'| ) ). ENDMETHOD. METHOD get_next_weapon. CASE last_used_index. WHEN 0. DATA(row_to_read) = 1. WHEN lines( weapon_table ). row_to_read = 1. WHEN OTHERS. row_to_read = last_used_index + 1. ENDCASE. READ TABLE weapon_table INTO rd_weapon INDEX row_to_read. ASSERT sy-subrc EQ 0. last_used_index = row_to_read. ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 262, 6770, 290, 7822, 286, 198, 9, 1, 9, 1957, 31904, 6097, 11, 7071, 17336, 290, 2099, 198, 9, 1, 9, 31713, 198, 31631, 300, 565, 62, 28741, 62, 48727, 5550, 20032, 17941, 22492, 31631, 62, 37, 17961, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 23772, 11, 198, 220, 220, 220, 220, 220, 651, 62, 19545, 62, 28741, 30826, 4261, 15871, 26173, 8924, 7, 4372, 62, 28741, 8, 41876, 4731, 526, 1268, 10234, 62, 1268, 62, 31631, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 4282, 62, 11487, 220, 220, 220, 41876, 43679, 3963, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 938, 62, 1484, 62, 9630, 41876, 827, 12, 8658, 844, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 28741, 62, 48727, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 4282, 62, 11487, 796, 26173, 8924, 4731, 62, 11487, 7, 198, 220, 220, 220, 357, 930, 6, 15112, 45226, 360, 7759, 1137, 6, 91, 1267, 198, 220, 220, 220, 357, 930, 6, 11401, 11211, 46, 2394, 1137, 6, 91, 1267, 198, 220, 220, 220, 357, 930, 6, 10970, 26746, 22466, 29150, 6, 91, 1267, 198, 220, 220, 220, 357, 930, 6, 38, 4944, 6, 91, 1267, 198, 220, 220, 220, 357, 930, 6, 44, 16219, 8881, 43794, 6, 91, 1267, 198, 220, 220, 220, 357, 930, 6, 43, 1921, 1137, 350, 8808, 3535, 6, 91, 1267, 198, 220, 220, 220, 357, 930, 6, 45, 9598, 2538, 1503, 50029, 11584, 2538, 6, 91, 1267, 6739, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 19545, 62, 28741, 13, 628, 220, 220, 220, 42001, 938, 62, 1484, 62, 9630, 13, 198, 220, 220, 220, 220, 220, 42099, 657, 13, 198, 220, 220, 220, 220, 220, 220, 220, 42865, 7, 808, 62, 1462, 62, 961, 8, 796, 352, 13, 198, 220, 220, 220, 220, 220, 42099, 3951, 7, 4282, 62, 11487, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 5752, 62, 1462, 62, 961, 796, 352, 13, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5752, 62, 1462, 62, 961, 796, 938, 62, 1484, 62, 9630, 1343, 352, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 628, 220, 220, 220, 20832, 43679, 4282, 62, 11487, 39319, 374, 67, 62, 28741, 24413, 6369, 5752, 62, 1462, 62, 961, 13, 628, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 36529, 657, 13, 628, 220, 220, 220, 938, 62, 1484, 62, 9630, 796, 5752, 62, 1462, 62, 961, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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. *"* public components of class ZCL_EXCEL_WORKSHEET *"* do not include other source files here!!! type-pools ABAP . interfaces ZIF_EXCEL_SHEET_PRINTSETTINGS . interfaces ZIF_EXCEL_SHEET_PROPERTIES . interfaces ZIF_EXCEL_SHEET_PROTECTION . interfaces ZIF_EXCEL_SHEET_VBA_PROJECT . types: begin of MTY_S_OUTLINE_ROW, ROW_FROM type I, ROW_TO type I, COLLAPSED type ABAP_BOOL, end of MTY_S_OUTLINE_ROW . types: MTY_TS_OUTLINES_ROW type sorted table of MTY_S_OUTLINE_ROW with unique key ROW_FROM ROW_TO . constants C_BREAK_COLUMN type ZEXCEL_BREAK value 2. "#EC NOTEXT constants C_BREAK_NONE type ZEXCEL_BREAK value 0. "#EC NOTEXT constants C_BREAK_ROW type ZEXCEL_BREAK value 1. "#EC NOTEXT data EXCEL type ref to ZCL_EXCEL read-only . data PRINT_GRIDLINES type ZEXCEL_PRINT_GRIDLINES read-only value ABAP_FALSE. "#EC NOTEXT . " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . data SHEET_CONTENT type ZEXCEL_T_CELL_DATA . data SHEET_SETUP type ref to ZCL_EXCEL_SHEET_SETUP . data SHOW_GRIDLINES type ZEXCEL_SHOW_GRIDLINES read-only value ABAP_TRUE. "#EC NOTEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . data SHOW_ROWCOLHEADERS type ZEXCEL_SHOW_GRIDLINES read-only value ABAP_TRUE. "#EC NOTEXT . " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . data STYLES type ZEXCEL_T_SHEET_STYLE . data TABCOLOR type ZEXCEL_S_TABCOLOR read-only . methods ADD_DRAWING importing !IP_DRAWING type ref to ZCL_EXCEL_DRAWING . methods ADD_NEW_COLUMN importing !IP_COLUMN type SIMPLE returning value(EO_COLUMN) type ref to ZCL_EXCEL_COLUMN . methods ADD_NEW_STYLE_COND returning value(EO_STYLE_COND) type ref to ZCL_EXCEL_STYLE_COND . methods ADD_NEW_DATA_VALIDATION returning value(EO_DATA_VALIDATION) type ref to ZCL_EXCEL_DATA_VALIDATION . methods ADD_NEW_RANGE returning value(EO_RANGE) type ref to ZCL_EXCEL_RANGE . methods ADD_NEW_ROW importing !IP_ROW type SIMPLE returning value(EO_ROW) type ref to ZCL_EXCEL_ROW . methods BIND_ALV importing !IO_ALV type ref to OBJECT !IT_TABLE type standard table !I_TOP type I default 1 !I_LEFT type I default 1 !TABLE_STYLE type ZEXCEL_TABLE_STYLE optional !I_TABLE type ABAP_BOOL default ABAP_TRUE raising ZCX_EXCEL . type-pools SLIS . type-pools SOI . methods BIND_ALV_OLE2 importing !I_DOCUMENT_URL type CHAR255 default SPACE !I_XLS type C default SPACE !I_SAVE_PATH type STRING !IO_ALV type ref to CL_GUI_ALV_GRID !IT_LISTHEADER type SLIS_T_LISTHEADER optional !I_TOP type I default 1 !I_LEFT type I default 1 !I_COLUMNS_HEADER type C default 'X' !I_COLUMNS_AUTOFIT type C default 'X' !I_FORMAT_COL_HEADER type SOI_FORMAT_ITEM optional !I_FORMAT_SUBTOTAL type SOI_FORMAT_ITEM optional !I_FORMAT_TOTAL type SOI_FORMAT_ITEM optional exceptions MISS_GUIDE EX_TRANSFER_KKBLO_ERROR FATAL_ERROR INV_DATA_RANGE DIM_MISMATCH_VKEY DIM_MISMATCH_SEMA ERROR_IN_SEMA . methods BIND_TABLE importing !IP_TABLE type standard table !IT_FIELD_CATALOG type ZEXCEL_T_FIELDCATALOG optional !IS_TABLE_SETTINGS type ZEXCEL_S_TABLE_SETTINGS optional value(IV_DEFAULT_DESCR) type C optional exporting !ES_TABLE_SETTINGS type ZEXCEL_S_TABLE_SETTINGS raising ZCX_EXCEL . methods CALCULATE_COLUMN_WIDTHS raising ZCX_EXCEL . methods CHANGE_CELL_STYLE importing !IP_COLUMN type SIMPLE !IP_ROW type ZEXCEL_CELL_ROW !IP_COMPLETE type ZEXCEL_S_CSTYLE_COMPLETE optional !IP_XCOMPLETE type ZEXCEL_S_CSTYLEX_COMPLETE optional !IP_FONT type ZEXCEL_S_CSTYLE_FONT optional !IP_XFONT type ZEXCEL_S_CSTYLEX_FONT optional !IP_FILL type ZEXCEL_S_CSTYLE_FILL optional !IP_XFILL type ZEXCEL_S_CSTYLEX_FILL optional !IP_BORDERS type ZEXCEL_S_CSTYLE_BORDERS optional !IP_XBORDERS type ZEXCEL_S_CSTYLEX_BORDERS optional !IP_ALIGNMENT type ZEXCEL_S_CSTYLE_ALIGNMENT optional !IP_XALIGNMENT type ZEXCEL_S_CSTYLEX_ALIGNMENT optional !IP_NUMBER_FORMAT_FORMAT_CODE type ZEXCEL_NUMBER_FORMAT optional !IP_PROTECTION type ZEXCEL_S_CSTYLE_PROTECTION optional !IP_XPROTECTION type ZEXCEL_S_CSTYLEX_PROTECTION optional !IP_FONT_BOLD type FLAG optional !IP_FONT_COLOR type ZEXCEL_S_STYLE_COLOR optional !IP_FONT_COLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_FONT_COLOR_INDEXED type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_FONT_COLOR_THEME type ZEXCEL_STYLE_COLOR_THEME optional !IP_FONT_COLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional !IP_FONT_FAMILY type ZEXCEL_STYLE_FONT_FAMILY optional !IP_FONT_ITALIC type FLAG optional !IP_FONT_NAME type ZEXCEL_STYLE_FONT_NAME optional !IP_FONT_SCHEME type ZEXCEL_STYLE_FONT_SCHEME optional !IP_FONT_SIZE type ZEXCEL_STYLE_FONT_SIZE optional !IP_FONT_STRIKETHROUGH type FLAG optional !IP_FONT_UNDERLINE type FLAG optional !IP_FONT_UNDERLINE_MODE type ZEXCEL_STYLE_FONT_UNDERLINE optional !IP_FILL_FILLTYPE type ZEXCEL_FILL_TYPE optional !IP_FILL_ROTATION type ZEXCEL_ROTATION optional !IP_FILL_FGCOLOR type ZEXCEL_S_STYLE_COLOR optional !IP_FILL_FGCOLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_FILL_FGCOLOR_INDEXED type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_FILL_FGCOLOR_THEME type ZEXCEL_STYLE_COLOR_THEME optional !IP_FILL_FGCOLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional !IP_FILL_BGCOLOR type ZEXCEL_S_STYLE_COLOR optional !IP_FILL_BGCOLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_FILL_BGCOLOR_INDEXED type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_FILL_BGCOLOR_THEME type ZEXCEL_STYLE_COLOR_THEME optional !IP_FILL_BGCOLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional !IP_BORDERS_ALLBORDERS type ZEXCEL_S_CSTYLE_BORDER optional !IP_FILL_GRADTYPE_TYPE type ZEXCEL_S_GRADIENT_TYPE-TYPE optional !IP_FILL_GRADTYPE_DEGREE type ZEXCEL_S_GRADIENT_TYPE-DEGREE optional !IP_XBORDERS_ALLBORDERS type ZEXCEL_S_CSTYLEX_BORDER optional !IP_BORDERS_DIAGONAL type ZEXCEL_S_CSTYLE_BORDER optional !IP_FILL_GRADTYPE_BOTTOM type ZEXCEL_S_GRADIENT_TYPE-BOTTOM optional !IP_FILL_GRADTYPE_TOP type ZEXCEL_S_GRADIENT_TYPE-TOP optional !IP_XBORDERS_DIAGONAL type ZEXCEL_S_CSTYLEX_BORDER optional !IP_BORDERS_DIAGONAL_MODE type ZEXCEL_DIAGONAL optional !IP_FILL_GRADTYPE_RIGHT type ZEXCEL_S_GRADIENT_TYPE-RIGHT optional !IP_BORDERS_DOWN type ZEXCEL_S_CSTYLE_BORDER optional !IP_FILL_GRADTYPE_LEFT type ZEXCEL_S_GRADIENT_TYPE-LEFT optional !IP_FILL_GRADTYPE_POSITION1 type ZEXCEL_S_GRADIENT_TYPE-POSITION1 optional !IP_XBORDERS_DOWN type ZEXCEL_S_CSTYLEX_BORDER optional !IP_BORDERS_LEFT type ZEXCEL_S_CSTYLE_BORDER optional !IP_FILL_GRADTYPE_POSITION2 type ZEXCEL_S_GRADIENT_TYPE-POSITION2 optional !IP_FILL_GRADTYPE_POSITION3 type ZEXCEL_S_GRADIENT_TYPE-POSITION3 optional !IP_XBORDERS_LEFT type ZEXCEL_S_CSTYLEX_BORDER optional !IP_BORDERS_RIGHT type ZEXCEL_S_CSTYLE_BORDER optional !IP_XBORDERS_RIGHT type ZEXCEL_S_CSTYLEX_BORDER optional !IP_BORDERS_TOP type ZEXCEL_S_CSTYLE_BORDER optional !IP_XBORDERS_TOP type ZEXCEL_S_CSTYLEX_BORDER optional !IP_ALIGNMENT_HORIZONTAL type ZEXCEL_ALIGNMENT optional !IP_ALIGNMENT_VERTICAL type ZEXCEL_ALIGNMENT optional !IP_ALIGNMENT_TEXTROTATION type ZEXCEL_TEXT_ROTATION optional !IP_ALIGNMENT_WRAPTEXT type FLAG optional !IP_ALIGNMENT_SHRINKTOFIT type FLAG optional !IP_ALIGNMENT_INDENT type ZEXCEL_INDENT optional !IP_PROTECTION_HIDDEN type ZEXCEL_CELL_PROTECTION optional !IP_PROTECTION_LOCKED type ZEXCEL_CELL_PROTECTION optional !IP_BORDERS_ALLBORDERS_STYLE type ZEXCEL_BORDER optional !IP_BORDERS_ALLBORDERS_COLOR type ZEXCEL_S_STYLE_COLOR optional !IP_BORDERS_ALLBO_COLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_BORDERS_ALLBO_COLOR_INDEXED type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_BORDERS_ALLBO_COLOR_THEME type ZEXCEL_STYLE_COLOR_THEME optional !IP_BORDERS_ALLBO_COLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional !IP_BORDERS_DIAGONAL_STYLE type ZEXCEL_BORDER optional !IP_BORDERS_DIAGONAL_COLOR type ZEXCEL_S_STYLE_COLOR optional !IP_BORDERS_DIAGONAL_COLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_BORDERS_DIAGONAL_COLOR_INDE type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_BORDERS_DIAGONAL_COLOR_THEM type ZEXCEL_STYLE_COLOR_THEME optional !IP_BORDERS_DIAGONAL_COLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional !IP_BORDERS_DOWN_STYLE type ZEXCEL_BORDER optional !IP_BORDERS_DOWN_COLOR type ZEXCEL_S_STYLE_COLOR optional !IP_BORDERS_DOWN_COLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_BORDERS_DOWN_COLOR_INDEXED type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_BORDERS_DOWN_COLOR_THEME type ZEXCEL_STYLE_COLOR_THEME optional !IP_BORDERS_DOWN_COLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional !IP_BORDERS_LEFT_STYLE type ZEXCEL_BORDER optional !IP_BORDERS_LEFT_COLOR type ZEXCEL_S_STYLE_COLOR optional !IP_BORDERS_LEFT_COLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_BORDERS_LEFT_COLOR_INDEXED type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_BORDERS_LEFT_COLOR_THEME type ZEXCEL_STYLE_COLOR_THEME optional !IP_BORDERS_LEFT_COLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional !IP_BORDERS_RIGHT_STYLE type ZEXCEL_BORDER optional !IP_BORDERS_RIGHT_COLOR type ZEXCEL_S_STYLE_COLOR optional !IP_BORDERS_RIGHT_COLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_BORDERS_RIGHT_COLOR_INDEXED type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_BORDERS_RIGHT_COLOR_THEME type ZEXCEL_STYLE_COLOR_THEME optional !IP_BORDERS_RIGHT_COLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional !IP_BORDERS_TOP_STYLE type ZEXCEL_BORDER optional !IP_BORDERS_TOP_COLOR type ZEXCEL_S_STYLE_COLOR optional !IP_BORDERS_TOP_COLOR_RGB type ZEXCEL_STYLE_COLOR_ARGB optional !IP_BORDERS_TOP_COLOR_INDEXED type ZEXCEL_STYLE_COLOR_INDEXED optional !IP_BORDERS_TOP_COLOR_THEME type ZEXCEL_STYLE_COLOR_THEME optional !IP_BORDERS_TOP_COLOR_TINT type ZEXCEL_STYLE_COLOR_TINT optional returning value(EP_GUID) type ZEXCEL_CELL_STYLE raising ZCX_EXCEL . methods CONSTRUCTOR importing !IP_EXCEL type ref to ZCL_EXCEL !IP_TITLE type ZEXCEL_SHEET_TITLE optional raising ZCX_EXCEL . methods DELETE_MERGE importing !IP_CELL_COLUMN type SIMPLE optional !IP_CELL_ROW type ZEXCEL_CELL_ROW optional . methods DELETE_ROW_OUTLINE importing !IV_ROW_FROM type I !IV_ROW_TO type I raising ZCX_EXCEL . methods FREEZE_PANES importing !IP_NUM_COLUMNS type I optional !IP_NUM_ROWS type I optional raising ZCX_EXCEL . methods GET_ACTIVE_CELL returning value(EP_ACTIVE_CELL) type STRING raising ZCX_EXCEL . methods GET_CELL importing !IP_COLUMN type SIMPLE !IP_ROW type ZEXCEL_CELL_ROW exporting !EP_VALUE type ZEXCEL_CELL_VALUE !EP_RC type SYSUBRC !EP_STYLE type ref to ZCL_EXCEL_STYLE !EP_GUID type ZEXCEL_CELL_STYLE !EP_FORMULA type ZEXCEL_CELL_FORMULA raising ZCX_EXCEL . methods GET_COLUMN importing !IP_COLUMN type SIMPLE returning value(EO_COLUMN) type ref to ZCL_EXCEL_COLUMN . methods GET_COLUMNS returning value(EO_COLUMNS) type ref to ZCL_EXCEL_COLUMNS . methods GET_COLUMNS_ITERATOR returning value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR . methods GET_STYLE_COND_ITERATOR returning value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR . methods GET_DATA_VALIDATIONS_ITERATOR returning value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR . methods GET_DATA_VALIDATIONS_SIZE returning value(EP_SIZE) type I . methods GET_DEFAULT_COLUMN returning value(EO_COLUMN) type ref to ZCL_EXCEL_COLUMN . methods GET_DEFAULT_EXCEL_DATE_FORMAT returning value(EP_DEFAULT_EXCEL_DATE_FORMAT) type ZEXCEL_NUMBER_FORMAT . methods GET_DEFAULT_EXCEL_TIME_FORMAT returning value(EP_DEFAULT_EXCEL_TIME_FORMAT) type ZEXCEL_NUMBER_FORMAT . methods GET_DEFAULT_ROW returning value(EO_ROW) type ref to ZCL_EXCEL_ROW . methods GET_DIMENSION_RANGE returning value(EP_DIMENSION_RANGE) type STRING raising ZCX_EXCEL . methods GET_DRAWINGS importing !IP_TYPE type ZEXCEL_DRAWING_TYPE optional returning value(R_DRAWINGS) type ref to ZCL_EXCEL_DRAWINGS . methods GET_DRAWINGS_ITERATOR importing !IP_TYPE type ZEXCEL_DRAWING_TYPE returning value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR . methods GET_FREEZE_CELL exporting !EP_ROW type ZEXCEL_CELL_ROW !EP_COLUMN type ZEXCEL_CELL_COLUMN . methods GET_GUID returning value(EP_GUID) type UUID . methods GET_HIGHEST_COLUMN returning value(R_HIGHEST_COLUMN) type ZEXCEL_CELL_COLUMN raising ZCX_EXCEL . methods GET_HIGHEST_ROW returning value(R_HIGHEST_ROW) type INT4 raising ZCX_EXCEL . methods GET_HYPERLINKS_ITERATOR returning value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR . methods GET_HYPERLINKS_SIZE returning value(EP_SIZE) type I . methods GET_MERGE returning value(MERGE_RANGE) type STRING_TABLE raising ZCX_EXCEL . methods GET_PAGEBREAKS returning value(RO_PAGEBREAKS) type ref to ZCL_EXCEL_WORKSHEET_PAGEBREAKS raising ZCX_EXCEL . methods GET_RANGES_ITERATOR returning value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR . methods GET_ROW importing !IP_ROW type INT4 returning value(EO_ROW) type ref to ZCL_EXCEL_ROW . methods GET_ROWS returning value(EO_ROWS) type ref to ZCL_EXCEL_ROWS . methods GET_ROWS_ITERATOR returning value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR . methods GET_ROW_OUTLINES returning value(RT_ROW_OUTLINES) type MTY_TS_OUTLINES_ROW . methods GET_STYLE_COND importing !IP_GUID type ZEXCEL_CELL_STYLE returning value(EO_STYLE_COND) type ref to ZCL_EXCEL_STYLE_COND . methods GET_TABCOLOR returning value(EV_TABCOLOR) type ZEXCEL_S_TABCOLOR . methods GET_TABLES_ITERATOR returning value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR . methods GET_TABLES_SIZE returning value(EP_SIZE) type I . methods GET_TITLE importing !IP_ESCAPED type FLAG default '' returning value(EP_TITLE) type ZEXCEL_SHEET_TITLE . methods IS_CELL_MERGED importing !IP_COLUMN type SIMPLE !IP_ROW type ZEXCEL_CELL_ROW returning value(RP_IS_MERGED) type ABAP_BOOL raising ZCX_EXCEL . methods SET_CELL importing !IP_COLUMN type SIMPLE !IP_ROW type ZEXCEL_CELL_ROW !IP_VALUE type SIMPLE optional !IP_FORMULA type ZEXCEL_CELL_FORMULA optional !IP_STYLE type ZEXCEL_CELL_STYLE optional !IP_HYPERLINK type ref to ZCL_EXCEL_HYPERLINK optional !IP_DATA_TYPE type ZEXCEL_CELL_DATA_TYPE optional !IP_ABAP_TYPE type ABAP_TYPEKIND optional raising ZCX_EXCEL . methods SET_CELL_FORMULA importing !IP_COLUMN type SIMPLE !IP_ROW type ZEXCEL_CELL_ROW !IP_FORMULA type ZEXCEL_CELL_FORMULA raising ZCX_EXCEL . methods SET_CELL_STYLE importing !IP_COLUMN type SIMPLE !IP_ROW type ZEXCEL_CELL_ROW !IP_STYLE type ZEXCEL_CELL_STYLE raising ZCX_EXCEL . methods SET_COLUMN_WIDTH importing !IP_COLUMN type SIMPLE !IP_WIDTH_FIX type SIMPLE default 0 !IP_WIDTH_AUTOSIZE type FLAG default 'X' raising ZCX_EXCEL . methods SET_DEFAULT_EXCEL_DATE_FORMAT importing !IP_DEFAULT_EXCEL_DATE_FORMAT type ZEXCEL_NUMBER_FORMAT raising ZCX_EXCEL . methods SET_MERGE importing !IP_COLUMN_START type SIMPLE default ZCL_EXCEL_COMMON=>C_EXCEL_SHEET_MIN_COL !IP_COLUMN_END type SIMPLE default ZCL_EXCEL_COMMON=>C_EXCEL_SHEET_MAX_COL !IP_ROW type ZEXCEL_CELL_ROW default ZCL_EXCEL_COMMON=>C_EXCEL_SHEET_MIN_ROW !IP_ROW_TO type ZEXCEL_CELL_ROW default ZCL_EXCEL_COMMON=>C_EXCEL_SHEET_MAX_ROW raising ZCX_EXCEL . methods SET_PRINT_GRIDLINES importing !I_PRINT_GRIDLINES type ZEXCEL_PRINT_GRIDLINES . methods SET_ROW_HEIGHT importing !IP_ROW type SIMPLE !IP_HEIGHT_FIX type SIMPLE raising ZCX_EXCEL . methods SET_ROW_OUTLINE importing !IV_ROW_FROM type I !IV_ROW_TO type I !IV_COLLAPSED type ABAP_BOOL raising ZCX_EXCEL . methods SET_SHOW_GRIDLINES importing !I_SHOW_GRIDLINES type ZEXCEL_SHOW_GRIDLINES . methods SET_SHOW_ROWCOLHEADERS importing !I_SHOW_ROWCOLHEADERS type ZEXCEL_SHOW_ROWCOLHEADER . methods SET_TABCOLOR importing !IV_TABCOLOR type ZEXCEL_S_TABCOLOR . methods SET_TABLE importing !IP_TABLE type standard table !IP_HDR_STYLE type ZEXCEL_CELL_STYLE optional !IP_BODY_STYLE type ZEXCEL_CELL_STYLE optional !IP_TABLE_TITLE type STRING !IP_TOP_LEFT_COLUMN type ZEXCEL_CELL_COLUMN_ALPHA default 'B' !IP_TOP_LEFT_ROW type ZEXCEL_CELL_ROW default 3 !IP_TRANSPOSE type XFELD optional !IP_NO_HEADER type XFELD optional raising ZCX_EXCEL . methods SET_TITLE importing !IP_TITLE type ZEXCEL_SHEET_TITLE raising ZCX_EXCEL . methods GET_TABLE importing IV_SKIPPED_ROWS type INT4 default 0 IV_SKIPPED_COLS type INT4 default 0 exporting ET_TABLE type standard table raising ZCX_EXCEL. *"* protected components of class ZCL_EXCEL_WORKSHEET *"* do not include other source files here!!! *"* protected components of class ZCL_EXCEL_WORKSHEET *"* do not include other source files here!!! protected section. private section. types: begin of MTY_S_FONT_METRIC, CHAR type C length 1, CHAR_WIDTH type TDCWIDTHS, end of MTY_S_FONT_METRIC . types: MTY_TH_FONT_METRICS type hashed table of MTY_S_FONT_METRIC with unique key CHAR . types: begin of MTY_S_FONT_CACHE, FONT_NAME type ZEXCEL_STYLE_FONT_NAME, FONT_HEIGHT type TDFONTSIZE, FLAG_BOLD type ABAP_BOOL, FLAG_ITALIC type ABAP_BOOL, TH_FONT_METRICS type MTY_TH_FONT_METRICS, end of MTY_S_FONT_CACHE . types: MTY_TH_FONT_CACHE type hashed table of MTY_S_FONT_CACHE with unique key FONT_NAME FONT_HEIGHT FLAG_BOLD FLAG_ITALIC . types: * types: * mty_ts_row_dimension TYPE SORTED TABLE OF zexcel_s_worksheet_rowdimensio WITH UNIQUE KEY row . begin of MTY_MERGE, ROW_FROM type I, ROW_TO type I, COL_FROM type I, COL_TO type I, end of MTY_MERGE . types: MTY_TS_MERGE type sorted table of MTY_MERGE with unique key TABLE_LINE . *"* private components of class ZCL_EXCEL_WORKSHEET *"* do not include other source files here!!! data ACTIVE_CELL type ZEXCEL_S_CELL_DATA . data CHARTS type ref to ZCL_EXCEL_DRAWINGS . data COLUMNS type ref to ZCL_EXCEL_COLUMNS . data ROW_DEFAULT type ref to ZCL_EXCEL_ROW . data COLUMN_DEFAULT type ref to ZCL_EXCEL_COLUMN . data STYLES_COND type ref to ZCL_EXCEL_STYLES_COND . data DATA_VALIDATIONS type ref to ZCL_EXCEL_DATA_VALIDATIONS . data DEFAULT_EXCEL_DATE_FORMAT type ZEXCEL_NUMBER_FORMAT . data DEFAULT_EXCEL_TIME_FORMAT type ZEXCEL_NUMBER_FORMAT . data DRAWINGS type ref to ZCL_EXCEL_DRAWINGS . data FREEZE_PANE_CELL_COLUMN type ZEXCEL_CELL_COLUMN . data FREEZE_PANE_CELL_ROW type ZEXCEL_CELL_ROW . data GUID type UUID . data HYPERLINKS type ref to CL_OBJECT_COLLECTION . data LOWER_CELL type ZEXCEL_S_CELL_DATA . data MO_PAGEBREAKS type ref to ZCL_EXCEL_WORKSHEET_PAGEBREAKS . class-data MTH_FONT_CACHE type MTY_TH_FONT_CACHE . data MT_MERGED_CELLS type MTY_TS_MERGE . data MT_ROW_OUTLINES type MTY_TS_OUTLINES_ROW . data PRINT_TITLE_COL_FROM type ZEXCEL_CELL_COLUMN_ALPHA . data PRINT_TITLE_COL_TO type ZEXCEL_CELL_COLUMN_ALPHA . data PRINT_TITLE_ROW_FROM type ZEXCEL_CELL_ROW . data PRINT_TITLE_ROW_TO type ZEXCEL_CELL_ROW . data RANGES type ref to ZCL_EXCEL_RANGES . data ROWS type ref to ZCL_EXCEL_ROWS . data TABLES type ref to CL_OBJECT_COLLECTION . data TITLE type ZEXCEL_SHEET_TITLE value 'Worksheet'. "#EC NOTEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . " . data UPPER_CELL type ZEXCEL_S_CELL_DATA . methods CALCULATE_CELL_WIDTH importing !IP_COLUMN type SIMPLE !IP_ROW type ZEXCEL_CELL_ROW returning value(EP_WIDTH) type FLOAT raising ZCX_EXCEL . methods GENERATE_TITLE returning value(EP_TITLE) type ZEXCEL_SHEET_TITLE . methods GET_VALUE_TYPE importing !IP_VALUE type SIMPLE exporting !EP_VALUE type SIMPLE !EP_VALUE_TYPE type ABAP_TYPEKIND . methods PRINT_TITLE_SET_RANGE . methods UPDATE_DIMENSION_RANGE raising ZCX_EXCEL . ENDCLASS. CLASS ZCL_EXCEL_WORKSHEET IMPLEMENTATION. method ADD_DRAWING. case IP_DRAWING->GET_TYPE( ). when ZCL_EXCEL_DRAWING=>TYPE_IMAGE. DRAWINGS->INCLUDE( IP_DRAWING ). when ZCL_EXCEL_DRAWING=>TYPE_CHART. CHARTS->INCLUDE( IP_DRAWING ). endcase. endmethod. method ADD_NEW_COLUMN. data: LV_COLUMN_ALPHA type ZEXCEL_CELL_COLUMN_ALPHA. LV_COLUMN_ALPHA = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( IP_COLUMN ). create object EO_COLUMN exporting IP_INDEX = LV_COLUMN_ALPHA IP_EXCEL = ME->EXCEL IP_WORKSHEET = ME. COLUMNS->ADD( EO_COLUMN ). endmethod. method ADD_NEW_DATA_VALIDATION. create object EO_DATA_VALIDATION. DATA_VALIDATIONS->ADD( EO_DATA_VALIDATION ). endmethod. method ADD_NEW_RANGE. * Create default blank range create object EO_RANGE. RANGES->ADD( EO_RANGE ). endmethod. method ADD_NEW_ROW. create object EO_ROW exporting IP_INDEX = IP_ROW. ROWS->ADD( EO_ROW ). endmethod. method ADD_NEW_STYLE_COND. create object EO_STYLE_COND. STYLES_COND->ADD( EO_STYLE_COND ). endmethod. method BIND_ALV. data: LO_CONVERTER type ref to ZCL_EXCEL_CONVERTER. create object LO_CONVERTER. try. LO_CONVERTER->CONVERT( exporting IO_ALV = IO_ALV IT_TABLE = IT_TABLE I_ROW_INT = I_TOP I_COLUMN_INT = I_LEFT I_TABLE = I_TABLE I_STYLE_TABLE = TABLE_STYLE IO_WORKSHEET = ME changing CO_EXCEL = EXCEL ). catch ZCX_EXCEL . endtry. endmethod. method BIND_ALV_OLE2. *--------------------------------------------------------------------* * Method description: * Method use to export a CL_GUI_ALV_GRID object to xlsx/xls file * with list header and characteristics of ALV field catalog such as: * + Total, group's subtotal * + Quantity fields, amount fields (dependent fields) * + No_out, no_zero, ... * Technique use in method: * SAP Desktop Office Integration (DOI) *--------------------------------------------------------------------* * Data for session 0: DOI constructor * ------------------------------------------ data: LO_CONTROL type ref to I_OI_CONTAINER_CONTROL. data: LO_PROXY type ref to I_OI_DOCUMENT_PROXY. data: LO_SPREADSHEET type ref to I_OI_SPREADSHEET. data: LO_ERROR type ref to I_OI_ERROR. data: LC_RETCODE type SOI_RET_STRING. data: LI_HAS type I. "Proxy has spreadsheet interface? data: L_IS_CLOSED type I. * Data for session 1: Get LVC data from ALV object * ------------------------------------------ data: L_HAS_ACTIVEX, L_DOCTYPE_EXCEL_SHEET(11) type C. * LVC data: LT_FIELDCAT_LVC type LVC_T_FCAT. data: WA_FIELDCAT_LVC type LVC_S_FCAT. data: LT_SORT_LVC type LVC_T_SORT. data: LT_FILTER_IDX_LVC type LVC_T_FIDX. data: LT_GROUPLEVELS_LVC type LVC_T_GRPL. * KKBLO data: LT_FIELDCAT_KKBLO type KKBLO_T_FIELDCAT. data: LT_SORT_KKBLO type KKBLO_T_SORTINFO. data: LT_GROUPLEVELS_KKBLO type KKBLO_T_GROUPLEVELS. data: LT_FILTER_IDX_KKBLO type KKBLO_T_SFINFO. data: WA_LISTHEADER like line of IT_LISTHEADER. * Subtotal data: LT_COLLECT00 type ref to DATA. data: LT_COLLECT01 type ref to DATA. data: LT_COLLECT02 type ref to DATA. data: LT_COLLECT03 type ref to DATA. data: LT_COLLECT04 type ref to DATA. data: LT_COLLECT05 type ref to DATA. data: LT_COLLECT06 type ref to DATA. data: LT_COLLECT07 type ref to DATA. data: LT_COLLECT08 type ref to DATA. data: LT_COLLECT09 type ref to DATA. * data table name data: L_TABNAME type KKBLO_TABNAME. * local object data: LO_GRID type ref to LCL_GUI_ALV_GRID. * data table get from ALV data: LT_ALV type ref to DATA. * total / subtotal data field-symbols: <F_COLLECT00> type standard table. field-symbols: <F_COLLECT01> type standard table. field-symbols: <F_COLLECT02> type standard table. field-symbols: <F_COLLECT03> type standard table. field-symbols: <F_COLLECT04> type standard table. field-symbols: <F_COLLECT05> type standard table. field-symbols: <F_COLLECT06> type standard table. field-symbols: <F_COLLECT07> type standard table. field-symbols: <F_COLLECT08> type standard table. field-symbols: <F_COLLECT09> type standard table. * table before append subtotal lines field-symbols: <F_ALV_TAB> type standard table. * data for session 2: sort, filter and calculate total/subtotal * ------------------------------------------ * table to save index of subotal / total line in excel tanle * this ideal to control index of subtotal / total line later * for ex, when get subtotal / total line to format types: begin of ST_SUBTOT_INDEXS, INDEX type I, end of ST_SUBTOT_INDEXS. data: LT_SUBTOT_INDEXS type table of ST_SUBTOT_INDEXS. data: WA_SUBTOT_INDEXS like line of LT_SUBTOT_INDEXS. * data table after append subtotal data: LT_EXCEL type ref to DATA. data: L_TABIX type I. data: L_SAVE_INDEX type I. * dyn subtotal table name data: L_COLLECT type STRING. * subtotal range, to format subtotal (and total) data: SUBRANGES type SOI_RANGE_LIST. data: SUBRANGEITEM type SOI_RANGE_ITEM. data: L_SUB_INDEX type I. * table after append subtotal lines field-symbols: <F_EXCEL_TAB> type standard table. field-symbols: <F_EXCEL_LINE> type ANY. * dyn subtotal tables field-symbols: <F_COLLECT_TAB> type standard table. field-symbols: <F_COLLECT_LINE> type ANY. field-symbols: <F_FILTER_IDX_LINE> like line of LT_FILTER_IDX_KKBLO. field-symbols: <F_FIELDCAT_LINE> like line of LT_FIELDCAT_KKBLO. field-symbols: <F_GROUPLEVELS_LINE> like line of LT_GROUPLEVELS_KKBLO. field-symbols: <F_LINE> type ANY. * Data for session 3: map data to semantic table * ------------------------------------------ types: begin of ST_COLUMN_INDEX, FIELDNAME type KKBLO_FIELDNAME, TABNAME type KKBLO_TABNAME, COL like SY-INDEX, end of ST_COLUMN_INDEX. * columns index data: LT_COLUMN_INDEX type table of ST_COLUMN_INDEX. data: WA_COLUMN_INDEX like line of LT_COLUMN_INDEX. * table of dependent field ( currency and quantity unit field) data: LT_FIELDCAT_DEPF type KKBLO_T_FIELDCAT. data: WA_FIELDCAT_DEPF type KKBLO_FIELDCAT. * XXL interface: * -XXL: contain exporting columns characteristic data: LT_SEMA type table of GXXLT_S initial size 0. data: WA_SEMA like line of LT_SEMA. * -XXL interface: header data: LT_HKEY type table of GXXLT_H initial size 0. data: WA_HKEY like line of LT_HKEY. * -XXL interface: header keys data: LT_VKEY type table of GXXLT_V initial size 0. data: WA_VKEY like line of LT_VKEY. * Number of H Keys: number of key columns data: L_N_HRZ_KEYS type I. * Number of data columns in the list object: non-key columns no data: L_N_ATT_COLS type I. * Number of V Keys: number of header row data: L_N_VRT_KEYS type I. * curency to format amount data: LT_TCURX type table of TCURX. data: WA_TCURX like line of LT_TCURX. data: L_DEF type FLAG. " currency / quantity flag data: WA_T006 type T006. " decimal place of unit data: L_NUM type I. " table columns number data: L_TYP type C. " table type data: WA type ref to DATA. data: L_INT type I. data: L_COUNTER type I. field-symbols: <F_EXCEL_COLUMN> type ANY. field-symbols: <F_FCAT_COLUMN> type ANY. * Data for session 4: write to excel * ------------------------------------------ data: SEMA_TYPE type C. data L_ERROR type ref to C_OI_PROXY_ERROR. data COUNT type I. data DATAC type I. data DATAREAL type I. " exporting column number data VKEYCOUNT type I. data ALL type I. data MIT type I value 1. " index of recent row? data LI_COL_POS type I value 1. " column position data LI_COL_NUM type I. " table columns number field-symbols: <LINE> type ANY. field-symbols: <ITEM> type ANY. data TD type SYDES_DESC. data: TYP. data: RANGES type SOI_RANGE_LIST. data: RANGEITEM type SOI_RANGE_ITEM. data: CONTENTS type SOI_GENERIC_TABLE. data: CONTENTSITEM type SOI_GENERIC_ITEM. data: SEMAITEM type GXXLT_S. data: HKEYITEM type GXXLT_H. data: VKEYITEM type GXXLT_V. data: LI_COMMENTARY_ROWS type I. "row number of title lines + 1 data: LO_ERROR_W type ref to I_OI_ERROR. data: L_RETCODE type SOI_RET_STRING. data: NO_FLUSH type C value 'X'. data: LI_HEAD_TOP type I. "header rows position * Data for session 5: Save and clode document * ------------------------------------------ data: LI_DOCUMENT_SIZE type I. data: LS_PATH type RLGRAP-FILENAME. * MACRO: Close_document *------------------------------------------- define CLOSE_DOCUMENT. clear: L_IS_CLOSED. if LO_PROXY is not initial. * check proxy detroyed adi call method LO_PROXY->IS_DESTROYED importing RET_VALUE = L_IS_CLOSED. * if dun detroyed yet: close -> release proxy if L_IS_CLOSED is initial. call method LO_PROXY->CLOSE_DOCUMENT * EXPORTING * do_save = do_save importing ERROR = LO_ERROR RETCODE = LC_RETCODE. endif. call method LO_PROXY->RELEASE_DOCUMENT importing ERROR = LO_ERROR RETCODE = LC_RETCODE. else. LC_RETCODE = C_OI_ERRORS=>RET_DOCUMENT_NOT_OPEN. endif. * Detroy control container if LO_CONTROL is not initial. call method LO_CONTROL->DESTROY_CONTROL. endif. clear: LO_SPREADSHEET, LO_PROXY, LO_CONTROL. * free local clear: L_IS_CLOSED. end-of-definition. * Macro to catch DOI error *------------------------------------------- define ERROR_DOI. if LC_RETCODE ne C_OI_ERRORS=>RET_OK. CLOSE_DOCUMENT. call method LO_ERROR->RAISE_MESSAGE exporting TYPE = 'E'. clear: LO_ERROR. endif. end-of-definition. *--------------------------------------------------------------------* * SESSION 0: DOI CONSTRUCTOR *--------------------------------------------------------------------* * check active windown call function 'GUI_HAS_ACTIVEX' importing RETURN = L_HAS_ACTIVEX. if L_HAS_ACTIVEX is initial. raise MISS_GUIDE. endif. * Get Container Object of Screen call method C_OI_CONTAINER_CONTROL_CREATOR=>GET_CONTAINER_CONTROL importing CONTROL = LO_CONTROL RETCODE = LC_RETCODE. ERROR_DOI. * Initialize Container control call method LO_CONTROL->INIT_CONTROL exporting PARENT = CL_GUI_CONTAINER=>DEFAULT_SCREEN R3_APPLICATION_NAME = '' INPLACE_ENABLED = 'X' NO_FLUSH = 'X' REGISTER_ON_CLOSE_EVENT = 'X' REGISTER_ON_CUSTOM_EVENT = 'X' importing ERROR = LO_ERROR RETCODE = LC_RETCODE. ERROR_DOI. * Get Proxy Document: * check exist of document proxy, if exist -> close first if not LO_PROXY is initial. CLOSE_DOCUMENT. endif. if I_XLS is not initial. * xls format, doctype = soi_doctype_excel97_sheet L_DOCTYPE_EXCEL_SHEET = 'Excel.Sheet.8'. else. * xlsx format, doctype = soi_doctype_excel_sheet L_DOCTYPE_EXCEL_SHEET = 'Excel.Sheet'. endif. call method LO_CONTROL->GET_DOCUMENT_PROXY exporting DOCUMENT_TYPE = L_DOCTYPE_EXCEL_SHEET REGISTER_CONTAINER = 'X' importing DOCUMENT_PROXY = LO_PROXY ERROR = LO_ERROR RETCODE = LC_RETCODE. ERROR_DOI. if I_DOCUMENT_URL is initial. * create new excel document call method LO_PROXY->CREATE_DOCUMENT exporting CREATE_VIEW_DATA = 'X' OPEN_INPLACE = 'X' NO_FLUSH = 'X' importing ERROR = LO_ERROR RETCODE = LC_RETCODE. ERROR_DOI. else. * Read excel template for i_DOCUMENT_URL * this excel template can be store in local or server call method LO_PROXY->OPEN_DOCUMENT exporting DOCUMENT_URL = I_DOCUMENT_URL OPEN_INPLACE = 'X' NO_FLUSH = 'X' importing ERROR = LO_ERROR RETCODE = LC_RETCODE. ERROR_DOI. endif. * Check Spreadsheet Interface of Document Proxy call method LO_PROXY->HAS_SPREADSHEET_INTERFACE importing IS_AVAILABLE = LI_HAS ERROR = LO_ERROR RETCODE = LC_RETCODE. ERROR_DOI. * create Spreadsheet object check LI_HAS is not initial. call method LO_PROXY->GET_SPREADSHEET_INTERFACE importing SHEET_INTERFACE = LO_SPREADSHEET ERROR = LO_ERROR RETCODE = LC_RETCODE. ERROR_DOI. *--------------------------------------------------------------------* * SESSION 1: GET LVC DATA FROM ALV OBJECT *--------------------------------------------------------------------* * data table create object LO_GRID exporting I_PARENT = CL_GUI_CONTAINER=>SCREEN0. call method LO_GRID->GET_ALV_ATTRIBUTES exporting IO_GRID = IO_ALV importing ET_TABLE = LT_ALV. assign LT_ALV->* to <F_ALV_TAB>. * fieldcat call method IO_ALV->GET_FRONTEND_FIELDCATALOG importing ET_FIELDCATALOG = LT_FIELDCAT_LVC. * table name loop at LT_FIELDCAT_LVC into WA_FIELDCAT_LVC where not TABNAME is initial. L_TABNAME = WA_FIELDCAT_LVC-TABNAME. exit. endloop. if SY-SUBRC ne 0. L_TABNAME = '1'. endif. clear: WA_FIELDCAT_LVC. * sort table call method IO_ALV->GET_SORT_CRITERIA importing ET_SORT = LT_SORT_LVC. * filter index call method IO_ALV->GET_FILTERED_ENTRIES importing ET_FILTERED_ENTRIES = LT_FILTER_IDX_LVC. * group level + subtotal call method IO_ALV->GET_SUBTOTALS importing EP_COLLECT00 = LT_COLLECT00 EP_COLLECT01 = LT_COLLECT01 EP_COLLECT02 = LT_COLLECT02 EP_COLLECT03 = LT_COLLECT03 EP_COLLECT04 = LT_COLLECT04 EP_COLLECT05 = LT_COLLECT05 EP_COLLECT06 = LT_COLLECT06 EP_COLLECT07 = LT_COLLECT07 EP_COLLECT08 = LT_COLLECT08 EP_COLLECT09 = LT_COLLECT09 ET_GROUPLEVELS = LT_GROUPLEVELS_LVC. assign LT_COLLECT00->* to <F_COLLECT00>. assign LT_COLLECT01->* to <F_COLLECT01>. assign LT_COLLECT02->* to <F_COLLECT02>. assign LT_COLLECT03->* to <F_COLLECT03>. assign LT_COLLECT04->* to <F_COLLECT04>. assign LT_COLLECT05->* to <F_COLLECT05>. assign LT_COLLECT06->* to <F_COLLECT06>. assign LT_COLLECT07->* to <F_COLLECT07>. assign LT_COLLECT08->* to <F_COLLECT08>. assign LT_COLLECT09->* to <F_COLLECT09>. * transfer to KKBLO struct call function 'LVC_TRANSFER_TO_KKBLO' exporting IT_FIELDCAT_LVC = LT_FIELDCAT_LVC IT_SORT_LVC = LT_SORT_LVC IT_FILTER_INDEX_LVC = LT_FILTER_IDX_LVC IT_GROUPLEVELS_LVC = LT_GROUPLEVELS_LVC importing ET_FIELDCAT_KKBLO = LT_FIELDCAT_KKBLO ET_SORT_KKBLO = LT_SORT_KKBLO ET_FILTERED_ENTRIES_KKBLO = LT_FILTER_IDX_KKBLO ET_GROUPLEVELS_KKBLO = LT_GROUPLEVELS_KKBLO tables IT_DATA = <F_ALV_TAB> exceptions IT_DATA_MISSING = 1 IT_FIELDCAT_LVC_MISSING = 2 others = 3. if SY-SUBRC <> 0. raise EX_TRANSFER_KKBLO_ERROR. endif. clear: WA_FIELDCAT_LVC, LT_FIELDCAT_LVC, LT_SORT_LVC, LT_FILTER_IDX_LVC, LT_GROUPLEVELS_LVC. clear: LO_GRID. *--------------------------------------------------------------------* * SESSION 2: SORT, FILTER AND CALCULATE TOTAL / SUBTOTAL *--------------------------------------------------------------------* * append subtotal & total line create data LT_EXCEL like <F_ALV_TAB>. assign LT_EXCEL->* to <F_EXCEL_TAB>. loop at <F_ALV_TAB> assigning <F_LINE>. L_SAVE_INDEX = SY-TABIX. * filter base on filter index table read table LT_FILTER_IDX_KKBLO assigning <F_FILTER_IDX_LINE> with key INDEX = L_SAVE_INDEX binary search. if SY-SUBRC ne 0. append <F_LINE> to <F_EXCEL_TAB>. endif. * append subtotal lines read table LT_GROUPLEVELS_KKBLO assigning <F_GROUPLEVELS_LINE> with key INDEX_TO = L_SAVE_INDEX binary search. if SY-SUBRC = 0. L_TABIX = SY-TABIX. do. if <F_GROUPLEVELS_LINE>-SUBTOT eq 'X' and <F_GROUPLEVELS_LINE>-HIDE_LEVEL is initial and <F_GROUPLEVELS_LINE>-CINDEX_FROM ne 0. * dynamic append subtotal line to excel table base on grouplevel table * ex <f_GROUPLEVELS_line>-level = 1 * then <f_collect_tab> = '<F_COLLECT01>' L_COLLECT = <F_GROUPLEVELS_LINE>-LEVEL. condense L_COLLECT. concatenate '<F_COLLECT0' L_COLLECT '>' * '->*' into L_COLLECT. assign (L_COLLECT) to <F_COLLECT_TAB>. * incase there're more than 1 total line of group, at the same level * for example: subtotal of multi currency loop at <F_COLLECT_TAB> assigning <F_COLLECT_LINE>. if SY-TABIX between <F_GROUPLEVELS_LINE>-CINDEX_FROM and <F_GROUPLEVELS_LINE>-CINDEX_TO. append <F_COLLECT_LINE> to <F_EXCEL_TAB>. * save subtotal lines index WA_SUBTOT_INDEXS-INDEX = SY-TABIX. append WA_SUBTOT_INDEXS to LT_SUBTOT_INDEXS. * append sub total ranges table for format later add 1 to L_SUB_INDEX. SUBRANGEITEM-NAME = L_SUB_INDEX. condense SUBRANGEITEM-NAME. concatenate 'SUBTOT' SUBRANGEITEM-NAME into SUBRANGEITEM-NAME. SUBRANGEITEM-ROWS = WA_SUBTOT_INDEXS-INDEX. SUBRANGEITEM-COLUMNS = 1. " start col append SUBRANGEITEM to SUBRANGES. clear: SUBRANGEITEM. endif. endloop. unassign: <F_COLLECT_TAB>. unassign: <F_COLLECT_LINE>. clear: L_COLLECT. endif. * check next subtotal level of group unassign: <F_GROUPLEVELS_LINE>. add 1 to L_TABIX. read table LT_GROUPLEVELS_KKBLO assigning <F_GROUPLEVELS_LINE> index L_TABIX. if SY-SUBRC ne 0 or <F_GROUPLEVELS_LINE>-INDEX_TO ne L_SAVE_INDEX. exit. endif. unassign: <F_COLLECT_TAB>, <F_COLLECT_LINE>. enddo. endif. clear: L_TABIX, L_SAVE_INDEX. unassign: <F_FILTER_IDX_LINE>, <F_GROUPLEVELS_LINE>. endloop. * free local data unassign: <F_LINE>, <F_COLLECT_TAB>, <F_COLLECT_LINE>, <F_FIELDCAT_LINE>. * append grand total line if <F_COLLECT00> is assigned. assign <F_COLLECT00> to <F_COLLECT_TAB>. if <F_COLLECT_TAB> is not initial. loop at <F_COLLECT_TAB> assigning <F_COLLECT_LINE>. append <F_COLLECT_LINE> to <F_EXCEL_TAB>. * save total line index WA_SUBTOT_INDEXS-INDEX = SY-TABIX. append WA_SUBTOT_INDEXS to LT_SUBTOT_INDEXS. * append grand total range (to format) add 1 to L_SUB_INDEX. SUBRANGEITEM-NAME = L_SUB_INDEX. condense SUBRANGEITEM-NAME. concatenate 'TOTAL' SUBRANGEITEM-NAME into SUBRANGEITEM-NAME. SUBRANGEITEM-ROWS = WA_SUBTOT_INDEXS-INDEX. SUBRANGEITEM-COLUMNS = 1. " start col append SUBRANGEITEM to SUBRANGES. endloop. endif. endif. clear: SUBRANGEITEM, LT_SORT_KKBLO, <F_COLLECT00>, <F_COLLECT01>, <F_COLLECT02>, <F_COLLECT03>, <F_COLLECT04>, <F_COLLECT05>, <F_COLLECT06>, <F_COLLECT07>, <F_COLLECT08>, <F_COLLECT09>. unassign: <F_COLLECT00>, <F_COLLECT01>, <F_COLLECT02>, <F_COLLECT03>, <F_COLLECT04>, <F_COLLECT05>, <F_COLLECT06>, <F_COLLECT07>, <F_COLLECT08>, <F_COLLECT09>, <F_COLLECT_TAB>, <F_COLLECT_LINE>. *--------------------------------------------------------------------* * SESSION 3: MAP DATA TO SEMANTIC TABLE *--------------------------------------------------------------------* * get dependent field field: currency and quantity create data WA like line of <F_EXCEL_TAB>. assign WA->* to <F_EXCEL_LINE>. describe field <F_EXCEL_LINE> type L_TYP components L_NUM. do L_NUM times. L_SAVE_INDEX = SY-INDEX. assign component L_SAVE_INDEX of structure <F_EXCEL_LINE> to <F_EXCEL_COLUMN>. if SY-SUBRC ne 0. message E059(0K) with 'FATAL ERROR' raising FATAL_ERROR. endif. loop at LT_FIELDCAT_KKBLO assigning <F_FIELDCAT_LINE> where TABNAME = L_TABNAME. assign component <F_FIELDCAT_LINE>-FIELDNAME of structure <F_EXCEL_LINE> to <F_FCAT_COLUMN>. describe distance between <F_EXCEL_COLUMN> and <F_FCAT_COLUMN> into L_INT in byte mode. * append column index * this columns index is of table, not fieldcat if L_INT = 0. WA_COLUMN_INDEX-FIELDNAME = <F_FIELDCAT_LINE>-FIELDNAME. WA_COLUMN_INDEX-TABNAME = <F_FIELDCAT_LINE>-TABNAME. WA_COLUMN_INDEX-COL = L_SAVE_INDEX. append WA_COLUMN_INDEX to LT_COLUMN_INDEX. endif. * append dependent fields (currency and quantity unit) if <F_FIELDCAT_LINE>-CFIELDNAME is not initial. clear WA_FIELDCAT_DEPF. WA_FIELDCAT_DEPF-FIELDNAME = <F_FIELDCAT_LINE>-CFIELDNAME. WA_FIELDCAT_DEPF-TABNAME = <F_FIELDCAT_LINE>-CTABNAME. collect WA_FIELDCAT_DEPF into LT_FIELDCAT_DEPF. endif. if <F_FIELDCAT_LINE>-QFIELDNAME is not initial. clear WA_FIELDCAT_DEPF. WA_FIELDCAT_DEPF-FIELDNAME = <F_FIELDCAT_LINE>-QFIELDNAME. WA_FIELDCAT_DEPF-TABNAME = <F_FIELDCAT_LINE>-QTABNAME. collect WA_FIELDCAT_DEPF into LT_FIELDCAT_DEPF. endif. * rewrite field data type if <F_FIELDCAT_LINE>-INTTYPE = 'X' and <F_FIELDCAT_LINE>-DATATYPE(3) = 'INT'. <F_FIELDCAT_LINE>-INTTYPE = 'I'. endif. endloop. clear: L_SAVE_INDEX. unassign: <F_FIELDCAT_LINE>. enddo. * build semantic tables L_N_HRZ_KEYS = 1. * Get keyfigures loop at LT_FIELDCAT_KKBLO assigning <F_FIELDCAT_LINE> where TABNAME = L_TABNAME and TECH ne 'X' and NO_OUT ne 'X'. clear WA_SEMA. clear WA_HKEY. * Units belong to keyfigures -> display as str read table LT_FIELDCAT_DEPF into WA_FIELDCAT_DEPF with key FIELDNAME = <F_FIELDCAT_LINE>-FIELDNAME TABNAME = <F_FIELDCAT_LINE>-TABNAME. if SY-SUBRC = 0. WA_SEMA-COL_TYP = 'STR'. WA_SEMA-COL_OPS = 'DFT'. * Keyfigures else. case <F_FIELDCAT_LINE>-DATATYPE. when 'QUAN'. WA_SEMA-COL_TYP = 'N03'. if <F_FIELDCAT_LINE>-NO_SUM ne 'X'. WA_SEMA-COL_OPS = 'ADD'. else. WA_SEMA-COL_OPS = 'NOP'. " no dependent field endif. when 'DATS'. WA_SEMA-COL_TYP = 'DAT'. WA_SEMA-COL_OPS = 'NOP'. when 'CHAR' or 'UNIT' or 'CUKY'. " Added fieldformats UNIT and CUKY - dd. 26-10-2012 Wouter Heuvelmans WA_SEMA-COL_TYP = 'STR'. WA_SEMA-COL_OPS = 'DFT'. " dependent field * incase numeric, ex '00120' -> display as '12' when 'NUMC'. WA_SEMA-COL_TYP = 'STR'. WA_SEMA-COL_OPS = 'DFT'. when others. WA_SEMA-COL_TYP = 'NUM'. if <F_FIELDCAT_LINE>-NO_SUM ne 'X'. WA_SEMA-COL_OPS = 'ADD'. else. WA_SEMA-COL_OPS = 'NOP'. endif. endcase. endif. L_COUNTER = L_COUNTER + 1. L_N_ATT_COLS = L_N_ATT_COLS + 1. WA_SEMA-COL_NO = L_COUNTER. read table LT_COLUMN_INDEX into WA_COLUMN_INDEX with key FIELDNAME = <F_FIELDCAT_LINE>-FIELDNAME TABNAME = <F_FIELDCAT_LINE>-TABNAME. if SY-SUBRC = 0. WA_SEMA-COL_SRC = WA_COLUMN_INDEX-COL. else. raise FATAL_ERROR. endif. * columns index of ref currency field in table if not <F_FIELDCAT_LINE>-CFIELDNAME is initial. read table LT_COLUMN_INDEX into WA_COLUMN_INDEX with key FIELDNAME = <F_FIELDCAT_LINE>-CFIELDNAME TABNAME = <F_FIELDCAT_LINE>-CTABNAME. if SY-SUBRC = 0. WA_SEMA-COL_CUR = WA_COLUMN_INDEX-COL. endif. * quantities fields * treat as currency when display on excel elseif not <F_FIELDCAT_LINE>-QFIELDNAME is initial. read table LT_COLUMN_INDEX into WA_COLUMN_INDEX with key FIELDNAME = <F_FIELDCAT_LINE>-QFIELDNAME TABNAME = <F_FIELDCAT_LINE>-QTABNAME. if SY-SUBRC = 0. WA_SEMA-COL_CUR = WA_COLUMN_INDEX-COL. endif. endif. * Treat of fixed currency in the fieldcatalog for column data: L_NUM_HELP(2) type N. if not <F_FIELDCAT_LINE>-CURRENCY is initial. select * from TCURX into table LT_TCURX. sort LT_TCURX. read table LT_TCURX into WA_TCURX with key CURRKEY = <F_FIELDCAT_LINE>-CURRENCY. if SY-SUBRC = 0. L_NUM_HELP = WA_TCURX-CURRDEC. concatenate 'N' L_NUM_HELP into WA_SEMA-COL_TYP. WA_SEMA-COL_CUR = SY-TABIX * ( -1 ). endif. endif. WA_HKEY-COL_NO = L_N_ATT_COLS. WA_HKEY-ROW_NO = L_N_HRZ_KEYS. WA_HKEY-COL_NAME = <F_FIELDCAT_LINE>-REPTEXT. append WA_HKEY to LT_HKEY. append WA_SEMA to LT_SEMA. endloop. * free local data clear: LT_COLUMN_INDEX, WA_COLUMN_INDEX, LT_FIELDCAT_DEPF, WA_FIELDCAT_DEPF, LT_TCURX, WA_TCURX, L_NUM, L_TYP, WA, L_INT, L_COUNTER. unassign: <F_FIELDCAT_LINE>, <F_EXCEL_LINE>, <F_EXCEL_COLUMN>, <F_FCAT_COLUMN>. *--------------------------------------------------------------------* * SESSION 4: WRITE TO EXCEL *--------------------------------------------------------------------* clear: WA_TCURX. refresh: LT_TCURX. * if spreadsheet dun have proxy yet if LI_HAS is initial. L_RETCODE = C_OI_ERRORS=>RET_INTERFACE_NOT_SUPPORTED. call method C_OI_ERRORS=>CREATE_ERROR_FOR_RETCODE exporting RETCODE = L_RETCODE NO_FLUSH = NO_FLUSH importing ERROR = LO_ERROR_W. exit. endif. create object L_ERROR exporting OBJECT_NAME = 'OLE_DOCUMENT_PROXY' METHOD_NAME = 'get_ranges_names'. call method C_OI_ERRORS=>ADD_ERROR exporting ERROR = L_ERROR. describe table LT_SEMA lines DATAREAL. describe table <F_EXCEL_TAB> lines DATAC. describe table LT_VKEY lines VKEYCOUNT. if DATAC = 0. raise INV_DATA_RANGE. endif. if VKEYCOUNT ne L_N_VRT_KEYS. raise DIM_MISMATCH_VKEY. endif. ALL = L_N_VRT_KEYS + L_N_ATT_COLS. if DATAREAL ne ALL. raise DIM_MISMATCH_SEMA. endif. data: DECIMAL type C. * get decimal separator format ('.', ',', ...) in Office config call method LO_PROXY->GET_APPLICATION_PROPERTY exporting PROPERTY_NAME = 'INTERNATIONAL' SUBPROPERTY_NAME = 'DECIMAL_SEPARATOR' changing RETVALUE = DECIMAL. data: WA_USR type USR01. select * from USR01 into WA_USR where BNAME = SY-UNAME. endselect. data: COMMA_ELIM(4) type C. field-symbols <G> type ANY. data SEARCH_ITEM(4) value ' #'. concatenate ',' DECIMAL '.' DECIMAL into COMMA_ELIM. data HELP type I. " table (with subtotal) line number HELP = DATAC. data: ROWMAX type I value 1. " header row number data: COLUMNMAX type I value 0. " header columns number loop at LT_HKEY into HKEYITEM. if HKEYITEM-COL_NO > COLUMNMAX. COLUMNMAX = HKEYITEM-COL_NO. endif. if HKEYITEM-ROW_NO > ROWMAX. ROWMAX = HKEYITEM-ROW_NO. endif. endloop. data: HKEYCOLUMNS type I. " header columns no HKEYCOLUMNS = COLUMNMAX. if HKEYCOLUMNS < L_N_ATT_COLS. HKEYCOLUMNS = L_N_ATT_COLS. endif. COLUMNMAX = 0. loop at LT_VKEY into VKEYITEM. if VKEYITEM-COL_NO > COLUMNMAX. COLUMNMAX = VKEYITEM-COL_NO. endif. endloop. data OVERFLOW type I value 1. data TESTNAME(10) type C. data TEMP2 type I. " 1st item row position in excel data REALMIT type I value 1. data REALOVERFLOW type I value 1. " row index in content call method LO_SPREADSHEET->SCREEN_UPDATE exporting UPDATING = ''. call method LO_SPREADSHEET->LOAD_LIB. data: STR(40) type C. " range names of columns range (w/o col header) data: ROWS type I. " row postion of 1st item line in ecxel * calculate row position of data table describe table IT_LISTHEADER lines LI_COMMENTARY_ROWS. * if grid had title, add 1 empy line between title and table if LI_COMMENTARY_ROWS ne 0. add 1 to LI_COMMENTARY_ROWS. endif. * add top position of block data LI_COMMENTARY_ROWS = LI_COMMENTARY_ROWS + I_TOP - 1. * write header (commentary rows) data: LI_COMMENTARY_ROW_INDEX type I value 1. data: LI_CONTENT_INDEX type I value 1. data: LS_INDEX(10) type C. data LS_COMMENTARY_RANGE(40) type C value 'TITLE'. data: LI_FONT_BOLD type I. data: LI_FONT_ITALIC type I. data: LI_FONT_SIZE type I. loop at IT_LISTHEADER into WA_LISTHEADER. LI_COMMENTARY_ROW_INDEX = I_TOP + LI_CONTENT_INDEX - 1. LS_INDEX = LI_CONTENT_INDEX. condense LS_INDEX. concatenate LS_COMMENTARY_RANGE(5) LS_INDEX into LS_COMMENTARY_RANGE. condense LS_COMMENTARY_RANGE. * insert title range call method LO_SPREADSHEET->INSERT_RANGE_DIM exporting NAME = LS_COMMENTARY_RANGE TOP = LI_COMMENTARY_ROW_INDEX LEFT = I_LEFT ROWS = 1 COLUMNS = 1 NO_FLUSH = NO_FLUSH. * format range case WA_LISTHEADER-TYP. when 'H'. "title LI_FONT_SIZE = 16. LI_FONT_BOLD = 1. LI_FONT_ITALIC = -1. when 'S'. "subtile LI_FONT_SIZE = -1. LI_FONT_BOLD = 1. LI_FONT_ITALIC = -1. when others. "'A' comment LI_FONT_SIZE = -1. LI_FONT_BOLD = -1. LI_FONT_ITALIC = 1. endcase. call method LO_SPREADSHEET->SET_FONT exporting RANGENAME = LS_COMMENTARY_RANGE FAMILY = '' SIZE = LI_FONT_SIZE BOLD = LI_FONT_BOLD ITALIC = LI_FONT_ITALIC ALIGN = 0 NO_FLUSH = NO_FLUSH. * title: range content RANGEITEM-NAME = LS_COMMENTARY_RANGE. RANGEITEM-COLUMNS = 1. RANGEITEM-ROWS = 1. append RANGEITEM to RANGES. CONTENTSITEM-ROW = LI_CONTENT_INDEX. CONTENTSITEM-COLUMN = 1. concatenate WA_LISTHEADER-KEY WA_LISTHEADER-INFO into CONTENTSITEM-VALUE separated by SPACE. condense CONTENTSITEM-VALUE. append CONTENTSITEM to CONTENTS. add 1 to LI_CONTENT_INDEX. clear: RANGEITEM, CONTENTSITEM, LS_INDEX. endloop. * set range data title call method LO_SPREADSHEET->SET_RANGES_DATA exporting RANGES = RANGES CONTENTS = CONTENTS NO_FLUSH = NO_FLUSH. refresh: RANGES, CONTENTS. ROWS = ROWMAX + LI_COMMENTARY_ROWS + 1. ALL = WA_USR-DATFM. ALL = ALL + 3. loop at LT_SEMA into SEMAITEM. if SEMAITEM-COL_TYP = 'DAT' or SEMAITEM-COL_TYP = 'MON' or SEMAITEM-COL_TYP = 'N00' or SEMAITEM-COL_TYP = 'N01' or SEMAITEM-COL_TYP = 'N01' or SEMAITEM-COL_TYP = 'N02' or SEMAITEM-COL_TYP = 'N03' or SEMAITEM-COL_TYP = 'PCT' or SEMAITEM-COL_TYP = 'STR' or SEMAITEM-COL_TYP = 'NUM'. clear STR. STR = SEMAITEM-COL_NO. condense STR. concatenate 'DATA' STR into STR. MIT = SEMAITEM-COL_NO. LI_COL_POS = SEMAITEM-COL_NO + I_LEFT - 1. * range from data1 to data(n), for each columns of table call method LO_SPREADSHEET->INSERT_RANGE_DIM exporting NAME = STR TOP = ROWS LEFT = LI_COL_POS ROWS = HELP COLUMNS = 1 NO_FLUSH = NO_FLUSH. data DEC type I value -1. data TYPEINFO type SYDES_TYPEINFO. loop at <F_EXCEL_TAB> assigning <LINE>. assign component SEMAITEM-COL_NO of structure <LINE> to <ITEM>. describe field <ITEM> into TD. read table TD-TYPES index 1 into TYPEINFO. if TYPEINFO-TYPE = 'P'. DEC = TYPEINFO-DECIMALS. elseif TYPEINFO-TYPE = 'I'. DEC = 0. endif. describe field <LINE> type TYP components COUNT. MIT = 1. do COUNT times. if MIT = SEMAITEM-COL_SRC. assign component SY-INDEX of structure <LINE> to <ITEM>. describe field <ITEM> into TD. read table TD-TYPES index 1 into TYPEINFO. if TYPEINFO-TYPE = 'P'. DEC = TYPEINFO-DECIMALS. endif. exit. endif. MIT = MIT + 1. enddo. exit. endloop. * format for each columns of table (w/o columns headers) if SEMAITEM-COL_TYP = 'DAT'. if SEMAITEM-COL_NO > VKEYCOUNT. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = ALL NO_FLUSH = NO_FLUSH. else. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 0 NO_FLUSH = NO_FLUSH. endif. elseif SEMAITEM-COL_TYP = 'STR'. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 0 NO_FLUSH = NO_FLUSH. elseif SEMAITEM-COL_TYP = 'MON'. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 10 NO_FLUSH = NO_FLUSH. elseif SEMAITEM-COL_TYP = 'N00'. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 1 DECIMALS = 0 NO_FLUSH = NO_FLUSH. elseif SEMAITEM-COL_TYP = 'N01'. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 1 DECIMALS = 1 NO_FLUSH = NO_FLUSH. elseif SEMAITEM-COL_TYP = 'N02'. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 1 DECIMALS = 2 NO_FLUSH = NO_FLUSH. elseif SEMAITEM-COL_TYP = 'N03'. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 1 DECIMALS = 3 NO_FLUSH = NO_FLUSH. elseif SEMAITEM-COL_TYP = 'N04'. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 1 DECIMALS = 4 NO_FLUSH = NO_FLUSH. elseif SEMAITEM-COL_TYP = 'NUM'. if DEC eq -1. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 1 DECIMALS = 2 NO_FLUSH = NO_FLUSH. else. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 1 DECIMALS = DEC NO_FLUSH = NO_FLUSH. endif. elseif SEMAITEM-COL_TYP = 'PCT'. call method LO_SPREADSHEET->SET_FORMAT exporting RANGENAME = STR CURRENCY = '' TYP = 3 DECIMALS = 0 NO_FLUSH = NO_FLUSH. endif. endif. endloop. * get item contents for set_range_data method * get currency cell also MIT = 1. data: CURRCELLS type SOI_CELL_TABLE. data: CURRITEM type SOI_CELL_ITEM. CURRITEM-ROWS = 1. CURRITEM-COLUMNS = 1. CURRITEM-FRONT = -1. CURRITEM-BACK = -1. CURRITEM-FONT = ''. CURRITEM-SIZE = -1. CURRITEM-BOLD = -1. CURRITEM-ITALIC = -1. CURRITEM-ALIGN = -1. CURRITEM-FRAMETYP = -1. CURRITEM-FRAMECOLOR = -1. CURRITEM-CURRENCY = ''. CURRITEM-NUMBER = 1. CURRITEM-INPUT = -1. data: CONST type I. * Change for Correction request * Initial 10000 lines are missing in Excel Export * if there are only 2 columns in exported List object. if DATAREAL gt 2. CONST = 20000 / DATAREAL. else. CONST = 20000 / ( DATAREAL + 2 ). endif. data: LINES type I. data: INNERLINES type I. data: COUNTER type I. data: CURRITEM2 like CURRITEM. data: CURRITEM3 like CURRITEM. data: LENGTH type I. data: FOUND. * append content table (for method set_range_content) loop at <F_EXCEL_TAB> assigning <LINE>. * save line index to compare with lt_subtot_indexs, * to discover line is a subtotal / totale line or not * ex use to set 'dun display zero in subtotal / total line' L_SAVE_INDEX = SY-TABIX. do DATAREAL times. read table LT_SEMA into SEMAITEM with key COL_NO = SY-INDEX. if SEMAITEM-COL_SRC ne 0. assign component SEMAITEM-COL_SRC of structure <LINE> to <ITEM>. else. assign component SY-INDEX of structure <LINE> to <ITEM>. endif. CONTENTSITEM-ROW = REALOVERFLOW. if SY-SUBRC = 0. move SEMAITEM-COL_OPS to SEARCH_ITEM(3). search 'ADD#CNT#MIN#MAX#AVG#NOP#DFT#' for SEARCH_ITEM. if SY-SUBRC ne 0. raise ERROR_IN_SEMA. endif. move SEMAITEM-COL_TYP to SEARCH_ITEM(3). search 'NUM#N00#N01#N02#N03#N04#PCT#DAT#MON#STR#' for SEARCH_ITEM. if SY-SUBRC ne 0. raise ERROR_IN_SEMA. endif. CONTENTSITEM-COLUMN = SY-INDEX. if SEMAITEM-COL_TYP eq 'DAT' or SEMAITEM-COL_TYP eq 'MON'. if SEMAITEM-COL_NO > VKEYCOUNT. " Hinweis 512418 " EXCEL bezieht Datumsangaben " auf den 31.12.1899, behandelt " aber 1900 als ein Schaltjahr " d.h. ab 1.3.1900 korrekt " 1.3.1900 als Zahl = 61 data: GENESIS type D value '18991230'. data: NUMBER_OF_DAYS type P. * change for date in char format & sema_type = X data: TEMP_DATE type D. if not <ITEM> is initial and not <ITEM> co ' ' and not <ITEM> co '0'. * change for date in char format & sema_type = X starts if SEMA_TYPE = 'X'. describe field <ITEM> type TYP. if TYP = 'C'. TEMP_DATE = <ITEM>. NUMBER_OF_DAYS = TEMP_DATE - GENESIS. else. NUMBER_OF_DAYS = <ITEM> - GENESIS. endif. else. NUMBER_OF_DAYS = <ITEM> - GENESIS. endif. * change for date in char format & sema_type = X ends if NUMBER_OF_DAYS < 61. NUMBER_OF_DAYS = NUMBER_OF_DAYS - 1. endif. set country 'DE'. write NUMBER_OF_DAYS to CONTENTSITEM-VALUE no-grouping left-justified. set country SPACE. translate CONTENTSITEM-VALUE using COMMA_ELIM. else. clear CONTENTSITEM-VALUE. endif. else. move <ITEM> to CONTENTSITEM-VALUE. endif. elseif SEMAITEM-COL_TYP eq 'NUM' or SEMAITEM-COL_TYP eq 'N00' or SEMAITEM-COL_TYP eq 'N01' or SEMAITEM-COL_TYP eq 'N02' or SEMAITEM-COL_TYP eq 'N03' or SEMAITEM-COL_TYP eq 'N04' or SEMAITEM-COL_TYP eq 'PCT'. set country 'DE'. describe field <ITEM> type TYP. if SEMAITEM-COL_CUR is initial. if TYP ne 'F'. write <ITEM> to CONTENTSITEM-VALUE no-grouping no-sign decimals 14. else. write <ITEM> to CONTENTSITEM-VALUE no-grouping no-sign. endif. else. * Treat of fixed curreny for column >>Y9CK007319 if SEMAITEM-COL_CUR < 0. SEMAITEM-COL_CUR = SEMAITEM-COL_CUR * ( -1 ). select * from TCURX into table LT_TCURX. sort LT_TCURX. read table LT_TCURX into WA_TCURX index SEMAITEM-COL_CUR. if SY-SUBRC = 0. if TYP ne 'F'. write <ITEM> to CONTENTSITEM-VALUE no-grouping currency WA_TCURX-CURRKEY no-sign decimals 14. else. write <ITEM> to CONTENTSITEM-VALUE no-grouping currency WA_TCURX-CURRKEY no-sign. endif. endif. else. assign component SEMAITEM-COL_CUR of structure <LINE> to <G>. * mit = index of recent row CURRITEM-TOP = ROWMAX + MIT + LI_COMMENTARY_ROWS. LI_COL_POS = SY-INDEX + I_LEFT - 1. CURRITEM-LEFT = LI_COL_POS. * if filed is quantity field (qfieldname ne space) * or amount field (cfieldname ne space), then format decimal place * corresponding with config clear: L_DEF. read table LT_FIELDCAT_KKBLO assigning <F_FIELDCAT_LINE> with key TABNAME = L_TABNAME TECH = SPACE NO_OUT = SPACE COL_POS = SEMAITEM-COL_NO. if SY-SUBRC = 0. if <F_FIELDCAT_LINE>-CFIELDNAME is not initial. L_DEF = 'C'. else."if <f_fieldcat_line>-qfieldname is not initial. L_DEF = 'Q'. endif. endif. * if field is amount field * exporting of amount field base on currency decimal table: TCURX if L_DEF = 'C'. "field is amount field select single * from TCURX into WA_TCURX where CURRKEY = <G>. * if amount ref to un-know currency -> default decimal = 2 if SY-SUBRC eq 0. CURRITEM-DECIMALS = WA_TCURX-CURRDEC. else. CURRITEM-DECIMALS = 2. endif. append CURRITEM to CURRCELLS. if TYP ne 'F'. write <ITEM> to CONTENTSITEM-VALUE currency <G> no-sign no-grouping. else. write <ITEM> to CONTENTSITEM-VALUE decimals 14 currency <G> no-sign no-grouping. endif. * if field is quantity field * exporting of quantity field base on quantity decimal table: T006 else."if l_def = 'Q'. " field is quantity field clear: WA_T006. select single * from T006 into WA_T006 where MSEHI = <G>. * if quantity ref to un-know unit-> default decimal = 2 if SY-SUBRC eq 0. CURRITEM-DECIMALS = WA_T006-DECAN. else. CURRITEM-DECIMALS = 2. endif. append CURRITEM to CURRCELLS. write <ITEM> to CONTENTSITEM-VALUE unit <G> no-sign no-grouping. condense CONTENTSITEM-VALUE. endif. endif. "Y9CK007319 endif. condense CONTENTSITEM-VALUE. * add function fieldcat-no zero display loop at LT_FIELDCAT_KKBLO assigning <F_FIELDCAT_LINE> where TABNAME = L_TABNAME and TECH ne 'X' and NO_OUT ne 'X'. if <F_FIELDCAT_LINE>-COL_POS = SEMAITEM-COL_NO. if <F_FIELDCAT_LINE>-NO_ZERO = 'X'. if <ITEM> = '0'. clear: CONTENTSITEM-VALUE. endif. * dun display zero in total/subtotal line too else. clear: WA_SUBTOT_INDEXS. read table LT_SUBTOT_INDEXS into WA_SUBTOT_INDEXS with key INDEX = L_SAVE_INDEX. if SY-SUBRC = 0 and <ITEM> = '0'. clear: CONTENTSITEM-VALUE. endif. endif. endif. endloop. unassign: <F_FIELDCAT_LINE>. if <ITEM> lt 0. search CONTENTSITEM-VALUE for 'E'. if SY-FDPOS eq 0. * use prefix notation for signed numbers translate CONTENTSITEM-VALUE using '- '. condense CONTENTSITEM-VALUE no-gaps. concatenate '-' CONTENTSITEM-VALUE into CONTENTSITEM-VALUE. else. concatenate '-' CONTENTSITEM-VALUE into CONTENTSITEM-VALUE. endif. endif. set country SPACE. * Hier wird nur die korrekte Kommaseparatierung gemacht, wenn die * Zeichen einer * Zahl enthalten sind. Das ist für Timestamps, die auch ":" enthalten. * Für die * darf keine Kommaseparierung stattfinden. * Changing for correction request - Y6BK041073 if CONTENTSITEM-VALUE co '0123456789.,-+E '. translate CONTENTSITEM-VALUE using COMMA_ELIM. endif. else. clear CONTENTSITEM-VALUE. * if type is not numeric -> dun display with zero write <ITEM> to CONTENTSITEM-VALUE no-zero. shift CONTENTSITEM-VALUE left deleting leading SPACE. endif. append CONTENTSITEM to CONTENTS. endif. enddo. REALMIT = REALMIT + 1. REALOVERFLOW = REALOVERFLOW + 1. MIT = MIT + 1. * overflow = current row index in content table OVERFLOW = OVERFLOW + 1. endloop. unassign: <F_FIELDCAT_LINE>. * set item range for set_range_data method TESTNAME = MIT / CONST. condense TESTNAME. concatenate 'TEST' TESTNAME into TESTNAME. REALOVERFLOW = REALOVERFLOW - 1. REALMIT = REALMIT - 1. HELP = REALOVERFLOW. RANGEITEM-NAME = TESTNAME. RANGEITEM-COLUMNS = DATAREAL. RANGEITEM-ROWS = HELP. append RANGEITEM to RANGES. * insert item range dim TEMP2 = ROWMAX + 1 + LI_COMMENTARY_ROWS + REALMIT - REALOVERFLOW. * items data call method LO_SPREADSHEET->INSERT_RANGE_DIM exporting NAME = TESTNAME TOP = TEMP2 LEFT = I_LEFT ROWS = HELP COLUMNS = DATAREAL NO_FLUSH = NO_FLUSH. * get columns header contents for set_range_data method * export columns header only if no columns header option = space data: ROWCOUNT type I. data: COLUMNCOUNT type I. if I_COLUMNS_HEADER = 'X'. * append columns header to contents: hkey ROWCOUNT = 1. do ROWMAX times. COLUMNCOUNT = 1. do HKEYCOLUMNS times. loop at LT_HKEY into HKEYITEM where COL_NO = COLUMNCOUNT and ROW_NO = ROWCOUNT. endloop. if SY-SUBRC = 0. STR = HKEYITEM-COL_NAME. CONTENTSITEM-VALUE = HKEYITEM-COL_NAME. else. CONTENTSITEM-VALUE = STR. endif. CONTENTSITEM-COLUMN = COLUMNCOUNT. CONTENTSITEM-ROW = ROWCOUNT. append CONTENTSITEM to CONTENTS. COLUMNCOUNT = COLUMNCOUNT + 1. enddo. ROWCOUNT = ROWCOUNT + 1. enddo. * incase columns header in multiline data: ROWMAXTEMP type I. if ROWMAX > 1. ROWMAXTEMP = ROWMAX - 1. ROWCOUNT = 1. do ROWMAXTEMP times. COLUMNCOUNT = 1. do COLUMNMAX times. CONTENTSITEM-COLUMN = COLUMNCOUNT. CONTENTSITEM-ROW = ROWCOUNT. CONTENTSITEM-VALUE = ''. append CONTENTSITEM to CONTENTS. COLUMNCOUNT = COLUMNCOUNT + 1. enddo. ROWCOUNT = ROWCOUNT + 1. enddo. endif. * append columns header to contents: vkey COLUMNCOUNT = 1. do COLUMNMAX times. loop at LT_VKEY into VKEYITEM where COL_NO = COLUMNCOUNT. endloop. CONTENTSITEM-VALUE = VKEYITEM-COL_NAME. CONTENTSITEM-ROW = ROWMAX. CONTENTSITEM-COLUMN = COLUMNCOUNT. append CONTENTSITEM to CONTENTS. COLUMNCOUNT = COLUMNCOUNT + 1. enddo. *--------------------------------------------------------------------* * set header range for method set_range_data * insert header keys range dim LI_HEAD_TOP = LI_COMMENTARY_ROWS + 1. LI_COL_POS = I_LEFT. * insert range headers if HKEYCOLUMNS ne 0. RANGEITEM-NAME = 'TESTHKEY'. RANGEITEM-ROWS = ROWMAX. RANGEITEM-COLUMNS = HKEYCOLUMNS. append RANGEITEM to RANGES. clear: RANGEITEM. call method LO_SPREADSHEET->INSERT_RANGE_DIM exporting NAME = 'TESTHKEY' TOP = LI_HEAD_TOP LEFT = LI_COL_POS ROWS = ROWMAX COLUMNS = HKEYCOLUMNS NO_FLUSH = NO_FLUSH. endif. endif. * format for columns header + total + subtotal * ------------------------------------------ HELP = ROWMAX + REALMIT. " table + header lines data: LT_FORMAT type SOI_FORMAT_TABLE. data: WA_FORMAT like line of LT_FORMAT. data: WA_FORMAT_TEMP like line of LT_FORMAT. field-symbols: <F_SOURCE> type ANY. field-symbols: <F_DES> type ANY. * columns header format WA_FORMAT-FRONT = -1. WA_FORMAT-BACK = 15. "grey WA_FORMAT-FONT = SPACE. WA_FORMAT-SIZE = -1. WA_FORMAT-BOLD = 1. WA_FORMAT-ALIGN = 0. WA_FORMAT-FRAMETYP = -1. WA_FORMAT-FRAMECOLOR = -1. * get column header format from input record * -> map input format if I_COLUMNS_HEADER = 'X'. WA_FORMAT-NAME = 'TESTHKEY'. if I_FORMAT_COL_HEADER is not initial. describe field I_FORMAT_COL_HEADER type L_TYP components LI_COL_NUM. do LI_COL_NUM times. if SY-INDEX ne 1. " dun map range name assign component SY-INDEX of structure I_FORMAT_COL_HEADER to <F_SOURCE>. if <F_SOURCE> is not initial. assign component SY-INDEX of structure WA_FORMAT to <F_DES>. <F_DES> = <F_SOURCE>. unassign: <F_DES>. endif. unassign: <F_SOURCE>. endif. enddo. clear: LI_COL_NUM. endif. append WA_FORMAT to LT_FORMAT. endif. * Zusammenfassen der Spalten mit gleicher Nachkommastellenzahl * collect vertical cells (col) with the same number of decimal places * to increase perfomance in currency cell format describe table CURRCELLS lines LINES. LINES = LINES - 1. do LINES times. describe table CURRCELLS lines INNERLINES. INNERLINES = INNERLINES - 1. sort CURRCELLS by LEFT TOP. clear FOUND. do INNERLINES times. read table CURRCELLS index SY-INDEX into CURRITEM. COUNTER = SY-INDEX + 1. read table CURRCELLS index COUNTER into CURRITEM2. if CURRITEM-LEFT eq CURRITEM2-LEFT. LENGTH = CURRITEM-TOP + CURRITEM-ROWS. if LENGTH eq CURRITEM2-TOP and CURRITEM-DECIMALS eq CURRITEM2-DECIMALS. move CURRITEM to CURRITEM3. CURRITEM3-ROWS = CURRITEM3-ROWS + CURRITEM2-ROWS. CURRITEM-LEFT = -1. modify CURRCELLS index SY-INDEX from CURRITEM. CURRITEM2-LEFT = -1. modify CURRCELLS index COUNTER from CURRITEM2. append CURRITEM3 to CURRCELLS. FOUND = 'X'. endif. endif. enddo. if FOUND is initial. exit. endif. delete CURRCELLS where LEFT = -1. enddo. * Zusammenfassen der Zeilen mit gleicher Nachkommastellenzahl * collect horizontal cells (row) with the same number of decimal places * to increase perfomance in currency cell format describe table CURRCELLS lines LINES. LINES = LINES - 1. do LINES times. describe table CURRCELLS lines INNERLINES. INNERLINES = INNERLINES - 1. sort CURRCELLS by TOP LEFT. clear FOUND. do INNERLINES times. read table CURRCELLS index SY-INDEX into CURRITEM. COUNTER = SY-INDEX + 1. read table CURRCELLS index COUNTER into CURRITEM2. if CURRITEM-TOP eq CURRITEM2-TOP and CURRITEM-ROWS eq CURRITEM2-ROWS. LENGTH = CURRITEM-LEFT + CURRITEM-COLUMNS. if LENGTH eq CURRITEM2-LEFT and CURRITEM-DECIMALS eq CURRITEM2-DECIMALS. move CURRITEM to CURRITEM3. CURRITEM3-COLUMNS = CURRITEM3-COLUMNS + CURRITEM2-COLUMNS. CURRITEM-LEFT = -1. modify CURRCELLS index SY-INDEX from CURRITEM. CURRITEM2-LEFT = -1. modify CURRCELLS index COUNTER from CURRITEM2. append CURRITEM3 to CURRCELLS. FOUND = 'X'. endif. endif. enddo. if FOUND is initial. exit. endif. delete CURRCELLS where LEFT = -1. enddo. * Ende der Zusammenfassung * item data: format for currency cell, corresponding with currency call method LO_SPREADSHEET->CELL_FORMAT exporting CELLS = CURRCELLS NO_FLUSH = NO_FLUSH. * item data: write item table content call method LO_SPREADSHEET->SET_RANGES_DATA exporting RANGES = RANGES CONTENTS = CONTENTS NO_FLUSH = NO_FLUSH. * whole table range to format all table if I_COLUMNS_HEADER = 'X'. LI_HEAD_TOP = LI_COMMENTARY_ROWS + 1. else. LI_HEAD_TOP = LI_COMMENTARY_ROWS + 2. HELP = HELP - 1. endif. call method LO_SPREADSHEET->INSERT_RANGE_DIM exporting NAME = 'WHOLE_TABLE' TOP = LI_HEAD_TOP LEFT = I_LEFT ROWS = HELP COLUMNS = DATAREAL NO_FLUSH = NO_FLUSH. * columns width auto fix * this parameter = space in case use with exist template if I_COLUMNS_AUTOFIT = 'X'. call method LO_SPREADSHEET->FIT_WIDEST exporting NAME = 'WHOLE_TABLE' NO_FLUSH = NO_FLUSH. endif. * frame * The parameter has 8 bits *0 Left margin *1 Top marginT *2 Bottom margin *3 Right margin *4 Horizontal line *5 Vertical line *6 Thinness *7 Thickness * here 127 = 1111111 6-5-4-3-2-1 mean Thin-ver-hor-right-bot-top-left * ( final DOI method call, set no_flush = space * equal to call method CL_GUI_CFW=>FLUSH ) call method LO_SPREADSHEET->SET_FRAME exporting RANGENAME = 'WHOLE_TABLE' TYP = 127 COLOR = 1 NO_FLUSH = SPACE importing ERROR = LO_ERROR RETCODE = LC_RETCODE. ERROR_DOI. * reformat subtotal / total line after format wholw table loop at SUBRANGES into SUBRANGEITEM. L_SUB_INDEX = SUBRANGEITEM-ROWS + LI_COMMENTARY_ROWS + ROWMAX. call method LO_SPREADSHEET->INSERT_RANGE_DIM exporting NAME = SUBRANGEITEM-NAME LEFT = I_LEFT TOP = L_SUB_INDEX ROWS = 1 COLUMNS = DATAREAL NO_FLUSH = NO_FLUSH. WA_FORMAT-NAME = SUBRANGEITEM-NAME. * default format: * - clolor: subtotal = light yellow, subtotal = yellow * - frame: box if SUBRANGEITEM-NAME(3) = 'SUB'. WA_FORMAT-BACK = 36. "subtotal line WA_FORMAT_TEMP = I_FORMAT_SUBTOTAL. else. WA_FORMAT-BACK = 27. "total line WA_FORMAT_TEMP = I_FORMAT_TOTAL. endif. WA_FORMAT-FRAMETYP = 79. WA_FORMAT-FRAMECOLOR = 1. WA_FORMAT-NUMBER = -1. WA_FORMAT-ALIGN = -1. * get subtoal + total format from intput parameter * overwrite default format if WA_FORMAT_TEMP is not initial. describe field WA_FORMAT_TEMP type L_TYP components LI_COL_NUM. do LI_COL_NUM times. if SY-INDEX ne 1. " dun map range name assign component SY-INDEX of structure WA_FORMAT_TEMP to <F_SOURCE>. if <F_SOURCE> is not initial. assign component SY-INDEX of structure WA_FORMAT to <F_DES>. <F_DES> = <F_SOURCE>. unassign: <F_DES>. endif. unassign: <F_SOURCE>. endif. enddo. clear: LI_COL_NUM. endif. append WA_FORMAT to LT_FORMAT. clear: WA_FORMAT-NAME. clear: L_SUB_INDEX. clear: WA_FORMAT_TEMP. endloop. if LT_FORMAT[] is not initial. call method LO_SPREADSHEET->SET_RANGES_FORMAT exporting FORMATTABLE = LT_FORMAT NO_FLUSH = NO_FLUSH. refresh: LT_FORMAT. endif. *--------------------------------------------------------------------* call method LO_SPREADSHEET->SCREEN_UPDATE exporting UPDATING = 'X'. call method C_OI_ERRORS=>FLUSH_ERRORS. LO_ERROR_W = L_ERROR. LC_RETCODE = LO_ERROR_W->ERROR_CODE. ** catch no_flush -> led to dump ( optional ) * go_error = l_error. * gc_retcode = go_error->error_code. * error_doi. clear: LT_SEMA, WA_SEMA, LT_HKEY, WA_HKEY, LT_VKEY, WA_VKEY, L_N_HRZ_KEYS, L_N_ATT_COLS, L_N_VRT_KEYS, COUNT, DATAC, DATAREAL, VKEYCOUNT, ALL, MIT, LI_COL_POS, LI_COL_NUM, RANGES, RANGEITEM, CONTENTS, CONTENTSITEM, SEMAITEM, HKEYITEM, VKEYITEM, LI_COMMENTARY_ROWS, L_RETCODE, LI_HEAD_TOP, <F_EXCEL_TAB>. clear: LO_ERROR_W. unassign: <LINE>, <ITEM>, <F_EXCEL_TAB>. *--------------------------------------------------------------------* * SESSION 5: SAVE AND CLOSE FILE *--------------------------------------------------------------------* * ex of save path: 'FILE://C:\temp\test.xlsx' concatenate 'FILE://' I_SAVE_PATH into LS_PATH. call method LO_PROXY->SAVE_DOCUMENT_TO_URL exporting NO_FLUSH = 'X' URL = LS_PATH importing ERROR = LO_ERROR RETCODE = LC_RETCODE changing DOCUMENT_SIZE = LI_DOCUMENT_SIZE. ERROR_DOI. * if save successfully -> raise successful message * message i499(sy) with 'Document is Exported to ' p_path. message I499(SY) with 'Data has been exported successfully'. clear: LS_PATH, LI_DOCUMENT_SIZE. CLOSE_DOCUMENT. endmethod. method BIND_TABLE. *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmöcker, (wi p) 2012-12-01 * - ... * aligning code * message made to support multilinguality *--------------------------------------------------------------------* * issue #237 - Check if overlapping areas exist * - Alessandro Iannacci 2012-12-01 * changes: - Added raise if overlaps are detected *--------------------------------------------------------------------* constants: LC_TOP_LEFT_COLUMN type ZEXCEL_CELL_COLUMN_ALPHA value 'A', LC_TOP_LEFT_ROW type ZEXCEL_CELL_ROW value 1. data: LV_ROW_INT type ZEXCEL_CELL_ROW, LV_FIRST_ROW type ZEXCEL_CELL_ROW, LV_LAST_ROW type ZEXCEL_CELL_ROW, LV_COLUMN_INT type ZEXCEL_CELL_COLUMN, LV_COLUMN_ALPHA type ZEXCEL_CELL_COLUMN_ALPHA, LT_FIELD_CATALOG type ZEXCEL_T_FIELDCATALOG, LV_ID type I, LV_ROWS type I, LV_FORMULA type STRING, LS_SETTINGS type ZEXCEL_S_TABLE_SETTINGS, LO_TABLE type ref to ZCL_EXCEL_TABLE, LT_COLUMN_NAME_BUFFER type sorted table of STRING with unique key TABLE_LINE, LV_VALUE type STRING, LV_VALUE_LOWERCASE type STRING, LV_SYINDEX type CHAR3, LV_ERRORMESSAGE type STRING, "ins issue #237 LV_COLUMNS type I, LT_COLUMNS type ZEXCEL_T_FIELDCATALOG, LV_MAXCOL type I, LV_MAXROW type I, LO_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, LO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND, LO_CURTABLE type ref to ZCL_EXCEL_TABLE. field-symbols: <LS_FIELD_CATALOG> type ZEXCEL_S_FIELDCATALOG, <LS_FIELD_CATALOG_CUSTOM> type ZEXCEL_S_FIELDCATALOG, <FS_TABLE_LINE> type ANY, <FS_FLDVAL> type ANY. LS_SETTINGS = IS_TABLE_SETTINGS. if LS_SETTINGS-TOP_LEFT_COLUMN is initial. LS_SETTINGS-TOP_LEFT_COLUMN = LC_TOP_LEFT_COLUMN. endif. if LS_SETTINGS-TABLE_STYLE is initial. LS_SETTINGS-TABLE_STYLE = ZCL_EXCEL_TABLE=>BUILTINSTYLE_MEDIUM2. endif. if LS_SETTINGS-TOP_LEFT_ROW is initial. LS_SETTINGS-TOP_LEFT_ROW = LC_TOP_LEFT_ROW. endif. if IT_FIELD_CATALOG is not supplied. LT_FIELD_CATALOG = ZCL_EXCEL_COMMON=>GET_FIELDCATALOG( IP_TABLE = IP_TABLE ). else. LT_FIELD_CATALOG = IT_FIELD_CATALOG. endif. sort LT_FIELD_CATALOG by POSITION. *--------------------------------------------------------------------* * issue #237 Check if overlapping areas exist Start *--------------------------------------------------------------------* "Get the number of columns for the current table LT_COLUMNS = LT_FIELD_CATALOG. delete LT_COLUMNS where DYNPFLD ne ABAP_TRUE. describe table LT_COLUMNS lines LV_COLUMNS. "Calculate the top left row of the current table LV_COLUMN_INT = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( LS_SETTINGS-TOP_LEFT_COLUMN ). LV_ROW_INT = LS_SETTINGS-TOP_LEFT_ROW. "Get number of row for the current table describe table IP_TABLE lines LV_ROWS. "Calculate the bottom right row for the current table LV_MAXCOL = LV_COLUMN_INT + LV_COLUMNS - 1. LV_MAXROW = LV_ROW_INT + LV_ROWS - 1. LS_SETTINGS-BOTTOM_RIGHT_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( LV_MAXCOL ). LS_SETTINGS-BOTTOM_RIGHT_ROW = LV_MAXROW. LV_COLUMN_INT = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( LS_SETTINGS-TOP_LEFT_COLUMN ). LO_ITERATOR = ME->TABLES->IF_OBJECT_COLLECTION~GET_ITERATOR( ). while LO_ITERATOR->IF_OBJECT_COLLECTION_ITERATOR~HAS_NEXT( ) eq ABAP_TRUE. LO_CURTABLE ?= LO_ITERATOR->IF_OBJECT_COLLECTION_ITERATOR~GET_NEXT( ). if ( ( LS_SETTINGS-TOP_LEFT_ROW ge LO_CURTABLE->SETTINGS-TOP_LEFT_ROW and LS_SETTINGS-TOP_LEFT_ROW le LO_CURTABLE->SETTINGS-BOTTOM_RIGHT_ROW ) or ( LS_SETTINGS-BOTTOM_RIGHT_ROW ge LO_CURTABLE->SETTINGS-TOP_LEFT_ROW and LS_SETTINGS-BOTTOM_RIGHT_ROW le LO_CURTABLE->SETTINGS-BOTTOM_RIGHT_ROW ) ) and ( ( LV_COLUMN_INT ge ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( LO_CURTABLE->SETTINGS-TOP_LEFT_COLUMN ) and LV_COLUMN_INT le ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( LO_CURTABLE->SETTINGS-BOTTOM_RIGHT_COLUMN ) ) or ( LV_MAXCOL ge ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( LO_CURTABLE->SETTINGS-TOP_LEFT_COLUMN ) and LV_MAXCOL le ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( LO_CURTABLE->SETTINGS-BOTTOM_RIGHT_COLUMN ) ) ). LV_ERRORMESSAGE = 'Table overlaps with previously bound table and will not be added to worksheet.'(400). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. endwhile. *--------------------------------------------------------------------* * issue #237 Check if overlapping areas exist End *--------------------------------------------------------------------* create object LO_TABLE. LO_TABLE->SETTINGS = LS_SETTINGS. LO_TABLE->SET_DATA( IR_DATA = IP_TABLE ). LV_ID = ME->EXCEL->GET_NEXT_TABLE_ID( ). LO_TABLE->SET_ID( IV_ID = LV_ID ). * lo_table->fieldcat = lt_field_catalog[]. ME->TABLES->ADD( LO_TABLE ). * It is better to loop column by column (only visible column) loop at LT_FIELD_CATALOG assigning <LS_FIELD_CATALOG> where DYNPFLD eq ABAP_TRUE. LV_COLUMN_ALPHA = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( LV_COLUMN_INT ). " Due restrinction of new table object we cannot have two column with the same name " Check if a column with the same name exists, if exists add a counter " If no medium description is provided we try to use small or long * lv_value = <ls_field_catalog>-scrtext_m. field-symbols: <SCRTXT1> type ANY, <SCRTXT2> type ANY, <SCRTXT3> type ANY. case IV_DEFAULT_DESCR. when 'M'. assign <LS_FIELD_CATALOG>-SCRTEXT_M to <SCRTXT1>. assign <LS_FIELD_CATALOG>-SCRTEXT_S to <SCRTXT2>. assign <LS_FIELD_CATALOG>-SCRTEXT_L to <SCRTXT3>. when 'S'. assign <LS_FIELD_CATALOG>-SCRTEXT_S to <SCRTXT1>. assign <LS_FIELD_CATALOG>-SCRTEXT_M to <SCRTXT2>. assign <LS_FIELD_CATALOG>-SCRTEXT_L to <SCRTXT3>. when 'L'. assign <LS_FIELD_CATALOG>-SCRTEXT_L to <SCRTXT1>. assign <LS_FIELD_CATALOG>-SCRTEXT_M to <SCRTXT2>. assign <LS_FIELD_CATALOG>-SCRTEXT_S to <SCRTXT3>. when others. assign <LS_FIELD_CATALOG>-SCRTEXT_M to <SCRTXT1>. assign <LS_FIELD_CATALOG>-SCRTEXT_S to <SCRTXT2>. assign <LS_FIELD_CATALOG>-SCRTEXT_L to <SCRTXT3>. endcase. if <SCRTXT1> is not initial. LV_VALUE = <SCRTXT1>. <LS_FIELD_CATALOG>-SCRTEXT_L = LV_VALUE. elseif <SCRTXT2> is not initial. LV_VALUE = <SCRTXT2>. <LS_FIELD_CATALOG>-SCRTEXT_L = LV_VALUE. elseif <SCRTXT3> is not initial. LV_VALUE = <SCRTXT3>. <LS_FIELD_CATALOG>-SCRTEXT_L = LV_VALUE. else. LV_VALUE = 'Column'. " default value as Excel does <LS_FIELD_CATALOG>-SCRTEXT_L = LV_VALUE. endif. while 1 = 1. LV_VALUE_LOWERCASE = LV_VALUE. translate LV_VALUE_LOWERCASE to lower case. read table LT_COLUMN_NAME_BUFFER transporting no fields with key TABLE_LINE = LV_VALUE_LOWERCASE binary search. if SY-SUBRC <> 0. <LS_FIELD_CATALOG>-SCRTEXT_L = LV_VALUE. insert LV_VALUE_LOWERCASE into table LT_COLUMN_NAME_BUFFER. exit. else. LV_SYINDEX = SY-INDEX. concatenate <LS_FIELD_CATALOG>-SCRTEXT_L LV_SYINDEX into LV_VALUE. endif. endwhile. " First of all write column header if <LS_FIELD_CATALOG>-STYLE_HEADER is not initial. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_VALUE = LV_VALUE IP_STYLE = <LS_FIELD_CATALOG>-STYLE_HEADER ). else. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_VALUE = LV_VALUE ). endif. add 1 to LV_ROW_INT. loop at IP_TABLE assigning <FS_TABLE_LINE>. assign component <LS_FIELD_CATALOG>-FIELDNAME of structure <FS_TABLE_LINE> to <FS_FLDVAL>. " issue #290 Add formula support in table if <LS_FIELD_CATALOG>-FORMULA eq ABAP_TRUE. if <LS_FIELD_CATALOG>-STYLE is not initial. if <LS_FIELD_CATALOG>-ABAP_TYPE is not initial. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_FORMULA = <FS_FLDVAL> IP_ABAP_TYPE = <LS_FIELD_CATALOG>-ABAP_TYPE IP_STYLE = <LS_FIELD_CATALOG>-STYLE ). else. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_FORMULA = <FS_FLDVAL> IP_STYLE = <LS_FIELD_CATALOG>-STYLE ). endif. elseif <LS_FIELD_CATALOG>-ABAP_TYPE is not initial. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_FORMULA = <FS_FLDVAL> IP_ABAP_TYPE = <LS_FIELD_CATALOG>-ABAP_TYPE ). else. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_FORMULA = <FS_FLDVAL> ). endif. else. if <LS_FIELD_CATALOG>-STYLE is not initial. if <LS_FIELD_CATALOG>-ABAP_TYPE is not initial. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_VALUE = <FS_FLDVAL> IP_ABAP_TYPE = <LS_FIELD_CATALOG>-ABAP_TYPE IP_STYLE = <LS_FIELD_CATALOG>-STYLE ). else. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_VALUE = <FS_FLDVAL> IP_STYLE = <LS_FIELD_CATALOG>-STYLE ). endif. else. if <LS_FIELD_CATALOG>-ABAP_TYPE is not initial. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_ABAP_TYPE = <LS_FIELD_CATALOG>-ABAP_TYPE IP_VALUE = <FS_FLDVAL> ). else. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_VALUE = <FS_FLDVAL> ). endif. endif. endif. add 1 to LV_ROW_INT. endloop. if SY-SUBRC <> 0. "create empty row if table has no data ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_VALUE = SPACE ). add 1 to LV_ROW_INT. endif. *--------------------------------------------------------------------* " totals *--------------------------------------------------------------------* if <LS_FIELD_CATALOG>-TOTALS_FUNCTION is not initial. LV_FORMULA = LO_TABLE->GET_TOTALS_FORMULA( IP_COLUMN = <LS_FIELD_CATALOG>-SCRTEXT_L IP_FUNCTION = <LS_FIELD_CATALOG>-TOTALS_FUNCTION ). if <LS_FIELD_CATALOG>-STYLE_TOTAL is not initial. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_FORMULA = LV_FORMULA IP_STYLE = <LS_FIELD_CATALOG>-STYLE_TOTAL ). else. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_FORMULA = LV_FORMULA ). endif. endif. LV_ROW_INT = LS_SETTINGS-TOP_LEFT_ROW. add 1 to LV_COLUMN_INT. *--------------------------------------------------------------------* " conditional formatting *--------------------------------------------------------------------* if <LS_FIELD_CATALOG>-STYLE_COND is not initial. LV_FIRST_ROW = LS_SETTINGS-TOP_LEFT_ROW + 1. " +1 to exclude header LV_LAST_ROW = LS_SETTINGS-TOP_LEFT_ROW + LV_ROWS. LO_STYLE_COND = ME->GET_STYLE_COND( <LS_FIELD_CATALOG>-STYLE_COND ). LO_STYLE_COND->SET_RANGE( IP_START_COLUMN = LV_COLUMN_ALPHA IP_START_ROW = LV_FIRST_ROW IP_STOP_COLUMN = LV_COLUMN_ALPHA IP_STOP_ROW = LV_LAST_ROW ). endif. endloop. *--------------------------------------------------------------------* " Set field catalog *--------------------------------------------------------------------* LO_TABLE->FIELDCAT = LT_FIELD_CATALOG[]. ES_TABLE_SETTINGS = LS_SETTINGS. ES_TABLE_SETTINGS-BOTTOM_RIGHT_COLUMN = LV_COLUMN_ALPHA. " >> Issue #291 if IP_TABLE is initial. ES_TABLE_SETTINGS-BOTTOM_RIGHT_ROW = LS_SETTINGS-TOP_LEFT_ROW + 2. "Last rows else. ES_TABLE_SETTINGS-BOTTOM_RIGHT_ROW = LS_SETTINGS-TOP_LEFT_ROW + LV_ROWS + 1. "Last rows endif. " << Issue #291 endmethod. method CALCULATE_CELL_WIDTH. *--------------------------------------------------------------------* * issue #293 - Roberto Bianco * - Christian Assig 2014-03-14 * * changes: - Calculate widths using SAPscript font metrics * (transaction SE73) * - Calculate the width of dates * - Add additional width for auto filter buttons * - Add cell padding to simulate Excel behavior *--------------------------------------------------------------------* constants: LC_DEFAULT_FONT_NAME type ZEXCEL_STYLE_FONT_NAME value 'Calibri', "#EC NOTEXT LC_DEFAULT_FONT_HEIGHT type TDFONTSIZE value '110', LC_EXCEL_CELL_PADDING type FLOAT value '0.75'. data: LD_CELL_VALUE type ZEXCEL_CELL_VALUE, LD_CURRENT_CHARACTER type C length 1, LD_STYLE_GUID type ZEXCEL_CELL_STYLE, LS_STYLEMAPPING type ZEXCEL_S_STYLEMAPPING, LO_TABLE_OBJECT type ref to OBJECT, LO_TABLE type ref to ZCL_EXCEL_TABLE, LD_TABLE_TOP_LEFT_COLUMN type ZEXCEL_CELL_COLUMN, LD_TABLE_BOTTOM_RIGHT_COLUMN type ZEXCEL_CELL_COLUMN, LD_FLAG_CONTAINS_AUTO_FILTER type ABAP_BOOL value ABAP_FALSE, LD_FLAG_BOLD type ABAP_BOOL value ABAP_FALSE, LD_FLAG_ITALIC type ABAP_BOOL value ABAP_FALSE, LD_DATE type D, LD_DATE_CHAR type C length 50, LD_FONT_HEIGHT type TDFONTSIZE value LC_DEFAULT_FONT_HEIGHT, LT_ITCFC type standard table of ITCFC, LD_OFFSET type I, LD_LENGTH type I, LD_UCCP type I, LS_FONT_METRIC type MTY_S_FONT_METRIC, LD_WIDTH_FROM_FONT_METRICS type I, LD_FONT_FAMILY type ITCFH-TDFAMILY, LD_FONT_NAME type ZEXCEL_STYLE_FONT_NAME value LC_DEFAULT_FONT_NAME, LT_FONT_FAMILIES like standard table of LD_FONT_FAMILY, LS_FONT_CACHE type MTY_S_FONT_CACHE. field-symbols: <LS_FONT_CACHE> type MTY_S_FONT_CACHE, <LS_FONT_METRIC> type MTY_S_FONT_METRIC, <LS_ITCFC> type ITCFC. " Determine cell content and cell style ME->GET_CELL( exporting IP_COLUMN = IP_COLUMN IP_ROW = IP_ROW importing EP_VALUE = LD_CELL_VALUE EP_GUID = LD_STYLE_GUID ). " ABAP2XLSX uses tables to define areas containing headers and " auto-filters. Find out if the current cell is in the header " of one of these tables. loop at ME->TABLES->COLLECTION into LO_TABLE_OBJECT. " Downcast: OBJECT -> ZCL_EXCEL_TABLE LO_TABLE ?= LO_TABLE_OBJECT. " Convert column letters to corresponding integer values LD_TABLE_TOP_LEFT_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( LO_TABLE->SETTINGS-TOP_LEFT_COLUMN ). LD_TABLE_BOTTOM_RIGHT_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( LO_TABLE->SETTINGS-BOTTOM_RIGHT_COLUMN ). " Is the current cell part of the table header? if IP_COLUMN between LD_TABLE_TOP_LEFT_COLUMN and LD_TABLE_BOTTOM_RIGHT_COLUMN and IP_ROW eq LO_TABLE->SETTINGS-TOP_LEFT_ROW. " Current cell is part of the table header " -> Assume that an auto filter is present and that the font is " bold LD_FLAG_CONTAINS_AUTO_FILTER = ABAP_TRUE. LD_FLAG_BOLD = ABAP_TRUE. endif. endloop. " If a style GUID is present, read style attributes if LD_STYLE_GUID is not initial. try. " Read style attributes LS_STYLEMAPPING = ME->EXCEL->GET_STYLE_TO_GUID( LD_STYLE_GUID ). " If the current cell contains the default date format, " convert the cell value to a date and calculate its length if LS_STYLEMAPPING-COMPLETE_STYLE-NUMBER_FORMAT-FORMAT_CODE = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_STD. " Convert excel date to ABAP date LD_DATE = ZCL_EXCEL_COMMON=>EXCEL_STRING_TO_DATE( LD_CELL_VALUE ). " Format ABAP date using user's formatting settings write LD_DATE to LD_DATE_CHAR. " Remember the formatted date to calculate the cell size LD_CELL_VALUE = LD_DATE_CHAR. endif. " Read the font size and convert it to the font height " used by SAPscript (multiplication by 10) if LS_STYLEMAPPING-COMPLETE_STYLEX-FONT-SIZE = ABAP_TRUE. LD_FONT_HEIGHT = LS_STYLEMAPPING-COMPLETE_STYLE-FONT-SIZE * 10. endif. " If set, remember the font name if LS_STYLEMAPPING-COMPLETE_STYLEX-FONT-NAME = ABAP_TRUE. LD_FONT_NAME = LS_STYLEMAPPING-COMPLETE_STYLE-FONT-NAME. endif. " If set, remember whether font is bold and italic. if LS_STYLEMAPPING-COMPLETE_STYLEX-FONT-BOLD = ABAP_TRUE. LD_FLAG_BOLD = LS_STYLEMAPPING-COMPLETE_STYLE-FONT-BOLD. endif. if LS_STYLEMAPPING-COMPLETE_STYLEX-FONT-ITALIC = ABAP_TRUE. LD_FLAG_ITALIC = LS_STYLEMAPPING-COMPLETE_STYLE-FONT-ITALIC. endif. catch ZCX_EXCEL. "#EC NO_HANDLER " Style GUID is present, but style was not found " Continue with default values endtry. endif. " Check if the same font (font name and font attributes) was already " used before read table MTH_FONT_CACHE with table key FONT_NAME = LD_FONT_NAME FONT_HEIGHT = LD_FONT_HEIGHT FLAG_BOLD = LD_FLAG_BOLD FLAG_ITALIC = LD_FLAG_ITALIC assigning <LS_FONT_CACHE>. if SY-SUBRC <> 0. " Font is used for the first time " Add the font to our local font cache LS_FONT_CACHE-FONT_NAME = LD_FONT_NAME. LS_FONT_CACHE-FONT_HEIGHT = LD_FONT_HEIGHT. LS_FONT_CACHE-FLAG_BOLD = LD_FLAG_BOLD. LS_FONT_CACHE-FLAG_ITALIC = LD_FLAG_ITALIC. insert LS_FONT_CACHE into table MTH_FONT_CACHE assigning <LS_FONT_CACHE>. " Determine the SAPscript font family name from the Excel " font name select TDFAMILY from TFO01 into table LT_FONT_FAMILIES up to 1 rows where TDTEXT = LD_FONT_NAME order by primary key. " Check if a matching font family was found " Fonts can be uploaded from TTF files using transaction SE73 if LINES( LT_FONT_FAMILIES ) > 0. read table LT_FONT_FAMILIES index 1 into LD_FONT_FAMILY. " Load font metrics (returns a table with the size of each letter " in the font) call function 'LOAD_FONT' exporting FAMILY = LD_FONT_FAMILY HEIGHT = LD_FONT_HEIGHT PRINTER = 'SWIN' BOLD = LD_FLAG_BOLD ITALIC = LD_FLAG_ITALIC tables METRIC = LT_ITCFC exceptions FONT_FAMILY = 1 CODEPAGE = 2 DEVICE_TYPE = 3 others = 4. if SY-SUBRC <> 0. clear LT_ITCFC. endif. " For faster access, convert each character number to the actual " character, and store the characters and their sizes in a hash " table loop at LT_ITCFC assigning <LS_ITCFC>. LD_UCCP = <LS_ITCFC>-CPCHARNO. LS_FONT_METRIC-CHAR = CL_ABAP_CONV_IN_CE=>UCCPI( LD_UCCP ). LS_FONT_METRIC-CHAR_WIDTH = <LS_ITCFC>-TDCWIDTHS. insert LS_FONT_METRIC into table <LS_FONT_CACHE>-TH_FONT_METRICS. endloop. endif. endif. " Calculate the cell width " If available, use font metrics if LINES( <LS_FONT_CACHE>-TH_FONT_METRICS ) = 0. " Font metrics are not available " -> Calculate the cell width using only the font size LD_LENGTH = STRLEN( LD_CELL_VALUE ). EP_WIDTH = LD_LENGTH * LD_FONT_HEIGHT / LC_DEFAULT_FONT_HEIGHT + LC_EXCEL_CELL_PADDING. else. " Font metrics are available " Calculate the size of the text by adding the sizes of each " letter LD_LENGTH = STRLEN( LD_CELL_VALUE ). do LD_LENGTH times. " Subtract 1, because the first character is at offset 0 LD_OFFSET = SY-INDEX - 1. " Read the current character from the cell value LD_CURRENT_CHARACTER = LD_CELL_VALUE+LD_OFFSET(1). " Look up the size of the current letter read table <LS_FONT_CACHE>-TH_FONT_METRICS with table key CHAR = LD_CURRENT_CHARACTER assigning <LS_FONT_METRIC>. if SY-SUBRC = 0. " The size of the letter is known " -> Add the actual size of the letter add <LS_FONT_METRIC>-CHAR_WIDTH to LD_WIDTH_FROM_FONT_METRICS. else. " The size of the letter is unknown " -> Add the font height as the default letter size add LD_FONT_HEIGHT to LD_WIDTH_FROM_FONT_METRICS. endif. enddo. " Add cell padding (Excel makes columns a bit wider than the space " that is needed for the text itself) and convert unit " (division by 100) EP_WIDTH = LD_WIDTH_FROM_FONT_METRICS / 100 + LC_EXCEL_CELL_PADDING. endif. " If the current cell contains an auto filter, make it a bit wider. " The size used by the auto filter button does not depend on the font " size. if LD_FLAG_CONTAINS_AUTO_FILTER = ABAP_TRUE. add 2 to EP_WIDTH. endif. endmethod. method CALCULATE_COLUMN_WIDTHS. types: begin of T_AUTO_SIZE, COL_INDEX type INT4, WIDTH type FLOAT, end of T_AUTO_SIZE. types: TT_AUTO_SIZE type table of T_AUTO_SIZE. data: LO_COLUMN_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, LO_COLUMN type ref to ZCL_EXCEL_COLUMN. data: AUTO_SIZE type FLAG. data: AUTO_SIZES type TT_AUTO_SIZE. data: COUNT type INT4. data: HIGHEST_ROW type INT4. data: WIDTH type FLOAT. field-symbols: <AUTO_SIZE> like line of AUTO_SIZES. LO_COLUMN_ITERATOR = ME->GET_COLUMNS_ITERATOR( ). while LO_COLUMN_ITERATOR->HAS_NEXT( ) = ABAP_TRUE. LO_COLUMN ?= LO_COLUMN_ITERATOR->GET_NEXT( ). AUTO_SIZE = LO_COLUMN->GET_AUTO_SIZE( ). if AUTO_SIZE = ABAP_TRUE. append initial line to AUTO_SIZES assigning <AUTO_SIZE>. <AUTO_SIZE>-COL_INDEX = LO_COLUMN->GET_COLUMN_INDEX( ). <AUTO_SIZE>-WIDTH = -1. endif. endwhile. " There is only something to do if there are some auto-size columns if not AUTO_SIZES is initial. HIGHEST_ROW = ME->GET_HIGHEST_ROW( ). loop at AUTO_SIZES assigning <AUTO_SIZE>. COUNT = 1. while COUNT <= HIGHEST_ROW. * Do not check merged cells if IS_CELL_MERGED( IP_COLUMN = <AUTO_SIZE>-COL_INDEX IP_ROW = COUNT ) = ABAP_FALSE. WIDTH = CALCULATE_CELL_WIDTH( IP_COLUMN = <AUTO_SIZE>-COL_INDEX " issue #155 - less restrictive typing for ip_column IP_ROW = COUNT ). if WIDTH > <AUTO_SIZE>-WIDTH. <AUTO_SIZE>-WIDTH = WIDTH. endif. endif. COUNT = COUNT + 1. endwhile. LO_COLUMN = ME->GET_COLUMN( <AUTO_SIZE>-COL_INDEX ). " issue #155 - less restrictive typing for ip_column LO_COLUMN->SET_WIDTH( <AUTO_SIZE>-WIDTH ). endloop. endif. endmethod. method CHANGE_CELL_STYLE. " issue # 139 data: STYLEMAPPING type ZEXCEL_S_STYLEMAPPING, COMPLETE_STYLE type ZEXCEL_S_CSTYLE_COMPLETE, COMPLETE_STYLEX type ZEXCEL_S_CSTYLEX_COMPLETE, BORDERX type ZEXCEL_S_CSTYLEX_BORDER, L_GUID type ZEXCEL_CELL_STYLE. "issue # 177 * We have a lot of parameters. Use some macros to make the coding more structured define CLEAR_INITIAL_COLORXFIELDS. if &1-RGB is initial. clear &2-RGB. endif. if &1-INDEXED is initial. clear &2-INDEXED. endif. if &1-THEME is initial. clear &2-THEME. endif. if &1-TINT is initial. clear &2-TINT. endif. end-of-definition. define MOVE_SUPPLIED_BORDERS. if IP_&1 is supplied. " only act if parameter was supplied if IP_X&1 is supplied. " BORDERX = IP_X&1. " use supplied x-parameter else. clear BORDERX with 'X'. * clear in a way that would be expected to work easily if IP_&1-BORDER_STYLE is initial. clear BORDERX-BORDER_STYLE. endif. CLEAR_INITIAL_COLORXFIELDS IP_&1-BORDER_COLOR BORDERX-BORDER_COLOR. endif. move-corresponding IP_&1 to COMPLETE_STYLE-&2. move-corresponding BORDERX to COMPLETE_STYLEX-&2. endif. end-of-definition. * First get current stylsettings try. ME->GET_CELL( exporting IP_COLUMN = IP_COLUMN " Cell Column IP_ROW = IP_ROW " Cell Row importing EP_GUID = L_GUID )." Cell Value ). "issue # 177 STYLEMAPPING = ME->EXCEL->GET_STYLE_TO_GUID( L_GUID ). "issue # 177 COMPLETE_STYLE = STYLEMAPPING-COMPLETE_STYLE. COMPLETE_STYLEX = STYLEMAPPING-COMPLETE_STYLEX. catch ZCX_EXCEL. * Error --> use submitted style endtry. * move_supplied_multistyles: complete. if IP_COMPLETE is supplied. if IP_XCOMPLETE is not supplied. raise exception type ZCX_EXCEL exporting ERROR = 'Complete styleinfo has to be supplied with corresponding X-field'. endif. move-corresponding IP_COMPLETE to COMPLETE_STYLE. move-corresponding IP_XCOMPLETE to COMPLETE_STYLEX. endif. if IP_FONT is supplied. data: FONTX like IP_XFONT. if IP_XFONT is supplied. FONTX = IP_XFONT. else. * Only supplied values should be used - exception: Flags bold and italic strikethrough underline move 'X' to: FONTX-BOLD, FONTX-ITALIC, FONTX-STRIKETHROUGH, FONTX-UNDERLINE_MODE. clear FONTX-COLOR with 'X'. CLEAR_INITIAL_COLORXFIELDS IP_FONT-COLOR FONTX-COLOR. if IP_FONT-FAMILY is not initial. FONTX-FAMILY = 'X'. endif. if IP_FONT-NAME is not initial. FONTX-NAME = 'X'. endif. if IP_FONT-SCHEME is not initial. FONTX-SCHEME = 'X'. endif. if IP_FONT-SIZE is not initial. FONTX-SIZE = 'X'. endif. if IP_FONT-UNDERLINE_MODE is not initial. FONTX-UNDERLINE_MODE = 'X'. endif. endif. move-corresponding IP_FONT to COMPLETE_STYLE-FONT. move-corresponding FONTX to COMPLETE_STYLEX-FONT. * Correction for undeline mode endif. if IP_FILL is supplied. data: FILLX like IP_XFILL. if IP_XFILL is supplied. FILLX = IP_XFILL. else. clear FILLX with 'X'. if IP_FILL-FILLTYPE is initial. clear FILLX-FILLTYPE. endif. CLEAR_INITIAL_COLORXFIELDS IP_FILL-FGCOLOR FILLX-FGCOLOR. CLEAR_INITIAL_COLORXFIELDS IP_FILL-BGCOLOR FILLX-BGCOLOR. endif. move-corresponding IP_FILL to COMPLETE_STYLE-FILL. move-corresponding FILLX to COMPLETE_STYLEX-FILL. endif. if IP_BORDERS is supplied. data: BORDERSX like IP_XBORDERS. if IP_XBORDERS is supplied. BORDERSX = IP_XBORDERS. else. clear BORDERSX with 'X'. if IP_BORDERS-ALLBORDERS-BORDER_STYLE is initial. clear BORDERSX-ALLBORDERS-BORDER_STYLE. endif. if IP_BORDERS-DIAGONAL-BORDER_STYLE is initial. clear BORDERSX-DIAGONAL-BORDER_STYLE. endif. if IP_BORDERS-DOWN-BORDER_STYLE is initial. clear BORDERSX-DOWN-BORDER_STYLE. endif. if IP_BORDERS-LEFT-BORDER_STYLE is initial. clear BORDERSX-LEFT-BORDER_STYLE. endif. if IP_BORDERS-RIGHT-BORDER_STYLE is initial. clear BORDERSX-RIGHT-BORDER_STYLE. endif. if IP_BORDERS-TOP-BORDER_STYLE is initial. clear BORDERSX-TOP-BORDER_STYLE. endif. CLEAR_INITIAL_COLORXFIELDS IP_BORDERS-ALLBORDERS-BORDER_COLOR BORDERSX-ALLBORDERS-BORDER_COLOR. CLEAR_INITIAL_COLORXFIELDS IP_BORDERS-DIAGONAL-BORDER_COLOR BORDERSX-DIAGONAL-BORDER_COLOR. CLEAR_INITIAL_COLORXFIELDS IP_BORDERS-DOWN-BORDER_COLOR BORDERSX-DOWN-BORDER_COLOR. CLEAR_INITIAL_COLORXFIELDS IP_BORDERS-LEFT-BORDER_COLOR BORDERSX-LEFT-BORDER_COLOR. CLEAR_INITIAL_COLORXFIELDS IP_BORDERS-RIGHT-BORDER_COLOR BORDERSX-RIGHT-BORDER_COLOR. CLEAR_INITIAL_COLORXFIELDS IP_BORDERS-TOP-BORDER_COLOR BORDERSX-TOP-BORDER_COLOR. endif. move-corresponding IP_BORDERS to COMPLETE_STYLE-BORDERS. move-corresponding BORDERSX to COMPLETE_STYLEX-BORDERS. endif. if IP_ALIGNMENT is supplied. data: ALIGNMENTX like IP_XALIGNMENT. if IP_XALIGNMENT is supplied. ALIGNMENTX = IP_XALIGNMENT. else. clear ALIGNMENTX with 'X'. if IP_ALIGNMENT-HORIZONTAL is initial. clear ALIGNMENTX-HORIZONTAL. endif. if IP_ALIGNMENT-VERTICAL is initial. clear ALIGNMENTX-VERTICAL. endif. endif. move-corresponding IP_ALIGNMENT to COMPLETE_STYLE-ALIGNMENT. move-corresponding ALIGNMENTX to COMPLETE_STYLEX-ALIGNMENT. endif. if IP_PROTECTION is supplied. move-corresponding IP_PROTECTION to COMPLETE_STYLE-PROTECTION. if IP_XPROTECTION is supplied. move-corresponding IP_XPROTECTION to COMPLETE_STYLEX-PROTECTION. else. if IP_PROTECTION-HIDDEN is not initial. COMPLETE_STYLEX-PROTECTION-HIDDEN = 'X'. endif. if IP_PROTECTION-LOCKED is not initial. COMPLETE_STYLEX-PROTECTION-LOCKED = 'X'. endif. endif. endif. MOVE_SUPPLIED_BORDERS : BORDERS_ALLBORDERS BORDERS-ALLBORDERS, BORDERS_DIAGONAL BORDERS-DIAGONAL , BORDERS_DOWN BORDERS-DOWN , BORDERS_LEFT BORDERS-LEFT , BORDERS_RIGHT BORDERS-RIGHT , BORDERS_TOP BORDERS-TOP . define MOVE_SUPPLIED_SINGLESTYLES. if IP_&1 is supplied. COMPLETE_STYLE-&2 = IP_&1. COMPLETE_STYLEX-&2 = 'X'. endif. end-of-definition. MOVE_SUPPLIED_SINGLESTYLES: NUMBER_FORMAT_FORMAT_CODE NUMBER_FORMAT-FORMAT_CODE, FONT_BOLD FONT-BOLD, FONT_COLOR FONT-COLOR, FONT_COLOR_RGB FONT-COLOR-RGB, FONT_COLOR_INDEXED FONT-COLOR-INDEXED, FONT_COLOR_THEME FONT-COLOR-THEME, FONT_COLOR_TINT FONT-COLOR-TINT, FONT_FAMILY FONT-FAMILY, FONT_ITALIC FONT-ITALIC, FONT_NAME FONT-NAME, FONT_SCHEME FONT-SCHEME, FONT_SIZE FONT-SIZE, FONT_STRIKETHROUGH FONT-STRIKETHROUGH, FONT_UNDERLINE FONT-UNDERLINE, FONT_UNDERLINE_MODE FONT-UNDERLINE_MODE, FILL_FILLTYPE FILL-FILLTYPE, FILL_ROTATION FILL-ROTATION, FILL_FGCOLOR FILL-FGCOLOR, FILL_FGCOLOR_RGB FILL-FGCOLOR-RGB, FILL_FGCOLOR_INDEXED FILL-FGCOLOR-INDEXED, FILL_FGCOLOR_THEME FILL-FGCOLOR-THEME, FILL_FGCOLOR_TINT FILL-FGCOLOR-TINT, FILL_BGCOLOR FILL-BGCOLOR, FILL_BGCOLOR_RGB FILL-BGCOLOR-RGB, FILL_BGCOLOR_INDEXED FILL-BGCOLOR-INDEXED, FILL_BGCOLOR_THEME FILL-BGCOLOR-THEME, FILL_BGCOLOR_TINT FILL-BGCOLOR-TINT, FILL_GRADTYPE_TYPE FILL-GRADTYPE-TYPE, FILL_GRADTYPE_DEGREE FILL-GRADTYPE-DEGREE, FILL_GRADTYPE_BOTTOM FILL-GRADTYPE-BOTTOM, FILL_GRADTYPE_LEFT FILL-GRADTYPE-LEFT, FILL_GRADTYPE_TOP FILL-GRADTYPE-TOP, FILL_GRADTYPE_RIGHT FILL-GRADTYPE-RIGHT, FILL_GRADTYPE_POSITION1 FILL-GRADTYPE-POSITION1, FILL_GRADTYPE_POSITION2 FILL-GRADTYPE-POSITION2, FILL_GRADTYPE_POSITION3 FILL-GRADTYPE-POSITION3, BORDERS_DIAGONAL_MODE BORDERS-DIAGONAL_MODE, ALIGNMENT_HORIZONTAL ALIGNMENT-HORIZONTAL, ALIGNMENT_VERTICAL ALIGNMENT-VERTICAL, ALIGNMENT_TEXTROTATION ALIGNMENT-TEXTROTATION, ALIGNMENT_WRAPTEXT ALIGNMENT-WRAPTEXT, ALIGNMENT_SHRINKTOFIT ALIGNMENT-SHRINKTOFIT, ALIGNMENT_INDENT ALIGNMENT-INDENT, PROTECTION_HIDDEN PROTECTION-HIDDEN, PROTECTION_LOCKED PROTECTION-LOCKED, BORDERS_ALLBORDERS_STYLE BORDERS-ALLBORDERS-BORDER_STYLE, BORDERS_ALLBORDERS_COLOR BORDERS-ALLBORDERS-BORDER_COLOR, BORDERS_ALLBO_COLOR_RGB BORDERS-ALLBORDERS-BORDER_COLOR-RGB, BORDERS_ALLBO_COLOR_INDEXED BORDERS-ALLBORDERS-BORDER_COLOR-INDEXED, BORDERS_ALLBO_COLOR_THEME BORDERS-ALLBORDERS-BORDER_COLOR-THEME, BORDERS_ALLBO_COLOR_TINT BORDERS-ALLBORDERS-BORDER_COLOR-TINT, BORDERS_DIAGONAL_STYLE BORDERS-DIAGONAL-BORDER_STYLE, BORDERS_DIAGONAL_COLOR BORDERS-DIAGONAL-BORDER_COLOR, BORDERS_DIAGONAL_COLOR_RGB BORDERS-DIAGONAL-BORDER_COLOR-RGB, BORDERS_DIAGONAL_COLOR_INDE BORDERS-DIAGONAL-BORDER_COLOR-INDEXED, BORDERS_DIAGONAL_COLOR_THEM BORDERS-DIAGONAL-BORDER_COLOR-THEME, BORDERS_DIAGONAL_COLOR_TINT BORDERS-DIAGONAL-BORDER_COLOR-TINT, BORDERS_DOWN_STYLE BORDERS-DOWN-BORDER_STYLE, BORDERS_DOWN_COLOR BORDERS-DOWN-BORDER_COLOR, BORDERS_DOWN_COLOR_RGB BORDERS-DOWN-BORDER_COLOR-RGB, BORDERS_DOWN_COLOR_INDEXED BORDERS-DOWN-BORDER_COLOR-INDEXED, BORDERS_DOWN_COLOR_THEME BORDERS-DOWN-BORDER_COLOR-THEME, BORDERS_DOWN_COLOR_TINT BORDERS-DOWN-BORDER_COLOR-TINT, BORDERS_LEFT_STYLE BORDERS-LEFT-BORDER_STYLE, BORDERS_LEFT_COLOR BORDERS-LEFT-BORDER_COLOR, BORDERS_LEFT_COLOR_RGB BORDERS-LEFT-BORDER_COLOR-RGB, BORDERS_LEFT_COLOR_INDEXED BORDERS-LEFT-BORDER_COLOR-INDEXED, BORDERS_LEFT_COLOR_THEME BORDERS-LEFT-BORDER_COLOR-THEME, BORDERS_LEFT_COLOR_TINT BORDERS-LEFT-BORDER_COLOR-TINT, BORDERS_RIGHT_STYLE BORDERS-RIGHT-BORDER_STYLE, BORDERS_RIGHT_COLOR BORDERS-RIGHT-BORDER_COLOR, BORDERS_RIGHT_COLOR_RGB BORDERS-RIGHT-BORDER_COLOR-RGB, BORDERS_RIGHT_COLOR_INDEXED BORDERS-RIGHT-BORDER_COLOR-INDEXED, BORDERS_RIGHT_COLOR_THEME BORDERS-RIGHT-BORDER_COLOR-THEME, BORDERS_RIGHT_COLOR_TINT BORDERS-RIGHT-BORDER_COLOR-TINT, BORDERS_TOP_STYLE BORDERS-TOP-BORDER_STYLE, BORDERS_TOP_COLOR BORDERS-TOP-BORDER_COLOR, BORDERS_TOP_COLOR_RGB BORDERS-TOP-BORDER_COLOR-RGB, BORDERS_TOP_COLOR_INDEXED BORDERS-TOP-BORDER_COLOR-INDEXED, BORDERS_TOP_COLOR_THEME BORDERS-TOP-BORDER_COLOR-THEME, BORDERS_TOP_COLOR_TINT BORDERS-TOP-BORDER_COLOR-TINT. * Now we have a completly filled styles. * This can be used to get the guid * Return guid if requested. Might be used if copy&paste of styles is requested EP_GUID = ME->EXCEL->GET_STATIC_CELLSTYLE_GUID( IP_CSTYLE_COMPLETE = COMPLETE_STYLE IP_CSTYLEX_COMPLETE = COMPLETE_STYLEX ). ME->SET_CELL_STYLE( IP_COLUMN = IP_COLUMN IP_ROW = IP_ROW IP_STYLE = EP_GUID ). endmethod. method CONSTRUCTOR. data: LV_TITLE type ZEXCEL_SHEET_TITLE. ME->EXCEL = IP_EXCEL. * CALL FUNCTION 'GUID_CREATE' " del issue #379 - function is outdated in newer releases * IMPORTING * ev_guid_16 = me->guid. ME->GUID = ZCL_EXCEL_OBSOLETE_FUNC_WRAP=>GUID_CREATE( ). " ins issue #379 - replacement for outdated function call if IP_TITLE is not initial. LV_TITLE = IP_TITLE. else. * lv_title = me->guid. " del issue #154 - Names of worksheets LV_TITLE = ME->GENERATE_TITLE( ). " ins issue #154 - Names of worksheets endif. ME->SET_TITLE( IP_TITLE = LV_TITLE ). create object SHEET_SETUP. create object STYLES_COND. create object DATA_VALIDATIONS. create object TABLES. create object COLUMNS. create object ROWS. create object RANGES. " issue #163 create object MO_PAGEBREAKS. create object DRAWINGS exporting IP_TYPE = ZCL_EXCEL_DRAWING=>TYPE_IMAGE. create object CHARTS exporting IP_TYPE = ZCL_EXCEL_DRAWING=>TYPE_CHART. ME->ZIF_EXCEL_SHEET_PROTECTION~INITIALIZE( ). ME->ZIF_EXCEL_SHEET_PROPERTIES~INITIALIZE( ). create object HYPERLINKS. * initialize active cell coordinates ACTIVE_CELL-CELL_ROW = 1. ACTIVE_CELL-CELL_COLUMN = 1. * inizialize dimension range LOWER_CELL-CELL_ROW = 1. LOWER_CELL-CELL_COLUMN = 1. UPPER_CELL-CELL_ROW = 1. UPPER_CELL-CELL_COLUMN = 1. endmethod. method DELETE_MERGE. data: LV_COLUMN type I. *--------------------------------------------------------------------* * If cell information is passed delete merge including this cell, * otherwise delete all merges *--------------------------------------------------------------------* if IP_CELL_COLUMN is initial or IP_CELL_ROW is initial. clear ME->MT_MERGED_CELLS. else. LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_CELL_COLUMN ). loop at ME->MT_MERGED_CELLS transporting no fields where ( ROW_FROM <= IP_CELL_ROW and ROW_TO >= IP_CELL_ROW ) and ( COL_FROM <= LV_COLUMN and COL_TO >= LV_COLUMN ). delete ME->MT_MERGED_CELLS. exit. endloop. endif. endmethod. method DELETE_ROW_OUTLINE. delete ME->MT_ROW_OUTLINES where ROW_FROM = IV_ROW_FROM and ROW_TO = IV_ROW_TO. if SY-SUBRC <> 0. " didn't find outline that was to be deleted raise exception type ZCX_EXCEL exporting ERROR = 'Row outline to be deleted does not exist'. endif. endmethod. method FREEZE_PANES. if IP_NUM_COLUMNS is not supplied and IP_NUM_ROWS is not supplied. raise exception type ZCX_EXCEL exporting ERROR = 'Pleas provide number of rows and/or columns to freeze'. endif. if IP_NUM_COLUMNS is supplied and IP_NUM_COLUMNS <= 0. raise exception type ZCX_EXCEL exporting ERROR = 'Number of columns to freeze should be positive'. endif. if IP_NUM_ROWS is supplied and IP_NUM_ROWS <= 0. raise exception type ZCX_EXCEL exporting ERROR = 'Number of rows to freeze should be positive'. endif. FREEZE_PANE_CELL_COLUMN = IP_NUM_COLUMNS + 1. FREEZE_PANE_CELL_ROW = IP_NUM_ROWS + 1. endmethod. method GENERATE_TITLE. data: LO_WORKSHEETS_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, LO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET. data: T_TITLES type hashed table of ZEXCEL_SHEET_TITLE with unique key TABLE_LINE, TITLE type ZEXCEL_SHEET_TITLE, SHEETNUMBER type I. * Get list of currently used titles LO_WORKSHEETS_ITERATOR = ME->EXCEL->GET_WORKSHEETS_ITERATOR( ). while LO_WORKSHEETS_ITERATOR->HAS_NEXT( ) = ABAP_TRUE. LO_WORKSHEET ?= LO_WORKSHEETS_ITERATOR->GET_NEXT( ). TITLE = LO_WORKSHEET->GET_TITLE( ). insert TITLE into table T_TITLES. add 1 to SHEETNUMBER. endwhile. * Now build sheetnumber. Increase counter until we hit a number that is not used so far add 1 to SHEETNUMBER. " Start counting with next number do. TITLE = SHEETNUMBER. shift TITLE left deleting leading SPACE. concatenate 'Sheet'(001) TITLE into EP_TITLE. insert EP_TITLE into table T_TITLES. if SY-SUBRC = 0. " Title not used so far --> take it exit. endif. add 1 to SHEETNUMBER. enddo. endmethod. method GET_ACTIVE_CELL. data: LV_ACTIVE_COLUMN type ZEXCEL_CELL_COLUMN_ALPHA, LV_ACTIVE_ROW type STRING. LV_ACTIVE_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( ACTIVE_CELL-CELL_COLUMN ). LV_ACTIVE_ROW = ACTIVE_CELL-CELL_ROW. shift LV_ACTIVE_ROW right deleting trailing SPACE. shift LV_ACTIVE_ROW left deleting leading SPACE. concatenate LV_ACTIVE_COLUMN LV_ACTIVE_ROW into EP_ACTIVE_CELL. endmethod. method GET_CELL. data: LV_COLUMN type ZEXCEL_CELL_COLUMN, LS_SHEET_CONTENT type ZEXCEL_S_CELL_DATA. LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN ). read table SHEET_CONTENT into LS_SHEET_CONTENT with table key CELL_ROW = IP_ROW CELL_COLUMN = LV_COLUMN. EP_RC = SY-SUBRC. EP_VALUE = LS_SHEET_CONTENT-CELL_VALUE. EP_GUID = LS_SHEET_CONTENT-CELL_STYLE. " issue 139 - added this to be used for columnwidth calculation EP_FORMULA = LS_SHEET_CONTENT-CELL_FORMULA. " Addition to solve issue #120, contribution by Stefan Schmöcker data: STYLE_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, STYLE type ref to ZCL_EXCEL_STYLE. if EP_STYLE is requested. STYLE_ITERATOR = ME->EXCEL->GET_STYLES_ITERATOR( ). while STYLE_ITERATOR->HAS_NEXT( ) = 'X'. STYLE ?= STYLE_ITERATOR->GET_NEXT( ). if STYLE->GET_GUID( ) = LS_SHEET_CONTENT-CELL_STYLE. EP_STYLE = STYLE. exit. endif. endwhile. endif. endmethod. method GET_COLUMN. data: LO_COLUMN_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, LO_COLUMN type ref to ZCL_EXCEL_COLUMN, LV_COLUMN type ZEXCEL_CELL_COLUMN. LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN ). EO_COLUMN = ME->COLUMNS->GET( IP_INDEX = LV_COLUMN ). if EO_COLUMN is not bound. EO_COLUMN = ME->ADD_NEW_COLUMN( IP_COLUMN ). endif. endmethod. method GET_COLUMNS. EO_COLUMNS = ME->COLUMNS. endmethod. method GET_COLUMNS_ITERATOR. EO_ITERATOR = ME->COLUMNS->GET_ITERATOR( ). endmethod. method GET_DATA_VALIDATIONS_ITERATOR. EO_ITERATOR = ME->DATA_VALIDATIONS->GET_ITERATOR( ). endmethod. method GET_DATA_VALIDATIONS_SIZE. EP_SIZE = ME->DATA_VALIDATIONS->SIZE( ). endmethod. method GET_DEFAULT_COLUMN. if ME->COLUMN_DEFAULT is not bound. create object ME->COLUMN_DEFAULT exporting IP_INDEX = 'A' " ???? IP_WORKSHEET = ME IP_EXCEL = ME->EXCEL. endif. EO_COLUMN = ME->COLUMN_DEFAULT. endmethod. method GET_DEFAULT_EXCEL_DATE_FORMAT. constants: C_LANG_E type LANG value 'E'. if DEFAULT_EXCEL_DATE_FORMAT is not initial. EP_DEFAULT_EXCEL_DATE_FORMAT = DEFAULT_EXCEL_DATE_FORMAT. return. endif. "try to get defaults try. CL_ABAP_DATFM=>GET_DATE_FORMAT_DES( exporting IM_LANGU = C_LANG_E importing EX_DATEFORMAT = DEFAULT_EXCEL_DATE_FORMAT ). catch CX_ABAP_DATFM_FORMAT_UNKNOWN. endtry. " and fallback to fixed format if DEFAULT_EXCEL_DATE_FORMAT is initial. DEFAULT_EXCEL_DATE_FORMAT = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_DDMMYYYYDOT. endif. EP_DEFAULT_EXCEL_DATE_FORMAT = DEFAULT_EXCEL_DATE_FORMAT. endmethod. method GET_DEFAULT_EXCEL_TIME_FORMAT. data: L_TIMEFM type XUTIMEFM. if DEFAULT_EXCEL_TIME_FORMAT is not initial. EP_DEFAULT_EXCEL_TIME_FORMAT = DEFAULT_EXCEL_TIME_FORMAT. return. endif. * Let's get default L_TIMEFM = CL_ABAP_TIMEFM=>GET_ENVIRONMENT_TIMEFM( ). case L_TIMEFM. when 0. *0 24 Hour Format (Example: 12:05:10) DEFAULT_EXCEL_TIME_FORMAT = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_TIME6. when 1. *1 12 Hour Format (Example: 12:05:10 PM) DEFAULT_EXCEL_TIME_FORMAT = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_TIME2. when 2. *2 12 Hour Format (Example: 12:05:10 pm) for now all the same. no chnage upper lower DEFAULT_EXCEL_TIME_FORMAT = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_TIME2. when 3. *3 Hours from 0 to 11 (Example: 00:05:10 PM) for now all the same. no chnage upper lower DEFAULT_EXCEL_TIME_FORMAT = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_TIME2. when 4. *4 Hours from 0 to 11 (Example: 00:05:10 pm) for now all the same. no chnage upper lower DEFAULT_EXCEL_TIME_FORMAT = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_TIME2. when others. " and fallback to fixed format DEFAULT_EXCEL_TIME_FORMAT = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_TIME6. endcase. EP_DEFAULT_EXCEL_TIME_FORMAT = DEFAULT_EXCEL_TIME_FORMAT. endmethod. method GET_DEFAULT_ROW. if ME->ROW_DEFAULT is not bound. create object ME->ROW_DEFAULT. endif. EO_ROW = ME->ROW_DEFAULT. endmethod. method GET_DIMENSION_RANGE. ME->UPDATE_DIMENSION_RANGE( ). if UPPER_CELL eq LOWER_CELL. "only one cell " Worksheet not filled * IF upper_cell-cell_coords = '0'. if UPPER_CELL-CELL_COORDS is initial. EP_DIMENSION_RANGE = 'A1'. else. EP_DIMENSION_RANGE = UPPER_CELL-CELL_COORDS. endif. else. concatenate UPPER_CELL-CELL_COORDS ':' LOWER_CELL-CELL_COORDS into EP_DIMENSION_RANGE. endif. endmethod. method GET_DRAWINGS. data: LO_DRAWING type ref to ZCL_EXCEL_DRAWING, LO_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR. case IP_TYPE. when ZCL_EXCEL_DRAWING=>TYPE_IMAGE. R_DRAWINGS = DRAWINGS. when ZCL_EXCEL_DRAWING=>TYPE_CHART. R_DRAWINGS = CHARTS. when SPACE. create object R_DRAWINGS exporting IP_TYPE = ''. LO_ITERATOR = DRAWINGS->GET_ITERATOR( ). while LO_ITERATOR->HAS_NEXT( ) = ABAP_TRUE. LO_DRAWING ?= LO_ITERATOR->GET_NEXT( ). R_DRAWINGS->INCLUDE( LO_DRAWING ). endwhile. LO_ITERATOR = CHARTS->GET_ITERATOR( ). while LO_ITERATOR->HAS_NEXT( ) = ABAP_TRUE. LO_DRAWING ?= LO_ITERATOR->GET_NEXT( ). R_DRAWINGS->INCLUDE( LO_DRAWING ). endwhile. when others. endcase. endmethod. method GET_DRAWINGS_ITERATOR. case IP_TYPE. when ZCL_EXCEL_DRAWING=>TYPE_IMAGE. EO_ITERATOR = DRAWINGS->GET_ITERATOR( ). when ZCL_EXCEL_DRAWING=>TYPE_CHART. EO_ITERATOR = CHARTS->GET_ITERATOR( ). endcase. endmethod. method GET_FREEZE_CELL. EP_ROW = ME->FREEZE_PANE_CELL_ROW. EP_COLUMN = ME->FREEZE_PANE_CELL_COLUMN. endmethod. method GET_GUID. EP_GUID = ME->GUID. endmethod. method GET_HIGHEST_COLUMN. ME->UPDATE_DIMENSION_RANGE( ). R_HIGHEST_COLUMN = ME->LOWER_CELL-CELL_COLUMN. endmethod. method GET_HIGHEST_ROW. ME->UPDATE_DIMENSION_RANGE( ). R_HIGHEST_ROW = ME->LOWER_CELL-CELL_ROW. endmethod. method GET_HYPERLINKS_ITERATOR. EO_ITERATOR = HYPERLINKS->GET_ITERATOR( ). endmethod. method GET_HYPERLINKS_SIZE. EP_SIZE = HYPERLINKS->SIZE( ). endmethod. method GET_MERGE. field-symbols: <LS_MERGED_CELL> like line of ME->MT_MERGED_CELLS. data: LV_COL_FROM type STRING, LV_COL_TO type STRING, LV_ROW_FROM type STRING, LV_ROW_TO type STRING, LV_MERGE_RANGE type STRING. loop at ME->MT_MERGED_CELLS assigning <LS_MERGED_CELL>. LV_COL_FROM = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( <LS_MERGED_CELL>-COL_FROM ). LV_COL_TO = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( <LS_MERGED_CELL>-COL_TO ). LV_ROW_FROM = <LS_MERGED_CELL>-ROW_FROM. LV_ROW_TO = <LS_MERGED_CELL>-ROW_TO . concatenate LV_COL_FROM LV_ROW_FROM ':' LV_COL_TO LV_ROW_TO into LV_MERGE_RANGE. condense LV_MERGE_RANGE no-gaps. append LV_MERGE_RANGE to MERGE_RANGE. endloop. endmethod. method GET_PAGEBREAKS. RO_PAGEBREAKS = MO_PAGEBREAKS. endmethod. method GET_RANGES_ITERATOR. EO_ITERATOR = ME->RANGES->GET_ITERATOR( ). endmethod. method GET_ROW. EO_ROW = ME->ROWS->GET( IP_INDEX = IP_ROW ). if EO_ROW is not bound. EO_ROW = ME->ADD_NEW_ROW( IP_ROW ). endif. endmethod. method GET_ROWS. EO_ROWS = ME->ROWS. endmethod. method GET_ROWS_ITERATOR. EO_ITERATOR = ME->ROWS->GET_ITERATOR( ). endmethod. method GET_ROW_OUTLINES. RT_ROW_OUTLINES = ME->MT_ROW_OUTLINES. endmethod. method GET_STYLE_COND. data: LO_STYLE_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, LO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND. LO_STYLE_ITERATOR = ME->GET_STYLE_COND_ITERATOR( ). while LO_STYLE_ITERATOR->HAS_NEXT( ) = ABAP_TRUE. LO_STYLE_COND ?= LO_STYLE_ITERATOR->GET_NEXT( ). if LO_STYLE_COND->GET_GUID( ) = IP_GUID. EO_STYLE_COND = LO_STYLE_COND. exit. endif. endwhile. endmethod. method GET_STYLE_COND_ITERATOR. EO_ITERATOR = STYLES_COND->GET_ITERATOR( ). endmethod. method GET_TABCOLOR. EV_TABCOLOR = ME->TABCOLOR. endmethod. method GET_TABLE. *--------------------------------------------------------------------* * Comment D. Rauchenstein * With this method, we get a fully functional Excel Upload, which solves * a few issues of the other excel upload tools * ZBCABA_ALSM_EXCEL_UPLOAD_EXT: Reads only up to 50 signs per Cell, Limit * in row-Numbers. Other have Limitations of Lines, or you are not able * to ignore filters or choosing the right tab. * * To get a fully functional XLSX Upload, you can use it e.g. with method * CL_EXCEL_READER_2007->ZIF_EXCEL_READER~LOAD_FILE() *--------------------------------------------------------------------* field-symbols: <LS_LINE> type DATA. field-symbols: <LV_VALUE> type DATA. data LV_ACTUAL_ROW type INT4. data LV_ACTUAL_COL type INT4. data LV_ERRORMESSAGE type STRING. data LV_MAX_COL type ZEXCEL_CELL_COLUMN. data LV_MAX_ROW type INT4. data LV_DELTA_COL type INT4. data LV_VALUE type ZEXCEL_CELL_VALUE. data LV_RC type SYSUBRC. LV_MAX_COL = ME->GET_HIGHEST_COLUMN( ). LV_MAX_ROW = ME->GET_HIGHEST_ROW( ). *--------------------------------------------------------------------* * The row counter begins with 1 and should be corrected with the skips *--------------------------------------------------------------------* LV_ACTUAL_ROW = IV_SKIPPED_ROWS + 1. LV_ACTUAL_COL = IV_SKIPPED_COLS + 1. try. *--------------------------------------------------------------------* * Check if we the basic features are possible with given "any table" *--------------------------------------------------------------------* append initial line to ET_TABLE assigning <LS_LINE>. if SY-SUBRC <> 0 or <LS_LINE> is not assigned. LV_ERRORMESSAGE = 'Error at inserting new Line to internal Table'(002). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. else. LV_DELTA_COL = LV_MAX_COL - IV_SKIPPED_COLS. assign component LV_DELTA_COL of structure <LS_LINE> to <LV_VALUE>. if SY-SUBRC <> 0 or <LV_VALUE> is not assigned. LV_ERRORMESSAGE = 'Internal table has less columns than excel'(003). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. else. *--------------------------------------------------------------------* *now we are ready for handle the table data *--------------------------------------------------------------------* refresh ET_TABLE. *--------------------------------------------------------------------* * Handle each Row until end on right side *--------------------------------------------------------------------* while LV_ACTUAL_ROW <= LV_MAX_ROW . *--------------------------------------------------------------------* * Handle each Column until end on bottom * First step is to step back on first column *--------------------------------------------------------------------* LV_ACTUAL_COL = IV_SKIPPED_COLS + 1. unassign <LS_LINE>. append initial line to ET_TABLE assigning <LS_LINE>. if SY-SUBRC <> 0 or <LS_LINE> is not assigned. LV_ERRORMESSAGE = 'Error at inserting new Line to internal Table'(002). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. while LV_ACTUAL_COL <= LV_MAX_COL. LV_DELTA_COL = LV_ACTUAL_COL - IV_SKIPPED_COLS. assign component LV_DELTA_COL of structure <LS_LINE> to <LV_VALUE>. if SY-SUBRC <> 0. LV_ERRORMESSAGE = |{ 'Error at assigning field (Col:'(004) } { LV_ACTUAL_COL } { ' Row:'(005) } { LV_ACTUAL_ROW }|. raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. ME->GET_CELL( exporting IP_COLUMN = LV_ACTUAL_COL " Cell Column IP_ROW = LV_ACTUAL_ROW " Cell Row importing EP_VALUE = LV_VALUE " Cell Value EP_RC = LV_RC " Return Value of ABAP Statements ). if LV_RC <> 0 and LV_RC <> 4. "No found error means, zero/no value in cell LV_ERRORMESSAGE = |{ 'Error at reading field value (Col:'(007) } { LV_ACTUAL_COL } { ' Row:'(005) } { LV_ACTUAL_ROW }|. raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. <LV_VALUE> = LV_VALUE. * CATCH zcx_excel. " add 1 to LV_ACTUAL_COL. endwhile. add 1 to LV_ACTUAL_ROW. endwhile. endif. endif. catch CX_SY_ASSIGN_CAST_ILLEGAL_CAST. LV_ERRORMESSAGE = |{ 'Error at assigning field (Col:'(004) } { LV_ACTUAL_COL } { ' Row:'(005) } { LV_ACTUAL_ROW }|. raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. catch CX_SY_ASSIGN_CAST_UNKNOWN_TYPE. LV_ERRORMESSAGE = |{ 'Error at assigning field (Col:'(004) } { LV_ACTUAL_COL } { ' Row:'(005) } { LV_ACTUAL_ROW }|. raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. catch CX_SY_ASSIGN_OUT_OF_RANGE. LV_ERRORMESSAGE = 'Internal table has less columns than excel'(003). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. catch CX_SY_CONVERSION_ERROR. LV_ERRORMESSAGE = |{ 'Error at converting field value (Col:'(006) } { LV_ACTUAL_COL } { ' Row:'(005) } { LV_ACTUAL_ROW }|. raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endtry. endmethod. method GET_TABLES_ITERATOR. EO_ITERATOR = TABLES->IF_OBJECT_COLLECTION~GET_ITERATOR( ). endmethod. method GET_TABLES_SIZE. EP_SIZE = TABLES->IF_OBJECT_COLLECTION~SIZE( ). endmethod. method GET_TITLE. data LV_VALUE type STRING. if IP_ESCAPED eq ABAP_TRUE. LV_VALUE = ME->TITLE. EP_TITLE = ZCL_EXCEL_COMMON=>ESCAPE_STRING( LV_VALUE ). else. EP_TITLE = ME->TITLE. endif. endmethod. method GET_VALUE_TYPE. data: LO_ADDIT type ref to CL_ABAP_ELEMDESCR, LS_DFIES type DFIES, L_FUNCTION type FUNCNAME, L_VALUE(50) type C. EP_VALUE = IP_VALUE. EP_VALUE_TYPE = CL_ABAP_TYPEDESCR=>TYPEKIND_STRING. " Thats our default if something goes wrong. try. LO_ADDIT ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( IP_VALUE ). catch CX_SY_MOVE_CAST_ERROR. clear LO_ADDIT. endtry. if LO_ADDIT is bound. LO_ADDIT->GET_DDIC_FIELD( receiving P_FLDDESCR = LS_DFIES exceptions NOT_FOUND = 1 NO_DDIC_TYPE = 2 others = 3 ) . if SY-SUBRC = 0. EP_VALUE_TYPE = LS_DFIES-INTTYPE. if LS_DFIES-CONVEXIT is not initial. * We need to convert with output conversion function concatenate 'CONVERSION_EXIT_' LS_DFIES-CONVEXIT '_OUTPUT' into L_FUNCTION. select single FUNCNAME into L_FUNCTION from TFDIR where FUNCNAME = L_FUNCTION. if SY-SUBRC = 0. call function L_FUNCTION exporting INPUT = IP_VALUE importing * LONG_TEXT = OUTPUT = L_VALUE * SHORT_TEXT = exceptions others = 1. if SY-SUBRC <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. else. try. EP_VALUE = L_VALUE. catch CX_ROOT. EP_VALUE = IP_VALUE. endtry. endif. endif. endif. else. EP_VALUE_TYPE = LO_ADDIT->GET_DATA_TYPE_KIND( IP_VALUE ). endif. endif. endmethod. method IS_CELL_MERGED. data: LV_COLUMN type I. field-symbols: <LS_MERGED_CELL> like line of ME->MT_MERGED_CELLS. LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN ). RP_IS_MERGED = ABAP_FALSE. " Assume not in merged area loop at ME->MT_MERGED_CELLS assigning <LS_MERGED_CELL>. if <LS_MERGED_CELL>-COL_FROM <= LV_COLUMN and <LS_MERGED_CELL>-COL_TO >= LV_COLUMN and <LS_MERGED_CELL>-ROW_FROM <= IP_ROW and <LS_MERGED_CELL>-ROW_TO >= IP_ROW. RP_IS_MERGED = ABAP_TRUE. " until we are proven different return. endif. endloop. endmethod. method PRINT_TITLE_SET_RANGE. *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmoecker, 2012-12-02 *--------------------------------------------------------------------* data: LO_RANGE_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, LO_RANGE type ref to ZCL_EXCEL_RANGE, LV_REPEAT_RANGE_SHEETNAME type STRING, LV_REPEAT_RANGE_COL type STRING, LV_ROW_CHAR_FROM type CHAR10, LV_ROW_CHAR_TO type CHAR10, LV_REPEAT_RANGE_ROW type STRING, LV_REPEAT_RANGE type STRING. *--------------------------------------------------------------------* * Get range that represents printarea * if non-existant, create it *--------------------------------------------------------------------* LO_RANGE_ITERATOR = ME->GET_RANGES_ITERATOR( ). while LO_RANGE_ITERATOR->HAS_NEXT( ) = ABAP_TRUE. LO_RANGE ?= LO_RANGE_ITERATOR->GET_NEXT( ). if LO_RANGE->NAME = ZIF_EXCEL_SHEET_PRINTSETTINGS=>GCV_PRINT_TITLE_NAME. exit. " Found it endif. clear LO_RANGE. endwhile. if ME->PRINT_TITLE_COL_FROM is initial and ME->PRINT_TITLE_ROW_FROM is initial. *--------------------------------------------------------------------* * No print titles are present, *--------------------------------------------------------------------* if LO_RANGE is bound. ME->RANGES->REMOVE( LO_RANGE ). endif. else. *--------------------------------------------------------------------* * Print titles are present, *--------------------------------------------------------------------* if LO_RANGE is not bound. LO_RANGE = ME->ADD_NEW_RANGE( ). LO_RANGE->NAME = ZIF_EXCEL_SHEET_PRINTSETTINGS=>GCV_PRINT_TITLE_NAME. endif. LV_REPEAT_RANGE_SHEETNAME = ME->GET_TITLE( ). LV_REPEAT_RANGE_SHEETNAME = ZCL_EXCEL_COMMON=>ESCAPE_STRING( LV_REPEAT_RANGE_SHEETNAME ). *--------------------------------------------------------------------* * Repeat-columns *--------------------------------------------------------------------* if ME->PRINT_TITLE_COL_FROM is not initial. concatenate LV_REPEAT_RANGE_SHEETNAME '!$' ME->PRINT_TITLE_COL_FROM ':$' ME->PRINT_TITLE_COL_TO into LV_REPEAT_RANGE_COL. endif. *--------------------------------------------------------------------* * Repeat-rows *--------------------------------------------------------------------* if ME->PRINT_TITLE_ROW_FROM is not initial. LV_ROW_CHAR_FROM = ME->PRINT_TITLE_ROW_FROM. LV_ROW_CHAR_TO = ME->PRINT_TITLE_ROW_TO. concatenate '!$' LV_ROW_CHAR_FROM ':$' LV_ROW_CHAR_TO into LV_REPEAT_RANGE_ROW. condense LV_REPEAT_RANGE_ROW no-gaps. concatenate LV_REPEAT_RANGE_SHEETNAME LV_REPEAT_RANGE_ROW into LV_REPEAT_RANGE_ROW. endif. *--------------------------------------------------------------------* * Concatenate repeat-rows and columns *--------------------------------------------------------------------* if LV_REPEAT_RANGE_COL is initial. LV_REPEAT_RANGE = LV_REPEAT_RANGE_ROW. elseif LV_REPEAT_RANGE_ROW is initial. LV_REPEAT_RANGE = LV_REPEAT_RANGE_COL. else. concatenate LV_REPEAT_RANGE_COL LV_REPEAT_RANGE_ROW into LV_REPEAT_RANGE separated by ','. endif. LO_RANGE->SET_RANGE_VALUE( LV_REPEAT_RANGE ). endif. endmethod. method SET_CELL. data: LV_COLUMN type ZEXCEL_CELL_COLUMN, LS_SHEET_CONTENT type ZEXCEL_S_CELL_DATA, LV_ROW_ALPHA type STRING, LV_COL_ALPHA type ZEXCEL_CELL_COLUMN_ALPHA, LV_VALUE type ZEXCEL_CELL_VALUE, LV_DATA_TYPE type ZEXCEL_CELL_DATA_TYPE, LV_VALUE_TYPE type ABAP_TYPEKIND, LV_STYLE_GUID type ZEXCEL_CELL_STYLE, LO_ADDIT type ref to CL_ABAP_ELEMDESCR, LO_VALUE type ref to DATA, LO_VALUE_NEW type ref to DATA. field-symbols: <FS_SHEET_CONTENT> type ZEXCEL_S_CELL_DATA, <FS_NUMERIC> type NUMERIC, <FS_DATE> type D, <FS_TIME> type T, <FS_VALUE> type SIMPLE. if IP_VALUE is not supplied and IP_FORMULA is not supplied. raise exception type ZCX_EXCEL exporting ERROR = 'Please provide the value or formula'. endif. * Begin of change issue #152 - don't touch exisiting style if only value is passed * lv_style_guid = ip_style. LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN ). read table SHEET_CONTENT assigning <FS_SHEET_CONTENT> with table key CELL_ROW = IP_ROW " Changed to access via table key , Stefan Schmöcker, 2013-08-03 CELL_COLUMN = LV_COLUMN. if SY-SUBRC = 0. if IP_STYLE is initial. " If no style is provided as method-parameter and cell is found use cell's current style LV_STYLE_GUID = <FS_SHEET_CONTENT>-CELL_STYLE. else. " Style provided as method-parameter --> use this LV_STYLE_GUID = IP_STYLE. endif. else. " No cell found --> use supplied style even if empty LV_STYLE_GUID = IP_STYLE. endif. * End of change issue #152 - don't touch exisiting style if only value is passed if IP_VALUE is supplied. "if data type is passed just write the value. Otherwise map abap type to excel and perform conversion "IP_DATA_TYPE is passed by excel reader so source types are preserved *First we get reference into local var. create data LO_VALUE like IP_VALUE. assign LO_VALUE->* to <FS_VALUE>. <FS_VALUE> = IP_VALUE. if IP_DATA_TYPE is supplied. if IP_ABAP_TYPE is not supplied. GET_VALUE_TYPE( exporting IP_VALUE = IP_VALUE importing EP_VALUE = <FS_VALUE> ) . endif. LV_VALUE = <FS_VALUE>. LV_DATA_TYPE = IP_DATA_TYPE. else. if IP_ABAP_TYPE is supplied. LV_VALUE_TYPE = IP_ABAP_TYPE. else. GET_VALUE_TYPE( exporting IP_VALUE = IP_VALUE importing EP_VALUE = <FS_VALUE> EP_VALUE_TYPE = LV_VALUE_TYPE ). endif. case LV_VALUE_TYPE. when CL_ABAP_TYPEDESCR=>TYPEKIND_INT or CL_ABAP_TYPEDESCR=>TYPEKIND_INT1 or CL_ABAP_TYPEDESCR=>TYPEKIND_INT2. LO_ADDIT = CL_ABAP_ELEMDESCR=>GET_I( ). create data LO_VALUE_NEW type handle LO_ADDIT. assign LO_VALUE_NEW->* to <FS_NUMERIC>. if SY-SUBRC = 0. <FS_NUMERIC> = <FS_VALUE>. LV_VALUE = ZCL_EXCEL_COMMON=>NUMBER_TO_EXCEL_STRING( IP_VALUE = <FS_NUMERIC> ). endif. when CL_ABAP_TYPEDESCR=>TYPEKIND_FLOAT or CL_ABAP_TYPEDESCR=>TYPEKIND_PACKED. LO_ADDIT = CL_ABAP_ELEMDESCR=>GET_F( ). create data LO_VALUE_NEW type handle LO_ADDIT. assign LO_VALUE_NEW->* to <FS_NUMERIC>. if SY-SUBRC = 0. <FS_NUMERIC> = <FS_VALUE>. LV_VALUE = ZCL_EXCEL_COMMON=>NUMBER_TO_EXCEL_STRING( IP_VALUE = <FS_NUMERIC> ). endif. when CL_ABAP_TYPEDESCR=>TYPEKIND_CHAR or CL_ABAP_TYPEDESCR=>TYPEKIND_STRING or CL_ABAP_TYPEDESCR=>TYPEKIND_NUM or CL_ABAP_TYPEDESCR=>TYPEKIND_HEX. LV_VALUE = <FS_VALUE>. LV_DATA_TYPE = 's'. when CL_ABAP_TYPEDESCR=>TYPEKIND_DATE. LO_ADDIT = CL_ABAP_ELEMDESCR=>GET_D( ). create data LO_VALUE_NEW type handle LO_ADDIT. assign LO_VALUE_NEW->* to <FS_DATE>. if SY-SUBRC = 0. <FS_DATE> = <FS_VALUE>. LV_VALUE = ZCL_EXCEL_COMMON=>DATE_TO_EXCEL_STRING( IP_VALUE = <FS_DATE> ) . endif. * Begin of change issue #152 - don't touch exisiting style if only value is passed * Moved to end of routine - apply date-format even if other styleinformation is passed * IF ip_style IS NOT SUPPLIED. "get default date format in case parameter is initial * lo_style = excel->add_new_style( ). * lo_style->number_format->format_code = get_default_excel_date_format( ). * lv_style_guid = lo_style->get_guid( ). * ENDIF. * End of change issue #152 - don't touch exisiting style if only value is passed when CL_ABAP_TYPEDESCR=>TYPEKIND_TIME. LO_ADDIT = CL_ABAP_ELEMDESCR=>GET_T( ). create data LO_VALUE_NEW type handle LO_ADDIT. assign LO_VALUE_NEW->* to <FS_TIME>. if SY-SUBRC = 0. <FS_TIME> = <FS_VALUE>. LV_VALUE = ZCL_EXCEL_COMMON=>TIME_TO_EXCEL_STRING( IP_VALUE = <FS_TIME> ). endif. * Begin of change issue #152 - don't touch exisiting style if only value is passed * Moved to end of routine - apply time-format even if other styleinformation is passed * IF ip_style IS NOT SUPPLIED. "get default time format for user in case parameter is initial * lo_style = excel->add_new_style( ). * lo_style->number_format->format_code = zcl_excel_style_number_format=>c_format_date_time6. * lv_style_guid = lo_style->get_guid( ). * ENDIF. * End of change issue #152 - don't touch exisiting style if only value is passed when others. raise exception type ZCX_EXCEL exporting ERROR = 'Invalid data type of input value'. endcase. endif. endif. if IP_HYPERLINK is bound. IP_HYPERLINK->SET_CELL_REFERENCE( IP_COLUMN = IP_COLUMN IP_ROW = IP_ROW ). ME->HYPERLINKS->ADD( IP_HYPERLINK ). endif. * Begin of change issue #152 - don't touch exisiting style if only value is passed * Read table moved up, so that current style may be evaluated * lv_column = zcl_excel_common=>convert_column2int( ip_column ). * READ TABLE sheet_content ASSIGNING <fs_sheet_content> WITH KEY cell_row = ip_row * cell_column = lv_column. * * IF sy-subrc EQ 0. if <FS_SHEET_CONTENT> is assigned. * End of change issue #152 - don't touch exisiting style if only value is passed <FS_SHEET_CONTENT>-CELL_VALUE = LV_VALUE. <FS_SHEET_CONTENT>-CELL_FORMULA = IP_FORMULA. <FS_SHEET_CONTENT>-CELL_STYLE = LV_STYLE_GUID. <FS_SHEET_CONTENT>-DATA_TYPE = LV_DATA_TYPE. else. LS_SHEET_CONTENT-CELL_ROW = IP_ROW. LS_SHEET_CONTENT-CELL_COLUMN = LV_COLUMN. LS_SHEET_CONTENT-CELL_VALUE = LV_VALUE. LS_SHEET_CONTENT-CELL_FORMULA = IP_FORMULA. LS_SHEET_CONTENT-CELL_STYLE = LV_STYLE_GUID. LS_SHEET_CONTENT-DATA_TYPE = LV_DATA_TYPE. LV_ROW_ALPHA = IP_ROW. * SHIFT lv_row_alpha RIGHT DELETING TRAILING space."del #152 - replaced with condense - should be faster * SHIFT lv_row_alpha LEFT DELETING LEADING space. "del #152 - replaced with condense - should be faster condense LV_ROW_ALPHA no-gaps. "ins #152 - replaced 2 shifts - should be faster LV_COL_ALPHA = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( IP_COLUMN ). " issue #155 - less restrictive typing for ip_column concatenate LV_COL_ALPHA LV_ROW_ALPHA into LS_SHEET_CONTENT-CELL_COORDS. " issue #155 - less restrictive typing for ip_column insert LS_SHEET_CONTENT into table SHEET_CONTENT assigning <FS_SHEET_CONTENT>. "ins #152 - Now <fs_sheet_content> always holds the data * APPEND ls_sheet_content TO sheet_content. * SORT sheet_content BY cell_row cell_column. " me->update_dimension_range( ). endif. * Begin of change issue #152 - don't touch exisiting style if only value is passed * For Date- or Timefields change the formatcode if nothing is set yet * Enhancement option: Check if existing formatcode is a date/ or timeformat * If not, use default data: LO_FORMAT_CODE_DATETIME type ZEXCEL_NUMBER_FORMAT. data: STYLEMAPPING type ZEXCEL_S_STYLEMAPPING. case LV_VALUE_TYPE. when CL_ABAP_TYPEDESCR=>TYPEKIND_DATE. try. STYLEMAPPING = ME->EXCEL->GET_STYLE_TO_GUID( <FS_SHEET_CONTENT>-CELL_STYLE ). catch ZCX_EXCEL . endtry. if STYLEMAPPING-COMPLETE_STYLEX-NUMBER_FORMAT-FORMAT_CODE is initial or STYLEMAPPING-COMPLETE_STYLE-NUMBER_FORMAT-FORMAT_CODE is initial. LO_FORMAT_CODE_DATETIME = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_STD. else. LO_FORMAT_CODE_DATETIME = STYLEMAPPING-COMPLETE_STYLE-NUMBER_FORMAT-FORMAT_CODE. endif. ME->CHANGE_CELL_STYLE( IP_COLUMN = IP_COLUMN IP_ROW = IP_ROW IP_NUMBER_FORMAT_FORMAT_CODE = LO_FORMAT_CODE_DATETIME ). when CL_ABAP_TYPEDESCR=>TYPEKIND_TIME. try. STYLEMAPPING = ME->EXCEL->GET_STYLE_TO_GUID( <FS_SHEET_CONTENT>-CELL_STYLE ). catch ZCX_EXCEL . endtry. if STYLEMAPPING-COMPLETE_STYLEX-NUMBER_FORMAT-FORMAT_CODE is initial or STYLEMAPPING-COMPLETE_STYLE-NUMBER_FORMAT-FORMAT_CODE is initial. LO_FORMAT_CODE_DATETIME = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>C_FORMAT_DATE_TIME6. else. LO_FORMAT_CODE_DATETIME = STYLEMAPPING-COMPLETE_STYLE-NUMBER_FORMAT-FORMAT_CODE. endif. ME->CHANGE_CELL_STYLE( IP_COLUMN = IP_COLUMN IP_ROW = IP_ROW IP_NUMBER_FORMAT_FORMAT_CODE = LO_FORMAT_CODE_DATETIME ). endcase. * End of change issue #152 - don't touch exisiting style if only value is passed * Fix issue #162 LV_VALUE = IP_VALUE. if LV_VALUE cs CL_ABAP_CHAR_UTILITIES=>CR_LF. ME->CHANGE_CELL_STYLE( IP_COLUMN = IP_COLUMN IP_ROW = IP_ROW IP_ALIGNMENT_WRAPTEXT = ABAP_TRUE ). endif. * End of Fix issue #162 endmethod. method SET_CELL_FORMULA. data: LV_COLUMN type ZEXCEL_CELL_COLUMN, LS_SHEET_CONTENT like line of ME->SHEET_CONTENT. field-symbols: <SHEET_CONTENT> like line of ME->SHEET_CONTENT. *--------------------------------------------------------------------* * Get cell to set formula into *--------------------------------------------------------------------* LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN ). read table ME->SHEET_CONTENT assigning <SHEET_CONTENT> with table key CELL_ROW = IP_ROW CELL_COLUMN = LV_COLUMN. if SY-SUBRC <> 0. " Create new entry in sheet_content if necessary check IP_FORMULA is initial. " no need to create new entry in sheet_content when no formula is passed LS_SHEET_CONTENT-CELL_ROW = IP_ROW. LS_SHEET_CONTENT-CELL_COLUMN = LV_COLUMN. insert LS_SHEET_CONTENT into table ME->SHEET_CONTENT assigning <SHEET_CONTENT>. endif. *--------------------------------------------------------------------* * Fieldsymbol now holds the relevant cell *--------------------------------------------------------------------* <SHEET_CONTENT>-CELL_FORMULA = IP_FORMULA. endmethod. method SET_CELL_STYLE. data: LV_COLUMN type ZEXCEL_CELL_COLUMN, LV_STYLE_GUID type ZEXCEL_CELL_STYLE. field-symbols: <FS_SHEET_CONTENT> type ZEXCEL_S_CELL_DATA. LV_STYLE_GUID = IP_STYLE. LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN ). read table SHEET_CONTENT assigning <FS_SHEET_CONTENT> with key CELL_ROW = IP_ROW CELL_COLUMN = LV_COLUMN. if SY-SUBRC eq 0. <FS_SHEET_CONTENT>-CELL_STYLE = LV_STYLE_GUID. else. SET_CELL( IP_COLUMN = IP_COLUMN IP_ROW = IP_ROW IP_VALUE = '' IP_STYLE = IP_STYLE ). endif. endmethod. method SET_COLUMN_WIDTH. data: LO_COLUMN type ref to ZCL_EXCEL_COLUMN. data: WIDTH type FLOAT. LO_COLUMN = ME->GET_COLUMN( IP_COLUMN ). * if a fix size is supplied use this if IP_WIDTH_FIX is supplied. try. WIDTH = IP_WIDTH_FIX. if WIDTH <= 0. raise exception type ZCX_EXCEL exporting ERROR = 'Please supply a positive number as column-width'. endif. LO_COLUMN->SET_WIDTH( WIDTH ). exit. catch CX_SY_CONVERSION_NO_NUMBER. * Strange stuff passed --> raise error raise exception type ZCX_EXCEL exporting ERROR = 'Unable to interpret supplied input as number'. endtry. endif. * If we get down to here, we have to use whatever is found in autosize. LO_COLUMN->SET_AUTO_SIZE( IP_WIDTH_AUTOSIZE ). endmethod. method SET_DEFAULT_EXCEL_DATE_FORMAT. if IP_DEFAULT_EXCEL_DATE_FORMAT is initial. raise exception type ZCX_EXCEL exporting ERROR = 'Default date format cannot be blank'. endif. DEFAULT_EXCEL_DATE_FORMAT = IP_DEFAULT_EXCEL_DATE_FORMAT. endmethod. method SET_MERGE. data: LS_MERGE type MTY_MERGE, LV_ERRORMESSAGE type STRING. *--------------------------------------------------------------------* * Build new range area to insert into range table *--------------------------------------------------------------------* LS_MERGE-ROW_FROM = IP_ROW. if IP_ROW is supplied and IP_ROW is not initial and IP_ROW_TO is not supplied. LS_MERGE-ROW_TO = LS_MERGE-ROW_FROM. else. LS_MERGE-ROW_TO = IP_ROW_TO. endif. if LS_MERGE-ROW_FROM > LS_MERGE-ROW_TO. LV_ERRORMESSAGE = 'Merge: First row larger then last row'(405). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. LS_MERGE-COL_FROM = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN_START ). if IP_COLUMN_START is supplied and IP_COLUMN_START is not initial and IP_COLUMN_END is not supplied. LS_MERGE-COL_TO = LS_MERGE-COL_FROM. else. LS_MERGE-COL_TO = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN_END ). endif. if LS_MERGE-COL_FROM > LS_MERGE-COL_TO. LV_ERRORMESSAGE = 'Merge: First column larger then last column'(406). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. *--------------------------------------------------------------------* * Check merge not overlapping with existing merges *--------------------------------------------------------------------* loop at ME->MT_MERGED_CELLS transporting no fields where not ( ROW_FROM > LS_MERGE-ROW_TO or ROW_TO < LS_MERGE-ROW_FROM or COL_FROM > LS_MERGE-COL_TO or COL_TO < LS_MERGE-COL_FROM ). LV_ERRORMESSAGE = 'Overlapping merges'(404). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endloop. *--------------------------------------------------------------------* * Everything seems ok --> add to merge table *--------------------------------------------------------------------* insert LS_MERGE into table ME->MT_MERGED_CELLS. endmethod. method SET_PRINT_GRIDLINES. ME->PRINT_GRIDLINES = I_PRINT_GRIDLINES. endmethod. method SET_ROW_HEIGHT. data: LO_ROW type ref to ZCL_EXCEL_ROW. data: HEIGHT type FLOAT. LO_ROW = ME->GET_ROW( IP_ROW ). * if a fix size is supplied use this try. HEIGHT = IP_HEIGHT_FIX. if HEIGHT <= 0. raise exception type ZCX_EXCEL exporting ERROR = 'Please supply a positive number as row-height'. endif. LO_ROW->SET_ROW_HEIGHT( HEIGHT ). exit. catch CX_SY_CONVERSION_NO_NUMBER. * Strange stuff passed --> raise error raise exception type ZCX_EXCEL exporting ERROR = 'Unable to interpret supplied input as number'. endtry. endmethod. method SET_ROW_OUTLINE. data: LS_ROW_OUTLINE like line of ME->MT_ROW_OUTLINES. field-symbols: <LS_ROW_OUTLINE> like line of ME->MT_ROW_OUTLINES. read table ME->MT_ROW_OUTLINES assigning <LS_ROW_OUTLINE> with table key ROW_FROM = IV_ROW_FROM ROW_TO = IV_ROW_TO. if SY-SUBRC <> 0. if IV_ROW_FROM <= 0. raise exception type ZCX_EXCEL exporting ERROR = 'First row of outline must be a positive number'. endif. if IV_ROW_TO < IV_ROW_FROM. raise exception type ZCX_EXCEL exporting ERROR = 'Last row of outline may not be less than first line of outline'. endif. LS_ROW_OUTLINE-ROW_FROM = IV_ROW_FROM. LS_ROW_OUTLINE-ROW_TO = IV_ROW_TO. insert LS_ROW_OUTLINE into table ME->MT_ROW_OUTLINES assigning <LS_ROW_OUTLINE>. endif. case IV_COLLAPSED. when ABAP_TRUE or ABAP_FALSE. <LS_ROW_OUTLINE>-COLLAPSED = IV_COLLAPSED. when others. raise exception type ZCX_EXCEL exporting ERROR = 'Unknown collapse state'. endcase. endmethod. method SET_SHOW_GRIDLINES. ME->SHOW_GRIDLINES = I_SHOW_GRIDLINES. endmethod. method SET_SHOW_ROWCOLHEADERS. ME->SHOW_ROWCOLHEADERS = I_SHOW_ROWCOLHEADERS. endmethod. method SET_TABCOLOR. ME->TABCOLOR = IV_TABCOLOR. endmethod. method SET_TABLE. data: LO_TABDESCR type ref to CL_ABAP_STRUCTDESCR, LR_DATA type ref to DATA, LS_HEADER type X030L, LT_DFIES type DDFIELDS, LV_ROW_INT type ZEXCEL_CELL_ROW, LV_COLUMN_INT type ZEXCEL_CELL_COLUMN, LV_COLUMN_ALPHA type ZEXCEL_CELL_COLUMN_ALPHA, LV_CELL_VALUE type ZEXCEL_CELL_VALUE. field-symbols: <FS_TABLE_LINE> type ANY, <FS_FLDVAL> type ANY, <FS_DFIES> type DFIES. LV_COLUMN_INT = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_TOP_LEFT_COLUMN ). LV_ROW_INT = IP_TOP_LEFT_ROW. create data LR_DATA like line of IP_TABLE. LO_TABDESCR ?= CL_ABAP_STRUCTDESCR=>DESCRIBE_BY_DATA_REF( LR_DATA ). LS_HEADER = LO_TABDESCR->GET_DDIC_HEADER( ). LT_DFIES = LO_TABDESCR->GET_DDIC_FIELD_LIST( ). * It is better to loop column by column loop at LT_DFIES assigning <FS_DFIES>. LV_COLUMN_ALPHA = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( LV_COLUMN_INT ). if IP_NO_HEADER = ABAP_FALSE. " First of all write column header LV_CELL_VALUE = <FS_DFIES>-SCRTEXT_M. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_VALUE = LV_CELL_VALUE IP_STYLE = IP_HDR_STYLE ). if IP_TRANSPOSE = ABAP_TRUE. add 1 to LV_COLUMN_INT. else. add 1 to LV_ROW_INT. endif. endif. loop at IP_TABLE assigning <FS_TABLE_LINE>. LV_COLUMN_ALPHA = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( LV_COLUMN_INT ). assign component <FS_DFIES>-FIELDNAME of structure <FS_TABLE_LINE> to <FS_FLDVAL>. move <FS_FLDVAL> to LV_CELL_VALUE. ME->SET_CELL( IP_COLUMN = LV_COLUMN_ALPHA IP_ROW = LV_ROW_INT IP_VALUE = <FS_FLDVAL> "lv_cell_value IP_STYLE = IP_BODY_STYLE ). if IP_TRANSPOSE = ABAP_TRUE. add 1 to LV_COLUMN_INT. else. add 1 to LV_ROW_INT. endif. endloop. if IP_TRANSPOSE = ABAP_TRUE. LV_COLUMN_INT = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_TOP_LEFT_COLUMN ). add 1 to LV_ROW_INT. else. LV_ROW_INT = IP_TOP_LEFT_ROW. add 1 to LV_COLUMN_INT. endif. endloop. endmethod. method SET_TITLE. *--------------------------------------------------------------------* * ToDos: * 2do §1 The current coding for replacing a named ranges name * after renaming a sheet should be checked if it is * really working if sheetname should be escaped *--------------------------------------------------------------------* *--------------------------------------------------------------------* * issue #230 - Pimp my Code * - Stefan Schmoecker, (wip ) 2012-12-08 * - ... * changes: aligning code * message made to support multilinguality *--------------------------------------------------------------------* * issue#243 - ' is not allowed as first character in sheet title * - Stefan Schmoecker, 2012-12-02 * changes: added additional check for ' as first character *--------------------------------------------------------------------* data: LO_WORKSHEETS_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, LO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET, ERRORMESSAGE type STRING, LV_RANGESHEETNAME_OLD type STRING, LV_RANGESHEETNAME_NEW type STRING, LO_RANGES_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, LO_RANGE type ref to ZCL_EXCEL_RANGE, LV_RANGE_VALUE type ZEXCEL_RANGE_VALUE, LV_ERRORMESSAGE type STRING. " Can't pass '...'(abc) to exception-class *--------------------------------------------------------------------* * Check whether title consists only of allowed characters * Illegal characters are: / \ [ ] * ? : --> http://msdn.microsoft.com/en-us/library/ff837411.aspx * Illegal characters not in documentation: ' as first character *--------------------------------------------------------------------* if IP_TITLE ca '/\[]*?:'. LV_ERRORMESSAGE = 'Found illegal character in sheetname. List of forbidden characters: /\[]*?:'(402). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. if IP_TITLE is not initial and IP_TITLE(1) = `'`. LV_ERRORMESSAGE = 'Sheetname may not start with &'(403). " & used instead of ' to allow fallbacklanguage replace '&' in LV_ERRORMESSAGE with `'`. raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. *--------------------------------------------------------------------* * Check whether title is unique in workbook *--------------------------------------------------------------------* LO_WORKSHEETS_ITERATOR = ME->EXCEL->GET_WORKSHEETS_ITERATOR( ). while LO_WORKSHEETS_ITERATOR->HAS_NEXT( ) = 'X'. LO_WORKSHEET ?= LO_WORKSHEETS_ITERATOR->GET_NEXT( ). check ME->GUID <> LO_WORKSHEET->GET_GUID( ). " Don't check against itself if IP_TITLE = LO_WORKSHEET->GET_TITLE( ). " Not unique --> raise exception ERRORMESSAGE = 'Duplicate sheetname &'. replace '&' in ERRORMESSAGE with IP_TITLE. raise exception type ZCX_EXCEL exporting ERROR = ERRORMESSAGE. endif. endwhile. *--------------------------------------------------------------------* * Remember old sheetname and rename sheet to desired name *--------------------------------------------------------------------* concatenate ME->TITLE '!' into LV_RANGESHEETNAME_OLD. ME->TITLE = IP_TITLE. *--------------------------------------------------------------------* * After changing this worksheet's title we have to adjust * all ranges that are referring to this worksheet. *--------------------------------------------------------------------* * 2do §1 - Check if the following quickfix is solid * I fear it isn't - but this implementation is better then * nothing at all since it handles a supposed majority of cases *--------------------------------------------------------------------* concatenate ME->TITLE '!' into LV_RANGESHEETNAME_NEW. LO_RANGES_ITERATOR = ME->EXCEL->GET_RANGES_ITERATOR( ). while LO_RANGES_ITERATOR->HAS_NEXT( ) = 'X'. LO_RANGE ?= LO_RANGES_ITERATOR->GET_NEXT( ). LV_RANGE_VALUE = LO_RANGE->GET_VALUE( ). replace all occurrences of LV_RANGESHEETNAME_OLD in LV_RANGE_VALUE with LV_RANGESHEETNAME_NEW. if SY-SUBRC = 0. LO_RANGE->SET_RANGE_VALUE( LV_RANGE_VALUE ). endif. endwhile. endmethod. method UPDATE_DIMENSION_RANGE. data: LS_SHEET_CONTENT type ZEXCEL_S_CELL_DATA, LT_SHEET_CONTENT type ZEXCEL_T_CELL_DATA_UNSORTED, LV_ROW_ALPHA type STRING, LV_COLUMN_ALPHA type ZEXCEL_CELL_COLUMN_ALPHA. check SHEET_CONTENT is not initial. * update dimension range LT_SHEET_CONTENT = SHEET_CONTENT. "upper left corner sort LT_SHEET_CONTENT by CELL_ROW. read table LT_SHEET_CONTENT index 1 into LS_SHEET_CONTENT. UPPER_CELL-CELL_ROW = LS_SHEET_CONTENT-CELL_ROW. sort LT_SHEET_CONTENT by CELL_COLUMN. read table LT_SHEET_CONTENT index 1 into LS_SHEET_CONTENT. UPPER_CELL-CELL_COLUMN = LS_SHEET_CONTENT-CELL_COLUMN. LV_ROW_ALPHA = UPPER_CELL-CELL_ROW. LV_COLUMN_ALPHA = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( UPPER_CELL-CELL_COLUMN ). shift LV_ROW_ALPHA right deleting trailing SPACE. shift LV_ROW_ALPHA left deleting leading SPACE. concatenate LV_COLUMN_ALPHA LV_ROW_ALPHA into UPPER_CELL-CELL_COORDS. "bottom right corner sort LT_SHEET_CONTENT by CELL_ROW descending. read table LT_SHEET_CONTENT index 1 into LS_SHEET_CONTENT. LOWER_CELL-CELL_ROW = LS_SHEET_CONTENT-CELL_ROW. sort LT_SHEET_CONTENT by CELL_COLUMN descending. read table LT_SHEET_CONTENT index 1 into LS_SHEET_CONTENT. LOWER_CELL-CELL_COLUMN = LS_SHEET_CONTENT-CELL_COLUMN. LV_ROW_ALPHA = LOWER_CELL-CELL_ROW. LV_COLUMN_ALPHA = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2ALPHA( LOWER_CELL-CELL_COLUMN ). shift LV_ROW_ALPHA right deleting trailing SPACE. shift LV_ROW_ALPHA left deleting leading SPACE. concatenate LV_COLUMN_ALPHA LV_ROW_ALPHA into LOWER_CELL-CELL_COORDS. endmethod. method ZIF_EXCEL_SHEET_PRINTSETTINGS~CLEAR_PRINT_REPEAT_COLUMNS. *--------------------------------------------------------------------* * adjust internal representation *--------------------------------------------------------------------* clear: ME->PRINT_TITLE_COL_FROM, ME->PRINT_TITLE_COL_TO . *--------------------------------------------------------------------* * adjust corresponding range *--------------------------------------------------------------------* ME->PRINT_TITLE_SET_RANGE( ). endmethod. method ZIF_EXCEL_SHEET_PRINTSETTINGS~CLEAR_PRINT_REPEAT_ROWS. *--------------------------------------------------------------------* * adjust internal representation *--------------------------------------------------------------------* clear: ME->PRINT_TITLE_ROW_FROM, ME->PRINT_TITLE_ROW_TO . *--------------------------------------------------------------------* * adjust corresponding range *--------------------------------------------------------------------* ME->PRINT_TITLE_SET_RANGE( ). endmethod. method ZIF_EXCEL_SHEET_PRINTSETTINGS~GET_PRINT_REPEAT_COLUMNS. EV_COLUMNS_FROM = ME->PRINT_TITLE_COL_FROM. EV_COLUMNS_TO = ME->PRINT_TITLE_COL_TO. endmethod. method ZIF_EXCEL_SHEET_PRINTSETTINGS~GET_PRINT_REPEAT_ROWS. EV_ROWS_FROM = ME->PRINT_TITLE_ROW_FROM. EV_ROWS_TO = ME->PRINT_TITLE_ROW_TO. endmethod. method ZIF_EXCEL_SHEET_PRINTSETTINGS~SET_PRINT_REPEAT_COLUMNS. *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmöcker, 2012-12-02 *--------------------------------------------------------------------* data: LV_COL_FROM_INT type I, LV_COL_TO_INT type I, LV_ERRORMESSAGE type STRING. LV_COL_FROM_INT = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IV_COLUMNS_FROM ). LV_COL_TO_INT = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IV_COLUMNS_TO ). *--------------------------------------------------------------------* * Check if valid range is supplied *--------------------------------------------------------------------* if LV_COL_FROM_INT < 1. LV_ERRORMESSAGE = 'Invalid range supplied for print-title repeatable columns'(401). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. if LV_COL_FROM_INT > LV_COL_TO_INT. LV_ERRORMESSAGE = 'Invalid range supplied for print-title repeatable columns'(401). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. *--------------------------------------------------------------------* * adjust internal representation *--------------------------------------------------------------------* ME->PRINT_TITLE_COL_FROM = IV_COLUMNS_FROM. ME->PRINT_TITLE_COL_TO = IV_COLUMNS_TO. *--------------------------------------------------------------------* * adjust corresponding range *--------------------------------------------------------------------* ME->PRINT_TITLE_SET_RANGE( ). endmethod. method ZIF_EXCEL_SHEET_PRINTSETTINGS~SET_PRINT_REPEAT_ROWS. *--------------------------------------------------------------------* * issue#235 - repeat rows/columns * - Stefan Schmöcker, 2012-12-02 *--------------------------------------------------------------------* data: LV_ERRORMESSAGE type STRING. *--------------------------------------------------------------------* * Check if valid range is supplied *--------------------------------------------------------------------* if IV_ROWS_FROM < 1. LV_ERRORMESSAGE = 'Invalid range supplied for print-title repeatable rowumns'(401). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. if IV_ROWS_FROM > IV_ROWS_TO. LV_ERRORMESSAGE = 'Invalid range supplied for print-title repeatable rowumns'(401). raise exception type ZCX_EXCEL exporting ERROR = LV_ERRORMESSAGE. endif. *--------------------------------------------------------------------* * adjust internal representation *--------------------------------------------------------------------* ME->PRINT_TITLE_ROW_FROM = IV_ROWS_FROM. ME->PRINT_TITLE_ROW_TO = IV_ROWS_TO. *--------------------------------------------------------------------* * adjust corresponding range *--------------------------------------------------------------------* ME->PRINT_TITLE_SET_RANGE( ). endmethod. method ZIF_EXCEL_SHEET_PROPERTIES~GET_STYLE. if ZIF_EXCEL_SHEET_PROPERTIES~STYLE is not initial. EP_STYLE = ZIF_EXCEL_SHEET_PROPERTIES~STYLE. else. EP_STYLE = ME->EXCEL->GET_DEFAULT_STYLE( ). endif. endmethod. method ZIF_EXCEL_SHEET_PROPERTIES~INITIALIZE. ZIF_EXCEL_SHEET_PROPERTIES~SHOW_ZEROS = ZIF_EXCEL_SHEET_PROPERTIES=>C_SHOWZERO. ZIF_EXCEL_SHEET_PROPERTIES~SUMMARYBELOW = ZIF_EXCEL_SHEET_PROPERTIES=>C_BELOW_ON. ZIF_EXCEL_SHEET_PROPERTIES~SUMMARYRIGHT = ZIF_EXCEL_SHEET_PROPERTIES=>C_RIGHT_ON. * inizialize zoomscale values ZIF_EXCEL_SHEET_PROPERTIES~ZOOMSCALE = 100. ZIF_EXCEL_SHEET_PROPERTIES~ZOOMSCALE_NORMAL = 100. ZIF_EXCEL_SHEET_PROPERTIES~ZOOMSCALE_PAGELAYOUTVIEW = 100 . ZIF_EXCEL_SHEET_PROPERTIES~ZOOMSCALE_SHEETLAYOUTVIEW = 100 . endmethod. method ZIF_EXCEL_SHEET_PROPERTIES~SET_STYLE. ZIF_EXCEL_SHEET_PROPERTIES~STYLE = IP_STYLE. endmethod. method ZIF_EXCEL_SHEET_PROTECTION~INITIALIZE. ME->ZIF_EXCEL_SHEET_PROTECTION~PROTECTED = ZIF_EXCEL_SHEET_PROTECTION=>C_UNPROTECTED. clear ME->ZIF_EXCEL_SHEET_PROTECTION~PASSWORD. ME->ZIF_EXCEL_SHEET_PROTECTION~AUTO_FILTER = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~DELETE_COLUMNS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~DELETE_ROWS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~FORMAT_CELLS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~FORMAT_COLUMNS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~FORMAT_ROWS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~INSERT_COLUMNS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~INSERT_HYPERLINKS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~INSERT_ROWS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~OBJECTS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. * me->zif_excel_sheet_protection~password = zif_excel_sheet_protection=>c_noactive. "issue #68 ME->ZIF_EXCEL_SHEET_PROTECTION~PIVOT_TABLES = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~PROTECTED = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~SCENARIOS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~SELECT_LOCKED_CELLS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~SELECT_UNLOCKED_CELLS = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~SHEET = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. ME->ZIF_EXCEL_SHEET_PROTECTION~SORT = ZIF_EXCEL_SHEET_PROTECTION=>C_NOACTIVE. endmethod. method ZIF_EXCEL_SHEET_VBA_PROJECT~SET_CODENAME. ME->ZIF_EXCEL_SHEET_VBA_PROJECT~CODENAME = IP_CODENAME. endmethod. method ZIF_EXCEL_SHEET_VBA_PROJECT~SET_CODENAME_PR. ME->ZIF_EXCEL_SHEET_VBA_PROJECT~CODENAME_PR = IP_CODENAME_PR. endmethod. ENDCLASS.
[ 4871, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 6770, 198, 220, 1171, 198, 220, 2251, 1171, 764, 628, 220, 1171, 2665, 13, 198, 9, 1, 9, 1171, 6805, 286, 1398, 1168, 5097, 62, 6369, 34, 3698, 62, 33249, 9693, 36, 2767, 198, 9, 1, 9, 466, 407, 2291, 584, 2723, 3696, 994, 10185, 198, 220, 220, 220, 2099, 12, 7742, 82, 9564, 2969, 764, 628, 220, 220, 220, 20314, 1168, 5064, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 4805, 1268, 4694, 2767, 51, 20754, 764, 198, 220, 220, 220, 20314, 1168, 5064, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 4805, 3185, 17395, 11015, 764, 198, 220, 220, 220, 20314, 1168, 5064, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 4805, 2394, 24565, 764, 198, 220, 220, 220, 20314, 1168, 5064, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 53, 4339, 62, 31190, 23680, 764, 628, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 2221, 286, 220, 337, 9936, 62, 50, 62, 12425, 24027, 62, 49, 3913, 11, 198, 220, 220, 220, 220, 220, 220, 220, 371, 3913, 62, 10913, 2662, 220, 2099, 314, 11, 198, 220, 220, 220, 220, 220, 220, 220, 371, 3913, 62, 10468, 220, 220, 220, 2099, 314, 11, 198, 220, 220, 220, 220, 220, 220, 220, 7375, 3069, 44580, 1961, 2099, 9564, 2969, 62, 8202, 3535, 11, 198, 220, 220, 220, 220, 220, 886, 286, 337, 9936, 62, 50, 62, 12425, 24027, 62, 49, 3913, 764, 198, 220, 220, 220, 3858, 25, 198, 220, 220, 220, 220, 220, 337, 9936, 62, 4694, 62, 12425, 34509, 1546, 62, 49, 3913, 2099, 23243, 3084, 286, 337, 9936, 62, 50, 62, 12425, 24027, 62, 49, 3913, 351, 3748, 1994, 371, 3913, 62, 10913, 2662, 371, 3913, 62, 10468, 764, 628, 220, 220, 220, 38491, 327, 62, 40438, 10206, 62, 25154, 5883, 45, 2099, 1168, 6369, 34, 3698, 62, 40438, 10206, 1988, 362, 13, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 38491, 327, 62, 40438, 10206, 62, 45, 11651, 2099, 1168, 6369, 34, 3698, 62, 40438, 10206, 1988, 657, 13, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 38491, 327, 62, 40438, 10206, 62, 49, 3913, 2099, 1168, 6369, 34, 3698, 62, 40438, 10206, 1988, 352, 13, 220, 220, 220, 220, 220, 220, 220, 25113, 2943, 5626, 13918, 198, 220, 220, 220, 1366, 7788, 34, 3698, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 1100, 12, 8807, 764, 198, 220, 1366, 4810, 12394, 62, 10761, 2389, 34509, 1546, 2099, 1168, 6369, 34, 3698, 62, 4805, 12394, 62, 10761, 2389, 34509, 1546, 1100, 12, 8807, 1988, 9564, 2969, 62, 37, 23719, 13, 25113, 2943, 5626, 13918, 764, 366, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 198, 220, 220, 220, 1366, 48052, 2767, 62, 37815, 3525, 2099, 1168, 6369, 34, 3698, 62, 51, 62, 5222, 3069, 62, 26947, 764, 198, 220, 220, 220, 1366, 48052, 2767, 62, 28480, 8577, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 62, 9693, 36, 2767, 62, 28480, 8577, 764, 198, 220, 220, 1366, 37041, 62, 10761, 2389, 34509, 1546, 2099, 1168, 6369, 34, 3698, 62, 9693, 3913, 62, 10761, 2389, 34509, 1546, 1100, 12, 8807, 1988, 9564, 2969, 62, 5446, 8924, 13, 25113, 2943, 5626, 13918, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 198, 220, 220, 220, 1366, 37041, 62, 49, 3913, 25154, 37682, 4877, 2099, 1168, 6369, 34, 3698, 62, 9693, 3913, 62, 10761, 2389, 34509, 1546, 1100, 12, 8807, 1988, 9564, 2969, 62, 5446, 8924, 13, 25113, 2943, 5626, 13918, 764, 366, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 220, 764, 198, 220, 220, 220, 1366, 3563, 56, 28378, 2099, 1168, 6369, 34, 3698, 62, 51, 62, 9693, 36, 2767, 62, 2257, 56, 2538, 764, 198, 220, 220, 220, 1366, 21664, 2749, 3535, 1581, 2099, 1168, 6369, 34, 3698, 62, 50, 62, 5603, 2749, 3535, 1581, 1100, 12, 8807, 764, 628, 220, 220, 220, 5050, 27841, 62, 35, 20530, 2751, 198, 220, 220, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4061, 62, 35, 20530, 2751, 2099, 1006, 284, 1168, 5097, 62, 6369, 34, 3698, 62, 35, 20530, 2751, 764, 198, 220, 220, 220, 5050, 27841, 62, 13965, 62, 25154, 5883, 45, 198, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL. PRIVATE SECTION. DATA cut TYPE REF TO zcl_resistor_color. METHODS setup. METHODS test_black FOR TESTING. METHODS test_white FOR TESTING. METHODS test_orange FOR TESTING. ENDCLASS. CLASS ltcl_test IMPLEMENTATION. METHOD setup. cut = NEW #( ). ENDMETHOD. METHOD test_black. cl_abap_unit_assert=>assert_equals( act = cut->resistor_color( 'black' ) exp = 0 ). ENDMETHOD. METHOD test_white. cl_abap_unit_assert=>assert_equals( act = cut->resistor_color( 'white' ) exp = 9 ). ENDMETHOD. METHOD test_orange. cl_abap_unit_assert=>assert_equals( act = cut->resistor_color( 'orange' ) exp = 3 ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 83, 565, 62, 9288, 5550, 20032, 17941, 7473, 43001, 2751, 198, 220, 360, 4261, 6234, 6006, 9863, 198, 220, 45698, 42, 49277, 43638, 5805, 7597, 25261, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 2005, 41876, 4526, 37, 5390, 1976, 565, 62, 411, 32380, 62, 8043, 13, 198, 220, 220, 220, 337, 36252, 50, 9058, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 13424, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 11186, 7473, 43001, 2751, 13, 198, 220, 220, 220, 337, 36252, 50, 1332, 62, 43745, 7473, 43001, 2751, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 300, 83, 565, 62, 9288, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 9058, 13, 198, 220, 220, 220, 2005, 796, 12682, 1303, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1332, 62, 13424, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 411, 32380, 62, 8043, 7, 705, 13424, 6, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 657, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1332, 62, 11186, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 411, 32380, 62, 8043, 7, 705, 11186, 6, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 860, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1332, 62, 43745, 13, 198, 220, 220, 220, 537, 62, 397, 499, 62, 20850, 62, 30493, 14804, 30493, 62, 4853, 874, 7, 198, 220, 220, 220, 220, 220, 719, 796, 2005, 3784, 411, 32380, 62, 8043, 7, 705, 43745, 6, 1267, 198, 220, 220, 220, 220, 220, 1033, 796, 513, 6739, 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 ]
CLASS z_sy_cl_feature_infrastruct DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. TYPES: BEGIN OF featuredescription, class TYPE z_sy_featureclassname, name TYPE z_sy_featurename, description TYPE string, dependencies TYPE z_sy_t_featurereference, currentstate TYPE xsdboolean, date TYPE z_sy_featuredate, END OF featuredescription . TYPES: t_featuredescription TYPE STANDARD TABLE OF featuredescription WITH KEY class name . METHODS getfeaturedescriptions RETURNING VALUE(r_result) TYPE t_featuredescription . METHODS constructor . METHODS setfeaturestate IMPORTING !i_feature TYPE zsy_featurereference !i_newstate TYPE abap_bool !i_activaterecursive TYPE abap_bool . PROTECTED SECTION. PRIVATE SECTION. DATA featurelist TYPE t_featuredescription . METHODS reflect_feature_toggles . METHODS resolvefeaturedependencies IMPORTING !i_feature TYPE zsy_featurereference CHANGING !x_dependencies TYPE z_sy_t_featurereference OPTIONAL RETURNING VALUE(r_dependencies) TYPE z_sy_t_featurereference . METHODS getdependentfeatures IMPORTING !i_feature TYPE featuredescription RETURNING VALUE(r_dependents) TYPE z_sy_t_featurereference . METHODS writefeaturestate IMPORTING !i_feature TYPE zsy_featurereference !i_newstate TYPE abap_bool RAISING z_cx_sy_feature_db . ENDCLASS. CLASS z_sy_cl_feature_infrastruct IMPLEMENTATION. METHOD constructor. me->reflect_feature_toggles( ). ENDMETHOD. METHOD getdependentfeatures. LOOP AT featurelist ASSIGNING FIELD-SYMBOL(<feature>). IF line_exists( <feature>-dependencies[ class = i_feature-class name = i_feature-name ] ). INSERT VALUE #( class = <feature>-class name = <feature>-name ) INTO TABLE r_dependents. ENDIF. ENDLOOP. ENDMETHOD. METHOD getfeaturedescriptions. r_result = featurelist. ENDMETHOD. METHOD reflect_feature_toggles. DATA subclasses TYPE seor_inheritance_keys. CALL FUNCTION 'SEO_CLASS_GET_ALL_SUBS' EXPORTING clskey = CONV seoclskey( 'Z_SY_FEATURE' ) version = seoc_version_active IMPORTING inhkeys = subclasses EXCEPTIONS class_not_existing = 1 OTHERS = 2. IF sy-subrc <> 0. RAISE EXCEPTION TYPE z_cx_sy_feature_db. ENDIF. CLEAR me->featurelist. LOOP AT subclasses ASSIGNING FIELD-SYMBOL(<class>). DATA(class_access) = NEW z_sy_cl_featureclass_access( CONV #( <class>-clsname ) ). DATA(features) = VALUE t_featuredescription( FOR <attribute> IN class_access->getfeaturelist( ) ( class = <class>-clsname name = <attribute> currentstate = class_access->getfeaturestate( <attribute> ) description = class_access->getfeaturedescription( <attribute> ) dependencies = class_access->getfeaturedependencies( <attribute> ) date = class_access->getfeaturedate( <attribute> ) ) ). INSERT LINES OF features INTO TABLE me->featurelist. ENDLOOP. LOOP AT me->featurelist ASSIGNING FIELD-SYMBOL(<feature>). <feature>-dependencies = resolvefeaturedependencies( VALUE #( class = <feature>-class name = <feature>-name ) ). DELETE <feature>-dependencies WHERE class = <feature>-class AND name = <feature>-name. ENDLOOP. SORT me->featurelist BY class name ASCENDING. ENDMETHOD. METHOD resolvefeaturedependencies. TRY. DATA(feature) = me->featurelist[ class = i_feature-class name = i_feature-name ]. LOOP AT feature-dependencies ASSIGNING FIELD-SYMBOL(<dependency>). IF line_exists( x_dependencies[ class = <dependency>-class name = <dependency>-name ] ). CONTINUE. ENDIF. INSERT <dependency> INTO TABLE x_dependencies. INSERT <dependency> INTO TABLE r_dependencies. INSERT LINES OF resolvefeaturedependencies( EXPORTING i_feature = <dependency> CHANGING x_dependencies = x_dependencies ) INTO TABLE r_dependencies. ENDLOOP. CATCH cx_sy_itab_line_not_found. ENDTRY. ENDMETHOD. METHOD setfeaturestate. TRY. DATA(feature) = featurelist[ class = i_feature-class name = i_feature-name ]. CATCH cx_sy_itab_line_not_found. RAISE EXCEPTION TYPE z_cx_sy_feature_db EXPORTING textid = z_cx_sy_feature_db=>invalid_featurename. ENDTRY. "Abhaengige Faetures mit aktivieren. IF i_newstate = abap_true. DATA(dependencies) = feature-dependencies. ELSE. dependencies = me->getdependentfeatures( feature ). ENDIF. IF lines( dependencies ) > 0. IF i_activaterecursive = abap_false. RAISE EXCEPTION TYPE z_cx_sy_feature_db EXPORTING textid = z_cx_sy_feature_db=>existing_dependencies. ENDIF. LOOP AT dependencies ASSIGNING FIELD-SYMBOL(<dependency>). writefeaturestate( i_feature = <dependency> i_newstate = i_newstate ). ENDLOOP. ENDIF. writefeaturestate( i_feature = i_feature i_newstate = i_newstate ). ENDMETHOD. METHOD writefeaturestate. DATA(record) = VALUE zsy_tfeature( class = i_feature-class feature = i_feature-name active = i_newstate ). UPDATE zsy_tfeature FROM record. IF sy-subrc <> 0. INSERT zsy_tfeature FROM record. IF sy-subrc <> 0. RAISE EXCEPTION TYPE z_cx_sy_feature_db. ENDIF. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 62, 1837, 62, 565, 62, 30053, 62, 10745, 5685, 1356, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 8096, 7260, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1398, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 62, 1837, 62, 30053, 4871, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1438, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 62, 1837, 62, 30053, 3672, 11, 198, 220, 220, 220, 220, 220, 220, 220, 6764, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 20086, 41876, 1976, 62, 1837, 62, 83, 62, 30053, 35790, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1459, 5219, 41876, 2124, 21282, 2127, 21052, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3128, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 62, 1837, 62, 69, 20980, 378, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 8096, 7260, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 256, 62, 69, 20980, 7260, 41876, 49053, 9795, 43679, 3963, 8096, 7260, 13315, 35374, 1398, 1438, 764, 628, 220, 220, 220, 337, 36252, 50, 651, 69, 20980, 3798, 1968, 507, 30826, 4261, 15871, 26173, 8924, 7, 81, 62, 20274, 8, 41876, 256, 62, 69, 20980, 7260, 764, 198, 220, 220, 220, 337, 36252, 50, 23772, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 30053, 5219, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 30053, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1837, 62, 30053, 35790, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3605, 5219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 39022, 8344, 30753, 41876, 450, 499, 62, 30388, 764, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 3895, 4868, 41876, 256, 62, 69, 20980, 7260, 764, 628, 220, 220, 220, 337, 36252, 50, 4079, 62, 30053, 62, 83, 48549, 764, 198, 220, 220, 220, 337, 36252, 50, 10568, 69, 20980, 2690, 3976, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 30053, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 1837, 62, 30053, 35790, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 87, 62, 45841, 3976, 220, 220, 220, 220, 220, 220, 41876, 1976, 62, 1837, 62, 83, 62, 30053, 35790, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 45841, 3976, 8, 41876, 1976, 62, 1837, 62, 83, 62, 30053, 35790, 764, 198, 220, 220, 220, 337, 36252, 50, 651, 21186, 40890, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 30053, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 8096, 7260, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 62, 45841, 658, 8, 41876, 1976, 62, 1837, 62, 83, 62, 30053, 35790, 764, 198, 220, 220, 220, 337, 36252, 50, 3551, 30053, 5219, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 30053, 220, 41876, 1976, 1837, 62, 30053, 35790, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 72, 62, 3605, 5219, 41876, 450, 499, 62, 30388, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 62, 66, 87, 62, 1837, 62, 30053, 62, 9945, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 62, 1837, 62, 565, 62, 30053, 62, 10745, 5685, 1356, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 502, 3784, 35051, 62, 30053, 62, 83, 48549, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 21186, 40890, 13, 628, 220, 220, 220, 17579, 3185, 5161, 3895, 4868, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 30053, 29, 737, 198, 220, 220, 220, 220, 220, 16876, 1627, 62, 1069, 1023, 7, 1279, 30053, 29, 12, 45841, 3976, 58, 1398, 796, 1312, 62, 30053, 12, 4871, 1438, 796, 1312, 62, 30053, 12, 3672, 2361, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 29194, 17395, 26173, 8924, 1303, 7, 1398, 796, 1279, 30053, 29, 12, 4871, 1438, 796, 1279, 30053, 29, 12, 3672, 1267, 39319, 43679, 374, 62, 45841, 658, 13, 198, 220, 220, 220, 220, 220, 23578, 5064, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 69, 20980, 3798, 1968, 507, 13, 628, 220, 220, 220, 374, 62, 20274, 796, 3895, 4868, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4079, 62, 30053, 62, 83, 48549, 13, 628, 220, 220, 220, 42865, 850, 37724, 41876, 384, 273, 62, 259, 372, 42942, 62, 13083, 13, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 50, 4720, 62, 31631, 62, 18851, 62, 7036, 62, 12564, 4462, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 537, 82, 2539, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 7102, 53, 384, 420, 7278, 2539, 7, 705, 57, 62, 23060, 62, 15112, 40086, 6, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 2196, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 384, 420, 62, 9641, 62, 5275, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 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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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 zeml_text_labels_bo_ft DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS get_factory RETURNING VALUE(rr_factory) TYPE REF TO zeml_text_labels_bo_ft . CLASS-METHODS set_factory IMPORTING !ir_factory TYPE REF TO zeml_text_labels_bo_ft . METHODS create_ca_text_labels_bo IMPORTING !is_data TYPE zeml_text_labels_bo=>gts_data RETURNING VALUE(ro_ca_text_labels_bo) TYPE REF TO zeml_text_labels_bo . PROTECTED SECTION. CLASS-DATA gr_factory TYPE REF TO zeml_text_labels_bo_ft. ENDCLASS. CLASS zeml_text_labels_bo_ft IMPLEMENTATION. METHOD create_ca_text_labels_bo. ro_ca_text_labels_bo = NEW #( ). ro_ca_text_labels_bo->gs_data = is_data. ENDMETHOD. METHOD get_factory. IF gr_factory IS NOT INITIAL. rr_factory = gr_factory. RETURN. ENDIF. rr_factory = NEW #( ). ENDMETHOD. METHOD set_factory. gr_factory = ir_factory. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 368, 75, 62, 5239, 62, 23912, 1424, 62, 2127, 62, 701, 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, 651, 62, 69, 9548, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 21062, 62, 69, 9548, 8, 41876, 4526, 37, 5390, 1976, 368, 75, 62, 5239, 62, 23912, 1424, 62, 2127, 62, 701, 764, 628, 220, 220, 220, 42715, 12, 49273, 50, 900, 62, 69, 9548, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 343, 62, 69, 9548, 41876, 4526, 37, 5390, 1976, 368, 75, 62, 5239, 62, 23912, 1424, 62, 2127, 62, 701, 764, 628, 220, 220, 220, 337, 36252, 50, 2251, 62, 6888, 62, 5239, 62, 23912, 1424, 62, 2127, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7890, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 1976, 368, 75, 62, 5239, 62, 23912, 1424, 62, 2127, 14804, 70, 912, 62, 7890, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 6888, 62, 5239, 62, 23912, 1424, 62, 2127, 8, 41876, 4526, 37, 5390, 1976, 368, 75, 62, 5239, 62, 23912, 1424, 62, 2127, 764, 628, 220, 48006, 9782, 1961, 44513, 13, 628, 220, 220, 220, 42715, 12, 26947, 1036, 62, 69, 9548, 41876, 4526, 37, 5390, 1976, 368, 75, 62, 5239, 62, 23912, 1424, 62, 2127, 62, 701, 13, 198, 198, 10619, 31631, 13, 198, 198, 31631, 1976, 368, 75, 62, 5239, 62, 23912, 1424, 62, 2127, 62, 701, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2251, 62, 6888, 62, 5239, 62, 23912, 1424, 62, 2127, 13, 628, 220, 220, 220, 686, 62, 6888, 62, 5239, 62, 23912, 1424, 62, 2127, 796, 12682, 1303, 7, 6739, 628, 220, 220, 220, 686, 62, 6888, 62, 5239, 62, 23912, 1424, 62, 2127, 3784, 14542, 62, 7890, 796, 318, 62, 7890, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 69, 9548, 13, 628, 220, 220, 220, 16876, 1036, 62, 69, 9548, 3180, 5626, 3268, 2043, 12576, 13, 628, 220, 220, 220, 220, 220, 374, 81, 62, 69, 9548, 796, 1036, 62, 69, 9548, 13, 628, 220, 220, 220, 220, 220, 30826, 27064, 13, 628, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 374, 81, 62, 69, 9548, 796, 12682, 1303, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 900, 62, 69, 9548, 13, 628, 220, 220, 220, 1036, 62, 69, 9548, 796, 4173, 62, 69, 9548, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_xml DEFINITION PUBLIC ABSTRACT CREATE PUBLIC . PUBLIC SECTION. METHODS: constructor IMPORTING iv_filename TYPE string OPTIONAL. PROTECTED SECTION. DATA: mi_ixml TYPE REF TO if_ixml, mi_xml_doc TYPE REF TO if_ixml_document, ms_metadata TYPE zif_abapgit_definitions=>ty_metadata, mv_filename TYPE string. CONSTANTS: c_abapgit_tag TYPE string VALUE 'abapGit' ##NO_TEXT, c_attr_version TYPE string VALUE 'version' ##NO_TEXT, c_attr_serializer TYPE string VALUE 'serializer' ##NO_TEXT, c_attr_serializer_version TYPE string VALUE 'serializer_version' ##NO_TEXT. METHODS to_xml IMPORTING iv_normalize TYPE abap_bool DEFAULT abap_true RETURNING VALUE(rv_xml) TYPE string. METHODS parse IMPORTING iv_xml TYPE string RAISING zcx_abapgit_exception. PRIVATE SECTION. METHODS error IMPORTING !ii_parser TYPE REF TO if_ixml_parser RAISING zcx_abapgit_exception . METHODS raise_version_mismatch IMPORTING !iv_vers TYPE string RAISING zcx_abapgit_exception . METHODS raise_exception_for IMPORTING !ii_error TYPE REF TO if_ixml_parse_error RAISING zcx_abapgit_exception . ENDCLASS. CLASS zcl_abapgit_xml IMPLEMENTATION. METHOD constructor. mi_ixml = cl_ixml=>create( ). mi_xml_doc = mi_ixml->create_document( ). mv_filename = iv_filename. ENDMETHOD. METHOD error. IF ii_parser->num_errors( ) <> 0. raise_exception_for( ii_parser->get_error( 0 ) ). ENDIF. IF mv_filename IS INITIAL. zcx_abapgit_exception=>raise( |Error while parsing XML| ). ELSE. zcx_abapgit_exception=>raise( |Error while parsing XML file { mv_filename }| ). ENDIF. ENDMETHOD. METHOD parse. DATA: li_stream_factory TYPE REF TO if_ixml_stream_factory, li_istream TYPE REF TO if_ixml_istream, li_element TYPE REF TO if_ixml_element, li_version TYPE REF TO if_ixml_node, li_parser TYPE REF TO if_ixml_parser. ASSERT NOT iv_xml IS INITIAL. li_stream_factory = mi_ixml->create_stream_factory( ). li_istream = li_stream_factory->create_istream_string( iv_xml ). li_parser = mi_ixml->create_parser( stream_factory = li_stream_factory istream = li_istream document = mi_xml_doc ). li_parser->add_strip_space_element( ). IF li_parser->parse( ) <> 0. error( li_parser ). ENDIF. li_istream->close( ). li_element = mi_xml_doc->find_from_name_ns( depth = 0 name = c_abapgit_tag ). li_version = li_element->if_ixml_node~get_attributes( )->get_named_item_ns( c_attr_version ). IF li_version->get_value( ) <> zif_abapgit_version=>c_xml_version. raise_version_mismatch( li_version->get_value( ) ). ENDIF. * buffer serializer metadata. Git node will be removed lateron ms_metadata-class = li_element->get_attribute_ns( c_attr_serializer ). ms_metadata-version = li_element->get_attribute_ns( c_attr_serializer_version ). ENDMETHOD. METHOD raise_exception_for. DATA lv_message TYPE string. lv_message = |XML parser error: { ii_error->get_reason( ) }, | && |Line { ii_error->get_line( ) } | && |Col. { ii_error->get_column( ) }|. IF mv_filename IS NOT INITIAL. lv_message = lv_message && | File { mv_filename }|. ENDIF. zcx_abapgit_exception=>raise( lv_message ). ENDMETHOD. METHOD raise_version_mismatch. DATA lv_text TYPE string. lv_text = |The XML versions do not match, expected: { zif_abapgit_version=>c_xml_version }, actual: { iv_vers }|. IF mv_filename IS NOT INITIAL. lv_text = lv_text && |, file: { mv_filename }|. ENDIF. lv_text = lv_text && | (see https://docs.abapgit.org/other-xml-mismatch.html)|. zcx_abapgit_exception=>raise( lv_text ). ENDMETHOD. METHOD to_xml. * will render to codepage UTF-16 DATA: li_ostream TYPE REF TO if_ixml_ostream, li_renderer TYPE REF TO if_ixml_renderer, lv_mark TYPE string, li_streamfactory TYPE REF TO if_ixml_stream_factory. li_streamfactory = mi_ixml->create_stream_factory( ). li_ostream = li_streamfactory->create_ostream_cstring( rv_xml ). li_renderer = mi_ixml->create_renderer( ostream = li_ostream document = mi_xml_doc ). li_renderer->set_normalizing( iv_normalize ). li_renderer->render( ). "unicode systems always add the byte order mark to the xml, while non-unicode does not "this code will always add the byte order mark if it is not in the xml lv_mark = zcl_abapgit_convert=>xstring_to_string_utf8( cl_abap_char_utilities=>byte_order_mark_utf8 ). IF rv_xml(1) <> lv_mark. CONCATENATE lv_mark rv_xml INTO rv_xml. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 19875, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 9564, 18601, 10659, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 34345, 41876, 4731, 39852, 2849, 1847, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 42865, 25, 21504, 62, 844, 4029, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21504, 62, 19875, 62, 15390, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 22897, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13845, 62, 38993, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 38993, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 285, 85, 62, 34345, 41876, 4731, 13, 628, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 269, 62, 397, 499, 18300, 62, 12985, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 397, 499, 38, 270, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 35226, 62, 9641, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 9641, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 35226, 62, 46911, 7509, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 46911, 7509, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 269, 62, 35226, 62, 46911, 7509, 62, 9641, 41876, 4731, 26173, 8924, 705, 46911, 7509, 62, 9641, 6, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 337, 36252, 50, 284, 62, 19875, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 11265, 1096, 220, 41876, 450, 499, 62, 30388, 5550, 38865, 450, 499, 62, 7942, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 81, 85, 62, 19875, 8, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 21136, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 19875, 41876, 4731, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 4049, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 48610, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 48610, 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, 5298, 62, 9641, 62, 76, 1042, 963, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 452, 62, 690, 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, 5298, 62, 1069, 4516, 62, 1640, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 4178, 62, 18224, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 29572, 62, 18224, 198, 220, 220, 220, 220, 220, 17926, 1797, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 19875, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 21504, 62, 844, 4029, 220, 220, 220, 220, 796, 537, 62, 844, 4029, 14804, 17953, 7, 6739, 198, 220, 220, 220, 21504, 62, 19875, 62, 15390, 220, 796, 21504, 62, 844, 4029, 3784, 17953, 62, 22897, 7, 6739, 198, 220, 220, 220, 285, 85, 62, 34345, 796, 21628, 62, 34345, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 4049, 13, 628, 220, 220, 220, 16876, 21065, 62, 48610, 3784, 22510, 62, 48277, 7, 1267, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 5298, 62, 1069, 4516, 62, 1640, 7, 21065, 62, 48610, 3784, 1136, 62, 18224, 7, 657, 1267, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 16876, 285, 85, 62, 34345, 3180, 3268, 2043, 12576, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 12331, 981, 32096, 23735, 91, 6739, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 1976, 66, 87, 62, 397, 499, 18300, 62, 1069, 4516, 14804, 40225, 7, 930, 12331, 981, 32096, 23735, 2393, 1391, 285, 85, 62, 34345, 1782, 91, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 21136, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 5532, 62, 69, 9548, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 5532, 62, 69, 9548, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 396, 1476, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 396, 1476, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 30854, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 611, 62, 844, 4029, 62, 30854, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7649, 62, 9641, 220, 220, 220, 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, 48610, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_swag_handler PUBLIC. METHODS meta RETURNING VALUE(rt_meta) TYPE zcl_swag=>ty_meta_tt. ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 2032, 363, 62, 30281, 198, 220, 44731, 13, 628, 220, 337, 36252, 50, 13634, 198, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 26173, 8924, 7, 17034, 62, 28961, 8, 41876, 1976, 565, 62, 2032, 363, 14804, 774, 62, 28961, 62, 926, 13, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS ycl_abapgit_syntax_check DEFINITION PUBLIC INHERITING FROM ycl_abapgit_code_inspector GLOBAL FRIENDS ycl_abapgit_factory. PROTECTED SECTION. METHODS: create_variant REDEFINITION. ENDCLASS. CLASS YCL_ABAPGIT_SYNTAX_CHECK IMPLEMENTATION. METHOD create_variant. DATA: lt_variant TYPE sci_tstvar, ls_variant LIKE LINE OF lt_variant. cl_ci_checkvariant=>create( EXPORTING p_user = sy-uname RECEIVING p_ref = ro_variant EXCEPTIONS chkv_already_exists = 1 locked = 2 error_in_enqueue = 3 not_authorized = 4 OTHERS = 5 ). ASSERT sy-subrc = 0. ls_variant-testname = 'CL_CI_TEST_SYNTAX_CHECK'. INSERT ls_variant INTO TABLE lt_variant. ro_variant->set_variant( EXPORTING p_variant = lt_variant EXCEPTIONS not_enqueued = 1 OTHERS = 2 ). ASSERT sy-subrc = 0. ENDMETHOD. ENDCLASS.
[ 31631, 331, 565, 62, 397, 499, 18300, 62, 1837, 41641, 62, 9122, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 331, 565, 62, 397, 499, 18300, 62, 8189, 62, 1040, 806, 273, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 331, 565, 62, 397, 499, 18300, 62, 69, 9548, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 2251, 62, 25641, 415, 23848, 36, 20032, 17941, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 575, 5097, 62, 6242, 2969, 38, 2043, 62, 23060, 45, 5603, 55, 62, 50084, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 2251, 62, 25641, 415, 13, 628, 220, 220, 220, 42865, 25, 300, 83, 62, 25641, 415, 41876, 20681, 62, 83, 301, 7785, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 25641, 415, 34178, 48920, 3963, 300, 83, 62, 25641, 415, 13, 628, 220, 220, 220, 537, 62, 979, 62, 9122, 25641, 415, 14804, 17953, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 7220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 827, 12, 403, 480, 198, 220, 220, 220, 220, 220, 19644, 36, 3824, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 5420, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 686, 62, 25641, 415, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 442, 74, 85, 62, 282, 1493, 62, 1069, 1023, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 8970, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 4049, 62, 259, 62, 268, 36560, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 407, 62, 19721, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 642, 6739, 198, 220, 220, 220, 24994, 17395, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 43979, 62, 25641, 415, 12, 9288, 3672, 796, 705, 5097, 62, 25690, 62, 51, 6465, 62, 23060, 45, 5603, 55, 62, 50084, 4458, 198, 220, 220, 220, 29194, 17395, 43979, 62, 25641, 415, 39319, 43679, 300, 83, 62, 25641, 415, 13, 628, 220, 220, 220, 686, 62, 25641, 415, 3784, 2617, 62, 25641, 415, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 279, 62, 25641, 415, 220, 220, 220, 796, 300, 83, 62, 25641, 415, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 407, 62, 268, 4188, 1739, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_trs_fac_fm DEFINITION PUBLIC FINAL CREATE PRIVATE GLOBAL FRIENDS zcl_trs_factory_facade. PUBLIC SECTION. INTERFACES: zif_trs_fm_access. PROTECTED SECTION. PRIVATE SECTION. DATA s_e071 TYPE e071. DATA t_e071 TYPE TABLE OF e071. DATA s_e071k TYPE e071k. DATA t_e071k TYPE TABLE OF e071k. DATA s_ko200 TYPE ko200. DATA order TYPE e071-trkorr. DATA task TYPE e071-trkorr. ENDCLASS. CLASS zcl_trs_fac_fm IMPLEMENTATION. METHOD zif_trs_fm_access~get_request. CALL FUNCTION 'TRINT_ORDER_CHOICE' EXPORTING wi_order_type = i_order_type " gewünschter Auftragstyp ('K','L',' ') wi_task_type = i_task_type " gewünschter Aufgabentyp ('S','R',' ') wi_category = i_category " gew. Auftr.kategorie ('CUST','CUSY','SYST') IMPORTING we_order = e_order " gewählter Auftrag we_task = e_task " gewählte Aufgabe TABLES wt_e071 = t_e071 " Zu bearbeitende Objekttabelle (bei Massenverarb) wt_e071k = t_e071k " Zu bearbeitende Key-Tabelle (bei Massenverarb.) EXCEPTIONS no_correction_selected = 1 display_mode = 2 object_append_error = 3 recursive_call = 4 wrong_order_type = 5 OTHERS = 6. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. me->order = e_order. me->task = e_task. ENDMETHOD. METHOD zif_trs_fm_access~check_transport. CALL FUNCTION 'TR_OBJECT_CHECK' EXPORTING wi_ko200 = ko200. me->s_ko200 = ko200. ENDMETHOD. METHOD zif_trs_fm_access~insert_key. CLEAR t_e071k. APPEND i_e071k TO t_e071k. CALL FUNCTION 'TR_OBJECT_INSERT' EXPORTING wi_order = me->task " vorgeschlagener Auftrag (Prio vor Auftragssuche) wi_ko200 = s_ko200 " Eingabe editiertes Objekt TABLES wt_e071k = t_e071k " Eingabetabelle editierter Objekt-keys EXCEPTIONS cancel_edit_other_error = 1 show_only_other_error = 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. ENDCLASS.
[ 31631, 1976, 565, 62, 2213, 82, 62, 38942, 62, 38353, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 25261, 198, 220, 29244, 6158, 4810, 3824, 6158, 198, 220, 10188, 9864, 1847, 48167, 1677, 5258, 1976, 565, 62, 2213, 82, 62, 69, 9548, 62, 38942, 671, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 23255, 37, 2246, 1546, 25, 1976, 361, 62, 2213, 82, 62, 38353, 62, 15526, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 42865, 264, 62, 68, 2998, 16, 41876, 304, 2998, 16, 13, 198, 220, 220, 220, 42865, 256, 62, 68, 2998, 16, 41876, 43679, 3963, 304, 2998, 16, 13, 198, 220, 220, 220, 42865, 264, 62, 68, 2998, 16, 74, 41876, 304, 2998, 16, 74, 13, 198, 220, 220, 220, 42865, 256, 62, 68, 2998, 16, 74, 41876, 43679, 3963, 304, 2998, 16, 74, 13, 198, 220, 220, 220, 42865, 264, 62, 7204, 2167, 41876, 41727, 2167, 13, 198, 220, 220, 220, 42865, 1502, 41876, 304, 2998, 16, 12, 2213, 74, 38890, 13, 198, 220, 220, 220, 42865, 4876, 41876, 304, 2998, 16, 12, 2213, 74, 38890, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 2213, 82, 62, 38942, 62, 38353, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 1976, 361, 62, 2213, 82, 62, 38353, 62, 15526, 93, 1136, 62, 25927, 13, 628, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 5446, 12394, 62, 12532, 1137, 62, 44899, 8476, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 45967, 62, 2875, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 2875, 62, 4906, 220, 220, 220, 366, 308, 413, 9116, 5907, 354, 353, 40666, 701, 22562, 301, 4464, 19203, 42, 41707, 43, 41707, 705, 8, 198, 220, 220, 220, 220, 220, 220, 220, 45967, 62, 35943, 62, 4906, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 35943, 62, 4906, 220, 220, 220, 366, 308, 413, 9116, 5907, 354, 353, 317, 3046, 70, 397, 3787, 79, 19203, 50, 41707, 49, 41707, 705, 8, 198, 220, 220, 220, 220, 220, 220, 220, 45967, 62, 22872, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 22872, 220, 220, 220, 366, 308, 413, 13, 40666, 701, 81, 13, 74, 2397, 19257, 19203, 34, 7759, 41707, 34, 2937, 56, 41707, 23060, 2257, 11537, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 356, 62, 2875, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 304, 62, 2875, 220, 220, 220, 366, 308, 413, 11033, 18519, 353, 40666, 701, 22562, 198, 220, 220, 220, 220, 220, 220, 220, 356, 62, 35943, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 304, 62, 35943, 220, 220, 220, 366, 308, 413, 11033, 18519, 660, 317, 3046, 70, 11231, 198, 220, 220, 220, 220, 220, 309, 6242, 28378, 198, 220, 220, 220, 220, 220, 220, 220, 266, 83, 62, 68, 2998, 16, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 256, 62, 68, 2998, 16, 220, 220, 220, 366, 1168, 84, 6842, 15357, 38396, 38764, 988, 926, 9608, 293, 357, 1350, 72, 5674, 268, 332, 38039, 8, 198, 220, 220, 220, 220, 220, 220, 220, 266, 83, 62, 68, 2998, 16, 74, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 256, 62, 68, 2998, 16, 74, 220, 220, 220, 366, 1168, 84, 6842, 15357, 38396, 7383, 12, 51, 9608, 293, 357, 1350, 72, 5674, 268, 332, 38039, 2014, 198, 220, 220, 220, 220, 220, 7788, 42006, 11053, 198, 220, 220, 220, 220, 220, 220, 220, 645, 62, 10215, 8243, 62, 34213, 796, 352, 198, 220, 220, 220, 220, 220, 220, 220, 3359, 62, 14171, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 362, 198, 220, 220, 220, 220, 220, 220, 220, 2134, 62, 33295, 62, 18224, 220, 220, 220, 796, 513, 198, 220, 220, 220, 220, 220, 220, 220, 45115, 62, 13345, 220, 220, 220, 220, 220, 220, 220, 220, 796, 604, 198, 220, 220, 220, 220, 220, 220, 220, 2642, 62, 2875, 62, 4906, 220, 220, 220, 220, 220, 220, 796, 642, 198, 220, 220, 220, 220, 220, 220, 220, 440, 4221, 4877, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 718, 13, 628, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 337, 1546, 4090, 8264, 4522, 827, 12, 19662, 312, 41876, 827, 12, 19662, 774, 36871, 13246, 827, 12, 19662, 3919, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 13315, 827, 12, 19662, 85, 16, 827, 12, 19662, 85, 17, 827, 12, 19662, 85, 18, 827, 12, 19662, 85, 19, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 502, 3784, 2875, 796, 304, 62, 2875, 13, 198, 220, 220, 220, 502, 3784, 35943, 220, 796, 304, 62, 35943, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 2213, 82, 62, 38353, 62, 15526, 93, 9122, 62, 7645, 634, 13, 198, 220, 220, 220, 42815, 29397, 4177, 2849, 705, 5446, 62, 9864, 23680, 62, 50084, 6, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 45967, 62, 7204, 2167, 796, 41727, 2167, 13, 628, 220, 220, 220, 502, 3784, 82, 62, 7204, 2167, 796, 41727, 2167, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1976, 361, 62, 2213, 82, 62, 38353, 62, 15526, 93, 28463, 62, 2539, 13, 628, 220, 220, 220, 30301, 1503, 256, 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 ]
REPORT zorion_examples. PARAMETERS: p_url TYPE text200 OBLIGATORY DEFAULT 'http://hanadb:8002', p_user TYPE text20 OBLIGATORY, p_passw TYPE text20 OBLIGATORY. PARAMETERS: p_create TYPE c RADIOBUTTON GROUP g1 DEFAULT 'X', p_listw TYPE c RADIOBUTTON GROUP g1, p_cwork TYPE c RADIOBUTTON GROUP g1, p_info TYPE c RADIOBUTTON GROUP g1. DATA: go_file TYPE REF TO zcl_orion_file, go_workspace TYPE REF TO zcl_orion_workspace, go_info TYPE REF TO zcl_orion_info. START-OF-SELECTION. PERFORM run. AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. IF screen-name = 'P_PASSW'. screen-invisible = '1'. MODIFY SCREEN. ENDIF. ENDLOOP. FORM run. PERFORM setup. IF p_create = abap_true. PERFORM create_file. ELSEIF p_listw = abap_true. PERFORM list_workspaces. ELSEIF p_cwork = abap_true. PERFORM create_workspace. ELSEIF p_info = abap_true. PERFORM info. ELSE. ASSERT 1 = 1 + 1. ENDIF. WRITE: / 'Done'(001). ENDFORM. FORM setup. DATA(lo_factory) = NEW zcl_orion_factory( iv_url = p_url iv_user = p_user iv_password = p_passw ). go_file = lo_factory->file( ). go_workspace = lo_factory->workspace( ). go_info = lo_factory->info( ). ENDFORM. FORM create_file. go_file->file_create( iv_path = 'foobar/' iv_name = 'asdf.txt' ) ##NO_TEXT. go_file->file_update( iv_path = 'foobar/asdf.txt' iv_data = 'Hello' ) ##NO_TEXT. ENDFORM. FORM list_workspaces. DATA(lt_list) = go_workspace->list( ). LOOP AT lt_list ASSIGNING FIELD-SYMBOL(<ls_list>). WRITE: / <ls_list>-name. WRITE: / <ls_list>-location. ENDLOOP. ENDFORM. FORM create_workspace. go_workspace->create( 'foobar' ). ENDFORM. FORM info. DATA(ls_info) = go_info->get( ). LOOP AT ls_info-commands ASSIGNING FIELD-SYMBOL(<ls_command>). WRITE: / <ls_command>-name. ENDLOOP. ENDFORM.
[ 2200, 15490, 1976, 273, 295, 62, 1069, 12629, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 6371, 220, 220, 41876, 2420, 2167, 440, 9148, 3528, 1404, 15513, 5550, 38865, 705, 4023, 1378, 7637, 324, 65, 25, 7410, 17, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 7220, 220, 41876, 2420, 1238, 440, 9148, 3528, 1404, 15513, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 6603, 86, 41876, 2420, 1238, 440, 9148, 3528, 1404, 15513, 13, 198, 198, 27082, 2390, 2767, 4877, 25, 279, 62, 17953, 41876, 269, 33540, 9399, 47526, 11357, 44441, 308, 16, 5550, 38865, 705, 55, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 4868, 86, 220, 41876, 269, 33540, 9399, 47526, 11357, 44441, 308, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 66, 1818, 220, 41876, 269, 33540, 9399, 47526, 11357, 44441, 308, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 279, 62, 10951, 220, 220, 41876, 269, 33540, 9399, 47526, 11357, 44441, 308, 16, 13, 198, 198, 26947, 25, 467, 62, 7753, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 273, 295, 62, 7753, 11, 198, 220, 220, 220, 220, 220, 467, 62, 5225, 10223, 41876, 4526, 37, 5390, 1976, 565, 62, 273, 295, 62, 5225, 10223, 11, 198, 220, 220, 220, 220, 220, 467, 62, 10951, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 273, 295, 62, 10951, 13, 198, 198, 2257, 7227, 12, 19238, 12, 46506, 2849, 13, 198, 220, 19878, 21389, 1057, 13, 198, 198, 1404, 33493, 2849, 12, 6173, 2200, 1677, 16289, 30076, 13, 198, 220, 17579, 3185, 5161, 6374, 2200, 1677, 13, 198, 220, 220, 220, 16876, 3159, 12, 3672, 796, 705, 47, 62, 47924, 54, 4458, 198, 220, 220, 220, 220, 220, 3159, 12, 259, 23504, 796, 705, 16, 4458, 198, 220, 220, 220, 220, 220, 19164, 5064, 56, 6374, 2200, 1677, 13, 198, 220, 220, 220, 23578, 5064, 13, 198, 220, 23578, 21982, 3185, 13, 198, 198, 21389, 1057, 13, 628, 220, 19878, 21389, 9058, 13, 628, 220, 16876, 279, 62, 17953, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 19878, 21389, 2251, 62, 7753, 13, 198, 220, 17852, 5188, 5064, 279, 62, 4868, 86, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 19878, 21389, 1351, 62, 5225, 43076, 13, 198, 220, 17852, 5188, 5064, 279, 62, 66, 1818, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 19878, 21389, 2251, 62, 5225, 10223, 13, 198, 220, 17852, 5188, 5064, 279, 62, 10951, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 19878, 21389, 7508, 13, 198, 220, 17852, 5188, 13, 198, 220, 220, 220, 24994, 17395, 352, 796, 352, 1343, 352, 13, 198, 220, 23578, 5064, 13, 628, 220, 44423, 25, 1220, 705, 45677, 6, 7, 8298, 737, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 9058, 13, 628, 220, 42865, 7, 5439, 62, 69, 9548, 8, 796, 12682, 1976, 565, 62, 273, 295, 62, 69, 9548, 7, 21628, 62, 6371, 220, 220, 220, 220, 220, 796, 279, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 7220, 220, 220, 220, 220, 796, 279, 62, 7220, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 28712, 796, 279, 62, 6603, 86, 6739, 198, 220, 467, 62, 7753, 796, 2376, 62, 69, 9548, 3784, 7753, 7, 6739, 198, 220, 467, 62, 5225, 10223, 796, 2376, 62, 69, 9548, 3784, 5225, 10223, 7, 6739, 198, 220, 467, 62, 10951, 796, 2376, 62, 69, 9548, 3784, 10951, 7, 6739, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 2251, 62, 7753, 13, 628, 220, 467, 62, 7753, 3784, 7753, 62, 17953, 7, 198, 220, 220, 220, 220, 220, 21628, 62, 6978, 796, 705, 6513, 30973, 14, 6, 198, 220, 220, 220, 220, 220, 21628, 62, 3672, 796, 705, 292, 7568, 13, 14116, 6, 1267, 22492, 15285, 62, 32541, 13, 628, 220, 467, 62, 7753, 3784, 7753, 62, 19119, 7, 21628, 62, 6978, 796, 705, 6513, 30973, 14, 292, 7568, 13, 14116, 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, 21628, 62, 7890, 796, 705, 15496, 6, 1267, 22492, 15285, 62, 32541, 13, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 1351, 62, 5225, 43076, 13, 628, 220, 42865, 7, 2528, 62, 4868, 8, 796, 467, 62, 5225, 10223, 3784, 4868, 7, 6739, 628, 220, 17579, 3185, 5161, 300, 83, 62, 4868, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 4868, 29, 737, 198, 220, 220, 220, 44423, 25, 1220, 1279, 7278, 62, 4868, 29, 12, 3672, 13, 198, 220, 220, 220, 44423, 25, 1220, 1279, 7278, 62, 4868, 29, 12, 24886, 13, 198, 220, 23578, 21982, 3185, 13, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 2251, 62, 5225, 10223, 13, 628, 220, 467, 62, 5225, 10223, 3784, 17953, 7, 705, 6513, 30973, 6, 6739, 198, 198, 1677, 8068, 1581, 44, 13, 198, 198, 21389, 7508, 13, 628, 220, 42865, 7, 7278, 62, 10951, 8, 796, 467, 62, 10951, 3784, 1136, 7, 6739, 628, 220, 17579, 3185, 5161, 43979, 62, 10951, 12, 9503, 1746, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 21812, 29, 737, 198, 220, 220, 220, 44423, 25, 1220, 1279, 7278, 62, 21812, 29, 12, 3672, 13, 198, 220, 23578, 21982, 3185, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 for handling travel messages * ********************************************************************** CLASS lcl_message_helper DEFINITION CREATE PRIVATE. PUBLIC SECTION. TYPES tt_travel_failed TYPE TABLE FOR FAILED /dmo/i_travel_u27. TYPES tt_travel_reported TYPE TABLE FOR REPORTED /dmo/i_travel_u27. CLASS-METHODS handle_travel_messages IMPORTING iv_cid TYPE string OPTIONAL iv_travel_id TYPE /dmo/travel_id27 OPTIONAL it_messages TYPE /dmo/if_flight_legacy27=>tt_message CHANGING failed TYPE tt_travel_failed reported TYPE tt_travel_reported. ENDCLASS. CLASS lcl_message_helper IMPLEMENTATION. METHOD handle_travel_messages. LOOP AT it_messages INTO DATA(ls_message) WHERE msgty = 'E' OR msgty = 'A'. INSERT VALUE #( %cid = iv_cid travelid = iv_travel_id ) INTO TABLE failed. INSERT /dmo/cl_travel_auxiliary27=>map_travel_message( iv_travel_id = iv_travel_id is_message = ls_message ) INTO TABLE reported. ENDLOOP. ENDMETHOD. ENDCLASS. ********************************************************************** * * Handler class for managing travels * ********************************************************************** CLASS lhc_travel DEFINITION INHERITING FROM cl_abap_behavior_handler. PRIVATE SECTION. METHODS: create_travel FOR MODIFY IMPORTING it_travel_create FOR CREATE travel, update_travel FOR MODIFY IMPORTING it_travel_update FOR UPDATE travel, delete_travel FOR MODIFY IMPORTING it_travel_delete FOR DELETE travel, read_travel FOR READ IMPORTING it_travel FOR READ travel RESULT et_travel, set_travel_status FOR MODIFY IMPORTING it_travel_set_status_booked FOR ACTION travel~set_status_booked RESULT et_travel_set_status_booked, cba_booking FOR MODIFY IMPORTING it_booking_create_ba FOR CREATE travel\_booking. ENDCLASS. CLASS lhc_travel IMPLEMENTATION. ********************************************************************** * * Create travel instances * ********************************************************************** METHOD create_travel. DATA lt_messages TYPE /dmo/if_flight_legacy27=>tt_message. DATA ls_travel_in TYPE /dmo/if_flight_legacy27=>ts_travel_in. DATA ls_travel_out TYPE /dmo/travel27. LOOP AT it_travel_create ASSIGNING FIELD-SYMBOL(<fs_travel_create>). CLEAR ls_travel_in. ls_travel_in = CORRESPONDING #( /dmo/cl_travel_auxiliary27=>map_travel_cds_to_db( CORRESPONDING #( <fs_travel_create> ) ) ). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_CREATE27' EXPORTING is_travel = ls_travel_in IMPORTING es_travel = ls_travel_out et_messages = lt_messages. IF lt_messages IS INITIAL. INSERT VALUE #( %cid = <fs_travel_create>-%cid travelid = ls_travel_out-travel_id ) INTO TABLE mapped-travel. ELSE. lcl_message_helper=>handle_travel_messages( EXPORTING iv_cid = <fs_travel_create>-%cid it_messages = lt_messages CHANGING failed = failed-travel reported = reported-travel ). ENDIF. ENDLOOP. ENDMETHOD. ********************************************************************** * * Update data of existing travel instances * ********************************************************************** METHOD update_travel. DATA lt_messages TYPE /dmo/if_flight_legacy27=>tt_message. DATA ls_travel TYPE /dmo/if_flight_legacy27=>ts_travel_in. DATA ls_travelx TYPE /dmo/if_flight_legacy27=>ts_travel_inx. "refers to x structure (> BAPIs) LOOP AT it_travel_update ASSIGNING FIELD-SYMBOL(<fs_travel_update>). CLEAR ls_travel. ls_travel = CORRESPONDING #( /dmo/cl_travel_auxiliary27=>map_travel_cds_to_db( CORRESPONDING #( <fs_travel_update> ) ) ). IF <fs_travel_update>-travelid IS INITIAL OR <fs_travel_update>-travelid = ''. ls_travel-travel_id = mapped-travel[ %cid = <fs_travel_update>-%cid_ref ]-travelid. ENDIF. ls_travelx-travel_id = ls_travel-travel_id. ls_travelx-agency_id = xsdbool( <fs_travel_update>-%control-agencyid = cl_abap_behv=>flag_changed ). ls_travelx-customer_id = xsdbool( <fs_travel_update>-%control-customerid = cl_abap_behv=>flag_changed ). ls_travelx-begin_date = xsdbool( <fs_travel_update>-%control-begindate = cl_abap_behv=>flag_changed ). ls_travelx-end_date = xsdbool( <fs_travel_update>-%control-enddate = cl_abap_behv=>flag_changed ). ls_travelx-booking_fee = xsdbool( <fs_travel_update>-%control-bookingfee = cl_abap_behv=>flag_changed ). ls_travelx-total_price = xsdbool( <fs_travel_update>-%control-totalprice = cl_abap_behv=>flag_changed ). ls_travelx-currency_code = xsdbool( <fs_travel_update>-%control-currencycode = cl_abap_behv=>flag_changed ). ls_travelx-description = xsdbool( <fs_travel_update>-%control-memo = cl_abap_behv=>flag_changed ). ls_travelx-status = xsdbool( <fs_travel_update>-%control-status = cl_abap_behv=>flag_changed ). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE27' EXPORTING is_travel = ls_travel is_travelx = ls_travelx IMPORTING et_messages = lt_messages. lcl_message_helper=>handle_travel_messages( EXPORTING iv_cid = <fs_travel_update>-%cid_ref iv_travel_id = <fs_travel_update>-travelid it_messages = lt_messages CHANGING failed = failed-travel reported = reported-travel ). ENDLOOP. ENDMETHOD. ********************************************************************** * * Delete of travel instances * ********************************************************************** METHOD delete_travel. DATA lt_messages TYPE /dmo/if_flight_legacy27=>tt_message. DATA ls_travel TYPE /dmo/if_flight_legacy27=>ts_travel_key. LOOP AT it_travel_delete ASSIGNING FIELD-SYMBOL(<fs_travel_delete>). IF <fs_travel_delete>-travelid IS INITIAL OR <fs_travel_delete>-travelid = ''. ls_travel-travel_id = mapped-travel[ %cid = <fs_travel_delete>-%cid_ref ]-travelid. ELSE. ls_travel-travel_id = <fs_travel_delete>-travelid. ENDIF. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_DELETE27' EXPORTING iv_travel_id = ls_travel-travel_id IMPORTING et_messages = lt_messages. lcl_message_helper=>handle_travel_messages( EXPORTING iv_cid = <fs_travel_delete>-%cid_ref iv_travel_id = ls_travel-travel_id it_messages = lt_messages CHANGING failed = failed-travel reported = reported-travel ). ENDLOOP. ENDMETHOD. ********************************************************************** * * Read travel data from buffer * ********************************************************************** METHOD read_travel. DATA: ls_travel_out TYPE /dmo/travel27. LOOP AT it_travel INTO DATA(ls_travel_to_read). CALL FUNCTION '/DMO/FLIGHT_TRAVEL_READ27' EXPORTING iv_travel_id = ls_travel_to_read-travelid IMPORTING es_travel = ls_travel_out. INSERT VALUE #( travelid = ls_travel_to_read-travelid agencyid = ls_travel_out-agency_id customerid = ls_travel_out-customer_id begindate = ls_travel_out-begin_date enddate = ls_travel_out-end_date bookingfee = ls_travel_out-booking_fee totalprice = ls_travel_out-total_price currencycode = ls_travel_out-currency_code memo = ls_travel_out-description status = ls_travel_out-status lastchangedat = ls_travel_out-lastchangedat ) INTO TABLE et_travel. ENDLOOP. ENDMETHOD. ********************************************************************** * * Implement travel action(s) (in our case: for setting travel status) * ********************************************************************** METHOD set_travel_status. DATA lt_messages TYPE /dmo/if_flight_legacy27=>tt_message. DATA ls_travel_out TYPE /dmo/travel27. CLEAR et_travel_set_status_booked. LOOP AT it_travel_set_status_booked ASSIGNING FIELD-SYMBOL(<fs_travel_set_status_booked>). DATA(lv_travelid) = <fs_travel_set_status_booked>-travelid. IF lv_travelid IS INITIAL OR lv_travelid = ''. lv_travelid = mapped-travel[ %cid = <fs_travel_set_status_booked>-%cid_ref ]-travelid. ENDIF. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_SET_BOOK_27' EXPORTING iv_travel_id = lv_travelid IMPORTING et_messages = lt_messages. IF lt_messages IS INITIAL. APPEND VALUE #( travelid = lv_travelid %param-travelid = lv_travelid ) TO et_travel_set_status_booked. ELSE. lcl_message_helper=>handle_travel_messages( EXPORTING iv_cid = <fs_travel_set_status_booked>-%cid_ref iv_travel_id = lv_travelid it_messages = lt_messages CHANGING failed = failed-travel reported = reported-travel ). ENDIF. ENDLOOP. ENDMETHOD. ********************************************************************** * * Create associated booking instances * ********************************************************************** METHOD cba_booking. DATA lt_messages TYPE /dmo/if_flight_legacy27=>tt_message. DATA lt_booking_old TYPE /dmo/if_flight_legacy27=>tt_booking. DATA ls_booking TYPE LINE OF /dmo/if_flight_legacy27=>tt_booking_in. DATA lv_last_booking_id TYPE /dmo/booking_id27 VALUE '0'. LOOP AT it_booking_create_ba ASSIGNING FIELD-SYMBOL(<fs_booking_create_ba>). DATA(lv_travelid) = <fs_booking_create_ba>-travelid. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_READ27' EXPORTING iv_travel_id = lv_travelid IMPORTING et_booking = lt_booking_old et_messages = lt_messages. IF lt_messages IS INITIAL. IF lt_booking_old IS NOT INITIAL. lv_last_booking_id = lt_booking_old[ lines( lt_booking_old ) ]-booking_id. ENDIF. LOOP AT <fs_booking_create_ba>-%target ASSIGNING FIELD-SYMBOL(<fs_booking_create>). ls_booking = /dmo/cl_travel_auxiliary27=>map_booking_cds_to_db( CORRESPONDING #( <fs_booking_create> ) ). lv_last_booking_id += 1. ls_booking-booking_id = lv_last_booking_id. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_UPDATE27' EXPORTING is_travel = VALUE /dmo/if_flight_legacy27=>ts_travel_in( travel_id = lv_travelid ) is_travelx = VALUE /dmo/if_flight_legacy27=>ts_travel_inx( travel_id = lv_travelid ) it_booking = VALUE /dmo/if_flight_legacy27=>tt_booking_in( ( ls_booking ) ) it_bookingx = VALUE /dmo/if_flight_legacy27=>tt_booking_inx( ( booking_id = ls_booking-booking_id action_code = /dmo/if_flight_legacy27=>action_code-create ) ) IMPORTING et_messages = lt_messages. IF lt_messages IS INITIAL. INSERT VALUE #( %cid = <fs_booking_create>-%cid travelid = lv_travelid bookingid = ls_booking-booking_id ) INTO TABLE mapped-booking. ELSE. LOOP AT lt_messages INTO DATA(ls_message) WHERE msgty = 'E' OR msgty = 'A'. INSERT VALUE #( %cid = <fs_booking_create>-%cid ) INTO TABLE failed-booking. INSERT /dmo/cl_travel_auxiliary27=>map_booking_message( iv_cid = <fs_booking_create>-%cid is_message = ls_message ) INTO TABLE reported-booking. ENDLOOP. ENDIF. ENDLOOP. ELSE. lcl_message_helper=>handle_travel_messages( EXPORTING iv_cid = <fs_booking_create_ba>-%cid_ref iv_travel_id = lv_travelid it_messages = lt_messages CHANGING failed = failed-travel reported = reported-travel ). ENDIF. ENDLOOP. ENDMETHOD. ENDCLASS. ********************************************************************** * * Saver class implements the save sequence for data persistence * ********************************************************************** CLASS lsc_saver DEFINITION INHERITING FROM cl_abap_behavior_saver. PROTECTED SECTION. METHODS finalize REDEFINITION. METHODS check_before_save REDEFINITION. METHODS save REDEFINITION. METHODS cleanup REDEFINITION. ENDCLASS. CLASS lsc_saver IMPLEMENTATION. METHOD finalize. ENDMETHOD. METHOD check_before_save. ENDMETHOD. METHOD save. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_SAVE27'. ENDMETHOD. METHOD cleanup. CALL FUNCTION '/DMO/FLIGHT_TRAVEL_INITIALI_27'. ENDMETHOD. ENDCLASS.
[ 17174, 17174, 2466, 1174, 198, 9, 198, 9, 10714, 1398, 329, 9041, 3067, 6218, 198, 9, 198, 17174, 17174, 2466, 1174, 198, 31631, 300, 565, 62, 20500, 62, 2978, 525, 5550, 20032, 17941, 29244, 6158, 4810, 3824, 6158, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 35927, 62, 47904, 220, 220, 220, 220, 220, 41876, 43679, 7473, 9677, 4146, 1961, 220, 220, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 1983, 13, 198, 220, 220, 220, 24412, 47, 1546, 256, 83, 62, 35927, 62, 26263, 220, 220, 220, 41876, 43679, 7473, 39099, 1961, 1220, 67, 5908, 14, 72, 62, 35927, 62, 84, 1983, 13, 628, 220, 220, 220, 42715, 12, 49273, 50, 5412, 62, 35927, 62, 37348, 1095, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 21628, 62, 66, 312, 220, 220, 220, 220, 220, 220, 41876, 4731, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 35927, 62, 312, 41876, 1220, 67, 5908, 14, 35927, 62, 312, 1983, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 37348, 1095, 220, 41876, 1220, 67, 5908, 14, 361, 62, 22560, 62, 1455, 1590, 1983, 14804, 926, 62, 20500, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 220, 4054, 220, 220, 220, 220, 220, 220, 41876, 256, 83, 62, 35927, 62, 47904, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2098, 220, 220, 220, 220, 41876, 256, 83, 62, 35927, 62, 26263, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 565, 62, 20500, 62, 2978, 525, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 5412, 62, 35927, 62, 37348, 1095, 13, 198, 220, 220, 220, 17579, 3185, 5161, 340, 62, 37348, 1095, 39319, 42865, 7, 7278, 62, 20500, 8, 33411, 31456, 774, 796, 705, 36, 6, 6375, 31456, 774, 796, 705, 32, 4458, 198, 220, 220, 220, 220, 220, 29194, 17395, 26173, 8924, 1303, 7, 4064, 66, 312, 796, 21628, 62, 66, 312, 220, 3067, 312, 796, 21628, 62, 35927, 62, 312, 1267, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 43679, 4054, 13, 198, 220, 220, 220, 220, 220, 29194, 17395, 1220, 67, 5908, 14, 565, 62, 35927, 62, 14644, 28129, 1983, 14804, 8899, 62, 35927, 62, 20500, 7, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 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, 318, 62, 20500, 220, 220, 796, 43979, 62, 20500, 1267, 39319, 43679, 2098, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 628, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 198, 198, 17174, 17174, 2466, 1174, 198, 9, 198, 9, 32412, 1398, 329, 11149, 17781, 198, 9, 198, 17174, 17174, 2466, 1174, 198, 31631, 300, 71, 66, 62, 35927, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 537, 62, 397, 499, 62, 46571, 62, 30281, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 220, 220, 2251, 62, 35927, 220, 220, 220, 220, 7473, 19164, 5064, 56, 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, 30023, 9863, 2751, 340, 62, 35927, 62, 17953, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 29244, 6158, 3067, 11, 198, 220, 220, 220, 220, 220, 220, 220, 4296, 62, 35927, 220, 220, 220, 220, 7473, 19164, 5064, 56, 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, 30023, 9863, 2751, 340, 62, 35927, 62, 19119, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 35717, 3067, 11, 198, 220, 220, 220, 220, 220, 220, 220, 12233, 62, 35927, 220, 220, 220, 220, 7473, 19164, 5064, 56, 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, 30023, 9863, 2751, 340, 62, 35927, 62, 33678, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 5550, 2538, 9328, 3067, 11, 198, 220, 220, 220, 220, 220, 220, 220, 1100, 62, 35927, 220, 220, 220, 220, 220, 220, 7473, 20832, 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, 30023, 9863, 2751, 340, 62, 35927, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 20832, 3067, 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, 15731, 16724, 2123, 62, 35927, 11, 198, 220, 220, 220, 220, 220, 220, 220, 900, 62, 35927, 62, 13376, 7473, 19164, 5064, 56, 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, 30023, 9863, 2751, 340, 62, 35927, 62, 2617, 62, 13376, 62, 2070, 276, 220, 220, 220, 7473, 40282, 3067, 93, 2617, 62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1, 1, 1, 1, 1, 1 ]
INTERFACE zif_gtt_mia_ae_types PUBLIC . TYPES ts_trackingheader TYPE /saptrx/bapi_evm_header . TYPES: tt_trackingheader TYPE STANDARD TABLE OF ts_trackingheader . TYPES ts_tracklocation TYPE /saptrx/bapi_evm_locationid . TYPES: tt_tracklocation TYPE STANDARD TABLE OF ts_tracklocation . TYPES ts_trackreferences TYPE /saptrx/bapi_evm_reference . TYPES: tt_trackreferences TYPE STANDARD TABLE OF ts_trackreferences . TYPES ts_trackparameters TYPE /saptrx/bapi_evm_parameters . TYPES: tt_trackparameters TYPE STANDARD TABLE OF ts_trackparameters . ENDINTERFACE.
[ 41358, 49836, 1976, 361, 62, 70, 926, 62, 20730, 62, 3609, 62, 19199, 198, 220, 44731, 764, 628, 198, 220, 24412, 47, 1546, 40379, 62, 36280, 25677, 41876, 1220, 82, 2373, 40914, 14, 65, 15042, 62, 1990, 76, 62, 25677, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 256, 83, 62, 36280, 25677, 41876, 49053, 9795, 43679, 3963, 40379, 62, 36280, 25677, 764, 198, 220, 24412, 47, 1546, 40379, 62, 11659, 24886, 41876, 1220, 82, 2373, 40914, 14, 65, 15042, 62, 1990, 76, 62, 24886, 312, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 256, 83, 62, 11659, 24886, 41876, 49053, 9795, 43679, 3963, 40379, 62, 11659, 24886, 764, 198, 220, 24412, 47, 1546, 40379, 62, 11659, 5420, 4972, 41876, 1220, 82, 2373, 40914, 14, 65, 15042, 62, 1990, 76, 62, 35790, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 256, 83, 62, 11659, 5420, 4972, 41876, 49053, 9795, 43679, 3963, 40379, 62, 11659, 5420, 4972, 764, 198, 220, 24412, 47, 1546, 40379, 62, 11659, 17143, 7307, 41876, 1220, 82, 2373, 40914, 14, 65, 15042, 62, 1990, 76, 62, 17143, 7307, 764, 198, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 256, 83, 62, 11659, 17143, 7307, 41876, 49053, 9795, 43679, 3963, 40379, 62, 11659, 17143, 7307, 764, 198, 10619, 41358, 49836, 13, 198 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_gui_page_merge DEFINITION PUBLIC INHERITING FROM zcl_abapgit_gui_page FINAL CREATE PUBLIC . PUBLIC SECTION. METHODS constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo_online iv_source TYPE string iv_target TYPE string RAISING zcx_abapgit_exception . METHODS zif_abapgit_gui_event_handler~on_event REDEFINITION. PROTECTED SECTION. METHODS render_content REDEFINITION. PRIVATE SECTION. DATA mo_repo TYPE REF TO zcl_abapgit_repo_online . DATA mo_merge TYPE REF TO zcl_abapgit_merge . CONSTANTS: BEGIN OF c_actions, merge TYPE string VALUE 'merge' ##NO_TEXT, res_conflicts TYPE string VALUE 'res_conflicts' ##NO_TEXT, END OF c_actions . METHODS show_file IMPORTING !it_expanded TYPE zif_abapgit_definitions=>ty_expanded_tt !io_html TYPE REF TO zcl_abapgit_html !is_file TYPE zif_abapgit_definitions=>ty_expanded !is_result TYPE zif_abapgit_definitions=>ty_expanded . METHODS build_menu IMPORTING VALUE(iv_with_conflict) TYPE abap_bool OPTIONAL RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar . ENDCLASS. CLASS ZCL_ABAPGIT_GUI_PAGE_MERGE IMPLEMENTATION. METHOD build_menu. CREATE OBJECT ro_menu. ro_menu->add( iv_txt = 'Merge' iv_act = c_actions-merge iv_cur = abap_false ) ##NO_TEXT. IF iv_with_conflict = abap_true. ro_menu->add( iv_txt = 'Resolve Conflicts' iv_act = c_actions-res_conflicts ) ##NO_TEXT. ENDIF. ENDMETHOD. METHOD constructor. super->constructor( ). mo_repo = io_repo. io_repo->set_branch_name( |refs/heads/{ iv_target }| ). CREATE OBJECT mo_merge EXPORTING io_repo = io_repo iv_source_branch = iv_source. mo_merge->run( ). ms_control-page_title = 'MERGE'. ms_control-page_menu = build_menu( mo_merge->has_conflicts( ) ). ENDMETHOD. METHOD render_content. DATA: ls_merge TYPE zif_abapgit_definitions=>ty_merge, lt_files LIKE ls_merge-stree, ls_result LIKE LINE OF ls_merge-result. FIELD-SYMBOLS: <ls_file> LIKE LINE OF lt_files. ls_merge = mo_merge->get_result( ). "If now exists no conflicts anymore, conflicts button should disappear ms_control-page_menu = build_menu( mo_merge->has_conflicts( ) ). CREATE OBJECT ro_html. ro_html->add( '<div id="toc">' ). ro_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( io_repo = mo_repo iv_show_package = abap_false iv_show_branch = abap_false ) ). ro_html->add( '<table>' ). ro_html->add( '<tr>' ). ro_html->add( '<td>Source</td>' ). ro_html->add( '<td>' ). ro_html->add( ls_merge-source-name ). ro_html->add( '</td></tr>' ). ro_html->add( '<tr>' ). ro_html->add( '<td>Target</td>' ). ro_html->add( '<td>' ). ro_html->add( ls_merge-target-name ). ro_html->add( '</td></tr>' ). ro_html->add( '<tr>' ). ro_html->add( '<td>Ancestor</td>' ). ro_html->add( '<td>' ). ro_html->add( ls_merge-common-commit ). ro_html->add( '</td></tr>' ). ro_html->add( '</table>' ). ro_html->add( '<br>' ). APPEND LINES OF ls_merge-stree TO lt_files. APPEND LINES OF ls_merge-ttree TO lt_files. APPEND LINES OF ls_merge-ctree TO lt_files. SORT lt_files BY path DESCENDING name ASCENDING. DELETE ADJACENT DUPLICATES FROM lt_files COMPARING path name. ro_html->add( '<table>' ). ro_html->add( '<tr>' ). ro_html->add( '<td><u>Source</u></td>' ). ro_html->add( '<td></td>' ). ro_html->add( '<td><u>Target</u></td>' ). ro_html->add( '<td></td>' ). ro_html->add( '<td><u>Ancestor</u></td>' ). ro_html->add( '<td></td>' ). ro_html->add( '<td><u>Result</u></td>' ). ro_html->add( '<td></td>' ). ro_html->add( '</tr>' ). LOOP AT lt_files ASSIGNING <ls_file>. CLEAR ls_result. READ TABLE ls_merge-result INTO ls_result WITH KEY path = <ls_file>-path name = <ls_file>-name. ro_html->add( '<tr>' ). show_file( it_expanded = ls_merge-stree io_html = ro_html is_file = <ls_file> is_result = ls_result ). show_file( it_expanded = ls_merge-ttree io_html = ro_html is_file = <ls_file> is_result = ls_result ). show_file( it_expanded = ls_merge-ctree io_html = ro_html is_file = <ls_file> is_result = ls_result ). show_file( it_expanded = ls_merge-result io_html = ro_html is_file = <ls_file> is_result = ls_result ). ro_html->add( '</tr>' ). ENDLOOP. ro_html->add( '</table>' ). ro_html->add( '<br>' ). ro_html->add( '<b>' ). ro_html->add( ls_merge-conflict ). ro_html->add( '</b>' ). ro_html->add( '</div>' ). ENDMETHOD. METHOD show_file. FIELD-SYMBOLS: <ls_show> LIKE LINE OF it_expanded. READ TABLE it_expanded ASSIGNING <ls_show> WITH KEY path = is_file-path name = is_file-name. IF sy-subrc = 0. IF <ls_show>-sha1 = is_result-sha1. io_html->add( |<td>{ <ls_show>-path }{ <ls_show>-name }</td><td><b>{ <ls_show>-sha1(7) }</b></td>| ). ELSE. io_html->add( |<td>{ <ls_show>-path }{ <ls_show>-name }</td><td>{ <ls_show>-sha1(7) }</td>| ). ENDIF. ELSE. io_html->add( '<td></td><td></td>' ). ENDIF. ENDMETHOD. METHOD zif_abapgit_gui_event_handler~on_event. CASE iv_action. WHEN c_actions-merge. IF mo_merge->has_conflicts( ) = abap_true. zcx_abapgit_exception=>raise( 'conflicts exists' ). ENDIF. IF mo_merge->get_result( )-stage->count( ) = 0. zcx_abapgit_exception=>raise( 'nothing to merge' ). ENDIF. IF mo_repo->get_local_settings( )-code_inspector_check_variant IS NOT INITIAL. CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_code_insp EXPORTING io_repo = mo_repo io_stage = mo_merge->get_result( )-stage. ELSE. CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_commit EXPORTING io_repo = mo_repo io_stage = mo_merge->get_result( )-stage. ENDIF. ev_state = zcl_abapgit_gui=>c_event_state-new_page. WHEN c_actions-res_conflicts. CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_merge_res EXPORTING io_repo = mo_repo io_merge_page = me io_merge = mo_merge. ev_state = zcl_abapgit_gui=>c_event_state-new_page. WHEN OTHERS. super->zif_abapgit_gui_event_handler~on_event( EXPORTING iv_action = iv_action iv_getdata = iv_getdata it_postdata = it_postdata IMPORTING ei_page = ei_page ev_state = ev_state ). ENDCASE. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 647, 469, 5550, 20032, 17941, 198, 220, 44731, 198, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 198, 220, 25261, 198, 220, 29244, 6158, 44731, 764, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 23772, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 260, 7501, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 62, 25119, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 10459, 41876, 4731, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16793, 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, 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, 13, 198, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 8543, 62, 11299, 23848, 36, 20032, 17941, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 628, 220, 220, 220, 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, 647, 469, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 647, 469, 764, 198, 220, 220, 220, 7102, 2257, 1565, 4694, 25, 198, 220, 220, 220, 220, 220, 347, 43312, 3963, 269, 62, 4658, 11, 198, 220, 220, 220, 220, 220, 220, 220, 20121, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 26173, 8924, 705, 647, 469, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 220, 220, 581, 62, 10414, 42267, 41876, 4731, 26173, 8924, 705, 411, 62, 10414, 42267, 6, 22492, 15285, 62, 32541, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 269, 62, 4658, 764, 628, 220, 220, 220, 337, 36252, 50, 905, 62, 7753, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 270, 62, 11201, 12249, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 11201, 12249, 62, 926, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 952, 62, 6494, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 7753, 220, 220, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 11201, 12249, 198, 220, 220, 220, 220, 220, 220, 220, 5145, 271, 62, 20274, 220, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 11201, 12249, 764, 198, 220, 220, 220, 337, 36252, 50, 1382, 62, 26272, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 452, 62, 4480, 62, 10414, 13758, 8, 41876, 450, 499, 62, 30388, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 305, 62, 26272, 8, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 6494, 62, 25981, 5657, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 40156, 62, 4537, 8264, 62, 29296, 8264, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 1382, 62, 26272, 13, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 26272, 13, 628, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 21628, 62, 14116, 796, 705, 13102, 469, 6, 21628, 62, 529, 796, 269, 62, 4658, 12, 647, 469, 21628, 62, 22019, 796, 450, 499, 62, 9562, 1267, 22492, 15285, 62, 32541, 13, 628, 220, 220, 220, 16876, 21628, 62, 4480, 62, 10414, 13758, 796, 450, 499, 62, 7942, 13, 198, 220, 220, 220, 220, 220, 686, 62, 26272, 3784, 2860, 7, 21628, 62, 14116, 796, 705, 4965, 6442, 7326, 42267, 6, 21628, 62, 529, 796, 269, 62, 4658, 12, 411, 62, 10414, 42267, 1267, 22492, 15285, 62, 32541, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 628, 220, 220, 220, 6941, 62, 260, 7501, 796, 33245, 62, 260, 7501, 13, 628, 220, 220, 220, 33245, 62, 260, 7501, 3784, 2617, 62, 1671, 3702, 62, 3672, 7, 930, 5420, 82, 14, 16600, 14, 90, 21628, 62, 16793, 1782, 91, 6739, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 6941, 62, 647, 469, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 260, 7501, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 33245, 62, 260, 7501, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 10459, 62, 1671, 3702, 796, 21628, 62, 10459, 13, 198, 220, 220, 220, 6941, 62, 647, 469, 3784, 5143, 7, 6739, 628, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 29296, 8264, 4458, 198, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 26272, 220, 796, 1382, 62, 26272, 7, 6941, 62, 647, 469, 3784, 10134, 62, 10414, 42267, 7, 1267, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 8543, 62, 11299, 13, 628, 220, 220, 220, 42865, 25, 43979, 62, 647, 469, 220, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 647, 469, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 16624, 220, 34178, 43979, 62, 647, 469, 12, 301, 631, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20274, 34178, 48920, 3963, 43979, 62, 647, 469, 12, 20274, 13, 628, 220, 220, 220, 18930, 24639 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS y_code_pal_service DEFINITION PUBLIC CREATE PUBLIC. PUBLIC SECTION. INTERFACES if_http_extension. TYPES: BEGIN OF versions, code_pal_for_abap TYPE string, sap_basis TYPE string, abapGit TYPE string, END OF versions. PROTECTED SECTION. METHODS raise_bad_request. METHODS raise_method_not_allowed. METHODS raise_internal_server_error. METHODS raise_forbidden. METHODS execute_import_profile. METHODS execute_get_versions. METHODS execute_regression_test. METHODS execute_unit_test. METHODS execute_ping. METHODS get_basis_version RETURNING VALUE(result) TYPE string. METHODS convert_json_to_profile IMPORTING json TYPE string RETURNING VALUE(result) TYPE y_if_profile_manager=>file RAISING cx_abap_invalid_value. METHODS list_non_executed_checks IMPORTING checks TYPE y_if_profile_manager=>check_descriptions findings TYPE scit_rest RETURNING VALUE(result) TYPE y_if_profile_manager=>check_descriptions. METHODS write_non_executed_checks IMPORTING non_executed_checks TYPE y_if_profile_manager=>check_descriptions RETURNING value(result) TYPE string. PRIVATE SECTION. DATA request TYPE REF TO if_http_request. DATA response TYPE REF TO if_http_response. ENDCLASS. CLASS y_code_pal_service IMPLEMENTATION. METHOD if_http_extension~handle_request. request = server->request. response = server->response. CASE request->get_header_field( 'action' ). WHEN 'import_profile'. execute_import_profile( ). WHEN 'get_versions'. execute_get_versions( ). WHEN 'regression_test'. execute_regression_test( ). WHEN 'unit_test'. execute_unit_test( ). WHEN 'ping'. execute_ping( ). WHEN OTHERS. raise_bad_request( ). RETURN. ENDCASE. ENDMETHOD. METHOD execute_import_profile. IF request->get_method( ) <> 'POST'. raise_method_not_allowed( ). RETURN. ENDIF. IF request->get_content_type( ) <> 'application/json'. raise_bad_request( ). RETURN. ENDIF. DATA(json) = request->get_cdata( ). TRY. DATA(profile) = convert_json_to_profile( json ). CATCH cx_abap_invalid_value INTO DATA(profile_exception). raise_bad_request( ). response->set_cdata( |{ profile_exception->get_text( ) }: { profile_exception->get_longtext( ) }| ). RETURN. ENDTRY. DATA(profile_manager) = y_profile_manager=>create( ). TRY. profile_manager->import_profile( profile ). CATCH ycx_failed_to_add_a_line ycx_time_overlap INTO DATA(manager_exception). raise_internal_server_error( ). response->set_cdata( |{ manager_exception->get_text( ) }: { manager_exception->get_longtext( ) }| ). RETURN. CATCH ycx_no_delegation_rights. raise_forbidden( ). RETURN. ENDTRY. ENDMETHOD. METHOD execute_get_versions. IF request->get_method( ) <> 'GET'. raise_method_not_allowed( ). RETURN. ENDIF. DATA(structure) = VALUE versions( code_pal_for_abap = y_code_pal_version=>abap sap_basis = get_basis_version( ) abapGit = zif_abapgit_version=>gc_abap_version ). DATA(json) = /ui2/cl_json=>serialize( structure ). response->set_content_type( 'application/json' ). response->set_cdata( json ). ENDMETHOD. METHOD raise_bad_request. response->set_status( code = '400' reason = 'Bad Request' ). ENDMETHOD. METHOD raise_method_not_allowed. response->set_status( code = '405' reason = 'Method Not Allowed' ). ENDMETHOD. METHOD raise_forbidden. response->set_status( code = '403' reason = 'Forbidden' ). ENDMETHOD. METHOD raise_internal_server_error. response->set_status( code = '500' reason = 'Internal Server Error' ). ENDMETHOD. METHOD convert_json_to_profile. /ui2/cl_json=>deserialize( EXPORTING json = json CHANGING data = result ). IF result IS INITIAL. RAISE EXCEPTION TYPE cx_abap_invalid_value. ENDIF. ENDMETHOD. METHOD get_basis_version. SELECT SINGLE * FROM cvers INTO @DATA(cver) WHERE component = 'SAP_BASIS'. result = |{ cver-release }-{ cver-extrelease }|. ENDMETHOD. METHOD execute_regression_test. IF request->get_method( ) <> 'GET'. raise_method_not_allowed( ). RETURN. ENDIF. TRY. y_profile_manager=>create( )->delete_profiles( ). CATCH ycx_failed_to_remove_a_line. raise_internal_server_error( ). response->set_cdata( 'Profiles were not disabled' ). RETURN. ENDTRY. DATA(atc) = NEW cl_satc_api_factory( ). TRY. DATA(object_set) = cl_satc_object_set_factory=>create_for_object_keys( VALUE #( ( obj_type = 'CLAS' obj_name = 'Y_DEMO_FAILURES' ) ( obj_type = 'PROG' obj_name = 'Y_DEMO_FAILURES' ) ) ). CATCH cx_satc_empty_object_set. raise_internal_server_error( ). response->set_cdata( 'Object set contains no checkable objects' ). RETURN. ENDTRY. TRY. DATA(variant) = atc->get_repository( )->load_ci_check_variant( i_name = 'Y_CODE_PAL' ). CATCH cx_satc_not_found. raise_internal_server_error( ). response->set_cdata( 'Specified Code Inspector variant was not found' ). RETURN. ENDTRY. DATA(configuration) = atc->create_run_config_with_chk_var( i_object_set = object_set i_check_variant = variant i_description = 'Y_CODE_PAL_SERVICE' ). DATA(controller) = atc->create_run_controller( configuration ). TRY. controller->run( IMPORTING e_result_access = DATA(result_access) ). CATCH cx_satc_failure. raise_internal_server_error( ). response->set_cdata( 'ATC check run failed (no authorization, etc.)' ). RETURN. ENDTRY. TRY. result_access->get_findings( IMPORTING e_findings = DATA(findings) ). CATCH cx_satc_failure. raise_internal_server_error( ). response->set_cdata( 'Result access failed (no authorization, etc.)' ). RETURN. ENDTRY. TRY. DATA(checks) = y_profile_manager=>create( )->select_existing_checks( ). CATCH ycx_entry_not_found INTO DATA(check_exception). raise_internal_server_error( ). response->set_cdata( |{ check_exception->get_text( ) }: { check_exception->get_longtext( ) }| ). RETURN. ENDTRY. DATA(non_executed_checks) = list_non_executed_checks( checks = checks findings = findings ). IF non_executed_checks IS NOT INITIAL. response->set_cdata( write_non_executed_checks( non_executed_checks ) ). ELSE. response->set_cdata( 'OK' ). ENDIF. ENDMETHOD. METHOD list_non_executed_checks. CONSTANTS maintain_attributes TYPE sci_errc VALUE 106. result = checks. LOOP AT findings ASSIGNING FIELD-SYMBOL(<finding>) WHERE code <> maintain_attributes. DELETE result WHERE checkid = <finding>-test. ENDLOOP. " not supported DELETE result WHERE checkid = 'Y_CHECK_PROFILE_MESSAGE' OR checkid = 'Y_CHECK_TEST_SEAM_USAGE' OR checkid = 'Y_CHECK_FUNCTION'. ENDMETHOD. METHOD write_non_executed_checks. LOOP AT non_executed_checks ASSIGNING FIELD-SYMBOL(<non_executed_check>). result = COND #( WHEN result IS NOT INITIAL THEN |{ result }<br>| ). result = |{ result }```{ sy-tabix }. { <non_executed_check>-checkid }: { <non_executed_check>-description }```|. ENDLOOP. IF result IS INITIAL. RETURN. ENDIF. result = |Non-Executed Checks:<br>{ result }|. ENDMETHOD. METHOD execute_unit_test. raise_internal_server_error( ). RETURN. ENDMETHOD. METHOD execute_ping. RETURN. ENDMETHOD. ENDCLASS.
[ 31631, 331, 62, 8189, 62, 18596, 62, 15271, 5550, 20032, 17941, 44731, 29244, 6158, 44731, 13, 198, 220, 44731, 44513, 13, 198, 220, 220, 220, 23255, 37, 2246, 1546, 611, 62, 4023, 62, 2302, 3004, 13, 198, 220, 220, 220, 24412, 47, 1546, 25, 347, 43312, 3963, 6300, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2438, 62, 18596, 62, 1640, 62, 397, 499, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 31841, 62, 12093, 271, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 450, 499, 38, 270, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 6300, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 5298, 62, 14774, 62, 25927, 13, 198, 220, 220, 220, 337, 36252, 50, 5298, 62, 24396, 62, 1662, 62, 40845, 13, 198, 220, 220, 220, 337, 36252, 50, 5298, 62, 32538, 62, 15388, 62, 18224, 13, 198, 220, 220, 220, 337, 36252, 50, 5298, 62, 1640, 37978, 13, 628, 220, 220, 220, 337, 36252, 50, 12260, 62, 11748, 62, 13317, 13, 198, 220, 220, 220, 337, 36252, 50, 12260, 62, 1136, 62, 47178, 13, 198, 220, 220, 220, 337, 36252, 50, 12260, 62, 2301, 2234, 62, 9288, 13, 198, 220, 220, 220, 337, 36252, 50, 12260, 62, 20850, 62, 9288, 13, 198, 220, 220, 220, 337, 36252, 50, 12260, 62, 13886, 13, 628, 220, 220, 220, 337, 36252, 50, 651, 62, 12093, 271, 62, 9641, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 4731, 13, 628, 220, 220, 220, 337, 36252, 50, 10385, 62, 17752, 62, 1462, 62, 13317, 30023, 9863, 2751, 33918, 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, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 331, 62, 361, 62, 13317, 62, 37153, 14804, 7753, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 17926, 1797, 2751, 220, 220, 43213, 62, 397, 499, 62, 259, 12102, 62, 8367, 13, 628, 220, 220, 220, 337, 36252, 50, 1351, 62, 13159, 62, 18558, 7241, 62, 42116, 30023, 9863, 2751, 8794, 220, 220, 220, 220, 220, 220, 220, 41876, 331, 62, 361, 62, 13317, 62, 37153, 14804, 9122, 62, 20147, 1968, 507, 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, 6373, 220, 220, 220, 220, 220, 41876, 629, 270, 62, 2118, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 331, 62, 361, 62, 13317, 62, 37153, 14804, 9122, 62, 20147, 1968, 507, 13, 628, 220, 220, 220, 337, 36252, 50, 3551, 62, 13159, 62, 18558, 7241, 62, 42116, 30023, 9863, 2751, 1729, 62, 18558, 7241, 62, 42116, 41876, 331, 62, 361, 62, 13317, 62, 37153, 14804, 9122, 62, 20147, 1968, 507, 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, 30826, 4261, 15871, 1988, 7, 20274, 8, 220, 220, 220, 220, 220, 220, 41876, 4731, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 2581, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 25927, 13, 198, 220, 220, 220, 42865, 2882, 41876, 4526, 37, 5390, 611, 62, 4023, 62, 26209, 13, 198, 198, 10619, 31631, 13, 628, 198, 31631, 331, 62, 8189, 62, 18596, 62, 15271, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 611, 62, 4023, 62, 2302, 3004, 93, 28144, 62, 25927, 13, 198, 220, 220, 220, 2581, 796, 4382, 3784, 25927, 13, 198, 220, 220, 220, 2882, 796, 4382, 3784, 26209, 13, 628, 220, 220, 220, 42001, 2581, 3784, 1136, 62, 25677, 62, 3245, 7, 705, 2673, 6, 6739, 198, 220, 220, 220, 220, 220, 42099, 705, 11748, 62, 13317, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 12260, 62, 11748, 62, 13317, 7, 6739, 198, 220, 220, 220, 220, 220, 42099, 705, 1136, 62, 47178, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 12260, 62, 1136, 62, 47178, 7, 6739, 198, 220, 220, 220, 220, 220, 42099, 705, 2301, 2234, 62, 9288, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 12260, 62, 2301, 2234, 62, 9288, 7, 6739, 198, 220, 220, 220, 220, 220, 42099, 705, 20850, 62, 9288, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 12260, 62, 20850, 62, 9288, 7, 6739, 198, 220, 220, 220, 220, 220, 42099, 705, 13886, 4458, 198, 220, 220, 220, 220, 220, 220, 220, 12260, 62, 13886, 7, 6739, 198, 220, 220, 220, 220, 220, 42099, 440, 4221, 4877, 13, 198, 220, 220, 220, 220, 220, 220, 220, 5298, 62, 14774, 62, 25927, 7, 6739, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 27064, 13, 198, 220, 220, 220, 23578, 34, 11159, 13, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 12260, 62, 11748, 62, 13317, 13, 198, 220, 220, 220, 16876, 2581, 3784, 1136, 62, 24396, 7, 1267, 1279, 29, 705, 32782, 4458, 198, 220, 220, 220, 220, 220, 5298, 62, 24396, 62, 1662, 62, 40845, 7, 6739, 198, 220, 220, 220, 220, 220, 30826, 27064 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
FUNCTION zgtt_sts_ee_fu_delay_rel. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_EVENT_TYPES) TYPE /SAPTRX/EVTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERENCE(I_EVENTTYPE_TAB) TYPE TRXAS_EVENTTYPE_TABS_WA *" REFERENCE(I_EVENT) TYPE TRXAS_EVT_CTAB_WA *" EXPORTING *" VALUE(E_RESULT) LIKE SY-BINPT *" TABLES *" C_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL *" EXCEPTIONS *" PARAMETER_ERROR *" RELEVANCE_DETERM_ERROR *" STOP_PROCESSING *"---------------------------------------------------------------------- FIELD-SYMBOLS: <ls_tor_root> TYPE /scmtms/s_em_bo_tor_root. TRY. zcl_gtt_sts_actual_event=>get_tor_actual_event_class( i_event )->check_event_relevance( EXPORTING it_all_appl_tables = i_all_appl_tables iv_event_code = /scmtms/if_tor_const=>sc_tor_event-delay_fu is_event = i_event IMPORTING ev_result = e_result ). CATCH cx_udm_message INTO DATA(lo_udm_message). zcl_gtt_sts_tools=>get_errors_log( EXPORTING io_umd_message = lo_udm_message iv_appsys = i_appsys IMPORTING es_bapiret = DATA(ls_bapiret) ). APPEND ls_bapiret TO c_logtable. RAISE stop_processing. ENDTRY. IF e_result = zif_gtt_sts_ef_constants=>cs_condition-false. RETURN. ENDIF. e_result = zif_gtt_sts_ef_constants=>cs_condition-false. IF i_event_types-mainobjtab <> /scmtms/cl_scem_int_c=>sc_table_definition-bo_tor-root. RAISE stop_processing. ENDIF. ASSIGN i_event-maintabref->* TO <ls_tor_root>. IF sy-subrc <> 0. RAISE stop_processing. ENDIF. /scmtms/cl_cust_factory=>get_instance_tor_type_cust( )->get_tortype( EXPORTING iv_type = <ls_tor_root>-tor_type IMPORTING es_tortype = DATA(ls_torty) ). DATA(lv_is_correct_tor_cat) = xsdbool( <ls_tor_root>-tor_cat = /scmtms/if_tor_const=>sc_tor_category-freight_unit ). IF ls_torty-track_exec_rel = /scmtms/if_tor_const=>sc_tracking_relevance-exec_track_em AND lv_is_correct_tor_cat = abap_true. /scmtms/cl_em_tm_helper=>check_event_relevance( EXPORTING iv_event_code = /scmtms/if_tor_const=>sc_tor_event-delay_fu i_all_appl_tables = i_all_appl_tables is_tor_root = <ls_tor_root> CHANGING cv_result = e_result EXCEPTIONS stop_processing = 3 ). IF sy-subrc = 3. RAISE stop_processing. ENDIF. ENDIF. ENDFUNCTION.
[ 42296, 4177, 2849, 1976, 70, 926, 62, 6448, 62, 1453, 62, 20942, 62, 40850, 62, 2411, 13, 198, 9, 1, 10097, 23031, 198, 9, 1, 9, 1, 14565, 26491, 25, 198, 9, 1, 220, 30023, 9863, 2751, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 2969, 3705, 16309, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 2969, 6489, 23060, 25361, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 62, 9936, 47, 1546, 8, 41876, 220, 1220, 50, 2969, 5446, 55, 14, 20114, 9936, 47, 1546, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 7036, 62, 2969, 6489, 62, 5603, 9148, 1546, 8, 41876, 220, 7579, 55, 1921, 62, 5603, 2749, 1340, 30339, 1137, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 25216, 62, 5603, 33, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 3525, 25216, 62, 5603, 4462, 62, 15543, 198, 9, 1, 220, 220, 220, 220, 4526, 24302, 18310, 7, 40, 62, 20114, 3525, 8, 41876, 220, 7579, 55, 1921, 62, 20114, 51, 62, 4177, 6242, 62, 15543, 198, 9, 1, 220, 7788, 15490, 2751, 198, 9, 1, 220, 220, 220, 220, 26173, 8924, 7, 36, 62, 19535, 16724, 8, 34178, 220, 19704, 12, 33, 1268, 11571, 198, 9, 1, 220, 309, 6242, 28378, 198, 9, 1, 220, 220, 220, 220, 220, 327, 62, 25294, 38148, 19269, 18415, 11335, 220, 347, 17614, 26087, 17, 39852, 2849, 1847, 198, 9, 1, 220, 7788, 42006, 11053, 198, 9, 1, 220, 220, 220, 220, 220, 29463, 2390, 2767, 1137, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 49968, 53, 19240, 62, 35, 2767, 1137, 44, 62, 24908, 198, 9, 1, 220, 220, 220, 220, 220, 44934, 62, 4805, 4503, 7597, 2751, 198, 9, 1, 10097, 23031, 628, 220, 18930, 24639, 12, 23060, 10744, 3535, 50, 25, 1279, 7278, 62, 13165, 62, 15763, 29, 41876, 1220, 1416, 16762, 907, 14, 82, 62, 368, 62, 2127, 62, 13165, 62, 15763, 13, 628, 220, 7579, 56, 13, 198, 220, 220, 220, 220, 220, 1976, 565, 62, 70, 926, 62, 6448, 62, 50039, 62, 15596, 14804, 1136, 62, 13165, 62, 50039, 62, 15596, 62, 4871, 7, 1312, 62, 15596, 1267, 3784, 9122, 62, 15596, 62, 260, 2768, 590, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 340, 62, 439, 62, 1324, 75, 62, 83, 2977, 796, 1312, 62, 439, 62, 1324, 75, 62, 83, 2977, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 15596, 62, 8189, 220, 220, 220, 220, 796, 1220, 1416, 16762, 907, 14, 361, 62, 13165, 62, 9979, 14804, 1416, 62, 13165, 62, 15596, 12, 40850, 62, 20942, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 318, 62, 15596, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 1312, 62, 15596, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 819, 62, 20274, 220, 220, 220, 220, 220, 220, 220, 220, 220, 796, 304, 62, 20274, 6739, 198, 220, 220, 220, 327, 11417, 43213, 62, 463, 76, 62, 20500, 39319, 42865, 7, 5439, 62, 463, 76, 62, 20500, 737, 198, 220, 220, 220, 220, 220, 1976, 565, 62, 70, 926, 62, 6448, 62, 31391, 14804, 1136, 62, 48277, 62, 6404, 7, 198, 220, 220, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33245, 62, 388, 67, 62, 20500, 796, 2376, 62, 463, 76, 62, 20500, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 1324, 17597, 220, 220, 220, 220, 220, 796, 1312, 62, 1324, 17597, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1658, 62, 65, 499, 557, 83, 220, 220, 220, 220, 796, 42865, 7, 7278, 62, 65, 499, 557, 83, 8, 6739, 198, 220, 220, 220, 220, 220, 43504, 10619, 43979, 62, 65, 499, 557, 83, 5390, 269, 62, 6404, 11487, 13, 198, 220, 220, 220, 220, 220, 17926, 24352, 2245, 62, 36948, 13, 198, 220, 23578, 40405, 13, 628, 220, 16876, 304, 62, 20274, 796, 1976, 361, 62, 70, 926, 62, 6448, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 31448, 12, 9562, 13, 198, 220, 220, 220, 30826, 27064, 13, 198, 220, 23578, 5064, 13, 628, 220, 304, 62, 20274, 796, 1976, 361, 62, 70, 926, 62, 6448, 62, 891, 62, 9979, 1187, 14804, 6359, 62, 31448, 12, 9562, 13, 198, 220, 16876, 1312, 62, 15596, 62, 19199, 12, 12417, 26801, 8658, 1279, 29, 1220, 1416, 16762, 907, 14, 565, 62, 82, 344, 76, 62, 600, 62, 66, 14804, 1416, 62, 11487, 62, 46758, 12, 2127, 62, 13165, 12, 15763, 13, 198, 220, 220, 220, 17926, 24352, 2245, 62, 36948, 13, 198, 220, 23578, 5064, 13, 628, 220, 24994, 16284, 1312, 62, 15596, 12, 76, 2913, 397, 5420, 3784, 9, 5390, 1279, 7278, 62, 13165, 62, 15763, 28401, 198, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 17926, 24352, 2245, 62, 36948, 13, 198, 220, 23578, 5064, 13, 628, 220, 1220, 1416, 16762, 907, 14, 565, 62, 66, 436, 62, 69, 9548, 14804, 1136, 62, 39098, 62, 13165, 62, 4906, 62, 66, 436, 7, 1267, 3784, 1136, 62, 83, 419, 2981, 7, 198, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 21628, 62, 4906, 220, 220, 220, 796, 1279, 7278, 62, 13165, 62, 15763, 29, 12, 13165, 62, 4906, 198, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 1658, 62, 83, 419, 2981, 796, 42865, 7, 7278, 62, 83, 419, 88, 8, 6739, 628, 220, 42865, 7, 6780, 62, 271, 62, 30283, 62, 13165, 62, 9246, 8, 796, 2124, 82, 9945, 970, 7, 1279, 7278, 62, 13165, 62, 15763, 29, 12, 13165, 62, 9246, 796, 1220, 1416, 16762, 907, 14, 361, 62, 13165, 62, 9979, 14804, 1416, 62, 13165, 62, 22872 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
REPORT ztrcktrsr_alv_magic_filter. " http://www.tricktresor.de/blog/magic-filter/ CLASS lcl_magic_filter DEFINITION DEFERRED. DATA gr_gfil TYPE REF TO lcl_magic_filter. DATA gv_value TYPE c LENGTH 20. DATA gs_filter TYPE lvc_s_filt. DATA gt_filter TYPE lvc_t_filt. DATA gr_docker TYPE REF TO cl_gui_docking_container. DATA gr_splitter1 TYPE REF TO cl_gui_easy_splitter_container. DATA gr_splitter2 TYPE REF TO cl_gui_easy_splitter_container. DATA gr_cont1 TYPE REF TO cl_gui_container. DATA gr_cont2 TYPE REF TO cl_gui_container. DATA gr_cont3 TYPE REF TO cl_gui_container. DATA gr_cont4 TYPE REF TO cl_gui_container. DATA gr_grid1 TYPE REF TO cl_gui_alv_grid. DATA gr_grid2 TYPE REF TO cl_gui_alv_grid. DATA gr_grid3 TYPE REF TO cl_gui_alv_grid. TYPES: BEGIN OF ty_1, matnr TYPE matnr, werks TYPE werks_d, lgort TYPE lgort_d, mtart TYPE mtart, END OF ty_1. TYPES: BEGIN OF ty_2, matnr TYPE matnr, mtart TYPE mtart, END OF ty_2. TYPES: BEGIN OF ty_3, werks TYPE werks_d, lgort TYPE lgort_d, END OF ty_3. DATA gt_1 TYPE STANDARD TABLE OF ty_1. DATA gt_2 TYPE STANDARD TABLE OF ty_2. DATA gt_3 TYPE STANDARD TABLE OF ty_3. DATA gs_1 TYPE ty_1. DATA gs_2 TYPE ty_2. DATA gs_3 TYPE ty_3. CLASS lcl_magic_filter DEFINITION. PUBLIC SECTION. METHODS register IMPORTING ir_grid TYPE REF TO cl_gui_alv_grid . METHODS set_filter IMPORTING filter TYPE lvc_t_filt . PROTECTED SECTION. TYPES: BEGIN OF ty_object, grid TYPE REF TO cl_gui_alv_grid, fcat TYPE lvc_t_fcat, filter TYPE lvc_t_filt, status TYPE c LENGTH 1, END OF ty_object . TYPES: ty_objects TYPE STANDARD TABLE OF ty_object . DATA mt_objects TYPE ty_objects . DATA mt_filter TYPE lvc_t_filt . METHODS set_filter_on_objects . ENDCLASS. CLASS lcl_magic_filter IMPLEMENTATION. * ---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_GFIL_CONTROLLER->REGISTER * +-------------------------------------------------------------------------------------------------+ * | [--->] IR_GRID TYPE REF TO CL_GUI_ALV_GRID * +-------------------------------------------------------------------------------------- METHOD register. DATA ls_object LIKE LINE OF mt_objects. READ TABLE mt_objects TRANSPORTING NO FIELDS WITH KEY grid = ir_grid. IF sy-subrc > 0. *== Objekt hinzufügen ls_object-grid = ir_grid. ls_object-status = '1'. ir_grid->get_frontend_fieldcatalog( IMPORTING et_fieldcatalog = ls_object-fcat ). APPEND ls_object TO mt_objects. ENDIF. ENDMETHOD. * ---------------------------------------------------------------------------------------+ * | Instance Public Method ZCL_GFIL_CONTROLLER->SET_FILTER * +-------------------------------------------------------------------------------------------------+ * | [--->] FILTER TYPE LVC_T_FILT * +-------------------------------------------------------------------------------------- METHOD set_filter. mt_filter = filter. set_filter_on_objects( ). ENDMETHOD. * ---------------------------------------------------------------------------------------+ * | Instance Protected Method ZCL_GFIL_CONTROLLER->SET_FILTER_ON_OBJECTS * +-------------------------------------------------------------------------------------------------+ * +-------------------------------------------------------------------------------------- METHOD set_filter_on_objects. DATA lt_filter TYPE lvc_t_filt. DATA lv_index TYPE i. *== Set filter LOOP AT mt_objects ASSIGNING FIELD-SYMBOL(<object>). lt_filter = mt_filter. LOOP AT lt_filter ASSIGNING FIELD-SYMBOL(<filter>). lv_index = sy-tabix. READ TABLE <object>-fcat TRANSPORTING NO FIELDS WITH KEY fieldname = <filter>-fieldname. IF sy-subrc > 0. DELETE lt_filter INDEX lv_index. ENDIF. <object>-grid->set_filter_criteria( lt_filter ). ENDLOOP. <object>-grid->refresh_table_display( is_stable = VALUE #( col = 'X' row = 'X' ) i_soft_refresh = space ). ENDLOOP. ENDMETHOD. ENDCLASS. PARAMETER p_field TYPE fieldname. SELECT-OPTIONS s_values FOR gv_value. INITIALIZATION. CREATE OBJECT gr_gfil. PERFORM create_base. PERFORM create_1. PERFORM create_2. PERFORM create_3. AT SELECTION-SCREEN. CLEAR gs_filter. CLEAR gt_filter. gs_filter-fieldname = p_field. LOOP AT s_values. gs_filter-low = s_values-low. gs_filter-sign = s_values-sign. gs_filter-option = s_values-option. APPEND gs_filter TO gt_filter. ENDLOOP. gr_gfil->set_filter( gt_filter ). START-OF-SELECTION. FORM create_base. CREATE OBJECT gr_docker EXPORTING side = cl_gui_docking_container=>dock_at_bottom ratio = 80 no_autodef_progid_dynnr = abap_true. CREATE OBJECT gr_splitter1 EXPORTING parent = gr_docker orientation = 0 sash_position = 50. gr_cont1 = gr_splitter1->top_left_container. gr_cont4 = gr_splitter1->bottom_right_container. CREATE OBJECT gr_splitter2 EXPORTING parent = gr_cont4 orientation = 1 sash_position = 50. gr_cont2 = gr_splitter2->top_left_container. gr_cont3 = gr_splitter2->bottom_right_container. ENDFORM. FORM create_1. DATA ls_fcat TYPE lvc_s_fcat. DATA lt_fcat TYPE lvc_t_fcat. gs_1-matnr = 'A'. gs_1-werks = '1000'. gs_1-lgort = 'A001'. gs_1-mtart = 'FERT'. APPEND gs_1 TO gt_1. gs_1-matnr = 'B'. gs_1-werks = '1000'. gs_1-lgort = 'A001'. gs_1-mtart = 'HALB'. APPEND gs_1 TO gt_1. gs_1-matnr = 'C'. gs_1-werks = '2000'. gs_1-lgort = 'B001'. gs_1-mtart = 'FERT'. APPEND gs_1 TO gt_1. gs_1-matnr = 'C'. gs_1-werks = '1000'. gs_1-lgort = 'A001'. gs_1-mtart = 'FERT'. APPEND gs_1 TO gt_1. gs_1-matnr = 'D'. gs_1-werks = '1000'. gs_1-lgort = 'B001'. gs_1-mtart = 'HALB'. APPEND gs_1 TO gt_1. ls_fcat-fieldname = 'MATNR'. ls_fcat-rollname = 'MATNR'. APPEND ls_fcat TO lt_fcat. ls_fcat-fieldname = 'WERKS'. ls_fcat-rollname = 'WERKS_D'. APPEND ls_fcat TO lt_fcat. ls_fcat-fieldname = 'LGORT'. ls_fcat-rollname = 'LGORT_D'. APPEND ls_fcat TO lt_fcat. ls_fcat-fieldname = 'MTART'. ls_fcat-rollname = 'MTART'. APPEND ls_fcat TO lt_fcat. PERFORM create_grid USING gr_cont1 lt_fcat gt_1. ENDFORM. FORM create_2. DATA ls_fcat TYPE lvc_s_fcat. DATA lt_fcat TYPE lvc_t_fcat. gs_2-matnr = 'A'. gs_2-mtart = 'FERT'. APPEND gs_2 TO gt_2. gs_2-matnr = 'B'. gs_2-mtart = 'HALB'. APPEND gs_2 TO gt_2. gs_2-matnr = 'C'. gs_2-mtart = 'FERT'. APPEND gs_2 TO gt_2. gs_2-matnr = 'D'. gs_2-mtart = 'HALB'. APPEND gs_2 TO gt_2. ls_fcat-fieldname = 'MATNR'. ls_fcat-rollname = 'MATNR'. APPEND ls_fcat TO lt_fcat. ls_fcat-fieldname = 'MTART'. ls_fcat-rollname = 'MTART'. APPEND ls_fcat TO lt_fcat. PERFORM create_grid USING gr_cont2 lt_fcat gt_2. ENDFORM. FORM create_3. DATA ls_fcat TYPE lvc_s_fcat. DATA lt_fcat TYPE lvc_t_fcat. gs_3-werks = '1000'. gs_3-lgort = 'A001'. APPEND gs_3 TO gt_3. gs_3-werks = '2000'. gs_3-lgort = 'A001'. APPEND gs_3 TO gt_3. gs_3-werks = '1000'. gs_3-lgort = 'B001'. APPEND gs_3 TO gt_3. gs_3-werks = '2000'. gs_3-lgort = 'B001'. APPEND gs_3 TO gt_3. ls_fcat-fieldname = 'WERKS'. ls_fcat-rollname = 'WERKS_D'. APPEND ls_fcat TO lt_fcat. ls_fcat-fieldname = 'LGORT'. ls_fcat-rollname = 'LGORT_D'. APPEND ls_fcat TO lt_fcat. PERFORM create_grid USING gr_cont3 lt_fcat gt_3. ENDFORM. FORM create_grid USING ir_container TYPE REF TO cl_gui_container it_fcat TYPE lvc_t_fcat it_table TYPE table. DATA lr_grid TYPE REF TO cl_gui_alv_grid. CREATE OBJECT lr_grid EXPORTING i_parent = ir_container. lr_grid->set_table_for_first_display( CHANGING it_outtab = it_table it_fieldcatalog = it_fcat ). gr_gfil->register( lr_grid ). ENDFORM.
[ 2200, 15490, 1976, 2213, 694, 2213, 27891, 62, 282, 85, 62, 32707, 62, 24455, 13, 198, 198, 1, 2638, 1378, 2503, 13, 2213, 624, 83, 411, 273, 13, 2934, 14, 14036, 14, 32707, 12, 24455, 14, 198, 198, 31631, 300, 565, 62, 32707, 62, 24455, 5550, 20032, 17941, 23449, 1137, 22083, 13, 198, 26947, 1036, 62, 70, 10379, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 300, 565, 62, 32707, 62, 24455, 13, 198, 26947, 308, 85, 62, 8367, 220, 220, 220, 220, 41876, 269, 406, 49494, 1160, 13, 198, 198, 26947, 308, 82, 62, 24455, 220, 220, 220, 41876, 300, 28435, 62, 82, 62, 69, 2326, 13, 198, 26947, 308, 83, 62, 24455, 220, 220, 220, 41876, 300, 28435, 62, 83, 62, 69, 2326, 13, 198, 198, 26947, 1036, 62, 45986, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 67, 8629, 62, 34924, 13, 198, 198, 26947, 1036, 62, 22018, 1967, 16, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 38171, 62, 22018, 1967, 62, 34924, 13, 198, 26947, 1036, 62, 22018, 1967, 17, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 38171, 62, 22018, 1967, 62, 34924, 13, 198, 198, 26947, 1036, 62, 3642, 16, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 13, 198, 26947, 1036, 62, 3642, 17, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 13, 198, 26947, 1036, 62, 3642, 18, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 13, 198, 26947, 1036, 62, 3642, 19, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 34924, 13, 198, 198, 26947, 1036, 62, 25928, 16, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 282, 85, 62, 25928, 13, 198, 26947, 1036, 62, 25928, 17, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 282, 85, 62, 25928, 13, 198, 26947, 1036, 62, 25928, 18, 220, 220, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 282, 85, 62, 25928, 13, 198, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 16, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 2603, 48624, 41876, 2603, 48624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 266, 263, 591, 41876, 266, 263, 591, 62, 67, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 300, 70, 419, 41876, 300, 70, 419, 62, 67, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 45079, 433, 41876, 45079, 433, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 16, 13, 198, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 17, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 2603, 48624, 41876, 2603, 48624, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 45079, 433, 41876, 45079, 433, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 17, 13, 198, 198, 9936, 47, 1546, 25, 347, 43312, 3963, 1259, 62, 18, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 266, 263, 591, 41876, 266, 263, 591, 62, 67, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 300, 70, 419, 41876, 300, 70, 419, 62, 67, 11, 198, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 18, 13, 198, 198, 26947, 308, 83, 62, 16, 41876, 49053, 9795, 43679, 3963, 1259, 62, 16, 13, 198, 26947, 308, 83, 62, 17, 41876, 49053, 9795, 43679, 3963, 1259, 62, 17, 13, 198, 26947, 308, 83, 62, 18, 41876, 49053, 9795, 43679, 3963, 1259, 62, 18, 13, 198, 198, 26947, 308, 82, 62, 16, 41876, 1259, 62, 16, 13, 198, 26947, 308, 82, 62, 17, 41876, 1259, 62, 17, 13, 198, 26947, 308, 82, 62, 18, 41876, 1259, 62, 18, 13, 628, 198, 31631, 300, 565, 62, 32707, 62, 24455, 5550, 20032, 17941, 13, 628, 220, 44731, 44513, 13, 628, 220, 220, 220, 337, 36252, 50, 7881, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 4173, 62, 25928, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 282, 85, 62, 25928, 764, 198, 220, 220, 220, 337, 36252, 50, 900, 62, 24455, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 8106, 41876, 300, 28435, 62, 83, 62, 69, 2326, 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, 15252, 11, 198, 220, 220, 220, 220, 220, 220, 220, 10706, 220, 220, 41876, 4526, 37, 5390, 537, 62, 48317, 62, 282, 85, 62, 25928, 11, 198, 220, 220, 220, 220, 220, 220, 220, 277, 9246, 220, 220, 41876, 300, 28435, 62, 83, 62, 69, 9246, 11, 198, 220, 220, 220, 220, 220, 220, 220, 8106, 41876, 300, 28435, 62, 83, 62, 69, 2326, 11, 198, 220, 220, 220, 220, 220, 220, 220, 3722, 41876, 269, 406, 49494, 352, 11, 198, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 15252, 764, 198, 220, 220, 220, 24412, 47, 1546, 25, 198, 220, 220, 220, 220, 220, 1259, 62, 48205, 41876, 49053, 9795, 43679, 3963, 1259, 62, 15252, 764, 628, 220, 220, 220, 42865, 45079, 62, 48205, 41876, 1259, 62, 48205, 764, 198, 220, 220, 220, 42865, 45079, 62, 24455, 41876, 300, 28435, 62, 83, 62, 69, 2326, 764, 628, 220, 220, 220, 337, 36252, 50, 900, 62, 24455, 62, 261, 62, 48205, 764, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 300, 565, 62, 32707, 62, 24455, 30023, 2538, 10979, 6234, 13, 628, 198, 9, 16529, 19351, 6329, 10, 198, 9, 930, 2262, 590, 5094, 11789, 1168, 5097, 62, 21713, 4146, 62, 10943, 5446, 46, 3069, 1137, 3784, 31553, 41517, 198, 9, 1343, 10097, 3880, 19529, 198, 9, 930, 685, 438, 3784, 60, 14826, 62, 10761, 2389, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 4526, 37, 5390, 7852, 62, 40156, 62, 1847, 53, 62, 10761 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
*"* use this source file for your ABAP unit test classes include zabapgraph_string_template. class dummy definition for testing. public section. class-data: instance type ref to dummy. data: strvalue type string value 'Astring', intvalue type i value 1234, e070 type e070. endclass. class test_template definition for testing inheriting from cl_aunit_assert."#AU Risk_Level Harmless #AU Duration Short private section. methods: simple_values for testing, class_members for testing, indirect for testing, escapes for testing, fieldsymbols for testing. endclass. class test_template implementation. method class_members. data: result type string, obj type ref to dummy. agdefinitions. SET COUNTRY 'DE'. "for date formats create object obj. obj->e070-trkorr = 'NPLK900001'. obj->e070-as4date = '20100112'. agexpand 'A{obj->e070-trkorr}B{obj->intvalue}C{ obj->e070-as4date }D{obj->e070-as4time}.' result. assert_equals( act = result exp = 'ANPLK900001B1234C12.01.2010D00:00:00.' ). endmethod. method indirect. data: result type string. agdefinitions. SET COUNTRY 'US'. "for date formats create object dummy=>instance. dummy=>instance->e070-trkorr = 'NPLK900001'. dummy=>instance->e070-as4date = '20100112'. agexpand 'A{dummy=>instance->e070-trkorr}B{dummy=>instance->intvalue}C{ dummy=>instance->instance->e070-as4date }.' result. assert_equals( act = result exp = 'ANPLK900001B1234C01/12/2010.' ). endmethod. method simple_values. data: str1 type string value 'foo', float1 type f value '1.25', result type string. agdefinitions. SET COUNTRY 'US'. "for decimal separators agexpand 'string={str1} float = { float1 }.' result. assert_equals( act = result exp = 'string=foo float = 1.25.' ). float1 = float1 * 1000000000. agexpand 'string={str1} float = { float1 }.' result. assert_equals( act = result exp = 'string=foo float = 1.25E+09.' ). endmethod. method escapes. data: str1 type string value 'foo', result type string, expected type string. agdefinitions. agexpand '{str1} tab\tnewline\nff\fcrlf\r\n.' result. concatenate 'foo tab' cl_abap_char_utilities=>horizontal_tab 'newline' cl_abap_char_utilities=>newline 'ff' cl_abap_char_utilities=>form_feed 'crlf' cl_abap_char_utilities=>cr_lf '.' into expected. assert_equals( act = result exp = expected ). endmethod. method fieldsymbols. data: str1 type string value 'foo', result type string. field-symbols:<str> type any. agdefinitions. assign str1 to <str>. agexpand '{<str>}' result. assert_equals( act = result exp = 'foo' ). endmethod. endclass.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 534, 9564, 2969, 4326, 1332, 6097, 198, 17256, 1976, 397, 499, 34960, 62, 8841, 62, 28243, 13, 198, 4871, 31548, 6770, 329, 4856, 13, 198, 220, 1171, 2665, 13, 198, 220, 220, 220, 1398, 12, 7890, 25, 4554, 2099, 1006, 284, 31548, 13, 198, 220, 220, 220, 1366, 25, 965, 8367, 2099, 4731, 1988, 705, 32, 8841, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 493, 8367, 2099, 1312, 220, 220, 220, 220, 220, 1988, 1105, 2682, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 304, 43509, 220, 220, 220, 220, 2099, 304, 43509, 13, 198, 437, 4871, 13, 198, 4871, 1332, 62, 28243, 6770, 329, 4856, 10639, 1780, 422, 537, 62, 1942, 270, 62, 30493, 526, 2, 26830, 19602, 62, 4971, 17925, 1203, 1303, 26830, 22920, 10073, 198, 220, 2839, 2665, 13, 198, 220, 220, 220, 5050, 25, 2829, 62, 27160, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1398, 62, 30814, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12913, 220, 220, 220, 220, 220, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 32695, 220, 220, 220, 220, 220, 220, 329, 4856, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2214, 1837, 2022, 10220, 220, 329, 4856, 13, 628, 198, 437, 4871, 13, 198, 198, 4871, 1332, 62, 28243, 7822, 13, 628, 220, 2446, 1398, 62, 30814, 13, 198, 220, 220, 220, 1366, 25, 1255, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26181, 220, 220, 220, 2099, 1006, 284, 31548, 13, 628, 220, 220, 220, 556, 4299, 50101, 13, 198, 220, 220, 220, 25823, 31404, 40405, 705, 7206, 4458, 366, 1640, 3128, 17519, 198, 220, 220, 220, 2251, 2134, 26181, 13, 198, 220, 220, 220, 26181, 3784, 68, 43509, 12, 2213, 74, 38890, 796, 705, 45, 6489, 42, 24, 2388, 16, 4458, 198, 220, 220, 220, 26181, 3784, 68, 43509, 12, 292, 19, 4475, 796, 705, 1264, 8298, 1065, 4458, 628, 220, 220, 220, 2479, 42372, 392, 705, 32, 90, 26801, 3784, 68, 43509, 12, 2213, 74, 38890, 92, 33, 90, 26801, 3784, 600, 8367, 92, 34, 90, 26181, 3784, 68, 43509, 12, 292, 19, 4475, 1782, 35, 90, 26801, 3784, 68, 43509, 12, 292, 19, 2435, 92, 2637, 1255, 13, 198, 220, 220, 220, 6818, 62, 4853, 874, 7, 719, 796, 1255, 1033, 796, 705, 1565, 6489, 42, 24, 2388, 16, 33, 1065, 2682, 34, 1065, 13, 486, 13, 10333, 35, 405, 25, 405, 25, 405, 2637, 6739, 628, 220, 886, 24396, 13, 628, 220, 2446, 12913, 13, 198, 220, 220, 220, 1366, 25, 1255, 2099, 4731, 13, 628, 220, 220, 220, 556, 4299, 50101, 13, 198, 220, 220, 220, 25823, 31404, 40405, 705, 2937, 4458, 366, 1640, 3128, 17519, 198, 220, 220, 220, 2251, 2134, 31548, 14804, 39098, 13, 198, 220, 220, 220, 31548, 14804, 39098, 3784, 68, 43509, 12, 2213, 74, 38890, 796, 705, 45, 6489, 42, 24, 2388, 16, 4458, 198, 220, 220, 220, 31548, 14804, 39098, 3784, 68, 43509, 12, 292, 19, 4475, 796, 705, 1264, 8298, 1065, 4458, 628, 220, 220, 220, 2479, 42372, 392, 705, 32, 90, 67, 13513, 14804, 39098, 3784, 68, 43509, 12, 2213, 74, 38890, 92, 33, 90, 67, 13513, 14804, 39098, 3784, 600, 8367, 92, 34, 90, 31548, 14804, 39098, 3784, 39098, 3784, 68, 43509, 12, 292, 19, 4475, 1782, 2637, 1255, 13, 198, 220, 220, 220, 6818, 62, 4853, 874, 7, 719, 796, 1255, 1033, 796, 705, 1565, 6489, 42, 24, 2388, 16, 33, 1065, 2682, 34, 486, 14, 1065, 14, 10333, 2637, 6739, 628, 220, 886, 24396, 13, 628, 220, 2446, 2829, 62, 27160, 13, 198, 220, 220, 220, 1366, 25, 965, 16, 220, 220, 2099, 4731, 1988, 705, 21943, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 12178, 16, 2099, 277, 220, 220, 220, 220, 220, 1988, 705, 16, 13, 1495, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 2099, 4731, 13, 628, 220, 220, 220, 556, 4299, 50101, 13, 198, 220, 220, 220, 25823, 31404, 40405, 705, 2937, 4458, 366, 1640, 32465, 2880, 2024, 628, 220, 220, 220, 2479, 42372, 392, 705, 8841, 34758, 2536, 16, 92, 12178, 796, 1391, 12178, 16, 1782, 2637, 1255, 13, 198, 220, 220, 220, 6818, 62, 4853, 874, 7, 719, 796, 1255, 1033, 796, 705, 8841, 28, 21943, 12178, 796, 352, 13, 1495, 2637, 6739, 628, 220, 220, 220, 12178, 16, 796, 12178, 16, 1635, 1802, 24598, 13, 628, 220, 220, 220, 2479, 42372, 392, 705, 8841, 34758, 2536, 16, 92, 12178, 796, 1391, 12178, 16, 1782, 2637, 1255, 13, 198, 220, 220, 220, 6818, 62, 4853, 874, 7, 719, 796, 1255, 1033, 796, 705, 8841, 28, 21943, 12178, 796, 352, 13, 1495, 36, 10, 2931, 2637, 6739, 628, 220, 886, 24396, 13, 628, 220, 2446, 32695, 13, 198, 220, 220, 220, 1366, 25, 965, 16, 220, 220, 220, 220, 2099, 4731, 1988, 705, 21943, 3256, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1255, 220, 220, 2099, 4731, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2938, 2099, 4731, 13, 628, 220, 220, 220, 556, 4299, 50101, 13, 628, 220, 220, 220, 2479, 42372, 392, 705, 90, 2536, 16, 92, 7400, 59, 83, 3605, 1370, 59, 77, 487, 59, 69, 6098, 1652, 59, 81, 59, 77, 2637, 1255, 13, 198, 220, 220, 220, 1673, 36686, 378, 705, 21943, 7400, 6, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804, 17899, 38342, 62, 8658, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 705, 3605, 1370, 6, 537, 62, 397, 499, 62, 10641, 62, 315, 2410, 14804,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
*"* use this source file for the definition and implementation of *"* local helper classes, interface definitions and type *"* declarations CLASS lcl_token_parser IMPLEMENTATION. METHOD constructor. mt_token = it_token. mv_count = lines( mt_token ). mv_current_index = 1. ms_current_token = mt_token[ mv_current_index ]. ENDMETHOD. METHOD update_from_current. mt_token[ mv_current_index ] = ms_current_token. ENDMETHOD. METHOD is_next_token. CHECK has_next_token( ). DATA(lv_token) = mt_token[ mv_current_index + 1 ]-value. IF iv_next_token CS ','. rf_is_next = token_matches( iv_check_list = iv_next_token iv_token_to_check = lv_token ). ELSE. rf_is_next = xsdbool( lv_token = iv_next_token ). ENDIF. ENDMETHOD. METHOD is_previous_token. CHECK has_previous_token( ). DATA(lv_token) = mt_token[ mv_current_index - 1 ]-value. IF iv_previous_token CS ','. rf_is_previous = token_matches( iv_check_list = iv_previous_token iv_token_to_check = lv_token ). ELSE. rf_is_previous = xsdbool( lv_token = iv_previous_token ). ENDIF. ENDMETHOD. METHOD next_token. CHECK has_next_token( ). ADD 1 TO mv_current_index. ms_current_token = mt_token[ mv_current_index ]. ENDMETHOD. METHOD has_next_token. rf_has_next = xsdbool( mv_current_index + 1 <= mv_count ). ENDMETHOD. METHOD has_previous_token. rf_has_previous = xsdbool( mv_current_index - 1 >= 1 ). ENDMETHOD. METHOD get_token. DATA: lt_token_list TYPE string_table, lt_token_range TYPE RANGE OF string. DATA(lv_start_index) = COND #( WHEN if_from_current = abap_true THEN mv_current_index ELSE 1 ). IF iv_token CS ','. SPLIT iv_token AT ',' INTO TABLE lt_token_list. lt_token_range = VALUE #( LET i = 'I' eq = 'EQ' IN FOR token IN lt_token_list ( sign = i option = eq low = token ) ). ELSE. lt_token_range = VALUE #( ( sign = 'I' option = 'EQ' low = iv_token ) ). ENDIF. LOOP AT mt_token ASSIGNING FIELD-SYMBOL(<ls_token>) FROM lv_start_index WHERE value IN lt_token_range. DATA(lv_index) = sy-tabix. EXIT. ENDLOOP. IF sy-subrc = 0. mv_current_index = lv_index. ms_current_token = <ls_token>. rf_exists = abap_true. ENDIF. ENDMETHOD. METHOD set_index_to_first. mv_current_index = 1. ms_current_token = mt_token[ 1 ]. ENDMETHOD. METHOD delete_current. CHECK mv_current_index > 0 AND mv_current_index <= mv_count. DELETE mt_token INDEX mv_current_index. mv_count = lines( mt_token ). IF mv_current_index > mv_count. mv_current_index = mv_count. ENDIF. ms_current_token = mt_token[ mv_current_index ]. ENDMETHOD. METHOD delete_next. CHECK has_next_token( ). DELETE mt_token INDEX mv_current_index + 1. ENDMETHOD. METHOD previous_token. CHECK mv_current_index > 1. SUBTRACT 1 FROM mv_current_index. ms_current_token = mt_token[ mv_current_index ]. ENDMETHOD. METHOD delete_previous. CHECK mv_current_index - 1 >= 1. DELETE mt_token INDEX mv_current_index - 1. SUBTRACT 1 FROM mv_current_index. ENDMETHOD. METHOD token_matches. DATA(lv_token_check) = replace( val = iv_check_list sub = ',' with = '|' occ = 0 ). lv_token_check = |({ lv_token_check })|. rf_matches = xsdbool( count( val = iv_token_to_check regex = lv_token_check ) > 0 ). ENDMETHOD. ENDCLASS. CLASS lcl_query_param_parser IMPLEMENTATION. METHOD lif_statement_parser~parse. mr_parameter = NEW #( ). *.. First token is always the DATA token so jump immediately to second next_token( ). parse_name( ). parse_type( ). parse_length( ). parse_decimals( ). parse_value( ). rr_data = mr_parameter. ENDMETHOD. METHOD parse_name. IF ms_current_token-value CS '('. " length declaration inside parenthesis DATA(lv_parenthesis_left) = find( val = ms_current_token-value sub = '(' ). DATA(lv_parenthesis_right) = find( val = ms_current_token-value sub = ')' ). mr_parameter->name = substring( val = ms_current_token-value len = lv_parenthesis_left ). mr_parameter->length = substring( val = ms_current_token-value off = lv_parenthesis_left + 1 len = lv_parenthesis_right - lv_parenthesis_left - 1 ). ELSE. mr_parameter->name = ms_current_token-value. ENDIF. mr_parameter->line_in_query = ms_current_token-row. ENDMETHOD. METHOD parse_decimals. CHECK get_token( 'DECIMALS' ). next_token( ). mr_parameter->decimals = ms_current_token-value. data(lv_val) = sana_tok_alias_def. ENDMETHOD. METHOD parse_length. CHECK mr_parameter->length IS NOT INITIAL. IF get_token( 'LENGTH' ). next_token( ). mr_parameter->length = ms_current_token-value. ELSEIF mr_parameter->length IS INITIAL AND mr_parameter->type = cl_abap_typedescr=>typekind_char. mr_parameter->length = 1. ENDIF. ENDMETHOD. METHOD parse_type. IF get_token( 'TYPE' ). IF is_next_token( 'RANGE' ). *...... skip an extra token to set current token to type of range next_token( ). next_token( ). mr_parameter->is_range = abap_true. ENDIF. next_token( ). mr_parameter->type = ms_current_token-value. ELSE. *... no concrete type specified so the default type 'C' will be used mr_parameter->type = cl_abap_typedescr=>typekind_char. ENDIF. ENDMETHOD. METHOD parse_value. CHECK: get_token( 'VALUE' ), NOT is_next_token( 'IS' ). next_token( ). mr_parameter->default_value = replace( val = ms_current_token-value sub = `'` occ = 0 with = space ). mr_parameter->default_value_raw = ms_current_token-value. ENDMETHOD. ENDCLASS. CLASS lcl_query_token_simplifier IMPLEMENTATION. METHOD simplify. simplify_by_clause( iv_clause = 'ORDER' iv_simplified = zcl_dbbr_sql_query_parser=>c_keywords-order_by ). simplify_by_clause( iv_clause = 'GROUP' iv_simplified = zcl_dbbr_sql_query_parser=>c_keywords-group_by ). simplify_joins( ). simplify_conditions( ). rt_tokens = mt_token. ENDMETHOD. METHOD simplify_by_clause. WHILE get_token( iv_clause ). IF NOT is_next_token( 'BY' ). EXIT. ENDIF. ms_current_token-value = ms_current_token-value_no_modifier = iv_simplified . update_from_current( ). delete_next( ). ENDWHILE. ENDMETHOD. METHOD simplify_joins. WHILE get_token( 'JOIN' ). previous_token( ). IF ms_current_token-value = 'INNER'. ms_current_token-value = zcl_dbbr_sql_query_parser=>c_keywords-inner_join. ms_current_token-value_no_modifier = 'JOIN'. update_from_current( ). delete_next( ). ELSEIF ms_current_token-value = 'OUTER'. delete_next( ). previous_token( ). delete_next( ). ms_current_token-value = |{ ms_current_token-value } OUTER JOIN|. ms_current_token-value_no_modifier = 'JOIN'. update_from_current( ). *..... Abbreviated form of outer join ELSEIF ms_current_token-value = 'LEFT' OR ms_current_token-value = 'RIGHT'. ms_current_token-value = |{ ms_current_token-value } OUTER JOIN|. ms_current_token-value_no_modifier = 'JOIN'. update_from_current( ). delete_next( ). ELSEIF ms_current_token-value = 'CROSS'. ms_current_token-value = |{ ms_current_token-value } JOIN|. ms_current_token-value_no_modifier = 'JOIN'. update_from_current( ). delete_next( ). ELSE. *...... This is also an inner join next_token( ). ms_current_token-value = zcl_dbbr_sql_query_parser=>c_keywords-inner_join. ms_current_token-value_no_modifier = 'JOIN'. update_from_current( ). ENDIF. ENDWHILE. ENDMETHOD. METHOD simplify_conditions. WHILE get_token( 'NULL,INITIAL' ). IF is_previous_token( 'NOT' ). delete_previous( ). delete_previous( ). ms_current_token-value_no_modifier = ms_current_token-value. ms_current_token-value = |IS NOT { ms_current_token-value }|. update_from_current( ). ELSE. delete_previous( ). ms_current_token-value_no_modifier = ms_current_token-value. ms_current_token-value = |IS { ms_current_token-value }|. update_from_current( ). ENDIF. ENDWHILE. WHILE get_token( iv_token = 'NOT' if_from_current = abap_true ). next_token( ). IF ms_current_token-value = 'EXISTS' OR ms_current_token-value = 'IN' OR ms_current_token-value = 'BETWEEN' OR ms_current_token-value = 'LIKE'. ms_current_token-value_no_modifier = ms_current_token-value. ms_current_token-value = |NOT { ms_current_token-value }|. update_from_current( ). delete_previous( ). ENDIF. ENDWHILE. ENDMETHOD. ENDCLASS.
[ 9, 1, 9, 779, 428, 2723, 2393, 329, 262, 6770, 290, 7822, 286, 198, 9, 1, 9, 1957, 31904, 6097, 11, 7071, 17336, 290, 2099, 198, 9, 1, 9, 31713, 628, 198, 31631, 300, 565, 62, 30001, 62, 48610, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 45079, 62, 30001, 796, 340, 62, 30001, 13, 198, 220, 220, 220, 285, 85, 62, 9127, 796, 3951, 7, 45079, 62, 30001, 6739, 198, 220, 220, 220, 285, 85, 62, 14421, 62, 9630, 796, 352, 13, 198, 220, 220, 220, 13845, 62, 14421, 62, 30001, 796, 45079, 62, 30001, 58, 285, 85, 62, 14421, 62, 9630, 20740, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 4296, 62, 6738, 62, 14421, 13, 198, 220, 220, 220, 45079, 62, 30001, 58, 285, 85, 62, 14421, 62, 9630, 2361, 796, 13845, 62, 14421, 62, 30001, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 318, 62, 19545, 62, 30001, 13, 628, 220, 220, 220, 5870, 25171, 468, 62, 19545, 62, 30001, 7, 6739, 628, 220, 220, 220, 42865, 7, 6780, 62, 30001, 8, 796, 45079, 62, 30001, 58, 285, 85, 62, 14421, 62, 9630, 1343, 352, 2361, 12, 8367, 13, 628, 220, 220, 220, 16876, 21628, 62, 19545, 62, 30001, 9429, 705, 4032, 13, 198, 220, 220, 220, 220, 220, 374, 69, 62, 271, 62, 19545, 796, 11241, 62, 6759, 2052, 7, 21628, 62, 9122, 62, 4868, 220, 220, 220, 220, 796, 21628, 62, 19545, 62, 30001, 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, 21628, 62, 30001, 62, 1462, 62, 9122, 796, 300, 85, 62, 30001, 6739, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 374, 69, 62, 271, 62, 19545, 796, 2124, 82, 9945, 970, 7, 300, 85, 62, 30001, 796, 21628, 62, 19545, 62, 30001, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 318, 62, 3866, 1442, 62, 30001, 13, 628, 220, 220, 220, 5870, 25171, 468, 62, 3866, 1442, 62, 30001, 7, 6739, 628, 220, 220, 220, 42865, 7, 6780, 62, 30001, 8, 796, 45079, 62, 30001, 58, 285, 85, 62, 14421, 62, 9630, 532, 352, 2361, 12, 8367, 13, 628, 220, 220, 220, 16876, 21628, 62, 3866, 1442, 62, 30001, 9429, 705, 4032, 13, 198, 220, 220, 220, 220, 220, 374, 69, 62, 271, 62, 3866, 1442, 796, 11241, 62, 6759, 2052, 7, 21628, 62, 9122, 62, 4868, 220, 220, 220, 220, 796, 21628, 62, 3866, 1442, 62, 30001, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 30001, 62, 1462, 62, 9122, 796, 300, 85, 62, 30001, 6739, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 374, 69, 62, 271, 62, 3866, 1442, 796, 2124, 82, 9945, 970, 7, 300, 85, 62, 30001, 796, 21628, 62, 3866, 1442, 62, 30001, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 220, 337, 36252, 1306, 62, 30001, 13, 198, 220, 220, 220, 5870, 25171, 468, 62, 19545, 62, 30001, 7, 6739, 628, 220, 220, 220, 27841, 352, 5390, 285, 85, 62, 14421, 62, 9630, 13, 198, 220, 220, 220, 13845, 62, 14421, 62, 30001, 796, 45079, 62, 30001, 58, 285, 85, 62, 14421, 62, 9630, 20740, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 468, 62, 19545, 62, 30001, 13, 198, 220, 220, 220, 374, 69, 62, 10134, 62, 19545, 796, 2124, 82, 9945, 970, 7, 285, 85, 62, 14421, 62, 9630, 1343, 352, 19841, 285, 85, 62, 9127, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 468, 62, 3866, 1442, 62, 30001, 13, 198, 220, 220, 220, 374, 69, 62, 10134, 62, 3866, 1442, 796, 2124, 82, 9945, 970, 7, 285, 85, 62, 14421, 62, 9630, 532, 352, 18189, 352, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 30001, 13, 198, 220, 220, 220, 42865, 25, 300, 83, 62, 30001, 62, 4868, 220, 41876, 4731, 62, 11487, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 30001, 62, 9521, 41876, 371, 27746, 3963, 4731, 13, 628, 220, 220, 220, 42865, 7, 6780, 62, 9688, 62, 9630, 8, 796, 7102, 35, 1303, 7, 42099, 611, 62, 6738, 62, 14421, 796, 450, 499, 62, 7942, 42243, 285, 85, 62, 14421, 62, 9630, 17852, 5188, 352, 6739, 628, 220, 220, 220, 16876, 21628, 62, 30001, 9429, 705, 4032, 13, 198, 220, 220, 220, 220, 220, 46341, 2043, 21628, 62, 30001, 5161, 705, 4032, 39319, 43679, 300, 83, 62, 30001, 62, 4868, 13, 198, 220, 220, 220, 220, 220, 300, 83, 62, 30001, 62, 9521, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 220, 220, 37994, 1312, 796, 705, 40, 6, 37430, 796, 705, 36, 48, 6, 3268, 198, 220, 220, 220, 220, 220, 220, 220, 7473, 11241, 3268, 300, 83, 62, 30001, 62, 4868, 357, 1051, 796, 1312, 3038, 796, 37430, 1877, 796, 11241, 1267, 198, 220, 220, 220, 220, 220, 6739, 198, 220, 220, 220, 17852, 5188, 13, 198, 220, 220, 220, 220, 220, 300, 83, 62, 30001, 62, 9521, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 220, 220, 357, 1051, 796, 705, 40, 6, 3038, 796, 705, 36, 48, 6, 1877, 796, 21628, 62, 30001, 1267, 198, 220, 220, 220, 220, 220, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 17579, 3185, 5161, 45079, 62, 30001, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 7278, 62, 30001, 43734, 16034, 300, 85, 62, 9688, 62, 9630, 33411, 1988, 3268, 300, 83, 62, 30001, 62, 9521, 13, 198, 220, 220, 220, 220, 220, 42865, 7, 6780, 62, 9630, 8, 796, 827, 12, 8658, 844, 13, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
CLASS zcl_abapgit_oo_serializer DEFINITION PUBLIC CREATE PUBLIC . PUBLIC SECTION. METHODS serialize_abap_clif_source IMPORTING !is_class_key TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception cx_sy_dyn_call_error . METHODS are_test_classes_skipped RETURNING VALUE(rv_return) TYPE abap_bool . METHODS serialize_locals_imp IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_locals_def IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_testclasses IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_macros IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . PROTECTED SECTION. PRIVATE SECTION. DATA mv_skip_testclass TYPE abap_bool . METHODS calculate_skip_testclass IMPORTING !it_source TYPE zif_abapgit_definitions=>ty_string_tt RETURNING VALUE(rv_skip_testclass) TYPE abap_bool . METHODS serialize_abap_old IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception . METHODS serialize_abap_new IMPORTING !is_clskey TYPE seoclskey RETURNING VALUE(rt_source) TYPE zif_abapgit_definitions=>ty_string_tt RAISING zcx_abapgit_exception cx_sy_dyn_call_error . METHODS remove_signatures CHANGING !ct_source TYPE zif_abapgit_definitions=>ty_string_tt . METHODS read_include IMPORTING !is_clskey TYPE seoclskey !iv_type TYPE seop_include_ext_app RETURNING VALUE(rt_source) TYPE seop_source_string . METHODS reduce CHANGING !ct_source TYPE zif_abapgit_definitions=>ty_string_tt . ENDCLASS. CLASS zcl_abapgit_oo_serializer IMPLEMENTATION. METHOD are_test_classes_skipped. rv_return = mv_skip_testclass. ENDMETHOD. METHOD calculate_skip_testclass. DATA: lv_line1 LIKE LINE OF it_source, lv_line2 LIKE LINE OF it_source. * when creating classes in Eclipse it automatically generates the * testclass include, but it is not needed, so skip to avoid * creating an extra file in the repository. * Also remove it if the content is manually removed, but * the class still thinks it contains tests rv_skip_testclass = abap_false. IF lines( it_source ) = 2. READ TABLE it_source INDEX 1 INTO lv_line1. ASSERT sy-subrc = 0. READ TABLE it_source INDEX 2 INTO lv_line2. ASSERT sy-subrc = 0. IF strlen( lv_line1 ) >= 3 AND lv_line1(3) = '*"*' AND lv_line2 IS INITIAL. rv_skip_testclass = abap_true. ENDIF. ELSEIF lines( it_source ) = 1. READ TABLE it_source INDEX 1 INTO lv_line1. ASSERT sy-subrc = 0. IF lv_line1 IS INITIAL OR ( strlen( lv_line1 ) >= 3 AND lv_line1(3) = '*"*' ) OR ( strlen( lv_line1 ) = 1 AND lv_line1(1) = '*' ). rv_skip_testclass = abap_true. ENDIF. ELSEIF lines( it_source ) = 0. rv_skip_testclass = abap_true. ENDIF. ENDMETHOD. METHOD read_include. DATA: ls_include TYPE progstruc. ASSERT iv_type = seop_ext_class_locals_def OR iv_type = seop_ext_class_locals_imp OR iv_type = seop_ext_class_macros OR iv_type = seop_ext_class_testclasses. ls_include-rootname = is_clskey-clsname. TRANSLATE ls_include-rootname USING ' ='. ls_include-categorya = iv_type(1). ls_include-codea = iv_type+1(4). * it looks like there is an issue in function module SEO_CLASS_GET_INCLUDE_SOURCE * on 750 kernels, where the READ REPORT without STATE addition does not * return the active version, this method is a workaround for this issue READ REPORT ls_include INTO rt_source STATE 'A'. ENDMETHOD. METHOD reduce. DATA: lv_source LIKE LINE OF ct_source, lv_found TYPE abap_bool. * skip files that only contain the standard comments lv_found = abap_false. LOOP AT ct_source INTO lv_source. IF strlen( lv_source ) >= 3 AND lv_source(3) <> '*"*'. lv_found = abap_true. ENDIF. ENDLOOP. IF lv_found = abap_false. CLEAR ct_source. ENDIF. ENDMETHOD. METHOD remove_signatures. * signatures messes up in CL_OO_SOURCE when deserializing and serializing * within same session DATA: lv_begin TYPE string, lv_end TYPE string, lv_remove TYPE abap_bool, lv_source LIKE LINE OF ct_source. "@TODO: Put under test CONCATENATE '* <SIGNATURE>------------------------------------' '---------------------------------------------------+' INTO lv_begin. CONCATENATE '* +------------------------------------------------' '--------------------------------------</SIGNATURE>' INTO lv_end. lv_remove = abap_false. LOOP AT ct_source INTO lv_source. IF lv_source = lv_begin. lv_remove = abap_true. ENDIF. IF lv_remove = abap_true. DELETE ct_source INDEX sy-tabix. ENDIF. IF lv_source = lv_end. lv_remove = abap_false. ENDIF. ENDLOOP. ENDMETHOD. METHOD serialize_abap_clif_source. rt_source = zcl_abapgit_exit=>get_instance( )->custom_serialize_abap_clif( is_class_key ). IF rt_source IS NOT INITIAL. RETURN. ENDIF. TRY. rt_source = serialize_abap_new( is_class_key ). CATCH cx_sy_dyn_call_error. rt_source = serialize_abap_old( is_class_key ). ENDTRY. " Call exit again for optional post-processing rt_source = zcl_abapgit_exit=>get_instance( )->custom_serialize_abap_clif( is_class_key = is_class_key it_source = rt_source ). 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_t100( ). 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. DATA ls_vseoclass TYPE vseoclass. CALL FUNCTION 'SEO_CLIF_GET' EXPORTING cifkey = is_clskey version = seoc_version_active IMPORTING class = ls_vseoclass EXCEPTIONS not_existing = 1 deleted = 2 model_only = 3 OTHERS = 4. IF sy-subrc <> 0 OR ls_vseoclass-with_unit_tests = abap_false. mv_skip_testclass = abap_true. RETURN. ENDIF. 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,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 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_proxy_config DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS: constructor, get_proxy_url IMPORTING iv_repo_url TYPE csequence OPTIONAL RETURNING VALUE(rv_proxy_url) TYPE string, get_proxy_port IMPORTING iv_repo_url TYPE csequence OPTIONAL RETURNING VALUE(rv_port) TYPE string, get_proxy_authentication IMPORTING iv_repo_url TYPE csequence OPTIONAL RETURNING VALUE(rv_auth) TYPE abap_bool. PRIVATE SECTION. DATA: mo_settings TYPE REF TO zcl_abapgit_settings, mi_exit TYPE REF TO zif_abapgit_exit. METHODS: bypass_proxy IMPORTING iv_repo_url TYPE csequence OPTIONAL RETURNING VALUE(rv_bypass_proxy) TYPE abap_bool. ENDCLASS. CLASS zcl_abapgit_proxy_config IMPLEMENTATION. METHOD constructor. mo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ). mi_exit = zcl_abapgit_exit=>get_instance( ). ENDMETHOD. METHOD get_proxy_authentication. IF bypass_proxy( iv_repo_url ) = abap_false. rv_auth = mo_settings->get_proxy_authentication( ). ENDIF. mi_exit->change_proxy_authentication( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_authentication = rv_auth ). ENDMETHOD. METHOD get_proxy_port. IF bypass_proxy( iv_repo_url ) = abap_false. rv_port = mo_settings->get_proxy_port( ). ENDIF. mi_exit->change_proxy_port( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_port = rv_port ). CONDENSE rv_port. ENDMETHOD. METHOD get_proxy_url. IF bypass_proxy( iv_repo_url ) = abap_false. rv_proxy_url = mo_settings->get_proxy_url( ). ENDIF. mi_exit->change_proxy_url( EXPORTING iv_repo_url = iv_repo_url CHANGING cv_proxy_url = rv_proxy_url ). ENDMETHOD. METHOD bypass_proxy. DATA lt_proxy_bypass TYPE zif_abapgit_definitions=>ty_range_proxy_bypass_url. lt_proxy_bypass = mo_settings->get_proxy_bypass( ). IF lt_proxy_bypass IS NOT INITIAL AND iv_repo_url IN lt_proxy_bypass. rv_bypass_proxy = abap_true. ENDIF. ENDMETHOD. ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 36436, 62, 11250, 5550, 20032, 17941, 44731, 25261, 29244, 6158, 44731, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 11, 628, 220, 220, 220, 220, 220, 651, 62, 36436, 62, 6371, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 36436, 62, 6371, 8, 41876, 4731, 11, 628, 220, 220, 220, 220, 220, 651, 62, 36436, 62, 634, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 634, 8, 41876, 4731, 11, 628, 220, 220, 220, 220, 220, 651, 62, 36436, 62, 41299, 3299, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 18439, 8, 41876, 450, 499, 62, 30388, 13, 628, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 42865, 25, 6941, 62, 33692, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 33692, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21504, 62, 37023, 220, 220, 220, 220, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 37023, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 17286, 62, 36436, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 6371, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 269, 43167, 39852, 2849, 1847, 198, 220, 220, 220, 220, 220, 220, 220, 30826, 4261, 15871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 26173, 8924, 7, 81, 85, 62, 1525, 6603, 62, 36436, 8, 41876, 450, 499, 62, 30388, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 36436, 62, 11250, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 628, 220, 220, 220, 6941, 62, 33692, 796, 1976, 565, 62, 397, 499, 18300, 62, 19276, 396, 62, 33692, 14804, 1136, 62, 39098, 7, 1267, 3784, 961, 7, 6739, 628, 220, 220, 220, 21504, 62, 37023, 796, 1976, 565, 62, 397, 499, 18300, 62, 37023, 14804, 1136, 62, 39098, 7, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 36436, 62, 41299, 3299, 13, 628, 220, 220, 220, 16876, 17286, 62, 36436, 7, 21628, 62, 260, 7501, 62, 6371, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 18439, 796, 6941, 62, 33692, 3784, 1136, 62, 36436, 62, 41299, 3299, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 21504, 62, 37023, 3784, 3803, 62, 36436, 62, 41299, 3299, 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, 220, 220, 220, 220, 220, 220, 220, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 41299, 3299, 796, 374, 85, 62, 18439, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 36436, 62, 634, 13, 628, 220, 220, 220, 16876, 17286, 62, 36436, 7, 21628, 62, 260, 7501, 62, 6371, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 634, 796, 6941, 62, 33692, 3784, 1136, 62, 36436, 62, 634, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 21504, 62, 37023, 3784, 3803, 62, 36436, 62, 634, 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, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 634, 796, 374, 85, 62, 634, 6739, 628, 220, 220, 220, 7102, 35, 24290, 374, 85, 62, 634, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 651, 62, 36436, 62, 6371, 13, 628, 220, 220, 220, 16876, 17286, 62, 36436, 7, 21628, 62, 260, 7501, 62, 6371, 1267, 796, 450, 499, 62, 9562, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 36436, 62, 6371, 796, 6941, 62, 33692, 3784, 1136, 62, 36436, 62, 6371, 7, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 21504, 62, 37023, 3784, 3803, 62, 36436, 62, 6371, 7, 198, 220, 220, 220, 220, 220, 7788, 15490, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 260, 7501, 62, 6371, 796, 21628, 62, 260, 7501, 62, 6371, 198, 220, 220, 220, 220, 220, 5870, 15567, 2751, 198, 220, 220, 220, 220, 220, 220, 220, 269, 85, 62, 36436, 62, 6371, 796, 374, 85, 62, 36436, 62, 6371, 6739, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 17286, 62, 36436, 13, 628, 220, 220, 220, 42865, 300, 83, 62, 36436, 62, 1525, 6603, 41876, 1976, 361, 62, 397, 499, 18300, 62, 4299, 50101, 14804, 774, 62, 9521, 62, 36436, 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,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_one_exporting 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_one_exporting IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_prefer_returning( ). ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( ' START-OF-SELECTION. ' ) ( ' CLASS example DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS get_name EXPORTING result TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD get_name. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( ' START-OF-SELECTION. ' ) ( ' CLASS example DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS get_name RETURNING VALUE(result) TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD get_name. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( 'REPORT y_example. ' ) ( ' START-OF-SELECTION. ' ) ( ' CLASS example DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS get_name EXPORTING result TYPE string. "#EC PREFER_RET ' ) ( ' ENDCLASS. ' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD get_name. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_two_exportings DEFINITION INHERITING FROM ltc_one_exporting FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_two_exportings IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( ' START-OF-SELECTION. ' ) ( ' CLASS example DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS get_contact EXPORTING name TYPE string ' ) ( ' email TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD get_contact. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_multiple_one_exporting DEFINITION INHERITING FROM y_unit_test_base FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_cut REDEFINITION. METHODS get_expected_count REDEFINITION. METHODS get_code_with_issue REDEFINITION. METHODS get_code_without_issue REDEFINITION. METHODS get_code_with_exemption REDEFINITION. ENDCLASS. CLASS ltc_multiple_one_exporting IMPLEMENTATION. METHOD get_cut. result ?= NEW y_check_prefer_returning( ). ENDMETHOD. METHOD get_expected_count. result = 3. ENDMETHOD. METHOD get_code_with_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( ' START-OF-SELECTION. ' ) ( ' CLASS example DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS get_name EXPORTING result TYPE string. ' ) ( ' METHODS get_age EXPORTING result TYPE string. ' ) ( ' METHODS get_email EXPORTING result TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD get_name. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD get_age. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD get_email. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_without_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( ' START-OF-SELECTION. ' ) ( ' CLASS example DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS get_name RETURNING VALUE(result) TYPE string. ' ) ( ' METHODS get_age RETURNING VALUE(result) TYPE string. ' ) ( ' METHODS get_email RETURNING VALUE(result) TYPE string. ' ) ( ' ENDCLASS. ' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD get_name. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD get_age. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD get_email. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. METHOD get_code_with_exemption. result = VALUE #( ( 'REPORT y_example. ' ) ( ' START-OF-SELECTION. ' ) ( ' CLASS example DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS get_name EXPORTING result TYPE string. "#EC PREFER_RET ' ) ( ' METHODS get_age EXPORTING result TYPE string. "#EC PREFER_RET ' ) ( ' METHODS get_email EXPORTING result TYPE string. "#EC PREFER_RET ' ) ( ' ENDCLASS. ' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD get_name. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD get_age. ' ) ( ' ENDMETHOD. ' ) ( ' METHOD get_email. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS. CLASS ltc_standard_table DEFINITION INHERITING FROM ltc_one_exporting FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PROTECTED SECTION. METHODS get_code_without_issue REDEFINITION. ENDCLASS. CLASS ltc_standard_table IMPLEMENTATION. METHOD get_code_without_issue. result = VALUE #( ( 'REPORT y_example. ' ) ( ' START-OF-SELECTION. ' ) ( ' CLASS example DEFINITION. ' ) ( ' PUBLIC SECTION. ' ) ( ' METHODS get_entries EXPORTING table TYPE STANDARD TABLE. ' ) ( ' ENDCLASS. ' ) ( ' CLASS example IMPLEMENTATION. ' ) ( ' METHOD get_entries. ' ) ( ' ENDMETHOD. ' ) ( ' ENDCLASS. ' ) ). ENDMETHOD. ENDCLASS.
[ 31631, 300, 23047, 62, 505, 62, 1069, 26527, 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, 505, 62, 1069, 26527, 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, 3866, 2232, 62, 7783, 278, 7, 6739, 198, 220, 23578, 49273, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 4480, 62, 21949, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 33303, 12, 19238, 12, 46506, 2849, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 42715, 1672, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 337, 36252, 50, 651, 62, 3672, 7788, 15490, 2751, 1255, 41876, 4731, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 220, 220, 42715, 1672, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 651, 62, 3672, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 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, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 33303, 12, 19238, 12, 46506, 2849, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 42715, 1672, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 337, 36252, 50, 651, 62, 3672, 30826, 4261, 15871, 26173, 8924, 7, 20274, 8, 41876, 4731, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 220, 220, 42715, 1672, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 651, 62, 3672, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 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, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 33303, 12, 19238, 12, 46506, 2849, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 42715, 1672, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 337, 36252, 50, 651, 62, 3672, 7788, 15490, 2751, 1255, 41876, 4731, 13, 25113, 2943, 22814, 24302, 62, 26087, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 31631, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 220, 220, 42715, 1672, 30023, 2538, 10979, 6234, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 337, 36252, 651, 62, 3672, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 23578, 49273, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 23578, 31631, 13, 705, 1267, 198, 220, 220, 220, 6739, 198, 220, 23578, 49273, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 300, 23047, 62, 11545, 62, 39344, 654, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 300, 23047, 62, 505, 62, 1069, 26527, 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, 8189, 62, 19419, 62, 21949, 23848, 36, 20032, 17941, 13, 198, 10619, 31631, 13, 198, 198, 31631, 300, 23047, 62, 11545, 62, 39344, 654, 30023, 2538, 10979, 6234, 13, 628, 220, 337, 36252, 651, 62, 8189, 62, 19419, 62, 21949, 13, 198, 220, 220, 220, 1255, 796, 26173, 8924, 1303, 7, 198, 220, 220, 220, 220, 220, 357, 705, 2200, 15490, 331, 62, 20688, 13, 705, 1267, 628, 220, 220, 220, 220, 220, 357, 705, 33303, 12, 19238, 12, 46506, 2849, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 42715, 1672, 5550, 20032, 17941, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 44731, 44513, 13, 705, 1267, 198, 220, 220, 220, 220, 220, 357, 705, 220, 220, 220, 220, 220, 220, 337, 36252, 50, 651 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
CLASS zcl_abapgit_gui_page_syntax DEFINITION PUBLIC FINAL CREATE PUBLIC INHERITING FROM zcl_abapgit_gui_page. PUBLIC SECTION. METHODS: constructor IMPORTING io_repo TYPE REF TO zcl_abapgit_repo. PROTECTED SECTION. DATA: mo_repo TYPE REF TO zcl_abapgit_repo. METHODS: render_content REDEFINITION. ENDCLASS. CLASS zcl_abapgit_gui_page_syntax IMPLEMENTATION. METHOD constructor. super->constructor( ). ms_control-page_title = 'SYNTAX CHECK'. mo_repo = io_repo. ENDMETHOD. " constructor. METHOD render_content. DATA: li_syntax_check TYPE REF TO zif_abapgit_code_inspector, lt_result TYPE scit_alvlist, ls_result LIKE LINE OF lt_result. li_syntax_check = zcl_abapgit_factory=>get_syntax_check( iv_package = mo_repo->get_package( ) ). lt_result = li_syntax_check->run( ). CREATE OBJECT ro_html. ro_html->add( '<div class="toc">' ). IF lines( lt_result ) = 0. ro_html->add( 'No errors' ). ENDIF. LOOP AT lt_result INTO ls_result. ro_html->add( |{ ls_result-objtype } { ls_result-objname } { ls_result-kind } { ls_result-text }<br>| ). ENDLOOP. ro_html->add( '</div>' ). ENDMETHOD. "render_content ENDCLASS.
[ 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 1837, 41641, 5550, 20032, 17941, 44731, 25261, 29244, 6158, 44731, 198, 220, 220, 220, 3268, 16879, 2043, 2751, 16034, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 13, 628, 220, 44731, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 23772, 198, 220, 220, 220, 220, 220, 220, 220, 30023, 9863, 2751, 33245, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 13, 628, 220, 48006, 9782, 1961, 44513, 13, 198, 220, 220, 220, 42865, 25, 6941, 62, 260, 7501, 41876, 4526, 37, 5390, 1976, 565, 62, 397, 499, 18300, 62, 260, 7501, 13, 628, 220, 220, 220, 337, 36252, 50, 25, 198, 220, 220, 220, 220, 220, 8543, 62, 11299, 23848, 36, 20032, 17941, 13, 198, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1976, 565, 62, 397, 499, 18300, 62, 48317, 62, 7700, 62, 1837, 41641, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 2208, 3784, 41571, 273, 7, 6739, 198, 220, 220, 220, 13845, 62, 13716, 12, 7700, 62, 7839, 796, 705, 23060, 45, 5603, 55, 5870, 25171, 4458, 198, 220, 220, 220, 6941, 62, 260, 7501, 796, 33245, 62, 260, 7501, 13, 198, 220, 23578, 49273, 13, 220, 366, 23772, 13, 628, 198, 220, 337, 36252, 8543, 62, 11299, 13, 628, 220, 220, 220, 42865, 25, 7649, 62, 1837, 41641, 62, 9122, 41876, 4526, 37, 5390, 1976, 361, 62, 397, 499, 18300, 62, 8189, 62, 1040, 806, 273, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 300, 83, 62, 20274, 220, 220, 220, 220, 220, 220, 41876, 629, 270, 62, 282, 85, 4868, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 43979, 62, 20274, 220, 220, 220, 220, 220, 220, 34178, 48920, 3963, 300, 83, 62, 20274, 13, 628, 220, 220, 220, 7649, 62, 1837, 41641, 62, 9122, 796, 1976, 565, 62, 397, 499, 18300, 62, 69, 9548, 14804, 1136, 62, 1837, 41641, 62, 9122, 7, 21628, 62, 26495, 796, 6941, 62, 260, 7501, 3784, 1136, 62, 26495, 7, 1267, 6739, 628, 220, 220, 220, 300, 83, 62, 20274, 796, 7649, 62, 1837, 41641, 62, 9122, 3784, 5143, 7, 6739, 628, 220, 220, 220, 29244, 6158, 25334, 23680, 686, 62, 6494, 13, 198, 220, 220, 220, 686, 62, 6494, 3784, 2860, 7, 705, 27, 7146, 1398, 2625, 40301, 5320, 6, 6739, 628, 220, 220, 220, 16876, 3951, 7, 300, 83, 62, 20274, 1267, 796, 657, 13, 198, 220, 220, 220, 220, 220, 686, 62, 6494, 3784, 2860, 7, 705, 2949, 8563, 6, 6739, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 220, 220, 17579, 3185, 5161, 300, 83, 62, 20274, 39319, 43979, 62, 20274, 13, 198, 220, 220, 220, 220, 220, 686, 62, 6494, 3784, 2860, 7, 930, 90, 43979, 62, 20274, 12, 26801, 4906, 1782, 1391, 43979, 62, 20274, 12, 26801, 3672, 1782, 1391, 43979, 62, 20274, 12, 11031, 1782, 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 ]
-- Listing 8.11.sql -- ABAP-Programm zum Test der CDS-Tabellenfunktion aus dem Beispiel REPORT zjb_test . SELECT * FROM z_country_text INTO TABLE @DATA(lt_country) ##db_feature_mode[amdp_table_function]. cl_demo_output=>display( lt_country ).
[ 438, 7343, 278, 807, 13, 1157, 13, 25410, 201, 198, 438, 9564, 2969, 12, 15167, 76, 1976, 388, 6208, 4587, 327, 5258, 12, 33349, 695, 33701, 2954, 5378, 257, 385, 1357, 1355, 8802, 8207, 201, 198, 201, 198, 2200, 15490, 1976, 73, 65, 62, 9288, 764, 201, 198, 201, 198, 46506, 1635, 201, 198, 220, 220, 220, 16034, 1976, 62, 19315, 62, 5239, 201, 198, 220, 220, 220, 39319, 43679, 2488, 26947, 7, 2528, 62, 19315, 8, 201, 198, 220, 220, 220, 22492, 9945, 62, 30053, 62, 14171, 58, 321, 26059, 62, 11487, 62, 8818, 4083, 201, 198, 201, 198, 565, 62, 9536, 78, 62, 22915, 14804, 13812, 7, 220, 300, 83, 62, 19315, 6739, 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 ]
class ZCL_ABAPGIT_OBJECT_OSOD definition public inheriting from ZCL_ABAPGIT_OBJECTS_SUPER create public . public section. interfaces ZIF_ABAPGIT_OBJECT . methods CONSTRUCTOR importing !IS_ITEM type ZIF_ABAPGIT_DEFINITIONS=>TY_ITEM !IV_LANGUAGE type SPRAS . protected section. constants MC_OBJVERS_D type ROOSOURCE-OBJVERS value 'D' ##NO_TEXT. constants MC_OBJVERS_A type ROOSOURCE-OBJVERS value 'A' ##NO_TEXT. data MV_OBJVERS type ROOSOURCE-OBJVERS . private section. types: BEGIN OF ty_dd04_texts, ddlanguage TYPE dd04t-ddlanguage, ddtext TYPE dd04t-ddtext, reptext TYPE dd04t-reptext, scrtext_s TYPE dd04t-scrtext_s, scrtext_m TYPE dd04t-scrtext_m, scrtext_l TYPE dd04t-scrtext_l, END OF ty_dd04_texts . types: tt_dd04_texts TYPE STANDARD TABLE OF ty_dd04_texts . ENDCLASS. CLASS ZCL_ABAPGIT_OBJECT_OSOD IMPLEMENTATION. METHOD constructor. CALL METHOD super->constructor( is_item = is_item iv_language = iv_language ). me->mv_objvers = me->mc_objvers_d. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE tstpnm FROM roosource INTO rv_user WHERE oltpsource = me->ms_item-obj_name AND objvers = me->mv_objvers. IF sy-subrc <> 0. rv_user = c_user_unknown. ENDIF. ENDMETHOD. METHOD ZIF_ABAPGIT_OBJECT~DELETE. * We do not support deletion for now ENDMETHOD. METHOD zif_abapgit_object~deserialize. DATA: ls_oltpsource TYPE rsaot_s_osource, lt_oltpsource_field TYPE rsaot_t_osfield, lt_oltpsource_text TYPE rsaot_t_ostext, lt_messages TYPE rsaot_t_messages, lv_subrc_rsa1 TYPE sy-subrc, lv_subrc TYPE sy-subrc, ls_new_oltpsource TYPE rsaot_s_osgen, lt_new_oltpsource_field TYPE rsaot_t_osgenfd, ls_new_oltpsource_field LIKE LINE OF lt_new_oltpsource_field[], lt_new_oltpsource_text TYPE rsaot_t_osgentext, ls_new_oltpsource_text LIKE LINE OF lt_new_oltpsource_text[], ls_rsadmin_content_system_org TYPE rsadmin, ls_rsadmin_content_system_tmp TYPE rsadmin, lv_trnum TYPE trkorr, lv_message_text TYPE c LENGTH 1024. FIELD-SYMBOLS: <ls_oltpsource_text> LIKE LINE OF lt_oltpsource_text[], <ls_oltpsource_field> LIKE LINE OF lt_oltpsource_field[], <ls_message> LIKE LINE OF lt_messages[]. ************************************************************************ * Determine the transport to be used ************************************************************************ lv_trnum = zcl_abapgit_default_transport=>get_instance( )->get( )-ordernum. ************************************************************************ * Get the data from the input XML tree ************************************************************************ io_xml->read( EXPORTING iv_name = 'HEADER' CHANGING cg_data = ls_oltpsource ). io_xml->read( EXPORTING iv_name = 'TEXT' CHANGING cg_data = lt_oltpsource_text[] ). io_xml->read( EXPORTING iv_name = 'FIELDS' CHANGING cg_data = lt_oltpsource_field[] ). ************************************************************************* ** Fill the identifiers back, which has been cleaned by the serializer ************************************************************************* LOOP AT lt_oltpsource_text[] ASSIGNING <ls_oltpsource_text>. <ls_oltpsource_text>-oltpsource = ls_new_oltpsource-oltpsource. <ls_oltpsource_text>-objvers = me->mv_objvers. ENDLOOP. UNASSIGN <ls_oltpsource_text>. LOOP AT lt_oltpsource_field[] ASSIGNING <ls_oltpsource_field>. <ls_oltpsource_field>-oltpsource = ls_new_oltpsource-oltpsource. <ls_oltpsource_field>-objvers = me->mv_objvers. ENDLOOP. UNASSIGN <ls_oltpsource_field>. ************************************************************************ * Prepare the values for the API call ************************************************************************ MOVE-CORRESPONDING ls_oltpsource TO ls_new_oltpsource. ls_oltpsource-objvers = me->mv_objvers. ls_new_oltpsource-structure = ls_oltpsource-exstruct. LOOP AT lt_oltpsource_field[] ASSIGNING <ls_oltpsource_field>. CLEAR ls_new_oltpsource_field. MOVE-CORRESPONDING <ls_oltpsource_field> TO ls_new_oltpsource_field. APPEND ls_new_oltpsource_field TO lt_new_oltpsource_field[]. ENDLOOP. UNASSIGN <ls_oltpsource_field>. LOOP AT lt_oltpsource_text[] ASSIGNING <ls_oltpsource_text>. CLEAR ls_new_oltpsource_text. MOVE-CORRESPONDING <ls_oltpsource_text> TO ls_new_oltpsource_text. ls_new_oltpsource_text-oltpsource = ls_new_oltpsource-oltpsource. APPEND ls_new_oltpsource_text TO lt_new_oltpsource_text[]. ENDLOOP. UNASSIGN <ls_oltpsource_text>. ************************************************************************ * Validate: * - the object name * - the package * Either create it in some namespace or as Z or Y object ************************************************************************ IF ls_new_oltpsource-oltpsource+0(1) = 'Z' OR ls_new_oltpsource-oltpsource+0(1) = 'Y' OR ls_new_oltpsource-oltpsource+0(1) = '/'. ELSE. zcx_abapgit_exception=>raise( |Invalid OLT Source Name { ls_new_oltpsource-oltpsource } | ) ##NO_TEXT. ENDIF. IF iv_package+0(1) = 'Z' OR iv_package+0(1) = 'Y' OR iv_package+0(1) = '/'. ELSE. zcx_abapgit_exception=>raise( |Invalid Package { iv_package } | ) ##NO_TEXT. ENDIF. ************************************************************************ * Read the current setting of RSADMIN-CONTENT_SYSTEM * Set the value of RSADMIN-CONTENT_SYSTEM: * - value ' ', if we are to create the active version, in that case OSOA transport is to be created * - value 'X', if we are to create the delivered version, in that case OSOD transport is to be created ************************************************************************ SELECT SINGLE * FROM rsadmin INTO ls_rsadmin_content_system_org WHERE object = 'CONTENT_SYSTEM'. IF sy-subrc <> 0. ASSERT 1 = 2. ENDIF. ls_rsadmin_content_system_tmp = ls_rsadmin_content_system_org. IF me->mv_objvers = me->mc_objvers_d. ls_rsadmin_content_system_tmp-value = abap_true. ELSE. ls_rsadmin_content_system_tmp-value = abap_false. ENDIF. UPDATE rsadmin FROM ls_rsadmin_content_system_tmp. ************************************************************************ * Create the OLTP Source ************************************************************************ CALL FUNCTION 'RSA1_OLTPSOURCE_GENERATE' EXPORTING i_save_despite_warning = abap_true i_s_oltpsource = ls_new_oltpsource i_t_oltpsourcefields = lt_new_oltpsource_field[] i_t_ostext = lt_new_oltpsource_text[] i_with_dynpro = rsaot_c_flag-off i_request = lv_trnum i_devclass = iv_package i_objvers = me->mv_objvers IMPORTING e_t_messages = lt_messages[] e_subrc = lv_subrc_rsa1 EXCEPTIONS internal_error = 1 transport_error = 2 locked = 3 inconsistent = 4 cancelled = 5 OTHERS = 6. lv_subrc = sy-subrc. LOOP AT lt_messages[] ASSIGNING <ls_message>. MESSAGE ID <ls_message>-msgid TYPE <ls_message>-msgty NUMBER <ls_message>-msgno WITH <ls_message>-msgv1 <ls_message>-msgv2 <ls_message>-msgv3 <ls_message>-msgv4 INTO lv_message_text. ii_log->add( iv_msg = lv_message_text iv_type = <ls_message>-msgty is_item = me->ms_item ). ENDLOOP. UNASSIGN <ls_message>. ************************************************************************ * Restore the original value of RSADMIN-CONTENT_SYSTEM ************************************************************************ UPDATE rsadmin FROM ls_rsadmin_content_system_org. ************************************************************************ * Do the error handling ************************************************************************ IF lv_subrc <> 0 OR lv_subrc_rsa1 <> 0. zcx_abapgit_exception=>raise( 'Failed to create the object' ) ##NO_TEXT. ENDIF. ENDMETHOD. METHOD zif_abapgit_object~exists. DATA: ls_roosource TYPE roosource. SELECT SINGLE oltpsource FROM roosource INTO ls_roosource-oltpsource WHERE oltpsource = me->ms_item-obj_name AND objvers = me->mv_objvers. 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( ). 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. SET PARAMETER ID 'RS1' FIELD space. SET PARAMETER ID 'RS2' FIELD space. SET PARAMETER ID 'RS3' FIELD space. SET PARAMETER ID 'RS1' FIELD ms_item-obj_name. CALL TRANSACTION 'RSO2'. ENDMETHOD. METHOD zif_abapgit_object~serialize. DATA: ls_oltpsource TYPE rsaot_s_osource, lt_oltpsource_field TYPE rsaot_t_osfield, lt_oltpsource_text TYPE rsaot_t_ostext. FIELD-SYMBOLS: <ls_oltpsource_text> LIKE LINE OF lt_oltpsource_text[], <ls_oltpsource_field> LIKE LINE OF lt_oltpsource_field[]. ************************************************************************ * Read the data ************************************************************************ ls_oltpsource-oltpsource = me->ms_item-obj_name. CALL FUNCTION 'RSA1_SINGLE_OLTPSOURCE_GET' EXPORTING i_oltpsource = ls_oltpsource-oltpsource i_objvers = me->mv_objvers IMPORTING e_s_oltpsource = ls_oltpsource e_t_fields = lt_oltpsource_field[] e_t_texts = lt_oltpsource_text[] EXCEPTIONS no_authority = 1 not_exist = 2 inconsistent = 3 OTHERS = 4. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'Not found in ROOSOURCE' ) ##NO_TEXT. ASSERT 1 = 2. ENDIF. ************************************************************************ * Remove the identifiers which are not needed (do not repeat them, * make the file smaller and cleaner ************************************************************************ CLEAR ls_oltpsource-tstpnm. CLEAR ls_oltpsource-tstpdat. CLEAR ls_oltpsource-tstptim. CLEAR ls_oltpsource-objvers. CLEAR ls_oltpsource-txtsh. CLEAR ls_oltpsource-txtmd. CLEAR ls_oltpsource-txtlg. LOOP AT lt_oltpsource_text[] ASSIGNING <ls_oltpsource_text>. CLEAR <ls_oltpsource_text>-oltpsource. CLEAR <ls_oltpsource_text>-objvers. ENDLOOP. UNASSIGN <ls_oltpsource_text>. LOOP AT lt_oltpsource_field[] ASSIGNING <ls_oltpsource_field>. CLEAR <ls_oltpsource_field>-oltpsource. CLEAR <ls_oltpsource_field>-objvers. IF <ls_oltpsource_field>-selection IS INITIAL. "In case of customer or partner case we cannot leave the value blank, because it will be then set by the API to 3, "which will result in the field to be hidden <ls_oltpsource_field>-selection = 'P'. ENDIF. ENDLOOP. UNASSIGN <ls_oltpsource_field>. ************************************************************************ * Pass the data to the output XML tree ************************************************************************ io_xml->add( iv_name = 'HEADER' ig_data = ls_oltpsource ). io_xml->add( iv_name = 'TEXT' ig_data = lt_oltpsource_text[] ). io_xml->add( iv_name = 'FIELDS' ig_data = lt_oltpsource_field[] ). ENDMETHOD. ENDCLASS.
[ 4871, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 2640, 3727, 6770, 198, 220, 1171, 198, 220, 10639, 1780, 422, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 41, 2943, 4694, 62, 40331, 1137, 198, 220, 2251, 1171, 764, 198, 198, 11377, 2665, 13, 628, 220, 20314, 1168, 5064, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 764, 628, 220, 5050, 7102, 46126, 1581, 198, 220, 220, 220, 33332, 198, 220, 220, 220, 220, 220, 5145, 1797, 62, 2043, 3620, 2099, 1168, 5064, 62, 6242, 2969, 38, 2043, 62, 7206, 20032, 2043, 11053, 14804, 9936, 62, 2043, 3620, 198, 220, 220, 220, 220, 220, 5145, 3824, 62, 43, 15567, 52, 11879, 2099, 49068, 1921, 764, 198, 24326, 2665, 13, 628, 220, 38491, 13122, 62, 9864, 41, 28884, 62, 35, 2099, 15107, 2640, 31033, 12, 9864, 41, 28884, 1988, 705, 35, 6, 22492, 15285, 62, 32541, 13, 198, 220, 38491, 13122, 62, 9864, 41, 28884, 62, 32, 2099, 15107, 2640, 31033, 12, 9864, 41, 28884, 1988, 705, 32, 6, 22492, 15285, 62, 32541, 13, 198, 220, 1366, 32947, 62, 9864, 41, 28884, 2099, 15107, 2640, 31033, 12, 9864, 41, 28884, 764, 198, 19734, 2665, 13, 628, 220, 3858, 25, 198, 220, 220, 220, 347, 43312, 3963, 1259, 62, 1860, 3023, 62, 5239, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 16129, 41876, 49427, 3023, 83, 12, 1860, 16129, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 49427, 5239, 220, 220, 220, 220, 41876, 49427, 3023, 83, 12, 1860, 5239, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 28761, 2302, 220, 220, 220, 41876, 49427, 3023, 83, 12, 260, 457, 2302, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6040, 5239, 62, 82, 220, 41876, 49427, 3023, 83, 12, 1416, 81, 5239, 62, 82, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6040, 5239, 62, 76, 220, 41876, 49427, 3023, 83, 12, 1416, 81, 5239, 62, 76, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 6040, 5239, 62, 75, 220, 41876, 49427, 3023, 83, 12, 1416, 81, 5239, 62, 75, 11, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 23578, 3963, 1259, 62, 1860, 3023, 62, 5239, 82, 764, 198, 220, 3858, 25, 198, 220, 220, 220, 256, 83, 62, 1860, 3023, 62, 5239, 82, 41876, 49053, 9795, 43679, 3963, 1259, 62, 1860, 3023, 62, 5239, 82, 764, 198, 10619, 31631, 13, 628, 198, 198, 31631, 1168, 5097, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 62, 2640, 3727, 30023, 2538, 10979, 6234, 13, 628, 198, 220, 337, 36252, 23772, 13, 198, 220, 220, 220, 42815, 337, 36252, 2208, 3784, 41571, 273, 7, 198, 220, 220, 220, 220, 220, 220, 220, 318, 62, 9186, 220, 220, 220, 220, 796, 318, 62, 9186, 198, 220, 220, 220, 220, 220, 220, 220, 21628, 62, 16129, 796, 21628, 62, 16129, 6739, 198, 220, 220, 220, 502, 3784, 76, 85, 62, 26801, 690, 796, 502, 3784, 23209, 62, 26801, 690, 62, 67, 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, 33493, 311, 2751, 2538, 256, 301, 79, 21533, 16034, 686, 418, 1668, 39319, 374, 85, 62, 7220, 198, 220, 220, 220, 220, 220, 33411, 198, 220, 220, 220, 220, 220, 220, 220, 267, 2528, 862, 1668, 796, 502, 3784, 907, 62, 9186, 12, 26801, 62, 3672, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 26181, 690, 220, 220, 220, 796, 502, 3784, 76, 85, 62, 26801, 690, 13, 198, 220, 220, 220, 16876, 827, 12, 7266, 6015, 1279, 29, 657, 13, 198, 220, 220, 220, 220, 220, 374, 85, 62, 7220, 796, 269, 62, 7220, 62, 34680, 13, 198, 220, 220, 220, 23578, 5064, 13, 628, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1168, 5064, 62, 6242, 2969, 38, 2043, 62, 9864, 23680, 93, 7206, 2538, 9328, 13, 198, 198, 9, 775, 466, 407, 1104, 39948, 329, 783, 628, 198, 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, 198, 220, 220, 220, 220, 220, 43979, 62, 5978, 862, 1668, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 374, 11400, 313, 62, 82, 62, 418, 1668, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 5978, 862, 1668, 62, 3245, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 374, 11400, 313, 62, 83, 62, 418, 3245, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 5978, 862, 1668, 62, 5239, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 374, 11400, 313, 62, 83, 62, 455, 2302, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 37348, 1095, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 374, 11400, 313, 62, 83, 62, 37348, 1095, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7266, 6015, 62, 3808, 64, 16, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 12, 7266, 6015, 11, 198, 220, 220, 220, 220, 220, 300, 85, 62, 7266, 6015, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 827, 12, 7266, 6015, 11, 198, 220, 220, 220, 220, 220, 43979, 62, 3605, 62, 5978, 862, 1668, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 41876, 374, 11400, 313, 62, 82, 62, 418, 5235, 11, 198, 220, 220, 220, 220, 220, 300, 83, 62, 3605, 62, 5978, 862, 1668, 62, 3245, 220, 220, 220, 220, 220, 220, 41876, 374, 11400, 313, 62, 83, 62, 418, 5235, 16344, 11, 198, 220, 220, 220, 220, 220 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
******************************************************************* * System-defined Include-files. * ******************************************************************* INCLUDE LYDK_ALV_FCATTOP. " Global Data INCLUDE LYDK_ALV_FCATUXX. " Function Modules ******************************************************************* * User-defined Include-files (if necessary). * ******************************************************************* * INCLUDE LYDK_ALV_FCATF... " Subroutines * INCLUDE LYDK_ALV_FCATO... " PBO-Modules * INCLUDE LYDK_ALV_FCATI... " PAI-Modules * INCLUDE LYDK_ALV_FCATE... " Events * INCLUDE LYDK_ALV_FCATP... " Local class implement. * INCLUDE LYDK_ALV_FCATT99. " 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, 35755, 42, 62, 1847, 53, 62, 4851, 17139, 3185, 13, 220, 220, 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, 35755, 42, 62, 1847, 53, 62, 4851, 1404, 52, 8051, 13, 220, 220, 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, 35755, 42, 62, 1847, 53, 62, 4851, 1404, 37, 986, 220, 220, 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, 35755, 42, 62, 1847, 53, 62, 4851, 1404, 46, 986, 220, 220, 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, 35755, 42, 62, 1847, 53, 62, 4851, 1404, 40, 986, 220, 220, 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, 35755, 42, 62, 1847, 53, 62, 4851, 6158, 986, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 366, 18715, 198, 9, 3268, 5097, 52, 7206, 406, 35755, 42, 62, 1847, 53, 62, 4851, 1404, 47, 986, 220, 220, 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, 35755, 42, 62, 1847, 53, 62, 4851, 17139, 2079, 13, 220, 220, 220, 220, 220, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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ities FOR UPDATE Finance. METHODS read FOR READ IMPORTING keys FOR READ Finance RESULT result. METHODS rba_Document FOR READ IMPORTING keys_rba FOR READ Finance\_doc FULL result_requested RESULT result LINK association_links. ENDCLASS. CLASS lhc_Finance IMPLEMENTATION. METHOD update. CHECK entities IS NOT INITIAL. SELECT * FROM ztmaf_finance FOR ALL ENTRIES IN @entities WHERE mafid = @entities-mafid AND matnr = @entities-material INTO TABLE @DATA(finances). LOOP AT entities ASSIGNING FIELD-SYMBOL(<entity>). ASSIGN finances[ mafid = <entity>-mafid matnr = <entity>-material ] TO FIELD-SYMBOL(<finance>). CHECK sy-subrc = 0. <finance>-peinh = COND #( WHEN <entity>-%control-PriceUnit IS NOT INITIAL THEN <entity>-PriceUnit ELSE <finance>-peinh ). <finance>-wrbtr = COND #( WHEN <entity>-%control-Price IS NOT INITIAL THEN <entity>-Price ELSE <finance>-wrbtr ). MODIFY ztmaf_finance FROM <finance>. APPEND VALUE #( mafid = <finance>-mafid material = <finance>-matnr ) TO mapped-finance. ENDLOOP. ENDMETHOD. METHOD read. LOOP AT keys ASSIGNING FIELD-SYMBOL(<key>). SELECT SINGLE * FROM ztmaf_finance WHERE mafid = @<key>-mafid AND matnr = @<key>-material INTO @DATA(finance). CHECK sy-subrc = 0. INSERT CORRESPONDING #( finance MAPPING TO ENTITY ) INTO TABLE result. ENDLOOP. ENDMETHOD. METHOD rba_document. CHECK keys_rba IS NOT INITIAL. SELECT * FROM ztmaf_doc FOR ALL ENTRIES IN @keys_rba WHERE mafid = @keys_rba-mafid INTO TABLE @DATA(docs). LOOP AT keys_rba ASSIGNING FIELD-SYMBOL(<key_rba>). LOOP AT docs ASSIGNING FIELD-SYMBOL(<doc>) WHERE mafid = <key_rba>-mafid. INSERT VALUE #( source-%key = <key_rba>-%key target-%key = VALUE #( mafid = <doc>-mafid ) ) INTO TABLE association_links . IF result_requested = abap_true. INSERT CORRESPONDING #( <doc> MAPPING TO ENTITY ) INTO TABLE result. ENDIF. ENDLOOP. ENDLOOP. ENDMETHOD. ENDCLASS.
[ 31631, 300, 71, 66, 62, 37, 14149, 5550, 20032, 17941, 3268, 16879, 2043, 2751, 16034, 537, 62, 397, 499, 62, 46571, 62, 30281, 13, 198, 220, 4810, 3824, 6158, 44513, 13, 198, 220, 220, 220, 337, 36252, 50, 4296, 7473, 19164, 5064, 56, 30023, 9863, 2751, 12066, 7473, 35717, 15007, 13, 198, 220, 220, 220, 337, 36252, 50, 1100, 7473, 20832, 30023, 9863, 2751, 8251, 7473, 20832, 15007, 15731, 16724, 1255, 13, 628, 220, 220, 220, 337, 36252, 50, 374, 7012, 62, 24941, 7473, 20832, 198, 220, 220, 220, 220, 220, 30023, 9863, 2751, 8251, 62, 81, 7012, 7473, 20832, 15007, 59, 62, 15390, 34958, 1255, 62, 25927, 276, 15731, 16724, 1255, 34426, 8112, 62, 28751, 13, 198, 10619, 31631, 13, 628, 198, 31631, 300, 71, 66, 62, 37, 14149, 30023, 2538, 10979, 6234, 13, 198, 220, 337, 36252, 4296, 13, 198, 220, 220, 220, 5870, 25171, 12066, 3180, 5626, 3268, 2043, 12576, 13, 628, 220, 220, 220, 33493, 1635, 16034, 1976, 17209, 1878, 62, 69, 14149, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 11096, 12964, 5446, 11015, 3268, 2488, 298, 871, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 285, 1878, 312, 796, 2488, 298, 871, 12, 76, 1878, 312, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2603, 48624, 796, 2488, 298, 871, 12, 33665, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 43679, 2488, 26947, 7, 15643, 1817, 737, 628, 220, 220, 220, 17579, 3185, 5161, 12066, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 26858, 29, 737, 198, 220, 220, 220, 220, 220, 24994, 16284, 20903, 58, 285, 1878, 312, 796, 1279, 26858, 29, 12, 76, 1878, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2603, 48624, 796, 1279, 26858, 29, 12, 33665, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2361, 5390, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 69, 14149, 29, 737, 628, 220, 220, 220, 220, 220, 5870, 25171, 827, 12, 7266, 6015, 796, 657, 13, 628, 220, 220, 220, 220, 220, 1279, 69, 14149, 29, 12, 431, 259, 71, 796, 7102, 35, 1303, 7, 42099, 1279, 26858, 29, 12, 4, 13716, 12, 18124, 26453, 3180, 5626, 3268, 2043, 12576, 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, 42243, 1279, 26858, 29, 12, 18124, 26453, 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, 17852, 5188, 1279, 69, 14149, 29, 12, 431, 259, 71, 6739, 628, 220, 220, 220, 220, 220, 1279, 69, 14149, 29, 12, 18351, 65, 2213, 796, 7102, 35, 1303, 7, 42099, 1279, 26858, 29, 12, 4, 13716, 12, 18124, 3180, 5626, 3268, 2043, 12576, 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, 42243, 1279, 26858, 29, 12, 18124, 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, 17852, 5188, 1279, 69, 14149, 29, 12, 18351, 65, 2213, 6739, 628, 220, 220, 220, 220, 220, 19164, 5064, 56, 1976, 17209, 1878, 62, 69, 14149, 16034, 1279, 69, 14149, 28401, 628, 220, 220, 220, 220, 220, 43504, 10619, 26173, 8924, 1303, 7, 285, 1878, 312, 220, 220, 220, 796, 1279, 69, 14149, 29, 12, 76, 1878, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2587, 796, 1279, 69, 14149, 29, 12, 6759, 48624, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 1267, 5390, 27661, 12, 69, 14149, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 1100, 13, 198, 220, 220, 220, 17579, 3185, 5161, 8251, 24994, 3528, 15871, 18930, 24639, 12, 23060, 10744, 3535, 7, 27, 2539, 29, 737, 198, 220, 220, 220, 220, 220, 33493, 311, 2751, 2538, 1635, 16034, 1976, 17209, 1878, 62, 69, 14149, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 285, 1878, 312, 796, 2488, 27, 2539, 29, 12, 76, 1878, 312, 5357, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 2603, 48624, 796, 2488, 27, 2539, 29, 12, 33665, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 2488, 26947, 7, 69, 14149, 737, 628, 220, 220, 220, 220, 220, 5870, 25171, 827, 12, 7266, 6015, 796, 657, 13, 198, 220, 220, 220, 220, 220, 29194, 17395, 23929, 19535, 47, 18672, 2751, 1303, 7, 9604, 337, 24805, 2751, 5390, 47353, 9050, 1267, 39319, 43679, 1255, 13, 198, 220, 220, 220, 23578, 21982, 3185, 13, 198, 220, 23578, 49273, 13, 628, 198, 220, 337, 36252, 374, 7012, 62, 22897, 13, 198, 220, 220, 220, 5870, 25171, 8251, 62, 81, 7012, 3180, 5626, 3268, 2043, 12576, 13, 628, 220, 220, 220, 33493, 1635, 16034, 1976, 17209, 1878, 62, 15390, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 7473, 11096, 12964, 5446, 11015, 3268, 2488, 13083, 62, 81, 7012, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 33411, 285, 1878, 312, 796, 2488, 13083, 62, 81, 7012, 12, 76, 1878, 312, 198, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 39319, 43679, 2488, 26947, 7, 31628, 737, 628, 220, 220, 220, 17579, 3185, 5161, 8251, 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, 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