content
stringlengths 4
1.04M
| input_ids
sequencelengths 2
1.02k
| attention_mask
sequencelengths 2
1.02k
|
---|---|---|
CLASS zcl_abapgit_object_prog DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_program FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_tpool_i18n,
language TYPE langu,
textpool TYPE zif_abapgit_definitions=>ty_tpool_tt,
END OF ty_tpool_i18n .
TYPES:
ty_tpools_i18n TYPE STANDARD TABLE OF ty_tpool_i18n .
CONSTANTS c_longtext_id_prog TYPE dokil-id VALUE 'RE' ##NO_TEXT.
METHODS deserialize_with_ext
IMPORTING
!is_progdir TYPE ty_progdir
!it_source TYPE abaptxt255_tab
RAISING
zcx_abapgit_exception .
METHODS serialize_texts
IMPORTING
!ii_xml TYPE REF TO zif_abapgit_xml_output
RAISING
zcx_abapgit_exception .
METHODS deserialize_texts
IMPORTING
!ii_xml TYPE REF TO zif_abapgit_xml_input
RAISING
zcx_abapgit_exception .
METHODS is_program_locked
RETURNING
VALUE(rv_is_program_locked) TYPE abap_bool
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS zcl_abapgit_object_prog IMPLEMENTATION.
METHOD deserialize_texts.
DATA: lt_tpool_i18n TYPE ty_tpools_i18n,
lt_tpool TYPE textpool_table.
FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n.
ii_xml->read( EXPORTING iv_name = 'I18N_TPOOL'
CHANGING cg_data = lt_tpool_i18n ).
LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>.
lt_tpool = read_tpool( <ls_tpool>-textpool ).
deserialize_textpool( iv_program = ms_item-obj_name
iv_language = <ls_tpool>-language
it_tpool = lt_tpool ).
ENDLOOP.
ENDMETHOD.
METHOD deserialize_with_ext.
" Special treatment for extensions
" If the program name exceeds 30 characters it is not a usual ABAP program but might be
" some extension, which requires the internal addition EXTENSION TYPE
" https://help.sap.com/doc/abapdocu_755_index_htm/7.55/en-US/index.htm?file=abapinsert_report_internal.htm
" This e.g. occurs in case of transportable Code Inspector variants (ending with ===VC)
INSERT REPORT is_progdir-name
FROM it_source
STATE 'I'
EXTENSION TYPE is_progdir-name+30
PROGRAM TYPE is_progdir-subc.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Error from INSERT REPORT .. EXTENSION TYPE' ).
ENDIF.
CALL FUNCTION 'UPDATE_PROGDIR'
EXPORTING
i_progdir = is_progdir
i_progname = is_progdir-name
i_state = 'I'
EXCEPTIONS
not_executed = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Error updating program directory' ).
ENDIF.
zcl_abapgit_objects_activation=>add(
iv_type = 'REPS'
iv_name = is_progdir-name ).
ENDMETHOD.
METHOD is_program_locked.
rv_is_program_locked = exists_a_lock_entry_for( iv_lock_object = 'ESRDIRE'
iv_argument = |{ ms_item-obj_name }| ).
ENDMETHOD.
METHOD serialize_texts.
DATA: lt_tpool_i18n TYPE ty_tpools_i18n,
lt_tpool TYPE textpool_table,
lt_language_filter TYPE zif_abapgit_environment=>ty_system_language_filter.
FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n.
IF ii_xml->i18n_params( )-main_language_only = abap_true.
RETURN.
ENDIF.
" Table d010tinf stores info. on languages in which program is maintained
" Select all active translations of program texts
" Skip main language - it was already serialized
lt_language_filter = zcl_abapgit_factory=>get_environment( )->get_system_language_filter( ).
SELECT DISTINCT language
INTO CORRESPONDING FIELDS OF TABLE lt_tpool_i18n
FROM d010tinf
WHERE r3state = 'A'
AND prog = ms_item-obj_name
AND language <> mv_language
AND language IN lt_language_filter ##TOO_MANY_ITAB_FIELDS.
SORT lt_tpool_i18n BY language ASCENDING.
LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>.
READ TEXTPOOL ms_item-obj_name
LANGUAGE <ls_tpool>-language
INTO lt_tpool.
<ls_tpool>-textpool = add_tpool( lt_tpool ).
ENDLOOP.
IF lines( lt_tpool_i18n ) > 0.
ii_xml->add( iv_name = 'I18N_TPOOL'
ig_data = lt_tpool_i18n ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE unam FROM reposrc INTO rv_user
WHERE progname = ms_item-obj_name
AND r3state = 'A'.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA:
lv_program LIKE sy-repid,
lv_obj_name TYPE e071-obj_name.
lv_program = ms_item-obj_name.
CALL FUNCTION 'RS_DELETE_PROGRAM'
EXPORTING
corrnumber = iv_transport
program = lv_program
suppress_popup = abap_true
mass_delete_call = abap_true
tadir_devclass = iv_package
force_delete_used_includes = abap_true
EXCEPTIONS
enqueue_lock = 1
object_not_found = 2
permission_failure = 3
reject_deletion = 4
OTHERS = 5.
IF sy-subrc = 2.
" Drop also any inactive code that is left in REPOSRC
DELETE REPORT lv_program ##SUBRC_OK.
" Remove inactive objects from work area
lv_obj_name = lv_program.
CALL FUNCTION 'RS_DELETE_FROM_WORKING_AREA'
EXPORTING
object = 'REPS'
obj_name = lv_obj_name
immediate = 'X'
actualize_working_area = 'X'.
CALL FUNCTION 'RS_DELETE_FROM_WORKING_AREA'
EXPORTING
object = 'REPT'
obj_name = lv_obj_name
immediate = 'X'
actualize_working_area = 'X'.
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
delete_longtexts( c_longtext_id_prog ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: lv_program_name TYPE programm,
ls_progdir TYPE ty_progdir,
lt_tpool TYPE textpool_table,
lt_dynpros TYPE ty_dynpro_tt,
lt_tpool_ext TYPE zif_abapgit_definitions=>ty_tpool_tt,
ls_cua TYPE ty_cua,
lt_source TYPE abaptxt255_tab.
" Add R3TR PROG to transport first, otherwise we get several LIMUs
corr_insert( iv_package ).
lv_program_name = ms_item-obj_name.
lt_source = zif_abapgit_object~mo_files->read_abap( ).
io_xml->read( EXPORTING iv_name = 'TPOOL'
CHANGING cg_data = lt_tpool_ext ).
lt_tpool = read_tpool( lt_tpool_ext ).
io_xml->read( EXPORTING iv_name = 'PROGDIR'
CHANGING cg_data = ls_progdir ).
IF strlen( lv_program_name ) > 30.
" Objects with extension for example transportable Code Inspector variants (ending with ===VC)
deserialize_with_ext( is_progdir = ls_progdir
it_source = lt_source ).
ELSE.
deserialize_program( is_progdir = ls_progdir
it_source = lt_source
it_tpool = lt_tpool
iv_package = iv_package ).
io_xml->read( EXPORTING iv_name = 'DYNPROS'
CHANGING cg_data = lt_dynpros ).
deserialize_dynpros( lt_dynpros ).
io_xml->read( EXPORTING iv_name = 'CUA'
CHANGING cg_data = ls_cua ).
deserialize_cua( iv_program_name = lv_program_name
is_cua = ls_cua ).
" Texts deserializing (English)
deserialize_textpool( iv_program = lv_program_name
it_tpool = lt_tpool ).
" Texts deserializing (translations)
deserialize_texts( io_xml ).
deserialize_lxe_texts( io_xml ).
deserialize_longtexts( io_xml ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_progname TYPE reposrc-progname.
SELECT SINGLE progname FROM reposrc INTO lv_progname
WHERE progname = ms_item-obj_name.
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
IF is_program_locked( ) = abap_true
OR is_any_dynpro_locked( ms_item-obj_name ) = abap_true
OR is_cua_locked( ms_item-obj_name ) = abap_true
OR is_text_locked( ms_item-obj_name ) = abap_true.
rv_is_locked = abap_true.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
" Covered by ZCL_ABAPGIT_OBJECTS=>JUMP
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
* see SAP note 1025291, run report DELETE_TADIR_FOR_EIMP_INCLUDE to clean bad TADIR entries
ASSERT NOT ms_item-obj_name CP '*=E'.
serialize_program( io_xml = io_xml
is_item = ms_item
io_files = zif_abapgit_object~mo_files ).
" Texts serializing (translations)
IF io_xml->i18n_params( )-translation_languages IS INITIAL.
" Old I18N option
serialize_texts( io_xml ).
ELSE.
" New LXE option
serialize_lxe_texts( io_xml ).
ENDIF.
serialize_longtexts( ii_xml = io_xml
iv_longtext_id = c_longtext_id_prog ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
1676,
70,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
23065,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
83,
7742,
62,
72,
1507,
77,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3303,
41876,
2786,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
7742,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
83,
7742,
62,
926,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
83,
7742,
62,
72,
1507,
77,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
83,
7742,
82,
62,
72,
1507,
77,
41876,
49053,
9795,
43679,
3963,
1259,
62,
83,
7742,
62,
72,
1507,
77,
764,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
6511,
5239,
62,
312,
62,
1676,
70,
41876,
466,
34553,
12,
312,
26173,
8924,
705,
2200,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
337,
36252,
50,
748,
48499,
1096,
62,
4480,
62,
2302,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
1676,
70,
15908,
41876,
1259,
62,
1676,
70,
15908,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
10459,
220,
41876,
450,
2373,
742,
13381,
62,
8658,
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,
5239,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
748,
48499,
1096,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
23065,
62,
24162,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
271,
62,
23065,
62,
24162,
8,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
1676,
70,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
748,
48499,
1096,
62,
5239,
82,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
41876,
1259,
62,
83,
7742,
82,
62,
72,
1507,
77,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
83,
7742,
220,
220,
220,
220,
220,
41876,
2420,
7742,
62,
11487,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1279,
7278,
62,
83,
7742,
29,
34178,
48920,
3963,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
13,
628,
198,
220,
220,
220,
21065,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
40,
1507,
45,
62,
7250,
31559,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
70,
62,
7890,
796,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
6739,
628,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
24994,
3528,
15871,
1279,
7278,
62,
83,
7742,
28401,
198,
220,
220,
220,
220,
220,
300,
83,
62,
83,
7742,
796,
1100,
62,
83,
7742,
7,
1279,
7278,
62,
83,
7742,
29,
12,
5239,
7742,
6739,
198,
220,
220,
220,
220,
220,
748,
48499,
1096,
62,
5239,
7742,
7,
21628,
62,
23065,
220,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
796,
1279,
7278,
62,
83,
7742,
29,
12,
16129,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
83,
7742,
220,
220,
220,
796,
300,
83,
62,
83,
7742,
6739,
198,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
748,
48499,
1096,
62,
4480,
62,
2302,
13,
628,
220,
220,
220,
366,
6093,
3513,
329,
18366,
198,
220,
220,
220,
366,
1002,
262,
1430,
1438,
21695,
1542,
3435,
340,
318,
407,
257,
6678,
9564,
2969,
1430,
475,
1244,
307,
198,
220,
220,
220,
366,
617,
7552,
11,
543,
4433,
262,
5387,
3090,
27489,
16938,
2849,
41876,
198,
220,
220,
220,
366,
3740,
1378,
16794,
13,
82,
499,
13,
785,
14,
15390,
14,
397,
499,
15390,
84,
62,
38172,
62,
9630,
62,
19211,
14,
22,
13,
2816,
14,
268,
12,
2937,
14,
9630,
13,
19211,
30,
7753,
28,
397,
499,
28463,
62,
13116,
62,
32538,
13,
19211,
198,
220,
220,
220,
366,
770,
304,
13,
70,
13,
8833,
287,
1339,
286,
4839,
540,
6127,
24625,
17670,
357,
1571,
351
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*&---------------------------------------------------------------------*
*& Report ZDBGL_COPY_GLOBALS_TO_TDC
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZDBGL_COPY_GLOBALS_TO_TDC.
PARAMETERS: program TYPE progname,
key_tc TYPE zdbgl_key_testcases,
tdc TYPE etobj_name,
version TYPE etobj_ver,
variant TYPE etvar_id.
START-OF-SELECTION.
TRY.
DATA(base64_storage) = zdbgl_get_globals=>factory(
key_testcase = key_tc program = program
).
DATA(tdc_manager) = NEW zdbgl_copy_to_tdc( tdc = tdc
tdc_version = version ).
tdc_manager->copy_all_parameter( variant = variant
recorded_variables = base64_storage ).
tdc_manager->save( ).
MESSAGE text-sav TYPE 'S'.
CATCH zcx_dbgl_testcase INTO DATA(failure).
MESSAGE failure TYPE 'S' DISPLAY LIKE 'E'.
CATCH zcx_dbgl_copy_error INTO DATA(copy_failure).
MESSAGE copy_failure TYPE 'S' DISPLAY LIKE 'E'.
ENDTRY.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
11012,
8763,
62,
34,
3185,
56,
62,
8763,
9864,
23333,
62,
10468,
62,
51,
9697,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1168,
11012,
8763,
62,
34,
3185,
56,
62,
8763,
9864,
23333,
62,
10468,
62,
51,
9697,
13,
198,
198,
27082,
2390,
2767,
4877,
25,
1430,
41876,
1172,
3672,
11,
198,
220,
1994,
62,
23047,
41876,
1976,
9945,
4743,
62,
2539,
62,
9288,
33964,
11,
198,
220,
256,
17896,
41876,
2123,
26801,
62,
3672,
11,
198,
220,
2196,
41876,
2123,
26801,
62,
332,
11,
198,
220,
15304,
41876,
2123,
7785,
62,
312,
13,
198,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
628,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
42865,
7,
8692,
2414,
62,
35350,
8,
796,
1976,
9945,
4743,
62,
1136,
62,
4743,
672,
874,
14804,
69,
9548,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
62,
9288,
7442,
796,
1994,
62,
23047,
1430,
796,
1430,
198,
220,
220,
220,
220,
220,
6739,
198,
220,
220,
220,
220,
220,
42865,
7,
8671,
66,
62,
37153,
8,
796,
12682,
1976,
9945,
4743,
62,
30073,
62,
1462,
62,
8671,
66,
7,
256,
17896,
796,
256,
17896,
198,
220,
220,
220,
220,
220,
220,
220,
256,
17896,
62,
9641,
796,
2196,
6739,
198,
220,
220,
220,
220,
220,
256,
17896,
62,
37153,
3784,
30073,
62,
439,
62,
17143,
2357,
7,
15304,
796,
15304,
198,
220,
220,
220,
220,
220,
220,
220,
6264,
62,
25641,
2977,
796,
2779,
2414,
62,
35350,
6739,
198,
220,
220,
220,
220,
220,
256,
17896,
62,
37153,
3784,
21928,
7,
6739,
198,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
2420,
12,
39308,
41876,
705,
50,
4458,
628,
220,
220,
220,
327,
11417,
1976,
66,
87,
62,
9945,
4743,
62,
9288,
7442,
39319,
42865,
7,
32165,
495,
737,
198,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
5287,
41876,
705,
50,
6,
13954,
31519,
34178,
705,
36,
4458,
198,
220,
220,
220,
327,
11417,
1976,
66,
87,
62,
9945,
4743,
62,
30073,
62,
18224,
39319,
42865,
7,
30073,
62,
32165,
495,
737,
198,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
4866,
62,
32165,
495,
41876,
705,
50,
6,
13954,
31519,
34178,
705,
36,
4458,
198,
220,
23578,
40405,
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
] |
CLASS zcl_advent2020_day11_am DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_advent2020_am .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ADVENT2020_DAY11_AM IMPLEMENTATION.
METHOD zif_advent2020_am~solve.
output = 'todo'.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
324,
1151,
42334,
62,
820,
1157,
62,
321,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
324,
1151,
42334,
62,
321,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
2885,
53,
3525,
42334,
62,
26442,
1157,
62,
2390,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
324,
1151,
42334,
62,
321,
93,
82,
6442,
13,
628,
220,
220,
220,
5072,
796,
705,
83,
24313,
4458,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*---------------------------------------------------------------------*
* view related FORM routines
* generation date: 16.07.2021 at 08:32:16
* view maintenance generator version: #001407#
*---------------------------------------------------------------------*
* base table related FORM-routines.............
INCLUDE LSVIMFTX .
| [
9,
10097,
30934,
9,
198,
9,
220,
220,
220,
1570,
3519,
49144,
31878,
198,
9,
220,
220,
5270,
3128,
25,
1467,
13,
2998,
13,
1238,
2481,
379,
8487,
25,
2624,
25,
1433,
198,
9,
220,
220,
1570,
9262,
17301,
2196,
25,
1303,
405,
1415,
2998,
2,
198,
9,
10097,
30934,
9,
198,
198,
9,
2779,
3084,
3519,
49144,
12,
81,
448,
1127,
44274,
198,
1268,
5097,
52,
7206,
30948,
53,
3955,
9792,
55,
764,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*----------------------------------------------------------------------*
* CLASS ltcl_dangerous DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_dangerous DEFINITION FOR TESTING RISK LEVEL CRITICAL DURATION LONG FINAL.
* if this test class does not run, parameters in transaction SAUNIT_CLIENT_SETUP
* might need to be adjusted
PRIVATE SECTION.
CLASS-METHODS:
class_setup.
METHODS:
run FOR TESTING
RAISING zcx_abapgit_exception.
CONSTANTS: c_package TYPE devclass VALUE '$ABAPGIT_UNIT_TEST'.
ENDCLASS.
*----------------------------------------------------------------------*
* CLASS ltcl_dangerous IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_dangerous IMPLEMENTATION.
METHOD class_setup.
"Objects will be created and deleted, do not run in customer system!
"These tests may fail if you are locking the entries (e.g. the ZABAPGIT transaction is open)
IF zcl_abapgit_persist_settings=>get_instance( )->read( )->get_run_critical_tests( ) = abap_false.
cl_abap_unit_assert=>fail(
msg = 'Cancelled. You can enable these tests at the Settings page'
level = if_aunit_constants=>tolerable ).
ENDIF.
ENDMETHOD.
METHOD run.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt,
lv_msg TYPE string,
lt_results TYPE zif_abapgit_definitions=>ty_results_tt,
ls_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks,
lt_types TYPE zcl_abapgit_objects=>ty_types_tt.
FIELD-SYMBOLS: <ls_result> LIKE LINE OF lt_results,
<ls_tadir> LIKE LINE OF lt_tadir,
<lv_type> LIKE LINE OF lt_types.
zcl_abapgit_factory=>get_sap_package( c_package )->create_local( ).
lt_types = zcl_abapgit_objects=>supported_list( ).
lo_repo = zcl_abapgit_repo_srv=>get_instance( )->new_online(
iv_url = 'https://github.com/abapGit/Test-Objects.git'
iv_branch_name = 'refs/heads/master'
iv_package = c_package ).
lo_repo->status( ).
lo_repo->deserialize( ls_checks ).
lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( c_package ).
LOOP AT lt_types ASSIGNING <lv_type>.
READ TABLE lt_tadir WITH KEY object = <lv_type> TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
lv_msg = |Missing object type { <lv_type> }|.
cl_abap_unit_assert=>fail(
msg = lv_msg
level = if_aunit_constants=>tolerable
quit = if_aunit_constants=>no ).
ENDIF.
ENDLOOP.
lt_results = lo_repo->status( ).
LOOP AT lt_results ASSIGNING <ls_result> WHERE match = abap_false.
lv_msg = |Does not match { <ls_result>-obj_type } { <ls_result>-obj_name }|.
cl_abap_unit_assert=>fail(
msg = lv_msg
quit = if_aunit_constants=>no ).
ENDLOOP.
zcl_abapgit_objects=>delete( lt_tadir ).
lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( c_package ).
LOOP AT lt_tadir ASSIGNING <ls_tadir>.
lv_msg = |Not deleted properly { <ls_tadir>-object } { <ls_tadir>-obj_name }|.
cl_abap_unit_assert=>fail(
msg = lv_msg
quit = if_aunit_constants=>no ).
ENDLOOP.
zcl_abapgit_repo_srv=>get_instance( )->delete( lo_repo ).
COMMIT WORK.
ENDMETHOD.
ENDCLASS.
*----------------------------------------------------------------------*
* CLASS ltcl_object_types DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_object_types DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
PRIVATE SECTION.
METHODS:
not_exist FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS.
*----------------------------------------------------------------------*
* CLASS ltcl_object_types IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_object_types IMPLEMENTATION.
METHOD not_exist.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item,
lv_exists TYPE abap_bool,
lt_types TYPE zcl_abapgit_objects=>ty_types_tt.
FIELD-SYMBOLS: <lv_type> LIKE LINE OF lt_types.
lt_types = zcl_abapgit_objects=>supported_list( ).
cl_abap_unit_assert=>assert_not_initial( lt_types ).
LOOP AT lt_types ASSIGNING <lv_type>.
CLEAR ls_item.
ls_item-obj_name = 'ZABAPGIT_FOOBAR'.
ls_item-obj_type = <lv_type>.
lv_exists = zcl_abapgit_objects=>exists( ls_item ).
cl_abap_unit_assert=>assert_equals(
act = lv_exists
exp = abap_false
msg = ls_item-obj_type
quit = if_aunit_constants=>no ).
ENDLOOP.
ENDMETHOD.
ENDCLASS.
*----------------------------------------------------------------------*
* CLASS ltcl_serialize DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_serialize DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
PRIVATE SECTION.
METHODS:
check
IMPORTING VALUE(is_item) TYPE zif_abapgit_definitions=>ty_item
RAISING zcx_abapgit_exception,
serialize_tabl FOR TESTING RAISING zcx_abapgit_exception,
serialize_shlp FOR TESTING RAISING zcx_abapgit_exception,
serialize_view FOR TESTING RAISING zcx_abapgit_exception,
serialize_auth FOR TESTING RAISING zcx_abapgit_exception,
serialize_clas FOR TESTING RAISING zcx_abapgit_exception,
serialize_doma FOR TESTING RAISING zcx_abapgit_exception,
serialize_dtel FOR TESTING RAISING zcx_abapgit_exception,
serialize_fugr FOR TESTING RAISING zcx_abapgit_exception,
serialize_msag FOR TESTING RAISING zcx_abapgit_exception,
serialize_prog FOR TESTING RAISING zcx_abapgit_exception,
serialize_tran FOR TESTING RAISING zcx_abapgit_exception,
serialize_ttyp FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS.
*----------------------------------------------------------------------*
* CLASS ltcl_serialize IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_serialize IMPLEMENTATION.
METHOD serialize_shlp.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'SHLP'.
ls_item-obj_name = 'USER_LOGON'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_view.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'VIEW'.
ls_item-obj_name = 'VUSR02_HEADER'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_tabl.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'TABL'.
ls_item-obj_name = 'USR02'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_auth.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'AUTH'.
ls_item-obj_name = 'AREA'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_clas.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'CLAS'.
ls_item-obj_name = 'CL_GUI_FRONTEND_SERVICES'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_doma.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'DOMA'.
ls_item-obj_name = 'PGMID'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_dtel.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'DTEL'.
ls_item-obj_name = 'PGMID'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_fugr.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'FUGR'.
ls_item-obj_name = 'SRFC'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_msag.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'MSAG'.
ls_item-obj_name = '00'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_prog.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'PROG'.
ls_item-obj_name = 'SAPLWBABAP'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_tran.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'TRAN'.
ls_item-obj_name = 'SE38'.
check( ls_item ).
ENDMETHOD.
METHOD serialize_ttyp.
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
ls_item-obj_type = 'TTYP'.
ls_item-obj_name = 'ABAPPROG'.
check( ls_item ).
ENDMETHOD.
METHOD check.
DATA: ls_files_item TYPE zcl_abapgit_objects=>ty_serialization.
ls_files_item = zcl_abapgit_objects=>serialize( is_item = is_item
iv_language = zif_abapgit_definitions=>c_english ).
cl_abap_unit_assert=>assert_not_initial( ls_files_item-files ).
cl_abap_unit_assert=>assert_equals( act = ls_files_item-item
exp = is_item ).
ENDMETHOD.
ENDCLASS.
CLASS ltcl_object_ddls_mock DEFINITION FOR TESTING.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
METHODS:
constructor
IMPORTING
is_item TYPE zif_abapgit_definitions=>ty_item
iv_language TYPE spras.
PRIVATE SECTION.
DATA ms_item TYPE zif_abapgit_definitions=>ty_item.
ENDCLASS.
CLASS ltcl_object_ddls_mock IMPLEMENTATION.
METHOD constructor.
ms_item = is_item.
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
CASE ms_item-obj_name.
WHEN 'Z_TEST_DDLS'.
rv_is_locked = abap_true.
WHEN 'Z_TEST_DDLS2'.
rv_is_locked = abap_false.
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~changed_by. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~delete. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~deserialize. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~exists. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~jump. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~serialize. "##needed
ENDMETHOD.
METHOD zif_abapgit_object~is_active. "##needed
ENDMETHOD.
ENDCLASS.
CLASS ltcl_check_objects_locked DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA:
mt_given_items TYPE zif_abapgit_definitions=>ty_items_tt,
mv_exception_text TYPE string.
METHODS:
throw_excp_if_object_is_locked FOR TESTING RAISING cx_static_check,
no_excp_if_obj_is_not_locked FOR TESTING RAISING cx_static_check,
given_locked_object,
when_check_objects_locked,
then_exception_shd_be_raised,
given_not_locked_object,
then_no_exception_shd_occur,
given_object
IMPORTING
iv_object_name TYPE string.
ENDCLASS.
CLASS zcl_abapgit_objects DEFINITION LOCAL FRIENDS ltcl_check_objects_locked.
CLASS ltcl_check_objects_locked IMPLEMENTATION.
METHOD throw_excp_if_object_is_locked.
given_locked_object( ).
when_check_objects_locked( ).
then_exception_shd_be_raised( ).
ENDMETHOD.
METHOD no_excp_if_obj_is_not_locked.
given_not_locked_object( ).
when_check_objects_locked( ).
then_no_exception_shd_occur( ).
ENDMETHOD.
METHOD given_locked_object.
given_object( 'Z_TEST_DDLS' ).
ENDMETHOD.
METHOD when_check_objects_locked.
DATA: lx_error TYPE REF TO zcx_abapgit_exception.
TRY.
zcl_abapgit_objects=>check_objects_locked( iv_language = 'E'
it_items = mt_given_items ).
CATCH zcx_abapgit_exception INTO lx_error.
mv_exception_text = lx_error->get_text( ).
ENDTRY.
ENDMETHOD.
METHOD then_exception_shd_be_raised.
cl_abap_unit_assert=>assert_equals(
exp = |Object DDLS Z_TEST_DDLS is locked. Action not possible.|
act = mv_exception_text ).
ENDMETHOD.
METHOD given_not_locked_object.
given_object( 'Z_TEST_DDLS2' ).
ENDMETHOD.
METHOD then_no_exception_shd_occur.
cl_abap_unit_assert=>assert_initial( mv_exception_text ).
ENDMETHOD.
METHOD given_object.
CONSTANTS:
lc_obj_type TYPE string VALUE 'DDLS'.
DATA:
ls_item LIKE LINE OF mt_given_items,
ls_obj_serializer_map LIKE LINE OF zcl_abapgit_objects=>gt_obj_serializer_map.
ls_item-obj_type = lc_obj_type.
ls_item-obj_name = iv_object_name.
INSERT ls_item INTO TABLE mt_given_items.
ls_obj_serializer_map-item-obj_type = lc_obj_type.
ls_obj_serializer_map-item-obj_name = iv_object_name.
ls_obj_serializer_map-metadata-class = '\CLASS-POOL=ZCL_ABAPGIT_OBJECTS\CLASS=LTCL_OBJECT_DDLS_MOCK'.
INSERT ls_obj_serializer_map INTO TABLE zcl_abapgit_objects=>gt_obj_serializer_map.
ENDMETHOD.
ENDCLASS.
CLASS ltcl_filter_files_to_deser DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA:
mo_objects TYPE REF TO zcl_abapgit_objects,
mt_result TYPE zif_abapgit_definitions=>ty_results_tt.
METHODS:
setup,
filter_duplicates FOR TESTING RAISING cx_static_check,
filter_duplicates_rstate FOR TESTING RAISING cx_static_check,
filter_duplicates_lstate FOR TESTING RAISING cx_static_check,
filter_duplicates_match FOR TESTING RAISING cx_static_check,
filter_duplicates_init_objtype FOR TESTING RAISING cx_static_check,
given_result
IMPORTING
iv_result_line TYPE string,
when_filter_is_applied.
ENDCLASS.
CLASS zcl_abapgit_objects DEFINITION LOCAL FRIENDS ltcl_filter_files_to_deser.
CLASS ltcl_filter_files_to_deser IMPLEMENTATION.
METHOD setup.
CREATE OBJECT mo_objects.
ENDMETHOD.
METHOD filter_duplicates.
given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ).
given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;| ).
when_filter_is_applied( ).
cl_abap_unit_assert=>assert_equals(
exp = 1
act = lines( mt_result ) ).
ENDMETHOD.
METHOD filter_duplicates_rstate.
DATA: ls_exp LIKE LINE OF mt_result,
ls_act LIKE LINE OF mt_result.
given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ).
given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;A| ).
READ TABLE mt_result INDEX 2 INTO ls_exp.
when_filter_is_applied( ).
cl_abap_unit_assert=>assert_equals(
exp = 1
act = lines( mt_result ) ).
READ TABLE mt_result INDEX 1 INTO ls_act.
cl_abap_unit_assert=>assert_equals(
exp = ls_exp
act = ls_act ).
ENDMETHOD.
METHOD filter_duplicates_lstate.
given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;A;| ).
given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;A;| ).
when_filter_is_applied( ).
cl_abap_unit_assert=>assert_equals(
exp = 0
act = lines( mt_result ) ).
ENDMETHOD.
METHOD filter_duplicates_match.
given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;X;;| ).
given_result( |PROG;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;X;;| ).
when_filter_is_applied( ).
cl_abap_unit_assert=>assert_equals(
exp = 0
act = lines( mt_result ) ).
ENDMETHOD.
METHOD filter_duplicates_init_objtype.
given_result( |;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.abap;;;;| ).
given_result( |;ZAG_UNIT_TEST;;/src/;zag_unit_test.prog.xml;;;;| ).
when_filter_is_applied( ).
cl_abap_unit_assert=>assert_equals(
exp = 0
act = lines( mt_result ) ).
ENDMETHOD.
METHOD given_result.
DATA: ls_result LIKE LINE OF mt_result.
SPLIT iv_result_line
AT ';'
INTO ls_result-obj_type
ls_result-obj_name
ls_result-inactive
ls_result-path
ls_result-filename
ls_result-package
ls_result-match
ls_result-lstate
ls_result-rstate.
INSERT ls_result INTO TABLE mt_result.
ENDMETHOD.
METHOD when_filter_is_applied.
mt_result = mo_objects->filter_files_to_deserialize( mt_result ).
ENDMETHOD.
ENDCLASS.
CLASS ltcl_adjust_namespaces DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
METHODS:
setup,
adjust_namespaces FOR TESTING RAISING cx_static_check.
DATA:
mo_objects TYPE REF TO zcl_abapgit_objects.
ENDCLASS.
CLASS zcl_abapgit_objects DEFINITION LOCAL FRIENDS ltcl_adjust_namespaces.
CLASS ltcl_adjust_namespaces IMPLEMENTATION.
METHOD setup.
CREATE OBJECT mo_objects.
ENDMETHOD.
METHOD adjust_namespaces.
DATA: lt_input TYPE zif_abapgit_definitions=>ty_results_tt,
lt_ouptut TYPE zif_abapgit_definitions=>ty_results_tt,
ls_result LIKE LINE OF lt_input.
ls_result-obj_name = |#SAP#ZTEST|.
INSERT ls_result INTO TABLE lt_input.
ls_result-obj_name = |ZTEST|.
INSERT ls_result INTO TABLE lt_input.
lt_ouptut = mo_objects->adjust_namespaces( lt_input ).
READ TABLE lt_ouptut INTO ls_result INDEX 1.
cl_abap_unit_assert=>assert_equals(
exp = |/SAP/ZTEST|
act = ls_result-obj_name ).
READ TABLE lt_ouptut INTO ls_result INDEX 2.
cl_abap_unit_assert=>assert_equals(
exp = |ZTEST|
act = ls_result-obj_name ).
ENDMETHOD.
ENDCLASS.
CLASS ltcl_prio_deserialization DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
METHODS:
setup,
ddls_before_dcls FOR TESTING RAISING cx_static_check,
given
IMPORTING
iv_object_type TYPE trobjtype,
when_deser_is_priorized,
then
IMPORTING
iv_exp_object_type TYPE trobjtype.
DATA:
mo_objects TYPE REF TO zcl_abapgit_objects,
mt_input TYPE zif_abapgit_definitions=>ty_results_tt,
mt_output TYPE zif_abapgit_definitions=>ty_results_tt,
mv_exp_output_tabix TYPE i.
ENDCLASS.
CLASS zcl_abapgit_objects DEFINITION LOCAL FRIENDS ltcl_prio_deserialization.
CLASS ltcl_prio_deserialization IMPLEMENTATION.
METHOD setup.
CREATE OBJECT mo_objects.
mv_exp_output_tabix = 0.
ENDMETHOD.
METHOD ddls_before_dcls.
given( 'DCLS' ).
given( 'DDLS' ).
given( 'DCLS' ).
given( 'DDLS' ).
when_deser_is_priorized( ).
then( 'DDLS' ).
then( 'DDLS' ).
then( 'DCLS' ).
then( 'DCLS' ).
ENDMETHOD.
METHOD given.
DATA: ls_input LIKE LINE OF mt_input.
ls_input-obj_type = iv_object_type.
INSERT ls_input INTO TABLE mt_input.
ENDMETHOD.
METHOD when_deser_is_priorized.
mt_output = mo_objects->prioritize_deser( mt_input ).
ENDMETHOD.
METHOD then.
DATA: ls_output LIKE LINE OF mt_output.
mv_exp_output_tabix = mv_exp_output_tabix + 1.
READ TABLE mt_output INTO ls_output INDEX mv_exp_output_tabix.
cl_abap_unit_assert=>assert_equals(
exp = iv_exp_object_type
act = ls_output-obj_type ).
ENDMETHOD.
ENDCLASS.
| [
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
300,
83,
565,
62,
38537,
516,
5550,
20032,
17941,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
300,
83,
565,
62,
38537,
516,
5550,
20032,
17941,
7473,
43001,
2751,
45698,
42,
49277,
8740,
2043,
20151,
360,
4261,
6234,
44533,
25261,
13,
198,
9,
611,
428,
1332,
1398,
857,
407,
1057,
11,
10007,
287,
8611,
14719,
4944,
2043,
62,
5097,
28495,
62,
28480,
8577,
198,
9,
1244,
761,
284,
307,
12328,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
1398,
62,
40406,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
1057,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
26495,
41876,
1614,
4871,
26173,
8924,
705,
3,
6242,
2969,
38,
2043,
62,
4944,
2043,
62,
51,
6465,
4458,
198,
198,
10619,
31631,
13,
198,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
300,
83,
565,
62,
38537,
516,
30023,
2538,
10979,
6234,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
300,
83,
565,
62,
38537,
516,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1398,
62,
40406,
13,
198,
220,
220,
220,
366,
10267,
82,
481,
307,
2727,
290,
13140,
11,
466,
407,
1057,
287,
6491,
1080,
0,
198,
220,
220,
220,
366,
4711,
5254,
743,
2038,
611,
345,
389,
22656,
262,
12784,
357,
68,
13,
70,
13,
262,
1168,
6242,
2969,
38,
2043,
8611,
318,
1280,
8,
198,
220,
220,
220,
16876,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
14804,
1136,
62,
39098,
7,
1267,
3784,
961,
7,
1267,
3784,
1136,
62,
5143,
62,
34666,
62,
41989,
7,
1267,
796,
450,
499,
62,
9562,
13,
198,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
220,
220,
796,
705,
34,
590,
3353,
13,
921,
460,
7139,
777,
5254,
379,
262,
16163,
2443,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1241,
796,
611,
62,
1942,
270,
62,
9979,
1187,
14804,
83,
13625,
540,
6739,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1057,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
260,
7501,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
83,
324,
343,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
83,
324,
343,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
19662,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
43420,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
43420,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
42116,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
8906,
48499,
1096,
62,
42116,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
19199,
220,
220,
41876,
1976,
565,
62,
397,
499,
18300,
62,
48205,
14804,
774,
62,
19199,
62,
926,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
20274,
29,
34178,
48920,
3963,
300,
83,
62,
43420,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
83,
324,
343,
29,
220,
34178,
48920,
3963,
300,
83,
62,
83,
324,
343,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
6780,
62,
4906,
29,
220,
220,
34178,
48920,
3963,
300,
83,
62,
19199,
13,
628,
198,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
69,
9548,
14804,
1136,
62,
82,
499,
62,
26495,
7,
269,
62,
26495,
1267,
3784,
17953,
62,
12001,
7,
6739,
628,
220,
220,
220,
300,
83,
62,
19199,
796,
1976,
565,
62,
397,
499,
18300,
62,
48205,
14804,
15999,
62,
4868,
7,
6739,
628,
220,
220,
220,
2376,
62,
260,
7501,
796,
1976,
565,
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,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
5450,
1378,
12567,
13,
785,
14,
397,
499,
38,
270,
14,
14402,
12,
10267,
82,
13,
18300,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
1671,
3702,
62,
3672,
796,
705,
5420,
82,
14,
16600,
14,
9866,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
26495,
220,
220,
220,
220,
796,
269,
62,
26495,
6739,
198,
220,
220,
220,
2376,
62,
260,
7501,
3784,
13376,
7,
6739,
198,
220,
220,
220,
2376,
62,
260,
7501,
3784,
8906,
48499,
1096,
7,
43979,
62,
42116,
6739,
628,
220,
220,
220,
300,
83,
62,
83,
324,
343,
796,
1976,
565,
62,
397,
499,
18300,
62,
69,
9548,
14804,
1136,
62,
83,
324,
343,
7,
1267,
3784,
961,
7,
269,
62,
26495,
6739,
198,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
19199,
24994,
3528,
15871,
1279,
6780,
62,
4906,
28401,
198,
220,
220,
220,
220,
220,
20832,
43679,
300,
83,
62,
83,
324,
343,
13315,
35374,
2134,
796,
1279,
6780,
62,
4906,
29,
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,
300,
85,
62,
19662,
796,
930,
43730,
2134,
2099,
1391,
1279,
6780,
62,
4906,
29,
1782,
91,
13,
198,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
VALUE(iv_currency_code_source) TYPE /dmo/currency_code22
VALUE(iv_currency_code_target) TYPE /dmo/currency_code22
VALUE(iv_exchange_rate_date) TYPE d
EXPORTING VALUE(ev_amount) TYPE /dmo/total_price22.
ENDCLASS.
CLASS /dmo/cl_flight_amdp22 IMPLEMENTATION.
METHOD convert_currency BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT OPTIONS READ-ONLY .
tab = SELECT CONVERT_CURRENCY( amount => :iv_amount,
source_unit => :iv_currency_code_source,
target_unit => :iv_currency_code_target,
reference_date => :iv_exchange_rate_date,
schema => CURRENT_SCHEMA,
error_handling => 'set to null',
steps => 'shift,convert,shift_back',
client => SESSION_CONTEXT( 'CLIENT' )
) AS target_value
FROM dummy ;
ev_amount = :tab.target_value[1];
ENDMETHOD.
ENDCLASS.
| [
31631,
1220,
67,
5908,
14,
565,
62,
22560,
62,
321,
26059,
1828,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
321,
26059,
62,
4102,
263,
62,
71,
9945,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
10385,
62,
34415,
30023,
9863,
2751,
26173,
8924,
7,
452,
62,
17287,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
23350,
62,
20888,
1828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
34415,
62,
8189,
62,
10459,
8,
41876,
1220,
67,
5908,
14,
34415,
62,
8189,
1828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
34415,
62,
8189,
62,
16793,
8,
41876,
1220,
67,
5908,
14,
34415,
62,
8189,
1828,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
1069,
3803,
62,
4873,
62,
4475,
8,
220,
220,
41876,
288,
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,
7788,
15490,
2751,
26173,
8924,
7,
1990,
62,
17287,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
23350,
62,
20888,
1828,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1220,
67,
5908,
14,
565,
62,
22560,
62,
321,
26059,
1828,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
10385,
62,
34415,
11050,
360,
1404,
6242,
11159,
41755,
1961,
11335,
7473,
5572,
33,
406,
15567,
52,
11879,
16363,
6173,
46023,
39852,
11053,
20832,
12,
1340,
11319,
764,
198,
220,
220,
220,
7400,
796,
33493,
7102,
15858,
62,
34,
31302,
45155,
7,
2033,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
1058,
452,
62,
17287,
11,
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,
2723,
62,
20850,
220,
220,
220,
5218,
1058,
452,
62,
34415,
62,
8189,
62,
10459,
11,
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,
2496,
62,
20850,
220,
220,
220,
5218,
1058,
452,
62,
34415,
62,
8189,
62,
16793,
11,
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,
4941,
62,
4475,
5218,
1058,
452,
62,
1069,
3803,
62,
4873,
62,
4475,
11,
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,
32815,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
327,
39237,
62,
50,
3398,
27630,
11,
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,
4049,
62,
4993,
1359,
5218,
705,
2617,
284,
9242,
3256,
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,
4831,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
705,
30846,
11,
1102,
1851,
11,
30846,
62,
1891,
3256,
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,
5456,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
311,
47621,
62,
10943,
32541,
7,
705,
5097,
28495,
6,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
7054,
2496,
62,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
31548,
2162,
198,
220,
220,
220,
819,
62,
17287,
796,
1058,
8658,
13,
16793,
62,
8367,
58,
16,
11208,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_MQBA_CFG_BROKER definition
public
create public .
public section.
interfaces ZIF_MQBA_CFG_BROKER .
protected section.
data MV_ID type STRING .
data MS_CONFIG type ZMQBA_API_S_BRK_CFG .
private section.
ENDCLASS.
CLASS ZCL_MQBA_CFG_BROKER IMPLEMENTATION.
METHOD zif_mqba_cfg_broker~get_config.
CHECK mv_id IS NOT INITIAL.
IF ms_config IS INITIAL.
SELECT SINGLE *
FROM ztc_mqbabrk
INTO CORRESPONDING FIELDS OF ms_config
WHERE broker_id = mv_id.
ENDIF.
rs_config = ms_config.
ENDMETHOD.
method ZIF_MQBA_CFG_BROKER~GET_ID.
rv_id = mv_id.
endmethod.
METHOD zif_mqba_cfg_broker~is_valid.
CHECK mv_id IS NOT INITIAL
AND ms_config IS NOT INITIAL.
rv_valid = abap_true.
ENDMETHOD.
METHOD zif_mqba_cfg_broker~set_id.
mv_id = iv_id.
rr_self = me.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
49215,
4339,
62,
22495,
38,
62,
11473,
11380,
1137,
6770,
198,
220,
1171,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
5064,
62,
49215,
4339,
62,
22495,
38,
62,
11473,
11380,
1137,
764,
198,
24326,
2665,
13,
628,
220,
1366,
32947,
62,
2389,
2099,
19269,
2751,
764,
198,
220,
1366,
6579,
62,
10943,
16254,
2099,
1168,
49215,
4339,
62,
17614,
62,
50,
62,
11473,
42,
62,
22495,
38,
764,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
49215,
4339,
62,
22495,
38,
62,
11473,
11380,
1137,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
76,
80,
7012,
62,
37581,
62,
7957,
6122,
93,
1136,
62,
11250,
13,
198,
220,
220,
220,
5870,
25171,
285,
85,
62,
312,
3180,
5626,
3268,
2043,
12576,
13,
628,
220,
220,
220,
16876,
13845,
62,
11250,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
33493,
311,
2751,
2538,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
16034,
1976,
23047,
62,
76,
80,
65,
397,
81,
74,
198,
220,
220,
220,
220,
220,
220,
220,
39319,
23929,
19535,
47,
18672,
2751,
18930,
3698,
5258,
3963,
13845,
62,
11250,
198,
220,
220,
220,
220,
220,
220,
33411,
20426,
62,
312,
796,
285,
85,
62,
312,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
44608,
62,
11250,
796,
13845,
62,
11250,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
2446,
1168,
5064,
62,
49215,
4339,
62,
22495,
38,
62,
11473,
11380,
1137,
93,
18851,
62,
2389,
13,
198,
220,
220,
220,
374,
85,
62,
312,
796,
285,
85,
62,
312,
13,
198,
220,
886,
24396,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
76,
80,
7012,
62,
37581,
62,
7957,
6122,
93,
271,
62,
12102,
13,
198,
220,
220,
220,
5870,
25171,
285,
85,
62,
312,
3180,
5626,
3268,
2043,
12576,
198,
220,
220,
220,
220,
220,
5357,
13845,
62,
11250,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
374,
85,
62,
12102,
796,
450,
499,
62,
7942,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
76,
80,
7012,
62,
37581,
62,
7957,
6122,
93,
2617,
62,
312,
13,
198,
220,
220,
220,
285,
85,
62,
312,
796,
21628,
62,
312,
13,
198,
220,
220,
220,
374,
81,
62,
944,
796,
502,
13,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
**********************************************************************
* UTIL
**********************************************************************
CLASS lcl_nodes_helper DEFINITION FINAL.
PUBLIC SECTION.
DATA mt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
METHODS add
IMPORTING
iv_str TYPE string.
METHODS clear.
METHODS sorted
RETURNING
VALUE(rt_nodes) TYPE zif_abapgit_ajson=>ty_nodes_ts.
ENDCLASS.
CLASS lcl_nodes_helper IMPLEMENTATION.
METHOD add.
FIELD-SYMBOLS <n> LIKE LINE OF mt_nodes.
DATA lv_children TYPE string.
DATA lv_index TYPE string.
DATA lv_order TYPE string.
APPEND INITIAL LINE TO mt_nodes ASSIGNING <n>.
SPLIT iv_str AT '|' INTO
<n>-path
<n>-name
<n>-type
<n>-value
lv_index
lv_children
lv_order.
CONDENSE <n>-path.
CONDENSE <n>-name.
CONDENSE <n>-type.
CONDENSE <n>-value.
<n>-index = lv_index.
<n>-children = lv_children.
<n>-order = lv_order.
ENDMETHOD.
METHOD sorted.
rt_nodes = mt_nodes.
ENDMETHOD.
METHOD clear.
CLEAR mt_nodes.
ENDMETHOD.
ENDCLASS.
**********************************************************************
* PARSER
**********************************************************************
CLASS ltcl_parser_test DEFINITION FINAL
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PUBLIC SECTION.
CLASS-METHODS sample_json
IMPORTING
iv_separator TYPE string OPTIONAL
RETURNING
VALUE(rv_json) TYPE string.
PRIVATE SECTION.
DATA mo_cut TYPE REF TO lcl_json_parser.
DATA mo_nodes TYPE REF TO lcl_nodes_helper.
METHODS setup.
METHODS parse FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_string FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_number FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_float FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_boolean FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_false FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_null FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_date FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_bare_values FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS parse_error FOR TESTING RAISING zcx_abapgit_ajson_error.
ENDCLASS.
CLASS ltcl_parser_test IMPLEMENTATION.
METHOD setup.
CREATE OBJECT mo_cut.
CREATE OBJECT mo_nodes.
ENDMETHOD.
METHOD parse_bare_values.
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
mo_nodes->add( ' | |str |abc | |0' ).
lt_act = mo_cut->parse( '"abc"' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
mo_nodes->clear( ).
mo_nodes->add( ' | |num |-123 | |0' ).
lt_act = mo_cut->parse( '-123' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
mo_nodes->clear( ).
mo_nodes->add( ' | |bool |true | |0' ).
lt_act = mo_cut->parse( 'true' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
mo_nodes->clear( ).
mo_nodes->add( ' | |bool |false | |0' ).
lt_act = mo_cut->parse( 'false' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
mo_nodes->clear( ).
mo_nodes->add( ' | |null | | |0' ).
lt_act = mo_cut->parse( 'null' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
ENDMETHOD.
METHOD parse_error.
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
DATA lx_err TYPE REF TO zcx_abapgit_ajson_error.
TRY.
lt_act = mo_cut->parse( 'abc' ).
cl_abap_unit_assert=>fail( 'Parsing of string w/o quotes must fail (spec)' ).
CATCH zcx_abapgit_ajson_error INTO lx_err.
cl_abap_unit_assert=>assert_char_cp(
act = lx_err->get_text( )
exp = '*parsing error*' ).
cl_abap_unit_assert=>assert_char_cp(
act = lx_err->location
exp = '@PARSER' ).
ENDTRY.
ENDMETHOD.
METHOD parse_string.
mo_nodes->add( ' | |object | | |1' ).
mo_nodes->add( '/ |string |str |abc | |0' ).
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
lt_act = mo_cut->parse( '{"string": "abc"}' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
ENDMETHOD.
METHOD parse_number.
mo_nodes->add( ' | |object | | |1' ).
mo_nodes->add( '/ |number |num |123 | |0' ).
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
lt_act = mo_cut->parse( '{"number": 123}' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
ENDMETHOD.
METHOD parse_float.
mo_nodes->add( ' | |object | | |1' ).
mo_nodes->add( '/ |float |num |123.45 | |0' ).
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
CREATE OBJECT mo_cut.
lt_act = mo_cut->parse( '{"float": 123.45}' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
ENDMETHOD.
METHOD parse_boolean.
mo_nodes->add( ' | |object | | |1' ).
mo_nodes->add( '/ |boolean |bool |true | |0' ).
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
lt_act = mo_cut->parse( '{"boolean": true}' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
ENDMETHOD.
METHOD parse_false.
mo_nodes->add( ' | |object | | |1' ).
mo_nodes->add( '/ |false |bool |false | |0' ).
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
lt_act = mo_cut->parse( '{"false": false}' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
ENDMETHOD.
METHOD parse_null.
mo_nodes->add( ' | |object | | |1' ).
mo_nodes->add( '/ |null |null | | |0' ).
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
lt_act = mo_cut->parse( '{"null": null}' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
ENDMETHOD.
METHOD parse_date.
mo_nodes->add( ' | |object | | |1' ).
mo_nodes->add( '/ |date |str |2020-03-15 | |0' ).
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
lt_act = mo_cut->parse( '{"date": "2020-03-15"}' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = mo_nodes->mt_nodes ).
ENDMETHOD.
METHOD sample_json.
rv_json =
'{\n' &&
' "string": "abc",\n' &&
' "number": 123,\n' &&
' "float": 123.45,\n' &&
' "boolean": true,\n' &&
' "false": false,\n' &&
' "null": null,\n' &&
' "date": "2020-03-15",\n' &&
' "issues": [\n' &&
' {\n' &&
' "message": "Indentation problem ...",\n' &&
' "key": "indentation",\n' &&
' "start": {\n' &&
' "row": 4,\n' &&
' "col": 3\n' &&
' },\n' &&
' "end": {\n' &&
' "row": 4,\n' &&
' "col": 26\n' &&
' },\n' &&
' "filename": "./zxxx.prog.abap"\n' &&
' },\n' &&
' {\n' &&
' "message": "Remove space before XXX",\n' &&
' "key": "space_before_dot",\n' &&
' "start": {\n' &&
' "row": 3,\n' &&
' "col": 21\n' &&
' },\n' &&
' "end": {\n' &&
' "row": 3,\n' &&
' "col": 22\n' &&
' },\n' &&
' "filename": "./zxxx.prog.abap"\n' &&
' }\n' &&
' ]\n' &&
'}'.
REPLACE ALL OCCURRENCES OF '\n' IN rv_json WITH iv_separator.
ENDMETHOD.
METHOD parse.
DATA lo_cut TYPE REF TO lcl_json_parser.
DATA lt_act TYPE zif_abapgit_ajson=>ty_nodes_tt.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |8' ).
lo_nodes->add( '/ |string |str |abc | |0' ).
lo_nodes->add( '/ |number |num |123 | |0' ).
lo_nodes->add( '/ |float |num |123.45 | |0' ).
lo_nodes->add( '/ |boolean |bool |true | |0' ).
lo_nodes->add( '/ |false |bool |false | |0' ).
lo_nodes->add( '/ |null |null | | |0' ).
lo_nodes->add( '/ |date |str |2020-03-15 | |0' ).
lo_nodes->add( '/ |issues |array | | |2' ).
lo_nodes->add( '/issues/ |1 |object | |1 |5' ).
lo_nodes->add( '/issues/1/ |message |str |Indentation problem ... | |0' ).
lo_nodes->add( '/issues/1/ |key |str |indentation | |0' ).
lo_nodes->add( '/issues/1/ |start |object | | |2' ).
lo_nodes->add( '/issues/1/start/ |row |num |4 | |0' ).
lo_nodes->add( '/issues/1/start/ |col |num |3 | |0' ).
lo_nodes->add( '/issues/1/ |end |object | | |2' ).
lo_nodes->add( '/issues/1/end/ |row |num |4 | |0' ).
lo_nodes->add( '/issues/1/end/ |col |num |26 | |0' ).
lo_nodes->add( '/issues/1/ |filename |str |./zxxx.prog.abap | |0' ).
lo_nodes->add( '/issues/ |2 |object | |2 |5' ).
lo_nodes->add( '/issues/2/ |message |str |Remove space before XXX | |0' ).
lo_nodes->add( '/issues/2/ |key |str |space_before_dot | |0' ).
lo_nodes->add( '/issues/2/ |start |object | | |2' ).
lo_nodes->add( '/issues/2/start/ |row |num |3 | |0' ).
lo_nodes->add( '/issues/2/start/ |col |num |21 | |0' ).
lo_nodes->add( '/issues/2/ |end |object | | |2' ).
lo_nodes->add( '/issues/2/end/ |row |num |3 | |0' ).
lo_nodes->add( '/issues/2/end/ |col |num |22 | |0' ).
lo_nodes->add( '/issues/2/ |filename |str |./zxxx.prog.abap | |0' ).
CREATE OBJECT lo_cut.
lt_act = lo_cut->parse( sample_json( ) ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = lo_nodes->mt_nodes ).
lt_act = lo_cut->parse( sample_json( |{ cl_abap_char_utilities=>newline }| ) ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = lo_nodes->mt_nodes ).
lt_act = lo_cut->parse( sample_json( |{ cl_abap_char_utilities=>cr_lf }| ) ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = lo_nodes->mt_nodes ).
ENDMETHOD.
ENDCLASS.
**********************************************************************
* SERIALIZER
**********************************************************************
CLASS ltcl_serializer_test DEFINITION FINAL
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PUBLIC SECTION.
CLASS-METHODS sample_json
RETURNING
VALUE(rv_json) TYPE string.
CLASS-METHODS sample_nodes
RETURNING
VALUE(rt_nodes) TYPE zif_abapgit_ajson=>ty_nodes_ts.
PRIVATE SECTION.
METHODS stringify_condensed FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS stringify_indented FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS array_index FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS item_order FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS simple_indented FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS empty_set FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS escape FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS empty FOR TESTING RAISING zcx_abapgit_ajson_error.
ENDCLASS.
CLASS ltcl_serializer_test IMPLEMENTATION.
METHOD sample_json.
rv_json =
'{\n' &&
' "boolean": true,\n' &&
' "date": "2020-03-15",\n' &&
' "false": false,\n' &&
' "float": 123.45,\n' &&
' "issues": [\n' &&
' {\n' &&
' "end": {\n' &&
' "col": 26,\n' &&
' "row": 4\n' &&
' },\n' &&
' "filename": "./zxxx.prog.abap",\n' &&
' "key": "indentation",\n' &&
' "message": "Indentation problem ...",\n' &&
' "start": {\n' &&
' "col": 3,\n' &&
' "row": 4\n' &&
' }\n' &&
' },\n' &&
' {\n' &&
' "end": {\n' &&
' "col": 22,\n' &&
' "row": 3\n' &&
' },\n' &&
' "filename": "./zxxx.prog.abap",\n' &&
' "key": "space_before_dot",\n' &&
' "message": "Remove space before XXX",\n' &&
' "start": {\n' &&
' "col": 21,\n' &&
' "row": 3\n' &&
' }\n' &&
' }\n' &&
' ],\n' &&
' "null": null,\n' &&
' "number": 123,\n' &&
' "string": "abc"\n' &&
'}'.
rv_json = replace(
val = rv_json
sub = '\n'
with = cl_abap_char_utilities=>newline
occ = 0 ).
ENDMETHOD.
METHOD sample_nodes.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |8' ).
lo_nodes->add( '/ |string |str |abc | |0' ).
lo_nodes->add( '/ |number |num |123 | |0' ).
lo_nodes->add( '/ |float |num |123.45 | |0' ).
lo_nodes->add( '/ |boolean |bool |true | |0' ).
lo_nodes->add( '/ |false |bool |false | |0' ).
lo_nodes->add( '/ |null |null | | |0' ).
lo_nodes->add( '/ |date |str |2020-03-15 | |0' ).
lo_nodes->add( '/ |issues |array | | |2' ).
lo_nodes->add( '/issues/ |1 |object | |1 |5' ).
lo_nodes->add( '/issues/1/ |message |str |Indentation problem ... | |0' ).
lo_nodes->add( '/issues/1/ |key |str |indentation | |0' ).
lo_nodes->add( '/issues/1/ |start |object | | |2' ).
lo_nodes->add( '/issues/1/start/ |row |num |4 | |0' ).
lo_nodes->add( '/issues/1/start/ |col |num |3 | |0' ).
lo_nodes->add( '/issues/1/ |end |object | | |2' ).
lo_nodes->add( '/issues/1/end/ |row |num |4 | |0' ).
lo_nodes->add( '/issues/1/end/ |col |num |26 | |0' ).
lo_nodes->add( '/issues/1/ |filename |str |./zxxx.prog.abap | |0' ).
lo_nodes->add( '/issues/ |2 |object | |2 |5' ).
lo_nodes->add( '/issues/2/ |message |str |Remove space before XXX | |0' ).
lo_nodes->add( '/issues/2/ |key |str |space_before_dot | |0' ).
lo_nodes->add( '/issues/2/ |start |object | | |2' ).
lo_nodes->add( '/issues/2/start/ |row |num |3 | |0' ).
lo_nodes->add( '/issues/2/start/ |col |num |21 | |0' ).
lo_nodes->add( '/issues/2/ |end |object | | |2' ).
lo_nodes->add( '/issues/2/end/ |row |num |3 | |0' ).
lo_nodes->add( '/issues/2/end/ |col |num |22 | |0' ).
lo_nodes->add( '/issues/2/ |filename |str |./zxxx.prog.abap | |0' ).
rt_nodes = lo_nodes->sorted( ).
ENDMETHOD.
METHOD stringify_condensed.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
lv_act = lcl_json_serializer=>stringify( sample_nodes( ) ).
lv_exp = sample_json( ).
lv_exp = replace(
val = lv_exp
sub = cl_abap_char_utilities=>newline
with = ''
occ = 0 ).
CONDENSE lv_exp.
lv_exp = replace(
val = lv_exp
sub = `: `
with = ':'
occ = 0 ).
lv_exp = replace(
val = lv_exp
sub = `{ `
with = '{'
occ = 0 ).
lv_exp = replace(
val = lv_exp
sub = `[ `
with = '['
occ = 0 ).
lv_exp = replace(
val = lv_exp
sub = ` }`
with = '}'
occ = 0 ).
lv_exp = replace(
val = lv_exp
sub = ` ]`
with = ']'
occ = 0 ).
lv_exp = replace(
val = lv_exp
sub = `, `
with = ','
occ = 0 ).
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
METHOD stringify_indented.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
lv_act = lcl_json_serializer=>stringify(
it_json_tree = sample_nodes( )
iv_indent = 2 ).
lv_exp = sample_json( ).
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
METHOD array_index.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |array | | |3' ).
lo_nodes->add( '/ |1 |str |abc |2 |0' ).
lo_nodes->add( '/ |2 |num |123 |1 |0' ).
lo_nodes->add( '/ |3 |num |123.45 |3 |0' ).
lv_act = lcl_json_serializer=>stringify( lo_nodes->sorted( ) ).
lv_exp = '[123,"abc",123.45]'.
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
METHOD item_order.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |3 |0' ).
lo_nodes->add( '/ |beta |str |b | |0 |3' ).
lo_nodes->add( '/ |zulu |str |z | |0 |1' ).
lo_nodes->add( '/ |alpha |str |a | |0 |2' ).
lv_act = lcl_json_serializer=>stringify( lo_nodes->sorted( ) ).
lv_exp = '{"alpha":"a","beta":"b","zulu":"z"}'. " NAME order ! (it is also a UT)
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
lv_act = lcl_json_serializer=>stringify(
it_json_tree = lo_nodes->sorted( )
iv_keep_item_order = abap_true ).
lv_exp = '{"zulu":"z","alpha":"a","beta":"b"}'.
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
METHOD simple_indented.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |array | | |3' ).
lo_nodes->add( '/ |1 |object | |2 |2' ).
lo_nodes->add( '/1/ |a |num |1 | |0' ).
lo_nodes->add( '/1/ |b |num |2 | |0' ).
lo_nodes->add( '/ |2 |num |123 |1 |0' ).
lo_nodes->add( '/ |3 |num |123.45 |3 |0' ).
lv_act = lcl_json_serializer=>stringify(
it_json_tree = lo_nodes->sorted( )
iv_indent = 2 ).
lv_exp = '[\n' &&
' 123,\n' &&
' {\n' &&
' "a": 1,\n' &&
' "b": 2\n' &&
' },\n' &&
' 123.45\n' &&
']'.
lv_exp = replace(
val = lv_exp
sub = '\n'
with = cl_abap_char_utilities=>newline
occ = 0 ).
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
METHOD empty_set.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |array | | |0' ).
lv_act = lcl_json_serializer=>stringify(
it_json_tree = lo_nodes->sorted( )
iv_indent = 0 ).
lv_exp = '[]'.
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
lv_act = lcl_json_serializer=>stringify(
it_json_tree = lo_nodes->sorted( )
iv_indent = 2 ).
lv_exp = '[]'.
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
METHOD escape.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
DATA lv_val TYPE string.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lv_val = 'a' && '"' && '\' && cl_abap_char_utilities=>horizontal_tab && cl_abap_char_utilities=>cr_lf.
lo_nodes->add( | \| \|str \|{ lv_val }\| \|0| ).
lv_act = lcl_json_serializer=>stringify( lo_nodes->sorted( ) ).
lv_exp = '"a\"\\\t\r\n"'.
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
METHOD empty.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lv_act = lcl_json_serializer=>stringify( lo_nodes->sorted( ) ).
lv_exp = ''.
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
ENDCLASS.
**********************************************************************
* UTILS
**********************************************************************
CLASS ltcl_utils_test DEFINITION FINAL
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
METHODS normalize_path FOR TESTING.
METHODS split_path FOR TESTING.
METHODS validate_array_index FOR TESTING RAISING zcx_abapgit_ajson_error.
ENDCLASS.
CLASS zcl_abapgit_ajson DEFINITION LOCAL FRIENDS ltcl_utils_test.
CLASS ltcl_utils_test IMPLEMENTATION.
METHOD validate_array_index.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>validate_array_index( iv_path = 'x' iv_index = '123' )
exp = 123 ).
TRY.
lcl_utils=>validate_array_index( iv_path = 'x'
iv_index = 'a' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error.
ENDTRY.
TRY.
lcl_utils=>validate_array_index( iv_path = 'x'
iv_index = '0' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error.
ENDTRY.
ENDMETHOD.
METHOD normalize_path.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>normalize_path( '' )
exp = '/' ).
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>normalize_path( '/' )
exp = '/' ).
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>normalize_path( 'abc' )
exp = '/abc/' ).
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>normalize_path( '/abc' )
exp = '/abc/' ).
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>normalize_path( 'abc/' )
exp = '/abc/' ).
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>normalize_path( '/abc/' )
exp = '/abc/' ).
ENDMETHOD.
METHOD split_path.
DATA ls_exp TYPE zif_abapgit_ajson=>ty_path_name.
DATA lv_path TYPE string.
lv_path = ''. " alias to root
ls_exp-path = ''.
ls_exp-name = ''.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>split_path( lv_path )
exp = ls_exp ).
lv_path = '/'.
ls_exp-path = ''.
ls_exp-name = ''.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>split_path( lv_path )
exp = ls_exp ).
lv_path = '/abc/'.
ls_exp-path = '/'.
ls_exp-name = 'abc'.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>split_path( lv_path )
exp = ls_exp ).
lv_path = 'abc'.
ls_exp-path = '/'.
ls_exp-name = 'abc'.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>split_path( lv_path )
exp = ls_exp ).
lv_path = '/abc'.
ls_exp-path = '/'.
ls_exp-name = 'abc'.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>split_path( lv_path )
exp = ls_exp ).
lv_path = 'abc/'.
ls_exp-path = '/'.
ls_exp-name = 'abc'.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>split_path( lv_path )
exp = ls_exp ).
lv_path = '/abc/xyz'.
ls_exp-path = '/abc/'.
ls_exp-name = 'xyz'.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>split_path( lv_path )
exp = ls_exp ).
lv_path = '/abc/xyz/'.
ls_exp-path = '/abc/'.
ls_exp-name = 'xyz'.
cl_abap_unit_assert=>assert_equals(
act = lcl_utils=>split_path( lv_path )
exp = ls_exp ).
ENDMETHOD.
ENDCLASS.
**********************************************************************
* READER
**********************************************************************
CLASS ltcl_reader_test DEFINITION FINAL
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
METHODS get_value FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS get_node_type FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS exists FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS value_integer FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS value_number FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS value_boolean FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS value_string FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS members FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS slice FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS array_to_string_table FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS get_date FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS get_timestamp FOR TESTING RAISING zcx_abapgit_ajson_error.
ENDCLASS.
CLASS zcl_abapgit_ajson DEFINITION LOCAL FRIENDS ltcl_reader_test.
CLASS ltcl_reader_test IMPLEMENTATION.
METHOD slice.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |array | | |2' ).
lo_nodes->add( '/ |1 |object | |1 |5' ).
lo_nodes->add( '/1/ |message |str |Indentation problem ... | |0' ).
lo_nodes->add( '/1/ |key |str |indentation | |0' ).
lo_nodes->add( '/1/ |start |object | | |2' ).
lo_nodes->add( '/1/start/ |row |num |4 | |0' ).
lo_nodes->add( '/1/start/ |col |num |3 | |0' ).
lo_nodes->add( '/1/ |end |object | | |2' ).
lo_nodes->add( '/1/end/ |row |num |4 | |0' ).
lo_nodes->add( '/1/end/ |col |num |26 | |0' ).
lo_nodes->add( '/1/ |filename |str |./zxxx.prog.abap | |0' ).
lo_nodes->add( '/ |2 |object | |2 |5' ).
lo_nodes->add( '/2/ |message |str |Remove space before XXX | |0' ).
lo_nodes->add( '/2/ |key |str |space_before_dot | |0' ).
lo_nodes->add( '/2/ |start |object | | |2' ).
lo_nodes->add( '/2/start/ |row |num |3 | |0' ).
lo_nodes->add( '/2/start/ |col |num |21 | |0' ).
lo_nodes->add( '/2/ |end |object | | |2' ).
lo_nodes->add( '/2/end/ |row |num |3 | |0' ).
lo_nodes->add( '/2/end/ |col |num |22 | |0' ).
lo_nodes->add( '/2/ |filename |str |./zxxx.prog.abap | |0' ).
lo_cut = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
lo_cut ?= lo_cut->zif_abapgit_ajson~slice( '/issues' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
" **********************************************************************
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |8' ).
lo_nodes->add( '/ |string |str |abc | |0' ).
lo_nodes->add( '/ |number |num |123 | |0' ).
lo_nodes->add( '/ |float |num |123.45 | |0' ).
lo_nodes->add( '/ |boolean |bool |true | |0' ).
lo_nodes->add( '/ |false |bool |false | |0' ).
lo_nodes->add( '/ |null |null | | |0' ).
lo_nodes->add( '/ |date |str |2020-03-15 | |0' ).
lo_nodes->add( '/ |issues |array | | |2' ).
lo_nodes->add( '/issues/ |1 |object | |1 |5' ).
lo_nodes->add( '/issues/1/ |message |str |Indentation problem ... | |0' ).
lo_nodes->add( '/issues/1/ |key |str |indentation | |0' ).
lo_nodes->add( '/issues/1/ |start |object | | |2' ).
lo_nodes->add( '/issues/1/start/ |row |num |4 | |0' ).
lo_nodes->add( '/issues/1/start/ |col |num |3 | |0' ).
lo_nodes->add( '/issues/1/ |end |object | | |2' ).
lo_nodes->add( '/issues/1/end/ |row |num |4 | |0' ).
lo_nodes->add( '/issues/1/end/ |col |num |26 | |0' ).
lo_nodes->add( '/issues/1/ |filename |str |./zxxx.prog.abap | |0' ).
lo_nodes->add( '/issues/ |2 |object | |2 |5' ).
lo_nodes->add( '/issues/2/ |message |str |Remove space before XXX | |0' ).
lo_nodes->add( '/issues/2/ |key |str |space_before_dot | |0' ).
lo_nodes->add( '/issues/2/ |start |object | | |2' ).
lo_nodes->add( '/issues/2/start/ |row |num |3 | |0' ).
lo_nodes->add( '/issues/2/start/ |col |num |21 | |0' ).
lo_nodes->add( '/issues/2/ |end |object | | |2' ).
lo_nodes->add( '/issues/2/end/ |row |num |3 | |0' ).
lo_nodes->add( '/issues/2/end/ |col |num |22 | |0' ).
lo_nodes->add( '/issues/2/ |filename |str |./zxxx.prog.abap | |0' ).
lo_cut = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
lo_cut ?= lo_cut->zif_abapgit_ajson~slice( '/' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
" **********************************************************************
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |2' ).
lo_nodes->add( '/ |row |num |3 | |0' ).
lo_nodes->add( '/ |col |num |21 | |0' ).
lo_cut = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
lo_cut ?= lo_cut->zif_abapgit_ajson~slice( '/issues/2/start/' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
ENDMETHOD.
METHOD get_value.
DATA lo_cut TYPE REF TO zif_abapgit_ajson.
lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get( '/string' )
exp = 'abc' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get( '/string/' )
exp = 'abc' ). " Hmmm ?
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get( '/boolean' )
exp = 'true' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get( '/issues/2/start/row' )
exp = '3' ).
ENDMETHOD.
METHOD get_node_type.
DATA li_cut TYPE REF TO zif_abapgit_ajson.
li_cut = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/' )
exp = 'object' ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/string' )
exp = 'str' ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/number' )
exp = 'num' ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/float' )
exp = 'num' ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/boolean' )
exp = 'bool' ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/false' )
exp = 'bool' ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/null' )
exp = 'null' ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/date' )
exp = 'str' ).
cl_abap_unit_assert=>assert_equals(
act = li_cut->get_node_type( '/issues' )
exp = 'array' ).
ENDMETHOD.
METHOD get_date.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lv_exp TYPE d.
CREATE OBJECT lo_cut.
lv_exp = '20200728'.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |1' ).
lo_nodes->add( '/ |date1 |str |2020-07-28 | |0' ).
lo_cut->mt_json_tree = lo_nodes->mt_nodes.
cl_abap_unit_assert=>assert_equals(
act = lo_cut->zif_abapgit_ajson~get_date( '/date1' )
exp = lv_exp ).
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |1' ).
lo_nodes->add( '/ |date1 |str |2020-07-28T01:00:00Z | |0' ).
lo_cut->mt_json_tree = lo_nodes->mt_nodes.
cl_abap_unit_assert=>assert_equals(
act = lo_cut->zif_abapgit_ajson~get_date( '/date1' )
exp = lv_exp ).
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |1' ).
lo_nodes->add( '/ |date1 |str |20200728 | |0' ).
lo_cut->mt_json_tree = lo_nodes->mt_nodes.
cl_abap_unit_assert=>assert_equals(
act = lo_cut->zif_abapgit_ajson~get_date( '/date1' )
exp = '' ).
ENDMETHOD.
METHOD get_timestamp.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lv_exp TYPE timestamp VALUE `20200728000000`.
CREATE OBJECT lo_cut.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |1' ).
lo_nodes->add( '/ |timestamp|str |2020-07-28T00:00:00Z | |0' ).
lo_cut->mt_json_tree = lo_nodes->mt_nodes.
cl_abap_unit_assert=>assert_equals(
act = lo_cut->zif_abapgit_ajson~get_timestamp( '/timestamp' )
exp = lv_exp ).
ENDMETHOD.
METHOD exists.
DATA lo_cut TYPE REF TO zif_abapgit_ajson.
lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->exists( '/string' )
exp = abap_true ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->exists( '/string/' )
exp = abap_true ). " mmmm ?
cl_abap_unit_assert=>assert_equals(
act = lo_cut->exists( '/xxx' )
exp = abap_false ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->exists( '/issues/2/start/row' )
exp = abap_true ).
ENDMETHOD.
METHOD value_integer.
DATA lo_cut TYPE REF TO zif_abapgit_ajson.
lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_integer( '/string' )
exp = 0 ). " Hmmmm ????
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_integer( '/number' )
exp = 123 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_integer( '/float' )
exp = 123 ).
ENDMETHOD.
METHOD value_number.
DATA lo_cut TYPE REF TO zif_abapgit_ajson.
lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_number( '/string' )
exp = 0 ). " Hmmmm ????
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_number( '/number' )
exp = +'123.0' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_number( '/float' )
exp = +'123.45' ).
ENDMETHOD.
METHOD value_boolean.
DATA lo_cut TYPE REF TO zif_abapgit_ajson.
lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_boolean( '/string' )
exp = abap_true ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_boolean( '/number' )
exp = abap_true ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_boolean( '/xxx' )
exp = abap_false ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_boolean( '/boolean' )
exp = abap_true ).
ENDMETHOD.
METHOD value_string.
DATA lo_cut TYPE REF TO zif_abapgit_ajson.
lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_string( '/string' )
exp = 'abc' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_string( '/number' )
exp = '123' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_string( '/xxx' )
exp = '' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->get_string( '/boolean' )
exp = 'true' ).
ENDMETHOD.
METHOD members.
DATA lt_exp TYPE string_table.
DATA lo_cut TYPE REF TO zif_abapgit_ajson.
lo_cut ?= zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
CLEAR lt_exp.
APPEND '1' TO lt_exp.
APPEND '2' TO lt_exp.
cl_abap_unit_assert=>assert_equals(
act = lo_cut->members( '/issues' )
exp = lt_exp ).
CLEAR lt_exp.
APPEND 'col' TO lt_exp.
APPEND 'row' TO lt_exp.
cl_abap_unit_assert=>assert_equals(
act = lo_cut->members( '/issues/1/start/' )
exp = lt_exp ).
ENDMETHOD.
METHOD array_to_string_table.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lt_act TYPE string_table.
DATA lt_exp TYPE string_table.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |array | | |6' ).
lo_nodes->add( '/ |1 |num |123 |1|0' ).
lo_nodes->add( '/ |2 |num |234 |2|0' ).
lo_nodes->add( '/ |3 |str |abc |3|0' ).
lo_nodes->add( '/ |4 |bool |true |4|0' ).
lo_nodes->add( '/ |5 |bool |false |5|0' ).
lo_nodes->add( '/ |6 |null |null |6|0' ).
APPEND '123' TO lt_exp.
APPEND '234' TO lt_exp.
APPEND 'abc' TO lt_exp.
APPEND 'X' TO lt_exp.
APPEND '' TO lt_exp.
APPEND '' TO lt_exp.
CREATE OBJECT lo_cut.
lo_cut->mt_json_tree = lo_nodes->mt_nodes.
lt_act = lo_cut->zif_abapgit_ajson~array_to_string_table( '/' ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = lt_exp ).
" negative
DATA lx TYPE REF TO zcx_abapgit_ajson_error.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |1' ).
lo_nodes->add( '/ |a |str |abc | |0' ).
lo_cut->mt_json_tree = lo_nodes->mt_nodes.
TRY.
lo_cut->zif_abapgit_ajson~array_to_string_table( '/x' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Path not found: /x' ).
ENDTRY.
TRY.
lo_cut->zif_abapgit_ajson~array_to_string_table( '/' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Array expected at: /' ).
ENDTRY.
TRY.
lo_cut->zif_abapgit_ajson~array_to_string_table( '/a' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Array expected at: /a' ).
ENDTRY.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |array | | |1' ).
lo_nodes->add( '/ |1 |object | |1|0' ).
lo_cut->mt_json_tree = lo_nodes->mt_nodes.
TRY.
lo_cut->zif_abapgit_ajson~array_to_string_table( '/' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Cannot convert [object] to string at [/1]' ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
**********************************************************************
* JSON TO ABAP
**********************************************************************
CLASS ltcl_json_to_abap DEFINITION
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT
FINAL.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_struc,
a TYPE string,
b TYPE i,
END OF ty_struc,
tty_struc TYPE STANDARD TABLE OF ty_struc WITH DEFAULT KEY,
BEGIN OF ty_complex,
str TYPE string,
int TYPE i,
float TYPE f,
bool TYPE abap_bool,
obj TYPE ty_struc,
tab TYPE tty_struc,
oref TYPE REF TO object,
date1 TYPE d,
date2 TYPE d,
timestamp1 TYPE timestamp,
timestamp2 TYPE timestamp,
timestamp3 TYPE timestamp,
END OF ty_complex.
METHODS find_loc FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS find_loc_negative FOR TESTING.
METHODS find_loc_append FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS to_abap FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS to_abap_negative FOR TESTING.
METHODS prepare_cut
EXPORTING
eo_cut TYPE REF TO lcl_json_to_abap
e_elem TYPE ty_struc
e_mock TYPE ty_complex.
ENDCLASS.
CLASS ltcl_json_to_abap IMPLEMENTATION.
METHOD prepare_cut.
e_mock-str = 'Hello'.
e_mock-int = 10.
e_mock-obj-a = 'World'.
e_elem-a = 'One'.
e_elem-b = 1.
APPEND e_elem TO e_mock-tab.
e_elem-a = 'two'.
e_elem-b = 2.
APPEND e_elem TO e_mock-tab.
lcl_json_to_abap=>bind(
CHANGING
c_obj = e_mock
co_instance = eo_cut ).
ENDMETHOD.
METHOD find_loc.
DATA last_elem TYPE ty_struc.
DATA ls_mock TYPE ty_complex.
DATA lo_cut TYPE REF TO lcl_json_to_abap.
prepare_cut(
IMPORTING
eo_cut = lo_cut
e_mock = ls_mock
e_elem = last_elem ).
DATA lr_ref TYPE REF TO data.
FIELD-SYMBOLS <val> TYPE any.
lr_ref = lo_cut->find_loc( 'str' ). " Relative also works but from root
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = 'Hello' ).
lr_ref = lo_cut->find_loc( '/str' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = 'Hello' ).
lr_ref = lo_cut->find_loc( '/int' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = 10 ).
lr_ref = lo_cut->find_loc( '/obj/a' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = 'World' ).
lr_ref = lo_cut->find_loc( iv_path = '/obj'
iv_name = 'a' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = 'World' ).
lr_ref = lo_cut->find_loc( '/obj' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = ls_mock-obj ).
lr_ref = lo_cut->find_loc( '/' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = ls_mock ).
lr_ref = lo_cut->find_loc( '/tab/2' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = last_elem ).
lr_ref = lo_cut->find_loc( '/tab/1/a' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = 'One' ).
ENDMETHOD.
METHOD find_loc_append.
DATA last_elem TYPE ty_struc.
DATA ls_mock TYPE ty_complex.
DATA lo_cut TYPE REF TO lcl_json_to_abap.
DATA lx TYPE REF TO zcx_abapgit_ajson_error.
prepare_cut(
IMPORTING
eo_cut = lo_cut
e_mock = ls_mock
e_elem = last_elem ).
DATA lr_ref TYPE REF TO data.
FIELD-SYMBOLS <val> TYPE any.
lr_ref = lo_cut->find_loc( '/tab/1/a' ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = 'One' ).
cl_abap_unit_assert=>assert_equals(
act = lines( ls_mock-tab )
exp = 2 ).
TRY.
lo_cut->find_loc( '/tab/3/a' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Index not found in table' ).
ENDTRY.
lr_ref = lo_cut->find_loc( iv_path = '/tab/3/a'
iv_append_tables = abap_true ).
ASSIGN lr_ref->* TO <val>.
cl_abap_unit_assert=>assert_equals(
act = <val>
exp = '' ).
cl_abap_unit_assert=>assert_equals(
act = lines( ls_mock-tab )
exp = 3 ).
TRY.
lo_cut->find_loc( '/tab/5/a' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Index not found in table' ).
ENDTRY.
ENDMETHOD.
METHOD find_loc_negative.
DATA lo_cut TYPE REF TO lcl_json_to_abap.
DATA lx TYPE REF TO zcx_abapgit_ajson_error.
DATA ls_mock TYPE ty_complex.
prepare_cut(
IMPORTING
e_mock = ls_mock " Must be here to keep reference alive
eo_cut = lo_cut ).
TRY.
lo_cut->find_loc( '/xyz' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Path not found' ).
ENDTRY.
TRY.
lo_cut->find_loc( '/oref/xyz' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Cannot assign to ref' ).
ENDTRY.
TRY.
lo_cut->find_loc( '/tab/xyz' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Need index to access tables' ).
ENDTRY.
TRY.
lo_cut->find_loc( '/tab/5' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Index not found in table' ).
ENDTRY.
ENDMETHOD.
METHOD to_abap.
DATA lo_cut TYPE REF TO lcl_json_to_abap.
DATA ls_mock TYPE ty_complex.
DATA lv_exp_date TYPE d VALUE '20200728'.
DATA lv_exp_timestamp TYPE timestamp VALUE '20200728000000'.
lcl_json_to_abap=>bind(
CHANGING
c_obj = ls_mock
co_instance = lo_cut ).
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
CREATE OBJECT lo_nodes.
lo_nodes->add( '/ | |object | | ' ).
lo_nodes->add( '/ |str |str |hello | ' ).
lo_nodes->add( '/ |int |num |5 | ' ).
lo_nodes->add( '/ |float |num |5.5 | ' ).
lo_nodes->add( '/ |bool |bool |true | ' ).
lo_nodes->add( '/ |obj |object | | ' ).
lo_nodes->add( '/obj |a |str |world | ' ).
lo_nodes->add( '/ |tab |array | | ' ).
lo_nodes->add( '/tab |1 |object | |1' ).
lo_nodes->add( '/tab/1 |a |str | One | ' ).
lo_nodes->add( '/tab |2 |object | |2' ).
lo_nodes->add( '/tab/2 |a |str | Two | ' ).
lo_nodes->add( '/ |date1 |str |2020-07-28 | ' ).
lo_nodes->add( '/ |date2 |str |2020-07-28T00:00:00Z | ' ).
lo_nodes->add( '/ |timestamp1 |str |2020-07-28T00:00:00 | ' ).
lo_nodes->add( '/ |timestamp2 |str |2020-07-28T00:00:00Z | ' ).
lo_nodes->add( '/ |timestamp3 |str |2020-07-28T01:00:00+01:00 | ' ).
lo_cut->to_abap( lo_nodes->sorted( ) ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-str
exp = 'hello' ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-int
exp = 5 ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-float
exp = '5.5' ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-bool
exp = abap_true ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-obj-a
exp = 'world' ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-date1
exp = lv_exp_date ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-date2
exp = lv_exp_date ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-timestamp1
exp = lv_exp_timestamp ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-timestamp2
exp = lv_exp_timestamp ).
cl_abap_unit_assert=>assert_equals(
act = ls_mock-timestamp3
exp = lv_exp_timestamp ).
DATA ls_elem LIKE LINE OF ls_mock-tab.
cl_abap_unit_assert=>assert_equals(
act = lines( ls_mock-tab )
exp = 2 ).
READ TABLE ls_mock-tab INTO ls_elem INDEX 1.
cl_abap_unit_assert=>assert_equals(
act = ls_elem-a
exp = 'One' ).
READ TABLE ls_mock-tab INTO ls_elem INDEX 2.
cl_abap_unit_assert=>assert_equals(
act = ls_elem-a
exp = 'Two' ).
ENDMETHOD.
METHOD to_abap_negative.
DATA lo_cut TYPE REF TO lcl_json_to_abap.
DATA lx TYPE REF TO zcx_abapgit_ajson_error.
DATA ls_mock TYPE ty_complex.
lcl_json_to_abap=>bind(
CHANGING
c_obj = ls_mock
co_instance = lo_cut ).
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
TRY.
CREATE OBJECT lo_nodes.
lo_nodes->add( '/ | |object | ' ).
lo_nodes->add( '/ |str |object | ' ).
lo_cut->to_abap( lo_nodes->sorted( ) ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Expected structure' ).
ENDTRY.
TRY.
CREATE OBJECT lo_nodes.
lo_nodes->add( '/ | |object | ' ).
lo_nodes->add( '/ |str |array | ' ).
lo_cut->to_abap( lo_nodes->sorted( ) ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Expected table' ).
ENDTRY.
TRY.
CREATE OBJECT lo_nodes.
lo_nodes->add( '/ | |object | ' ).
lo_nodes->add( '/ |int |str |hello ' ).
lo_cut->to_abap( lo_nodes->sorted( ) ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Source is not a number' ).
ENDTRY.
TRY.
CREATE OBJECT lo_nodes.
lo_nodes->add( '/ | |object | ' ).
lo_nodes->add( '/ |date1 |str |baddate ' ).
lo_cut->to_abap( lo_nodes->sorted( ) ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Unexpected date format' ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
**********************************************************************
* WRITER
**********************************************************************
CLASS ltcl_writer_test DEFINITION FINAL
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
METHODS set_ajson FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_value FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS ignore_empty FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_obj FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_tab FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_tab_hashed FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS prove_path_exists FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS delete_subtree FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS delete FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS arrays FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS arrays_negative FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS root_assignment FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_bool FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_str FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_int FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_date FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_timestamp FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS read_only FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_array_obj FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_with_type FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_with_type_slice
IMPORTING
io_json_in TYPE REF TO zcl_abapgit_ajson
io_json_out TYPE REF TO zif_abapgit_ajson
iv_path TYPE string
RAISING
zcx_abapgit_ajson_error.
ENDCLASS.
CLASS zcl_abapgit_ajson DEFINITION LOCAL FRIENDS ltcl_writer_test.
CLASS ltcl_writer_test IMPLEMENTATION.
METHOD prove_path_exists.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |object | ||1' ).
lo_nodes_exp->add( '/a/ |b |object | ||1' ).
lo_nodes_exp->add( '/a/b/ |c |object | ||1' ).
lo_nodes_exp->add( '/a/b/c/ |d |object | ||0' ).
lo_cut->prove_path_exists( '/a/b/c/d/' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |object | ||1' ).
lo_nodes_exp->add( '/a/ |b |object | ||1' ).
lo_nodes_exp->add( '/a/b/ |c |object | ||1' ).
lo_nodes_exp->add( '/a/b/c/ |d |object | ||1' ).
lo_nodes_exp->add( '/a/b/c/d |e |object | ||0' ).
lo_cut->prove_path_exists( '/a/b/c/d/e/' ).
ENDMETHOD.
METHOD delete_subtree.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |object | ||1' ).
lo_nodes_exp->add( '/a/ |b |object | ||1' ).
lo_nodes_exp->add( '/a/b/ |c |object | ||1' ).
lo_nodes_exp->add( '/a/b/c/ |d |object | ||0' ).
lo_cut->mt_json_tree = lo_nodes_exp->mt_nodes.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |object | ||0' ).
lo_cut->delete_subtree(
iv_path = '/a/'
iv_name = 'b' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD delete.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |object | ||1' ).
lo_nodes_exp->add( '/a/ |b |object | ||1' ).
lo_nodes_exp->add( '/a/b/ |c |object | ||1' ).
lo_nodes_exp->add( '/a/b/c/ |d |object | ||0' ).
lo_cut->mt_json_tree = lo_nodes_exp->mt_nodes.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |object | ||0' ).
lo_cut->zif_abapgit_ajson~delete( iv_path = '/a/b' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |object | ||1' ).
lo_nodes_exp->add( '/a/ |b |object | ||1' ).
lo_nodes_exp->add( '/a/b/ |c |object | ||1' ).
lo_nodes_exp->add( '/a/b/c/ |d |object | ||0' ).
lo_cut->mt_json_tree = lo_nodes_exp->mt_nodes.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |object | ||0' ).
lo_cut->zif_abapgit_ajson~delete( iv_path = '/a/b/' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD set_ajson.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lo_src TYPE REF TO zcl_abapgit_ajson.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
lo_src = zcl_abapgit_ajson=>create_empty( ).
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
" Prepare source
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | ||1' ).
lo_nodes->add( '/ |x |object | ||2' ).
lo_nodes->add( '/x/ |b |str |abc ||0' ).
lo_nodes->add( '/x/ |c |num |10 ||0' ).
lo_src->mt_json_tree = lo_nodes->mt_nodes.
" Test 1 - assign root
li_writer->set(
iv_path = ''
iv_val = lo_src ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
li_writer->set(
iv_path = '/'
iv_val = lo_src ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
" Test 2 - assign deep
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | ||1' ).
lo_nodes->add( '/ |a |object | ||1' ).
lo_nodes->add( '/a/ |b |object | ||1' ).
lo_nodes->add( '/a/b/ |c |object | ||1' ).
lo_nodes->add( '/a/b/c/ |x |object | ||2' ).
lo_nodes->add( '/a/b/c/x/ |b |str |abc ||0' ).
lo_nodes->add( '/a/b/c/x/ |c |num |10 ||0' ).
li_writer->clear( ).
li_writer->set(
iv_path = '/a/b/c'
iv_val = lo_src ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
" Test 3 - assign rewrite
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | ||1' ).
lo_nodes->add( '/ |a |object | ||1' ).
lo_nodes->add( '/a/ |b |object | ||1' ).
lo_nodes->add( '/a/b/ |x |object | ||2' ).
lo_nodes->add( '/a/b/x/ |b |str |abc ||0' ).
lo_nodes->add( '/a/b/x/ |c |num |10 ||0' ).
li_writer->set(
iv_path = '/a/b'
iv_val = lo_src ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
ENDMETHOD.
METHOD set_value.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
" Prepare source
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | ||1' ).
lo_nodes->add( '/ |x |object | ||2' ).
lo_nodes->add( '/x/ |b |str |abc ||0' ).
lo_nodes->add( '/x/ |c |num |10 ||0' ).
li_writer->set(
iv_path = '/x/b'
iv_val = 'abc' ).
li_writer->set(
iv_path = '/x/c'
iv_val = 10 ).
li_writer->set( " ignore empty
iv_path = '/x/d'
iv_val = 0 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
ENDMETHOD.
METHOD ignore_empty.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | ||1' ).
lo_nodes->add( '/ |a |num |1 ||0' ).
li_writer->set(
iv_path = '/a'
iv_val = 1 ).
li_writer->set( " ignore empty
iv_path = '/b'
iv_val = 0 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | ||2' ).
lo_nodes->add( '/ |a |num |1 ||0' ).
lo_nodes->add( '/ |b |num |0 ||0' ).
li_writer->set(
iv_ignore_empty = abap_false
iv_path = '/b'
iv_val = 0 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
ENDMETHOD.
METHOD set_obj.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA:
BEGIN OF ls_struc,
b TYPE string VALUE 'abc',
c TYPE i VALUE 10,
END OF ls_struc.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
" Prepare source
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | ||1' ).
lo_nodes->add( '/ |x |object | ||2' ).
lo_nodes->add( '/x/ |b |str |abc ||0' ).
lo_nodes->add( '/x/ |c |num |10 ||0' ).
li_writer->set(
iv_path = '/x'
iv_val = ls_struc ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
ENDMETHOD.
METHOD set_tab.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA lt_tab TYPE string_table.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
APPEND 'hello' TO lt_tab.
APPEND 'world' TO lt_tab.
" Prepare source
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |1' ).
lo_nodes->add( '/ |x |array | | |2' ).
lo_nodes->add( '/x/ |1 |str |hello|1|0' ).
lo_nodes->add( '/x/ |2 |str |world|2|0' ).
li_writer->set(
iv_path = '/x'
iv_val = lt_tab ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
ENDMETHOD.
METHOD set_tab_hashed.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA lt_tab TYPE HASHED TABLE OF string WITH UNIQUE DEFAULT KEY.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
INSERT `hello` INTO TABLE lt_tab.
INSERT `world` INTO TABLE lt_tab.
" Prepare source
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | | |1' ).
lo_nodes->add( '/ |x |array | | |2' ).
lo_nodes->add( '/x/ |1 |str |hello|1|0' ).
lo_nodes->add( '/x/ |2 |str |world|2|0' ).
li_writer->set(
iv_path = '/x'
iv_val = lt_tab ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes->sorted( ) ).
ENDMETHOD.
METHOD arrays.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
" touch
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | | |1' ).
lo_nodes_exp->add( '/ |a |array | | |0' ).
li_writer->touch_array( iv_path = '/a' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" add string
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | | |1' ).
lo_nodes_exp->add( '/ |a |array | | |1' ).
lo_nodes_exp->add( '/a/ |1 |str |hello|1|0' ).
li_writer->push(
iv_path = '/a'
iv_val = 'hello' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" add obj
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | | |1' ).
lo_nodes_exp->add( '/ |a |array | | |2' ).
lo_nodes_exp->add( '/a/ |1 |str |hello|1|0' ).
lo_nodes_exp->add( '/a/ |2 |object | |2|1' ).
lo_nodes_exp->add( '/a/2/ |x |str |world| |0' ).
DATA:
BEGIN OF ls_dummy,
x TYPE string VALUE 'world',
END OF ls_dummy.
li_writer->push(
iv_path = '/a'
iv_val = ls_dummy ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" re-touch
li_writer->touch_array( iv_path = '/a' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" re-touch with clear
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | | |1' ).
lo_nodes_exp->add( '/ |a |array | | |0' ).
li_writer->touch_array(
iv_path = '/a'
iv_clear = abap_true ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" free-add array item (index must be updated)
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | | |1' ).
lo_nodes_exp->add( '/ |a |array | | |2' ).
lo_nodes_exp->add( '/a/ |1 |object | |1|1' ).
lo_nodes_exp->add( '/a/1/ |x |num |123 | |0' ).
lo_nodes_exp->add( '/a/ |2 |num |234 |2|0' ).
li_writer->set(
iv_path = '/a/1/x'
iv_val = 123 ).
li_writer->set(
iv_path = '/a/2'
iv_val = 234 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD arrays_negative.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
li_writer->touch_array( iv_path = '/a' ).
li_writer->push(
iv_path = '/a'
iv_val = 123 ).
" touch another node
DATA lx TYPE REF TO zcx_abapgit_ajson_error.
TRY.
li_writer->touch_array( iv_path = '/a/1' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Path [/a/1] already used and is not array' ).
ENDTRY.
" push to not array
TRY.
li_writer->push(
iv_path = '/a/1'
iv_val = 123 ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Path [/a/1] is not array' ).
ENDTRY.
" push to not array
TRY.
li_writer->push(
iv_path = '/x'
iv_val = 123 ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Path [/x] does not exist' ).
ENDTRY.
" set array item with non-numeric key
TRY.
li_writer->set(
iv_path = '/a/abc/x'
iv_val = 123 ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Cannot add non-numeric key [abc] to array [/a/]' ).
ENDTRY.
TRY.
li_writer->set(
iv_path = '/a/abc'
iv_val = 123 ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Cannot add non-numeric key [abc] to array [/a/]' ).
ENDTRY.
" set array item with zero key
TRY.
li_writer->set(
iv_path = '/a/0'
iv_val = 123 ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error INTO lx.
cl_abap_unit_assert=>assert_equals(
act = lx->message
exp = 'Cannot add zero key to array [/a/]' ).
ENDTRY.
ENDMETHOD.
METHOD root_assignment.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA:
BEGIN OF ls_dummy,
x TYPE string VALUE 'hello',
END OF ls_dummy.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
" object
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |x |str |hello||0' ).
li_writer->set(
iv_path = '/'
iv_val = ls_dummy ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" object empty path
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |x |str |hello||0' ).
li_writer->clear( ).
li_writer->set(
iv_path = ''
iv_val = ls_dummy ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" array
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |array | | |1' ).
lo_nodes_exp->add( '/ |1 |str |hello|1|0' ).
li_writer->clear( ).
li_writer->touch_array( iv_path = '' ).
li_writer->push(
iv_path = ''
iv_val = 'hello' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" value
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |str |hello||0' ).
li_writer->clear( ).
li_writer->set(
iv_path = ''
iv_val = 'hello' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD set_bool.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA lt_tab TYPE string_table.
" abap_bool
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||2' ).
lo_nodes_exp->add( '/ |a |bool |true ||0' ).
lo_nodes_exp->add( '/ |b |bool |false ||0' ).
li_writer->set_boolean(
iv_path = '/a'
iv_val = abap_true ).
li_writer->set_boolean(
iv_path = '/b'
iv_val = abap_false ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" int
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||2' ).
lo_nodes_exp->add( '/ |a |bool |true ||0' ).
lo_nodes_exp->add( '/ |b |bool |false ||0' ).
li_writer->set_boolean(
iv_path = '/a'
iv_val = 1 ).
li_writer->set_boolean(
iv_path = '/b'
iv_val = 0 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
" tab
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||2' ).
lo_nodes_exp->add( '/ |a |bool |true ||0' ).
lo_nodes_exp->add( '/ |b |bool |false ||0' ).
APPEND 'hello' TO lt_tab.
li_writer->set_boolean(
iv_path = '/a'
iv_val = lt_tab ).
CLEAR lt_tab.
li_writer->set_boolean(
iv_path = '/b'
iv_val = lt_tab ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD set_str.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA lv_date TYPE d.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||3' ).
lo_nodes_exp->add( '/ |a |str |123 ||0' ).
lo_nodes_exp->add( '/ |b |str |X ||0' ).
lo_nodes_exp->add( '/ |c |str |20200705 ||0' ).
li_writer->set_string(
iv_path = '/a'
iv_val = '123' ).
li_writer->set_string(
iv_path = '/b'
iv_val = abap_true ).
lv_date = '20200705'.
li_writer->set_string(
iv_path = '/c'
iv_val = lv_date ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD set_int.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |num |123 ||0' ).
li_writer->set_integer(
iv_path = '/a'
iv_val = 123 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD set_date.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA lv_date TYPE d.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |str |2020-07-05 ||0' ).
lv_date = '20200705'.
li_writer->set_date(
iv_path = '/a'
iv_val = lv_date ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD set_timestamp.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA lv_timestamp TYPE timestamp.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||1' ).
lo_nodes_exp->add( '/ |a |str |2021-05-05T12-00-00Z ||0' ).
lv_timestamp = '20210505120000'.
li_writer->set_timestamp(
iv_path = '/a'
iv_val = lv_timestamp ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD read_only.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
" Prepare source
li_writer->set(
iv_path = '/a'
iv_val = 'abc' ).
li_writer->touch_array( iv_path = '/b' ).
li_writer->push(
iv_path = '/b'
iv_val = 'abc' ).
lo_cut->freeze( ).
TRY.
li_writer->set(
iv_path = '/c'
iv_val = 'abc' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error.
ENDTRY.
TRY.
li_writer->touch_array( iv_path = '/d' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error.
ENDTRY.
TRY.
li_writer->push(
iv_path = '/b'
iv_val = 'xyz' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error.
ENDTRY.
TRY.
li_writer->delete( iv_path = '/a' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error.
ENDTRY.
TRY.
li_writer->clear( ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_ajson_error.
ENDTRY.
ENDMETHOD.
METHOD set_array_obj.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | | |1' ).
lo_nodes_exp->add( '/ |issues |array | | |2' ).
lo_nodes_exp->add( '/issues/ |1 |object | |1 |1' ).
lo_nodes_exp->add( '/issues/ |2 |object | |2 |1' ).
lo_nodes_exp->add( '/issues/1/ |end |object | | |2' ).
lo_nodes_exp->add( '/issues/1/end/ |col |num |26 | |0' ).
lo_nodes_exp->add( '/issues/1/end/ |row |num |4 | |0' ).
lo_nodes_exp->add( '/issues/2/ |end |object | | |2' ).
lo_nodes_exp->add( '/issues/2/end/ |col |num |22 | |0' ).
lo_nodes_exp->add( '/issues/2/end/ |row |num |3 | |0' ).
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
li_writer->touch_array( iv_path = '/issues' ).
li_writer->set(
iv_path = '/issues/1/end/col'
iv_val = 26 ).
li_writer->set(
iv_path = '/issues/1/end/row'
iv_val = 4 ).
li_writer->set(
iv_path = '/issues/2/end/col'
iv_val = 22 ).
li_writer->set(
iv_path = '/issues/2/end/row'
iv_val = 3 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_nodes_exp->sorted( ) ).
ENDMETHOD.
METHOD set_with_type.
DATA lo_sample TYPE REF TO zcl_abapgit_ajson.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
lo_sample = zcl_abapgit_ajson=>parse( ltcl_parser_test=>sample_json( ) ).
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
set_with_type_slice( io_json_in = lo_sample
io_json_out = li_writer
iv_path = '/' ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->mt_json_tree
exp = lo_sample->mt_json_tree ).
ENDMETHOD.
METHOD set_with_type_slice.
DATA lv_path TYPE string.
FIELD-SYMBOLS <node> TYPE zif_abapgit_ajson=>ty_node.
LOOP AT io_json_in->mt_json_tree ASSIGNING <node> WHERE path = iv_path.
lv_path = <node>-path && <node>-name && '/'.
CASE <node>-type.
WHEN 'array'.
io_json_out->touch_array( lv_path ).
set_with_type_slice( io_json_in = io_json_in
io_json_out = io_json_out
iv_path = lv_path ).
WHEN 'object'.
set_with_type_slice( io_json_in = io_json_in
io_json_out = io_json_out
iv_path = lv_path ).
WHEN OTHERS.
io_json_out->set(
iv_path = lv_path
iv_val = <node>-value
iv_node_type = <node>-type ).
ENDCASE.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
**********************************************************************
* INTEGRATED
**********************************************************************
CLASS ltcl_integrated DEFINITION
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT
FINAL.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_loc,
row TYPE i,
col TYPE i,
END OF ty_loc,
BEGIN OF ty_issue,
message TYPE string,
key TYPE string,
filename TYPE string,
start TYPE ty_loc,
end TYPE ty_loc,
END OF ty_issue,
tt_issues TYPE STANDARD TABLE OF ty_issue WITH DEFAULT KEY,
BEGIN OF ty_target,
string TYPE string,
number TYPE i,
float TYPE f,
boolean TYPE abap_bool,
false TYPE abap_bool,
null TYPE string,
date TYPE string, " ??? TODO
issues TYPE tt_issues,
END OF ty_target.
METHODS reader FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS array_index FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS array_simple FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS stringify FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS item_order_integrated FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS chaining FOR TESTING RAISING zcx_abapgit_ajson_error.
ENDCLASS.
CLASS ltcl_integrated IMPLEMENTATION.
METHOD array_simple.
DATA lt_act TYPE string_table.
DATA lt_exp TYPE string_table.
DATA lv_exp TYPE string.
DATA lv_src TYPE string.
lv_src = '['.
DO 10 TIMES.
IF sy-index <> 1.
lv_src = lv_src && `, `.
ENDIF.
lv_src = lv_src && |"{ sy-index }"|.
lv_exp = |{ sy-index }|.
APPEND lv_exp TO lt_exp.
ENDDO.
lv_src = lv_src && ']'.
DATA li_reader TYPE REF TO zif_abapgit_ajson.
li_reader = zcl_abapgit_ajson=>parse( lv_src ).
li_reader->to_abap( IMPORTING ev_container = lt_act ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = lt_exp ).
ENDMETHOD.
METHOD array_index.
DATA lt_act TYPE TABLE OF ty_loc.
DATA lt_exp TYPE TABLE OF ty_loc.
DATA ls_exp TYPE ty_loc.
DATA lv_src TYPE string.
lv_src = '['.
DO 10 TIMES.
IF sy-index <> 1.
lv_src = lv_src && `, `.
ENDIF.
lv_src = lv_src && |\{ "row": { sy-index } \}|.
ls_exp-row = sy-index.
APPEND ls_exp TO lt_exp.
ENDDO.
lv_src = lv_src && ']'.
DATA li_reader TYPE REF TO zif_abapgit_ajson.
li_reader = zcl_abapgit_ajson=>parse( lv_src ).
li_reader->to_abap( IMPORTING ev_container = lt_act ).
cl_abap_unit_assert=>assert_equals(
act = lt_act
exp = lt_exp ).
ENDMETHOD.
METHOD reader.
DATA lv_source TYPE string.
DATA li_reader TYPE REF TO zif_abapgit_ajson.
lv_source = ltcl_parser_test=>sample_json( ).
li_reader = zcl_abapgit_ajson=>parse( lv_source ).
cl_abap_unit_assert=>assert_equals(
act = li_reader->get( '/string' )
exp = 'abc' ).
DATA ls_act TYPE ty_target.
DATA ls_exp TYPE ty_target.
FIELD-SYMBOLS <i> LIKE LINE OF ls_exp-issues.
ls_exp-string = 'abc'.
ls_exp-number = 123.
ls_exp-float = '123.45'.
ls_exp-boolean = abap_true.
ls_exp-false = abap_false.
ls_exp-date = '2020-03-15'.
APPEND INITIAL LINE TO ls_exp-issues ASSIGNING <i>.
<i>-message = 'Indentation problem ...'.
<i>-key = 'indentation'.
<i>-filename = './zxxx.prog.abap'.
<i>-start-row = 4.
<i>-start-col = 3.
<i>-end-row = 4.
<i>-end-col = 26.
APPEND INITIAL LINE TO ls_exp-issues ASSIGNING <i>.
<i>-message = 'Remove space before XXX'.
<i>-key = 'space_before_dot'.
<i>-filename = './zxxx.prog.abap'.
<i>-start-row = 3.
<i>-start-col = 21.
<i>-end-row = 3.
<i>-end-col = 22.
li_reader->to_abap( IMPORTING ev_container = ls_act ).
cl_abap_unit_assert=>assert_equals(
act = ls_act
exp = ls_exp ).
ENDMETHOD.
METHOD stringify.
DATA lo_cut TYPE REF TO zcl_abapgit_ajson.
DATA li_writer TYPE REF TO zif_abapgit_ajson.
DATA lv_exp TYPE string.
DATA: BEGIN OF ls_dummy, x TYPE i, END OF ls_dummy.
ls_dummy-x = 1.
lo_cut = zcl_abapgit_ajson=>create_empty( ).
li_writer = lo_cut.
li_writer->set(
iv_path = '/a'
iv_val = 1 ).
li_writer->set(
iv_path = '/b'
iv_val = 'B' ).
li_writer->set(
iv_path = '/c'
iv_val = abap_true ).
li_writer->set_null( iv_path = '/d' ).
" simple test
lv_exp = '{"a":1,"b":"B","c":true,"d":null}'.
cl_abap_unit_assert=>assert_equals(
act = lo_cut->stringify( )
exp = lv_exp ).
li_writer->touch_array( iv_path = '/e' ).
li_writer->touch_array( iv_path = '/f' ).
li_writer->push(
iv_path = '/f'
iv_val = 5 ).
li_writer->push(
iv_path = '/f'
iv_val = ls_dummy ).
li_writer->set(
iv_path = '/g'
iv_val = ls_dummy ).
" complex test
lv_exp = '{"a":1,"b":"B","c":true,"d":null,"e":[],"f":[5,{"x":1}],"g":{"x":1}}'.
cl_abap_unit_assert=>assert_equals(
act = lo_cut->stringify( )
exp = lv_exp ).
" complex test indented
lv_exp =
'{\n' &&
' "a": 1,\n' &&
' "b": "B",\n' &&
' "c": true,\n' &&
' "d": null,\n' &&
' "e": [],\n' &&
' "f": [\n' &&
' 5,\n' &&
' {\n' &&
' "x": 1\n' &&
' }\n' &&
' ],\n' &&
' "g": {\n' &&
' "x": 1\n' &&
' }\n' &&
'}'.
lv_exp = replace(
val = lv_exp
sub = '\n'
with = cl_abap_char_utilities=>newline
occ = 0 ).
cl_abap_unit_assert=>assert_equals(
act = lo_cut->stringify( iv_indent = 2 )
exp = lv_exp ).
ENDMETHOD.
METHOD item_order_integrated.
DATA:
BEGIN OF ls_dummy,
zulu TYPE string,
alpha TYPE string,
beta TYPE string,
END OF ls_dummy.
DATA lv_act TYPE string.
DATA lv_exp TYPE string.
DATA li_cut TYPE REF TO zif_abapgit_ajson.
ls_dummy-alpha = 'a'.
ls_dummy-beta = 'b'.
ls_dummy-zulu = 'z'.
" NAME order
li_cut = zcl_abapgit_ajson=>create_empty( ).
li_cut->set(
iv_path = '/'
iv_val = ls_dummy ).
lv_act = li_cut->stringify( ).
lv_exp = '{"alpha":"a","beta":"b","zulu":"z"}'.
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
" STRUC order (keep)
li_cut = zcl_abapgit_ajson=>create_empty( ).
li_cut->keep_item_order( ).
li_cut->set(
iv_path = '/'
iv_val = ls_dummy ).
lv_act = li_cut->stringify( ).
lv_exp = '{"zulu":"z","alpha":"a","beta":"b"}'.
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = lv_exp ).
ENDMETHOD.
METHOD chaining.
DATA li_cut TYPE REF TO zif_abapgit_ajson.
li_cut = zcl_abapgit_ajson=>create_empty( ).
cl_abap_unit_assert=>assert_bound(
li_cut->set(
iv_path = '/a'
iv_val = 1 ) ).
cl_abap_unit_assert=>assert_bound( li_cut->delete( iv_path = '/a' ) ).
cl_abap_unit_assert=>assert_bound( li_cut->touch_array( iv_path = '/array' ) ).
cl_abap_unit_assert=>assert_bound(
li_cut->push(
iv_path = '/array'
iv_val = '1' ) ).
cl_abap_unit_assert=>assert_bound( li_cut->keep_item_order( ) ).
ENDMETHOD.
ENDCLASS.
**********************************************************************
* ABAP TO JSON
**********************************************************************
CLASS ltcl_abap_to_json DEFINITION
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT
FINAL.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_struc,
a TYPE string,
b TYPE i,
c TYPE abap_bool,
d TYPE xfeld,
END OF ty_struc,
tt_struc TYPE STANDARD TABLE OF ty_struc WITH DEFAULT KEY,
BEGIN OF ty_struc_complex.
INCLUDE TYPE ty_struc.
TYPES:
el TYPE string,
struc TYPE ty_struc,
tab TYPE tt_struc,
stab TYPE string_table,
END OF ty_struc_complex.
METHODS set_ajson FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_value_number FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_value_string FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_value_true FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_value_false FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_value_xfeld FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_null FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_obj FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_array FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS set_complex_obj FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS prefix FOR TESTING RAISING zcx_abapgit_ajson_error.
ENDCLASS.
CLASS zcl_abapgit_ajson DEFINITION LOCAL FRIENDS ltcl_abap_to_json.
CLASS ltcl_abap_to_json IMPLEMENTATION.
METHOD set_ajson.
DATA lo_nodes TYPE REF TO lcl_nodes_helper.
DATA lo_src TYPE REF TO zcl_abapgit_ajson.
lo_src = zcl_abapgit_ajson=>create_empty( ).
CREATE OBJECT lo_nodes.
lo_nodes->add( ' | |object | ||1' ).
lo_nodes->add( '/ |a |object | ||1' ).
lo_nodes->add( '/a/ |b |object | ||1' ).
lo_nodes->add( '/a/b/ |c |object | ||0' ).
lo_src->mt_json_tree = lo_nodes->mt_nodes.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
lt_nodes = lcl_abap_to_json=>convert( iv_data = lo_src ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes->mt_nodes ).
ENDMETHOD.
METHOD set_value_number.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
" number
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |num |1 ||' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = 1 ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD set_value_string.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
" string
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |str |abc ||' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = 'abc' ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD set_value_true.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
" true
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |bool |true ||' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = abap_true ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD set_value_false.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
" false
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |bool |false ||' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = abap_false ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD set_value_xfeld.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
" xfeld
DATA lv_xfeld TYPE xfeld.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |bool |true ||' ).
lv_xfeld = 'X'.
lt_nodes = lcl_abap_to_json=>convert( iv_data = lv_xfeld ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD set_null.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
DATA lv_null_ref TYPE REF TO data.
" null
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |null |null ||' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = lv_null_ref ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD prefix.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
DATA ls_prefix TYPE zif_abapgit_ajson=>ty_path_name.
ls_prefix-path = '/a/'.
ls_prefix-name = 'b'.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( '/a/ |b |num |1 ||' ).
lt_nodes = lcl_abap_to_json=>convert(
iv_data = 1
is_prefix = ls_prefix ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD set_obj.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA ls_struc TYPE ty_struc.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
ls_struc-a = 'abc'.
ls_struc-b = 10.
ls_struc-c = abap_true.
ls_struc-d = 'X'.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||4' ).
lo_nodes_exp->add( '/ |a |str |abc ||0' ).
lo_nodes_exp->add( '/ |b |num |10 ||0' ).
lo_nodes_exp->add( '/ |c |bool |true ||0' ).
lo_nodes_exp->add( '/ |d |bool |true ||0' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = ls_struc ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD set_complex_obj.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA ls_struc TYPE ty_struc_complex.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
FIELD-SYMBOLS <i> LIKE LINE OF ls_struc-tab.
ls_struc-a = 'abc'.
ls_struc-b = 10.
ls_struc-c = abap_true.
ls_struc-d = 'X'.
ls_struc-el = 'elem'.
ls_struc-struc-a = 'deep'.
ls_struc-struc-b = 123.
APPEND 'hello' TO ls_struc-stab.
APPEND 'world' TO ls_struc-stab.
APPEND INITIAL LINE TO ls_struc-tab ASSIGNING <i>.
<i>-a = 'abc'.
APPEND INITIAL LINE TO ls_struc-tab ASSIGNING <i>.
<i>-a = 'bcd'.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |object | ||8' ).
lo_nodes_exp->add( '/ |a |str |abc ||0' ).
lo_nodes_exp->add( '/ |b |num |10 ||0' ).
lo_nodes_exp->add( '/ |c |bool |true ||0' ).
lo_nodes_exp->add( '/ |d |bool |true ||0' ).
lo_nodes_exp->add( '/ |el |str |elem ||0' ).
lo_nodes_exp->add( '/ |struc |object | ||4' ).
lo_nodes_exp->add( '/struc/|a |str |deep ||0' ).
lo_nodes_exp->add( '/struc/|b |num |123 ||0' ).
lo_nodes_exp->add( '/struc/|c |bool |false||0' ).
lo_nodes_exp->add( '/struc/|d |bool |false||0' ).
lo_nodes_exp->add( '/ |tab |array | | |2' ).
lo_nodes_exp->add( '/tab/ |1 |object | |1|4' ).
lo_nodes_exp->add( '/tab/1/|a |str |abc | |0' ).
lo_nodes_exp->add( '/tab/1/|b |num |0 | |0' ).
lo_nodes_exp->add( '/tab/1/|c |bool |false| |0' ).
lo_nodes_exp->add( '/tab/1/|d |bool |false| |0' ).
lo_nodes_exp->add( '/tab/ |2 |object | |2|4' ).
lo_nodes_exp->add( '/tab/2/|a |str |bcd | |0' ).
lo_nodes_exp->add( '/tab/2/|b |num |0 | |0' ).
lo_nodes_exp->add( '/tab/2/|c |bool |false| |0' ).
lo_nodes_exp->add( '/tab/2/|d |bool |false| |0' ).
lo_nodes_exp->add( '/ |stab |array | | |2' ).
lo_nodes_exp->add( '/stab/ |1 |str |hello|1|0' ).
lo_nodes_exp->add( '/stab/ |2 |str |world|2|0' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = ls_struc ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
METHOD set_array.
DATA lo_nodes_exp TYPE REF TO lcl_nodes_helper.
DATA lt_nodes TYPE zif_abapgit_ajson=>ty_nodes_tt.
DATA lt_tab TYPE TABLE OF ty_struc.
FIELD-SYMBOLS <s> LIKE LINE OF lt_tab.
APPEND INITIAL LINE TO lt_tab ASSIGNING <s>.
<s>-a = 'abc'.
<s>-b = 10.
APPEND INITIAL LINE TO lt_tab ASSIGNING <s>.
<s>-a = 'bcd'.
<s>-b = 20.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |array | | |2' ).
lo_nodes_exp->add( '/ |1 |object | |1|4' ).
lo_nodes_exp->add( '/1/ |a |str |abc | |0' ).
lo_nodes_exp->add( '/1/ |b |num |10 | |0' ).
lo_nodes_exp->add( '/1/ |c |bool |false| |0' ).
lo_nodes_exp->add( '/1/ |d |bool |false| |0' ).
lo_nodes_exp->add( '/ |2 |object | |2|4' ).
lo_nodes_exp->add( '/2/ |a |str |bcd | |0' ).
lo_nodes_exp->add( '/2/ |b |num |20 | |0' ).
lo_nodes_exp->add( '/2/ |c |bool |false| |0' ).
lo_nodes_exp->add( '/2/ |d |bool |false| |0' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = lt_tab ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
DATA lt_strtab TYPE string_table.
APPEND 'abc' TO lt_strtab.
APPEND 'bcd' TO lt_strtab.
CREATE OBJECT lo_nodes_exp.
lo_nodes_exp->add( ' | |array | | |2' ).
lo_nodes_exp->add( '/ |1 |str |abc |1|0' ).
lo_nodes_exp->add( '/ |2 |str |bcd |2|0' ).
lt_nodes = lcl_abap_to_json=>convert( iv_data = lt_strtab ).
cl_abap_unit_assert=>assert_equals(
act = lt_nodes
exp = lo_nodes_exp->mt_nodes ).
ENDMETHOD.
ENDCLASS.
| [
17174,
17174,
2466,
1174,
198,
9,
19255,
4146,
198,
17174,
17174,
2466,
1174,
198,
31631,
300,
565,
62,
77,
4147,
62,
2978,
525,
5550,
20032,
17941,
25261,
13,
198,
220,
44731,
44513,
13,
628,
220,
220,
220,
42865,
45079,
62,
77,
4147,
41876,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
14804,
774,
62,
77,
4147,
62,
926,
13,
198,
220,
220,
220,
337,
36252,
50,
751,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2536,
41876,
4731,
13,
198,
220,
220,
220,
337,
36252,
50,
1598,
13,
198,
220,
220,
220,
337,
36252,
50,
23243,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
77,
4147,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
14804,
774,
62,
77,
4147,
62,
912,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
565,
62,
77,
4147,
62,
2978,
525,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
751,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1279,
77,
29,
34178,
48920,
3963,
45079,
62,
77,
4147,
13,
198,
220,
220,
220,
42865,
300,
85,
62,
17197,
41876,
4731,
13,
198,
220,
220,
220,
42865,
300,
85,
62,
9630,
41876,
4731,
13,
198,
220,
220,
220,
42865,
300,
85,
62,
2875,
41876,
4731,
13,
628,
220,
220,
220,
43504,
10619,
3268,
2043,
12576,
48920,
5390,
45079,
62,
77,
4147,
24994,
3528,
15871,
1279,
77,
28401,
628,
220,
220,
220,
46341,
2043,
21628,
62,
2536,
5161,
705,
91,
6,
39319,
198,
220,
220,
220,
220,
220,
1279,
77,
29,
12,
6978,
198,
220,
220,
220,
220,
220,
1279,
77,
29,
12,
3672,
198,
220,
220,
220,
220,
220,
1279,
77,
29,
12,
4906,
198,
220,
220,
220,
220,
220,
1279,
77,
29,
12,
8367,
198,
220,
220,
220,
220,
220,
300,
85,
62,
9630,
198,
220,
220,
220,
220,
220,
300,
85,
62,
17197,
198,
220,
220,
220,
220,
220,
300,
85,
62,
2875,
13,
198,
220,
220,
220,
7102,
35,
24290,
1279,
77,
29,
12,
6978,
13,
198,
220,
220,
220,
7102,
35,
24290,
1279,
77,
29,
12,
3672,
13,
198,
220,
220,
220,
7102,
35,
24290,
1279,
77,
29,
12,
4906,
13,
198,
220,
220,
220,
7102,
35,
24290,
1279,
77,
29,
12,
8367,
13,
198,
220,
220,
220,
1279,
77,
29,
12,
9630,
796,
300,
85,
62,
9630,
13,
198,
220,
220,
220,
1279,
77,
29,
12,
17197,
796,
300,
85,
62,
17197,
13,
198,
220,
220,
220,
1279,
77,
29,
12,
2875,
796,
300,
85,
62,
2875,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
23243,
13,
198,
220,
220,
220,
374,
83,
62,
77,
4147,
796,
45079,
62,
77,
4147,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1598,
13,
198,
220,
220,
220,
30301,
1503,
45079,
62,
77,
4147,
13,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198,
198,
17174,
17174,
2466,
1174,
198,
9,
350,
27415,
1137,
198,
17174,
17174,
2466,
1174,
198,
198,
31631,
300,
83,
565,
62,
48610,
62,
9288,
5550,
20032,
17941,
25261,
198,
220,
7473,
43001,
2751,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
360,
4261,
6234,
6006,
9863,
13,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
6291,
62,
17752,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
25512,
1352,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
17752,
8,
41876,
4731,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
6941,
62,
8968,
41876,
4526,
37,
5390,
300,
565,
62,
17752,
62,
48610,
13,
198,
220,
220,
220,
42865,
6941,
62,
77,
4147,
41876,
4526,
37,
5390,
300,
565,
62,
77,
4147,
62,
2978,
525,
13,
628,
220,
220,
220,
337,
36252,
50,
9058,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
8841,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
17618,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
22468,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
2127,
21052,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
9562,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
8423,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
4475,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
49382,
62,
27160,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
18224,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
48610,
62,
9288,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
9058,
13,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
6941,
62,
8968,
13,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
6941,
62,
77,
4147,
13,
198,
220,
23578,
49273
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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O zcl_abapgit_syntax_highlighter .
METHODS process_line
IMPORTING
!iv_line TYPE string
RETURNING
VALUE(rv_line) TYPE string .
PROTECTED SECTION.
TYPES:
BEGIN OF ty_match,
token TYPE char1, " Type of matches
offset TYPE i, " Beginning position of the string that should be formatted
length TYPE i, " Length of the string that should be formatted
text_tag TYPE string, " Type of text tag
END OF ty_match.
TYPES:
ty_match_tt TYPE STANDARD TABLE OF ty_match WITH DEFAULT KEY.
TYPES:
BEGIN OF ty_rule,
regex TYPE REF TO cl_abap_regex,
token TYPE char1,
style TYPE string,
END OF ty_rule.
CONSTANTS c_token_none TYPE c VALUE '.'.
DATA mt_rules TYPE STANDARD TABLE OF ty_rule.
METHODS add_rule
IMPORTING
iv_regex TYPE string
iv_token TYPE c
iv_style TYPE string.
METHODS parse_line
IMPORTING iv_line TYPE string
EXPORTING et_matches TYPE ty_match_tt.
METHODS order_matches ABSTRACT
IMPORTING iv_line TYPE string
CHANGING ct_matches TYPE ty_match_tt.
METHODS extend_matches
IMPORTING iv_line TYPE string
CHANGING ct_matches TYPE ty_match_tt.
METHODS format_line
IMPORTING iv_line TYPE string
it_matches TYPE ty_match_tt
RETURNING VALUE(rv_line) TYPE string.
METHODS apply_style
IMPORTING iv_line TYPE string
iv_class TYPE string
RETURNING VALUE(rv_line) TYPE string.
ENDCLASS.
CLASS ZCL_ABAPGIT_SYNTAX_HIGHLIGHTER IMPLEMENTATION.
METHOD add_rule.
DATA ls_rule LIKE LINE OF mt_rules.
CREATE OBJECT ls_rule-regex
EXPORTING
pattern = iv_regex
ignore_case = abap_true.
ls_rule-token = iv_token.
ls_rule-style = iv_style.
APPEND ls_rule TO mt_rules.
ENDMETHOD.
METHOD apply_style.
DATA lv_escaped TYPE string.
lv_escaped = escape( val = iv_line format = cl_abap_format=>e_html_attr ).
IF iv_class IS NOT INITIAL.
rv_line = |<span class="{ iv_class }">{ lv_escaped }</span>|.
ELSE.
rv_line = lv_escaped.
ENDIF.
ENDMETHOD.
METHOD create.
" Create instance of highighter dynamically dependent on syntax type
IF iv_filename CP '*.abap'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_abap.
ELSEIF iv_filename CP '*.xml'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_xml.
ELSE.
CLEAR ro_instance.
ENDIF.
ENDMETHOD.
METHOD extend_matches.
DATA: lv_line_len TYPE i,
lv_last_pos TYPE i VALUE 0,
lv_length TYPE i,
ls_match TYPE ty_match.
FIELD-SYMBOLS <ls_match> TYPE ty_match.
lv_line_len = strlen( iv_line ).
SORT ct_matches BY offset.
" Add entries refering to parts of text that should not be formatted
LOOP AT ct_matches ASSIGNING <ls_match>.
IF <ls_match>-offset > lv_last_pos.
lv_length = <ls_match>-offset - lv_last_pos.
ls_match-token = c_token_none.
ls_match-offset = lv_last_pos.
ls_match-length = lv_length.
INSERT ls_match INTO ct_matches INDEX sy-tabix.
ENDIF.
lv_last_pos = <ls_match>-offset + <ls_match>-length.
ENDLOOP.
" Add remainder of the string
IF lv_line_len > lv_last_pos.
lv_length = lv_line_len - lv_last_pos.
ls_match-token = c_token_none.
ls_match-offset = lv_last_pos.
ls_match-length = lv_length.
APPEND ls_match TO ct_matches.
ENDIF.
ENDMETHOD.
METHOD format_line.
DATA:
lv_chunk TYPE string,
ls_rule LIKE LINE OF mt_rules.
FIELD-SYMBOLS <ls_match> TYPE ty_match.
LOOP AT it_matches ASSIGNING <ls_match>.
lv_chunk = substring( val = iv_line off = <ls_match>-offset len = <ls_match>-length ).
CLEAR ls_rule. " Failed read equals no style
READ TABLE mt_rules INTO ls_rule WITH KEY token = <ls_match>-token.
lv_chunk = me->apply_style( iv_line = lv_chunk
iv_class = ls_rule-style ).
rv_line = rv_line && lv_chunk.
ENDLOOP.
ENDMETHOD.
METHOD parse_line.
DATA:
lo_regex TYPE REF TO cl_abap_regex,
lo_matcher TYPE REF TO cl_abap_matcher,
lt_result TYPE match_result_tab,
ls_match TYPE ty_match.
FIELD-SYMBOLS:
<ls_regex> LIKE LINE OF mt_rules,
<ls_result> TYPE match_result.
CLEAR et_matches.
" Process syntax-dependent regex table and find all matches
LOOP AT mt_rules ASSIGNING <ls_regex>.
lo_regex = <ls_regex>-regex.
lo_matcher = lo_regex->create_matcher( text = iv_line ).
lt_result = lo_matcher->find_all( ).
" Save matches into custom table with predefined tokens
LOOP AT lt_result ASSIGNING <ls_result>.
CLEAR: ls_match.
ls_match-token = <ls_regex>-token.
ls_match-offset = <ls_result>-offset.
ls_match-length = <ls_result>-length.
APPEND ls_match TO et_matches.
ENDLOOP.
ENDLOOP.
ENDMETHOD.
METHOD process_line.
DATA: lt_matches TYPE ty_match_tt.
IF strlen( iv_line ) = 0.
RETURN.
ENDIF.
me->parse_line( EXPORTING iv_line = iv_line
IMPORTING et_matches = lt_matches ).
me->order_matches( EXPORTING iv_line = iv_line
CHANGING ct_matches = lt_matches ).
me->extend_matches( EXPORTING iv_line = iv_line
CHANGING ct_matches = lt_matches ).
rv_line = me->format_line( iv_line = iv_line
it_matches = lt_matches ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
8929,
75,
4799,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
9564,
18601,
10659,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
2251,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
34345,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
39098,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
8929,
75,
4799,
764,
198,
220,
220,
220,
337,
36252,
50,
1429,
62,
1370,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
1370,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
1370,
8,
41876,
4731,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
15699,
11,
198,
220,
220,
220,
220,
220,
220,
220,
11241,
220,
220,
220,
41876,
1149,
16,
11,
220,
366,
5994,
286,
7466,
198,
220,
220,
220,
220,
220,
220,
220,
11677,
220,
220,
41876,
1312,
11,
220,
220,
220,
220,
220,
366,
25976,
2292,
286,
262,
4731,
326,
815,
307,
39559,
198,
220,
220,
220,
220,
220,
220,
220,
4129,
220,
220,
41876,
1312,
11,
220,
220,
220,
220,
220,
366,
22313,
286,
262,
4731,
326,
815,
307,
39559,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
62,
12985,
41876,
4731,
11,
366,
5994,
286,
2420,
7621,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
15699,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
15699,
62,
926,
220,
41876,
49053,
9795,
43679,
3963,
1259,
62,
15699,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
25135,
11,
198,
220,
220,
220,
220,
220,
220,
220,
40364,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
260,
25636,
11,
198,
220,
220,
220,
220,
220,
220,
220,
11241,
41876,
1149,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3918,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
25135,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
30001,
62,
23108,
41876,
269,
26173,
8924,
705,
2637,
13,
628,
220,
220,
220,
42865,
45079,
62,
38785,
41876,
49053,
9795,
43679,
3963,
1259,
62,
25135,
13,
628,
220,
220,
220,
337,
36252,
50,
751,
62,
25135,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
260,
25636,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
30001,
41876,
269,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7635,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
21136,
62,
1370,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1370,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
2123,
62,
6759,
2052,
41876,
1259,
62,
15699,
62,
926,
13,
628,
220,
220,
220,
337,
36252,
50,
1502,
62,
6759,
2052,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1370,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
83,
62,
6759,
2052,
41876,
1259,
62,
15699,
62,
926,
13,
628,
220,
220,
220,
337,
36252,
50,
9117,
62,
6759,
2052,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1370,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
83,
62,
6759,
2052,
41876,
1259,
62,
15699,
62,
926,
13,
628,
220,
220,
220,
337,
36252,
50,
5794,
62,
1370,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1370,
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,
340,
62,
6759,
2052,
220,
220,
220,
220,
41876,
1259,
62,
15699,
62,
926,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
1370,
8,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
4174,
62,
7635,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1370,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
4871,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
1370,
8,
41876,
4731,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
23060,
45,
5603,
55,
62,
39,
3528,
6581,
18060,
5781,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
751,
62,
25135,
13,
628,
220,
220,
220,
42865,
43979,
62,
25135,
34178,
48920,
3963,
45079,
62,
38785,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
43979,
62,
25135,
12,
260,
25636,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3912,
220,
220,
220,
220,
796,
21628,
62,
260,
25636,
198,
220,
220,
220,
220,
220,
220,
220,
8856,
62,
7442,
796,
450,
499,
62,
7942,
13,
628,
220,
220,
220,
43979,
62,
25135,
12,
30001,
796,
21628,
62,
30001,
13,
198,
220,
220,
220,
43979,
62,
25135,
12,
7635,
796,
21628,
62,
7635,
13,
198,
220,
220,
220,
43504,
10619,
43979,
62,
25135,
5390,
45079,
62,
38785,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
4174,
62,
7635,
13,
628,
220,
220,
220,
42865,
300,
85,
62,
3798,
5813,
41876,
4731,
13,
628,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report Z_MONSTER_ATROCITY_MONITOR
*&
*&---------------------------------------------------------------------*
* This will show a list of scheduled atrocities to be committed by
* monsters from a particular mad scientist castle on a given day
* When a new atrocity is scheduled this information will be "pushed" by
* means of the AMC framework to any running instances of this report that
* have subscribed to this information
* This report will then update itself without the user
* who is running it having to do anything (e.g. press 'refresh').
*--------------------------------------------------------------------*
* First, need to set PID of SAPGUI_PUSH_CHANNEL = X”.
* Then need to define the ABAP Messaging Channel
* In SAMC and application ID and a channel have to be defined
* We will call them "ZAMC_4_MONSTERS" and "/monsters" respectively
* I am hoping to use the PCP message type
* Then you "whitelist" programs which can send and receive information
*--------------------------------------------------------------------*
* The example program responds to "on user command" an EVENT usually
* found in WRITE statements
* I may need to have such an EVENT and then within it call a method
* that refreshes the SALV upon the screen
*--------------------------------------------------------------------*
* Data Declarations
*--------------------------------------------------------------------*
INCLUDE z4_monster_am_top.
**********************************************************************
* Selection Screen
**********************************************************************
* Monster Header Data
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: s_date FOR go_selections->date_selection.
PARAMETERS: p_cstl TYPE ztmonster_am-castle_number OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blk1.
* Display Options
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE TEXT-002.
PARAMETERS: p_vari LIKE disvariant-variant.
SELECTION-SCREEN END OF BLOCK blk2.
**********************************************************************
* Initialisation
**********************************************************************
INITIALIZATION.
PERFORM initalisation.
*--------------------------------------------------------------------*
* Start-of-Selection
*--------------------------------------------------------------------*
START-OF-SELECTION.
"This nonsense is the only way I can avoid getting bogus syntax
"errors when doing a syntax check on the local class implementations
CREATE OBJECT go_selections
EXPORTING
is_date = s_date[]
ip_cstl = p_cstl
ip_vari = p_vari.
IF zcl_bc_system_environment=>is_production( ) = abap_true.
"In production we never want a short dump, but the "design by contract"
"things would just confuse the user
TRY.
lcl_application=>main( ).
CATCH cx_sy_no_handler INTO go_no_handler.
"An exception was raised that was not caught at any point in the call stack
gd_error_class = |Fatal Error concerning Class { go_no_handler->classname } - Please Call the Helpdesk|.
MESSAGE gd_error_class TYPE 'I'.
CATCH cx_root ##catch_all.
"We do not know what was happened, output a message instead of dumping
MESSAGE 'Report in Trouble - please call helpdesk' TYPE 'I'.
ENDTRY.
ELSE.
"Development / Test / Quality Assurance
"Here we DO want short dumps so we can analyse them, and we want the design by
"contract messages to make it obvious there is a bug and the code should not
"go to production
"Put another the way the two DBC exceptions are impossible errors I am actively
"looking to cause a dump. If any other sort of dump occurs then it is something
"I am not expecting and I want to know all about it
TRY.
lcl_application=>main( ).
CATCH zcx_violated_precondition INTO go_precondition.
"A bug was detected at the start of a subroutine - the caller of the
"subroutine is at fault
go_precondition->mo_error_log->show_error_log( ).
CATCH zcx_violated_postcondition INTO go_postcondition.
"A bug was detected at the end of a subroutine - the subroutine is
"at fault
go_postcondition->mo_error_log->show_error_log( ).
ENDTRY.
ENDIF.
*----------------------------------------------------------------------*
* AT SELECTION-SCREEN ON VALUE-REQUEST *
*----------------------------------------------------------------------*
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
PERFORM f4_layouts USING cl_salv_layout=>restrict_none CHANGING p_vari.
*&---------------------------------------------------------------------*
*& Form F4_LAYOUTS
*&---------------------------------------------------------------------*
FORM f4_layouts USING pud_restrict TYPE salv_de_layout_restriction
CHANGING pcd_layout TYPE disvariant-variant.
DATA: ls_layout TYPE salv_s_layout_info,
ls_key TYPE salv_s_layout_key.
ls_key-report = sy-repid.
ls_layout = cl_salv_layout_service=>f4_layouts( s_key = ls_key
layout = pcd_layout
restrict = pud_restrict ).
pcd_layout = ls_layout-layout.
ENDFORM. " F4_LAYOUTS
**********************************************************************
* Class Implementations
**********************************************************************
INCLUDE z4_monster_am_io1.
*&---------------------------------------------------------------------*
*& Form INITALISATION
*&---------------------------------------------------------------------*
FORM initalisation .
ENDFORM. " INITALISATION
*--------------------------------------------------------------------*
* Events
*--------------------------------------------------------------------*
*AT LINE-SELECTION.
* break developer.
* IF gf_message_received = abap_true.
* lcl_amc_test=>print_message( ).
* ENDIF.
*
*AT USER-COMMAND.
* break developer.
* IF gf_message_received = abap_true.
* lcl_amc_test=>print_message( ).
* ENDIF.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
62,
27857,
41809,
62,
1404,
49,
4503,
9050,
62,
27857,
2043,
1581,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
9,
770,
481,
905,
257,
1351,
286,
7530,
27817,
284,
307,
5364,
416,
198,
9,
10963,
422,
257,
1948,
8805,
11444,
16669,
319,
257,
1813,
1110,
198,
9,
1649,
257,
649,
22809,
414,
318,
7530,
428,
1321,
481,
307,
366,
79,
7474,
1,
416,
198,
9,
1724,
286,
262,
36239,
9355,
284,
597,
2491,
10245,
286,
428,
989,
326,
198,
9,
423,
45794,
284,
428,
1321,
198,
9,
770,
989,
481,
788,
4296,
2346,
1231,
262,
2836,
198,
9,
508,
318,
2491,
340,
1719,
284,
466,
1997,
357,
68,
13,
70,
13,
1803,
705,
5420,
3447,
27691,
198,
9,
10097,
650,
9,
198,
9,
3274,
11,
761,
284,
900,
37022,
286,
48323,
40156,
62,
47,
27143,
62,
3398,
22846,
3698,
796,
1395,
447,
251,
13,
198,
9,
3244,
761,
284,
8160,
262,
9564,
2969,
10626,
3039,
11102,
198,
9,
554,
28844,
34,
290,
3586,
4522,
290,
257,
6518,
423,
284,
307,
5447,
198,
9,
775,
481,
869,
606,
366,
57,
2390,
34,
62,
19,
62,
27857,
2257,
4877,
1,
290,
12813,
2144,
5937,
1,
8148,
198,
9,
314,
716,
7725,
284,
779,
262,
4217,
47,
3275,
2099,
198,
9,
3244,
345,
366,
1929,
270,
46331,
1,
4056,
543,
460,
3758,
290,
3328,
1321,
198,
9,
10097,
650,
9,
198,
9,
383,
1672,
1430,
20067,
284,
366,
261,
2836,
3141,
1,
281,
49261,
3221,
198,
9,
1043,
287,
44423,
6299,
198,
9,
314,
743,
761,
284,
423,
884,
281,
49261,
290,
788,
1626,
340,
869,
257,
2446,
198,
9,
326,
17434,
956,
262,
42475,
53,
2402,
262,
3159,
198,
9,
10097,
650,
9,
198,
9,
6060,
16691,
24355,
198,
9,
10097,
650,
9,
198,
1268,
5097,
52,
7206,
1976,
19,
62,
39050,
62,
321,
62,
4852,
13,
198,
198,
17174,
17174,
2466,
1174,
198,
9,
29538,
15216,
198,
17174,
17174,
2466,
1174,
198,
9,
12635,
48900,
6060,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
698,
74,
16,
13315,
8782,
10067,
37977,
2538,
40383,
12,
8298,
13,
198,
198,
46506,
12,
3185,
51,
11053,
25,
264,
62,
4475,
7473,
467,
62,
19738,
507,
3784,
4475,
62,
49283,
13,
198,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
66,
301,
75,
41876,
1976,
83,
39050,
62,
321,
12,
18676,
62,
17618,
440,
9148,
3528,
1404,
15513,
13,
198,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
9878,
11290,
698,
74,
16,
13,
198,
198,
9,
16531,
18634,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
698,
74,
17,
13315,
8782,
10067,
37977,
2538,
40383,
12,
21601,
13,
198,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
25641,
220,
34178,
595,
25641,
415,
12,
25641,
415,
13,
198,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
9878,
11290,
698,
74,
17,
13,
198,
198,
17174,
17174,
2466,
1174,
198,
9,
20768,
5612,
198,
17174,
17174,
2466,
1174,
198,
1268,
2043,
12576,
14887,
6234,
13,
198,
220,
19878,
21389,
287,
1287,
5612,
13,
198,
198,
9,
10097,
650,
9,
198,
9,
7253,
12,
1659,
12,
4653,
1564,
198,
9,
10097,
650,
9,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
198,
220,
366,
1212,
18149,
318,
262,
691,
835,
314,
460,
3368,
1972,
33418,
15582,
198,
220,
366,
48277,
618,
1804,
257,
15582,
2198,
319,
262,
1957,
1398,
25504,
198,
220,
29244,
6158,
25334,
23680,
467,
62,
19738,
507,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
318,
62,
4475,
796,
264,
62,
4475,
21737,
198,
220,
220,
220,
220,
220,
20966,
62,
66,
301,
75,
796,
279,
62,
66,
301,
75,
198,
220,
220,
220,
220,
220,
20966,
62,
25641,
796,
279,
62,
25641,
13,
628,
220,
16876,
1976,
565,
62,
15630,
62,
10057,
62,
38986,
14804,
271,
62,
25493,
7,
1267,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
366,
818,
3227,
356,
1239,
765,
257,
1790,
10285,
11,
475,
262,
366,
26124,
416,
2775,
1,
198,
220,
220,
220,
366,
27971,
561,
655,
27531,
262,
2836,
198,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
300,
565,
62,
31438,
14804,
12417,
7,
6739,
198,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
1837,
62,
3919,
62,
30281,
39319,
467,
62,
3919,
62,
30281,
13,
198,
220,
220,
220,
220,
220,
220,
220,
366,
2025,
6631,
373,
4376,
326,
373,
407,
4978,
379,
597,
966,
287,
262,
869,
8931,
198,
220,
220,
220,
220,
220,
220,
220,
308,
67,
62,
18224,
62,
4871,
796,
930,
37,
10254,
13047,
9305,
5016,
1391,
467,
62,
3919,
62,
30281,
3784,
4871,
3672,
1782,
532,
4222,
4889,
262,
10478,
8906,
74,
91,
13,
198,
220,
220,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
308,
67,
62,
18224,
62,
4871,
41876,
705,
40,
4458,
198,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
15763,
22492,
40198,
62,
439,
13,
198,
220,
220,
220,
220,
220,
220,
220,
366,
1135,
466,
407,
760,
644,
373,
3022,
11,
5072,
257,
3275,
2427,
286,
30231,
198,
220,
220,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
705,
19100,
287,
34179,
532,
3387,
869,
1037,
8906,
74,
6,
41876,
705,
40,
4458,
198,
220,
220,
220,
23578,
40405,
13,
198,
220,
17852,
5188,
13,
198,
220,
220,
220,
366,
41206,
1220,
6208,
1220,
14156,
2195,
3874,
198,
220,
220,
220,
366,
4342,
356,
8410,
765,
1790,
45514,
523,
356,
460,
39552,
606,
11,
290,
356,
765,
262,
1486,
416,
198,
220,
220,
220,
366,
28484,
6218,
284,
787,
340,
3489,
612,
318,
257,
5434,
290,
262,
2438,
815,
407,
198,
220,
220,
220,
366,
2188,
284,
3227,
198,
220,
220,
220,
366,
11588,
1194,
262,
835,
262,
734,
360,
2749,
13269,
389,
5340,
8563,
314,
716,
10630,
198,
220,
220,
220,
366,
11534,
284,
2728,
257,
10285,
13,
1002,
597,
584,
3297,
286,
10285,
8833,
788,
340,
318,
1223,
198,
220,
220,
220,
366,
40,
716,
407,
12451,
290,
314,
765,
284,
760
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class lcl_page_hoc definition final.
public section.
interfaces zif_abapgit_gui_page.
class-methods wrap
importing
iv_page_title type string
ii_child type ref to zif_abapgit_gui_renderable
iv_show_debug_div type abap_bool default abap_false
iv_before_body_end type string optional
iv_add_styles type any optional
returning
value(ro_page) type ref to lcl_page_hoc.
private section.
data mv_page_title type string.
data mi_child type ref to zif_abapgit_gui_renderable.
data mv_show_debug_div type abap_bool.
data mv_before_body_end type string.
data mt_add_styles type string_table.
endclass.
class lcl_page_hoc implementation.
method zif_abapgit_gui_page~render.
field-symbols <s> like line of mt_add_styles.
create object ro_html type zcl_abapgit_html.
ro_html->add( '<!DOCTYPE html>' ). "#EC NOTEXT
ro_html->add( '<html>' ). "#EC NOTEXT
ro_html->add( '<head>' ). "#EC NOTEXT
ro_html->add( '<meta http-equiv="content-type" content="text/html; charset=utf-8">' ). "#EC NOTEXT
ro_html->add( '<meta http-equiv="X-UA-Compatible" content="IE=11,10,9,8" />' ). "#EC NOTEXT
ro_html->add( |<title>{ mv_page_title }</title>| ). "#EC NOTEXT
ro_html->add( '<link rel="stylesheet" type="text/css" href="css/common.css">' ). "#EC NOTEXT
ro_html->add( '<script type="text/javascript" src="js/common.js"></script>' ). "#EC NOTEXT
loop at mt_add_styles assigning <s>.
ro_html->add( |<link rel="stylesheet" type="text/css" href="{ <s> }">| ). "#EC NOTEXT
endloop.
ro_html->add( '</head>' ). "#EC NOTEXT
ro_html->add( '<body>' ). "#EC NOTEXT
ro_html->add( '<div id="root">' ). "#EC NOTEXT
ro_html->add( mi_child->render( ) ).
ro_html->add( '</div>' ). "#EC NOTEXT
if mv_show_debug_div = abap_true.
ro_html->add( '<div id="debug-output"></div>' ). "#EC NOTEXT
endif.
if mv_before_body_end is not initial.
ro_html->add( mv_before_body_end ). " can be used for end script section
endif.
ro_html->add( '</body>' ). "#EC NOTEXT
ro_html->add( '</html>' ). "#EC NOTEXT
endmethod.
method zif_abapgit_gui_page~on_event.
data li_page_eh type ref to zif_abapgit_gui_event_handler.
try.
li_page_eh ?= mi_child.
catch cx_sy_move_cast_error.
return.
endtry.
li_page_eh->on_event(
EXPORTING
iv_action = iv_action
iv_prev_page = iv_prev_page
iv_getdata = iv_getdata
it_postdata = it_postdata
IMPORTING
ei_page = ei_page
ev_state = ev_state ).
endmethod.
method wrap.
create object ro_page.
ro_page->mv_page_title = iv_page_title.
ro_page->mi_child = ii_child.
ro_page->mv_show_debug_div = iv_show_debug_div.
ro_page->mv_before_body_end = iv_before_body_end.
data lv_type type c.
if iv_add_styles is not initial.
describe field iv_add_styles type lv_type.
if lv_type co 'Cg'.
append iv_add_styles to ro_page->mt_add_styles.
elseif lv_type = 'h'.
ro_page->mt_add_styles = iv_add_styles. " Assume string_table
endif. " Ignore errors ?
endif.
endmethod.
endclass.
class lcl_gui_default_error_handler definition.
public section.
methods on_gui_error for event on_error of zcl_abapgit_gui
importing
io_exception.
endclass.
class lcl_gui_default_error_handler implementation.
method on_gui_error.
message io_exception type 'S' display like 'E'.
endmethod.
endclass.
class lcl_gui_factory definition final create private.
public section.
class-methods init
importing
io_component type ref to object optional
ii_asset_man type ref to zif_abapgit_gui_asset_manager optional
iv_no_default_error_handler type abap_bool default abap_false
raising
lcx_guibp_error.
class-methods free.
class-methods run
importing
io_page type ref to zif_abapgit_gui_renderable optional
raising
lcx_guibp_error.
class-methods get_asset_man
returning
value(ri_asset_man) type ref to zif_abapgit_gui_asset_manager.
class-methods get_router
returning
value(ro_router) type ref to object.
class-methods get_gui
returning
value(ro_gui) type ref to zcl_abapgit_gui.
private section.
class-data go_router type ref to object.
class-data gi_asset_man type ref to zif_abapgit_gui_asset_manager.
class-data go_gui_instance type ref to zcl_abapgit_gui.
endclass.
class lcl_gui_factory implementation.
method get_asset_man.
ri_asset_man = gi_asset_man.
endmethod.
method get_router.
ro_router = go_router.
endmethod.
method get_gui.
ro_gui = go_gui_instance.
endmethod.
method init.
data lo_gui type ref to zcl_abapgit_gui.
data lx type ref to zcx_abapgit_exception.
if go_gui_instance is bound.
lcx_guibp_error=>raise( 'Cannot instantiate GUI twice' ).
endif.
gi_asset_man = ii_asset_man.
if io_component is bound and zcl_abapgit_gui=>is_renderable( io_component ) = abap_false
and zcl_abapgit_gui=>is_event_handler( io_component ) = abap_true.
go_router ?= io_component.
endif.
try .
create object go_gui_instance
exporting
io_component = io_component
ii_asset_man = ii_asset_man.
catch zcx_abapgit_exception into lx.
lcx_guibp_error=>raise( lx->get_text( ) ).
endtry.
data lo_handler type ref to lcl_gui_default_error_handler.
if iv_no_default_error_handler = abap_false.
create object lo_handler.
set handler lo_handler->on_gui_error for go_gui_instance.
endif.
endmethod.
method run.
data lx type ref to zcx_abapgit_exception.
try .
if io_page is bound.
go_gui_instance->go_page( io_page ).
else.
go_gui_instance->go_home( ).
endif.
call selection-screen 1001. " trigger screen
free( ).
catch zcx_abapgit_exception into lx.
lcx_guibp_error=>raise( lx->get_text( ) ).
endtry.
endmethod.
method free.
go_gui_instance->free( ).
clear go_gui_instance.
clear gi_asset_man.
clear go_router.
endmethod.
endclass.
| [
4871,
300,
565,
62,
7700,
62,
71,
420,
6770,
2457,
13,
198,
220,
1171,
2665,
13,
198,
220,
220,
220,
20314,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
14441,
198,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7700,
62,
7839,
220,
220,
220,
220,
220,
2099,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
9410,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
12860,
62,
24442,
62,
7146,
220,
2099,
450,
499,
62,
30388,
4277,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
19052,
62,
2618,
62,
437,
2099,
4731,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2860,
62,
47720,
220,
220,
220,
220,
220,
2099,
597,
11902,
198,
220,
220,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
7,
305,
62,
7700,
8,
2099,
1006,
284,
300,
565,
62,
7700,
62,
71,
420,
13,
628,
220,
2839,
2665,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
7700,
62,
7839,
220,
220,
220,
220,
220,
2099,
4731,
13,
198,
220,
220,
220,
1366,
21504,
62,
9410,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
12860,
62,
24442,
62,
7146,
220,
2099,
450,
499,
62,
30388,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
19052,
62,
2618,
62,
437,
2099,
4731,
13,
198,
220,
220,
220,
1366,
45079,
62,
2860,
62,
47720,
220,
220,
220,
220,
220,
2099,
4731,
62,
11487,
13,
198,
437,
4871,
13,
198,
198,
4871,
300,
565,
62,
7700,
62,
71,
420,
7822,
13,
628,
220,
2446,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
93,
13287,
13,
628,
220,
220,
220,
2214,
12,
1837,
2022,
10220,
1279,
82,
29,
588,
1627,
286,
45079,
62,
2860,
62,
47720,
13,
628,
220,
220,
220,
2251,
2134,
686,
62,
6494,
2099,
1976,
565,
62,
397,
499,
18300,
62,
6494,
13,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
0,
18227,
4177,
56,
11401,
27711,
29,
6,
6739,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
6494,
29,
6,
6739,
220,
220,
220,
220,
220,
220,
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,
5626,
13918,
628,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
2256,
29,
6,
6739,
220,
220,
220,
220,
220,
220,
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,
5626,
13918,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
28961,
2638,
12,
4853,
452,
2625,
11299,
12,
4906,
1,
2695,
2625,
5239,
14,
6494,
26,
34534,
316,
28,
40477,
12,
23,
5320,
6,
6739,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
28961,
2638,
12,
4853,
452,
2625,
55,
12,
34970,
12,
7293,
16873,
1,
2695,
2625,
10008,
28,
1157,
11,
940,
11,
24,
11,
23,
1,
11037,
6,
6739,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
930,
27,
7839,
29,
90,
285,
85,
62,
7700,
62,
7839,
1782,
3556,
7839,
29,
91,
6739,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
5626,
13918,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
8726,
823,
2625,
47720,
25473,
1,
2099,
2625,
5239,
14,
25471,
1,
13291,
2625,
25471,
14,
11321,
13,
25471,
5320,
6,
6739,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
12048,
2099,
2625,
5239,
14,
37495,
1,
12351,
2625,
8457,
14,
11321,
13,
8457,
23984,
12048,
29,
6,
6739,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
9052,
379,
45079,
62,
2860,
62,
47720,
38875,
1279,
82,
28401,
198,
220,
220,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
930,
27,
8726,
823,
2625,
47720,
25473,
1,
2099,
2625,
5239,
14,
25471,
1,
13291,
2625,
90,
1279,
82,
29,
1782,
5320,
91,
6739,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
886,
26268,
13,
628,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
3556,
2256,
29,
6,
6739,
220,
220,
220,
220,
220,
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,
5626,
13918,
628,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
2618,
29,
6,
6739,
220,
220,
220,
220,
220,
220,
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,
5626,
13918,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
7146,
4686,
2625,
15763,
5320,
6,
6739,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
21504,
62,
9410,
3784,
13287,
7,
1267,
6739,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
3556,
7146,
29,
6,
6739,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 = 1 )
( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'E' threshold = 1 ) ).
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. ' )
( ' PUBLIC SECTION. ' )
( ' PROTECTED SECTION. ' )
( ' METHODS: ' )
( ' clean_method RETURNING VALUE(ro_excel) TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check, ' )
( ' exporting_example EXPORTING exporting_01 TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check, ' )
( ' changing_example CHANGING changing_01 TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check, ' )
( ' inline_example EXPORTING inline_01 TYPE REF TO cl_abap_xsd RAISING cx_dynamic_check. ' )
( ' PRIVATE SECTION. ' )
( ' CLASS-METHODS static_example IMPORTING import_01 TYPE REF TO cl_abap_xsd ' )
( ' EXPORTING exporting_01 TYPE REF TO cl_abap_xsd. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_class IMPLEMENTATION. ' )
( ' METHOD clean_method. ' )
( ' ENDMETHOD. ' )
( ' METHOD exporting_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD changing_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD inline_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD static_example. ' )
( ' ENDMETHOD. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
METHOD set_data_for_error.
convert_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example_class DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' PROTECTED SECTION. ' )
( ' METHODS: ' )
( ' clean_method RETURNING VALUE(ro_excel) TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check, ' )
( ' exporting_example EXPORTING exporting_01 TYPE REF TO cl_abap_xsd ' )
( ' exporting_02 TYPE REF TO cl_abap_xsd ' )
( ' exporting_03 TYPE REF TO cl_abap_xsd ' )
( ' exporting_04 TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check,' )
( ' changing_example CHANGING changing_01 TYPE REF TO cl_abap_xsd ' )
( ' changing_02 TYPE REF TO cl_abap_xsd ' )
( ' changing_03 TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check, ' )
( ' inline_example EXPORTING inline_01 TYPE REF TO cl_abap_xsd inline_02 TYPE REF TO cl_abap_xsd RAISING cx_dynamic_check. ' )
( ' PRIVATE SECTION. ' )
( ' CLASS-METHODS static_example IMPORTING import_01 TYPE REF TO cl_abap_xsd ' )
( ' EXPORTING exporting_01 TYPE REF TO cl_abap_xsd ' )
( ' exporting_02 TYPE REF TO cl_abap_xsd. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_class IMPLEMENTATION. ' )
( ' METHOD clean_method. ' )
( ' ENDMETHOD. ' )
( ' METHOD exporting_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD changing_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD inline_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD static_example. ' )
( ' ENDMETHOD. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
METHOD set_pseudo_comment_ok.
convert_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example_class DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' PROTECTED SECTION. ' )
( ' METHODS: ' )
( ' clean_method RETURNING VALUE(ro_excel) TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check, ' )
( ' exporting_example EXPORTING exporting_01 TYPE REF TO cl_abap_xsd ' )
( ' exporting_02 TYPE REF TO cl_abap_xsd ' )
( ' exporting_03 TYPE REF TO cl_abap_xsd ' )
( ' exporting_04 TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check, "#EC NUM_OUTPUT_PARA ' )
( ' changing_example CHANGING changing_01 TYPE REF TO cl_abap_xsd ' )
( ' changing_02 TYPE REF TO cl_abap_xsd ' )
( ' changing_03 TYPE REF TO cl_abap_xsd ' )
( ' RAISING cx_dynamic_check, "#EC NUM_OUTPUT_PARA ' )
( ' inline_example EXPORTING inline_01 TYPE REF TO cl_abap_xsd inline_02 TYPE REF TO cl_abap_xsd RAISING cx_dynamic_check. "#EC NUM_OUTPUT_PARA ' )
( ' PRIVATE SECTION. ' )
( ' CLASS-METHODS static_example IMPORTING import_01 TYPE REF TO cl_abap_xsd ' )
( ' EXPORTING exporting_01 TYPE REF TO cl_abap_xsd ' )
( ' exporting_02 TYPE REF TO cl_abap_xsd. "#EC NUM_OUTPUT_PARA ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_class IMPLEMENTATION. ' )
( ' METHOD clean_method. ' )
( ' ENDMETHOD. ' )
( ' METHOD exporting_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD changing_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD inline_example. ' )
( ' ENDMETHOD. ' )
( ' METHOD static_example. ' )
( ' 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.
PROTECTED SECTION.
METHODS is_bound FOR TESTING.
METHODS cut_error FOR TESTING.
METHODS cut_ok FOR TESTING.
METHODS pseudo_comment_ok FOR TESTING.
PRIVATE SECTION.
DATA cut TYPE REF TO y_check_num_output_parameter.
DATA ref_scan_manager_double TYPE REF TO ltd_ref_scan_manager.
METHODS setup.
METHODS assert_errors IMPORTING err_cnt TYPE i.
METHODS assert_pseudo_comments IMPORTING pc_cnt TYPE i.
ENDCLASS.
CLASS y_check_num_output_parameter DEFINITION LOCAL FRIENDS local_test_class.
CLASS local_test_class IMPLEMENTATION.
METHOD setup.
cut = NEW y_check_num_output_parameter( ).
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( act = cut ).
ENDMETHOD.
METHOD cut_ok.
ref_scan_manager_double->set_data_for_ok( ).
cut->run( ).
assert_errors( 0 ).
assert_pseudo_comments( 0 ).
ENDMETHOD.
METHOD cut_error.
ref_scan_manager_double->set_data_for_error( ).
cut->run( ).
assert_errors( 4 ).
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( 4 ).
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,
352,
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,
352,
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,
628,
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,
628,
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,
48006,
9782,
1961,
44513,
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,
3424,
62,
24396,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
1069,
5276,
8,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
87,
21282,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
67,
28995,
62,
9122,
11,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
39133,
62,
20688,
7788,
15490,
2751,
39133,
62,
486,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
87,
21282,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
67,
28995,
62,
9122,
11,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
5609,
62,
20688,
5870,
15567,
2751,
5609,
62,
486,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
87,
21282,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
43213,
62,
67,
28995,
62,
9122,
11,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
26098,
62,
20688,
7788,
15490,
2751,
26098,
62,
486,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
87,
21282,
17926,
1797,
2751,
43213,
62,
67,
28995,
62,
9122,
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,
42715,
12,
49273,
50,
9037,
62,
20688,
30023,
9863,
2751,
1330,
62,
486,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
87,
21282,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
39133,
62,
486,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
87,
21282,
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,
3424,
62,
24396,
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,
39133,
62,
20688,
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,
5609,
62,
20688,
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,
26098,
62,
20688,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
23578,
49273,
13,
705,
1267,
198,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_services_git DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
TYPES:
BEGIN OF ty_commit_fields,
repo_key TYPE zif_abapgit_persistence=>ty_repo-key,
committer_name TYPE string,
committer_email TYPE string,
author_name TYPE string,
author_email TYPE string,
comment TYPE string,
body TYPE string,
END OF ty_commit_fields.
CLASS-METHODS pull
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS reset
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS create_branch
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS switch_branch
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS delete_branch
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS delete_tag
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS switch_tag
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS tag_overview
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS commit
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo_online
!is_commit TYPE ty_commit_fields
!io_stage TYPE REF TO zcl_abapgit_stage
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ABAPGIT_SERVICES_GIT IMPLEMENTATION.
METHOD commit.
DATA: ls_comment TYPE zif_abapgit_definitions=>ty_comment,
li_user TYPE REF TO zif_abapgit_persist_user.
li_user = zcl_abapgit_persistence_user=>get_instance( ).
li_user->set_repo_git_user_name( iv_url = io_repo->get_url( )
iv_username = is_commit-committer_name ).
li_user->set_repo_git_user_email( iv_url = io_repo->get_url( )
iv_email = is_commit-committer_email ).
IF is_commit-committer_name IS INITIAL.
zcx_abapgit_exception=>raise( 'Commit: Committer name empty' ).
ELSEIF is_commit-committer_email IS INITIAL.
zcx_abapgit_exception=>raise( 'Commit: Committer email empty' ).
ELSEIF is_commit-author_email IS NOT INITIAL AND is_commit-author_name IS INITIAL.
zcx_abapgit_exception=>raise( 'Commit: Author name empty' ). " Opposite should be OK ?
ELSEIF is_commit-comment IS INITIAL.
zcx_abapgit_exception=>raise( 'Commit: empty comment' ).
ENDIF.
ls_comment-committer-name = is_commit-committer_name.
ls_comment-committer-email = is_commit-committer_email.
ls_comment-author-name = is_commit-author_name.
ls_comment-author-email = is_commit-author_email.
ls_comment-comment = is_commit-comment.
IF NOT is_commit-body IS INITIAL.
CONCATENATE ls_comment-comment '' is_commit-body
INTO ls_comment-comment SEPARATED BY zif_abapgit_definitions=>c_newline.
ENDIF.
io_repo->push( is_comment = ls_comment
io_stage = io_stage ).
COMMIT WORK.
ENDMETHOD.
METHOD create_branch.
DATA: lv_name TYPE string,
lv_cancel TYPE abap_bool,
lo_repo TYPE REF TO zcl_abapgit_repo_online,
li_popups TYPE REF TO zif_abapgit_popups.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
li_popups->create_branch_popup(
IMPORTING
ev_name = lv_name
ev_cancel = lv_cancel ).
IF lv_cancel = abap_true.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
lo_repo->create_branch( lv_name ).
MESSAGE 'Switched to new branch' TYPE 'S' ##NO_TEXT.
ENDMETHOD.
METHOD delete_branch.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
ls_branch TYPE zif_abapgit_definitions=>ty_git_branch,
lo_popups type REF TO zif_abapgit_popups.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
lo_popups = zcl_abapgit_ui_factory=>get_popups( ).
ls_branch = lo_popups->branch_list_popup( iv_url = lo_repo->get_url( )
iv_hide_branch = lo_repo->get_branch_name( )
iv_hide_head = abap_true ).
IF ls_branch IS INITIAL.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
zcl_abapgit_git_porcelain=>delete_branch(
iv_url = lo_repo->get_url( )
is_branch = ls_branch ).
MESSAGE 'Branch deleted' TYPE 'S'.
ENDMETHOD.
METHOD delete_tag.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
ls_tag TYPE zif_abapgit_definitions=>ty_git_tag,
lv_text TYPE string.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
ls_tag = zcl_abapgit_ui_factory=>get_tag_popups( )->tag_select_popup( lo_repo ).
IF ls_tag IS INITIAL.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
zcl_abapgit_git_porcelain=>delete_tag(
iv_url = lo_repo->get_url( )
is_tag = ls_tag ).
lv_text = |Tag { zcl_abapgit_tag=>remove_tag_prefix( ls_tag-name ) } deleted| ##NO_TEXT.
MESSAGE lv_text TYPE 'S'.
ENDMETHOD.
METHOD pull.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
lo_repo->refresh( ).
zcl_abapgit_services_repo=>gui_deserialize( lo_repo ).
COMMIT WORK.
ENDMETHOD. "pull
METHOD reset.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
lv_answer TYPE c LENGTH 1,
lt_unnecessary_local_objs TYPE zif_abapgit_definitions=>ty_tadir_tt,
lt_selected LIKE lt_unnecessary_local_objs,
lt_columns TYPE stringtab,
ls_checks TYPE zif_abapgit_definitions=>ty_delete_checks,
li_popups TYPE REF TO zif_abapgit_popups.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
IF lo_repo->get_local_settings( )-write_protected = abap_true.
zcx_abapgit_exception=>raise( 'Cannot reset. Local code is write-protected by repo config' ).
ENDIF.
* todo, separate UI and logic
lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm(
iv_titlebar = 'Warning'
iv_text_question = 'Reset local objects?'
iv_text_button_1 = 'Ok'
iv_icon_button_1 = 'ICON_OKAY'
iv_text_button_2 = 'Cancel'
iv_icon_button_2 = 'ICON_CANCEL'
iv_default_button = '2'
iv_display_cancel_button = abap_false ). "#EC NOTEXT
IF lv_answer = '2'.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
lt_unnecessary_local_objs = lo_repo->get_unnecessary_local_objs( ).
IF lines( lt_unnecessary_local_objs ) > 0.
INSERT `OBJECT` INTO TABLE lt_columns.
INSERT `OBJ_NAME` INTO TABLE lt_columns.
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
li_popups->popup_to_select_from_list(
EXPORTING
it_list = lt_unnecessary_local_objs
iv_header_text = |Which unnecessary objects should be deleted?|
iv_select_column_text = 'Delete?'
it_columns_to_display = lt_columns
IMPORTING
et_list = lt_selected ).
IF lines( lt_selected ) > 0.
ls_checks = lo_repo->delete_checks( ).
IF ls_checks-transport-required = abap_true.
ls_checks-transport-transport = zcl_abapgit_ui_factory=>get_popups(
)->popup_transport_request( ls_checks-transport-type ).
ENDIF.
zcl_abapgit_objects=>delete( it_tadir = lt_selected
is_checks = ls_checks ).
* update repo cache
lo_repo->refresh( ).
ENDIF.
ENDIF.
zcl_abapgit_services_repo=>gui_deserialize( lo_repo ).
ENDMETHOD.
METHOD switch_branch.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
ls_branch TYPE zif_abapgit_definitions=>ty_git_branch.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
ls_branch = zcl_abapgit_ui_factory=>get_popups( )->branch_list_popup(
iv_url = lo_repo->get_url( )
iv_default_branch = lo_repo->get_branch_name( )
iv_show_new_option = abap_true ).
IF ls_branch IS INITIAL.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
IF ls_branch-name = zif_abapgit_popups=>c_new_branch_label.
create_branch( iv_key ).
RETURN.
ENDIF.
lo_repo->set_branch_name( ls_branch-name ).
COMMIT WORK AND WAIT.
ENDMETHOD.
METHOD switch_tag.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
ls_tag TYPE zif_abapgit_definitions=>ty_git_tag.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
ls_tag = zcl_abapgit_ui_factory=>get_tag_popups( )->tag_select_popup( lo_repo ).
IF ls_tag IS INITIAL.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
lo_repo->set_branch_name( ls_tag-name ).
COMMIT WORK AND WAIT.
ENDMETHOD.
METHOD tag_overview.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
zcl_abapgit_ui_factory=>get_tag_popups( )->tag_list_popup( lo_repo ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
30416,
62,
18300,
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,
1259,
62,
41509,
62,
25747,
11,
198,
220,
220,
220,
220,
220,
220,
220,
29924,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
11,
198,
220,
220,
220,
220,
220,
220,
220,
725,
1967,
62,
3672,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
725,
1967,
62,
12888,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1772,
62,
3672,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1772,
62,
12888,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2912,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1767,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
41509,
62,
25747,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
2834,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
13259,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
2251,
62,
1671,
3702,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
5078,
62,
1671,
3702,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
12233,
62,
1671,
3702,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
12233,
62,
12985,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
5078,
62,
12985,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
7621,
62,
2502,
1177,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4589,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
260,
7501,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
198,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 = 'E' threshold = 1 )
( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'W' threshold = 2 ) ).
ENDMETHOD.
METHOD y_if_clean_code_manager~calculate_obj_creation_date.
result = '20190101'.
ENDMETHOD.
ENDCLASS.
CLASS ltd_ref_scan_manager DEFINITION FOR TESTING INHERITING FROM y_scan_manager_double.
PUBLIC SECTION.
METHODS:
set_data_for_ok,
set_data_for_error,
set_pseudo_comment_ok.
ENDCLASS.
CLASS ltd_ref_scan_manager IMPLEMENTATION.
METHOD set_data_for_ok.
inject_code( VALUE #(
( 'REPORT ut_test.' )
( 'CLASS lcl_classname DEFINITION.' )
( ' PUBLIC SECTION.' )
( ' METHODS: exporting_method' )
( ' EXPORTING char TYPE abap_bool' )
( ' RAISING cx_sy_no_reference,' )
( ' changing_method' )
( ' CHANGING char TYPE abap_bool' )
( ' RAISING cx_sy_no_reference.' )
( ' METHODS returning_method' )
( ' RETURNING VALUE(result) TYPE abap_bool' )
( ' RAISING cx_sy_no_reference.' )
( ' METHODS importing_method' )
( ' IMPORTING char TYPE abap_bool' )
( ' RAISING cx_sy_no_reference.' )
( 'ENDCLASS.' )
( 'CLASS lcl_classname IMPLEMENTATION.' )
( ' METHOD changing_method.' )
( ' ENDMETHOD.' )
( ' METHOD exporting_method.' )
( ' ENDMETHOD.' )
( ' METHOD returning_method.' )
( ' ENDMETHOD.' )
( ' METHOD importing_method.' )
( ' ENDMETHOD.' )
( 'ENDCLASS.' )
) ).
ENDMETHOD.
METHOD set_data_for_error.
inject_code( VALUE #(
( 'REPORT ut_test.' )
( 'CLASS lcl_classname DEFINITION.' )
( ' PUBLIC SECTION.' )
( ' METHODS: exporting_method' )
( ' EXPORTING char TYPE abap_bool' )
( ' CHANGING cha TYPE abap_bool' )
( ' RAISING cx_sy_no_reference.' )
( ' METHODS returning_method' )
( ' CHANGING char TYPE abap_bool' )
( ' RETURNING VALUE(result) TYPE abap_bool' )
( ' RAISING cx_sy_no_reference.' )
( 'ENDCLASS.' )
( 'CLASS lcl_classname IMPLEMENTATION.' )
( ' METHOD exporting_method.' )
( ' ENDMETHOD.' )
( ' METHOD returning_method.' )
( ' ENDMETHOD.' )
( 'ENDCLASS.' )
) ).
ENDMETHOD.
METHOD set_pseudo_comment_ok.
inject_code( VALUE #(
( 'REPORT ut_test.' )
( 'CLASS lcl_classname DEFINITION.' )
( ' PUBLIC SECTION. ' )
( ' METHODS exporting_method ' )
( ' EXPORTING char TYPE abap_bool ' )
( ' CHANGING cha TYPE abap_bool ' )
( ' RAISING cx_sy_no_reference. "#EC PARAMETER_OUT' )
( ' METHODS returning_method' )
( ' CHANGING char TYPE abap_bool' )
( ' RETURNING VALUE(result) TYPE abap_bool' )
( ' RAISING cx_sy_no_reference. "#EC PARAMETER_OUT' )
( 'ENDCLASS.' )
( 'CLASS lcl_classname IMPLEMENTATION.' )
( ' METHOD exporting_method.' )
( ' ENDMETHOD.' )
( ' METHOD returning_method.' )
( ' 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_method_output_param,
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,
cut_error FOR TESTING,
cut_ok FOR TESTING,
pseudo_comment_ok FOR TESTING.
ENDCLASS.
CLASS y_check_method_output_param DEFINITION LOCAL FRIENDS local_test_class.
CLASS local_test_class IMPLEMENTATION.
METHOD setup.
cut = NEW y_check_method_output_param( ).
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 cut_ok.
ref_scan_manager_double->set_data_for_ok( ).
cut->run( ).
assert_errors( 0 ).
assert_pseudo_comments( 0 ).
ENDMETHOD.
METHOD cut_error.
ref_scan_manager_double->set_data_for_error( ).
cut->run( ).
assert_errors( 2 ).
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( 2 ).
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,
36,
6,
11387,
796,
352,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
54,
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,
7473,
43001,
2751,
3268,
16879,
2043,
2751,
16034,
331,
62,
35836,
62,
37153,
62,
23352,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
900,
62,
7890,
62,
1640,
62,
482,
11,
198,
220,
220,
220,
220,
220,
900,
62,
7890,
62,
1640,
62,
18224,
11,
198,
220,
220,
220,
220,
220,
900,
62,
7752,
12003,
62,
23893,
62,
482,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
482,
13,
198,
220,
220,
220,
8677,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
357,
705,
2200,
15490,
3384,
62,
9288,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
5550,
20032,
17941,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
44731,
44513,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
337,
36252,
50,
25,
39133,
62,
24396,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
7788,
15490,
2751,
1149,
41876,
450,
499,
62,
30388,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
1837,
62,
3919,
62,
35790,
4032,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
5609,
62,
24396,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
1149,
41876,
450,
499,
62,
30388,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
43213,
62,
1837,
62,
3919,
62,
35790,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
337,
36252,
50,
8024,
62,
24396,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
450,
499,
62,
30388,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
1837,
62,
3919,
62,
35790,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
337,
36252,
50,
33332,
62,
24396,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1149,
41876,
450,
499,
62,
30388,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
1837,
62,
3919,
62,
35790,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
31631,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
30023,
2538,
10979,
6234,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
337,
36252,
5609,
62,
24396,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
23578,
49273,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
337,
36252,
39133,
62,
24396,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
23578,
49273,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
337,
36252,
8024,
62,
24396,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
23578,
49273,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
337,
36252,
33332,
62,
24396,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
23578,
49273,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
31631,
2637,
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,
8677,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
357,
705,
2200,
15490,
3384,
62,
9288,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
5550,
20032,
17941,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
44731,
44513,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
337,
36252,
50,
25,
39133,
62,
24396,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
7788,
15490,
2751,
1149,
41876,
450,
499,
62,
30388,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
17792,
41876,
450,
499,
62,
30388,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
1837,
62,
3919,
62,
35790,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
337,
36252,
50,
8024,
62,
24396,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
1149,
41876,
450,
499,
62,
30388,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
CLASS zcl_abapgit_ecatt_script_upl DEFINITION
PUBLIC
INHERITING FROM cl_apl_ecatt_script_upload
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES:
zif_abapgit_ecatt_upload.
PROTECTED SECTION.
METHODS:
upload_data_from_stream REDEFINITION.
PRIVATE SECTION.
DATA: mv_external_xml TYPE xstring.
ENDCLASS.
CLASS ZCL_ABAPGIT_ECATT_SCRIPT_UPL IMPLEMENTATION.
METHOD upload_data_from_stream.
" Downport
template_over_all = zcl_abapgit_ecatt_helper=>upload_data_from_stream( mv_external_xml ).
ENDMETHOD.
METHOD zif_abapgit_ecatt_upload~set_stream_for_upload.
" downport from CL_ABAPGIT_ECATT_DATA_UPLOAD SET_STREAM_FOR_UPLOAD
mv_external_xml = iv_xml.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
721,
1078,
62,
12048,
62,
84,
489,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
537,
62,
64,
489,
62,
721,
1078,
62,
12048,
62,
25850,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
721,
1078,
62,
25850,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9516,
62,
7890,
62,
6738,
62,
5532,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
285,
85,
62,
22615,
62,
19875,
41876,
2124,
8841,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
2943,
17139,
62,
6173,
46023,
62,
52,
6489,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
9516,
62,
7890,
62,
6738,
62,
5532,
13,
628,
220,
220,
220,
366,
5588,
634,
198,
220,
220,
220,
11055,
62,
2502,
62,
439,
796,
1976,
565,
62,
397,
499,
18300,
62,
721,
1078,
62,
2978,
525,
14804,
25850,
62,
7890,
62,
6738,
62,
5532,
7,
285,
85,
62,
22615,
62,
19875,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
721,
1078,
62,
25850,
93,
2617,
62,
5532,
62,
1640,
62,
25850,
13,
628,
220,
220,
220,
366,
866,
634,
422,
7852,
62,
6242,
2969,
38,
2043,
62,
2943,
17139,
62,
26947,
62,
52,
6489,
41048,
25823,
62,
2257,
32235,
62,
13775,
62,
52,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
1,
1
] |
FUNCTION zpof_gtt_ctp_dl_to_po.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IT_LIKP_NEW) TYPE SHP_LIKP_T
*" REFERENCE(IT_LIPS_NEW) TYPE SHP_LIPS_T
*" REFERENCE(IT_LIPS_OLD) TYPE SHP_LIPS_T
*"----------------------------------------------------------------------
TRY.
DATA(lo_item) = lcl_ctp_sender_dl_to_po_item=>get_instance( ).
" Delivery header
lo_item->prepare_idoc_data(
EXPORTING
it_likp_new = it_likp_new
it_lips_new = it_lips_new
it_lips_old = it_lips_old ).
lo_item->send_idoc_data( ). "TBD: store messages into log
CATCH cx_udm_message.
ENDTRY.
ENDFUNCTION.
| [
42296,
4177,
2849,
1976,
79,
1659,
62,
70,
926,
62,
310,
79,
62,
25404,
62,
1462,
62,
7501,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
14565,
26491,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
62,
43,
18694,
47,
62,
13965,
8,
41876,
220,
6006,
47,
62,
43,
18694,
47,
62,
51,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
62,
31271,
3705,
62,
13965,
8,
41876,
220,
6006,
47,
62,
31271,
3705,
62,
51,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
62,
31271,
3705,
62,
15173,
8,
41876,
220,
6006,
47,
62,
31271,
3705,
62,
51,
198,
9,
1,
10097,
23031,
198,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
42865,
7,
5439,
62,
9186,
8,
796,
300,
565,
62,
310,
79,
62,
82,
2194,
62,
25404,
62,
1462,
62,
7501,
62,
9186,
14804,
1136,
62,
39098,
7,
6739,
628,
220,
220,
220,
220,
220,
366,
28682,
13639,
198,
220,
220,
220,
220,
220,
2376,
62,
9186,
3784,
46012,
533,
62,
312,
420,
62,
7890,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
46965,
79,
62,
3605,
796,
340,
62,
46965,
79,
62,
3605,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
75,
2419,
62,
3605,
796,
340,
62,
75,
2419,
62,
3605,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
75,
2419,
62,
727,
796,
340,
62,
75,
2419,
62,
727,
6739,
628,
220,
220,
220,
220,
220,
2376,
62,
9186,
3784,
21280,
62,
312,
420,
62,
7890,
7,
6739,
366,
51,
14529,
25,
3650,
6218,
656,
2604,
628,
220,
220,
220,
327,
11417,
43213,
62,
463,
76,
62,
20500,
13,
198,
220,
23578,
40405,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_GIT_REPORT_ALV_FACTORY
public .
interfaces ZIF_REPORT .
* interfaces ZIF_REPORT .
data M_ALV_FACT type ref to CL_SALV_TABLE .
data M_OUTPUT_TABLE type ref to DATA .
data M_CONTAINER type ref to CL_GUI_CONTAINER .
data M_CUSTOM_CONTAINER type ref to CL_GUI_CUSTOM_CONTAINER .
methods ON_ADDED_FUNCTION
for event ADDED_FUNCTION of CL_SALV_EVENTS .
methods ON_AFTER_SALV_FUNCTION
for event ADDED_FUNCTION of CL_SALV_EVENTS .
methods ON_BEFORE_SALV_FUNCTION
for event BEFORE_SALV_FUNCTION of CL_SALV_EVENTS .
methods ON_END_OF_PAGE
for event END_OF_PAGE of CL_SALV_EVENTS .
methods ON_TOP_OF_PAGE
for event TOP_OF_PAGE of CL_SALV_EVENTS .
endinterface.
| [
39994,
1168,
5064,
62,
38,
2043,
62,
2200,
15490,
62,
1847,
53,
62,
37,
10659,
15513,
198,
220,
1171,
764,
628,
198,
220,
20314,
1168,
5064,
62,
2200,
15490,
764,
198,
198,
9,
220,
20314,
1168,
5064,
62,
2200,
15490,
764,
198,
220,
1366,
337,
62,
1847,
53,
62,
37,
10659,
2099,
1006,
284,
7852,
62,
50,
1847,
53,
62,
38148,
764,
198,
220,
1366,
337,
62,
2606,
7250,
3843,
62,
38148,
2099,
1006,
284,
42865,
764,
198,
220,
1366,
337,
62,
10943,
30339,
1137,
2099,
1006,
284,
7852,
62,
40156,
62,
10943,
30339,
1137,
764,
198,
220,
1366,
337,
62,
34,
7759,
2662,
62,
10943,
30339,
1137,
2099,
1006,
284,
7852,
62,
40156,
62,
34,
7759,
2662,
62,
10943,
30339,
1137,
764,
628,
220,
5050,
6177,
62,
29266,
1961,
62,
42296,
4177,
2849,
198,
220,
220,
220,
329,
1785,
27841,
1961,
62,
42296,
4177,
2849,
286,
7852,
62,
50,
1847,
53,
62,
20114,
15365,
764,
198,
220,
5050,
6177,
62,
8579,
5781,
62,
50,
1847,
53,
62,
42296,
4177,
2849,
198,
220,
220,
220,
329,
1785,
27841,
1961,
62,
42296,
4177,
2849,
286,
7852,
62,
50,
1847,
53,
62,
20114,
15365,
764,
198,
220,
5050,
6177,
62,
12473,
30818,
62,
50,
1847,
53,
62,
42296,
4177,
2849,
198,
220,
220,
220,
329,
1785,
38331,
62,
50,
1847,
53,
62,
42296,
4177,
2849,
286,
7852,
62,
50,
1847,
53,
62,
20114,
15365,
764,
198,
220,
5050,
6177,
62,
10619,
62,
19238,
62,
4537,
8264,
198,
220,
220,
220,
329,
1785,
23578,
62,
19238,
62,
4537,
8264,
286,
7852,
62,
50,
1847,
53,
62,
20114,
15365,
764,
198,
220,
5050,
6177,
62,
35222,
62,
19238,
62,
4537,
8264,
198,
220,
220,
220,
329,
1785,
28662,
62,
19238,
62,
4537,
8264,
286,
7852,
62,
50,
1847,
53,
62,
20114,
15365,
764,
198,
437,
39994,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
interface ZIF_AOT_SERVICE
public .
methods RUN
importing
!II_SERVER type ref to IF_HTTP_SERVER
raising
CX_STATIC_CHECK .
endinterface.
| [
39994,
1168,
5064,
62,
32,
2394,
62,
35009,
27389,
198,
220,
1171,
764,
628,
198,
220,
5050,
32494,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3978,
62,
35009,
5959,
2099,
1006,
284,
16876,
62,
40717,
62,
35009,
5959,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
327,
55,
62,
35744,
2149,
62,
50084,
764,
198,
437,
39994,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_page_commit DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_page
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES: zif_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 zcl_abapgit_repo_online
io_stage TYPE REF TO zcl_abapgit_stage
RAISING
zcx_abapgit_exception.
METHODS zif_abapgit_gui_event_handler~on_event
REDEFINITION .
PROTECTED SECTION.
CLASS-METHODS parse_commit_request
IMPORTING
!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 zcl_abapgit_repo_online .
DATA mo_stage TYPE REF TO zcl_abapgit_stage .
DATA ms_commit TYPE zif_abapgit_services_git=>ty_commit_fields .
METHODS render_menu
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html .
METHODS render_stage
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_form
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_text_input
IMPORTING
!iv_name TYPE string
!iv_label TYPE string
!iv_value TYPE string OPTIONAL
!iv_max_length TYPE string OPTIONAL
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html .
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE_COMMIT IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
mo_repo = io_repo.
mo_stage = io_stage.
ms_control-page_title = 'COMMIT'.
ENDMETHOD.
METHOD 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 zif_abapgit_definitions=>c_crlf IN lv_string WITH lc_replace.
REPLACE ALL OCCURRENCES OF zif_abapgit_definitions=>c_newline IN lv_string WITH lc_replace.
lt_fields = zcl_abapgit_html_action_utils=>parse_fields_upper_case_name( lv_string ).
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = 'COMMITTER_NAME'
it_field = lt_fields
CHANGING
cg_field = eg_fields ).
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = 'COMMITTER_EMAIL'
it_field = lt_fields
CHANGING
cg_field = eg_fields ).
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = 'AUTHOR_NAME'
it_field = lt_fields
CHANGING
cg_field = eg_fields ).
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = 'AUTHOR_EMAIL'
it_field = lt_fields
CHANGING
cg_field = eg_fields ).
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = 'COMMENT'
it_field = lt_fields
CHANGING
cg_field = eg_fields ).
zcl_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 zif_abapgit_definitions=>c_newline.
ENDMETHOD.
METHOD render_content.
CREATE OBJECT ro_html.
ro_html->add( '<div class="repo">' ).
ro_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top(
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 zif_abapgit_persist_user.
DATA: lv_user TYPE string.
DATA: lv_email TYPE string.
DATA: lv_s_param TYPE string.
DATA: lo_settings TYPE REF TO zcl_abapgit_settings.
DATA: lv_body_size TYPE i.
DATA: lv_comment TYPE string.
DATA: lv_body TYPE string.
DATA: lv_author_name TYPE string.
DATA: lv_author_email TYPE string.
* see https://git-scm.com/book/ch5-2.html
* commit messages should be max 50 characters
* body should wrap at 72 characters
li_user = zcl_abapgit_persistence_user=>get_instance( ).
lv_user = li_user->get_repo_git_user_name( mo_repo->get_url( ) ).
IF lv_user IS INITIAL.
lv_user = li_user->get_default_git_user_name( ).
ENDIF.
IF lv_user IS INITIAL.
" get default from user master record
lv_user = zcl_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 = zcl_abapgit_user_master_record=>get_instance( sy-uname )->get_email( ).
ENDIF.
IF ms_commit IS NOT INITIAL.
lv_user = ms_commit-committer_name.
lv_email = ms_commit-committer_email.
lv_comment = ms_commit-comment.
lv_body = ms_commit-body.
lv_author_name = ms_commit-author_name.
lv_author_email = ms_commit-author_email.
ENDIF.
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 = zcl_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_value = lv_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 }">{ lv_body }</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'
iv_value = lv_author_name ) ).
ro_html->add( render_text_input( iv_name = 'author_email'
iv_label = 'author e-mail'
iv_value = lv_author_email ) ).
ro_html->add( '</form>' ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD render_menu.
DATA lo_toolbar TYPE REF TO zcl_abapgit_html_toolbar.
CREATE OBJECT ro_html.
CREATE OBJECT lo_toolbar.
lo_toolbar->add( iv_act = 'submitFormById(''commit_form'');'
iv_txt = 'Commit'
iv_typ = zif_abapgit_html=>c_action_type-onclick
iv_opt = zif_abapgit_html=>c_html_opt-strong ) ##NO_TEXT.
lo_toolbar->add( iv_act = c_action-commit_cancel
iv_txt = 'Cancel'
iv_opt = zif_abapgit_html=>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 zcl_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="3">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>' ).
ro_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state(
iv_lstate = <ls_stage>-status-lstate
iv_rstate = <ls_stage>-status-rstate ) ).
ro_html->add( '</td>' ).
ro_html->add( '<td class="method">' ).
ro_html->add( |<b>{ zcl_abapgit_stage=>method_description( <ls_stage>-method ) }</b>| ).
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 AND
iv_max_length IS NOT INITIAL.
lv_attrs = | value="{ iv_value }" maxlength="{ iv_max_length }"|.
ELSEIF iv_value IS NOT INITIAL.
lv_attrs = | value="{ iv_value }"|.
ELSEIF iv_max_length IS NOT INITIAL.
lv_attrs = | maxlength="{ iv_max_length }"|.
ENDIF.
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 zif_abapgit_gui_event_handler~on_event.
CASE iv_action.
WHEN c_action-commit_post.
parse_commit_request(
EXPORTING it_postdata = it_postdata
IMPORTING eg_fields = ms_commit ).
ms_commit-repo_key = mo_repo->get_key( ).
zcl_abapgit_services_git=>commit(
is_commit = ms_commit
io_repo = mo_repo
io_stage = mo_stage ).
MESSAGE 'Commit was successful' TYPE 'S' ##NO_TEXT.
ev_state = zcl_abapgit_gui=>c_event_state-go_back_to_bookmark.
WHEN c_action-commit_cancel.
ev_state = zcl_abapgit_gui=>c_event_state-go_back.
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.
METHOD zif_abapgit_gui_page_hotkey~get_hotkey_actions.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
41509,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
8940,
2539,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4589,
62,
7353,
220,
220,
41876,
4731,
26173,
8924,
705,
41509,
62,
7353,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4589,
62,
66,
21130,
41876,
4731,
26173,
8924,
705,
41509,
62,
66,
21130,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
2673,
764,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
260,
7501,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
14247,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
14247,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
93,
261,
62,
15596,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
21136,
62,
41509,
62,
25927,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
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,
628,
220,
220,
220,
42865,
6941,
62,
260,
7501,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
764,
198,
220,
220,
220,
42865,
6941,
62,
14247,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
14247,
764,
198,
220,
220,
220,
42865,
13845,
62,
41509,
41876,
1976,
361,
62,
397,
499,
18300,
62,
30416,
62,
18300,
14804,
774,
62,
41509,
62,
25747,
764,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
26272,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
14247,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
687,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
5239,
62,
15414,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
18242,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8367,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
9806,
62,
13664,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
CLASS zcl_test_contactperson DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
TYPES: BEGIN OF ty_struct,
contact_firstname TYPE string,
contact_lastname TYPE string,
contact_address_country TYPE string,
contact_address_city TYPE string,
contact_address_plz TYPE string,
contact_address_street TYPE string,
contact_address_housenumber TYPE i,
contact_mail_address TYPE string,
contact_telephone_number_1 TYPE string,
contact_telephone_number_2 TYPE string,
contact_telephone_number_3 TYPE string,
contact_has_been_notified TYPE i,
END OF ty_struct.
DATA: iv_struct TYPE ty_struct.
CLASS-METHODS:
class_constructor,
notifyContactpersons IMPORTING iv_struct TYPE ty_struct RETURNING VALUE(r_json) TYPE string.
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-DATA: gv_url TYPE string VALUE 'https://coronanotifierheroku.herokuapp.com/notify',
go_http_client TYPE REF TO if_web_http_client.
ENDCLASS.
CLASS zcl_test_contactperson IMPLEMENTATION.
METHOD notifyContactpersons.
DATA(lv_json_str) = /ui2/cl_json=>serialize( data = iv_struct pretty_name = /ui2/cl_json=>pretty_mode-low_case ).
DATA(lo_request) = go_http_client->get_http_request( ).
lo_request->set_header_fields( VALUE #(
( name = 'Content-Type' value = 'application/json' )
( name = 'Accept' value = 'application/json' ) ) ).
lo_request->set_uri_path( i_uri_path = gv_url ).
lo_request->set_text( lv_json_str ).
TRY.
DATA(lo_response) = go_http_client->execute( i_method = if_web_http_client=>post ).
CATCH cx_web_http_client_error.
ENDTRY.
DATA(lv_code) = lo_response->get_status( ).
r_json = lo_response->get_text( ).
ENDMETHOD.
METHOD class_constructor.
TRY.
go_http_client = cl_web_http_client_manager=>create_by_http_destination(
i_destination = cl_http_destination_provider=>create_by_url( gv_url ) ).
CATCH cx_web_http_client_error cx_http_dest_provider_error.
"handle exception
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
9288,
62,
32057,
6259,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
7249,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
11085,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
12957,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
21975,
62,
19315,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
21975,
62,
19205,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
21975,
62,
489,
89,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
21975,
62,
25662,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
21975,
62,
71,
516,
268,
4494,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
4529,
62,
21975,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
46813,
4862,
62,
17618,
62,
16,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
46813,
4862,
62,
17618,
62,
17,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
46813,
4862,
62,
17618,
62,
18,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2800,
62,
10134,
62,
47436,
62,
1662,
1431,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
7249,
13,
628,
220,
220,
220,
42865,
25,
21628,
62,
7249,
41876,
1259,
62,
7249,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
1398,
62,
41571,
273,
11,
198,
220,
220,
220,
220,
220,
19361,
17829,
19276,
684,
30023,
9863,
2751,
21628,
62,
7249,
41876,
1259,
62,
7249,
30826,
4261,
15871,
26173,
8924,
7,
81,
62,
17752,
8,
41876,
4731,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42715,
12,
26947,
25,
308,
85,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
5450,
1378,
10215,
261,
272,
313,
7483,
11718,
23063,
13,
11718,
23063,
1324,
13,
785,
14,
1662,
1958,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
467,
62,
4023,
62,
16366,
41876,
4526,
37,
5390,
611,
62,
12384,
62,
4023,
62,
16366,
13,
628,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
9288,
62,
32057,
6259,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
19361,
17829,
19276,
684,
13,
628,
198,
220,
220,
220,
42865,
7,
6780,
62,
17752,
62,
2536,
8,
796,
1220,
9019,
17,
14,
565,
62,
17752,
14804,
46911,
1096,
7,
1366,
796,
21628,
62,
7249,
2495,
62,
3672,
796,
1220,
9019,
17,
14,
565,
62,
17752,
14804,
37784,
62,
14171,
12,
9319,
62,
7442,
6739,
628,
198,
220,
220,
220,
42865,
7,
5439,
62,
25927,
8,
796,
467,
62,
4023,
62,
16366,
3784,
1136,
62,
4023,
62,
25927,
7,
6739,
198,
220,
220,
220,
2376,
62,
25927,
3784,
2617,
62,
25677,
62,
25747,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
357,
220,
1438,
796,
705,
19746,
12,
6030,
6,
1988,
796,
705,
31438,
14,
17752,
6,
1267,
198,
220,
220,
220,
357,
220,
1438,
796,
705,
38855,
6,
1988,
796,
705,
31438,
14,
17752,
6,
1267,
1267,
6739,
628,
220,
220,
220,
2376,
62,
25927,
3784,
2617,
62,
9900,
62,
6978,
7,
1312,
62,
9900,
62,
6978,
796,
308,
85,
62,
6371,
220,
6739,
198,
220,
220,
220,
2376,
62,
25927,
3784,
2617,
62,
5239,
7,
300,
85,
62,
17752,
62,
2536,
6739,
198,
220,
220,
220,
7579,
56,
13,
628,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
5439,
62,
26209,
8,
796,
467,
62,
4023,
62,
16366,
3784,
41049,
7,
1312,
62,
24396,
796,
611,
62,
12384,
62,
4023,
62,
16366,
14804,
7353,
6739,
628,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
12384,
62,
4023,
62,
16366,
62,
18224,
13,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
220,
220,
42865,
7,
6780,
62,
8189,
8,
796,
2376,
62,
26209,
3784,
1136,
62,
13376,
7,
6739,
198,
220,
220,
220,
374,
62,
17752,
796,
2376,
62,
26209,
3784,
1136,
62,
5239,
7,
6739,
628,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1398,
62,
41571,
273,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
467,
62,
4023,
62,
16366,
796,
537,
62,
12384,
62,
4023,
62,
16366,
62,
37153,
14804,
17953,
62,
1525,
62,
4023,
62,
16520,
1883,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
16520,
1883,
796,
537,
62,
4023,
62,
16520,
1883,
62,
15234,
1304,
14804,
17953,
62,
1525,
62,
6371,
7,
308,
85,
62,
6371,
1267,
6739,
198,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
12384,
62,
4023,
62,
16366,
62,
18224,
43213,
62,
4023,
62,
16520,
62,
15234,
1304,
62,
18224,
13,
198,
220,
220,
220,
220,
220,
220,
220,
366,
28144,
6631,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
23578,
49273,
13,
198,
10619,
31631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git_ajson_filter
PUBLIC.
TYPES ty_filter_tab TYPE STANDARD TABLE OF REF TO zif_abapgit_ajson_filter WITH DEFAULT KEY.
TYPES ty_visit_type TYPE i.
CONSTANTS:
BEGIN OF visit_type,
value TYPE ty_visit_type VALUE 0,
open TYPE ty_visit_type VALUE 1,
close TYPE ty_visit_type VALUE 2,
END OF visit_type.
METHODS keep_node
IMPORTING
is_node TYPE zif_abapgit_ajson=>ty_node
iv_visit TYPE ty_visit_type DEFAULT visit_type-value
RETURNING
VALUE(rv_keep) TYPE abap_bool
RAISING
zcx_abapgit_ajson_error.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
62,
24455,
198,
220,
44731,
13,
628,
220,
24412,
47,
1546,
1259,
62,
24455,
62,
8658,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
62,
24455,
13315,
5550,
38865,
35374,
13,
198,
220,
24412,
47,
1546,
1259,
62,
4703,
270,
62,
4906,
41876,
1312,
13,
628,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
347,
43312,
3963,
3187,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
1988,
41876,
1259,
62,
4703,
270,
62,
4906,
26173,
8924,
657,
11,
198,
220,
220,
220,
220,
220,
1280,
220,
41876,
1259,
62,
4703,
270,
62,
4906,
26173,
8924,
352,
11,
198,
220,
220,
220,
220,
220,
1969,
41876,
1259,
62,
4703,
270,
62,
4906,
26173,
8924,
362,
11,
198,
220,
220,
220,
23578,
3963,
3187,
62,
4906,
13,
628,
220,
337,
36252,
50,
1394,
62,
17440,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
318,
62,
17440,
41876,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
14804,
774,
62,
17440,
198,
220,
220,
220,
220,
220,
21628,
62,
4703,
270,
41876,
1259,
62,
4703,
270,
62,
4906,
5550,
38865,
3187,
62,
4906,
12,
8367,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
14894,
8,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1228,
1559,
62,
18224,
13,
198,
198,
10619,
41358,
49836,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_GLDS_DEMO_RANGE
public .
types:
tt_range TYPE RANGE OF dats .
types:
ts_range type LINE OF tt_range .
methods TEST_ME
importing
!RANGE type TT_RANGE
returning
value(TEXT) type STRING .
endinterface.
| [
39994,
1168,
5064,
62,
8763,
5258,
62,
39429,
46,
62,
49,
27746,
198,
220,
1171,
764,
628,
198,
220,
3858,
25,
198,
220,
220,
220,
256,
83,
62,
9521,
41876,
371,
27746,
3963,
288,
1381,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
40379,
62,
9521,
2099,
48920,
3963,
256,
83,
62,
9521,
764,
628,
220,
5050,
43001,
62,
11682,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
49,
27746,
2099,
26653,
62,
49,
27746,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
32541,
8,
2099,
19269,
2751,
764,
198,
437,
39994,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class Z_ADICER_STRATEGY_TST_CHANCE definition
public
final
create public .
public section.
interfaces ZIF_ADICER_STRATEGY .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS Z_ADICER_STRATEGY_TST_CHANCE IMPLEMENTATION.
METHOD zif_adicer_strategy~decide_on_result.
score_cell = zif_adicer_scoresheet=>lower_chance.
ENDMETHOD.
METHOD zif_adicer_strategy~decide_on_roll.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
62,
2885,
2149,
1137,
62,
18601,
6158,
31212,
62,
51,
2257,
62,
3398,
19240,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
5064,
62,
2885,
2149,
1137,
62,
18601,
6158,
31212,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
62,
2885,
2149,
1137,
62,
18601,
6158,
31212,
62,
51,
2257,
62,
3398,
19240,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
324,
16647,
62,
2536,
4338,
93,
12501,
485,
62,
261,
62,
20274,
13,
198,
220,
220,
220,
4776,
62,
3846,
796,
1976,
361,
62,
324,
16647,
62,
1416,
2850,
25473,
14804,
21037,
62,
39486,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
324,
16647,
62,
2536,
4338,
93,
12501,
485,
62,
261,
62,
2487,
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
] |
CLASS zcl_abapgit_object_udmo DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super
FINAL
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.
METHODS corr_insert
REDEFINITION .
PRIVATE SECTION.
TYPES:
" You are reminded that the text serialisation / de-serialisation methods depend upon a common type.
" To make the dependency explicit, there is one common definition.
BEGIN OF ty_udmo_text_type.
TYPES sprache TYPE dm40t-sprache.
TYPES dmoid TYPE dm40t-dmoid.
TYPES langbez TYPE dm40t-langbez.
TYPES as4local TYPE dm40t-as4local.
TYPES END OF ty_udmo_text_type .
DATA mv_data_model TYPE uddmodl .
DATA mv_text_object TYPE doku_obj .
DATA mv_lxe_text_name TYPE lxeobjname .
DATA mv_activation_state TYPE as4local .
DATA ms_object_type TYPE rsdeo .
CONSTANTS c_transport_object_class TYPE trobjtype VALUE 'SUDM' ##NO_TEXT.
CONSTANTS c_lxe_text_type TYPE lxeobjtype VALUE 'IM' ##NO_TEXT.
CONSTANTS c_correction_object_type TYPE rsdeo-objtype VALUE 'UDMO' ##NO_TEXT.
CONSTANTS c_active_state TYPE as4local VALUE 'A' ##NO_TEXT.
METHODS is_name_permitted
RAISING
zcx_abapgit_exception .
METHODS update_tree .
METHODS serialize_short_texts
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_output
RAISING
zcx_abapgit_exception .
METHODS deserialize_short_texts
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_input
RAISING
zcx_abapgit_exception .
METHODS serialize_long_texts
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_output
RAISING
zcx_abapgit_exception .
METHODS deserialize_long_texts
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_input
RAISING
zcx_abapgit_exception .
METHODS serialize_entities
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_output
RAISING
zcx_abapgit_exception .
METHODS deserialize_entities
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_input
RAISING
zcx_abapgit_exception .
METHODS access_modify
RETURNING
VALUE(rv_result) TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS access_free
RETURNING
VALUE(rv_result) TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS deserialize_model
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_input
RAISING
zcx_abapgit_exception .
METHODS serialize_model
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_output
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS zcl_abapgit_object_udmo IMPLEMENTATION.
METHOD access_free.
" Release the lock on the object.
CALL FUNCTION 'RS_ACCESS_PERMISSION'
EXPORTING
mode = 'FREE'
object = ms_object_type
object_class = c_transport_object_class
EXCEPTIONS
canceled_in_corr = 1
enqueued_by_user = 2
enqueue_system_failure = 3
illegal_parameter_values = 4
locked_by_author = 5
no_modify_permission = 6
no_show_permission = 7
permission_failure = 8
request_language_denied = 9
OTHERS = 10.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ELSE.
rv_result = abap_true.
ENDIF.
ENDMETHOD.
METHOD access_modify.
* You are reminded that mode modify is the same as insert, with one important difference:
* Mode INSERT is intended for newly created objects, for which a TADIR entry does not yet
* exist. In that case, the system shows a pop-up for the entry of the package, which isn't
* desirable when the SAPGUI is not available.
* In the context of abapGit, the package is known.
CALL FUNCTION 'RS_ACCESS_PERMISSION'
EXPORTING
authority_check = abap_true
global_lock = abap_true
mode = 'MODIFY'
object = ms_object_type
object_class = c_transport_object_class
EXCEPTIONS
canceled_in_corr = 1
enqueued_by_user = 2
enqueue_system_failure = 3
illegal_parameter_values = 4
locked_by_author = 5
no_modify_permission = 6
no_show_permission = 7
permission_failure = 8
request_language_denied = 9
OTHERS = 10.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ELSE.
rv_result = abap_true.
ENDIF.
ENDMETHOD.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
" Conversion to Data model
mv_data_model = is_item-obj_name.
" Default activation state is active
mv_activation_state = c_active_state.
" Derive the data model's text object
mv_text_object = 'UDMD' && is_item-obj_name.
" And set the text object to active
mv_text_object+30(1) = mv_activation_state.
mv_lxe_text_name = mv_text_object.
" Correction and Transport System object
ms_object_type-objtype = c_correction_object_type.
ms_object_type-objname = is_item-obj_name.
ENDMETHOD.
METHOD corr_insert.
" You are reminded that SUDM - Data Model has no part objects e.g. no LIMU
" Therefore global lock is always appropriate
" You are reminded that the main language (in TADIR) is taken from MV_LANGUAGE.
CALL FUNCTION 'RS_CORR_INSERT'
EXPORTING
object = ms_object_type
object_class = c_transport_object_class
devclass = iv_package
master_language = mv_language
mode = 'INSERT'
global_lock = abap_true
suppress_dialog = abap_true
EXCEPTIONS
cancelled = 1
permission_failure = 2
unknown_objectclass = 3
OTHERS = 4.
IF sy-subrc = 1.
zcx_abapgit_exception=>raise( 'Cancelled' ).
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
METHOD deserialize_entities.
DATA lt_udmo_entities TYPE STANDARD TABLE OF dm41s WITH DEFAULT KEY.
DATA ls_udmo_entity LIKE LINE OF lt_udmo_entities.
io_xml->read( EXPORTING iv_name = 'UDMO_ENTITIES'
CHANGING cg_data = lt_udmo_entities ).
LOOP AT lt_udmo_entities INTO ls_udmo_entity.
CALL FUNCTION 'SDU_DMO_ENT_PUT'
EXPORTING
object = ls_udmo_entity
EXCEPTIONS
ret_code = 0
OTHERS = 0.
ENDLOOP.
ENDMETHOD.
METHOD deserialize_long_texts.
DATA BEGIN OF ls_udmo_long_text.
DATA language TYPE dm40t-sprache.
DATA header TYPE thead.
DATA content TYPE xstring.
DATA END OF ls_udmo_long_text.
DATA lt_udmo_long_texts LIKE STANDARD TABLE OF ls_udmo_long_text.
DATA ls_header TYPE thead.
io_xml->read( EXPORTING iv_name = 'UDMO_LONG_TEXTS'
CHANGING cg_data = lt_udmo_long_texts ).
LOOP AT lt_udmo_long_texts INTO ls_udmo_long_text.
ls_udmo_long_text-header-tdfuser = sy-uname.
ls_udmo_long_text-header-tdfdate = sy-datum.
ls_udmo_long_text-header-tdftime = sy-uzeit.
" You are reminded that the target system may already have some texts in
" existence. So we determine the highest existent version.
CLEAR ls_header-tdversion.
SELECT MAX( dokversion )
INTO ls_header-tdversion
FROM dokhl
WHERE id = c_lxe_text_type
AND object = mv_text_object
AND langu = ls_udmo_long_text-language.
" Increment the version
ls_header-tdversion = ls_header-tdversion + 1.
ls_udmo_long_text-header-tdversion = ls_header-tdversion.
" This function module takes care of the variation in text processing between various objects.
CALL FUNCTION 'LXE_OBJ_DOKU_PUT_XSTRING'
EXPORTING
slang = mv_language
tlang = ls_udmo_long_text-language
objtype = c_lxe_text_type
objname = mv_lxe_text_name
header = ls_udmo_long_text-header
content = ls_udmo_long_text-content.
ENDLOOP.
ENDMETHOD.
METHOD deserialize_model.
DATA ls_dm40l TYPE dm40l.
io_xml->read( EXPORTING iv_name = 'DM40L'
CHANGING cg_data = ls_dm40l ).
" See SDU_MODEL_PUT
GET TIME.
ls_dm40l-flg_frame = abap_true.
ls_dm40l-fstdate = sy-datum.
ls_dm40l-fsttime = sy-uzeit.
ls_dm40l-fstuser = sy-uname.
ls_dm40l-lstdate = sy-datum.
ls_dm40l-lsttime = sy-uzeit.
ls_dm40l-lstuser = sy-uname.
MODIFY dm40l FROM ls_dm40l.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from SDU_MODEL_PUT' ).
ENDIF.
ENDMETHOD.
METHOD deserialize_short_texts.
DATA lt_udmo_texts TYPE STANDARD TABLE OF ty_udmo_text_type WITH DEFAULT KEY.
DATA ls_udmo_text TYPE ty_udmo_text_type.
DATA ls_dm40t TYPE dm40t.
" Deserialize the XML
io_xml->read( EXPORTING iv_name = 'UDMO_TEXTS'
CHANGING cg_data = lt_udmo_texts ).
" For every text provided
LOOP AT lt_udmo_texts INTO ls_udmo_text.
" Does the text already exist? This is the same logic as used
" in the FM SDU_MODEL_PUT
SELECT SINGLE *
FROM dm40t
INTO ls_dm40t
WHERE sprache = ls_udmo_text-sprache
AND dmoid = ls_udmo_text-dmoid
AND as4local = mv_activation_state.
IF sy-subrc = 0.
" There is already an active description for this language
" but the provided description differs
IF ls_dm40t-langbez <> ls_udmo_text-langbez.
ls_dm40t-langbez = ls_udmo_text-langbez.
ls_dm40t-lstdate = sy-datum.
ls_dm40t-lsttime = sy-uzeit.
ls_dm40t-lstuser = sy-uname.
MODIFY dm40t FROM ls_dm40t.
ENDIF.
ELSE.
" There is no EXISTING active description in this language
ls_dm40t-as4local = ls_udmo_text-as4local.
ls_dm40t-dmoid = ls_udmo_text-dmoid.
ls_dm40t-langbez = ls_udmo_text-langbez.
ls_dm40t-lstdate = sy-datum.
ls_dm40t-lsttime = sy-uzeit.
ls_dm40t-lstuser = sy-uname.
ls_dm40t-sprache = ls_udmo_text-sprache.
INSERT dm40t FROM ls_dm40t.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD is_name_permitted.
" It is unlikely that a serialised data model will have a name that is not permitted. However
" there may be reservations in TRESE which could prohibit the data model name.
" So to be safe, we check. Tx SD11 does this check.
CALL FUNCTION 'SDU_SAA_CHECK'
EXPORTING
obj_name = ms_object_type-objname
obj_type = ms_object_type-objtype
EXCEPTIONS
wrong_type = 01.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
METHOD serialize_entities.
DATA lt_udmo_entities TYPE STANDARD TABLE OF dm41s WITH DEFAULT KEY.
FIELD-SYMBOLS <ls_udmo_entity> TYPE dm41s.
SELECT * FROM dm41s
INTO TABLE lt_udmo_entities
WHERE dmoid = mv_data_model
AND as4local = mv_activation_state.
LOOP AT lt_udmo_entities ASSIGNING <ls_udmo_entity>.
" You are reminded that administrative information, such as last changed by user, date, time is not serialised.
CLEAR <ls_udmo_entity>-lstuser.
CLEAR <ls_udmo_entity>-lstdate.
CLEAR <ls_udmo_entity>-lsttime.
CLEAR <ls_udmo_entity>-fstuser.
CLEAR <ls_udmo_entity>-fstdate.
CLEAR <ls_udmo_entity>-fsttime.
ENDLOOP.
" You are reminded that descriptions in other languages do not have to be in existence, although they may.
IF lines( lt_udmo_entities ) > 0.
io_xml->add( iv_name = 'UDMO_ENTITIES'
ig_data = lt_udmo_entities ).
ENDIF.
ENDMETHOD.
METHOD serialize_long_texts.
" The model has short texts in multiple languages. These are held in DM40T.
" The model has a long description also in a main language, with other long descriptions
" maintained as translations using SE63 Translation Editor. All of these long texts are held in DOK*
TYPES BEGIN OF ty_language_type.
TYPES language TYPE dm40t-sprache.
TYPES END OF ty_language_type.
DATA BEGIN OF ls_udmo_long_text.
DATA language TYPE dm40t-sprache.
DATA header TYPE thead.
DATA content TYPE xstring.
DATA END OF ls_udmo_long_text.
DATA lt_udmo_long_texts LIKE STANDARD TABLE OF ls_udmo_long_text.
DATA lt_udmo_languages TYPE STANDARD TABLE OF ty_language_type.
DATA ls_udmo_language LIKE LINE OF lt_udmo_languages.
DATA: lv_error_status TYPE lxestatprc.
" In which languages are the short texts are maintained.
SELECT sprache AS language
FROM dm40t
INTO TABLE lt_udmo_languages
WHERE dmoid = mv_data_model
AND as4local = mv_activation_state
ORDER BY sprache ASCENDING. "#EC CI_NOFIRST
" For every language for which a short text is maintained,
LOOP AT lt_udmo_languages INTO ls_udmo_language.
CLEAR ls_udmo_long_text.
CLEAR lv_error_status.
ls_udmo_long_text-language = ls_udmo_language-language.
" You are reminded that this function gets the most recent version of the texts.
CALL FUNCTION 'LXE_OBJ_DOKU_GET_XSTRING'
EXPORTING
lang = ls_udmo_language-language
objtype = c_lxe_text_type
objname = mv_lxe_text_name
IMPORTING
header = ls_udmo_long_text-header
content = ls_udmo_long_text-content
pstatus = lv_error_status.
CHECK lv_error_status = 'S'. "Success
" Administrative information is not serialised
CLEAR ls_udmo_long_text-header-tdfuser.
CLEAR ls_udmo_long_text-header-tdfdate.
CLEAR ls_udmo_long_text-header-tdftime.
CLEAR ls_udmo_long_text-header-tdluser.
CLEAR ls_udmo_long_text-header-tdldate.
CLEAR ls_udmo_long_text-header-tdltime.
APPEND ls_udmo_long_text TO lt_udmo_long_texts.
ENDLOOP.
" You are reminded that long texts do not have to be in existence
IF lines( lt_udmo_long_texts ) > 0.
io_xml->add( iv_name = 'UDMO_LONG_TEXTS'
ig_data = lt_udmo_long_texts ).
ENDIF.
ENDMETHOD.
METHOD serialize_model.
DATA ls_dm40l TYPE dm40l.
" See SDU_MODEL_GET.
SELECT SINGLE *
FROM dm40l
INTO ls_dm40l
WHERE dmoid = mv_data_model
AND as4local = mv_activation_state.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from UDMO - model serialisation' ).
ENDIF.
" You are reminded that administrative data is not serialised.
CLEAR ls_dm40l-lstdate.
CLEAR ls_dm40l-lsttime.
CLEAR ls_dm40l-lstuser.
CLEAR ls_dm40l-fstdate.
CLEAR ls_dm40l-fsttime.
CLEAR ls_dm40l-fstuser.
io_xml->add( iv_name = 'DM40L'
ig_data = ls_dm40l ).
ENDMETHOD.
METHOD serialize_short_texts.
DATA lt_udmo_texts TYPE STANDARD TABLE OF ty_udmo_text_type WITH DEFAULT KEY.
" You are reminded that administrative information, such as last changed by user, date, time is not serialised.
" You are reminded that active short texts of all (existent) languages are serialised.
SELECT sprache dmoid as4local langbez
FROM dm40t
INTO CORRESPONDING FIELDS OF TABLE lt_udmo_texts
WHERE dmoid = mv_data_model
AND as4local = mv_activation_state
ORDER BY sprache ASCENDING. "#EC CI_NOFIRST
" You are reminded that descriptions in other languages do not have to be in existence.
IF lines( lt_udmo_texts ) > 0.
io_xml->add( iv_name = 'UDMO_TEXTS'
ig_data = lt_udmo_texts ).
ENDIF.
ENDMETHOD.
METHOD update_tree.
CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT'
EXPORTING
object = mv_data_model
operation = 'INSERT'
type = c_correction_object_type.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE lstuser INTO rv_user
FROM dm40l
WHERE dmoid = mv_data_model
AND as4local = mv_activation_state.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
* You are reminded that this function model checks for
* - permissions
* - locks
* - connection to transport and correction system
* - deletion of data model, model relations and all documentation
* - update of object tree
* - releasing of lock
CALL FUNCTION 'RPY_DATAMODEL_DELETE'
EXPORTING
model_name = mv_data_model
EXCEPTIONS
cancelled = 1
permission_error = 2
not_found = 3
is_used = 4
OTHERS = 5.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
* You are reminded that this method checks for
* - validity of data model name with regard to naming conventions
* - permissions and locks
* - connection to transport and correction system
* - insert of data model, model relations and all documentation
* - update of object tree
* - releasing of lock
* Is the data model name compliant with naming conventions?
is_name_permitted( ).
* Access Permission granted?
access_modify( ).
* Connection to transport and correction system
corr_insert( iv_package ).
* Insert the data model, relations and documentation
TRY.
deserialize_model( io_xml ).
deserialize_entities( io_xml ).
deserialize_short_texts( io_xml ).
deserialize_long_texts( io_xml ).
update_tree( ).
access_free( ).
CATCH zcx_abapgit_exception.
access_free( ).
zcx_abapgit_exception=>raise( 'Error in deserialisation of UDMO' ).
ENDTRY.
" You are reminded that data models are not relevant for activation.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
" See Function Module SDU_MODEL_EXISTS
SELECT COUNT( * ) FROM dm40l
WHERE dmoid = mv_data_model
AND as4local = mv_activation_state.
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 = exists_a_lock_entry_for(
iv_lock_object = 'ESDUM'
iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
" The function module listed below do not open a new window - so we revert to BDC.
" CALL FUNCTION 'SDU_MODEL_SHOW'
" CALL FUNCTION 'RS_TOOL_ACCESS'
DATA lt_bdcdata TYPE TABLE OF bdcdata.
FIELD-SYMBOLS: <ls_bdcdata> LIKE LINE OF lt_bdcdata.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-program = 'SAPMUD00'.
<ls_bdcdata>-dynpro = '0100'.
<ls_bdcdata>-dynbegin = abap_true.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'BDC_OKCODE'.
<ls_bdcdata>-fval = '=SHOW'.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'RSUD3-DATM'.
<ls_bdcdata>-fval = abap_true.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'RSUD3-OBJ_KEY'.
<ls_bdcdata>-fval = ms_item-obj_name.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
STARTING NEW TASK 'GIT'
EXPORTING
tcode = 'SD11'
mode_val = 'E'
TABLES
using_tab = lt_bdcdata
EXCEPTIONS
system_failure = 1
communication_failure = 2
resource_failure = 3
OTHERS = 4
##fm_subrc_ok. "#EC CI_SUBRC
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
IF zif_abapgit_object~exists( ) = abap_false.
RETURN.
ENDIF.
serialize_model( io_xml ).
serialize_entities( io_xml ).
serialize_short_texts( io_xml ).
serialize_long_texts( io_xml ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
463,
5908,
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,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
9186,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
16129,
41876,
7500,
292,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
1162,
81,
62,
28463,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
220,
220,
366,
921,
389,
14516,
326,
262,
2420,
11389,
5612,
1220,
390,
12,
46911,
5612,
5050,
4745,
2402,
257,
2219,
2099,
13,
198,
220,
220,
220,
220,
220,
220,
220,
366,
1675,
787,
262,
20203,
7952,
11,
612,
318,
530,
2219,
6770,
13,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
463,
5908,
62,
5239,
62,
4906,
13,
198,
220,
220,
220,
24412,
47,
1546,
7500,
4891,
41876,
288,
76,
1821,
83,
12,
34975,
4891,
13,
198,
220,
220,
220,
24412,
47,
1546,
288,
76,
1868,
41876,
288,
76,
1821,
83,
12,
36020,
1868,
13,
198,
220,
220,
220,
24412,
47,
1546,
42392,
1350,
89,
41876,
288,
76,
1821,
83,
12,
17204,
1350,
89,
13,
198,
220,
220,
220,
24412,
47,
1546,
355,
19,
12001,
41876,
288,
76,
1821,
83,
12,
292,
19,
12001,
13,
198,
220,
220,
220,
24412,
47,
1546,
23578,
3963,
1259,
62,
463,
5908,
62,
5239,
62,
4906,
764,
628,
220,
220,
220,
42865,
285,
85,
62,
7890,
62,
19849,
41876,
334,
1860,
4666,
75,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
5239,
62,
15252,
41876,
466,
23063,
62,
26801,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
75,
27705,
62,
5239,
62,
3672,
41876,
300,
27705,
26801,
3672,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
48545,
62,
5219,
41876,
355,
19,
12001,
764,
198,
220,
220,
220,
42865,
13845,
62,
15252,
62,
4906,
41876,
44608,
2934,
78,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
7645,
634,
62,
15252,
62,
4871,
41876,
4161,
50007,
4906,
26173,
8924,
705,
50,
8322,
44,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
75,
27705,
62,
5239,
62,
4906,
41876,
300,
27705,
26801,
4906,
26173,
8924,
705,
3955,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
10215,
8243,
62,
15252,
62,
4906,
41876,
44608,
2934,
78,
12,
26801,
4906,
26173,
8924,
705,
8322,
11770,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
5275,
62,
5219,
41876,
355,
19,
12001,
26173,
8924,
705,
32,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
337,
36252,
50,
318,
62,
3672,
62,
525,
3291,
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,
4296,
62,
21048,
764,
198,
220,
220,
220,
337,
36252,
50,
11389,
1096,
62,
19509,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
748,
48499,
1096,
62,
19509,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
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,
6511,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
748,
48499,
1096,
62,
6511,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
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,
298,
871,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
748,
48499,
1096,
62,
298,
871,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
41876,
4526,
37,
5390,
1976
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*---------------------------------------------------------------------*
* program for: VIEWFRAME_ZWFE_V002
* generation date: 31.05.2021 at 10:24:03
* view maintenance generator version: #001407#
*---------------------------------------------------------------------*
FUNCTION VIEWFRAME_ZWFE_V002 .
DATA: ENQUEUE_PROCESSED TYPE C. "flag: view enqueued by VIEWFRAME_...
*-<<<-------------------------------------------------------------->>>>*
* Entrypoint after changing maintenance mode (show <--> update) *
*-<<<-------------------------------------------------------------->>>>*
DO.
*----------------------------------------------------------------------*
* Select data from database *
*----------------------------------------------------------------------*
CALL FUNCTION 'VIEWPROC_ZWFE_V002'
EXPORTING
FCODE = READ
VIEW_ACTION = VIEW_ACTION
VIEW_NAME = VIEW_NAME
TABLES
EXCL_CUA_FUNCT = EXCL_CUA_FUNCT
EXTRACT = ZWFE_V002_EXTRACT
TOTAL = ZWFE_V002_TOTAL
X_HEADER = X_HEADER
X_NAMTAB = X_NAMTAB
DBA_SELLIST = DBA_SELLIST
DPL_SELLIST = DPL_SELLIST
CORR_KEYTAB = E071K_TAB
EXCEPTIONS
MISSING_CORR_NUMBER = 1
NO_VALUE_FOR_SUBSET_IDENT = 2.
CASE SY-SUBRC.
WHEN 1.
RAISE MISSING_CORR_NUMBER.
WHEN 2.
RAISE NO_VALUE_FOR_SUBSET_IDENT.
ENDCASE.
*-<<<-------------------------------------------------------------->>>>*
* Entrypoint after saving data into database *
* Entrypoint after refreshing selected entries from database *
*-<<<-------------------------------------------------------------->>>>*
DO.
*----------------------------------------------------------------------*
* Edit data *
*----------------------------------------------------------------------*
DO.
CALL FUNCTION 'VIEWPROC_ZWFE_V002'
EXPORTING
FCODE = EDIT
VIEW_ACTION = MAINT_MODE
VIEW_NAME = VIEW_NAME
CORR_NUMBER = CORR_NUMBER
IMPORTING
UCOMM = FUNCTION
UPDATE_REQUIRED = STATUS_ZWFE_V002-UPD_FLAG
TABLES
EXCL_CUA_FUNCT = EXCL_CUA_FUNCT
EXTRACT = ZWFE_V002_EXTRACT
TOTAL = ZWFE_V002_TOTAL
X_HEADER = X_HEADER
X_NAMTAB = X_NAMTAB
DBA_SELLIST = DBA_SELLIST
DPL_SELLIST = DPL_SELLIST
CORR_KEYTAB = E071K_TAB
EXCEPTIONS
MISSING_CORR_NUMBER = 1
NO_VALUE_FOR_SUBSET_IDENT = 2.
CASE SY-SUBRC.
WHEN 1.
IF MAINT_MODE EQ TRANSPORTIEREN AND VIEW_ACTION EQ AENDERN.
MOVE VIEW_ACTION TO MAINT_MODE.
ELSE.
PERFORM BEFORE_LEAVING_FRAME_FUNCTION
USING X_HEADER-FRM_BF_END.
RAISE MISSING_CORR_NUMBER.
ENDIF.
WHEN 2.
RAISE NO_VALUE_FOR_SUBSET_IDENT.
WHEN OTHERS.
EXIT.
ENDCASE.
ENDDO.
*----------------------------------------------------------------------*
* Handle usercommands... *
* ...at first handle commands which could cause loss of data *
*----------------------------------------------------------------------*
IF FUNCTION EQ BACK. FUNCTION = END. ENDIF.
IF ( FUNCTION EQ SWITCH_TO_SHOW_MODE OR
FUNCTION EQ GET_ANOTHER_VIEW OR
FUNCTION EQ SWITCH_TRANSP_TO_UPD_MODE OR
FUNCTION EQ END ) AND
STATUS_ZWFE_V002-UPD_FLAG NE SPACE.
PERFORM BEENDEN.
CASE SY-SUBRC.
WHEN 0.
CALL FUNCTION 'VIEWPROC_ZWFE_V002'
EXPORTING
FCODE = SAVE
VIEW_ACTION = MAINT_MODE
VIEW_NAME = VIEW_NAME
CORR_NUMBER = CORR_NUMBER
IMPORTING
UPDATE_REQUIRED = STATUS_ZWFE_V002-UPD_FLAG
TABLES
EXCL_CUA_FUNCT = EXCL_CUA_FUNCT
EXTRACT = ZWFE_V002_EXTRACT
TOTAL = ZWFE_V002_TOTAL
X_HEADER = X_HEADER
X_NAMTAB = X_NAMTAB
DBA_SELLIST = DBA_SELLIST
DPL_SELLIST = DPL_SELLIST
CORR_KEYTAB = E071K_TAB
EXCEPTIONS
MISSING_CORR_NUMBER = 1
NO_VALUE_FOR_SUBSET_IDENT = 2
SAVING_CORRECTION_FAILED = 3.
CASE SY-SUBRC.
WHEN 0.
IF STATUS_ZWFE_V002-UPD_FLAG EQ SPACE. EXIT. ENDIF.
WHEN 1. RAISE MISSING_CORR_NUMBER.
WHEN 2. RAISE NO_VALUE_FOR_SUBSET_IDENT.
WHEN 3.
ENDCASE.
WHEN 8. EXIT.
WHEN 12.
ENDCASE.
*----------------------------------------------------------------------*
* ...2nd: transport request *
*----------------------------------------------------------------------*
ELSEIF FUNCTION EQ TRANSPORT.
IF STATUS_ZWFE_V002-UPD_FLAG NE SPACE.
PERFORM TRANSPORTIEREN.
CASE SY-SUBRC.
WHEN 0.
CALL FUNCTION 'VIEWPROC_ZWFE_V002'
EXPORTING
FCODE = SAVE
VIEW_ACTION = MAINT_MODE
VIEW_NAME = VIEW_NAME
CORR_NUMBER = CORR_NUMBER
IMPORTING
UPDATE_REQUIRED =
STATUS_ZWFE_V002-UPD_FLAG
TABLES
EXCL_CUA_FUNCT = EXCL_CUA_FUNCT
EXTRACT = ZWFE_V002_EXTRACT
TOTAL = ZWFE_V002_TOTAL
X_HEADER = X_HEADER
X_NAMTAB = X_NAMTAB
DBA_SELLIST = DBA_SELLIST
DPL_SELLIST = DPL_SELLIST
CORR_KEYTAB = E071K_TAB
EXCEPTIONS
MISSING_CORR_NUMBER = 1
NO_VALUE_FOR_SUBSET_IDENT = 2
SAVING_CORRECTION_FAILED = 3.
CASE SY-SUBRC.
WHEN 0. MAINT_MODE = TRANSPORTIEREN.
WHEN 1. RAISE MISSING_CORR_NUMBER.
WHEN 2. RAISE NO_VALUE_FOR_SUBSET_IDENT.
WHEN 3.
ENDCASE.
WHEN 8.
EXIT.
WHEN 12.
ENDCASE.
ELSE.
MAINT_MODE = TRANSPORTIEREN.
ENDIF.
*----------------------------------------------------------------------*
* ...now reset or save requests *
*----------------------------------------------------------------------*
ELSEIF FUNCTION EQ RESET_LIST OR
FUNCTION EQ RESET_ENTRY OR
FUNCTION EQ SAVE.
*----------------------------------------------------------------------*
* Refresh selected entries from database or save data into database *
*----------------------------------------------------------------------*
CALL FUNCTION 'VIEWPROC_ZWFE_V002'
EXPORTING
FCODE = FUNCTION
VIEW_ACTION = MAINT_MODE
VIEW_NAME = VIEW_NAME
CORR_NUMBER = CORR_NUMBER
IMPORTING
UPDATE_REQUIRED = STATUS_ZWFE_V002-UPD_FLAG
TABLES
EXCL_CUA_FUNCT = EXCL_CUA_FUNCT
EXTRACT = ZWFE_V002_EXTRACT
TOTAL = ZWFE_V002_TOTAL
X_HEADER = X_HEADER
X_NAMTAB = X_NAMTAB
DBA_SELLIST = DBA_SELLIST
DPL_SELLIST = DPL_SELLIST
CORR_KEYTAB = E071K_TAB
EXCEPTIONS
MISSING_CORR_NUMBER = 1
NO_VALUE_FOR_SUBSET_IDENT = 2
SAVING_CORRECTION_FAILED = 3.
CASE SY-SUBRC.
WHEN 1. RAISE MISSING_CORR_NUMBER.
WHEN 2. RAISE NO_VALUE_FOR_SUBSET_IDENT.
WHEN 3.
ENDCASE.
ELSE.
EXIT.
ENDIF.
ENDDO.
*----------------------------------------------------------------------*
* ...now other commands... *
*----------------------------------------------------------------------*
CASE FUNCTION.
WHEN SWITCH_TO_SHOW_MODE.
* change maintenance mode from update to show
PERFORM ENQUEUE USING 'D' X_HEADER-FRM_AF_ENQ. "dequeue view
CLEAR ENQUEUE_PROCESSED.
VIEW_ACTION = ANZEIGEN.
WHEN SWITCH_TO_UPDATE_MODE.
* change maintenance mode from show to update
PERFORM ENQUEUE USING 'E' X_HEADER-FRM_AF_ENQ. "enqueue view
IF SY-SUBRC EQ 0.
MOVE 'X' TO ENQUEUE_PROCESSED.
VIEW_ACTION = AENDERN.
ENDIF.
WHEN SWITCH_TRANSP_TO_UPD_MODE.
* change maintenance mode from transport to update
VIEW_ACTION = AENDERN.
WHEN TRANSPORT.
* change maintenance mode from update to transport
VIEW_ACTION = TRANSPORTIEREN.
WHEN OTHERS.
IF ENQUEUE_PROCESSED NE SPACE.
PERFORM ENQUEUE USING 'D' X_HEADER-FRM_AF_ENQ. "dequeue view
ENDIF.
PERFORM BEFORE_LEAVING_FRAME_FUNCTION USING X_HEADER-FRM_BF_END.
EXIT.
ENDCASE.
ENDDO.
ENDFUNCTION.
| [
9,
10097,
30934,
9,
198,
9,
220,
220,
220,
1430,
329,
25,
220,
220,
49880,
10913,
10067,
62,
57,
54,
15112,
62,
53,
21601,
198,
9,
220,
220,
5270,
3128,
25,
3261,
13,
2713,
13,
1238,
2481,
379,
838,
25,
1731,
25,
3070,
198,
9,
220,
220,
1570,
9262,
17301,
2196,
25,
1303,
405,
1415,
2998,
2,
198,
9,
10097,
30934,
9,
198,
42296,
4177,
2849,
49880,
10913,
10067,
62,
57,
54,
15112,
62,
53,
21601,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
628,
220,
42865,
25,
12964,
48,
8924,
8924,
62,
4805,
4503,
7597,
1961,
41876,
327,
13,
366,
32109,
25,
1570,
551,
4188,
1739,
416,
49880,
10913,
10067,
62,
986,
198,
198,
9,
12,
16791,
27,
47232,
26171,
16471,
9,
198,
9,
21617,
4122,
706,
5609,
9262,
4235,
357,
12860,
1279,
46904,
4296,
8,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
12,
16791,
27,
47232,
26171,
16471,
9,
198,
220,
8410,
13,
198,
9,
10097,
23031,
9,
198,
9,
9683,
1366,
422,
6831,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
10097,
23031,
9,
198,
34,
7036,
29397,
4177,
2849,
705,
28206,
4805,
4503,
62,
57,
54,
15112,
62,
53,
21601,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10029,
16820,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
20832,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49880,
62,
44710,
220,
220,
220,
796,
49880,
62,
44710,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49880,
62,
20608,
220,
220,
220,
220,
220,
796,
49880,
62,
20608,
198,
220,
220,
220,
220,
220,
220,
220,
220,
309,
6242,
28378,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
5097,
62,
34,
34970,
62,
42296,
4177,
796,
7788,
5097,
62,
34,
34970,
62,
42296,
4177,
198,
6369,
5446,
10659,
796,
1168,
54,
15112,
62,
53,
21601,
62,
6369,
5446,
10659,
198,
51,
27510,
796,
1168,
54,
15112,
62,
53,
21601,
62,
51,
27510,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1395,
62,
37682,
1137,
220,
220,
220,
220,
220,
220,
796,
1395,
62,
37682,
1137,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1395,
62,
45,
2390,
5603,
33,
220,
220,
220,
220,
220,
220,
796,
1395,
62,
45,
2390,
5603,
33,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
360,
4339,
62,
5188,
3069,
8808,
220,
220,
220,
796,
360,
4339,
62,
5188,
3069,
8808,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
360,
6489,
62,
5188,
3069,
8808,
220,
220,
220,
796,
360,
6489,
62,
5188,
3069,
8808,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23929,
49,
62,
20373,
5603,
33,
220,
220,
220,
796,
412,
2998,
16,
42,
62,
5603,
33,
198,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49684,
2751,
62,
44879,
49,
62,
41359,
13246,
220,
220,
220,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8005,
62,
39488,
62,
13775,
62,
12564,
4462,
2767,
62,
25256,
796,
362,
13,
198,
220,
220,
220,
42001,
19704,
12,
50,
10526,
7397,
13,
198,
220,
220,
220,
220,
220,
42099,
352,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
24352,
49684,
2751,
62,
44879,
49,
62,
41359,
13246,
13,
198,
220,
220,
220,
220,
220,
42099,
362,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
24352,
8005,
62,
39488,
62,
13775,
62,
12564,
4462,
2767,
62,
25256,
13,
198,
220,
220,
220,
23578,
34,
11159,
13,
198,
9,
12,
16791,
27,
47232,
26171,
16471,
9,
198,
9,
21617,
4122,
706,
8914,
1366,
656,
6831,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
21617,
4122,
706,
23056,
6163,
12784,
422,
6831,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
12,
16791,
27,
47232,
26171,
16471,
9,
198,
220,
220,
220,
8410,
13,
198,
9,
10097,
23031,
9,
198,
9,
5312,
1366,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
10097,
23031,
9,
198,
220,
220,
220,
220,
220,
8410,
13,
198,
34,
7036,
29397,
4177,
2849,
705,
28206,
4805,
4503,
62,
57,
54,
15112,
62,
53,
21601,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10029,
16820,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
48483,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49880,
62,
44710,
220,
220,
220,
220,
796,
8779,
12394,
62,
49058,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49880,
62,
20608,
220,
220,
220,
220,
220,
220,
796,
49880,
62,
20608,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23929,
49,
62,
41359,
13246,
220,
220,
220,
220,
796,
23929,
49,
62,
41359,
13246,
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,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_OO_ALV_F01
*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Form SHOW_ALV
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM show_alv .
PERFORM set_fcat.
PERFORM set_layout.
PERFORM set_excluding.
PERFORM set_sort.
* PERFORM set_filter.
IF go_alv IS INITIAL.
CREATE OBJECT go_cont
EXPORTING
container_name = 'CC_ALV'.
CREATE OBJECT go_spli
EXPORTING
parent = go_cont " Parent Container
rows = 2 " Number of Rows to be displayed
columns = 1. " Number of Columns to be Displayed
CALL METHOD go_spli->get_container
EXPORTING
row = 1 " Row
column = 1 " Column
RECEIVING
container = go_sub1. " Container
CALL METHOD go_spli->get_container
EXPORTING
row = 2 " Row
column = 1 " Column
RECEIVING
container = go_sub2. " Container
CALL METHOD go_spli->set_row_height
EXPORTING
id = 1 " Row ID
height = 15. " Height
CREATE OBJECT go_docu
EXPORTING
style = 'ALV_GIRD'. " Adjusting to the Style of a Particular GUI Environment
CREATE OBJECT go_alv
EXPORTING
i_parent = go_sub2.
CREATE OBJECT go_event_receiver.
SET HANDLER go_event_receiver->handle_top_of_page FOR go_alv.
SET HANDLER go_event_receiver->handle_hotspot_click FOR go_alv.
SET HANDLER go_event_receiver->handle_double_click FOR go_alv.
SET HANDLER go_event_receiver->handle_data_changed FOR go_alv.
SET HANDLER go_event_receiver->handle_onf4_changed FOR go_alv.
SET HANDLER go_event_receiver->handle_button_click FOR go_alv.
SET HANDLER go_event_receiver->handle_toolbar FOR go_alv.
SET HANDLER go_event_receiver->handle_user_command FOR go_alv.
PERFORM set_dropdown.
* I_SAVE = '' --> DISPLAY VARIANT CANNOT BE SAVED.
* I_SAVE = 'X' --> STANDARD SAVE MODE.
* I_SAVE = 'U' --> USER-SPECIFIC SAVE MODE.
* I_SAVE = 'A' --> STANDARD AND USER-SPECIFIC SAVE MODE
gs_variant-report = sy-repid.
gs_variant-variant = p_vari.
CALL METHOD go_alv->set_table_for_first_display
EXPORTING
* i_structure_name = 'SCARR' " Internal Output Table Structure Name
is_layout = gs_layout
it_toolbar_excluding = gt_excluding
is_variant = gs_variant
i_save = 'A'
CHANGING
it_outtab = gt_scarr
it_fieldcatalog = gt_fcat
it_sort = gt_sort
it_filter = gt_filter
EXCEPTIONS
invalid_parameter_combination = 1 " Wrong Parameter
program_error = 2 " Program Errors
too_many_lines = 3 " Too many Rows in Ready for Input Grid
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD go_alv->list_processing_events
EXPORTING
i_event_name = 'TOP_OF_PAGE' " Event Name List Processing
i_dyndoc_id = go_docu.
CALL METHOD go_alv->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
PERFORM register_f4.
ELSE.
CALL METHOD go_alv->refresh_table_display.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form get_data
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM get_data .
DATA : lv_numc TYPE n LENGTH 8,
lv_numc_c TYPE char8.
* lv_tabix type i.
SELECT * FROM scarr INTO CORRESPONDING FIELDS OF TABLE gt_scarr.
LOOP AT gt_scarr ASSIGNING <gfs_scarr>.
* lv_tabix = lv_tabix + 1.
lv_numc = lv_numc + 1.
lv_numc_c = lv_numc.
CASE <gfs_scarr>-currcode.
WHEN 'USD'.
<gfs_scarr>-dd_handle = 3.
WHEN 'JPY'.
<gfs_scarr>-dd_handle = 4.
WHEN OTHERS.
<gfs_scarr>-dd_handle = 5.
ENDCASE.
* IF <gfs_scarr>-currcode NE 'USD'.
* CLEAR : gs_cellstyle.
* gs_cellstyle-fieldname = 'URL'.
* gs_cellstyle-style = cl_gui_alv_grid=>mc_style_disabled.
* APPEND gs_cellstyle TO <gfs_scarr>-cellstyle.
* ENDIF.
* CASE lv_tabix.
* WHEN 1.
* gs_cellstyle-fieldname = 'URL'.
* gs_cellstyle-style = '00000000'.
* APPEND gs_cellstyle TO <gfs_scarr>-cellstyle.
* WHEN 2.
* gs_cellstyle-fieldname = 'URL'.
* gs_cellstyle-style = '00000001'.
* APPEND gs_cellstyle TO <gfs_scarr>-cellstyle.
* WHEN 3.
* gs_cellstyle-fieldname = 'URL'.
* gs_cellstyle-style = '00000002'.
* APPEND gs_cellstyle TO <gfs_scarr>-cellstyle.
* ENDCASE.
<gfs_scarr>-delete = 'SİL'.
gs_cellstyle-fieldname = 'URL'.
gs_cellstyle-style = lv_numc_c.
APPEND gs_cellstyle TO <gfs_scarr>-cellstyle.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form SET_FCAT
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM set_fcat .
CLEAR : gs_fcat.
gs_fcat-fieldname = 'CARRID'.
gs_fcat-scrtext_m = 'HAVAYOLU ŞİRKETİ'.
gs_fcat-key = abap_true.
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'CARRNAME'.
gs_fcat-scrtext_m = 'HAVAYOLU ADI'.
gs_fcat-ref_table = 'SCARR'.
gs_fcat-ref_table = 'CARRNAME'.
gs_fcat-edit = 'X'.
gs_fcat-f4availabl = 'X'.
"GS_FCAT-style = cl_gui_alv_grid=>mc_style_f4 . AYNI İŞE YARIYOR
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'CURRCODE'.
gs_fcat-scrtext_m = 'HAVAYOLU PB'.
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'URL'.
gs_fcat-scrtext_m = 'HAVAYOLU URL'.
gs_fcat-col_opt = abap_true.
gs_fcat-edit = 'X'.
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'COST'.
gs_fcat-scrtext_m = 'FIYAT'.
gs_fcat-col_opt = abap_true.
gs_fcat-edit = 'X'.
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'DURUM'.
gs_fcat-scrtext_m = 'DURUM'.
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'LOCATION'.
gs_fcat-scrtext_m = 'LOCATION'.
gs_fcat-edit = abap_true.
gs_fcat-drdn_hndl = 1.
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'SEATT'.
gs_fcat-scrtext_m = 'BÖLÜM'.
gs_fcat-edit = abap_true.
gs_fcat-drdn_hndl = 2.
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'SEATP'.
gs_fcat-scrtext_m = 'KOLTUK POZİSYONU'.
gs_fcat-edit = abap_true.
gs_fcat-drdn_field = 'DD_HANDLE'.
APPEND gs_fcat TO gt_fcat.
CLEAR : gs_fcat.
gs_fcat-fieldname = 'DELETE'.
gs_fcat-scrtext_m = 'SİL'.
gs_fcat-style = cl_gui_alv_grid=>mc_style_button.
APPEND gs_fcat TO gt_fcat.
LOOP AT gt_fcat ASSIGNING <gfs_fcat>.
IF <gfs_fcat>-fieldname EQ 'CARRID'.
<gfs_fcat>-hotspot = abap_true.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form set_layout
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM set_layout .
CLEAR : gs_layout.
gs_layout-cwidth_opt = 'X'.
* gs_layout-edit = 'X'.
* gs_layout-no_toolbar = 'X'.
* gs_layout-zebra = 'X'.
gs_layout-stylefname = 'CELLSTYLE'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form GET_TOTAL
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM get_total .
DATA : lv_total TYPE int4,
lv_lines TYPE int4,
lv_avr TYPE int4.
LOOP AT gt_scarr INTO gs_scarr.
lv_total = lv_total + gs_scarr-cost.
ENDLOOP.
DESCRIBE TABLE gt_scarr LINES lv_lines.
lv_avr = lv_total / lv_lines.
LOOP AT gt_scarr ASSIGNING <gfs_scarr>.
IF <gfs_scarr>-cost GT lv_avr .
<gfs_scarr>-durum = '@0A@'.
ELSEIF <gfs_scarr>-cost LT lv_avr.
<gfs_scarr>-durum = '@08@'.
ELSE.
<gfs_scarr>-durum = '@09@'.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form SET_DROPDOWN
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM set_dropdown .
DATA : lt_dropdown TYPE lvc_t_drop,
ls_dropdown TYPE lvc_s_drop.
CLEAR : ls_dropdown.
ls_dropdown-handle = 1.
ls_dropdown-value = 'YURTİÇİ'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 1.
ls_dropdown-value = 'YURTDIŞI'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 2.
ls_dropdown-value = 'ECONOMY'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 2.
ls_dropdown-value = 'BUSINESS'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 2.
ls_dropdown-value = 'FIRST CLASS'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 3.
ls_dropdown-value = 'ÖN'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 3.
ls_dropdown-value = 'KANAT'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 3.
ls_dropdown-value = 'ARKA'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 4.
ls_dropdown-value = 'ÖN'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 4.
ls_dropdown-value = 'ARKA'.
APPEND ls_dropdown TO lt_dropdown.
CLEAR : ls_dropdown.
ls_dropdown-handle = 5.
ls_dropdown-value = 'KANAT'.
APPEND ls_dropdown TO lt_dropdown.
go_alv->set_drop_down_table(
EXPORTING
it_drop_down = lt_dropdown " Dropdown Table
* it_drop_down_alias = " ALV Control: Dropdown List Boxes
).
ENDFORM.
*&---------------------------------------------------------------------*
*& Form register_f4
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM register_f4 .
DATA : lt_f4 TYPE lvc_t_f4,
ls_f4 TYPE lvc_s_f4.
CLEAR : ls_f4.
ls_f4-fieldname = 'CARRNAME'.
ls_f4-register = 'X'.
APPEND ls_f4 TO lt_f4.
CALL METHOD go_alv->register_f4_for_fields
EXPORTING
it_f4 = lt_f4. " F4 Fields
ENDFORM.
*&---------------------------------------------------------------------*
*& Form set_excluding
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM set_excluding .
CLEAR : gv_excluding.
gv_excluding = cl_gui_alv_grid=>mc_fc_detail.
APPEND gv_excluding TO gt_excluding.
gv_excluding = cl_gui_alv_grid=>mc_fc_find.
APPEND gv_excluding TO gt_excluding.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form set_sort
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM set_sort .
CLEAR : gs_sort.
gs_sort-spos = 1.
gs_sort-fieldname = 'CURRCODE'.
gs_sort-down = 'X'.
APPEND gs_sort TO gt_sort.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form set_filter
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM set_filter.
CLEAR : gs_filter.
gs_filter-tabname = 'GT_SCARR'.
gs_filter-fieldname = 'CURRCODE'.
gs_filter-sign = 'I'.
gs_filter-option = 'EQ'.
gs_filter-low = 'USD'.
* GS_FILTER-HIGH = .
APPEND gs_filter TO gt_filter.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form variant
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM variant .
gs_variant_tmp-report = sy-repid.
CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gs_variant_tmp
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc EQ 0.
p_vari = gs_variant_tmp-variant.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form VARIANT_SEARC_HELP
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> p1 text
*& <-- p2 text
*&---------------------------------------------------------------------*
FORM variant_searc_help .
CALL FUNCTION 'LVC_VARIANT_F4'
EXPORTING
is_variant = gs_variant_tmp
* IT_DEFAULT_FIELDCAT =
i_save = 'A'
IMPORTING
* E_EXIT =
es_variant = gs_variant_tmp
* EXCEPTIONS
* NOT_FOUND = 1
* PROGRAM_ERROR = 2
* OTHERS = 3
.
IF sy-subrc EQ 0.
p_vari = gs_variant_tmp-variant.
ENDIF.
ENDFORM.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
35,
3185,
62,
6684,
62,
1847,
53,
62,
37,
486,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
5178,
37041,
62,
1847,
53,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
2420,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
14610,
220,
279,
16,
220,
220,
220,
220,
220,
220,
220,
2420,
198,
9,
5,
1279,
438,
220,
279,
17,
220,
220,
220,
220,
220,
220,
220,
2420,
198,
9,
5,
10097,
30934,
9,
198,
21389,
905,
62,
282,
85,
764,
628,
220,
19878,
21389,
900,
62,
69,
9246,
13,
198,
220,
19878,
21389,
900,
62,
39786,
13,
198,
220,
19878,
21389,
900,
62,
42218,
13,
198,
220,
19878,
21389,
900,
62,
30619,
13,
198,
9,
220,
19878,
21389,
900,
62,
24455,
13,
628,
220,
16876,
467,
62,
282,
85,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
467,
62,
3642,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
9290,
62,
3672,
796,
705,
4093,
62,
1847,
53,
4458,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
467,
62,
22018,
72,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2560,
220,
796,
467,
62,
3642,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
16774,
43101,
198,
220,
220,
220,
220,
220,
220,
220,
15274,
220,
220,
220,
796,
362,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
7913,
286,
371,
1666,
284,
307,
9066,
198,
220,
220,
220,
220,
220,
220,
220,
15180,
796,
352,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
7913,
286,
29201,
82,
284,
307,
16531,
276,
628,
220,
220,
220,
42815,
337,
36252,
467,
62,
22018,
72,
3784,
1136,
62,
34924,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5752,
220,
220,
220,
220,
220,
220,
796,
352,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
11314,
198,
220,
220,
220,
220,
220,
220,
220,
5721,
220,
220,
220,
796,
352,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29201,
198,
220,
220,
220,
220,
220,
19644,
36,
3824,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
9290,
796,
467,
62,
7266,
16,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
43101,
628,
220,
220,
220,
42815,
337,
36252,
467,
62,
22018,
72,
3784,
1136,
62,
34924,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5752,
220,
220,
220,
220,
220,
220,
796,
362,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
11314,
198,
220,
220,
220,
220,
220,
220,
220,
5721,
220,
220,
220,
796,
352,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29201,
198,
220,
220,
220,
220,
220,
19644,
36,
3824,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
9290,
796,
467,
62,
7266,
17,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
43101,
628,
198,
220,
220,
220,
42815,
337,
36252,
467,
62,
22018,
72,
3784,
2617,
62,
808,
62,
17015,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
220,
220,
220,
220,
796,
352,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
11314,
4522,
198,
220,
220,
220,
220,
220,
220,
220,
6001,
796,
1315,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
27280,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
467,
62,
15390,
84,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3918,
796,
705,
1847,
53,
62,
38,
46833,
4458,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
20292,
278,
284,
262,
17738,
286,
257,
2142,
13174,
25757,
9344,
628,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
467,
62,
282,
85,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
8000,
796,
467,
62,
7266,
17,
13,
628,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
467,
62,
15596,
62,
260,
39729,
13,
628,
220,
220,
220,
25823,
367,
6981,
39878,
467,
62,
15596,
62,
260,
39729,
3784,
28144,
62,
4852,
62,
1659,
62,
7700,
220,
220,
7473,
467,
62,
282,
85,
13,
198,
220,
220,
220,
25823,
367,
6981,
39878,
467,
62,
15596,
62,
260,
39729,
3784,
28144,
62,
17398,
13059,
62,
12976,
7473,
467,
62,
282,
85,
13,
198,
220,
220,
220,
25823,
367,
6981,
39878,
467,
62,
15596,
62,
260,
39729,
3784,
28144,
62,
23352,
62,
12976,
220,
7473,
467,
62,
282,
85,
13,
198,
220,
220,
220,
25823,
367,
6981,
39878,
467,
62,
15596,
62,
260,
39729,
3784,
28144,
62,
7890,
62,
40985,
220,
7473,
467,
62,
282,
85,
13,
198,
220,
220,
220,
25823,
367,
6981,
39878,
467,
62,
15596,
62,
260,
39729,
3784,
28144,
62,
261,
69,
19,
62,
40985,
220,
7473,
467,
62,
282,
85,
13,
198,
220,
220,
220,
25823,
367,
6981,
39878,
467,
62,
15596,
62,
260,
39729,
3784,
28144,
62,
16539,
62,
12976,
220,
7473,
467,
62,
282,
85,
13,
198,
220,
220,
220,
25823,
367,
6981,
39878,
467,
62,
15596,
62,
260,
39729,
3784,
28144,
62,
25981,
5657,
220,
220,
220,
220,
220,
220,
7473,
467,
62,
282,
85,
13,
198,
220,
220,
220,
25823,
367,
6981,
39878,
467,
62,
15596,
62,
260,
39729,
3784,
28144,
62,
7220,
62,
21812,
220,
7473,
467,
62,
282,
85,
13,
628,
628,
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
] |
CLASS zcl_abapgit_object_ddls DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
PROTECTED SECTION.
METHODS open_adt_stob
IMPORTING iv_ddls_name TYPE tadir-obj_name
RAISING zcx_abapgit_exception.
PRIVATE SECTION.
METHODS is_baseinfo_supported
RETURNING
VALUE(rv_supported) TYPE abap_bool .
METHODS read_baseinfo
RETURNING
VALUE(rv_baseinfo_string) TYPE string.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_DDLS IMPLEMENTATION.
METHOD is_baseinfo_supported.
DATA:
lr_data_baseinfo TYPE REF TO data,
lx_error TYPE REF TO cx_root.
TRY.
CREATE DATA lr_data_baseinfo TYPE ('IF_DD_DDL_TYPES=>TY_S_BASEINFO_STRING_SAVE').
rv_supported = abap_true.
CATCH cx_root INTO lx_error.
rv_supported = abap_false.
ENDTRY.
ENDMETHOD.
METHOD open_adt_stob.
DATA: lr_data TYPE REF TO data,
lo_ddl TYPE REF TO object,
lx_error TYPE REF TO cx_root.
FIELD-SYMBOLS: <lt_ddnames> TYPE STANDARD TABLE.
FIELD-SYMBOLS: <lt_entity_view> TYPE STANDARD TABLE.
FIELD-SYMBOLS: <lg_ddnames> TYPE any.
FIELD-SYMBOLS: <lg_entity_view> TYPE any.
FIELD-SYMBOLS: <lg_ddname> TYPE any.
FIELD-SYMBOLS: <lg_ddlname> TYPE any.
TRY.
CREATE DATA lr_data TYPE ('IF_DD_DDL_TYPES=>TY_T_DDOBJ').
ASSIGN lr_data->* TO <lt_ddnames>.
CREATE DATA lr_data LIKE LINE OF <lt_ddnames>.
ASSIGN lr_data->* TO <lg_ddnames>.
CREATE DATA lr_data TYPE ('IF_DD_DDL_TYPES=>TY_T_ENTITY_OF_VIEW').
ASSIGN lr_data->* TO <lt_entity_view>.
CREATE DATA lr_data LIKE LINE OF <lt_entity_view>.
ASSIGN lr_data->* TO <lg_entity_view>.
CLEAR <lt_ddnames>.
ASSIGN COMPONENT 'NAME' OF STRUCTURE <lg_ddnames> TO <lg_ddname>.
<lg_ddname> = iv_ddls_name.
INSERT <lg_ddnames> INTO TABLE <lt_ddnames>.
CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE')
RECEIVING
handler = lo_ddl.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~GET_VIEWNAME_FROM_ENTITYNAME')
EXPORTING
ddnames = <lt_ddnames>
IMPORTING
view_of_entity = <lt_entity_view>.
READ TABLE <lt_entity_view> ASSIGNING <lg_entity_view> INDEX 1.
IF sy-subrc = 0.
ASSIGN COMPONENT 'DDLNAME' OF STRUCTURE <lg_entity_view> TO <lg_ddlname>.
jump_adt( iv_obj_name = <lg_ddlname>
iv_obj_type = 'DDLS' ).
ENDIF.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise( iv_text = lx_error->get_text( )
ix_previous = lx_error ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
DATA: lo_ddl TYPE REF TO object,
lr_data TYPE REF TO data,
lx_error TYPE REF TO cx_root.
FIELD-SYMBOLS: <lg_data> TYPE any,
<lg_field> TYPE any.
CREATE DATA lr_data TYPE ('DDDDLSRCV').
ASSIGN lr_data->* TO <lg_data>.
CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE')
RECEIVING
handler = lo_ddl.
TRY.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~READ')
EXPORTING
name = ms_item-obj_name
get_state = 'A'
IMPORTING
ddddlsrcv_wa = <lg_data>.
ASSIGN COMPONENT 'AS4USER' OF STRUCTURE <lg_data> TO <lg_field>.
IF sy-subrc = 0.
rv_user = <lg_field>.
ENDIF.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise( iv_text = lx_error->get_text( )
ix_previous = lx_error ).
ENDTRY.
IF rv_user IS INITIAL.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lo_ddl TYPE REF TO object,
lx_error TYPE REF TO cx_root.
CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE')
RECEIVING
handler = lo_ddl.
TRY.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~DELETE')
EXPORTING
name = ms_item-obj_name.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise(
iv_text = |DDLS, { ms_item-obj_name } { lx_error->get_text( ) }|
ix_previous = lx_error ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA:
lo_ddl TYPE REF TO object,
lr_data TYPE REF TO data,
lr_data_baseinfo TYPE REF TO data,
lx_error TYPE REF TO cx_root.
FIELD-SYMBOLS:
<lg_data> TYPE any,
<lg_data_baseinfo> TYPE any,
<lg_source> TYPE any,
<lg_baseinfo_string> TYPE any,
<lg_baseinfo_ddlname> TYPE any.
TRY.
CREATE DATA lr_data TYPE ('DDDDLSRCV').
ASSIGN lr_data->* TO <lg_data>.
io_xml->read( EXPORTING iv_name = 'DDLS'
CHANGING cg_data = <lg_data> ).
ASSIGN COMPONENT 'SOURCE' OF STRUCTURE <lg_data> TO <lg_source>.
ASSERT sy-subrc = 0.
<lg_source> = mo_files->read_string( 'asddls' ) ##no_text.
CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE')
RECEIVING
handler = lo_ddl.
IF is_baseinfo_supported( ) = abap_true.
CREATE DATA lr_data_baseinfo TYPE ('IF_DD_DDL_TYPES=>TY_S_BASEINFO_STRING_SAVE').
ASSIGN lr_data_baseinfo->* TO <lg_data_baseinfo>.
ASSIGN COMPONENT 'BASEINFO_STRING' OF STRUCTURE <lg_data_baseinfo> TO <lg_baseinfo_string>.
ASSERT sy-subrc = 0.
<lg_baseinfo_string> = read_baseinfo( ).
ASSIGN COMPONENT 'DDLNAME' OF STRUCTURE <lg_data_baseinfo> TO <lg_baseinfo_ddlname>.
ASSERT sy-subrc = 0.
<lg_baseinfo_ddlname> = ms_item-obj_name.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~SAVE')
EXPORTING
name = ms_item-obj_name
put_state = 'N'
ddddlsrcv_wa = <lg_data>
baseinfo_string = <lg_data_baseinfo>.
ELSE.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~SAVE')
EXPORTING
name = ms_item-obj_name
put_state = 'N'
ddddlsrcv_wa = <lg_data>.
ENDIF.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~WRITE_TADIR')
EXPORTING
objectname = ms_item-obj_name
devclass = iv_package
prid = 0.
corr_insert( iv_package ).
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise( iv_text = lx_error->get_text( )
ix_previous = lx_error ).
ENDTRY.
zcl_abapgit_objects_activation=>add_item( ms_item ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_state TYPE objstate,
lo_ddl TYPE REF TO object.
CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE')
RECEIVING
handler = lo_ddl.
TRY.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~READ')
EXPORTING
name = ms_item-obj_name
get_state = 'A'
IMPORTING
got_state = lv_state.
IF lv_state IS INITIAL.
rv_bool = abap_false.
ELSE.
rv_bool = abap_true.
ENDIF.
CATCH cx_root.
rv_bool = abap_false.
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-ddic = abap_true.
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESDICT'
iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
DATA: lv_typename TYPE typename.
DATA: lv_ddtypekind TYPE ddtypekind.
lv_typename = ms_item-obj_name.
CALL FUNCTION 'DDIF_TYPEINFO_GET'
EXPORTING
typename = lv_typename
IMPORTING
typekind = lv_ddtypekind.
CASE lv_ddtypekind.
WHEN 'STOB'.
me->open_adt_stob( ms_item-obj_name ).
WHEN OTHERS.
zcx_abapgit_exception=>raise( 'DDLS Jump Error' ).
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: lo_ddl TYPE REF TO object,
lr_data TYPE REF TO data,
lr_data_baseinfo TYPE REF TO data,
lt_clr_comps TYPE STANDARD TABLE OF fieldname WITH DEFAULT KEY,
lx_error TYPE REF TO cx_root.
FIELD-SYMBOLS: <lg_data> TYPE any,
<lg_field> TYPE any,
<lv_comp> LIKE LINE OF lt_clr_comps,
<lt_data_baseinfo> TYPE ANY TABLE,
<lg_data_baseinfo> TYPE any,
<lg_ddlname> TYPE any,
<lg_as4local> TYPE any.
TRY.
CREATE DATA lr_data TYPE ('DDDDLSRCV').
ASSIGN lr_data->* TO <lg_data>.
CALL METHOD ('CL_DD_DDL_HANDLER_FACTORY')=>('CREATE')
RECEIVING
handler = lo_ddl.
IF is_baseinfo_supported( ) = abap_true.
CREATE DATA lr_data_baseinfo TYPE ('IF_DD_DDL_TYPES=>TY_T_BASEINFO_STRING').
ASSIGN lr_data_baseinfo->* TO <lt_data_baseinfo>.
ASSIGN lr_data_baseinfo->* TO <lg_data_baseinfo>.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~READ')
EXPORTING
name = ms_item-obj_name
get_state = 'A'
IMPORTING
ddddlsrcv_wa = <lg_data>
baseinfo_string = <lt_data_baseinfo>.
LOOP AT <lt_data_baseinfo> ASSIGNING <lg_data_baseinfo>.
ASSIGN COMPONENT 'DDLNAME' OF STRUCTURE <lg_data_baseinfo> TO <lg_ddlname>.
ASSERT sy-subrc = 0.
ASSIGN COMPONENT 'AS4LOCAL' OF STRUCTURE <lg_data_baseinfo> TO <lg_as4local>.
ASSERT sy-subrc = 0.
IF <lg_ddlname> = ms_item-obj_name AND <lg_as4local> = 'A'.
ASSIGN COMPONENT 'BASEINFO_STRING' OF STRUCTURE <lg_data_baseinfo> TO <lg_field>.
ASSERT sy-subrc = 0.
mo_files->add_string( iv_ext = 'baseinfo'
iv_string = <lg_field> ) ##no_text.
EXIT.
ENDIF.
ENDLOOP.
ELSE.
CALL METHOD lo_ddl->('IF_DD_DDL_HANDLER~READ')
EXPORTING
name = ms_item-obj_name
get_state = 'A'
IMPORTING
ddddlsrcv_wa = <lg_data>.
ENDIF.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise( iv_text = lx_error->get_text( )
ix_previous = lx_error ).
ENDTRY.
APPEND 'AS4USER' TO lt_clr_comps.
APPEND 'AS4DATE' TO lt_clr_comps.
APPEND 'AS4TIME' TO lt_clr_comps.
APPEND 'ACTFLAG' TO lt_clr_comps.
APPEND 'CHGFLAG' TO lt_clr_comps.
APPEND 'ABAP_LANGUAGE_VERSION' TO lt_clr_comps.
LOOP AT lt_clr_comps ASSIGNING <lv_comp>.
ASSIGN COMPONENT <lv_comp> OF STRUCTURE <lg_data> TO <lg_field>.
IF sy-subrc = 0.
CLEAR <lg_field>.
ENDIF.
ENDLOOP.
ASSIGN COMPONENT 'SOURCE' OF STRUCTURE <lg_data> TO <lg_field>.
ASSERT sy-subrc = 0.
mo_files->add_string( iv_ext = 'asddls'
iv_string = <lg_field> ) ##no_text.
CLEAR <lg_field>.
io_xml->add( iv_name = 'DDLS'
ig_data = <lg_data> ).
ENDMETHOD.
METHOD read_baseinfo.
TRY.
rv_baseinfo_string = mo_files->read_string( 'baseinfo' ) ##no_text.
CATCH zcx_abapgit_exception.
" File not found. That's ok, as the object could have been created in a
" system where baseinfo wasn't supported.
RETURN.
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
1860,
7278,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
1280,
62,
324,
83,
62,
301,
672,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1860,
7278,
62,
3672,
41876,
36264,
343,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
8692,
10951,
62,
15999,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
15999,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
1100,
62,
8692,
10951,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8692,
10951,
62,
8841,
8,
41876,
4731,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
16458,
6561,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
318,
62,
8692,
10951,
62,
15999,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
300,
81,
62,
7890,
62,
8692,
10951,
41876,
4526,
37,
5390,
1366,
11,
198,
220,
220,
220,
220,
220,
300,
87,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
43213,
62,
15763,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
29244,
6158,
42865,
300,
81,
62,
7890,
62,
8692,
10951,
41876,
19203,
5064,
62,
16458,
62,
16458,
43,
62,
9936,
47,
1546,
14804,
9936,
62,
50,
62,
33,
11159,
10778,
62,
18601,
2751,
62,
4090,
6089,
27691,
198,
220,
220,
220,
220,
220,
220,
220,
374,
85,
62,
15999,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
15763,
39319,
300,
87,
62,
18224,
13,
198,
220,
220,
220,
220,
220,
220,
220,
374,
85,
62,
15999,
796,
450,
499,
62,
9562,
13,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1280,
62,
324,
83,
62,
301,
672,
13,
628,
220,
220,
220,
42865,
25,
300,
81,
62,
7890,
220,
41876,
4526,
37,
5390,
1366,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
1860,
75,
220,
220,
41876,
4526,
37,
5390,
2134,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
87,
62,
18224,
41876,
4526,
37,
5390,
43213,
62,
15763,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
2528,
62,
1860,
14933,
29,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
2528,
62,
26858,
62,
1177,
29,
41876,
49053,
9795,
43679,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
75,
70,
62,
1860,
14933,
29,
220,
220,
220,
220,
41876,
597,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
75,
70,
62,
26858,
62,
1177,
29,
41876,
597,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
75,
70,
62,
1860,
3672,
29,
220,
220,
220,
220,
220,
41876,
597,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
75,
70,
62,
1860,
75,
3672,
29,
220,
220,
220,
220,
41876,
597,
13,
628,
198,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
29244,
6158,
42865,
300,
81,
62,
7890,
41876,
19203,
5064,
62,
16458,
62,
16458,
43,
62,
9936,
47,
1546,
14804,
9936,
62,
51,
62,
16458,
9864,
41,
27691,
198,
220,
220,
220,
220,
220,
220,
220,
24994,
16284,
300,
81,
62,
7890,
3784,
9,
5390,
1279,
2528,
62,
1860,
14933,
28401,
628,
220,
220,
220,
220,
220,
220,
220,
29244,
6158,
42865,
300,
81,
62,
7890,
34178,
48920,
3963,
1279,
2528,
62,
1860,
14933,
28401,
198,
220,
220,
220,
220,
220,
220,
220,
24994,
16284,
300,
81,
62,
7890,
3784,
9,
5390,
1279,
75,
70,
62,
1860,
14933,
28401,
628,
220,
220,
220,
220,
220,
220,
220,
29244,
6158,
42865,
300,
81,
62,
7890,
41876,
19203,
5064,
62,
16458,
62,
16458,
43,
62,
9936,
47,
1546,
14804,
9936,
62,
51,
62,
3525,
9050,
62,
19238,
62,
28206,
27691,
198,
220,
220,
220,
220,
220,
220,
220,
24994,
16284,
300,
81,
62,
7890,
3784,
9,
5390,
1279,
2528,
62,
26858,
62,
1177,
28401,
628,
220,
220,
220,
220,
220,
220,
220,
29244,
6158,
42865,
300,
81,
62,
7890,
34178,
48920,
3963,
1279,
2528,
62,
26858,
62,
1177,
28401,
198,
220,
220,
220,
220,
220,
220,
220,
24994,
16284,
300,
81,
62,
7890,
3784,
9,
5390,
1279,
75,
70,
62,
26858,
62,
1177,
28401,
628,
220,
220,
220,
220,
220,
220,
220,
30301,
1503,
1279,
2528,
62,
1860,
14933,
28401,
198,
220,
220,
220,
220,
220,
220,
220,
24994,
16284,
24301,
1340,
3525,
705,
20608,
6,
3963,
19269,
18415,
11335,
1279,
75,
70,
62,
1860,
14933,
29,
5390,
1279,
75,
70,
62,
1860,
3672,
28401,
198,
220,
220,
220,
220,
220,
220,
220,
1279,
75,
70,
62,
1860,
3672,
29,
796,
21628,
62,
1860,
7278,
62,
3672,
13,
198,
220,
220,
220,
220,
220,
220,
220,
29194,
17395,
1279,
75,
70,
62,
1860,
14933,
29,
39319,
43679,
1279,
2528,
62,
1860,
14933,
28401,
628,
220,
220,
220,
220,
220,
220,
220,
42815,
337,
36252,
19203,
5097,
62,
16458,
62,
16458,
43,
62,
39,
6981,
39878,
62,
37,
10659,
15513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class ZCL_EXCEL_DRAWINGS definition
public
final
create public .
public section.
*"* public components of class ZCL_EXCEL_DRAWINGS
*"* do not include other source files here!!!
data TYPE type ZEXCEL_DRAWING_TYPE read-only value 'IMAGE'. "#EC NOTEXT . . . . . . . . . . " .
methods ADD
importing
!IP_DRAWING type ref to ZCL_EXCEL_DRAWING .
methods INCLUDE
importing
!IP_DRAWING type ref to ZCL_EXCEL_DRAWING .
methods CLEAR .
methods CONSTRUCTOR
importing
!IP_TYPE type ZEXCEL_DRAWING_TYPE .
methods GET
importing
!IP_INDEX type ZEXCEL_ACTIVE_WORKSHEET
returning
value(EO_DRAWING) type ref to ZCL_EXCEL_DRAWING .
methods GET_ITERATOR
returning
value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR .
methods IS_EMPTY
returning
value(IS_EMPTY) type FLAG .
methods REMOVE
importing
!IP_DRAWING type ref to ZCL_EXCEL_DRAWING .
methods SIZE
returning
value(EP_SIZE) type I .
methods GET_TYPE
returning
value(RP_TYPE) type ZEXCEL_DRAWING_TYPE .
*"* protected components of class ZCL_EXCEL_DRAWINGS
*"* do not include other source files here!!!
*"* protected components of class ZCL_EXCEL_DRAWINGS
*"* do not include other source files here!!!
protected section.
private section.
*"* private components of class ZCL_EXCEL_DRAWINGS
*"* do not include other source files here!!!
data DRAWINGS type ref to CL_OBJECT_COLLECTION .
ENDCLASS.
CLASS ZCL_EXCEL_DRAWINGS IMPLEMENTATION.
method ADD.
DATA: lv_index TYPE i.
drawings->add( ip_drawing ).
lv_index = drawings->if_object_collection~size( ).
ip_drawing->create_media_name(
ip_index = lv_index ).
endmethod.
method CLEAR.
drawings->clear( ).
endmethod.
method CONSTRUCTOR.
CREATE OBJECT drawings.
type = ip_type.
endmethod.
method GET.
DATA lv_index TYPE i.
lv_index = ip_index.
eo_drawing ?= drawings->if_object_collection~get( lv_index ).
endmethod.
method GET_ITERATOR.
eo_iterator ?= drawings->if_object_collection~get_iterator( ).
endmethod.
method GET_TYPE.
rp_type = me->type.
endmethod.
method INCLUDE.
drawings->add( ip_drawing ).
endmethod.
method IS_EMPTY.
is_empty = drawings->if_object_collection~is_empty( ).
endmethod.
method REMOVE.
drawings->remove( ip_drawing ).
endmethod.
method SIZE.
ep_size = drawings->if_object_collection~size( ).
endmethod.
ENDCLASS.
| [
4871,
1168,
5097,
62,
6369,
34,
3698,
62,
35,
20530,
20754,
6770,
198,
220,
1171,
198,
220,
2457,
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,
35,
20530,
20754,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
220,
1366,
41876,
2099,
1168,
6369,
34,
3698,
62,
35,
20530,
2751,
62,
25216,
1100,
12,
8807,
1988,
705,
3955,
11879,
4458,
25113,
2943,
5626,
13918,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
366,
764,
628,
220,
5050,
27841,
198,
220,
220,
220,
33332,
198,
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,
5050,
3268,
5097,
52,
7206,
198,
220,
220,
220,
33332,
198,
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,
5050,
30301,
1503,
764,
198,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
4061,
62,
25216,
2099,
1168,
6369,
34,
3698,
62,
35,
20530,
2751,
62,
25216,
764,
198,
220,
5050,
17151,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
4061,
62,
12115,
6369,
2099,
1168,
6369,
34,
3698,
62,
10659,
9306,
62,
33249,
9693,
36,
2767,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
4720,
62,
35,
20530,
2751,
8,
2099,
1006,
284,
1168,
5097,
62,
6369,
34,
3698,
62,
35,
20530,
2751,
764,
198,
220,
5050,
17151,
62,
2043,
1137,
25633,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
4720,
62,
2043,
1137,
25633,
8,
2099,
1006,
284,
7852,
62,
9864,
23680,
62,
25154,
16779,
2849,
62,
2043,
1137,
25633,
764,
198,
220,
5050,
3180,
62,
39494,
9936,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
1797,
62,
39494,
9936,
8,
2099,
9977,
4760,
764,
198,
220,
5050,
22657,
46,
6089,
198,
220,
220,
220,
33332,
198,
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,
5050,
311,
35400,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
8905,
62,
33489,
8,
2099,
314,
764,
198,
220,
5050,
17151,
62,
25216,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
20031,
62,
25216,
8,
2099,
1168,
6369,
34,
3698,
62,
35,
20530,
2751,
62,
25216,
764,
198,
9,
1,
9,
6861,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
35,
20530,
20754,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
9,
1,
9,
6861,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
35,
20530,
20754,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
198,
9,
1,
9,
2839,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
35,
20530,
20754,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
220,
1366,
360,
20530,
20754,
2099,
1006,
284,
7852,
62,
9864,
23680,
62,
25154,
16779,
2849,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6369,
34,
3698,
62,
35,
20530,
20754,
30023,
2538,
10979,
6234,
13,
628,
198,
24396,
27841,
13,
198,
220,
42865,
25,
300,
85,
62,
9630,
41876,
1312,
13,
628,
220,
23388,
3784,
2860,
7,
20966,
62,
19334,
278,
6739,
198,
220,
300,
85,
62,
9630,
796,
23388,
3784,
361,
62,
15252,
62,
43681,
93,
7857,
7,
6739,
198,
220,
20966,
62,
19334,
278,
3784,
17953,
62,
11431,
62,
3672,
7,
198,
220,
220,
220,
20966,
62,
9630,
796,
300,
85,
62,
9630,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
30301,
1503,
13,
628,
220,
23388,
3784,
20063,
7,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
7102,
46126,
1581,
13,
628,
220,
29244,
6158,
25334,
23680,
23388,
13,
198,
220,
2099,
796,
20966,
62,
4906,
13,
628,
220,
886,
24396,
13,
628,
198,
24396,
17151,
13,
628,
220,
42865,
300,
85,
62,
9630,
41876,
1312,
13,
198,
220,
300,
85,
62,
9630,
796,
20966,
62,
9630,
13,
198,
220,
304,
78,
62,
19334,
278,
5633,
28,
23388,
3784,
361,
62,
15252,
62,
43681,
93,
1136,
7,
300,
85,
62,
9630,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
17151,
62,
2043,
1137,
25633,
13,
628,
220,
304,
78,
62,
48727,
5633,
28,
23388,
3784,
361,
62,
15252,
62,
43681,
93,
1136,
62,
48727,
7,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
17151,
62,
25216,
13,
198,
220,
374,
79,
62,
4906,
796,
502,
3784,
4906,
13,
198,
220,
886,
24396,
13,
628,
198,
24396,
3268,
5097,
52,
7206,
13,
198,
220,
23388,
3784,
2860,
7,
20966,
62,
19334,
278,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
3180,
62,
39494,
9936,
13,
628,
220,
318,
62,
28920,
796,
23388,
3784,
361,
62,
15252,
62,
43681,
93,
271,
62,
28920,
7,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
22657,
46,
6089,
13,
628,
220,
23388,
3784,
28956,
7,
20966,
62,
19334,
278,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
311,
35400,
13,
628,
220,
2462,
62,
7857,
796,
23388,
3784,
361,
62,
15252,
62,
43681,
93,
7857,
7,
6739,
198,
220,
886,
24396,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_msag DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_t100_texts,
sprsl TYPE t100-sprsl,
msgnr TYPE t100-msgnr,
text TYPE t100-text,
END OF ty_t100_texts .
TYPES:
tt_t100_texts TYPE STANDARD TABLE OF ty_t100_texts .
TYPES:
tty_t100 TYPE STANDARD TABLE OF t100
WITH NON-UNIQUE DEFAULT KEY .
METHODS serialize_texts
IMPORTING
!io_xml TYPE REF TO zcl_abapgit_xml_output
RAISING
zcx_abapgit_exception .
METHODS deserialize_texts
IMPORTING
!io_xml TYPE REF TO zcl_abapgit_xml_input
RAISING
zcx_abapgit_exception .
METHODS serialize_longtexts_msag
IMPORTING
!it_t100 TYPE tty_t100
!io_xml TYPE REF TO zcl_abapgit_xml_output
RAISING
zcx_abapgit_exception .
METHODS delete_msgid
IMPORTING
!iv_message_id TYPE arbgb .
METHODS free_access_permission
IMPORTING
!iv_message_id TYPE arbgb .
METHODS delete_documentation
IMPORTING
!iv_message_id TYPE arbgb .
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_MSAG IMPLEMENTATION.
METHOD delete_documentation.
DATA: lv_key_s TYPE dokhl-object.
CLEAR lv_key_s.
CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE'
EXPORTING
docu_id = 'NA'
element = iv_message_id
addition = ' '
IMPORTING
object = lv_key_s
EXCEPTIONS
OTHERS = 0.
CALL FUNCTION 'DOKU_DELETE_ALL'
EXPORTING
doku_id = 'NA'
doku_object = lv_key_s
generic_use = 'X'
suppress_authority = space
suppress_enqueue = space
suppress_transport = space
EXCEPTIONS
header_without_text = 01
index_without_header = 02
no_authority_for_devclass_xxxx = 03
no_docu_found = 04
object_is_already_enqueued = 05
object_is_enqueued_by_corr = 06
user_break = 07.
ENDMETHOD.
METHOD delete_msgid.
delete_documentation( iv_message_id ).
DELETE FROM t100a WHERE arbgb = iv_message_id.
IF sy-subrc = 0 OR sy-subrc = 4.
CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT'
EXPORTING
object = iv_message_id
operation = 'DELETE'
program = space
type = 'CN'.
DELETE FROM t100o WHERE arbgb = iv_message_id.
DELETE FROM t100t WHERE arbgb = iv_message_id. "#EC CI_NOFIRST
DELETE FROM t100u WHERE arbgb = iv_message_id.
DELETE FROM t100x WHERE arbgb = iv_message_id.
DELETE FROM t100 WHERE arbgb = iv_message_id.
ENDIF.
ENDMETHOD.
METHOD deserialize_texts.
DATA: lv_msg_id TYPE rglif-message_id,
ls_t100 TYPE t100,
lt_t100t TYPE TABLE OF t100t,
lt_t100_texts TYPE tt_t100_texts,
lt_t100u TYPE TABLE OF t100u.
FIELD-SYMBOLS: <ls_t100_text> TYPE ty_t100_texts.
lv_msg_id = ms_item-obj_name.
SELECT * FROM t100u INTO TABLE lt_t100u
WHERE arbgb = lv_msg_id ORDER BY PRIMARY KEY. "#EC CI_GENBUFF
io_xml->read( EXPORTING iv_name = 'T100_TEXTS'
CHANGING cg_data = lt_t100_texts ).
io_xml->read( EXPORTING iv_name = 'T100T'
CHANGING cg_data = lt_t100t ).
MODIFY t100t FROM TABLE lt_t100t. "#EC CI_SUBRC
LOOP AT lt_t100_texts ASSIGNING <ls_t100_text>.
"check if message exists
READ TABLE lt_t100u TRANSPORTING NO FIELDS
WITH KEY arbgb = lv_msg_id msgnr = <ls_t100_text>-msgnr BINARY SEARCH.
CHECK sy-subrc = 0. "if original message doesn't exist no translations added
MOVE-CORRESPONDING <ls_t100_text> TO ls_t100.
ls_t100-arbgb = lv_msg_id.
MODIFY t100 FROM ls_t100.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'MSAG: Table T100 modify failed' ).
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD free_access_permission.
CALL FUNCTION 'RS_ACCESS_PERMISSION'
EXPORTING
mode = 'FREE'
object = iv_message_id
object_class = 'T100'.
ENDMETHOD.
METHOD serialize_longtexts_msag.
DATA: lv_object TYPE dokhl-object,
lt_objects TYPE STANDARD TABLE OF dokhl-object
WITH NON-UNIQUE DEFAULT KEY,
lt_dokil TYPE zif_abapgit_definitions=>tty_dokil,
ls_dokil LIKE LINE OF lt_dokil.
FIELD-SYMBOLS: <ls_t100> TYPE t100.
IF lines( it_t100 ) = 0.
RETURN.
ENDIF.
LOOP AT it_t100 ASSIGNING <ls_t100>.
lv_object = <ls_t100>-arbgb && <ls_t100>-msgnr.
INSERT lv_object INTO TABLE lt_objects.
ENDLOOP.
SELECT * FROM dokil
INTO TABLE lt_dokil
FOR ALL ENTRIES IN lt_objects
WHERE id = 'NA'
AND object = lt_objects-table_line
ORDER BY PRIMARY KEY.
CLEAR ls_dokil-dokstate.
MODIFY lt_dokil FROM ls_dokil TRANSPORTING dokstate WHERE dokstate IS NOT INITIAL.
IF lines( lt_dokil ) > 0.
serialize_longtexts( io_xml = io_xml
it_dokil = lt_dokil ).
ENDIF.
ENDMETHOD.
METHOD serialize_texts.
DATA: lv_msg_id TYPE rglif-message_id,
lt_t100_texts TYPE tt_t100_texts,
lt_t100t TYPE TABLE OF t100t,
lt_i18n_langs TYPE TABLE OF langu.
lv_msg_id = ms_item-obj_name.
IF io_xml->i18n_params( )-serialize_master_lang_only = abap_true.
RETURN. " skip
ENDIF.
" Collect additional languages
" Skip master lang - it has been already serialized
SELECT DISTINCT sprsl AS langu INTO TABLE lt_i18n_langs
FROM t100t
WHERE arbgb = lv_msg_id
AND sprsl <> mv_language. "#EC CI_BYPASS "#EC CI_GENBUFF
SORT lt_i18n_langs ASCENDING.
IF lines( lt_i18n_langs ) > 0.
SELECT * FROM t100t INTO CORRESPONDING FIELDS OF TABLE lt_t100t
WHERE sprsl <> mv_language
AND arbgb = lv_msg_id. "#EC CI_GENBUFF
SELECT * FROM t100 INTO CORRESPONDING FIELDS OF TABLE lt_t100_texts
FOR ALL ENTRIES IN lt_i18n_langs
WHERE sprsl = lt_i18n_langs-table_line
AND arbgb = lv_msg_id
ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF
SORT lt_t100t BY sprsl ASCENDING.
SORT lt_t100_texts BY sprsl msgnr ASCENDING.
io_xml->add( iv_name = 'I18N_LANGS'
ig_data = lt_i18n_langs ).
io_xml->add( iv_name = 'T100T'
ig_data = lt_t100t ).
io_xml->add( iv_name = 'T100_TEXTS'
ig_data = lt_t100_texts ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE lastuser FROM t100a INTO rv_user
WHERE arbgb = ms_item-obj_name. "#EC CI_GENBUFF
IF sy-subrc <> 0 OR rv_user = ''.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lv_t100a TYPE t100a,
lv_frozen TYPE abap_bool,
lv_message_id TYPE arbgb,
lv_access_granted TYPE abap_bool.
* parameter SUPPRESS_DIALOG doesnt exist in all versions of FM RS_DELETE_MESSAGE_ID
* replaced with a copy
lv_message_id = ms_item-obj_name.
IF ms_item-obj_name = space.
zcx_abapgit_exception=>raise( 'Error from (copy of) RS_DELETE_MESSAGE_ID' )."blank message id
ENDIF.
SELECT SINGLE * FROM t100a INTO lv_t100a WHERE arbgb = ms_item-obj_name.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Error from (copy of) RS_DELETE_MESSAGE_ID' )."not found
ENDIF.
CLEAR lv_frozen.
CALL FUNCTION 'RS_ACCESS_PERMISSION'
EXPORTING
authority_check = 'X'
global_lock = 'X'
mode = 'MODIFY'
object = lv_message_id
object_class = 'T100'
IMPORTING
frozen = lv_frozen
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0 OR lv_frozen <> space.
zcx_abapgit_exception=>raise( 'Error from (copy of) RS_DELETE_MESSAGE_ID' )."can't access
ENDIF.
lv_access_granted = abap_true.
CALL FUNCTION 'RS_CORR_INSERT'
EXPORTING
global_lock = 'X'
object = lv_message_id
object_class = 'MSAG'
mode = 'D'
suppress_dialog = abap_true
EXCEPTIONS
cancelled = 01
permission_failure = 02.
IF sy-subrc <> 0.
IF lv_access_granted = abap_true.
free_access_permission( lv_message_id ).
ENDIF.
zcx_abapgit_exception=>raise( 'Error from (copy of) RS_DELETE_MESSAGE_ID' )."can't access
ENDIF.
delete_msgid( lv_message_id ).
IF lv_access_granted = abap_true.
free_access_permission( lv_message_id ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
* fm RPY_MESSAGE_ID_INSERT almost works, but not in older versions
DATA: ls_t100a TYPE t100a,
ls_t100t TYPE t100t,
ls_t100u TYPE t100u,
lt_t100 TYPE TABLE OF t100,
lt_before TYPE TABLE OF t100u.
FIELD-SYMBOLS: <ls_t100> LIKE LINE OF lt_t100.
io_xml->read( EXPORTING iv_name = 'T100A'
CHANGING cg_data = ls_t100a ).
io_xml->read( EXPORTING iv_name = 'T100'
CHANGING cg_data = lt_t100 ).
corr_insert( iv_package ).
SELECT * FROM t100u INTO TABLE lt_before
WHERE arbgb = ls_t100a-arbgb ORDER BY msgnr. "#EC CI_GENBUFF "#EC CI_BYPASS
LOOP AT lt_t100 ASSIGNING <ls_t100>.
DELETE lt_before WHERE msgnr = <ls_t100>-msgnr.
MODIFY t100 FROM <ls_t100>.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'MSAG: Table T100 modify failed' ).
ENDIF.
CLEAR ls_t100u.
MOVE-CORRESPONDING <ls_t100> TO ls_t100u ##enh_ok.
ls_t100u-name = sy-uname.
ls_t100u-datum = sy-datum.
ls_t100u-selfdef = '3'.
MODIFY t100u FROM ls_t100u.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'MSAG: Table T100U modify failed' ).
ENDIF.
ENDLOOP.
ls_t100a-masterlang = mv_language.
ls_t100a-lastuser = sy-uname.
ls_t100a-respuser = sy-uname.
ls_t100a-ldate = sy-datum.
ls_t100a-ltime = sy-uzeit.
MODIFY t100a FROM ls_t100a.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'MSAG: Table T100A modify failed' ).
ENDIF.
ls_t100t-sprsl = mv_language.
ls_t100t-arbgb = ls_t100a-arbgb.
ls_t100t-stext = ls_t100a-stext.
MODIFY t100t FROM ls_t100t.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'MSAG: Table T100T modify failed' ).
ENDIF.
LOOP AT lt_before INTO ls_t100u.
DELETE FROM t100 WHERE arbgb = ls_t100u-arbgb
AND msgnr = ls_t100u-msgnr. "#EC CI_SUBRC
DELETE FROM t100u WHERE arbgb = ls_t100u-arbgb
AND msgnr = ls_t100u-msgnr. "#EC CI_SUBRC
ENDLOOP.
deserialize_longtexts( io_xml ).
deserialize_texts( io_xml ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_arbgb TYPE t100a-arbgb.
SELECT SINGLE arbgb FROM t100a INTO lv_arbgb
WHERE arbgb = ms_item-obj_name. "#EC CI_GENBUFF
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
DATA: lv_argument TYPE seqg3-garg.
lv_argument = |{ ms_item-obj_name }|.
OVERLAY lv_argument WITH ' '.
lv_argument = lv_argument && '*'.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = |ES_MSGSI|
iv_argument = lv_argument ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
CALL FUNCTION 'RS_TOOL_ACCESS'
EXPORTING
operation = 'SHOW'
object_name = ms_item-obj_name
object_type = 'MSAG'
in_new_window = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: lv_msg_id TYPE rglif-message_id,
ls_inf TYPE t100a,
lt_source TYPE tty_t100.
lv_msg_id = ms_item-obj_name.
SELECT SINGLE * FROM t100a INTO ls_inf
WHERE arbgb = lv_msg_id. "#EC CI_GENBUFF
IF sy-subrc <> 0.
RETURN.
ENDIF.
CLEAR ls_inf-respuser.
SELECT * FROM t100 INTO TABLE lt_source
WHERE sprsl = mv_language
AND arbgb = lv_msg_id
ORDER BY PRIMARY KEY. "#EC CI_SUBRC "#EC CI_GENBUFF
CLEAR: ls_inf-lastuser,
ls_inf-ldate,
ls_inf-ltime.
io_xml->add( iv_name = 'T100A'
ig_data = ls_inf ).
io_xml->add( ig_data = lt_source
iv_name = 'T100' ).
serialize_longtexts_msag( it_t100 = lt_source
io_xml = io_xml ).
serialize_texts( io_xml ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
907,
363,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
83,
3064,
62,
5239,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
599,
3808,
75,
41876,
256,
3064,
12,
34975,
6649,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13845,
4593,
81,
41876,
256,
3064,
12,
907,
4593,
81,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
41876,
256,
3064,
12,
5239,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
83,
3064,
62,
5239,
82,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
83,
62,
83,
3064,
62,
5239,
82,
41876,
49053,
9795,
43679,
3963,
1259,
62,
83,
3064,
62,
5239,
82,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
774,
62,
83,
3064,
220,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
256,
3064,
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,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
764,
628,
220,
220,
220,
337,
36252,
50,
11389,
1096,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
748,
48499,
1096,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
15414,
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,
6511,
5239,
82,
62,
907,
363,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
83,
3064,
41876,
256,
774,
62,
83,
3064,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
12233,
62,
19662,
312,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
20500,
62,
312,
41876,
610,
65,
22296,
764,
198,
220,
220,
220,
337,
36252,
50,
1479,
62,
15526,
62,
525,
3411,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
20500,
62,
312,
41876,
610,
65,
22296,
764,
198,
220,
220,
220,
337,
36252,
50,
12233,
62,
22897,
341,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
20500,
62,
312,
41876,
610,
65,
22296,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
44,
4090,
38,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
12233,
62,
22897,
341,
13,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
2539,
62,
82,
41876,
466,
14636,
75,
12,
15252,
13,
628,
220,
220,
220,
30301,
1503,
300,
85,
62,
2539,
62,
82,
13,
198,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
38715,
52,
62,
9864,
23680,
62,
20608,
62,
10943,
34,
1404,
1677,
6158,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2205,
84,
62,
312,
220,
796,
705,
4535,
6,
198,
220,
220,
220,
220,
220,
220,
220,
5002,
220,
796,
21628,
62,
20500,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
3090,
796,
705,
220,
220,
705,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
220,
220,
796,
300,
85,
62,
2539,
62,
82,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
796,
657,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
35,
11380,
52,
62,
7206,
2538,
9328,
62,
7036,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
466,
23063,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
4535,
6,
198,
220,
220,
220,
220,
220,
220,
220,
466,
23063,
62,
15252,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
2539,
62,
82,
198,
220,
220,
220,
220,
220,
220,
220,
14276,
62,
1904,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
55,
6,
198,
220,
220,
220,
220,
220,
220,
220,
18175,
62,
9800,
414,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
2272
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_g4ba DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_object .
PROTECTED SECTION.
PRIVATE SECTION.
METHODS get_generic
RETURNING
VALUE(ro_generic) TYPE REF TO zcl_abapgit_objects_generic
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS zcl_abapgit_object_g4ba IMPLEMENTATION.
METHOD get_generic.
CREATE OBJECT ro_generic
EXPORTING
is_item = ms_item
iv_language = mv_language.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = zcl_abapgit_objects_super=>c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
get_generic( )->delete( ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
get_generic( )->deserialize(
iv_package = iv_package
io_xml = io_xml ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
rv_bool = get_generic( )->exists( ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
get_generic( )->serialize( io_xml ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
70,
19,
7012,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
41357,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
41357,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
41357,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
70,
19,
7012,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
41357,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
41357,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
796,
13845,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
796,
285,
85,
62,
16129,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
198,
220,
220,
220,
374,
85,
62,
7220,
796,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
14804,
66,
62,
7220,
62,
34680,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
651,
62,
41357,
7,
1267,
3784,
33678,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
8906,
48499,
1096,
13,
628,
220,
220,
220,
651,
62,
41357,
7,
1267,
3784,
8906,
48499,
1096,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
26495,
796,
21628,
62,
26495,
198,
220,
220,
220,
220,
220,
33245,
62,
19875,
220,
220,
220,
220,
796,
33245,
62,
19875,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1069,
1023,
13,
628,
220,
220,
220,
374,
85,
62,
30388,
796,
651,
62,
41357,
7,
1267,
3784,
1069,
1023,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
785,
1845,
1352,
13,
198,
220,
220,
220,
30826,
27064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
8906,
48499,
1096,
62,
20214,
13,
198,
220,
220,
220,
43504,
10619,
1976,
361,
62,
397,
499,
18300,
62,
15252,
14804,
36484,
62,
9662,
62,
312,
12,
397,
499,
5390,
374,
83,
62,
20214,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
38993,
13,
628,
220,
220,
220,
44608,
62,
38993,
796,
651,
62,
38993,
7,
6739,
198,
220,
220,
220,
44608,
62,
38993,
12,
33678,
62,
83,
324,
343,
796,
450,
499,
62,
7942,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
271,
62,
5275,
13,
198,
220,
220,
220,
374,
85,
62,
5275,
796,
318,
62,
5275,
7,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
271,
62,
24162,
13,
628,
220,
220,
220,
374,
85,
62,
271,
62,
24162,
796,
450,
499,
62,
9562,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
43327,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
46911,
1096,
13,
628,
220,
220,
220,
651,
62,
41357,
7,
1267,
3784,
46911,
1096,
7,
33245,
62,
19875,
6739,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_abapgit_syntax_json DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA:
mo_cut TYPE REF TO zcl_abapgit_syntax_json.
METHODS:
setup,
key_value FOR TESTING RAISING cx_static_check,
comment_1 FOR TESTING RAISING cx_static_check,
comment_2 FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_abapgit_syntax_json IMPLEMENTATION.
METHOD setup.
CREATE OBJECT mo_cut.
ENDMETHOD.
METHOD key_value.
cl_abap_unit_assert=>assert_equals(
act = mo_cut->process_line( |"key":"value"| )
exp = |<span class="text">"key"</span>:<span class="properties">"value"</span>| ).
ENDMETHOD.
METHOD comment_1.
cl_abap_unit_assert=>assert_equals(
act = mo_cut->process_line( |"key":"value" // comment| )
exp = |<span class="text">"key"</span>:<span class="properties">"value"</span>|
&& | <span class="comment">//</span> comment| ).
ENDMETHOD.
METHOD comment_2.
cl_abap_unit_assert=>assert_equals(
act = mo_cut->process_line( |/* comment */| )
exp = |<span class="comment">/* comment */</span>| ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
17752,
5550,
20032,
17941,
25261,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
6941,
62,
8968,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
17752,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
198,
220,
220,
220,
220,
220,
1994,
62,
8367,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
2912,
62,
16,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
2912,
62,
17,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
17752,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
9058,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
6941,
62,
8968,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1994,
62,
8367,
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,
6941,
62,
8968,
3784,
14681,
62,
1370,
7,
930,
1,
2539,
2404,
8367,
1,
91,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
930,
27,
12626,
1398,
2625,
5239,
5320,
1,
2539,
1,
3556,
12626,
31175,
27,
12626,
1398,
2625,
48310,
5320,
1,
8367,
1,
3556,
12626,
29,
91,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2912,
62,
16,
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,
6941,
62,
8968,
3784,
14681,
62,
1370,
7,
930,
1,
2539,
2404,
8367,
1,
3373,
2912,
91,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
930,
27,
12626,
1398,
2625,
5239,
5320,
1,
2539,
1,
3556,
12626,
31175,
27,
12626,
1398,
2625,
48310,
5320,
1,
8367,
1,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
1279,
12626,
1398,
2625,
23893,
5320,
1003,
3556,
12626,
29,
2912,
91,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2912,
62,
17,
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,
6941,
62,
8968,
3784,
14681,
62,
1370,
7,
930,
15211,
2912,
9466,
91,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
930,
27,
12626,
1398,
2625,
23893,
5320,
15211,
2912,
9466,
3556,
12626,
29,
91,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 /gal/config_store MESSAGE-ID /gal/config_store.
INCLUDE /gal/cfw_macros. "#EC INCL_OK
| [
42296,
4177,
2849,
12,
16402,
3535,
1220,
13528,
14,
11250,
62,
8095,
337,
1546,
4090,
8264,
12,
2389,
1220,
13528,
14,
11250,
62,
8095,
13,
198,
198,
1268,
5097,
52,
7206,
1220,
13528,
14,
12993,
86,
62,
20285,
4951,
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,
25113,
2943,
3268,
5097,
62,
11380,
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
] |
class ZCL_TTTT_DEMO_03_NODE_TRAN definition
public
create public .
public section.
interfaces ZIF_TTTT_NODE .
methods CONSTRUCTOR
importing
!DESCRIPTION type STRING optional
!TCODE type TCODE .
PROTECTED SECTION.
private section.
types:
BEGIN OF _film,
title TYPE string,
year TYPE n LENGTH 4,
director TYPE string,
END OF _film .
types:
_films TYPE STANDARD TABLE OF _film .
data TRANSACTION_CODE type TCODE .
data DOCU_CONTROL type ref to CL_GUI_HTML_VIEWER .
data DOCU_LINES type TLINE_TAB .
data REPORTNAME type REPID .
methods CREATE_CONTROL .
ENDCLASS.
CLASS ZCL_TTTT_DEMO_03_NODE_TRAN IMPLEMENTATION.
METHOD constructor.
IF description IS INITIAL.
SELECT SINGLE ttext FROM tstct
WHERE tcode = @tcode
AND sprsl = @sy-langu
INTO @zif_tttt_node~description.
ELSE.
zif_tttt_node~description = description.
ENDIF.
transaction_code = tcode.
SELECT SINGLE pgmna FROM tstc INTO reportname WHERE tcode = tcode.
ENDMETHOD.
METHOD create_control.
IF docu_control IS INITIAL.
docu_control = NEW #( parent = zif_tttt_node~container ).
ENDIF.
ENDMETHOD.
METHOD ZIF_TTTT_NODE~ACTIONZIF_TTTT_NODE_DOUBLE_CLICK.
ENDMETHOD.
METHOD ZIF_TTTT_NODE~ACTION_ITEM_CXT_MENU_REQUEST.
menu->add_function(
EXPORTING
fcode = 'Demo'
text = 'Demo function' ).
ENDMETHOD.
METHOD ZIF_TTTT_NODE~ACTION_ITEM_CXT_MENU_SELECTED.
CASE fcode.
WHEN 'Demo'.
MESSAGE |demo function| TYPE 'I'.
ENDCASE.
ENDMETHOD.
METHOD zif_tttt_node~action_item_double_click.
zif_tttt_node~action_node_double_click( node_key ).
ENDMETHOD.
METHOD zif_tttt_node~action_link_click.
create_control( ).
zcl_tttt_demo_03_docu_helper=>show_docu(
html_control = docu_control
html_lines = zcl_tttt_demo_03_docu_helper=>read_docu(
id = 'RE'
object = CONV #( reportname ) ) ).
ENDMETHOD.
METHOD zif_tttt_node~action_node_double_click.
CALL TRANSACTION transaction_code AND SKIP FIRST SCREEN.
ENDMETHOD.
METHOD zif_tttt_node~action_selection_changed.
ENDMETHOD.
METHOD ZIF_TTTT_NODE~GETZIF_TTTT_NODE_ICON.
icon = icon_dummy.
ENDMETHOD.
METHOD zif_tttt_node~get_control.
create_control( ).
control = docu_control.
ENDMETHOD.
METHOD zif_tttt_node~get_items.
items = VALUE #(
( item_name = '3'
class = cl_item_tree_model=>item_class_link
style = cl_item_tree_model=>style_default
font = cl_item_tree_model=>item_font_prop
text = space
t_image = icon_information
length = 4 )
( item_name = '5'
class = cl_item_tree_model=>item_class_text
style = cl_item_tree_model=>style_default
font = cl_item_tree_model=>item_font_prop
text = transaction_code
length = 32 )
( item_name = zif_tttt_node=>item_name-description
class = cl_item_tree_model=>item_class_text
style = cl_item_tree_model=>style_default
font = cl_item_tree_model=>item_font_prop
text = zif_tttt_node~description
length = 40 )
).
ENDMETHOD.
METHOD zif_tttt_node~get_node_icon.
icon = icon_generate.
ENDMETHOD.
METHOD ZIF_TTTT_NODE~IS_DISABLED.
disabled = abap_false.
ENDMETHOD.
METHOD ZIF_TTTT_NODE~IS_FOLDER.
folder = abap_false.
ENDMETHOD.
METHOD ZIF_TTTT_NODE~SET_CONTAINER.
zif_tttt_node~container = cont.
ENDMETHOD.
METHOD ZIF_TTTT_NODE~SET_MARK.
zif_tttt_node~chosen = chosen.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
15751,
15751,
62,
39429,
46,
62,
3070,
62,
45,
16820,
62,
5446,
1565,
6770,
198,
220,
1171,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
5064,
62,
15751,
15751,
62,
45,
16820,
764,
628,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
30910,
40165,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
4825,
16820,
2099,
17283,
16820,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
19734,
2665,
13,
628,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
4808,
26240,
11,
198,
220,
220,
220,
220,
220,
3670,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
614,
220,
220,
220,
220,
41876,
299,
406,
49494,
604,
11,
198,
220,
220,
220,
220,
220,
3437,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
4808,
26240,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
4808,
10379,
907,
41876,
49053,
9795,
43679,
3963,
4808,
26240,
764,
628,
220,
1366,
44069,
44710,
62,
34,
16820,
2099,
17283,
16820,
764,
198,
220,
1366,
37760,
52,
62,
10943,
5446,
3535,
2099,
1006,
284,
7852,
62,
40156,
62,
28656,
62,
28206,
1137,
764,
198,
220,
1366,
37760,
52,
62,
34509,
1546,
2099,
309,
24027,
62,
5603,
33,
764,
198,
220,
1366,
39099,
20608,
2099,
4526,
47,
2389,
764,
628,
220,
5050,
29244,
6158,
62,
10943,
5446,
3535,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
15751,
15751,
62,
39429,
46,
62,
3070,
62,
45,
16820,
62,
5446,
1565,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
16876,
6764,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
33493,
311,
2751,
2538,
256,
5239,
16034,
256,
301,
310,
198,
220,
220,
220,
220,
220,
220,
220,
33411,
256,
8189,
796,
2488,
83,
8189,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
599,
3808,
75,
796,
2488,
1837,
12,
75,
2303,
198,
220,
220,
220,
220,
220,
220,
220,
39319,
2488,
89,
361,
62,
926,
926,
62,
17440,
93,
11213,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
926,
926,
62,
17440,
93,
11213,
796,
6764,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
8611,
62,
8189,
796,
256,
8189,
13,
198,
220,
220,
220,
33493,
311,
2751,
2538,
23241,
76,
2616,
16034,
256,
301,
66,
39319,
989,
3672,
33411,
256,
8189,
796,
256,
8189,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2251,
62,
13716,
13,
628,
220,
220,
220,
16876,
2205,
84,
62,
13716,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
2205,
84,
62,
13716,
796,
12682,
1303,
7,
2560,
796,
1976,
361,
62,
926,
926,
62,
17440,
93,
34924,
220,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1168,
5064,
62,
15751,
15751,
62,
45,
16820,
93,
44710,
57,
5064,
62,
15751,
15751,
62,
45,
16820,
62,
35,
2606,
19146,
62,
5097,
11860,
13,
628,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1168,
5064,
62,
15751,
15751,
62,
45,
16820,
93,
44710,
62,
2043,
3620,
62,
34,
25010,
62,
49275,
52,
62,
2200,
35780,
13,
628,
220,
220,
220,
6859,
3784,
2860,
62,
8818,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
277,
8189,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
11522,
78,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
11522,
78,
2163,
6,
220,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1168,
5064,
62,
15751,
15751,
62,
45,
16820,
93,
44710,
62,
2043,
3620,
62,
34,
25010,
62,
49275,
52,
62,
46506,
1961,
13,
628,
220,
220,
220,
42001,
277,
8189,
13,
198,
220,
220,
220,
220,
220,
42099,
705,
11522,
78,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
930,
9536,
78,
2163,
91,
41876,
705,
40,
4458,
198,
220,
220,
220,
23578,
34,
11159,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
926,
926,
62,
17440,
93,
2673,
62,
9186,
62,
23352,
62,
12976,
13,
628,
220,
220,
220,
1976,
361,
62,
926,
926,
62,
17440,
93,
2673,
62,
17440,
62,
23352,
62,
12976,
7,
10139,
62,
2539,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
926,
926,
62,
17440,
93,
2673,
62,
8726,
62,
12976,
13,
628,
220,
220,
220,
2251,
62,
13716,
7,
6739,
628,
220,
220,
220,
1976,
565,
62,
926,
926,
62,
9536,
78,
62,
3070,
62,
15390,
84,
62,
2978,
525,
14804,
12860,
62,
15390,
84,
7,
198,
220,
220,
220,
220,
220,
27711,
62,
13716,
796,
2205,
84,
62,
13716,
198,
220,
220,
220,
220,
220,
27711,
62,
6615,
220,
220,
796,
1976,
565,
62,
926,
926,
62,
9536,
78,
62,
3070,
62,
15390,
84,
62,
2978,
525,
14804,
961,
62,
15390,
84,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
220,
220,
220,
220,
796,
705,
2200,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2134,
796,
7102,
53,
1303,
7,
989,
3672,
1267,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
926,
926,
62,
17440,
93,
2673,
62,
17440,
62,
23352,
62,
12976,
13,
628,
220,
220,
220,
42815,
44069,
44710,
8611,
62,
8189,
5357,
14277,
4061,
31328,
6374,
2200,
1677,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
926,
926,
62,
17440,
93,
2673,
62,
49283,
62,
40985,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1168,
5064,
62,
15751,
15751,
62,
45
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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or TYPE REF TO zcl_abappgp_armor.
lv_armor = zcl_abappgp_unit_test=>get_public_key( ).
lo_armor = zcl_abappgp_armor=>from_string( lv_armor ).
lv_result = lo_armor->to_string( ).
cl_abap_unit_assert=>assert_equals(
act = lv_result
exp = lv_armor ).
ENDMETHOD.
ENDCLASS.
| [
198,
31631,
300,
83,
565,
62,
9288,
5550,
20032,
17941,
7473,
43001,
2751,
360,
4261,
6234,
6006,
9863,
45698,
42,
49277,
43638,
5805,
7597,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
1332,
7473,
43001,
2751,
13,
198,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
2528,
565,
62,
14402,
628,
198,
31631,
300,
83,
565,
62,
9288,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1332,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
40456,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
20274,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
40456,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
13,
628,
198,
220,
220,
220,
300,
85,
62,
40456,
796,
1976,
565,
62,
397,
1324,
31197,
62,
20850,
62,
9288,
14804,
1136,
62,
11377,
62,
2539,
7,
6739,
628,
220,
220,
220,
2376,
62,
40456,
796,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
6738,
62,
8841,
7,
300,
85,
62,
40456,
6739,
628,
220,
220,
220,
300,
85,
62,
20274,
796,
2376,
62,
40456,
3784,
1462,
62,
8841,
7,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
300,
85,
62,
20274,
198,
220,
220,
220,
220,
220,
1033,
796,
300,
85,
62,
40456,
6739,
628,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*"* use this source file for your ABAP unit test classes
class ltc_main definition
for testing
duration short
risk level harmless
inheriting from cl_aunit_assert.
private section.
methods test for testing.
* class-methods class_setup.
* class-methods class_teardown.
* methods setup.
* methods teardown.
endclass.
class ltc_main implementation.
method test.
new zcl_io_backend_builder( filename = '' )->in_text_mode( )->for_input( ).
endmethod.
endclass.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
534,
9564,
2969,
4326,
1332,
6097,
198,
198,
4871,
300,
23047,
62,
12417,
6770,
198,
220,
220,
220,
220,
220,
329,
4856,
198,
220,
220,
220,
220,
220,
9478,
1790,
198,
220,
220,
220,
220,
220,
2526,
1241,
23585,
198,
220,
220,
220,
220,
220,
10639,
1780,
422,
537,
62,
1942,
270,
62,
30493,
13,
198,
220,
2839,
2665,
13,
198,
220,
220,
220,
5050,
1332,
329,
4856,
13,
198,
9,
220,
220,
220,
1398,
12,
24396,
82,
1398,
62,
40406,
13,
198,
9,
220,
220,
220,
1398,
12,
24396,
82,
1398,
62,
660,
446,
593,
13,
198,
9,
220,
220,
220,
5050,
9058,
13,
198,
9,
220,
220,
220,
5050,
573,
446,
593,
13,
198,
437,
4871,
13,
198,
4871,
300,
23047,
62,
12417,
7822,
13,
198,
220,
2446,
1332,
13,
198,
220,
649,
1976,
565,
62,
952,
62,
1891,
437,
62,
38272,
7,
29472,
796,
10148,
1267,
3784,
259,
62,
5239,
62,
14171,
7,
1267,
3784,
1640,
62,
15414,
7,
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
] |
CLASS /dmo/cl_travel_auxiliary11 DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
* Type definition for import parameters --------------------------
TYPES tt_travel_create TYPE TABLE FOR CREATE /dmo/i_travel_u11.
TYPES tt_travel_update TYPE TABLE FOR UPDATE /dmo/i_travel_u11.
TYPES tt_travel_delete TYPE TABLE FOR DELETE /dmo/i_travel_u11.
TYPES tt_travel_failed TYPE TABLE FOR FAILED /dmo/i_travel_u11.
TYPES tt_travel_mapped TYPE TABLE FOR MAPPED /dmo/i_travel_u11.
TYPES tt_travel_reported TYPE TABLE FOR REPORTED /dmo/i_travel_u11.
TYPES tt_booking_create TYPE TABLE FOR CREATE /dmo/i_booking_u11.
TYPES tt_booking_update TYPE TABLE FOR UPDATE /dmo/i_booking_u11.
TYPES tt_booking_delete TYPE TABLE FOR DELETE /dmo/i_booking_u11.
TYPES tt_booking_failed TYPE TABLE FOR FAILED /dmo/i_booking_u11.
TYPES tt_booking_mapped TYPE TABLE FOR MAPPED /dmo/i_booking_u11.
TYPES tt_booking_reported TYPE TABLE FOR REPORTED /dmo/i_booking_u11.
TYPES tt_bookingsupplement_failed TYPE TABLE FOR FAILED /dmo/i_bookingsupplement_u11.
TYPES tt_bookingsupplement_mapped TYPE TABLE FOR MAPPED /dmo/i_bookingsupplement_u11.
TYPES tt_bookingsupplement_reported TYPE TABLE FOR REPORTED /dmo/i_bookingsupplement_u11.
CLASS-METHODS map_travel_cds_to_db
IMPORTING is_i_travel_u TYPE /dmo/i_travel_u11
RETURNING VALUE(rs_travel) TYPE /dmo/if_flight_legacy11=>ts_travel_in.
CLASS-METHODS map_travel_message
IMPORTING iv_cid TYPE string OPTIONAL
iv_travel_id TYPE /dmo/travel_id11 OPTIONAL
is_message TYPE LINE OF /dmo/if_flight_legacy11=>tt_message
RETURNING VALUE(rs_report) TYPE LINE OF tt_travel_reported.
CLASS-METHODS map_booking_cds_to_db
IMPORTING is_i_booking TYPE /dmo/i_booking_u11
RETURNING VALUE(rs_booking) TYPE /dmo/if_flight_legacy11=>ts_booking_in.
CLASS-METHODS map_booking_message
IMPORTING iv_cid TYPE string OPTIONAL
iv_travel_id TYPE /dmo/travel_id11 OPTIONAL
iv_booking_id TYPE /dmo/booking_id11 OPTIONAL
is_message TYPE LINE OF /dmo/if_flight_legacy11=>tt_message
RETURNING VALUE(rs_report) TYPE LINE OF tt_booking_reported.
CLASS-METHODS map_bookingsupplemnt_cds_to_db
IMPORTING is_i_bookingsupplement TYPE /dmo/i_bookingsupplement_u11
RETURNING VALUE(rs_bookingsupplement) TYPE /dmo/if_flight_legacy11=>ts_booking_supplement_in.
CLASS-METHODS map_bookingsupplemnt_message
IMPORTING iv_cid TYPE string OPTIONAL
iv_travel_id TYPE /dmo/travel_id11 OPTIONAL
iv_booking_id TYPE /dmo/booking_id11 OPTIONAL
iv_bookingsupplement_id TYPE /dmo/booking_supplement_id11 OPTIONAL
is_message TYPE LINE OF /dmo/if_flight_legacy11=>tt_message
RETURNING VALUE(rs_report) TYPE LINE OF tt_bookingsupplement_reported.
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-METHODS new_message
IMPORTING id TYPE symsgid
number TYPE symsgno
severity TYPE if_abap_behv_message=>t_severity
v1 TYPE simple OPTIONAL
v2 TYPE simple OPTIONAL
v3 TYPE simple OPTIONAL
v4 TYPE simple OPTIONAL
RETURNING VALUE(obj) TYPE REF TO if_abap_behv_message .
ENDCLASS.
CLASS /dmo/cl_travel_auxiliary11 IMPLEMENTATION.
METHOD map_travel_cds_to_db.
rs_travel = CORRESPONDING #( is_i_travel_u MAPPING travel_id = travelid
agency_id = agencyid
customer_id = customerid
begin_date = begindate
end_date = enddate
booking_fee = bookingfee
total_price = totalprice
currency_code = currencycode
description = memo
status = status ).
ENDMETHOD.
METHOD map_travel_message.
DATA(lo) = new_message( id = is_message-msgid
number = is_message-msgno
severity = if_abap_behv_message=>severity-error
v1 = is_message-msgv1
v2 = is_message-msgv2
v3 = is_message-msgv3
v4 = is_message-msgv4 ).
rs_report-%cid = iv_cid.
rs_report-travelid = iv_travel_id.
rs_report-%msg = lo.
ENDMETHOD.
METHOD map_booking_cds_to_db.
rs_booking = CORRESPONDING #( is_i_booking MAPPING booking_id = bookingid
booking_date = bookingdate
customer_id = customerid
carrier_id = airlineid
connection_id = connectionid
flight_date = flightdate
flight_price = flightprice
currency_code = currencycode ).
ENDMETHOD.
METHOD map_booking_message.
DATA(lo) = new_message( id = is_message-msgid
number = is_message-msgno
severity = if_abap_behv_message=>severity-error
v1 = is_message-msgv1
v2 = is_message-msgv2
v3 = is_message-msgv3
v4 = is_message-msgv4 ).
rs_report-%cid = iv_cid.
rs_report-travelid = iv_travel_id.
rs_report-bookingid = iv_booking_id.
rs_report-%msg = lo.
ENDMETHOD.
METHOD map_bookingsupplemnt_cds_to_db.
rs_bookingsupplement = CORRESPONDING #( is_i_bookingsupplement MAPPING booking_id = bookingid
booking_supplement_id = bookingsupplementid
supplement_id = supplementid
price = price
currency_code = currencycode ).
ENDMETHOD.
METHOD map_bookingsupplemnt_message.
DATA(lo) = new_message( id = is_message-msgid
number = is_message-msgno
severity = if_abap_behv_message=>severity-error
v1 = is_message-msgv1
v2 = is_message-msgv2
v3 = is_message-msgv3
v4 = is_message-msgv4 ).
rs_report-%cid = iv_cid.
rs_report-travelid = iv_travel_id.
rs_report-bookingid = iv_booking_id.
rs_report-bookingSupplementid = iv_bookingsupplement_id.
rs_report-%msg = lo.
ENDMETHOD.
METHOD new_message.
obj = NEW lcl_abap_behv_msg(
textid = VALUE #(
msgid = id
msgno = number
attr1 = COND #( WHEN v1 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV1' )
attr2 = COND #( WHEN v2 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV2' )
attr3 = COND #( WHEN v3 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV3' )
attr4 = COND #( WHEN v4 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV4' )
)
msgty = SWITCH #( severity
WHEN if_abap_behv_message=>severity-error THEN 'E'
WHEN if_abap_behv_message=>severity-warning THEN 'W'
WHEN if_abap_behv_message=>severity-information THEN 'I'
WHEN if_abap_behv_message=>severity-success THEN 'S' )
msgv1 = |{ v1 }|
msgv2 = |{ v2 }|
msgv3 = |{ v3 }|
msgv4 = |{ v4 }|
).
obj->m_severity = severity.
ENDMETHOD.
ENDCLASS.
| [
31631,
1220,
67,
5908,
14,
565,
62,
35927,
62,
14644,
28129,
1157,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
198,
198,
5105,
32936,
44513,
13,
628,
198,
9,
220,
220,
5994,
6770,
329,
1330,
10007,
220,
22369,
438,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
17953,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
29244,
6158,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
19119,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
35717,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
33678,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
5550,
2538,
9328,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
1157,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
47904,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
9677,
4146,
1961,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
76,
6320,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
337,
24805,
1961,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
26263,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
39099,
1961,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
1157,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
17953,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
29244,
6158,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
19119,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
35717,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
33678,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
5550,
2538,
9328,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
1157,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
47904,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
9677,
4146,
1961,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
76,
6320,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
337,
24805,
1961,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
26263,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
39099,
1961,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
1157,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
654,
7211,
1732,
62,
47904,
220,
220,
41876,
43679,
7473,
9677,
4146,
1961,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
654,
7211,
1732,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
654,
7211,
1732,
62,
76,
6320,
220,
220,
41876,
43679,
7473,
337,
24805,
1961,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
654,
7211,
1732,
62,
84,
1157,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
654,
7211,
1732,
62,
26263,
41876,
43679,
7473,
39099,
1961,
220,
1220,
67,
5908,
14,
72,
62,
2070,
654,
7211,
1732,
62,
84,
1157,
13,
628,
198,
220,
220,
220,
42715,
12,
49273,
50,
3975,
62,
35927,
62,
66,
9310,
62,
1462,
62,
9945,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
220,
220,
318,
62,
72,
62,
35927,
62,
84,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
1157,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
35927,
8,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
1157,
14804,
912,
62,
35927,
62,
259,
13,
628,
198,
220,
220,
220,
42715,
12,
49273,
50,
3975,
62,
35927,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
66,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
35927,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
35927,
62,
312,
1157,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
20500,
220,
220,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Subroutine pool /GAL/CFW_FORMS
*&---------------------------------------------------------------------*
*& This subroutine pool contains forms required by the Galileo
*& Communication Framework.
*&---------------------------------------------------------------------*
PROGRAM /gal/cfw_forms.
TYPE-POOLS abap.
INCLUDE /gal/cfw_macros. "#EC INCL_OK
*-----------------------------------------------------------------------
* Exception Handling: Raise classic exception (RFC_EXCEPTION only!)
*-----------------------------------------------------------------------
FORM cfw_raise_classic_exception USING p_exception_info TYPE /gal/exception_info
p_function_name TYPE string. "#EC CALLED
DATA __l_exception_info TYPE /gal/exception_info.
DATA __l_function_name TYPE string.
DATA __l_exception_part1 TYPE symsgv.
DATA __l_exception_part2 TYPE symsgv.
DATA __l_exception_part3 TYPE symsgv.
DATA __l_func_ex_info TYPE symsgv.
__l_exception_info = p_exception_info.
__l_function_name = p_function_name.
cfw_raise_exception rfc_exception. "#EC RAIS_NO_FB
ENDFORM. "cfw_raise_classic_exception
*-----------------------------------------------------------------------
* Exception Handling: Raise class based exception
*-----------------------------------------------------------------------
FORM cfw_raise_new_exception USING p_exception_info TYPE /gal/exception_info
p_function_name TYPE string
RAISING cx_static_check. "#EC CALLED
DATA l_exception TYPE REF TO cx_root.
IF p_exception_info-exception_type = 'C' AND p_exception_info-xml IS NOT INITIAL.
CALL TRANSFORMATION id
OPTIONS value_handling = 'default'
SOURCE XML p_exception_info-xml
RESULT exception = l_exception. "#EC NOTEXT
RAISE EXCEPTION l_exception.
ELSE.
IF p_exception_info-message_text IS NOT INITIAL.
RAISE EXCEPTION TYPE /gal/cx_cfw_exception
EXPORTING
textid = /gal/cx_cfw_exception=>custom_exception
var1 = p_exception_info-message_text.
ELSE.
RAISE EXCEPTION TYPE /gal/cx_cfw_exception
EXPORTING
textid = /gal/cx_cfw_exception=>unknown_classic_exception
var1 = p_exception_info-exception_name
var2 = p_function_name.
ENDIF.
ENDIF.
ENDFORM. "cfw_raise_new_exception
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
3834,
81,
28399,
5933,
220,
220,
1220,
38,
1847,
14,
22495,
54,
62,
13775,
5653,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
770,
850,
81,
28399,
5933,
4909,
5107,
2672,
416,
262,
45860,
198,
9,
5,
26117,
25161,
13,
198,
9,
5,
10097,
30934,
9,
198,
198,
4805,
7730,
24115,
1220,
13528,
14,
12993,
86,
62,
23914,
13,
198,
198,
25216,
12,
16402,
3535,
50,
450,
499,
13,
198,
198,
1268,
5097,
52,
7206,
1220,
13528,
14,
12993,
86,
62,
20285,
4951,
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,
25113,
2943,
3268,
5097,
62,
11380,
198,
198,
9,
10097,
26866,
198,
9,
35528,
49500,
25,
35123,
6833,
6631,
357,
41150,
62,
6369,
42006,
2849,
691,
8133,
198,
9,
10097,
26866,
198,
21389,
30218,
86,
62,
40225,
62,
49421,
62,
1069,
4516,
1294,
2751,
279,
62,
1069,
4516,
62,
10951,
41876,
1220,
13528,
14,
1069,
4516,
62,
10951,
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,
279,
62,
8818,
62,
3672,
220,
41876,
4731,
13,
25113,
2943,
42815,
1961,
628,
220,
42865,
11593,
75,
62,
1069,
4516,
62,
10951,
220,
41876,
1220,
13528,
14,
1069,
4516,
62,
10951,
13,
198,
220,
42865,
11593,
75,
62,
8818,
62,
3672,
220,
220,
41876,
4731,
13,
628,
220,
42865,
11593,
75,
62,
1069,
4516,
62,
3911,
16,
41876,
827,
19662,
85,
13,
198,
220,
42865,
11593,
75,
62,
1069,
4516,
62,
3911,
17,
41876,
827,
19662,
85,
13,
198,
220,
42865,
11593,
75,
62,
1069,
4516,
62,
3911,
18,
41876,
827,
19662,
85,
13,
198,
220,
42865,
11593,
75,
62,
20786,
62,
1069,
62,
10951,
220,
220,
220,
41876,
827,
19662,
85,
13,
628,
220,
11593,
75,
62,
1069,
4516,
62,
10951,
796,
279,
62,
1069,
4516,
62,
10951,
13,
198,
220,
11593,
75,
62,
8818,
62,
3672,
220,
796,
279,
62,
8818,
62,
3672,
13,
628,
220,
30218,
86,
62,
40225,
62,
1069,
4516,
374,
16072,
62,
1069,
4516,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
17926,
1797,
62,
15285,
62,
26001,
198,
1677,
8068,
1581,
44,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
12993,
86,
62,
40225,
62,
49421,
62,
1069,
4516,
198,
198,
9,
10097,
26866,
198,
9,
35528,
49500,
25,
35123,
1398,
1912,
6631,
198,
9,
10097,
26866,
198,
21389,
30218,
86,
62,
40225,
62,
3605,
62,
1069,
4516,
1294,
2751,
279,
62,
1069,
4516,
62,
10951,
41876,
1220,
13528,
14,
1069,
4516,
62,
10951,
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,
279,
62,
8818,
62,
3672,
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,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
42815,
1961,
628,
220,
42865,
300,
62,
1069,
4516,
41876,
4526,
37,
5390,
43213,
62,
15763,
13,
628,
220,
16876,
279,
62,
1069,
4516,
62,
10951,
12,
1069,
4516,
62,
4906,
796,
705,
34,
6,
5357,
279,
62,
1069,
4516,
62,
10951,
12,
19875,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
42815,
44069,
35036,
4686,
198,
220,
220,
220,
220,
220,
220,
220,
220,
39852,
11053,
220,
220,
220,
1988,
62,
4993,
1359,
796,
705,
12286,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
311,
31033,
23735,
279,
62,
1069,
4516,
62,
10951,
12,
19875,
198,
220,
220,
220,
220,
220,
220,
220,
220,
15731,
16724,
220,
220,
220,
220,
6631,
220,
220,
220,
220,
220,
796,
300,
62,
1069,
4516,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
17926,
24352,
7788,
42006,
2849,
300,
62,
1069,
4516,
13,
198,
220,
17852,
5188,
13,
198,
220,
220,
220,
16876,
279,
62,
1069,
4516,
62,
10951,
12,
20500,
62,
5239,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
17926,
24352,
7788,
42006,
2849,
41876,
1220,
13528,
14,
66,
87,
62,
12993,
86,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
312,
796,
1220,
13528,
14,
66,
87,
62,
12993,
86,
62,
1069,
4516,
14804,
23144,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1401,
16,
220,
220,
796,
279,
62,
1069,
4516,
62,
10951,
12,
20500,
62,
5239,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
17926,
24352,
7788,
42006,
2849,
41876,
1220,
13528,
14,
66,
87,
62,
12993,
86,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
312,
796,
1220,
13528,
14,
66,
87,
62,
12993,
86,
62,
1069,
4516,
14804,
34680,
62,
49421,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1401,
16,
220,
220,
796,
279,
62,
1069,
4516,
62,
10951,
12,
1069,
4516,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1401,
17,
220,
220,
796,
279,
62,
8818,
62,
3672,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
5064,
13,
198,
1677,
8068,
1581,
44,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
12993,
86,
62,
40225,
62,
3605,
62,
1069,
4516,
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,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SECTION.
PRIVATE SECTION.
METHODS check_is_local
RETURNING
VALUE(rv_is_local) TYPE abap_bool .
METHODS get_application_id
RETURNING
VALUE(rv_application_id) TYPE fdt_admn_0000s-application_id .
METHODS before_xml_deserialize
IMPORTING
!iv_package TYPE devclass
EXPORTING
!ev_create TYPE abap_bool
!ev_is_local TYPE abap_bool
CHANGING
!co_dom_tree TYPE REF TO if_ixml_document
RAISING
zcx_abapgit_exception .
METHODS filter_xml_serialize
CHANGING
!co_ixml_element TYPE REF TO if_ixml_element
RAISING
zcx_abapgit_exception .
METHODS set_field
IMPORTING
!iv_name TYPE string
!iv_value TYPE string DEFAULT ''
CHANGING
!co_ixml_element TYPE REF TO if_ixml_element
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_FDT0 IMPLEMENTATION.
METHOD before_xml_deserialize.
DATA lv_application_id TYPE fdt_admn_0000s-application_id.
DATA lv_timestamp TYPE timestamp.
DATA lv_transport TYPE string.
DATA lv_dlvunit TYPE tdevc-dlvunit.
DATA lo_node_local TYPE REF TO if_ixml_element.
DATA lo_node_package TYPE REF TO if_ixml_element.
DATA lo_node_id TYPE REF TO if_ixml_element.
DATA lo_xml_element TYPE REF TO if_ixml_element.
DATA lv_count TYPE i.
lo_node_local = co_dom_tree->find_from_name( name = 'Local'
namespace = 'FDTNS' ).
IF lo_node_local IS BOUND.
ev_is_local = lo_node_local->get_value( ).
ENDIF.
lo_node_package = co_dom_tree->find_from_name(
name = 'DevelopmentPackage'
namespace = 'FDTNS' ).
IF lo_node_package IS BOUND.
lo_node_package->set_value( value = |{ iv_package }| ).
ENDIF.
lo_node_id = co_dom_tree->find_from_name(
name = 'ApplicationId'
namespace = 'FDTNS' ).
IF lo_node_id IS BOUND.
lv_application_id = lo_node_id->get_value( ).
SELECT COUNT( * ) FROM fdt_admn_0000s INTO lv_count
WHERE object_type = 'AP'
AND id = lv_application_id
AND deleted = ''.
ev_create = xsdbool( lv_count = 0 ).
ENDIF.
" Fill in user/time/system-specific fields
GET TIME STAMP FIELD lv_timestamp.
lv_transport = |${ sy-sysid }0000000000000001|.
lo_xml_element = co_dom_tree->get_root_element( ).
IF ev_create = abap_true.
set_field(
EXPORTING
iv_name = 'CreationUser'
iv_value = |{ sy-uname }|
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'CreationTimestamp'
iv_value = |{ lv_timestamp }|
CHANGING
co_ixml_element = lo_xml_element ).
ENDIF.
set_field(
EXPORTING
iv_name = 'ChangeUser'
iv_value = |{ sy-uname }|
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'ChangeTimestamp'
iv_value = |{ lv_timestamp }|
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'User'
iv_value = |{ sy-uname }|
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'Timestamp'
iv_value = |{ lv_timestamp }|
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'Trrequest'
iv_value = lv_transport
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'Trversion'
iv_value = '000001'
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'Trtimestamp'
iv_value = |{ lv_timestamp }|
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'Trsysid'
iv_value = |{ sy-sysid }|
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'Trclient'
iv_value = |{ sy-mandt }|
CHANGING
co_ixml_element = lo_xml_element ).
set_field(
EXPORTING
iv_name = 'OversId'
iv_value = |{ lv_application_id }|
CHANGING
co_ixml_element = lo_xml_element ).
SELECT SINGLE dlvunit FROM tdevc INTO lv_dlvunit WHERE devclass = iv_package.
IF sy-subrc = 0.
set_field(
EXPORTING
iv_name = 'SoftwareComponent'
iv_value = |{ lv_dlvunit }|
CHANGING
co_ixml_element = lo_xml_element ).
ENDIF.
lo_xml_element->set_attribute(
name = 'Client'
value = |{ sy-mandt }| ).
lo_xml_element->set_attribute(
name = 'Date'
value = |{ sy-datum }| ).
lo_xml_element->set_attribute(
name = 'SAPRelease'
value = |{ sy-saprl }| ).
lo_xml_element->set_attribute(
name = 'Server'
value = |{ sy-host }| ).
lo_xml_element->set_attribute(
name = 'SourceExportReqID'
value = lv_transport ).
lo_xml_element->set_attribute(
name = 'SystemID'
value = |{ sy-sysid }| ).
lo_xml_element->set_attribute(
name = 'Time'
value = |{ sy-uzeit }| ).
lo_xml_element->set_attribute(
name = 'User'
value = |{ sy-uname }| ).
ENDMETHOD.
METHOD check_is_local.
SELECT SINGLE local_object FROM fdt_admn_0000s INTO rv_is_local
WHERE object_type = 'AP'
AND name = ms_item-obj_name.
ENDMETHOD.
METHOD filter_xml_serialize.
DATA lo_components_node TYPE REF TO if_ixml_element.
lo_components_node = co_ixml_element->find_from_name( name = 'ComponentReleases'
namespace = 'FDTNS' ).
IF lo_components_node IS BOUND.
co_ixml_element->remove_child( old_child = lo_components_node ).
ENDIF.
" Clear user/time/system-specific fields
set_field(
EXPORTING
iv_name = 'CreationUser'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'CreationTimestamp'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'ChangeUser'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'ChangeTimestamp'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'User'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'Timestamp'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'Trrequest'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'Trversion'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'Trtimestamp'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'Trsysid'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'Trclient'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'OversId'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'SoftwareComponent'
CHANGING
co_ixml_element = co_ixml_element ).
set_field(
EXPORTING
iv_name = 'DevelopmentPackage'
CHANGING
co_ixml_element = co_ixml_element ).
" Clear attributes of root FDTNS:Fdt node
co_ixml_element->set_attribute(
name = 'Client'
value = '' ).
co_ixml_element->set_attribute(
name = 'Date'
value = '' ).
co_ixml_element->set_attribute(
name = 'SAPRelease'
value = '' ).
co_ixml_element->set_attribute(
name = 'Server'
value = '' ).
co_ixml_element->set_attribute(
name = 'SourceExportReqID'
value = '' ).
co_ixml_element->set_attribute(
name = 'SystemID'
value = '' ).
co_ixml_element->set_attribute(
name = 'Time'
value = '' ).
co_ixml_element->set_attribute(
name = 'User'
value = '' ).
ENDMETHOD.
METHOD get_application_id.
SELECT SINGLE application_id FROM fdt_admn_0000s INTO rv_application_id
WHERE object_type = 'AP'
AND name = ms_item-obj_name.
ENDMETHOD.
METHOD set_field.
DATA:
lo_node_collection TYPE REF TO if_ixml_node_collection,
lo_node TYPE REF TO if_ixml_node,
lv_index TYPE i.
lo_node_collection = co_ixml_element->get_elements_by_tag_name(
namespace = 'FDTNS'
name = iv_name ).
lv_index = 0.
WHILE lv_index < lo_node_collection->get_length( ).
lo_node = lo_node_collection->get_item( lv_index ).
lo_node->set_value( iv_value ).
lv_index = lv_index + 1.
ENDWHILE.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
DATA lv_ch_user TYPE fdt_admn_0000s-ch_user.
SELECT SINGLE ch_user FROM fdt_admn_0000s INTO lv_ch_user
WHERE object_type = 'AP'
AND name = ms_item-obj_name.
rv_user = lv_ch_user.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA lv_is_local TYPE abap_bool.
DATA lv_ordernum TYPE trkorr.
DATA lt_application_id TYPE TABLE OF fdt_admn_0000s-application_id.
DATA ls_object_category_sel TYPE if_fdt_query=>s_object_category_sel.
DATA lv_failure TYPE abap_bool.
DATA lx_fdt_input TYPE REF TO cx_fdt_input.
lv_is_local = check_is_local( ).
IF lv_is_local = abap_false.
lv_ordernum = zcl_abapgit_default_transport=>get_instance( )->get( )-ordernum.
ENDIF.
SELECT application_id FROM fdt_admn_0000s INTO TABLE lt_application_id
WHERE object_type = 'AP'
AND name = ms_item-obj_name.
ls_object_category_sel-system_objects = 'X'.
TRY.
IF lv_is_local = abap_true.
cl_fdt_delete_handling=>mark_for_delete_via_job(
EXPORTING
is_object_category_sel = ls_object_category_sel
ita_application_id = lt_application_id
iv_background = abap_true
iv_local_option = '1'
iv_appl_transported_option = '2'
iv_obj_transported_option = '2'
IMPORTING
ev_failure = lv_failure ).
IF lv_failure IS INITIAL.
cl_fdt_delete_handling=>delete_logical_via_job(
EXPORTING
is_object_category_sel = ls_object_category_sel
ita_application_id = lt_application_id
iv_retention_time = 0
iv_background = abap_true
iv_local_option = '1'
iv_appl_transported_option = '2'
iv_obj_transported_option = '2'
IMPORTING
ev_failure = lv_failure ).
IF lv_failure IS INITIAL.
cl_fdt_delete_handling=>delete_physical_via_job(
EXPORTING
is_object_category_sel = ls_object_category_sel
ita_application_id = lt_application_id
iv_retention_time = 0
iv_background = abap_true
iv_local_option = '1'
iv_appl_transported_option = '2'
IMPORTING
ev_failure = lv_failure ).
ENDIF.
ENDIF.
ELSE.
cl_fdt_delete_handling=>mark_for_delete_via_job(
EXPORTING
is_object_category_sel = ls_object_category_sel
ita_application_id = lt_application_id
iv_background = abap_true
iv_local_option = '2'
iv_appl_transported_option = '1'
iv_obj_transported_option = '1'
IMPORTING
ev_failure = lv_failure ).
IF lv_failure IS INITIAL.
cl_fdt_delete_handling=>delete_logical_via_job(
EXPORTING
is_object_category_sel = ls_object_category_sel
ita_application_id = lt_application_id
iv_retention_time = 0
iv_background = abap_true
iv_local_option = '2'
iv_appl_transported_option = '1'
iv_obj_transported_option = '1'
IMPORTING
ev_failure = lv_failure ).
IF lv_failure IS INITIAL.
cl_fdt_delete_handling=>delete_physical_via_job(
EXPORTING
is_object_category_sel = ls_object_category_sel
ita_application_id = lt_application_id
iv_retention_time = 0
iv_background = abap_true
iv_local_option = '2'
iv_appl_transported_option = '1'
IMPORTING
ev_failure = lv_failure ).
ENDIF.
ENDIF.
ENDIF.
IF lv_failure = abap_true.
zcx_abapgit_exception=>raise( |Error deleting { ms_item-obj_type } { ms_item-obj_name }| ).
ENDIF.
CATCH cx_fdt_input INTO lx_fdt_input.
zcx_abapgit_exception=>raise_with_text( lx_fdt_input ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA lo_dexc TYPE REF TO if_fdt_data_exchange.
DATA lx_fdt_input TYPE REF TO cx_fdt_input.
DATA lo_dom_tree TYPE REF TO if_ixml_document.
DATA lv_is_local TYPE abap_bool.
DATA lv_ordernum TYPE trkorr.
DATA lt_message TYPE if_fdt_types=>t_message.
DATA lv_create TYPE abap_bool.
FIELD-SYMBOLS <ls_message> TYPE if_fdt_types=>s_message.
lo_dom_tree = io_xml->get_raw( ).
before_xml_deserialize(
EXPORTING
iv_package = iv_package
IMPORTING
ev_create = lv_create
ev_is_local = lv_is_local
CHANGING
co_dom_tree = lo_dom_tree ).
lo_dexc = cl_fdt_factory=>if_fdt_factory~get_instance( )->get_data_exchange( ).
TRY.
IF lv_is_local = abap_true. "Local Object
lo_dexc->import_xml(
EXPORTING
io_dom_tree = lo_dom_tree
iv_create = lv_create
iv_activate = abap_true
iv_simulate = abap_false
IMPORTING
et_message = lt_message ).
ELSE. "Transportable Object
lv_ordernum = zcl_abapgit_default_transport=>get_instance( )->get( )-ordernum.
lo_dexc->import_xml(
EXPORTING
io_dom_tree = lo_dom_tree
iv_create = lv_create
iv_activate = abap_true
iv_simulate = abap_false
iv_workbench_trrequest = lv_ordernum
IMPORTING
et_message = lt_message ).
ENDIF.
LOOP AT lt_message ASSIGNING <ls_message>.
ii_log->add(
iv_msg = <ls_message>-text
iv_type = <ls_message>-msgty ).
ENDLOOP.
CATCH cx_fdt_input INTO lx_fdt_input.
zcx_abapgit_exception=>raise_with_text( lx_fdt_input ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA lv_count TYPE i.
SELECT COUNT( * ) FROM fdt_admn_0000s INTO lv_count
WHERE object_type = 'AP'
AND name = ms_item-obj_name
AND deleted = ''.
rv_bool = boolc( lv_count > 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
DATA lo_local_version_output TYPE REF TO zcl_abapgit_xml_output.
DATA lo_local_version_input TYPE REF TO zcl_abapgit_xml_input.
CREATE OBJECT lo_local_version_output.
zif_abapgit_object~serialize( lo_local_version_output ).
CREATE OBJECT lo_local_version_input EXPORTING iv_xml = lo_local_version_output->zif_abapgit_xml_output~render( ).
CREATE OBJECT ri_comparator TYPE zcl_abapgit_object_tabl_compar EXPORTING ii_local = lo_local_version_input.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
DATA lv_application_id TYPE fdt_admn_0000s-application_id.
DATA lx_fdt_input TYPE REF TO cx_fdt_input.
DATA lo_instance TYPE REF TO if_fdt_admin_data.
DATA lt_version TYPE if_fdt_admin_data=>ts_version.
DATA lv_index TYPE sy-tabix.
FIELD-SYMBOLS <ls_version> LIKE LINE OF lt_version.
lv_application_id = get_application_id( ).
TRY.
cl_fdt_factory=>get_instance_generic(
EXPORTING
iv_id = lv_application_id
IMPORTING
eo_instance = lo_instance ).
CATCH cx_fdt_input INTO lx_fdt_input.
zcx_abapgit_exception=>raise_with_text( lx_fdt_input ).
ENDTRY.
lo_instance->get_versions( IMPORTING ets_version = lt_version ).
lv_index = lines( lt_version ).
READ TABLE lt_version ASSIGNING <ls_version> INDEX lv_index.
rv_active = boolc( <ls_version>-state = 'A' ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
DATA lv_application_id TYPE string.
lv_application_id = get_application_id( ).
rv_is_locked = exists_a_lock_entry_for(
iv_lock_object = 'FDT_ENQUEUE_ID'
iv_argument = |$ST{ lv_application_id }| ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
DATA lv_application_id TYPE fdt_admn_0000s-application_id.
DATA lx_root TYPE REF TO cx_root.
DATA lo_fdt_wd TYPE REF TO if_fdt_wd_factory.
lv_application_id = get_application_id( ).
IF lv_application_id IS NOT INITIAL.
TRY.
lo_fdt_wd = cl_fdt_wd_factory=>if_fdt_wd_factory~get_instance( ).
lo_fdt_wd->get_ui_execution( )->execute_workbench( iv_id = lv_application_id ).
CATCH cx_root INTO lx_root.
zcx_abapgit_exception=>raise_with_text( lx_root ).
ENDTRY.
ELSE.
zcx_abapgit_exception=>raise( 'Could not open BRF+ Workbench' ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA lo_dexc TYPE REF TO if_fdt_data_exchange.
DATA lv_application_id TYPE fdt_admn_0000s-application_id.
DATA lx_fdt_input TYPE REF TO cx_fdt_input.
DATA lv_xml_fdt0_application TYPE string.
DATA lo_xml_document TYPE REF TO if_ixml_document.
DATA lo_xml_element TYPE REF TO if_ixml_element.
lv_application_id = get_application_id( ).
lo_dexc = cl_fdt_factory=>if_fdt_factory~get_instance( )->get_data_exchange( ).
TRY.
lo_dexc->export_xml_application(
EXPORTING
iv_application_id = lv_application_id
iv_schema = if_fdt_data_exchange=>gc_xml_schema_type_external
iv_xml_version = if_fdt_data_exchange=>gc_xml_version
IMPORTING
ev_string = lv_xml_fdt0_application ).
lo_xml_document = cl_ixml_80_20=>parse_to_document( stream_string = lv_xml_fdt0_application ).
lo_xml_element = lo_xml_document->get_root_element( ).
filter_xml_serialize( CHANGING co_ixml_element = lo_xml_element ).
io_xml->set_raw( lo_xml_element ).
CATCH cx_fdt_input INTO lx_fdt_input.
zcx_abapgit_exception=>raise_with_text( lx_fdt_input ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
16344,
83,
15,
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,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
62,
271,
62,
12001,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
271,
62,
12001,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
31438,
62,
312,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
31438,
62,
312,
8,
41876,
277,
28664,
62,
324,
10295,
62,
2388,
82,
12,
31438,
62,
312,
764,
198,
220,
220,
220,
337,
36252,
50,
878,
62,
19875,
62,
8906,
48499,
1096,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1990,
62,
17953,
220,
220,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1990,
62,
271,
62,
12001,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1073,
62,
3438,
62,
21048,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
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,
8106,
62,
19875,
62,
46911,
1096,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1073,
62,
844,
4029,
62,
30854,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
3245,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8367,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
5550,
38865,
10148,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1073,
62,
844,
4029,
62,
30854,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
37,
24544,
15,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
878,
62,
19875,
62,
8906,
48499,
1096,
13,
628,
220,
220,
220,
42865,
300,
85,
62,
31438,
62,
312,
41876,
277,
28664,
62,
324,
10295,
62,
2388,
82,
12,
31438,
62,
312,
13,
198,
220,
220,
220,
42865,
300,
85,
62,
16514,
27823,
41876,
41033,
13,
198,
220,
220,
220,
42865,
300,
85,
62,
7645,
634,
41876,
4731,
13,
198,
220,
220,
220,
42865,
300,
85,
62,
67,
6780,
20850,
41876,
256,
7959,
66,
12,
67,
6780,
20850,
13,
198,
220,
220,
220,
42865,
2376,
62,
17440,
62,
12001,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
13,
198,
220,
220,
220,
42865,
2376,
62,
17440,
62,
26495,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
13,
198,
220,
220,
220,
42865,
2376,
62,
17440,
62,
312,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
13,
198,
220,
220,
220,
42865,
2376,
62,
19875,
62,
30854,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
13,
198,
220,
220,
220,
42865,
300,
85,
62,
9127,
41876,
1312,
13,
628,
220,
220,
220,
2376,
62,
17440,
62,
12001,
796,
763,
62,
3438,
62,
21048,
3784,
19796,
62,
6738,
62,
3672,
7,
1438,
220,
220,
220,
220,
220,
796,
705,
14565,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25745,
796,
705,
37,
24544,
8035,
6,
6739,
628,
220,
220,
220,
16876,
2376,
62,
17440,
62,
12001,
3180,
347,
15919,
13,
198,
220,
220,
220,
220,
220,
819,
62,
271,
62,
12001,
796,
2376,
62,
17440,
62,
12001,
3784,
1136,
62,
8367,
7,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
2376,
62,
17440,
62,
26495,
796,
763,
62,
3438,
62,
21048,
3784,
19796,
62,
6738,
62,
3672,
7,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
796,
705,
41206,
27813,
6,
198,
220,
220,
220,
220,
220,
25745,
796,
705,
37,
24544,
8035,
6,
6739,
198,
220,
220,
220,
16876,
2376,
62,
17440,
62,
26495,
3180,
347,
15919,
13,
198,
220,
220,
220,
220,
220,
2376,
62,
17440,
62,
26495,
3784,
2617,
62,
8367,
7,
1988,
796,
930,
90,
21628,
62,
26495,
1782,
91,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
2376,
62,
17440,
62,
312,
796,
763,
62,
3438,
62,
21048,
3784,
19796,
62,
6738,
62,
3672,
7,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
796,
705,
23416,
7390,
6,
198,
220,
220,
220,
220,
220,
25745,
796,
705,
37,
24544,
8035,
6,
6739,
198,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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">Character set & Language Detector</p>
"!
CLASS zcl_csr_detector DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
TYPES:
BEGIN OF ty_charset_match,
text_in TYPE REF TO zcl_csr_input_text,
csr TYPE REF TO zcl_csr_super,
confidence TYPE i,
END OF ty_charset_match,
ty_charset_matches TYPE STANDARD TABLE OF ty_charset_match WITH DEFAULT KEY,
ty_csrecognizers TYPE STANDARD TABLE OF REF TO zcl_csr_super WITH DEFAULT KEY.
CLASS-DATA: csrecognizers TYPE ty_csrecognizers.
DATA: f_fresh_text_set TYPE abap_bool,
text_in TYPE REF TO zcl_csr_input_text,
f_strip_tags TYPE abap_bool VALUE abap_false ##NO_TEXT.
CLASS-METHODS class_constructor.
* METHODS set_recognizers .
METHODS constructor .
METHODS set_text
IMPORTING
!in TYPE xsequence .
METHODS set_strip_tags_flag .
METHODS get_strip_tags_flag .
METHODS set_declared_encoding .
METHODS get_detectable_count .
METHODS detect
RETURNING
VALUE(result) TYPE ty_charset_match .
METHODS detect_all
RETURNING
VALUE(results) TYPE ty_charset_matches .
METHODS get_charset_name .
CLASS-METHODS get_sap_language
IMPORTING
!iso_code TYPE laiso
RETURNING
VALUE(sap_language) TYPE sylangu .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_csr_detector IMPLEMENTATION.
METHOD constructor.
* set_recognizers( ).
CREATE OBJECT text_in.
ENDMETHOD.
METHOD detect.
DATA results TYPE ty_charset_matches.
results = detect_all( ).
READ TABLE results INDEX 1 INTO result.
ENDMETHOD.
METHOD detect_all.
DATA csr TYPE REF TO zcl_csr_super.
** int32_t detectResults;
DATA confidence TYPE i.
DATA i TYPE i.
DATA ls_result TYPE ty_charset_match.
DATA lt_result TYPE ty_charset_matches.
CLEAR results.
IF text_in IS INITIAL.
" RAISE EXCEPTION TYPE U_MISSING_RESOURCE_ERROR;// TODO: Need to set proper status code for input text not set
ELSEIF f_fresh_text_set = abap_true.
text_in->munge_input( f_strip_tags ).
*
* // Iterate over all possible charsets, remember all that
* // give a match quality > 0.
* result_Count = 0.
i = 0.
LOOP AT csrecognizers INTO csr.
confidence = csr->match( text_in ).
IF confidence > 0.
ls_result-text_in = text_in.
ls_result-csr = csr.
ls_result-confidence = confidence.
APPEND ls_result TO results.
* resultArray[ resultCount++ ]->set(textIn, csr, confidence);
ENDIF.
ENDLOOP.
SORT results BY confidence DESCENDING.
* for(i = resultCount; i < fCSRecognizers_size; i += 1) {
* resultArray[i]->set(textIn, 0, 0);
* }
*
* uprv_sortArray(resultArray, resultCount, sizeof resultArray[0], charsetMatchComparator, NULL, TRUE, &status);
*
** // Remove duplicate charsets from the results.
** // Simple minded, brute force approach - check each entry against all that follow.
** // The first entry of any duplicated set is the one that should be kept because it will
** // be the one with the highest confidence rating.
** // (Duplicate matches have different languages, only the charset is the same)
** // Because the resultArray contains preallocated CharsetMatch objects, they aren't actually
** // deleted, just reordered, with the unwanted duplicates placed after the good results.
* int32_t j, k;
* for (i=0; i<resultCount; i++) {
* const char *charSetName = resultArray[i]->getName();
* for (j=i+1; j<resultCount; ) {
* if (uprv_strcmp(charSetName, resultArray[j]->getName()) != 0) {
** // Not a duplicate.
* j++;
* } else {
** // Duplicate entry at index j.
* CharsetMatch *duplicate = resultArray[j];
* for (k=j; k<resultCount-1; k++) {
* resultArray[k] = resultArray[k+1];
* }
* resultCount--;
* resultArray[resultCount] = duplicate;
* }
* }
* }
*
f_fresh_text_set = abap_false.
ENDIF.
*
* maxMatchesFound = resultCount;
*
* return resultArray;
ENDMETHOD.
METHOD get_charset_name.
ENDMETHOD.
METHOD get_detectable_count.
ENDMETHOD.
METHOD get_sap_language.
CALL FUNCTION 'LANGUAGE_CODE_ISO_TO_SAP'
EXPORTING
iso_code = iso_code
IMPORTING
sap_code = sap_language
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
" TODO
ENDIF.
ENDMETHOD.
METHOD get_strip_tags_flag.
ENDMETHOD.
METHOD set_declared_encoding.
ENDMETHOD.
METHOD class_constructor."set_recognizers.
csrecognizers = VALUE #(
( NEW zcl_csr_utf8( ) )
( NEW zcl_csr_utf_16_be( ) )
( NEW zcl_csr_utf_16_le( ) )
( NEW zcl_csr_utf_32_be( ) )
( NEW zcl_csr_utf_32_le( ) )
( NEW zcl_csr_8859_1_en( ) )
( NEW zcl_csr_8859_1_da( ) )
( NEW zcl_csr_8859_1_de( ) )
( NEW zcl_csr_8859_1_es( ) )
( NEW zcl_csr_8859_1_fr( ) )
( NEW zcl_csr_8859_1_it( ) )
( NEW zcl_csr_8859_1_nl( ) )
( NEW zcl_csr_8859_1_no( ) )
( NEW zcl_csr_8859_1_pt( ) )
( NEW zcl_csr_8859_1_sv( ) )
( NEW zcl_csr_8859_2_cs( ) )
( NEW zcl_csr_8859_2_hu( ) )
( NEW zcl_csr_8859_2_pl( ) )
( NEW zcl_csr_8859_2_ro( ) )
( NEW zcl_csr_8859_5_ru( ) )
( NEW zcl_csr_8859_6_ar( ) )
( NEW zcl_csr_8859_7_el( ) )
( NEW zcl_csr_8859_8_i_he( ) )
( NEW zcl_csr_8859_8_he( ) )
( NEW zcl_csr_8859_9_tr( ) )
( NEW zcl_csr_windows_1251( ) )
( NEW zcl_csr_windows_1256( ) )
( NEW zcl_csr_koi8_r( ) )
( NEW zcl_csr_ibm424_he_rtl( ) )
( NEW zcl_csr_ibm424_he_ltr( ) )
( NEW zcl_csr_ibm420_ar_rtl( ) )
( NEW zcl_csr_ibm420_ar_ltr( ) ) ).
* ( NEW zcl_csr_sjis( ) )
* ( NEW zcl_csr_gb_18030( ) )
* ( NEW zcl_csr_euc_jp( ) )
* ( NEW zcl_csr_euc_kr( ) )
* ( NEW zcl_csr_big5( ) )
* ( NEW zcl_csr_2022jp( ) )
* ( NEW zcl_csr_2022kr( ) )
* ( NEW zcl_csr_2022cn( ) )
LOOP AT csrecognizers INTO DATA(csr).
IF csr IS INSTANCE OF zcl_csr_sbcs.
TRY.
APPEND NEW zcl_csr_utf_16_sbcs( csr_sbcs = CAST #( csr ) big_endian = abap_true ) TO csrecognizers.
APPEND NEW zcl_csr_utf_16_sbcs( csr_sbcs = CAST #( csr ) big_endian = abap_false ) TO csrecognizers.
CATCH cx_parameter_invalid_range ##NO_HANDLER.
ENDTRY.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD set_strip_tags_flag.
ENDMETHOD.
METHOD set_text.
text_in->set_text( in ).
f_fresh_text_set = abap_true.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
27275,
900,
1222,
696,
26,
15417,
4614,
9250,
3556,
79,
29,
198,
40484,
198,
31631,
1976,
565,
62,
6359,
81,
62,
15255,
9250,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
354,
945,
316,
62,
15699,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
62,
259,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
6359,
81,
62,
15414,
62,
5239,
11,
198,
220,
220,
220,
220,
220,
220,
220,
269,
27891,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
6359,
81,
62,
16668,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6628,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
354,
945,
316,
62,
15699,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
354,
945,
316,
62,
6759,
2052,
41876,
49053,
9795,
43679,
3963,
1259,
62,
354,
945,
316,
62,
15699,
13315,
5550,
38865,
35374,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
6359,
26243,
11341,
220,
220,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
1976,
565,
62,
6359,
81,
62,
16668,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
42715,
12,
26947,
25,
50115,
26243,
11341,
41876,
1259,
62,
6359,
26243,
11341,
13,
198,
220,
220,
220,
42865,
25,
277,
62,
48797,
62,
5239,
62,
2617,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
62,
259,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
6359,
81,
62,
15414,
62,
5239,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
62,
36311,
62,
31499,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
26173,
8924,
450,
499,
62,
9562,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
1398,
62,
41571,
273,
13,
198,
9,
220,
220,
220,
337,
36252,
50,
900,
62,
26243,
11341,
764,
198,
220,
220,
220,
337,
36252,
50,
23772,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
5239,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
259,
41876,
2124,
43167,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
36311,
62,
31499,
62,
32109,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
36311,
62,
31499,
62,
32109,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
32446,
1144,
62,
12685,
7656,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
15255,
478,
540,
62,
9127,
764,
198,
220,
220,
220,
337,
36252,
50,
4886,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
1259,
62,
354,
945,
316,
62,
15699,
764,
198,
220,
220,
220,
337,
36252,
50,
4886,
62,
439,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
43420,
8,
41876,
1259,
62,
354,
945,
316,
62,
6759,
2052,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
354,
945,
316,
62,
3672,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
82,
499,
62,
16129,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
26786,
62,
8189,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
8591,
26786,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
82,
499,
62,
16129,
8,
41876,
827,
75,
2303,
764,
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,
6359,
81,
62,
15255,
9250,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
198,
9,
220,
220,
220,
900,
62,
26243,
11341,
7,
6739,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
2420,
62,
259,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
4886,
13,
628,
220,
220,
220,
42865,
2482,
41876,
1259,
62,
354,
945,
316,
62,
6759,
2052,
13,
198,
220,
220,
220,
2482,
796,
4886,
62,
439,
7,
6739,
198,
220,
220,
220,
20832,
43679,
2482,
24413,
6369,
352,
39319,
1255,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
4886,
62,
439,
13,
628,
220,
220,
220,
42865,
269,
27891,
41876,
4526,
37,
5390,
1976,
565,
62,
6359,
81,
62,
16668,
13,
198,
1174,
220,
220,
220,
220,
220,
220,
220,
493,
2624,
62,
83,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4886,
25468,
26,
198,
220,
220,
220,
42865,
6628,
41876,
1312,
13,
198,
220,
220,
220,
42865,
1312,
41876,
1312,
13,
198,
220,
220,
220,
42865,
43979,
62,
20274,
41876,
1259,
62,
354,
945,
316,
62,
15699,
13,
198,
220,
220,
220,
42865,
300,
83,
62,
20274,
41876,
1259,
62,
354,
945,
316,
62,
6759,
2052,
13,
628,
220,
220,
220,
30301,
1503,
2482,
13,
198,
220,
220,
220,
16876,
2420,
62,
259,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
366,
17926,
24352,
7788,
42006,
2849,
41876,
471,
62,
44,
16744,
2751,
62,
19535,
31033,
62,
24908,
26,
1003,
16926,
46,
25,
220,
10664,
284,
900,
1774,
3722,
2438,
329,
5128,
2420,
407,
900,
198,
220,
220,
220,
17852,
5188,
5064,
277,
62,
48797,
62,
5239,
62,
2617,
796,
450,
499,
62,
7942,
13,
628,
220,
220,
220,
220,
220,
2420,
62,
259,
3784,
6199,
469,
62,
15414,
7,
277,
62,
36311,
62,
31499,
6739,
198,
9,
198,
9,
220,
220,
220,
220,
220,
220,
220,
3373,
40806,
378,
625,
477,
1744,
34534,
1039,
11,
3505,
477,
326,
198,
9,
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
] |
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL.
PRIVATE SECTION.
METHODS: test FOR TESTING.
ENDCLASS. "ltcl_Test
CLASS ltcl_test IMPLEMENTATION.
METHOD test.
zcl_abappgp_unit_test=>subpacket_identity(
iv_data = 'A'
iv_type = zif_abappgp_constants=>c_sub_type-preferred_key_server ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
9288,
5550,
20032,
17941,
7473,
43001,
2751,
360,
4261,
6234,
6006,
9863,
45698,
42,
49277,
43638,
5805,
7597,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
1332,
7473,
43001,
2751,
13,
198,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
2528,
565,
62,
14402,
198,
198,
31631,
300,
83,
565,
62,
9288,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1332,
13,
628,
220,
220,
220,
1976,
565,
62,
397,
1324,
31197,
62,
20850,
62,
9288,
14804,
7266,
8002,
316,
62,
738,
414,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
7890,
796,
705,
32,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
4906,
796,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
66,
62,
7266,
62,
4906,
12,
3866,
18186,
62,
2539,
62,
15388,
6739,
628,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*----------------------------------------------------------------------*
* CLASS lcl_Test DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_test DEFINITION FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS
FINAL.
PRIVATE SECTION.
DATA:
mt_code TYPE string_table,
ms_result TYPE scirest_ad,
mo_check TYPE REF TO zcl_aoc_check_100.
METHODS:
setup,
export_import FOR TESTING,
inline_declarations_01 FOR TESTING,
inline_declarations_02 FOR TESTING,
inline_declarations_03 FOR TESTING,
inline_declarations_04 FOR TESTING,
inline_declarations_05 FOR TESTING,
inline_declarations_06 FOR TESTING,
constructor_operators_01 FOR TESTING,
constructor_operators_02 FOR TESTING,
constructor_operators_03 FOR TESTING,
constructor_operators_04 FOR TESTING,
constructor_operators_05 FOR TESTING,
constructor_operators_06 FOR TESTING,
constructor_operators_07 FOR TESTING,
constructor_operators_08 FOR TESTING,
constructor_operators_09 FOR TESTING,
constructor_operators_10 FOR TESTING,
constructor_operators_11 FOR TESTING,
iteration_expressions_01 FOR TESTING,
iteration_expressions_02 FOR TESTING,
string_templates_01 FOR TESTING,
string_templates_02 FOR TESTING,
string_templates_03 FOR TESTING,
builtin_functions_01 FOR TESTING,
builtin_functions_02 FOR TESTING,
table_expressions_01 FOR TESTING,
table_expressions_02 FOR TESTING,
abap_constants_01 FOR TESTING,
abap_constants_02 FOR TESTING,
abap_constants_03 FOR TESTING,
abap_constants_04 FOR TESTING,
pragmas_01 FOR TESTING,
pragmas_02 FOR TESTING,
pragmas_03 FOR TESTING,
pragmas_04 FOR TESTING,
chained_statements_01 FOR TESTING,
chained_statements_02 FOR TESTING,
assignment_operators_01 FOR TESTING,
assignment_operators_02 FOR TESTING,
assignment_operators_03 FOR TESTING,
assignment_operators_04 FOR TESTING,
assignment_operators_05 FOR TESTING.
ENDCLASS.
*----------------------------------------------------------------------*
* CLASS lcl_Test IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_test IMPLEMENTATION.
DEFINE _code.
APPEND &1 TO mt_code.
END-OF-DEFINITION.
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.
METHOD inline_declarations_01.
_code 'DATA(lv_date) = sy-datum.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-inline_declarations
act = ms_result-code ).
ENDMETHOD.
METHOD inline_declarations_02.
_code 'SELECT * FROM tcurc INTO TABLE @DATA(lt_tcurc) WHERE waers <> 0.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-inline_declarations
act = ms_result-code ).
ENDMETHOD.
METHOD inline_declarations_03.
_code 'lv_data = client->response->get_cdata( ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = abap_false
act = ms_result-code ).
ENDMETHOD.
METHOD inline_declarations_04.
_code 'READ TABLE lt_tcurc ASSIGNING FIELD-SYMBOL(<ls_xxx1>) WITH KEY waers = 1 BINARY SEARCH.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-inline_declarations
act = ms_result-code ).
ENDMETHOD.
METHOD inline_declarations_05.
_code 'ASSIGN sy-datum TO FIELD-SYMBOL(<lv_date>).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-inline_declarations
act = ms_result-code ).
ENDMETHOD.
METHOD inline_declarations_06.
_code 'LOOP AT lt_table ASSIGNING FIELD-SYMBOL(<ls_xxx>).'.
_code 'ENDLOOP.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-inline_declarations
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_01.
_code 'lv_new = NEW i( 555 ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_02.
_code 'lv_value = VALUE syst( datum = sy-datum uname = 12 ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_03.
_code 'lv_conv = CONV char10( 123456 ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_04.
_code 'lv_ref = REF #( sy-datum ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_05.
_code 'lv_corresponding = CORRESPONDING tcurt( ls_tcurc ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_06.
_code 'lv_exact = EXACT #( 3 * 3 ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_07.
_code 'lv_data = REDUCE i( INIT s = 0'.
_code 'i = 1 UNTIL i > 10'.
_code 'NEXT s = s + i ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_08.
_code 'lt_filter = FILTER #( messages EXCEPT WHERE sprsl = 12 )'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_09.
_code 'lv_cond = COND string('.
_code 'WHEN 1 < 2'.
_code 'THEN 333'.
_code 'ELSE 444 ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_10.
_code 'lv_switch = SWITCH #( sy-langu'.
_code 'WHEN 1 THEN 2'.
_code 'ELSE 3 ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD constructor_operators_11.
_code 'oref2 = CAST #( oref1 ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-constructor_operators
act = ms_result-code ).
ENDMETHOD.
METHOD iteration_expressions_01.
_code 'lv_data = ( FOR ls_emp_info IN lt_tcurc( ls_en_info-waers ) ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-iteration_expressions
act = ms_result-code ).
ENDMETHOD.
METHOD iteration_expressions_02.
_code 'LOOP AT spfli_tab INTO DATA(wa) GROUP BY wa-carrid.'.
_code 'ENDLOOP.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-iteration_expressions
act = ms_result-code ).
ENDMETHOD.
METHOD string_templates_01.
_code 'lv_string_template = |xxxxx xxxxxx|.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-string_templates
act = ms_result-code ).
ENDMETHOD.
METHOD string_templates_02.
_code 'lv_string_template = |Date: { sy-datum }|.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-string_templates
act = ms_result-code ).
ENDMETHOD.
METHOD string_templates_03.
_code 'lv_string_template = ''x1'' && ''x2''.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-string_templates
act = ms_result-code ).
ENDMETHOD.
METHOD builtin_functions_01.
_code 'lv_itab = line_index( itab ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-builtin_functions
act = ms_result-code ).
ENDMETHOD.
METHOD builtin_functions_02.
_code 'lv_itab = line_exists( itab ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-builtin_functions
act = ms_result-code ).
ENDMETHOD.
METHOD table_expressions_01.
_code 'ls_itab = lt_tcurc[ waers = 123 ].'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-table_expressions
act = ms_result-code ).
ENDMETHOD.
METHOD table_expressions_02.
_code 'ls_itab = lt_tcurc[ 1 ].'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-table_expressions
act = ms_result-code ).
ENDMETHOD.
METHOD abap_constants_01.
_code 'DATA lv_bool TYPE abap_bool VALUE IS INITIAL.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-abap_constants
act = ms_result-code ).
ENDMETHOD.
METHOD abap_constants_02.
_code 'DATA lv_true TYPE c VALUE abap_true.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-abap_constants
act = ms_result-code ).
ENDMETHOD.
METHOD abap_constants_03.
_code 'DATA lv_false TYPE c VALUE abap_false.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-abap_constants
act = ms_result-code ).
ENDMETHOD.
METHOD abap_constants_04.
_code 'DATA lv_undefined TYPE c VALUE abap_undefined.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-abap_constants
act = ms_result-code ).
ENDMETHOD.
METHOD pragmas_01.
_code 'text = ''Hello Pragmas'' ##no_text.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-pragmas
act = ms_result-code ).
ENDMETHOD.
METHOD pragmas_02.
_code 'DATA: text1 TYPE string ##needed,'.
_code 'text2 TYPE string ##needed.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-pragmas
act = ms_result-code ).
ENDMETHOD.
METHOD pragmas_03.
_code 'DATA ##needed: text3 TYPE string.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-pragmas
act = ms_result-code ).
ENDMETHOD.
METHOD pragmas_04.
_code 'text = ''Hello Pragmas''. ##no_text'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = abap_false
act = ms_result-code ).
ENDMETHOD.
METHOD chained_statements_01.
_code 'cl_demo_output=>new('.
_code ')->write_data(: `Text1` ), `Text2` ), num'.
_code ')->display( ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-chained_statements
act = ms_result-code ).
ENDMETHOD.
METHOD chained_statements_02.
_code 'cl_demo_output->new( )->write_data2321312(: `Text1` ), `Text2` ), num ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-chained_statements
act = ms_result-code ).
ENDMETHOD.
METHOD assignment_operators_01.
_code 'lv_data += 1.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-assignment_operators
act = ms_result-code ).
ENDMETHOD.
METHOD assignment_operators_02.
_code 'lv_data -= 1.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-assignment_operators
act = ms_result-code ).
ENDMETHOD.
METHOD assignment_operators_03.
_code 'lv_data *= 1.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-assignment_operators
act = ms_result-code ).
ENDMETHOD.
METHOD assignment_operators_04.
_code 'lv_data /= 1.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-assignment_operators
act = ms_result-code ).
ENDMETHOD.
METHOD assignment_operators_05.
_code 'lv_data &&= `hello`.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = mo_check->ci_error_code-assignment_operators
act = ms_result-code ).
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,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
45079,
62,
8189,
220,
220,
41876,
4731,
62,
11487,
11,
198,
220,
220,
220,
220,
220,
13845,
62,
20274,
41876,
629,
557,
301,
62,
324,
11,
198,
220,
220,
220,
220,
220,
6941,
62,
9122,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
64,
420,
62,
9122,
62,
3064,
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,
11,
198,
220,
220,
220,
220,
220,
26098,
62,
32446,
24355,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
26098,
62,
32446,
24355,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
26098,
62,
32446,
24355,
62,
3070,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
26098,
62,
32446,
24355,
62,
3023,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
26098,
62,
32446,
24355,
62,
2713,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
26098,
62,
32446,
24355,
62,
3312,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
3070,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
3023,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
2713,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
3312,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
2998,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
2919,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
2931,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
940,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23772,
62,
3575,
2024,
62,
1157,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
24415,
62,
42712,
507,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
24415,
62,
42712,
507,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
4731,
62,
11498,
17041,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
4731,
62,
11498,
17041,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
4731,
62,
11498,
17041,
62,
3070,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
3170,
259,
62,
12543,
2733,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
3170,
259,
62,
12543,
2733,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
3084,
62,
42712,
507,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
3084,
62,
42712,
507,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
450,
499,
62,
9979,
1187,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
450,
499,
62,
9979,
1187,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
450,
499,
62,
9979,
1187,
62,
3070,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
450,
499,
62,
9979,
1187,
62,
3023,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23864,
5356,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23864,
5356,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23864,
5356,
62,
3070,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
23864,
5356,
62,
3023,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
40682,
62,
14269,
3196,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
40682,
62,
14269,
3196,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
16237,
62,
3575,
2024,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
16237,
62,
3575,
2024,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
16237,
62,
3575,
2024,
62,
3070,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
16237,
62,
3575,
2024,
62,
3023,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
16237,
62,
3575,
2024,
62,
2713,
7473,
43001,
2751,
13,
198,
10619,
31631,
13,
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,
220,
23449,
8881,
4808,
8189,
13,
198,
220,
220,
220,
43504,
10619,
1222,
16,
5390,
45079,
62,
8189,
13,
198,
220,
23578,
12,
19238,
12,
7206,
20032,
17941,
13,
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,
628,
220,
337,
36252,
26098,
62,
32446,
24355,
62,
486,
13,
198,
220,
220,
220,
4808,
8189,
705,
26947,
7,
6780,
62,
4475,
8,
796,
827
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
"! <h1>API for Getting a Travel</h1>
"!
"! <p>
"! Function module to get a single Travel instance with all related Bookings and
"! Booking Supplements related to the importing Travel ID.
"! </p>
"!
"!
"! @parameter iv_travel_id | Travel ID
"! @parameter iv_include_buffer | Include any changes that have not yet been committed
"! @parameter es_travel | Travel Data like /DMO/TRAVEL14 related to the importing Travel ID
"! @parameter et_booking | Table of Bookings like /DMO/BOOKING14 related to the importing Travel ID
"! @parameter et_booking_supplement | Table of Booking Supplements like /DMO/BOOK_SUP_14 related to the importing Travel ID
"! @parameter et_messages | Table of occurred messages
"!
FUNCTION /DMO/FLIGHT_TRAVEL_READ14.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IV_TRAVEL_ID) TYPE /DMO/TRAVEL_ID14
*" REFERENCE(IV_INCLUDE_BUFFER) TYPE ABAP_BOOLEAN DEFAULT
*" ABAP_TRUE
*" EXPORTING
*" REFERENCE(ES_TRAVEL) TYPE /DMO/TRAVEL14
*" REFERENCE(ET_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY14=>TT_BOOKING
*" REFERENCE(ET_BOOKING_SUPPLEMENT) TYPE
*" /DMO/IF_FLIGHT_LEGACY14=>TT_BOOKING_SUPPLEMENT
*" REFERENCE(ET_MESSAGES) TYPE /DMO/IF_FLIGHT_LEGACY14=>TT_MESSAGE
*"----------------------------------------------------------------------
CLEAR es_travel.
CLEAR et_booking.
CLEAR et_booking_supplement.
CLEAR et_messages.
/dmo/cl_flight_legacy14=>get_instance( )->get_travel( EXPORTING iv_travel_id = iv_travel_id
iv_include_buffer = iv_include_buffer
IMPORTING es_travel = es_travel
et_booking = et_booking
et_booking_supplement = et_booking_supplement
et_messages = DATA(lt_messages) ).
/dmo/cl_flight_legacy14=>get_instance( )->convert_messages( EXPORTING it_messages = lt_messages
IMPORTING et_messages = et_messages ).
ENDFUNCTION.
| [
40484,
1279,
71,
16,
29,
17614,
329,
18067,
257,
13524,
3556,
71,
16,
29,
198,
40484,
198,
40484,
1279,
79,
29,
198,
40484,
15553,
8265,
284,
651,
257,
2060,
13524,
4554,
351,
477,
3519,
4897,
654,
290,
198,
40484,
4897,
278,
8105,
3639,
3519,
284,
262,
33332,
13524,
4522,
13,
198,
40484,
7359,
79,
29,
198,
40484,
198,
40484,
198,
40484,
2488,
17143,
2357,
21628,
62,
35927,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
13524,
4522,
198,
40484,
2488,
17143,
2357,
21628,
62,
17256,
62,
22252,
220,
220,
220,
220,
930,
40348,
597,
2458,
326,
423,
407,
1865,
587,
5364,
198,
40484,
2488,
17143,
2357,
1658,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
13524,
6060,
588,
1220,
35,
11770,
14,
51,
3861,
18697,
1415,
3519,
284,
262,
33332,
13524,
4522,
198,
40484,
2488,
17143,
2357,
2123,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
8655,
286,
4897,
654,
588,
1220,
35,
11770,
14,
39453,
2751,
1415,
3519,
284,
262,
33332,
13524,
4522,
198,
40484,
2488,
17143,
2357,
2123,
62,
2070,
278,
62,
18608,
1732,
930,
8655,
286,
4897,
278,
8105,
3639,
588,
1220,
35,
11770,
14,
39453,
62,
40331,
62,
1415,
3519,
284,
262,
33332,
13524,
4522,
198,
40484,
2488,
17143,
2357,
2123,
62,
37348,
1095,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
8655,
286,
5091,
6218,
198,
40484,
198,
42296,
4177,
2849,
1220,
35,
11770,
14,
3697,
9947,
62,
51,
3861,
18697,
62,
15675,
1415,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
14565,
26491,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
3824,
62,
51,
3861,
18697,
62,
2389,
8,
41876,
220,
1220,
35,
11770,
14,
51,
3861,
18697,
62,
2389,
1415,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
3824,
62,
1268,
5097,
52,
7206,
62,
19499,
45746,
8,
41876,
220,
9564,
2969,
62,
33,
6684,
2538,
1565,
5550,
38865,
198,
9,
1,
220,
220,
220,
220,
220,
220,
9564,
2969,
62,
5446,
8924,
198,
9,
1,
220,
7788,
15490,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
1546,
62,
51,
3861,
18697,
8,
41876,
220,
1220,
35,
11770,
14,
51,
3861,
18697,
1415,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2767,
62,
39453,
2751,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1415,
14804,
15751,
62,
39453,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2767,
62,
39453,
2751,
62,
40331,
16437,
10979,
8,
41876,
198,
9,
1,
220,
220,
220,
220,
220,
220,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1415,
14804,
15751,
62,
39453,
2751,
62,
40331,
16437,
10979,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2767,
62,
44,
1546,
4090,
48075,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1415,
14804,
15751,
62,
44,
1546,
4090,
8264,
198,
9,
1,
10097,
23031,
198,
220,
30301,
1503,
1658,
62,
35927,
13,
198,
220,
30301,
1503,
2123,
62,
2070,
278,
13,
198,
220,
30301,
1503,
2123,
62,
2070,
278,
62,
18608,
1732,
13,
198,
220,
30301,
1503,
2123,
62,
37348,
1095,
13,
628,
220,
1220,
67,
5908,
14,
565,
62,
22560,
62,
1455,
1590,
1415,
14804,
1136,
62,
39098,
7,
1267,
3784,
1136,
62,
35927,
7,
7788,
15490,
2751,
21628,
62,
35927,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
21628,
62,
35927,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
17256,
62,
22252,
220,
220,
220,
220,
796,
21628,
62,
17256,
62,
22252,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1658,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1658,
62,
35927,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
2123,
62,
2070,
278,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
2070,
278,
62,
18608,
1732,
796,
2123,
62,
2070,
278,
62,
18608,
1732,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
37348,
1095,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
42865,
7,
2528,
62,
37348,
1095,
8,
6739,
628,
220,
1220,
67,
5908,
14,
565,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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">Text Field Util for UI</p>
CLASS zcl_dbbr_text_field_ui_util DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor
IMPORTING
io_selection_util TYPE REF TO zcl_dbbr_selection_util.
"! <p class="shorttext synchronized" lang="en">Adds text field columns for selected columns</p>
METHODS add_text_field_columns.
"! <p class="shorttext synchronized" lang="en">Manages text field columns</p>
METHODS manage_text_field_columns.
"! <p class="shorttext synchronized" lang="en">Adds 'Add Text Field' function to context menu</p>
"!
"! @parameter it_selected_cols | <p class="shorttext synchronized" lang="en">List of selected columns</p>
"! @parameter it_fieldcat | <p class="shorttext synchronized" lang="en">ALV Field Catalog</p>
"! @parameter ct_menu_entries | <p class="shorttext synchronized" lang="en">List of context menu entries</p>
METHODS add_text_field_column_func
IMPORTING
!it_selected_cols TYPE lvc_t_col
!it_fieldcat TYPE lvc_t_fcat
CHANGING
!ct_menu_entries TYPE sctx_entrytab .
PROTECTED SECTION.
PRIVATE SECTION.
DATA mo_selection_util TYPE REF TO zcl_dbbr_selection_util.
"! <p class="shorttext synchronized" lang="en">Updates text fields in ALV</p>
"!
"! @parameter it_fields | <p class="shorttext synchronized" lang="en"></p>
METHODS update_field_status
IMPORTING
it_fields TYPE zif_dbbr_ty_global=>ty_t_text_field.
ENDCLASS.
CLASS ZCL_DBBR_TEXT_FIELD_UI_UTIL IMPLEMENTATION.
METHOD add_text_field_columns.
DATA: lf_new_text_field TYPE abap_bool.
DATA: lt_new_fields TYPE TABLE OF REF TO zdbbr_tabfield_info_ui.
DATA(lo_alv_grid) = mo_selection_util->mo_alv_grid.
DATA(lo_tabfields) = mo_selection_util->mo_tabfields.
*... Get columns for which text columns should be added
lo_alv_grid->get_selected_columns( IMPORTING et_index_columns = DATA(lt_cols) ).
lo_alv_grid->get_frontend_fieldcatalog( IMPORTING et_fieldcatalog = DATA(lt_fieldcat) ).
DATA(lt_text_field_config) = VALUE zif_dbbr_ty_global=>ty_t_text_field( ).
LOOP AT lt_cols ASSIGNING FIELD-SYMBOL(<ls_col>).
DATA(lr_field) = mo_selection_util->mo_tabfields->get_field_ref_by_alv_name( iv_alv_fieldname = <ls_col>-fieldname ).
CHECK lr_field->has_text_field = abap_true.
TRY.
DATA(lr_text_field) = lo_tabfields->get_field_ref(
iv_tabname_alias = lr_field->tabname_alias
iv_fieldname = lr_field->fieldname
if_is_text_field = abap_true
).
CATCH cx_sy_itab_line_not_found.
CONTINUE.
ENDTRY.
ASSIGN lt_fieldcat[ fieldname = <ls_col>-fieldname ] TO FIELD-SYMBOL(<ls_field>).
ASSIGN lt_fieldcat[ fieldname = lr_text_field->alv_fieldname ] TO FIELD-SYMBOL(<ls_existing_text_field>).
*.... check if it is already existing in the field catalog and only needs to be made visible
IF sy-subrc <> 0.
lf_new_text_field = abap_true.
lt_new_fields = VALUE #( BASE lt_new_fields ( lr_text_field ) ).
*...... Perform steps to make field visible and fill it with data
ENDIF.
lr_text_field->output_active = abap_true.
IF lr_text_field->output_order IS INITIAL.
lr_text_field->output_order = lr_field->output_order.
ENDIF.
lt_text_field_config = VALUE #( BASE lt_text_field_config
( alv_fieldname = lr_text_field->alv_fieldname
visible = abap_true
new_field = lf_new_text_field )
).
ENDLOOP.
update_field_status( it_fields = lt_text_field_config ).
ENDMETHOD.
METHOD add_text_field_column_func.
DATA: lf_add_text_fields TYPE abap_bool.
DATA(lo_tabfields) = mo_selection_util->mo_tabfields.
*.. Check if selected columns have associated text field
LOOP AT it_selected_cols ASSIGNING FIELD-SYMBOL(<ls_col>).
TRY.
DATA(lr_field) = lo_tabfields->get_field_ref_by_alv_name( iv_alv_fieldname = <ls_col>-fieldname ).
CATCH cx_sy_itab_line_not_found.
CONTINUE.
ENDTRY.
CHECK lr_field->has_text_field = abap_true.
*.... Check if the text field is invisible
TRY.
DATA(lr_text_field) = lo_tabfields->get_field_ref(
iv_tabname_alias = lr_field->tabname_alias
iv_fieldname = lr_field->fieldname
if_is_text_field = abap_true
).
ASSIGN it_fieldcat[ fieldname = lr_text_field->alv_fieldname ] TO FIELD-SYMBOL(<ls_text_field>).
IF sy-subrc = 0.
CHECK <ls_text_field>-no_out = abap_true.
ENDIF.
lf_add_text_fields = abap_true.
EXIT.
CATCH cx_sy_itab_line_not_found.
ENDTRY.
ENDLOOP.
IF lf_add_text_fields = abap_true.
INSERT VALUE #(
type = sctx_c_type_function
fcode = zif_dbbr_c_selection_functions=>add_text_field
text = 'Add Text Field'(010)
) INTO ct_menu_entries INDEX 1.
ENDIF.
ENDMETHOD.
METHOD constructor.
mo_selection_util = io_selection_util.
ENDMETHOD.
METHOD manage_text_field_columns.
mo_selection_util->mo_alv_grid->get_frontend_fieldcatalog( IMPORTING et_fieldcatalog = DATA(lt_fieldcat) ).
DATA(lo_text_field_col_selector) = NEW zcl_dbbr_text_field_selector(
io_tabfields = mo_selection_util->mo_tabfields
it_fieldcat = lt_fieldcat
).
DATA(lt_text_field_status) = lo_text_field_col_selector->get_text_fields( ).
CHECK lt_text_field_status IS NOT INITIAL.
*.. Check if fields to be made visible are
LOOP AT lt_text_field_status ASSIGNING FIELD-SYMBOL(<ls_text_field>) WHERE visible = abap_true.
<ls_text_field>-new_field = xsdbool( NOT line_exists( lt_fieldcat[ fieldname = <ls_text_field>-alv_fieldname ] ) ).
ENDLOOP.
update_field_status( lt_text_field_status ).
ENDMETHOD.
METHOD update_field_status.
DATA(lo_alv_grid) = mo_selection_util->mo_alv_grid.
DATA(lo_tabfields) = mo_selection_util->mo_tabfields.
lo_alv_grid->get_frontend_fieldcatalog( IMPORTING et_fieldcatalog = DATA(lt_fieldcat) ).
IF line_exists( it_fields[ new_field = abap_true ] ).
DATA(lf_reset_alv_table) = abap_true.
* CLEAR mo_selection_util->mt_add_texts.
zcl_dbbr_addtext_helper=>prepare_text_fields(
EXPORTING ir_fields = lo_tabfields
CHANGING ct_add_texts = mo_selection_util->mt_add_texts
).
ENDIF.
*.. Update field catalog with new text fields
LOOP AT it_fields ASSIGNING FIELD-SYMBOL(<ls_field>).
IF <ls_field>-new_field = abap_true.
DATA(lr_new_field) = lo_tabfields->get_field_ref_by_alv_name( <ls_field>-alv_fieldname ).
DATA(ls_text_fieldcat) = mo_selection_util->create_text_fieldcat_entry( lr_new_field ).
DATA(lv_ref_field_index) = line_index( lt_fieldcat[ fieldname = lr_new_field->reference_alv_fieldname ] ) + 1.
INSERT ls_text_fieldcat INTO lt_fieldcat INDEX lv_ref_field_index.
ELSE.
lt_fieldcat[
fieldname = <ls_field>-alv_fieldname
]-no_out = COND #( WHEN <ls_field>-visible = abap_true THEN abap_false ELSE abap_true ).
ENDIF.
ENDLOOP.
IF lf_reset_alv_table = abap_true.
mo_selection_util->create_dynamic_table( ).
mo_selection_util->get_alv_util( )->update_result_table_ref( exporting ir_t_data = mo_selection_util->mr_t_data ).
LOOP AT lt_fieldcat ASSIGNING FIELD-SYMBOL(<ls_fcat>).
CLEAR: <ls_fcat>-col_pos.
ENDLOOP.
mo_selection_util->mt_temp_fieldcat = lt_fieldcat.
mo_selection_util->refresh_selection( if_reset_table_in_alv = lf_reset_alv_table ).
ELSE.
lo_alv_grid->set_frontend_fieldcatalog( lt_fieldcat ).
lo_alv_grid->refresh_table_display( ).
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
8206,
7663,
7273,
346,
329,
12454,
3556,
79,
29,
198,
31631,
1976,
565,
62,
9945,
1671,
62,
5239,
62,
3245,
62,
9019,
62,
22602,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
49283,
62,
22602,
41876,
4526,
37,
5390,
1976,
565,
62,
9945,
1671,
62,
49283,
62,
22602,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
46245,
2420,
2214,
15180,
329,
6163,
15180,
3556,
79,
29,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
5239,
62,
3245,
62,
28665,
82,
13,
628,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
5124,
1095,
2420,
2214,
15180,
3556,
79,
29,
198,
220,
220,
220,
337,
36252,
50,
6687,
62,
5239,
62,
3245,
62,
28665,
82,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
46245,
705,
4550,
8255,
7663,
6,
2163,
284,
4732,
6859,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
340,
62,
34213,
62,
4033,
82,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
8053,
286,
6163,
15180,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
340,
62,
3245,
9246,
220,
220,
220,
220,
220,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
1847,
53,
7663,
44515,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
269,
83,
62,
26272,
62,
298,
1678,
220,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
8053,
286,
4732,
6859,
12784,
3556,
79,
29,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
5239,
62,
3245,
62,
28665,
62,
20786,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
34213,
62,
4033,
82,
41876,
300,
28435,
62,
83,
62,
4033,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
3245,
9246,
220,
220,
220,
220,
220,
41876,
300,
28435,
62,
83,
62,
69,
9246,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
310,
62,
26272,
62,
298,
1678,
220,
41876,
264,
49464,
62,
13000,
8658,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
6941,
62,
49283,
62,
22602,
41876,
4526,
37,
5390,
1976,
565,
62,
9945,
1671,
62,
49283,
62,
22602,
13,
628,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
4933,
19581,
2420,
7032,
287,
8355,
53,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
340,
62,
25747,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
23984,
79,
29,
198,
220,
220,
220,
337,
36252,
50,
4296,
62,
3245,
62,
13376,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
25747,
41876,
1976,
361,
62,
9945,
1671,
62,
774,
62,
20541,
14804,
774,
62,
83,
62,
5239,
62,
3245,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
11012,
11473,
62,
32541,
62,
44603,
62,
10080,
62,
3843,
4146,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
751,
62,
5239,
62,
3245,
62,
28665,
82,
13,
198,
220,
220,
220,
42865,
25,
300,
69,
62,
3605,
62,
5239,
62,
3245,
41876,
450,
499,
62,
30388,
13,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
3605,
62,
25747,
41876,
43679,
3963,
4526,
37,
5390,
1976,
9945,
1671,
62,
8658,
3245,
62,
10951,
62,
9019,
13,
628,
220,
220,
220,
42865,
7,
5439,
62,
282,
85,
62,
25928,
8,
796,
6941,
62,
49283,
62,
22602,
3784,
5908,
62,
282,
85,
62,
25928,
13,
198,
220,
220,
220,
42865,
7,
5439,
62,
8658,
25747,
8,
796,
6941,
62,
49283,
62,
22602,
3784,
5908,
62,
8658,
25747,
13,
198,
198,
9,
986,
3497,
15180,
329,
543,
2420,
15180,
815,
307,
2087,
198,
220,
220,
220,
2376,
62,
282,
85,
62,
25928,
3784,
1136,
62,
34213,
62,
28665,
82,
7,
30023,
9863,
2751,
2123,
62,
9630,
62,
28665,
82,
796,
42865,
7,
2528,
62,
4033,
82,
8,
6739,
198,
220,
220,
220,
2376,
62,
282,
85,
62,
25928,
3784,
1136,
62,
8534,
437,
62,
3245,
9246,
11794,
7,
30023,
9863,
2751,
2123,
62,
3245,
9246,
11794,
796,
42865,
7,
2528,
62,
3245,
9246,
8,
6739,
628,
220,
220,
220,
42865,
7,
2528,
62,
5239,
62,
3245,
62,
11250,
8,
796,
26173,
8924,
1976,
361,
62,
9945,
1671,
62,
774,
62,
20541,
14804,
774,
62,
83,
62,
5239,
62,
3245,
7,
6739,
628,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
4033,
82,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
7278,
62,
4033,
29,
737,
198,
220,
220,
220,
220,
220,
42865,
7,
14050,
62,
3245,
8,
796,
6941,
62,
49283,
62,
22602,
3784,
5908,
62,
8658,
25747,
3784,
1136,
62,
3245,
62,
5420,
62,
1525,
62,
282,
85,
62,
3672,
7,
21628,
62,
282,
85,
62,
3245,
3672,
796,
1279,
7278,
62,
4033,
29,
12,
3245,
3672,
6739,
198,
220,
220,
220,
220,
220,
5870,
25171,
300,
81,
62,
3245,
3784,
10134,
62,
5239,
62,
3245,
796,
450,
499,
62,
7942,
13,
628,
220,
220,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
14050,
62,
5239,
62,
3245,
8,
796,
2376,
62,
8658,
25747,
3784,
1136,
62,
3245,
62,
5420,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8658,
3672,
62,
26011,
796,
300,
81,
62,
3245,
3784,
8658,
3672,
62,
26011
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
"! <p>
"! Interface to the JSON API to deal with requests and responses sent
"! respectively received from the Google Drive REST API.
"! </p>
"!
"! <p>
"! Author: Sebastian Machhausen, SAP SE <br/>
"! Version: 0.0.4<br/>
"! </p>
"!
"! See https://developers.google.com/drive/
interface zif_googlepoc_drive_json_api
public.
constants:
"! Enumeration of the field names in a Google Drive File Resource.
"!
"! See https://developers.google.com/drive/v3/reference/files?hl=de#resource
begin of file_resource_field,
"! The id of the file.
id type string value `id`, "#EC NOTEXT
"! The name of the file. This is not necessarily unique within a folder.
"! Note that for immutable items such as the top level folders of Team
"! Drives, My Drive root folder, and Application Data folder the name
"! is constant.
name type string value `name`, "#EC NOTEXT
"! The MIME type of the file. Drive will attempt to automatically detect
"! an appropriate value from uploaded content if no value is provided.
"! The value cannot be changed unless a new revision is uploaded. If a
"! file is created with a Google Doc MIME type, the uploaded content
"! will be imported if possible. The supported import formats are
"! published in the About resource.
mime_type type string value `mimeType`, "#EC NOTEXT
"! The time at which the file was created (RFC 3339 date-time).
created_time type string value `createdTime`, "#EC NOTEXT
"! A link for opening the file in a relevant Google editor or viewer in
"! a browser.
web_view_link type string value `webViewLink`, "#EC NOTEXT
"! The IDs of the parent folders which contain the file.
parents type string value `parents`, "#EC NOTEXT
end of file_resource_field.
constants:
"! Enumeration of the field names in a Google Drive Files Resource List
"!
"! See https://developers.google.com/drive/v3/reference/files?hl=de#resource
begin of files_resource_list_field,
"! Identifies what kind of resource this is. Value: the fixed string
"! "drive#fileList".
kind type string value `kind`, "#EC NOTEXT
"! The page token for the next page of files. This will be absent if
"! the end of the files list has been reached. If the token is rejected
"! for any reason, it should be discarded, and pagination should be
"! restarted from the first page of results.
next_page_token type string value `nextPageToken`, "#EC NOTEXT
"! Whether the search process was incomplete. If true, then some search
"! results may be missing, since all documents were not searched. This
"! may occur when searching multiple Team Drives with the "user,
"! allTeamDrives" corpora, but all corpora could not be searched. When
"! this happens, it is suggested that clients narrow their query by
"! choosing a different corpus such as "user" or "teamDrive".
incomplete_search type string value `incompleteSearch`, "#EC NOTEXT
"! The list of files. If nextPageToken is populated, then this list may
"! be incomplete and an additional page of results should be fetched.
files type string value `files`, "#EC NOTEXT
end of files_resource_list_field.
"! Creates a Drive File Resource meta data in JSON format.
"!
"! @parameter iv_id | The ID of the file resource.
"! @parameter iv_name | The name of the file resource.
"! @parameter iv_mime_type | The MIME type of the file resource.
"! @parameter it_parents | The IDs of the parent folders containing the
"! file.
"! @parameter rv_metadata_json | The created meta data in JSON format.
methods create_file_resource
importing
iv_id type zif_googlepoc_drive_api=>y_id optional
iv_name type zif_googlepoc_drive_api=>y_name
iv_mime_type type zif_googlepoc_drive_api=>y_mime_type
it_parents type zif_googlepoc_drive_api=>yt_id optional
returning
value(rv_file_resource_json) type string.
"! Parses a Drive File Resource response in JSON format.
"!
"! @parameter iv_file_resource_json | The response to parse.
"! @parameter rs_file_resource | The parsed file resource.
methods parse_file_resource
importing
iv_file_resource_json type string
returning
value(rs_file_resource) type zif_googlepoc_drive_api=>ys_file_resource.
"! Parses a Drive File Resource List response in JSON format.
"!
"! @parameter iv_file_resource_list_json | The response to parse.
"! @parameter et_file_resources | The parsed list of file resources.
methods parse_file_resource_list
importing
iv_file_resource_list_json type string
exporting
et_file_resources type zif_googlepoc_drive_api=>yt_file_resource.
"! Sets the logging API.
"!
"! @parameter io_log_api | The logging API to use.
methods set_log_api
importing
io_log_api type ref to zif_googlepoc_drive_log_api.
endinterface.
| [
40484,
1279,
79,
29,
198,
40484,
26491,
284,
262,
19449,
7824,
284,
1730,
351,
7007,
290,
9109,
1908,
198,
40484,
8148,
2722,
422,
262,
3012,
9974,
30617,
7824,
13,
198,
40484,
7359,
79,
29,
198,
40484,
198,
40484,
1279,
79,
29,
198,
40484,
6434,
25,
220,
26190,
7080,
30404,
268,
11,
48323,
7946,
1279,
1671,
15913,
198,
40484,
10628,
25,
657,
13,
15,
13,
19,
27,
1671,
15913,
198,
40484,
7359,
79,
29,
198,
40484,
198,
40484,
4091,
3740,
1378,
16244,
364,
13,
13297,
13,
785,
14,
19472,
14,
198,
39994,
1976,
361,
62,
13297,
79,
420,
62,
19472,
62,
17752,
62,
15042,
198,
220,
1171,
13,
628,
198,
220,
38491,
25,
198,
220,
220,
220,
366,
0,
2039,
6975,
341,
286,
262,
2214,
3891,
287,
257,
3012,
9974,
9220,
20857,
13,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
366,
0,
4091,
3740,
1378,
16244,
364,
13,
13297,
13,
785,
14,
19472,
14,
85,
18,
14,
35790,
14,
16624,
30,
18519,
28,
2934,
2,
31092,
198,
220,
220,
220,
2221,
286,
2393,
62,
31092,
62,
3245,
11,
198,
220,
220,
220,
220,
220,
366,
0,
383,
4686,
286,
262,
2393,
13,
198,
220,
220,
220,
220,
220,
4686,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
1988,
4600,
312,
47671,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
220,
220,
366,
0,
383,
1438,
286,
262,
2393,
13,
770,
318,
407,
6646,
3748,
1626,
257,
9483,
13,
198,
220,
220,
220,
220,
220,
366,
0,
5740,
326,
329,
40139,
3709,
884,
355,
262,
1353,
1241,
24512,
286,
4816,
198,
220,
220,
220,
220,
220,
366,
0,
5809,
1158,
11,
2011,
9974,
6808,
9483,
11,
290,
15678,
6060,
9483,
262,
1438,
198,
220,
220,
220,
220,
220,
366,
0,
318,
6937,
13,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
1988,
4600,
3672,
47671,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
220,
220,
366,
0,
383,
337,
12789,
2099,
286,
262,
2393,
13,
9974,
481,
2230,
284,
6338,
4886,
198,
220,
220,
220,
220,
220,
366,
0,
281,
5035,
1988,
422,
19144,
2695,
611,
645,
1988,
318,
2810,
13,
198,
220,
220,
220,
220,
220,
366,
0,
383,
1988,
2314,
307,
3421,
4556,
257,
649,
18440,
318,
19144,
13,
1002,
257,
198,
220,
220,
220,
220,
220,
366,
0,
2393,
318,
2727,
351,
257,
3012,
14432,
337,
12789,
2099,
11,
262,
19144,
2695,
198,
220,
220,
220,
220,
220,
366,
0,
481,
307,
17392,
611,
1744,
13,
383,
4855,
1330,
17519,
389,
198,
220,
220,
220,
220,
220,
366,
0,
3199,
287,
262,
7994,
8271,
13,
198,
220,
220,
220,
220,
220,
285,
524,
62,
4906,
220,
220,
220,
220,
2099,
4731,
1988,
4600,
76,
524,
6030,
47671,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
220,
220,
366,
0,
383,
640,
379,
543,
262,
2393,
373,
2727,
357,
41150,
23460,
24,
3128,
12,
2435,
737,
198,
220,
220,
220,
220,
220,
2727,
62,
2435,
220,
2099,
4731,
1988,
4600,
25598,
7575,
47671,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
220,
220,
366,
0,
317,
2792,
329,
4756,
262,
2393,
287,
257,
5981,
3012,
5464,
393,
19091,
287,
198,
220,
220,
220,
220,
220,
366,
0,
257,
6444,
13,
198,
220,
220,
220,
220,
220,
3992,
62,
1177,
62,
8726,
2099,
4731,
1988,
4600,
12384,
7680,
11280,
47671,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
220,
220,
366,
0,
383,
32373,
286,
262,
2560,
24512,
543,
3994,
262,
2393,
13,
198,
220,
220,
220,
220,
220,
3397,
220,
220,
220,
220,
220,
220,
2099,
4731,
1988,
4600,
23743,
47671,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
886,
286,
2393,
62,
31092,
62,
3245,
13,
628,
220,
38491,
25,
198,
220,
220,
220,
366,
0,
2039,
6975,
341,
286,
262,
2214,
3891,
287,
257,
3012,
9974,
13283,
20857,
7343,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
366,
0,
4091,
3740,
1378,
16244,
364,
13,
13297,
13,
785,
14,
19472,
14,
85,
18,
14,
35790,
14,
16624,
30,
18519,
28,
2934,
2,
31092,
198,
220,
220,
220,
2221,
286,
3696,
62,
31092,
62,
4868,
62,
3245,
11,
198,
220,
220,
220,
220,
220,
366,
0,
11440,
6945,
644,
1611,
286,
8271,
428,
318,
13,
11052,
25,
262,
5969,
4731,
198,
220,
220,
220,
220,
220,
366,
0,
366,
19472,
2,
7753,
8053,
1911,
198,
220,
220,
220,
220,
220,
1611,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
1988,
4600,
11031,
47671,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
220,
220,
366,
0,
383,
2443,
11241,
329,
262,
1306,
2443,
286,
3696,
13,
770,
481,
307,
13717,
611,
198,
220,
220,
220,
220,
220,
366,
0,
262,
886,
286,
262,
3696,
1351,
468,
587,
4251,
13,
1002,
262,
11241,
318,
8606,
198,
220,
220,
220,
220,
220,
366,
0,
329,
597,
1738,
11,
340,
815,
307,
25148,
11,
290,
42208,
1883,
815,
307,
198,
220,
220,
220,
220,
220,
366,
0,
15765,
276,
422,
262,
717,
2443,
286,
2482,
13,
198,
220,
220,
220,
220,
220,
1306,
62,
7700,
62,
30001,
220,
220,
2099,
4731,
1988,
4600,
19545,
9876,
30642,
47671,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
220,
220,
366,
0,
10127,
262,
2989,
1429,
373,
17503,
13,
1002,
2081,
11,
788,
617,
2989,
198,
220,
220,
220,
220,
220,
366,
0,
2482,
743,
307,
4814,
11,
1201,
477,
4963,
547,
407,
16499,
13,
770,
198,
220,
220,
220,
220,
220,
366,
0,
743,
3051,
618,
10342,
3294,
4816,
5809,
1158,
351,
262,
366,
7220,
11,
198,
220,
220,
220,
220,
220,
366,
0,
477,
15592
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
"! <p class="shorttext synchronized" lang="en">ABAP I/O exception</p>
"!
CLASS zcx_io_resource_already_closed DEFINITION
PUBLIC
INHERITING FROM cx_dynamic_check
CREATE PUBLIC .
PUBLIC SECTION.
CONSTANTS zcx_io_resource_already_closed TYPE sotr_conc VALUE '000F206A92371DECB18030FE4A64F060' ##NO_TEXT.
DATA resource TYPE REF TO object .
METHODS constructor
IMPORTING
!textid LIKE textid OPTIONAL
!previous LIKE previous OPTIONAL
!resource TYPE REF TO object OPTIONAL .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCX_IO_RESOURCE_ALREADY_CLOSED IMPLEMENTATION.
METHOD constructor ##ADT_SUPPRESS_GENERATION.
CALL METHOD super->constructor
EXPORTING
textid = textid
previous = previous.
IF textid IS INITIAL.
me->textid = zcx_io_resource_already_closed .
ENDIF.
me->resource = resource .
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
6242,
2969,
314,
14,
46,
6631,
3556,
79,
29,
198,
40484,
198,
31631,
1976,
66,
87,
62,
952,
62,
31092,
62,
282,
1493,
62,
20225,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
43213,
62,
67,
28995,
62,
9122,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
1976,
66,
87,
62,
952,
62,
31092,
62,
282,
1493,
62,
20225,
41876,
264,
313,
81,
62,
1102,
66,
26173,
8924,
705,
830,
37,
22136,
32,
24,
1954,
4869,
41374,
33,
15259,
1270,
15112,
19,
32,
2414,
37,
41322,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
42865,
8271,
41876,
4526,
37,
5390,
2134,
764,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
5239,
312,
220,
220,
34178,
2420,
312,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
3866,
1442,
34178,
2180,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
31092,
41876,
4526,
37,
5390,
2134,
39852,
2849,
1847,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
34,
55,
62,
9399,
62,
19535,
31033,
62,
1847,
15675,
56,
62,
5097,
48751,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
22492,
2885,
51,
62,
40331,
32761,
62,
35353,
1137,
6234,
13,
628,
220,
220,
220,
42815,
337,
36252,
2208,
3784,
41571,
273,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
312,
220,
220,
796,
2420,
312,
198,
220,
220,
220,
220,
220,
220,
220,
2180,
796,
2180,
13,
198,
220,
220,
220,
16876,
2420,
312,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
502,
3784,
5239,
312,
796,
1976,
66,
87,
62,
952,
62,
31092,
62,
282,
1493,
62,
20225,
764,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
502,
3784,
31092,
796,
8271,
764,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltd_abapgit_popups_mock DEFINITION.
PUBLIC SECTION.
INTERFACES: zif_abapgit_popups.
ENDCLASS.
CLASS no_dependency_injection DEFINITION FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
METHODS:
no_injection FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS simple_dependency_injection DEFINITION FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
METHODS:
setup,
simple_injection FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltd_abapgit_popups_mock IMPLEMENTATION.
METHOD zif_abapgit_popups~branch_list_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~branch_popup_callback.
ENDMETHOD.
METHOD zif_abapgit_popups~create_branch_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~package_popup_callback.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_folder_logic.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_object.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_package_export.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_confirm.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_create_package.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_create_transp_branch.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_inform.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_select_from_list.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_select_transports.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_transport_request.
ENDMETHOD.
METHOD zif_abapgit_popups~repo_new_offline.
ENDMETHOD.
METHOD zif_abapgit_popups~repo_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~run_page_class_popup.
ENDMETHOD.
ENDCLASS.
CLASS no_dependency_injection IMPLEMENTATION.
METHOD no_injection.
DATA: lo_popups TYPE REF TO zif_abapgit_popups,
lo_class_descr TYPE REF TO cl_abap_classdescr.
lo_popups = zcl_abapgit_ui_factory=>get_popups( ).
lo_class_descr ?= cl_abap_classdescr=>describe_by_object_ref( lo_popups ).
cl_abap_unit_assert=>assert_equals(
exp = '\CLASS=ZCL_ABAPGIT_POPUPS'
act = lo_class_descr->absolute_name ).
ENDMETHOD.
ENDCLASS.
CLASS simple_dependency_injection IMPLEMENTATION.
METHOD setup.
DATA: lo_popups_mock TYPE REF TO ltd_abapgit_popups_mock.
CREATE OBJECT lo_popups_mock.
zcl_abapgit_ui_injector=>set_popups( lo_popups_mock ).
ENDMETHOD.
METHOD simple_injection.
DATA: lo_popups TYPE REF TO zif_abapgit_popups,
lo_class_descr TYPE REF TO cl_abap_classdescr.
lo_popups = zcl_abapgit_ui_factory=>get_popups( ).
lo_class_descr ?= cl_abap_classdescr=>describe_by_object_ref( lo_popups ).
cl_abap_unit_assert=>assert_equals(
exp = '\CLASS-POOL=ZCL_ABAPGIT_UI_INJECTOR\CLASS=LTD_ABAPGIT_POPUPS_MOCK'
act = lo_class_descr->absolute_name ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
8671,
62,
397,
499,
18300,
62,
12924,
4739,
62,
76,
735,
5550,
20032,
17941,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
645,
62,
45841,
1387,
62,
259,
29192,
5550,
20032,
17941,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
360,
4261,
6234,
6006,
9863,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
645,
62,
259,
29192,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
2829,
62,
45841,
1387,
62,
259,
29192,
5550,
20032,
17941,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
360,
4261,
6234,
6006,
9863,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
198,
220,
220,
220,
220,
220,
2829,
62,
259,
29192,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
397,
499,
18300,
62,
12924,
4739,
62,
76,
735,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
1671,
3702,
62,
4868,
62,
12924,
929,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
1671,
3702,
62,
12924,
929,
62,
47423,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
17953,
62,
1671,
3702,
62,
12924,
929,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
26495,
62,
12924,
929,
62,
47423,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
43551,
62,
6404,
291,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
15252,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
26495,
62,
39344,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
10414,
2533,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
17953,
62,
26495,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
17953,
62,
7645,
79,
62,
1671,
3702,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
259,
687,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
19738,
62,
6738,
62,
4868,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
19738,
62,
7645,
3742,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
7645,
634,
62,
25927,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
260,
7501,
62,
3605,
62,
2364,
1370,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
260,
7501,
62,
12924,
929,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
5143,
62,
7700,
62,
4871,
62,
12924,
929,
13,
628,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
645,
62,
45841,
1387,
62,
259,
29192,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
645,
62,
259,
29192,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
12924,
4739,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
4871,
62,
20147,
81,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
4871,
20147,
81,
13,
628,
220,
220,
220,
2376,
62,
12924,
4739,
796,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
14804,
1136,
62,
12924,
4739,
7,
6739,
628,
220,
220,
220,
2376,
62,
4871,
62,
20147,
81,
5633,
28,
537,
62,
397,
499,
62,
4871,
20147,
81,
14804,
20147,
4892,
62,
1525,
62,
15252,
62,
5420,
7,
2376,
62,
12924,
4739,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
59,
31631,
28,
57,
5097,
62,
6242,
2969,
38,
2043,
62,
47,
3185,
52,
3705,
6,
198,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
4871,
62,
20147,
81,
3784,
48546,
62,
3672,
6739,
628,
220,
23578,
49273,
13,
198,
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,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_view_repo DEFINITION
PUBLIC
FINAL
INHERITING FROM zcl_abapgit_gui_component
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_renderable .
INTERFACES zif_abapgit_gui_event_handler .
CONSTANTS:
BEGIN OF c_actions,
change_dir TYPE string VALUE 'change_dir' ##NO_TEXT,
toggle_hide_files TYPE string VALUE 'toggle_hide_files' ##NO_TEXT,
toggle_folders TYPE string VALUE 'toggle_folders' ##NO_TEXT,
toggle_changes TYPE string VALUE 'toggle_changes' ##NO_TEXT,
toggle_order_by TYPE string VALUE 'toggle_order_by' ##NO_TEXT,
toggle_diff_first TYPE string VALUE 'toggle_diff_first ' ##NO_TEXT,
display_more TYPE string VALUE 'display_more' ##NO_TEXT,
END OF c_actions .
METHODS constructor
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception .
PROTECTED SECTION.
PRIVATE SECTION.
DATA mt_col_spec TYPE zif_abapgit_definitions=>tty_col_spec.
DATA: mo_repo TYPE REF TO zcl_abapgit_repo,
mv_cur_dir TYPE string,
mv_hide_files TYPE abap_bool,
mv_max_lines TYPE i,
mv_max_setting TYPE i,
mv_show_folders TYPE abap_bool,
mv_changes_only TYPE abap_bool,
mv_show_order_by TYPE abap_bool,
mv_order_by TYPE string,
mv_order_descending TYPE abap_bool,
mv_diff_first TYPE abap_bool,
mv_key TYPE zif_abapgit_persistence=>ty_value,
mv_are_changes_recorded_in_tr TYPE abap_bool.
METHODS:
render_head_line
IMPORTING iv_lstate TYPE char1
iv_rstate TYPE char1
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception,
build_head_menu
IMPORTING iv_lstate TYPE char1
iv_rstate TYPE char1
RETURNING VALUE(ro_toolbar) TYPE REF TO zcl_abapgit_html_toolbar
RAISING zcx_abapgit_exception,
build_grid_menu
RETURNING VALUE(ro_toolbar) TYPE REF TO zcl_abapgit_html_toolbar
RAISING zcx_abapgit_exception,
render_item
IMPORTING is_item TYPE zif_abapgit_definitions=>ty_repo_item
iv_render_transports TYPE abap_bool
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception,
render_item_files
IMPORTING is_item TYPE zif_abapgit_definitions=>ty_repo_item
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html,
render_item_command
IMPORTING is_item TYPE zif_abapgit_definitions=>ty_repo_item
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html,
get_item_class
IMPORTING is_item TYPE zif_abapgit_definitions=>ty_repo_item
RETURNING VALUE(rv_html) TYPE string,
get_item_icon
IMPORTING is_item TYPE zif_abapgit_definitions=>ty_repo_item
RETURNING VALUE(rv_html) TYPE string,
render_item_lock_column
IMPORTING is_item TYPE zif_abapgit_definitions=>ty_repo_item
RETURNING VALUE(rv_html) TYPE string,
render_empty_package
RETURNING VALUE(rv_html) TYPE string,
render_parent_dir
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception.
METHODS:
build_obj_jump_link
IMPORTING is_item TYPE zif_abapgit_definitions=>ty_repo_item
RETURNING VALUE(rv_html) TYPE string,
build_dir_jump_link
IMPORTING iv_path TYPE string
RETURNING VALUE(rv_html) TYPE string,
build_inactive_object_code
IMPORTING is_item TYPE zif_abapgit_definitions=>ty_repo_item
RETURNING VALUE(rv_inactive_html_code) TYPE string,
open_in_master_language
RAISING zcx_abapgit_exception,
render_order_by
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html,
apply_order_by
CHANGING ct_repo_items TYPE zif_abapgit_definitions=>tt_repo_items,
build_branch_dropdown
IMPORTING iv_wp_opt LIKE zif_abapgit_html=>c_html_opt-crossout
RETURNING VALUE(ro_branch_dropdown) TYPE REF TO zcl_abapgit_html_toolbar
RAISING zcx_abapgit_exception,
build_tag_dropdown
IMPORTING iv_wp_opt LIKE zif_abapgit_html=>c_html_opt-crossout
RETURNING VALUE(ro_tag_dropdown) TYPE REF TO zcl_abapgit_html_toolbar
RAISING zcx_abapgit_exception,
build_advanced_dropdown
IMPORTING iv_wp_opt LIKE zif_abapgit_html=>c_html_opt-crossout
iv_lstate TYPE char1
iv_rstate TYPE char1
RETURNING VALUE(ro_advanced_dropdown) TYPE REF TO zcl_abapgit_html_toolbar
RAISING zcx_abapgit_exception,
build_main_toolbar
IMPORTING iv_pull_opt LIKE zif_abapgit_html=>c_html_opt-crossout
iv_lstate TYPE char1
iv_rstate TYPE char1
io_tb_branch TYPE REF TO zcl_abapgit_html_toolbar
io_tb_tag TYPE REF TO zcl_abapgit_html_toolbar
io_tb_advanced TYPE REF TO zcl_abapgit_html_toolbar
RETURNING VALUE(ro_toolbar) TYPE REF TO zcl_abapgit_html_toolbar
RAISING zcx_abapgit_exception.
METHODS _add_col
IMPORTING
iv_str TYPE string.
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_VIEW_REPO IMPLEMENTATION.
METHOD apply_order_by.
DATA:
lt_sort TYPE abap_sortorder_tab,
ls_sort LIKE LINE OF lt_sort,
lt_non_code_and_metadata_items LIKE ct_repo_items,
lt_code_items LIKE ct_repo_items,
lt_diff_items LIKE ct_repo_items.
FIELD-SYMBOLS:
<ls_repo_item> TYPE zif_abapgit_definitions=>ty_repo_item.
IF mv_order_by IS INITIAL.
RETURN.
ENDIF.
" we want to preserve non-code and metadata files at the top,
" so we isolate them and and sort only the code artifacts
LOOP AT ct_repo_items ASSIGNING <ls_repo_item>.
IF <ls_repo_item>-obj_type IS INITIAL AND <ls_repo_item>-is_dir = abap_false.
INSERT <ls_repo_item> INTO TABLE lt_non_code_and_metadata_items.
ELSE.
INSERT <ls_repo_item> INTO TABLE lt_code_items.
ENDIF.
ENDLOOP.
IF mv_diff_first = abap_true.
" fix diffs on the top, right after non-code and metadata
LOOP AT lt_code_items ASSIGNING <ls_repo_item>
WHERE changes > 0.
INSERT <ls_repo_item> INTO TABLE lt_diff_items.
ENDLOOP.
DELETE lt_code_items WHERE changes > 0.
ENDIF.
CLEAR: ct_repo_items.
ls_sort-name = mv_order_by.
ls_sort-descending = mv_order_descending.
ls_sort-astext = abap_true.
INSERT ls_sort INTO TABLE lt_sort.
SORT lt_code_items BY (lt_sort).
SORT lt_diff_items BY (lt_sort).
INSERT LINES OF lt_non_code_and_metadata_items INTO TABLE ct_repo_items.
INSERT LINES OF lt_diff_items INTO TABLE ct_repo_items.
INSERT LINES OF lt_code_items INTO TABLE ct_repo_items.
ENDMETHOD.
METHOD build_advanced_dropdown.
DATA:
lv_crossout LIKE zif_abapgit_html=>c_html_opt-crossout.
CREATE OBJECT ro_advanced_dropdown.
IF iv_rstate IS NOT INITIAL OR iv_lstate IS NOT INITIAL. " In case of asyncronicities
ro_advanced_dropdown->add( iv_txt = 'Reset local'
iv_act = |{ zif_abapgit_definitions=>c_action-git_reset }?{ mv_key }|
iv_opt = iv_wp_opt ).
ENDIF.
IF mo_repo->is_offline( ) = abap_false. " Online ?
ro_advanced_dropdown->add( iv_txt = 'Background mode'
iv_act = |{ zif_abapgit_definitions=>c_action-go_background }?{ mv_key }| ).
ro_advanced_dropdown->add( iv_txt = 'Change remote'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_remote_change }?{ mv_key }| ).
ro_advanced_dropdown->add( iv_txt = 'Make off-line'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_remote_detach }?{ mv_key }| ).
ro_advanced_dropdown->add( iv_txt = 'Force stage'
iv_act = |{ zif_abapgit_definitions=>c_action-go_stage }?{ mv_key }| ).
CLEAR lv_crossout.
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-transport_to_branch ) = abap_false.
lv_crossout = zif_abapgit_html=>c_html_opt-crossout.
ENDIF.
ro_advanced_dropdown->add( iv_txt = 'Transport to Branch'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_transport_to_branch }?{ mv_key }|
iv_opt = lv_crossout ).
ELSE.
ro_advanced_dropdown->add( iv_txt = 'Make on-line'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_remote_attach }?{ mv_key }| ).
ENDIF.
IF mv_are_changes_recorded_in_tr = abap_true.
ro_advanced_dropdown->add(
iv_txt = 'Add all objects to transport request'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_add_all_obj_to_trans_req }?{ mv_key }| ).
ENDIF.
ro_advanced_dropdown->add( iv_txt = 'Syntax Check'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_syntax_check }?{ mv_key }| ).
ro_advanced_dropdown->add( iv_txt = 'Run Code Inspector'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_code_inspector }?{ mv_key }| ).
ro_advanced_dropdown->add( iv_txt = 'Repo settings'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_settings }?{ mv_key }| ).
CLEAR lv_crossout.
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-update_local_checksum ) = abap_false.
lv_crossout = zif_abapgit_html=>c_html_opt-crossout.
ENDIF.
ro_advanced_dropdown->add( iv_txt = 'Update local checksums'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_refresh_checksums }?{ mv_key }|
iv_opt = lv_crossout ).
IF mo_repo->get_dot_abapgit( )->get_master_language( ) <> sy-langu.
ro_advanced_dropdown->add( iv_txt = 'Open in master language'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_open_in_master_lang }?{ mv_key }| ).
ENDIF.
ro_advanced_dropdown->add( iv_txt = 'Remove'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_remove }?{ mv_key }| ).
CLEAR lv_crossout.
IF mo_repo->get_local_settings( )-write_protected = abap_true
OR zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-uninstall ) = abap_false.
lv_crossout = zif_abapgit_html=>c_html_opt-crossout.
ENDIF.
ro_advanced_dropdown->add( iv_txt = 'Uninstall'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_purge }?{ mv_key }|
iv_opt = lv_crossout ).
ENDMETHOD.
METHOD build_branch_dropdown.
CREATE OBJECT ro_branch_dropdown.
IF mo_repo->is_offline( ) = abap_true.
RETURN.
ENDIF.
ro_branch_dropdown->add( iv_txt = 'Overview'
iv_act = |{ zif_abapgit_definitions=>c_action-go_branch_overview }?{ mv_key }| ).
ro_branch_dropdown->add( iv_txt = 'Switch'
iv_act = |{ zif_abapgit_definitions=>c_action-git_branch_switch }?{ mv_key }|
iv_opt = iv_wp_opt ).
ro_branch_dropdown->add( iv_txt = 'Create'
iv_act = |{ zif_abapgit_definitions=>c_action-git_branch_create }?{ mv_key }| ).
ro_branch_dropdown->add( iv_txt = 'Delete'
iv_act = |{ zif_abapgit_definitions=>c_action-git_branch_delete }?{ mv_key }| ).
ENDMETHOD.
METHOD build_dir_jump_link.
DATA: lv_path TYPE string,
lv_encode TYPE string.
lv_path = iv_path.
REPLACE FIRST OCCURRENCE OF mv_cur_dir IN lv_path WITH ''.
lv_encode = zcl_abapgit_html_action_utils=>dir_encode( lv_path ).
rv_html = zcl_abapgit_html=>a( iv_txt = lv_path
iv_act = |{ c_actions-change_dir }?{ lv_encode }| ).
ENDMETHOD.
METHOD build_grid_menu.
CREATE OBJECT ro_toolbar.
IF mo_repo->has_remote_source( ) = abap_true.
ro_toolbar->add( " Show/Hide files
iv_txt = 'Show files'
iv_chk = boolc( NOT mv_hide_files = abap_true )
iv_act = c_actions-toggle_hide_files ).
ro_toolbar->add( " Show changes only
iv_txt = 'Show changes only'
iv_chk = mv_changes_only
iv_act = c_actions-toggle_changes ).
ENDIF.
ro_toolbar->add( " Show/Hide folders
iv_txt = 'Show folders'
iv_chk = mv_show_folders
iv_act = c_actions-toggle_folders ).
ro_toolbar->add(
iv_txt = 'Show order by'
iv_chk = mv_show_order_by
iv_act = c_actions-toggle_order_by ).
ENDMETHOD.
METHOD build_head_menu.
DATA: lo_tb_advanced TYPE REF TO zcl_abapgit_html_toolbar,
lo_tb_branch TYPE REF TO zcl_abapgit_html_toolbar,
lo_tb_tag TYPE REF TO zcl_abapgit_html_toolbar,
lv_wp_opt LIKE zif_abapgit_html=>c_html_opt-crossout,
lv_pull_opt LIKE zif_abapgit_html=>c_html_opt-crossout.
IF mo_repo->get_local_settings( )-write_protected = abap_true.
lv_wp_opt = zif_abapgit_html=>c_html_opt-crossout.
lv_pull_opt = zif_abapgit_html=>c_html_opt-crossout.
ELSE.
lv_pull_opt = zif_abapgit_html=>c_html_opt-strong.
ENDIF.
lo_tb_branch = build_branch_dropdown( lv_wp_opt ).
lo_tb_tag = build_tag_dropdown( lv_wp_opt ).
lo_tb_advanced = build_advanced_dropdown(
iv_wp_opt = lv_wp_opt
iv_rstate = iv_rstate
iv_lstate = iv_lstate ).
ro_toolbar = build_main_toolbar(
iv_pull_opt = lv_pull_opt
iv_rstate = iv_rstate
iv_lstate = iv_lstate
io_tb_branch = lo_tb_branch
io_tb_tag = lo_tb_tag
io_tb_advanced = lo_tb_advanced ).
ENDMETHOD.
METHOD build_inactive_object_code.
IF is_item-inactive = abap_true.
rv_inactive_html_code = zcl_abapgit_html=>icon(
iv_name = 'bolt/orange'
iv_hint = 'Object or object part is inactive'
iv_class = 'inactive' ).
ENDIF.
ENDMETHOD.
METHOD build_main_toolbar.
DATA:
li_log TYPE REF TO zif_abapgit_log.
CREATE OBJECT ro_toolbar EXPORTING iv_id = 'toolbar-repo'.
IF mo_repo->is_offline( ) = abap_false.
IF iv_rstate IS NOT INITIAL. " Something new at remote
ro_toolbar->add( iv_txt = 'Pull'
iv_act = |{ zif_abapgit_definitions=>c_action-git_pull }?{ mv_key }|
iv_opt = iv_pull_opt ).
ENDIF.
IF iv_lstate IS NOT INITIAL. " Something new at local
ro_toolbar->add( iv_txt = 'Stage'
iv_act = |{ zif_abapgit_definitions=>c_action-go_stage }?{ mv_key }|
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
ENDIF.
IF iv_rstate IS NOT INITIAL OR iv_lstate IS NOT INITIAL. " Any changes
ro_toolbar->add( iv_txt = 'Diff'
iv_act = |{ zif_abapgit_definitions=>c_action-go_diff }?key={ mv_key }|
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
ENDIF.
li_log = mo_repo->get_log( ).
IF li_log IS BOUND AND li_log->count( ) > 0.
ro_toolbar->add( iv_txt = 'Log'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_log }?{ mv_key }| ).
ENDIF.
ro_toolbar->add( iv_txt = 'Branch'
io_sub = io_tb_branch ) ##NO_TEXT.
ro_toolbar->add( iv_txt = 'Tag'
io_sub = io_tb_tag ) ##NO_TEXT.
ELSE.
IF mo_repo->has_remote_source( ) = abap_true AND iv_rstate IS NOT INITIAL.
ro_toolbar->add( iv_txt = 'Pull <sup>zip</sup>'
iv_act = |{ zif_abapgit_definitions=>c_action-git_pull }?{ mv_key }|
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
ro_toolbar->add( iv_txt = 'Diff'
iv_act = |{ zif_abapgit_definitions=>c_action-go_diff }?key={ mv_key }|
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
ENDIF.
ro_toolbar->add( iv_txt = 'Import <sup>zip</sup>'
iv_act = |{ zif_abapgit_definitions=>c_action-zip_import }?{ mv_key }|
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
ro_toolbar->add( iv_txt = 'Export <sup>zip</sup>'
iv_act = |{ zif_abapgit_definitions=>c_action-zip_export }?{ mv_key }|
iv_opt = zif_abapgit_html=>c_html_opt-strong ).
li_log = mo_repo->get_log( ).
IF li_log IS BOUND AND li_log->count( ) > 0.
ro_toolbar->add( iv_txt = 'Log'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_log }?{ mv_key }| ).
ENDIF.
ENDIF.
ro_toolbar->add( iv_txt = 'Advanced'
io_sub = io_tb_advanced ) ##NO_TEXT.
ro_toolbar->add( iv_txt = 'Refresh'
iv_act = |{ zif_abapgit_definitions=>c_action-repo_refresh }?{ mv_key }| ).
ro_toolbar->add( iv_txt = zcl_abapgit_html=>icon( iv_name = 'cog/grey70' )
io_sub = build_grid_menu( ) ).
ENDMETHOD.
METHOD build_obj_jump_link.
DATA: lv_encode TYPE string.
lv_encode = zcl_abapgit_html_action_utils=>jump_encode( iv_obj_type = is_item-obj_type
iv_obj_name = is_item-obj_name ).
rv_html = zcl_abapgit_html=>a( iv_txt = |{ is_item-obj_name }|
iv_act = |{ zif_abapgit_definitions=>c_action-jump }?{ lv_encode }| ).
ENDMETHOD.
METHOD build_tag_dropdown.
CREATE OBJECT ro_tag_dropdown.
IF mo_repo->is_offline( ) = abap_true.
RETURN.
ENDIF.
ro_tag_dropdown->add( iv_txt = 'Overview'
iv_act = |{ zif_abapgit_definitions=>c_action-go_tag_overview }?{ mv_key }| ).
ro_tag_dropdown->add( iv_txt = 'Switch'
iv_act = |{ zif_abapgit_definitions=>c_action-git_tag_switch }?{ mv_key }|
iv_opt = iv_wp_opt ).
ro_tag_dropdown->add( iv_txt = 'Create'
iv_act = |{ zif_abapgit_definitions=>c_action-git_tag_create }?{ mv_key }| ).
ro_tag_dropdown->add( iv_txt = 'Delete'
iv_act = |{ zif_abapgit_definitions=>c_action-git_tag_delete }?{ mv_key }| ).
ENDMETHOD.
METHOD constructor.
DATA: lo_settings TYPE REF TO zcl_abapgit_settings,
lv_package TYPE devclass.
super->constructor( ).
mv_key = iv_key.
mo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
mv_cur_dir = '/'. " Root
mv_hide_files = zcl_abapgit_persistence_user=>get_instance( )->get_hide_files( ).
mv_changes_only = zcl_abapgit_persistence_user=>get_instance( )->get_changes_only( ).
mv_show_order_by = zcl_abapgit_persistence_user=>get_instance( )->get_show_order_by( ).
mv_diff_first = abap_true.
" Read global settings to get max # of objects to be listed
lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ).
mv_max_lines = lo_settings->get_max_lines( ).
mv_max_setting = mv_max_lines.
lv_package = mo_repo->get_package( ).
mv_are_changes_recorded_in_tr = zcl_abapgit_factory=>get_sap_package( lv_package
)->are_changes_recorded_in_tr_req( ).
ENDMETHOD.
METHOD get_item_class.
DATA lt_class TYPE TABLE OF string.
IF is_item-is_dir = abap_true.
APPEND 'folder' TO lt_class.
ELSEIF is_item-changes > 0.
APPEND 'modified' TO lt_class.
ELSEIF is_item-obj_name IS INITIAL.
APPEND 'unsupported' TO lt_class.
ENDIF.
IF lines( lt_class ) > 0.
rv_html = | class="{ concat_lines_of( table = lt_class sep = ` ` ) }"|.
ENDIF.
ENDMETHOD.
METHOD get_item_icon.
CASE is_item-obj_type.
WHEN 'PROG' OR 'CLAS' OR 'FUGR'.
rv_html = zcl_abapgit_html=>icon( 'file-code/darkgrey' ).
WHEN 'W3MI' OR 'W3HT'.
rv_html = zcl_abapgit_html=>icon( 'file-image/darkgrey' ).
WHEN ''.
rv_html = space. " no icon
WHEN OTHERS.
rv_html = zcl_abapgit_html=>icon( 'file-alt/darkgrey' ).
ENDCASE.
IF is_item-is_dir = abap_true.
rv_html = zcl_abapgit_html=>icon( 'folder/darkgrey' ).
ENDIF.
ENDMETHOD.
METHOD open_in_master_language.
CONSTANTS:
lc_abapgit_tcode TYPE tcode VALUE `ZABAPGIT` ##NO_TEXT.
DATA:
lv_master_language TYPE spras,
lt_spagpa TYPE STANDARD TABLE OF rfc_spagpa,
ls_spagpa LIKE LINE OF lt_spagpa,
ls_item TYPE zif_abapgit_definitions=>ty_item,
lv_subrc TYPE syst-subrc,
lv_save_sy_langu TYPE sy-langu.
" https://blogs.sap.com/2017/01/13/logon-language-sy-langu-and-rfc/
lv_master_language = mo_repo->get_dot_abapgit( )->get_master_language( ).
IF lv_master_language = sy-langu.
zcx_abapgit_exception=>raise( |Repo already opened in master language| ).
ENDIF.
ls_item-obj_name = lc_abapgit_tcode.
ls_item-obj_type = |TRAN|.
IF zcl_abapgit_objects=>exists( ls_item ) = abap_false.
zcx_abapgit_exception=>raise( |Please install the abapGit repository| ).
ENDIF.
lv_save_sy_langu = sy-langu.
SET LOCALE LANGUAGE lv_master_language.
ls_spagpa-parid = zif_abapgit_definitions=>c_spagpa_param_repo_key.
ls_spagpa-parval = mo_repo->get_key( ).
INSERT ls_spagpa INTO TABLE lt_spagpa.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
DESTINATION 'NONE'
STARTING NEW TASK 'ABAPGIT'
EXPORTING
tcode = lc_abapgit_tcode
TABLES
spagpa_tab = lt_spagpa
EXCEPTIONS
call_transaction_denied = 1
tcode_invalid = 2
communication_failure = 3
system_failure = 4
OTHERS = 5.
lv_subrc = sy-subrc.
SET LOCALE LANGUAGE lv_save_sy_langu.
IF lv_subrc <> 0.
zcx_abapgit_exception=>raise( |Error from ABAP4_CALL_TRANSACTION. Subrc = { lv_subrc }| ).
ENDIF.
MESSAGE 'Repository opened in a new window' TYPE 'S'.
ENDMETHOD.
METHOD render_empty_package.
DATA: lv_text TYPE string.
IF mv_changes_only = abap_true.
lv_text = |No changes|.
ELSE.
lv_text = |Empty package|.
ENDIF.
rv_html = |<tr class="unsupported"><td class="paddings">|
&& | <center>{ lv_text }</center>|
&& |</td></tr>|.
ENDMETHOD.
METHOD render_head_line.
DATA lo_toolbar TYPE REF TO zcl_abapgit_html_toolbar.
CREATE OBJECT ro_html.
lo_toolbar = build_head_menu( iv_lstate = iv_lstate iv_rstate = iv_rstate ).
ro_html->add( '<div class="paddings">' ).
ro_html->add( '<table class="w100"><tr>' ).
IF mv_show_folders = abap_true.
ro_html->add( |<td class="current_dir">{ mv_cur_dir }</td>| ).
ENDIF.
ro_html->add( '<td class="right">' ).
ro_html->add( lo_toolbar->render( iv_right = abap_true ) ).
ro_html->add( '</td>' ).
ro_html->add( '</tr></table>' ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD render_item.
DATA: lv_link TYPE string,
lv_colspan TYPE i.
CREATE OBJECT ro_html.
IF iv_render_transports = abap_false.
lv_colspan = 2.
ELSE.
lv_colspan = 3.
ENDIF.
ro_html->add( |<tr{ get_item_class( is_item ) }>| ).
IF is_item-obj_name IS INITIAL AND is_item-is_dir = abap_false.
ro_html->add( |<td colspan="{ lv_colspan }"></td>|
&& '<td class="object">'
&& '<i class="grey">non-code and meta files</i>'
&& '</td>' ).
ELSE.
ro_html->add( |<td class="icon">{ get_item_icon( is_item ) }</td>| ).
IF iv_render_transports = abap_true.
ro_html->add( render_item_lock_column( is_item ) ).
ENDIF.
IF is_item-is_dir = abap_true. " Subdir
lv_link = build_dir_jump_link( is_item-path ).
ro_html->add( |<td class="dir" colspan="2">{ lv_link }</td>| ).
ELSE.
lv_link = build_obj_jump_link( is_item ).
ro_html->add( |<td class="type">{ is_item-obj_type }</td>| ).
ro_html->add( |<td class="object">{ lv_link } { build_inactive_object_code( is_item ) }</td>| ).
ENDIF.
ENDIF.
" Files
ro_html->add( '<td class="files">' ).
ro_html->add( render_item_files( is_item ) ).
ro_html->add( '</td>' ).
" Command
IF mo_repo->has_remote_source( ) = abap_true.
ro_html->add( '<td class="cmd">' ).
ro_html->add( render_item_command( is_item ) ).
ro_html->add( '</td>' ).
ENDIF.
ro_html->add( '</tr>' ).
ENDMETHOD.
METHOD render_item_command.
DATA: lv_difflink TYPE string,
ls_file LIKE LINE OF is_item-files.
CREATE OBJECT ro_html.
IF is_item-is_dir = abap_true. " Directory
ro_html->add( '<div>' ).
ro_html->add( |<span class="grey">{ is_item-changes } changes</span>| ).
ro_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state(
iv_lstate = is_item-lstate
iv_rstate = is_item-rstate ) ).
ro_html->add( '</div>' ).
ELSEIF is_item-changes > 0.
IF mv_hide_files = abap_true AND is_item-obj_name IS NOT INITIAL.
lv_difflink = zcl_abapgit_html_action_utils=>obj_encode(
iv_key = mo_repo->get_key( )
ig_object = is_item ).
ro_html->add( '<div>' ).
ro_html->add_a( iv_txt = |diff ({ is_item-changes })|
iv_act = |{ zif_abapgit_definitions=>c_action-go_diff }?{ lv_difflink }| ).
ro_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state( iv_lstate = is_item-lstate
iv_rstate = is_item-rstate ) ).
ro_html->add( '</div>' ).
ELSE.
LOOP AT is_item-files INTO ls_file.
ro_html->add( '<div>' ).
IF ls_file-is_changed = abap_true.
lv_difflink = zcl_abapgit_html_action_utils=>file_encode(
iv_key = mo_repo->get_key( )
ig_file = ls_file ).
ro_html->add_a( iv_txt = 'diff'
iv_act = |{ zif_abapgit_definitions=>c_action-go_diff }?{ lv_difflink }| ).
ro_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state( iv_lstate = ls_file-lstate
iv_rstate = ls_file-rstate ) ).
ELSE.
ro_html->add( ' ' ).
ENDIF.
ro_html->add( '</div>' ).
ENDLOOP.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD render_item_files.
DATA: ls_file LIKE LINE OF is_item-files.
CREATE OBJECT ro_html.
IF mv_hide_files = abap_true AND is_item-obj_type IS NOT INITIAL.
RETURN.
ENDIF.
LOOP AT is_item-files INTO ls_file.
ro_html->add( |<div>{ ls_file-path && ls_file-filename }</div>| ).
ENDLOOP.
ENDMETHOD.
METHOD render_item_lock_column.
DATA: li_cts_api TYPE REF TO zif_abapgit_cts_api,
lv_transport TYPE trkorr,
lv_transport_string TYPE string,
lv_icon_html TYPE string.
li_cts_api = zcl_abapgit_factory=>get_cts_api( ).
TRY.
IF is_item-obj_type IS INITIAL OR is_item-obj_name IS INITIAL OR
li_cts_api->is_object_type_lockable( is_item-obj_type ) = abap_false OR
li_cts_api->is_object_locked_in_transport( iv_object_type = is_item-obj_type
iv_object_name = is_item-obj_name ) = abap_false.
rv_html = |<td class="icon"></td>|.
ELSE.
lv_transport = li_cts_api->get_current_transport_for_obj( iv_object_type = is_item-obj_type
iv_object_name = is_item-obj_name
iv_resolve_task_to_request = abap_false ).
lv_transport_string = lv_transport.
lv_icon_html = zcl_abapgit_html=>a( iv_txt = zcl_abapgit_html=>icon( iv_name = 'briefcase/darkgrey'
iv_hint = lv_transport_string )
iv_act = |{ zif_abapgit_definitions=>c_action-jump_transport }?| &&
lv_transport ).
rv_html = |<td class="icon">| &&
|{ lv_icon_html }| &&
|</td>|.
ENDIF.
CATCH zcx_abapgit_exception.
ASSERT 1 = 2.
ENDTRY.
ENDMETHOD.
METHOD render_order_by.
DATA:
lv_icon TYPE string,
lv_html TYPE string.
CREATE OBJECT ro_html.
CLEAR mt_col_spec.
_add_col( '' ). " all empty
IF mv_are_changes_recorded_in_tr = abap_true.
_add_col( '' ). " all empty
ENDIF.
" technical name /display name /css class /add timezone /title
_add_col( 'OBJ_TYPE /Type' ).
_add_col( 'OBJ_NAME /Name' ).
_add_col( 'PATH /Path' ).
ro_html->add( |<thead>| ).
ro_html->add( |<tr>| ).
ro_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 ) ).
IF mv_diff_first = abap_true.
lv_icon = 'check/blue'.
ELSE.
lv_icon = 'check/grey'.
ENDIF.
lv_html = |<th class="cmd">| &&
zcl_abapgit_html=>icon( lv_icon ) &&
zcl_abapgit_html=>a(
iv_txt = |diffs first|
iv_act = c_actions-toggle_diff_first ).
ro_html->add( lv_html ).
ro_html->add( '</tr>' ).
ro_html->add( '</thead>' ).
ENDMETHOD.
METHOD render_parent_dir.
CREATE OBJECT ro_html.
ro_html->add( '<tr class="folder">' ).
ro_html->add( |<td class="icon">{ zcl_abapgit_html=>icon( 'folder' ) }</td>| ).
ro_html->add( |<td class="object" colspan="4">{ build_dir_jump_link( '..' ) }</td>| ).
IF mo_repo->has_remote_source( ) = abap_true.
ro_html->add( |<td colspan="1"></td>| ). " Dummy for online
ENDIF.
ro_html->add( '</tr>' ).
ENDMETHOD.
METHOD zif_abapgit_gui_event_handler~on_event.
DATA: lv_path TYPE string.
CASE iv_action.
WHEN c_actions-toggle_hide_files. " Toggle file diplay
mv_hide_files = zcl_abapgit_persistence_user=>get_instance( )->toggle_hide_files( ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN c_actions-change_dir. " Change dir
lv_path = zcl_abapgit_html_action_utils=>dir_decode( iv_getdata ).
mv_cur_dir = zcl_abapgit_path=>change_dir( iv_cur_dir = mv_cur_dir iv_cd = lv_path ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN c_actions-toggle_folders. " Toggle folder view
mv_show_folders = boolc( mv_show_folders <> abap_true ).
mv_cur_dir = '/'. " Root
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN c_actions-toggle_changes. " Toggle changes only view
mv_changes_only = zcl_abapgit_persistence_user=>get_instance( )->toggle_changes_only( ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN c_actions-toggle_order_by.
mv_show_order_by = zcl_abapgit_persistence_user=>get_instance( )->toggle_show_order_by( ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN c_actions-toggle_diff_first.
mv_diff_first = boolc( mv_diff_first = abap_false ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN c_actions-display_more. " Increase MAX lines limit
mv_max_lines = mv_max_lines + mv_max_setting.
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-change_order_by.
mv_order_by = zcl_abapgit_gui_chunk_lib=>parse_change_order_by( iv_getdata ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-direction.
mv_order_descending = zcl_abapgit_gui_chunk_lib=>parse_direction( iv_getdata ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_open_in_master_lang.
open_in_master_language( ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_gui_renderable~render.
DATA: lt_repo_items TYPE zif_abapgit_definitions=>tt_repo_items,
lo_browser TYPE REF TO zcl_abapgit_repo_content_list,
lx_error TYPE REF TO zcx_abapgit_exception,
lv_lstate TYPE char1,
lv_rstate TYPE char1,
lv_max TYPE abap_bool,
lv_max_str TYPE string,
lv_add_str TYPE string,
li_log TYPE REF TO zif_abapgit_log,
lv_render_transports TYPE abap_bool.
FIELD-SYMBOLS <ls_item> LIKE LINE OF lt_repo_items.
mi_gui_services->register_event_handler( me ).
" Reinit, for the case of type change
mo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( mo_repo->get_key( ) ).
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
TRY.
lv_render_transports = zcl_abapgit_factory=>get_cts_api(
)->is_chrec_possible_for_package( mo_repo->get_package( ) ).
CREATE OBJECT lo_browser
EXPORTING
io_repo = mo_repo.
lt_repo_items = lo_browser->list( iv_path = mv_cur_dir
iv_by_folders = mv_show_folders
iv_changes_only = mv_changes_only ).
IF mv_show_order_by = abap_true.
apply_order_by( CHANGING ct_repo_items = lt_repo_items ).
ENDIF.
LOOP AT lt_repo_items ASSIGNING <ls_item>.
zcl_abapgit_state=>reduce( EXPORTING iv_cur = <ls_item>-lstate
CHANGING cv_prev = lv_lstate ).
zcl_abapgit_state=>reduce( EXPORTING iv_cur = <ls_item>-rstate
CHANGING cv_prev = lv_rstate ).
ENDLOOP.
ri_html->add( render_head_line( iv_lstate = lv_lstate
iv_rstate = lv_rstate ) ).
li_log = lo_browser->get_log( ).
IF mo_repo->is_offline( ) = abap_false AND li_log->count( ) > 0.
ri_html->add( '<div class="log">' ).
ri_html->add( zcl_abapgit_log_viewer=>to_html( li_log ) ). " shows eg. list of unsupported objects
ri_html->add( '</div>' ).
ENDIF.
ri_html->add( '<div class="repo_container">' ).
" Offline match banner
IF mo_repo->is_offline( ) = abap_true
AND mo_repo->has_remote_source( ) = abap_true
AND lv_lstate IS INITIAL AND lv_rstate IS INITIAL.
ri_html->add(
|<div class="repo_banner panel success">|
&& |ZIP source is attached and completely <b>matches</b> to the local state|
&& |</div>| ).
ENDIF.
" Repo content table
ri_html->add( '<table class="repo_tab">' ).
IF zcl_abapgit_path=>is_root( mv_cur_dir ) = abap_false.
ri_html->add( render_parent_dir( ) ).
ENDIF.
IF mv_show_order_by = abap_true.
ri_html->add( render_order_by( ) ).
ENDIF.
IF lines( lt_repo_items ) = 0.
ri_html->add( render_empty_package( ) ).
ELSE.
LOOP AT lt_repo_items ASSIGNING <ls_item>.
IF mv_max_lines > 0 AND sy-tabix > mv_max_lines.
lv_max = abap_true.
EXIT. " current loop
ENDIF.
ri_html->add( render_item( is_item = <ls_item> iv_render_transports = lv_render_transports ) ).
ENDLOOP.
ENDIF.
ri_html->add( '</table>' ).
IF lv_max = abap_true.
ri_html->add( '<div class = "dummydiv">' ).
IF mv_max_lines = 1.
lv_max_str = '1 object'.
ELSE.
lv_max_str = |first { mv_max_lines } objects|.
ENDIF.
lv_add_str = |+{ mv_max_setting }|.
ri_html->add( |Only { lv_max_str } shown in list. Display {
zcl_abapgit_html=>a( iv_txt = lv_add_str iv_act = c_actions-display_more )
} more. (Set in Advanced > {
zcl_abapgit_html=>a( iv_txt = 'Settings' iv_act = zif_abapgit_definitions=>c_action-go_settings )
} )| ).
ri_html->add( '</div>' ).
ENDIF.
ri_html->add( '</div>' ).
CATCH zcx_abapgit_exception INTO lx_error.
ri_html->add( render_head_line( iv_lstate = lv_lstate iv_rstate = lv_rstate ) ).
ri_html->add( zcl_abapgit_gui_chunk_lib=>render_error( ix_error = lx_error ) ).
ENDTRY.
ENDMETHOD.
METHOD _add_col.
FIELD-SYMBOLS <ls_col> LIKE LINE OF mt_col_spec.
APPEND INITIAL LINE TO mt_col_spec ASSIGNING <ls_col>.
SPLIT iv_str AT '/' INTO
<ls_col>-tech_name
<ls_col>-display_name
<ls_col>-css_class
<ls_col>-add_tz
<ls_col>-title.
CONDENSE <ls_col>-tech_name.
CONDENSE <ls_col>-display_name.
CONDENSE <ls_col>-css_class.
CONDENSE <ls_col>-add_tz.
CONDENSE <ls_col>-title.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
1177,
62,
260,
7501,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
42895,
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,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
764,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
4658,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1487,
62,
15908,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
3803,
62,
15908,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19846,
62,
24717,
62,
16624,
41876,
4731,
26173,
8924,
705,
44256,
62,
24717,
62,
16624,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19846,
62,
11379,
364,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
44256,
62,
11379,
364,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19846,
62,
36653,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
44256,
62,
36653,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19846,
62,
2875,
62,
1525,
220,
220,
41876,
4731,
26173,
8924,
705,
44256,
62,
2875,
62,
1525,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19846,
62,
26069,
62,
11085,
41876,
4731,
26173,
8924,
705,
44256,
62,
26069,
62,
11085,
705,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3359,
62,
3549,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
13812,
62,
3549,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
4658,
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,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
220,
45079,
62,
4033,
62,
16684,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
42852,
62,
4033,
62,
16684,
13,
198,
220,
220,
220,
42865,
25,
6941,
62,
260,
7501,
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,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
22019,
62,
15908,
220,
220,
220,
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,
220,
220,
285,
85,
62,
24717,
62,
16624,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
9806,
62,
6615,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
9806,
62,
33990,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
12860,
62,
11379,
364,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
36653,
62,
8807,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
12860,
62,
2875,
62,
1525,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
2875,
62,
1525,
220,
220,
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,
220,
220,
285,
85,
62,
2875,
62,
20147,
1571,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
26069,
62,
11085,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
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,
220,
220,
285,
85,
62,
533,
62,
36653,
62,
47398,
62,
259,
62,
2213,
41876,
450,
499,
62,
30388,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
8543,
62,
2256,
62,
1370,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
75,
5219,
220,
220,
220,
220,
220,
41876,
1149,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
81,
5219,
220,
220,
220,
220,
220,
41876,
1149,
16,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
CLASS ltcl_objects_files DEFINITION FOR TESTING
DURATION SHORT RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA: mo_cut TYPE REF TO zcl_abapgit_objects_files.
METHODS setup.
METHODS get_program_data
IMPORTING
iv_line_break TYPE clike
RETURNING VALUE(rv_result) TYPE xstring.
METHODS get_xml_data
RETURNING VALUE(rv_result) TYPE xstring.
METHODS get_expected_abap_source
RETURNING VALUE(rt_result) TYPE abaptxt255_tab.
METHODS read_abap FOR TESTING
RAISING
cx_static_check.
METHODS read_xml FOR TESTING
RAISING
cx_static_check.
ENDCLASS.
CLASS ltcl_objects_files IMPLEMENTATION.
METHOD setup.
DATA: lt_files TYPE zif_abapgit_definitions=>ty_files_tt,
ls_item TYPE zif_abapgit_definitions=>ty_item.
FIELD-SYMBOLS: <ls_files> LIKE LINE OF lt_files.
APPEND INITIAL LINE TO lt_files ASSIGNING <ls_files>.
<ls_files>-filename = 'zlf.prog.abap'.
<ls_files>-data = get_program_data( zif_abapgit_definitions=>c_newline ).
APPEND INITIAL LINE TO lt_files ASSIGNING <ls_files>.
<ls_files>-filename = 'zlf.prog.xml'.
<ls_files>-data = get_xml_data( ).
ls_item-obj_type = 'prog'.
ls_item-obj_name = 'zlf'.
CREATE OBJECT mo_cut
EXPORTING
is_item = ls_item.
mo_cut->set_files( lt_files ).
ENDMETHOD.
METHOD get_program_data.
DATA: lv_abap_source TYPE string.
CONCATENATE 'My first program' iv_line_break 'has syntax errors' INTO lv_abap_source.
rv_result = zcl_abapgit_convert=>string_to_xstring_utf8( lv_abap_source ).
ENDMETHOD.
METHOD get_xml_data.
DATA: lv_xml_source TYPE string.
lv_xml_source = '<?xml version="1.0" encoding="utf-8"?>' &&
'<abapGit version="v1.0.0" serializer="LCL_OBJECT_PROG" serializer_version="v1.0.0">' &&
'<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">' &&
'<asx:values>' &&
'<PROGDIR>' &&
'<NAME>ZLF</NAME>' &&
'<SUBC>1</SUBC>' &&
'<RLOAD>E</RLOAD>' &&
'<FIXPT>X</FIXPT>' &&
'<UCCHECK>X</UCCHECK>' &&
'</PROGDIR>' &&
'</asx:values>' &&
'</asx:abap>' &&
'</abapGit>'.
rv_result = zcl_abapgit_convert=>string_to_xstring_utf8( lv_xml_source ).
ENDMETHOD.
METHOD get_expected_abap_source.
APPEND 'My first program' TO rt_result.
APPEND 'has syntax errors' TO rt_result.
ENDMETHOD.
METHOD read_abap.
cl_abap_unit_assert=>assert_equals( exp = get_expected_abap_source( )
act = mo_cut->read_abap( ) ).
ENDMETHOD.
METHOD read_xml.
DATA: BEGIN OF ls_exp_prog_metadata,
name TYPE progname VALUE 'ZLF',
subc(1) TYPE c VALUE '1',
rload(1) TYPE c VALUE 'E',
fixpt(1) TYPE c VALUE 'X',
uccheck(1) TYPE c VALUE 'X',
END OF ls_exp_prog_metadata,
ls_act_prog_metadata LIKE ls_exp_prog_metadata,
ls_exp_metadata TYPE zif_abapgit_definitions=>ty_metadata,
li_xml TYPE REF TO zif_abapgit_xml_input.
ls_exp_metadata-class = 'LCL_OBJECT_PROG'.
ls_exp_metadata-version = 'v1.0.0'.
li_xml = mo_cut->read_xml( ).
li_xml->read( EXPORTING iv_name = 'PROGDIR' CHANGING cg_data = ls_act_prog_metadata ).
cl_abap_unit_assert=>assert_equals( exp = ls_exp_prog_metadata
act = ls_act_prog_metadata ).
cl_abap_unit_assert=>assert_equals( exp = ls_exp_metadata
act = mo_cut->read_xml( )->get_metadata( ) ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
48205,
62,
16624,
5550,
20032,
17941,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
6941,
62,
8968,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16624,
13,
628,
220,
220,
220,
337,
36252,
50,
9058,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
23065,
62,
7890,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1370,
62,
9032,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
2124,
8841,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
19875,
62,
7890,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
2124,
8841,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
40319,
62,
397,
499,
62,
10459,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
20274,
8,
41876,
450,
2373,
742,
13381,
62,
8658,
13,
628,
220,
220,
220,
337,
36252,
50,
1100,
62,
397,
499,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
12708,
62,
9122,
13,
628,
220,
220,
220,
337,
36252,
50,
1100,
62,
19875,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
48205,
62,
16624,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
9058,
13,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
16624,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
16624,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
9186,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
16624,
29,
34178,
48920,
3963,
300,
83,
62,
16624,
13,
628,
220,
220,
220,
43504,
10619,
3268,
2043,
12576,
48920,
5390,
300,
83,
62,
16624,
24994,
3528,
15871,
1279,
7278,
62,
16624,
28401,
198,
220,
220,
220,
1279,
7278,
62,
16624,
29,
12,
34345,
796,
705,
89,
1652,
13,
1676,
70,
13,
397,
499,
4458,
198,
220,
220,
220,
1279,
7278,
62,
16624,
29,
12,
7890,
796,
651,
62,
23065,
62,
7890,
7,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
66,
62,
3605,
1370,
6739,
198,
220,
220,
220,
43504,
10619,
3268,
2043,
12576,
48920,
5390,
300,
83,
62,
16624,
24994,
3528,
15871,
1279,
7278,
62,
16624,
28401,
198,
220,
220,
220,
1279,
7278,
62,
16624,
29,
12,
34345,
796,
705,
89,
1652,
13,
1676,
70,
13,
19875,
4458,
198,
220,
220,
220,
1279,
7278,
62,
16624,
29,
12,
7890,
796,
651,
62,
19875,
62,
7890,
7,
6739,
628,
220,
220,
220,
43979,
62,
9186,
12,
26801,
62,
4906,
796,
705,
1676,
70,
4458,
198,
220,
220,
220,
43979,
62,
9186,
12,
26801,
62,
3672,
796,
705,
89,
1652,
4458,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
6941,
62,
8968,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
796,
43979,
62,
9186,
13,
198,
220,
220,
220,
6941,
62,
8968,
3784,
2617,
62,
16624,
7,
300,
83,
62,
16624,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
23065,
62,
7890,
13,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
397,
499,
62,
10459,
41876,
4731,
13,
628,
220,
220,
220,
39962,
1404,
1677,
6158,
705,
3666,
717,
1430,
6,
21628,
62,
1370,
62,
9032,
705,
10134,
15582,
8563,
6,
39319,
300,
85,
62,
397,
499,
62,
10459,
13,
198,
220,
220,
220,
374,
85,
62,
20274,
796,
1976,
565,
62,
397,
499,
18300,
62,
1102,
1851,
14804,
8841,
62,
1462,
62,
87,
8841,
62,
40477,
23,
7,
300,
85,
62,
397,
499,
62,
10459,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
19875,
62,
7890,
13,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
19875,
62,
10459,
41876,
4731,
13,
628,
220,
220,
220,
300,
85,
62,
19875,
62,
10459,
796,
705,
47934,
19875,
2196,
2625,
16,
13,
15,
1,
21004,
2625,
40477,
12,
23,
13984,
29,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
27,
397,
499,
38,
270,
2196,
2625,
85,
16,
13,
15,
13,
15,
1,
11389,
7509,
2625,
43,
5097,
62,
9864,
23680,
62,
4805,
7730,
1,
11389,
7509,
62,
9641,
2625,
85,
16,
13,
15,
13,
15,
5320,
6,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
705,
27,
292,
87,
25,
397,
499,
35555,
5907,
25,
292,
87,
2625,
4023,
1378,
2503,
13,
82,
499,
13,
785,
14,
397,
499,
19875,
1,
2196,
2625,
16,
13,
15,
5320,
6,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27,
292,
87,
25,
27160,
29,
6,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27,
4805,
7730,
34720,
29,
6,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27,
20608,
29,
57,
43,
37,
3556,
20608,
29,
6,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27,
12564,
2749,
29,
16,
3556,
12564,
2749,
29,
6,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27,
7836,
41048,
29,
36,
3556,
7836,
41048,
29,
6,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27,
47084,
11571,
29,
55,
3556,
47084,
11571,
29,
6,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
27,
9598,
50084,
29,
55,
3556,
9598,
50084,
29,
6,
11405,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_aff_nrob_v1
PUBLIC.
TYPES:
"! <p class="shorttext">Schema</p>
"! Format version
"! $required
BEGIN OF ty_interval,
"! <p class="shorttext">Number Length Domain</p>
"! Name of domain, which determines the length of the number range number.
"! Define the amount of characters available for number range intervals.
"! It must be of type NUMC or CHAR and have a field length of at least 1 and at most 20.
"! $required
number_length_domain TYPE c LENGTH 30,
"! <p class="shorttext">Percent Warning</p>
"! Percentage of numbers remaining in a number range, upon reaching which in number assignment
"! a warning is given. It must be between 0.1 and 99.9.\n\nExample: You have defined an interval
"! from 1 to 1000. If you want to issue a warning at the number 900, enter 10 (%) here.
"! $required
"! $minimum: 0.1
"! $maximum: 99.9
"! $multipleOf: 0.1
percent_warning TYPE p LENGTH 3 DECIMALS 1,
"! <p class="shorttext">Sub Type</p>
"! If you want to create subobjects for the elements of a field of the application table, specify
"! the relevant data element for this table field. This data element must be active in the Data Dictionary
"! and must have a check table. The domain of the data element must have a field length of between 1 and 6.
"! $required
sub_type TYPE c LENGTH 30,
"! <p class="shorttext">Until Year</p>
"! If you want the records of the business object to be differentiated by financial year, you set this
"! option true. This structures the intervals of a number range object.
"! $required
until_year TYPE abap_bool,
"! <p class="shorttext">Rolling</p>
"! For each interval of a number range object, the system checks when the available characters are used up.
"! In the true setting, once the available characters of an interval are used up, the system starts again
"! from the beginning and the lowest number is assigned again. You can suppress this behavior by setting
"! this option false. If you do this, no more characters from an interval are assigned once the characters
"! of the interval are used up. You can suppress rollover for the entire number range object, that
"! is, the setting applies to all the intervals contained in the object.
"! $required
rolling TYPE abap_bool,
"! <p class="shorttext">Prefix</p>
"! If it is set to true determined numbers consist of the prefix (name of subobject) and the numbers.
"! $required
prefix TYPE abap_bool,
END OF ty_interval.
"! <p class="shorttext">Buffering</p>
"! Choose a buffer type for no buffering, for buffering via main memory or for parallel buffering.
"! $values {@link zif_aff_nrob_v1.data:co_buffering}
TYPES ty_buffering TYPE c LENGTH 1.
CONSTANTS:
"! <p class="shorttext">Buffering</p>
"! Choose a buffer type for no buffering, for buffering via main memory or for parallel buffering.
BEGIN OF co_buffering,
"! <p class="shorttext">Main Memory Buffering</p>
"! Main memory buffering is the most efficient buffering solution with regards
"! to system performance. Almost all number range objects use main memory buffering. However, it does have
"! two restrictions: Numbers can no longer be assigned in chronological order. The numbering may contain gaps.
main_buffer TYPE ty_buffering VALUE 'X',
"! <p class="shorttext">Parallel Buffering</p>
"! Parallel buffering works in the same way as main memory buffering, with the
"! difference that the number packages are not stored in the main memory, but are written to the
"! table NRIVSHADOW.
parallel TYPE ty_buffering VALUE 'S',
"! <p class="shorttext">No Buffering</p>
"! No buffering method is used. A number is taken from an interval stored in database NRIV. The table line is
"! locked and this lock remains until the application that requested the number is closed, either
"! with a COMMIT WORK or a ROLLBACK.
none TYPE ty_buffering VALUE ' ',
END OF co_buffering.
TYPES:
"! <p class="shorttext">Configuration</p>
"! Configuration-specific fields
"! $required
BEGIN OF ty_configuration,
"! <p class="shorttext">Transaction ID</p>
"! Transaction code for application specific transaction
transaction_id TYPE c LENGTH 20,
"! <p class="shorttext">Buffering</p>
"! Choose a buffer type for no buffering, for buffering via main memory or for parallel buffering.
"! Default is mainBuffer.
"! $required
"! $default {@link zif_aff_nrob_v1.data:co_buffering.main_buffer}
buffering TYPE ty_buffering,
"! <p class="shorttext">Buffered Numbers</p>
"! This value specifies the numbers in buffer. In case of parallel and main memory buffering, add a
"! number for \u0027bufferedNumbers\u0027. It determines how many numbers are reserved in buffer for
"! the intervals.Default number of buffers is 10.
"! $required
"! $minimum 0
"! $maximum 99999999
"! $default '10'
buffered_numbers TYPE i,
END OF ty_configuration.
TYPES:
"! <p class="shorttext">NROB Object Type</p>
"! Object type NROB
BEGIN OF ty_main,
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60,
"! <p class="shorttext">Interval</p>
"! Interval
"! $required
interval TYPE ty_interval,
"! <p class="shorttext">Configuration</p>
"! Configuration-specific fields
"! $required
configuration TYPE ty_configuration,
END OF ty_main.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
2001,
62,
77,
22609,
62,
85,
16,
198,
220,
44731,
13,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
5320,
27054,
2611,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
18980,
2196,
198,
220,
220,
220,
366,
0,
720,
35827,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
3849,
2100,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
5320,
15057,
22313,
20021,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
6530,
286,
7386,
11,
543,
15947,
262,
4129,
286,
262,
1271,
2837,
1271,
13,
198,
220,
220,
220,
220,
220,
366,
0,
2896,
500,
262,
2033,
286,
3435,
1695,
329,
1271,
2837,
20016,
13,
198,
220,
220,
220,
220,
220,
366,
0,
632,
1276,
307,
286,
2099,
36871,
34,
393,
28521,
290,
423,
257,
2214,
4129,
286,
379,
1551,
352,
290,
379,
749,
1160,
13,
198,
220,
220,
220,
220,
220,
366,
0,
720,
35827,
198,
220,
220,
220,
220,
220,
1271,
62,
13664,
62,
27830,
41876,
269,
406,
49494,
1542,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
5320,
31905,
15932,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
36013,
286,
3146,
5637,
287,
257,
1271,
2837,
11,
2402,
8978,
543,
287,
1271,
16237,
198,
220,
220,
220,
220,
220,
366,
0,
257,
6509,
318,
1813,
13,
632,
1276,
307,
1022,
657,
13,
16,
290,
7388,
13,
24,
13,
59,
77,
59,
77,
16281,
25,
921,
423,
5447,
281,
16654,
198,
220,
220,
220,
220,
220,
366,
0,
220,
422,
352,
284,
8576,
13,
1002,
345,
765,
284,
2071,
257,
6509,
379,
262,
1271,
15897,
11,
3802,
838,
11509,
994,
13,
198,
220,
220,
220,
220,
220,
366,
0,
720,
35827,
198,
220,
220,
220,
220,
220,
366,
0,
720,
39504,
25,
657,
13,
16,
198,
220,
220,
220,
220,
220,
366,
0,
720,
47033,
25,
7388,
13,
24,
198,
220,
220,
220,
220,
220,
366,
0,
720,
48101,
5189,
25,
657,
13,
16,
198,
220,
220,
220,
220,
220,
1411,
62,
43917,
220,
220,
220,
220,
220,
41876,
279,
406,
49494,
513,
27196,
3955,
23333,
352,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
5320,
7004,
5994,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
1002,
345,
765,
284,
2251,
850,
48205,
329,
262,
4847,
286,
257,
2214,
286,
262,
3586,
3084,
11,
11986,
198,
220,
220,
220,
220,
220,
366,
0,
262,
5981,
1366,
5002,
329,
428,
3084,
2214,
13,
770,
1366,
5002,
1276,
307,
4075,
287,
262,
6060,
28261,
198,
220,
220,
220,
220,
220,
366,
0,
290,
1276,
423,
257,
2198,
3084,
13,
383,
7386,
286,
262,
1366,
5002,
1276,
423,
257,
2214,
4129,
286,
1022,
352,
290,
718,
13,
198,
220,
220,
220,
220,
220,
366,
0,
720,
35827,
198,
220,
220,
220,
220,
220,
850,
62,
4906,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
1542,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
5320,
18273,
6280,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
1002,
345,
765,
262,
4406,
286,
262,
1597,
2134,
284,
307,
47543,
416,
3176,
614,
11,
345,
900,
428,
198,
220,
220,
220,
220,
220,
366,
0,
3038,
2081,
13,
770,
8573,
262,
20016,
286,
257,
1271,
2837,
2134,
13,
198,
220,
220,
220,
220,
220,
366,
0,
720,
35827,
198,
220,
220,
220,
220,
220,
1566,
62,
1941,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
5320,
26869,
278,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
1114,
1123,
16654,
286,
257,
1271,
2837,
2134,
11,
262,
1080,
8794,
618,
262,
1695,
3435,
389,
973,
510,
13,
198,
220,
220,
220,
220,
220,
366,
0,
554,
262,
2081,
4634,
11,
1752,
262,
1695,
3435,
286,
281,
16654,
389,
973,
510,
11,
262,
1080,
4940,
757,
198,
220,
220,
220,
220,
220,
366,
0,
422,
262,
3726,
290,
262,
9016,
1271,
318,
8686,
757,
13,
921,
460,
18175,
428,
4069,
416,
4634,
198,
220,
220,
220,
220,
220,
366,
0,
428,
3038,
3991,
13,
1002,
345,
466,
428,
11,
645,
517,
3435,
422,
281,
16654,
389,
8686,
1752,
262,
3435,
198,
220,
220,
220,
220,
220,
366,
0,
286,
262,
16654,
389,
973,
510,
13,
921,
460,
18175,
4836,
2502,
329,
262,
2104,
1271,
2837,
2134,
11,
326,
198,
220,
220,
220,
220,
220,
366,
0,
318,
11,
262,
4634,
8991,
284,
477,
262,
20016,
7763,
287,
262,
2134,
13,
198,
220,
220,
220,
220,
220,
366,
0,
720,
35827,
198,
220,
220,
220,
220,
220,
10708,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
5320,
36698,
844,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
1002,
340,
318,
900,
284,
2081,
5295,
3146,
3473,
286,
262,
21231,
357,
3672,
286,
850,
15252,
8,
290,
262,
3146,
13,
198,
220,
220,
220,
220,
220,
366,
0,
720,
35827,
198,
220,
220,
220,
220,
220,
21231,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
3849,
2100,
13,
628,
198,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
5320,
36474,
1586,
3556,
79,
29,
198,
220,
366,
0,
17489,
257,
11876,
2099,
329,
645,
6940,
1586,
11,
329,
6940,
1586,
2884,
1388,
4088,
393,
329,
10730,
6940,
1586,
13,
198,
220,
366,
0,
720,
27160,
1391,
31,
8726,
1976,
361,
62,
2001,
62,
77,
22609,
62,
85,
16,
13,
7890,
25,
1073,
62,
36873,
1586,
92,
198,
220,
24412,
47,
1546,
1259,
62,
36873,
1586,
41876,
269,
406,
49494,
352,
13,
628,
220,
7102,
2257
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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p>
interface ZIF_TT_I_PROJECTS_C
public .
interfaces /BOBF/IF_LIB_CONSTANTS .
constants:
"! <p class="shorttext synchronized" lang="en">Actions</p>
BEGIN OF SC_ACTION,
BEGIN OF ZTT_I_PROJECTS,
CREATE_ZTT_I_PROJECTS TYPE /BOBF/ACT_KEY VALUE '0250E0674B721EEAAF91101B9BA7FF3B',
DELETE_ZTT_I_PROJECTS TYPE /BOBF/ACT_KEY VALUE '0250E0674B721EEAAF91101B9BA87F3B',
LOCK_ZTT_I_PROJECTS TYPE /BOBF/ACT_KEY VALUE '0250E0674B721EEAAF91101B9BA73F3B',
SAVE_ZTT_I_PROJECTS TYPE /BOBF/ACT_KEY VALUE '0250E0674B721EEAAF91101B9BA8FF3B',
UNLOCK_ZTT_I_PROJECTS TYPE /BOBF/ACT_KEY VALUE '0250E0674B721EEAAF91101B9BA77F3B',
UPDATE_ZTT_I_PROJECTS TYPE /BOBF/ACT_KEY VALUE '0250E0674B721EEAAF91101B9BA83F3B',
VALIDATE_ZTT_I_PROJECTS TYPE /BOBF/ACT_KEY VALUE '0250E0674B721EEAAF91101B9BA8BF3B',
END OF ZTT_I_PROJECTS,
END OF SC_ACTION .
constants:
"! <p class="shorttext synchronized" lang="en">Action Parameter Attributes</p>
BEGIN OF SC_ACTION_ATTRIBUTE,
BEGIN OF ZTT_I_PROJECTS,
BEGIN OF LOCK_ZTT_I_PROJECTS,
GENERIC TYPE STRING VALUE 'GENERIC',
EDIT_MODE TYPE STRING VALUE 'EDIT_MODE',
ALL_NONE TYPE STRING VALUE 'ALL_NONE',
SCOPE TYPE STRING VALUE 'SCOPE',
FORCE_INVALIDATION TYPE STRING VALUE 'FORCE_INVALIDATION',
LOCK_PARAMETER_BUFFER TYPE STRING VALUE 'LOCK_PARAMETER_BUFFER',
END OF LOCK_ZTT_I_PROJECTS,
BEGIN OF UNLOCK_ZTT_I_PROJECTS,
GENERIC TYPE STRING VALUE 'GENERIC',
EDIT_MODE TYPE STRING VALUE 'EDIT_MODE',
ALL_NONE TYPE STRING VALUE 'ALL_NONE',
SCOPE TYPE STRING VALUE 'SCOPE',
FORCE_INVALIDATION TYPE STRING VALUE 'FORCE_INVALIDATION',
LOCK_PARAMETER_BUFFER TYPE STRING VALUE 'LOCK_PARAMETER_BUFFER',
END OF UNLOCK_ZTT_I_PROJECTS,
END OF ZTT_I_PROJECTS,
END OF SC_ACTION_ATTRIBUTE .
constants:
"! <p class="shorttext synchronized" lang="en">Alternative Keys</p>
BEGIN OF SC_ALTERNATIVE_KEY,
BEGIN OF ZTT_I_PROJECTS,
DB_KEY TYPE /BOBF/OBM_ALTKEY_KEY VALUE '0250E0674B721EEAAF91101B9BA9DF3B',
END OF ZTT_I_PROJECTS,
END OF SC_ALTERNATIVE_KEY .
constants:
"! <p class="shorttext synchronized" lang="en">Associations</p>
BEGIN OF SC_ASSOCIATION,
BEGIN OF ZTT_I_PROJECTS,
LOCK TYPE /BOBF/OBM_ASSOC_KEY VALUE '0250E0674B721EEAAF91101B9BA71F3B',
MESSAGE TYPE /BOBF/OBM_ASSOC_KEY VALUE '0250E0674B721EEAAF91101B9BA6DF3B',
PROPERTY TYPE /BOBF/OBM_ASSOC_KEY VALUE '0250E0674B721EEAAF91101B9BA7DF3B',
END OF ZTT_I_PROJECTS,
BEGIN OF ZTT_I_PROJECTS_LOCK,
TO_PARENT TYPE /BOBF/OBM_ASSOC_KEY VALUE '0250E0674B721EEAAF91101B9BA95F3B',
END OF ZTT_I_PROJECTS_LOCK,
BEGIN OF ZTT_I_PROJECTS_MESSAGE,
TO_PARENT TYPE /BOBF/OBM_ASSOC_KEY VALUE '0250E0674B721EEAAF91101B9BA93F3B',
END OF ZTT_I_PROJECTS_MESSAGE,
BEGIN OF ZTT_I_PROJECTS_PROPERTY,
TO_PARENT TYPE /BOBF/OBM_ASSOC_KEY VALUE '0250E0674B721EEAAF91101B9BA97F3B',
END OF ZTT_I_PROJECTS_PROPERTY,
END OF SC_ASSOCIATION .
constants:
"! <p class="shorttext synchronized" lang="en">Association Parameter Attributes</p>
BEGIN OF SC_ASSOCIATION_ATTRIBUTE,
BEGIN OF ZTT_I_PROJECTS,
BEGIN OF PROPERTY,
ALL_NODE_PROPERTY TYPE STRING VALUE 'ALL_NODE_PROPERTY',
ALL_NODE_ATTRIBUTE_PROPERTY TYPE STRING VALUE 'ALL_NODE_ATTRIBUTE_PROPERTY',
ALL_ASSOCIATION_PROPERTY TYPE STRING VALUE 'ALL_ASSOCIATION_PROPERTY',
ALL_ASSOCIATION_ATTRIBUTE_PROP TYPE STRING VALUE 'ALL_ASSOCIATION_ATTRIBUTE_PROP',
ALL_ACTION_PROPERTY TYPE STRING VALUE 'ALL_ACTION_PROPERTY',
ALL_ACTION_ATTRIBUTE_PROPERTY TYPE STRING VALUE 'ALL_ACTION_ATTRIBUTE_PROPERTY',
ALL_QUERY_PROPERTY TYPE STRING VALUE 'ALL_QUERY_PROPERTY',
ALL_QUERY_ATTRIBUTE_PROPERTY TYPE STRING VALUE 'ALL_QUERY_ATTRIBUTE_PROPERTY',
ALL_SUBTREE_PROPERTY TYPE STRING VALUE 'ALL_SUBTREE_PROPERTY',
END OF PROPERTY,
END OF ZTT_I_PROJECTS,
END OF SC_ASSOCIATION_ATTRIBUTE .
constants:
"! <p class="shorttext synchronized" lang="en">#GENERATED#</p>
SC_BO_KEY TYPE /BOBF/OBM_BO_KEY VALUE '0250E0674B721EEAAF91101B9BA63F3B' .
constants:
"! <p class="shorttext synchronized" lang="en">#GENERATED#</p>
SC_BO_NAME TYPE /BOBF/OBM_NAME VALUE 'ZTT_I_PROJECTS' .
constants:
"! <p class="shorttext synchronized" lang="en">Determinations</p>
BEGIN OF SC_DETERMINATION,
BEGIN OF ZTT_I_PROJECTS,
ACTION_AND_FIELD_CONTROL TYPE /BOBF/DET_KEY VALUE '0250E0674B721EEAAF91101B9BA9FF3B',
ADMIN_DATA TYPE /BOBF/DET_KEY VALUE '0250E0674B721EEAAF9114FA8B261F3C',
END OF ZTT_I_PROJECTS,
END OF SC_DETERMINATION .
constants:
"! <p class="shorttext synchronized" lang="en">Groups</p>
BEGIN OF SC_GROUP,
ZTT_I_PROJECTS TYPE /BOBF/OBM_GROUP_KEY VALUE '0250E0674B721EEAAF911C180753DF40',
END OF SC_GROUP .
constants:
SC_MODEL_VERSION TYPE /BOBF/CONF_VERSION VALUE '00000' .
constants:
"! <p class="shorttext synchronized" lang="en">Nodes</p>
BEGIN OF SC_NODE,
ZTT_I_PROJECTS TYPE /BOBF/OBM_NODE_KEY VALUE '0250E0674B721EEAAF91101B9BA67F3B',
ZTT_I_PROJECTS_LOCK TYPE /BOBF/OBM_NODE_KEY VALUE '0250E0674B721EEAAF91101B9BA6FF3B',
ZTT_I_PROJECTS_MESSAGE TYPE /BOBF/OBM_NODE_KEY VALUE '0250E0674B721EEAAF91101B9BA6BF3B',
ZTT_I_PROJECTS_PROPERTY TYPE /BOBF/OBM_NODE_KEY VALUE '0250E0674B721EEAAF91101B9BA7BF3B',
END OF SC_NODE .
constants:
"! <p class="shorttext synchronized" lang="en">Node Attributes</p>
BEGIN OF SC_NODE_ATTRIBUTE,
BEGIN OF ZTT_I_PROJECTS,
NODE_DATA TYPE STRING VALUE 'NODE_DATA',
CODE TYPE STRING VALUE 'CODE',
NAME TYPE STRING VALUE 'NAME',
STARTED_ON TYPE STRING VALUE 'STARTED_ON',
ENDED_ON TYPE STRING VALUE 'ENDED_ON',
TR_TARGET TYPE STRING VALUE 'TR_TARGET',
CTS_PROJECT TYPE STRING VALUE 'CTS_PROJECT',
ADMIN_DATA TYPE STRING VALUE 'ADMIN_DATA',
CREA_DATE_TIME TYPE STRING VALUE 'CREA_DATE_TIME',
CREA_UNAME TYPE STRING VALUE 'CREA_UNAME',
LCHG_DATE_TIME TYPE STRING VALUE 'LCHG_DATE_TIME',
LCHG_UNAME TYPE STRING VALUE 'LCHG_UNAME',
END OF ZTT_I_PROJECTS,
END OF SC_NODE_ATTRIBUTE .
constants:
"! <p class="shorttext synchronized" lang="en">Node Categories</p>
BEGIN OF SC_NODE_CATEGORY,
BEGIN OF ZTT_I_PROJECTS,
ROOT TYPE /BOBF/OBM_NODE_CAT_KEY VALUE '0250E0674B721EEAAF91101B9BA69F3B',
END OF ZTT_I_PROJECTS,
END OF SC_NODE_CATEGORY .
constants:
"! <p class="shorttext synchronized" lang="en">Validations</p>
BEGIN OF SC_VALIDATION,
BEGIN OF ZTT_I_PROJECTS,
PROJECT_CODE TYPE /BOBF/VAL_KEY VALUE '0250E0674B721EEAAF911BC1D8741F40',
END OF ZTT_I_PROJECTS,
END OF SC_VALIDATION .
endinterface.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
8645,
515,
4757,
1187,
26491,
3556,
79,
29,
198,
39994,
1168,
5064,
62,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
62,
34,
198,
220,
1171,
764,
628,
198,
220,
20314,
1220,
8202,
29499,
14,
5064,
62,
40347,
62,
10943,
2257,
1565,
4694,
764,
628,
220,
38491,
25,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
32,
2733,
3556,
79,
29,
198,
220,
220,
220,
347,
43312,
3963,
6374,
62,
44710,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1168,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
11,
198,
29244,
6158,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
8202,
29499,
14,
10659,
62,
20373,
26173,
8924,
705,
2999,
1120,
36,
15,
45385,
33,
22,
2481,
6500,
38540,
35549,
486,
33,
24,
4339,
22,
5777,
18,
33,
3256,
198,
5550,
2538,
9328,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
8202,
29499,
14,
10659,
62,
20373,
26173,
8924,
705,
2999,
1120,
36,
15,
45385,
33,
22,
2481,
6500,
38540,
35549,
486,
33,
24,
4339,
5774,
37,
18,
33,
3256,
198,
406,
11290,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
8202,
29499,
14,
10659,
62,
20373,
26173,
8924,
705,
2999,
1120,
36,
15,
45385,
33,
22,
2481,
6500,
38540,
35549,
486,
33,
24,
4339,
4790,
37,
18,
33,
3256,
198,
14719,
6089,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
8202,
29499,
14,
10659,
62,
20373,
26173,
8924,
705,
2999,
1120,
36,
15,
45385,
33,
22,
2481,
6500,
38540,
35549,
486,
33,
24,
4339,
23,
5777,
18,
33,
3256,
198,
4725,
36840,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
8202,
29499,
14,
10659,
62,
20373,
26173,
8924,
705,
2999,
1120,
36,
15,
45385,
33,
22,
2481,
6500,
38540,
35549,
486,
33,
24,
4339,
3324,
37,
18,
33,
3256,
198,
35717,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
8202,
29499,
14,
10659,
62,
20373,
26173,
8924,
705,
2999,
1120,
36,
15,
45385,
33,
22,
2481,
6500,
38540,
35549,
486,
33,
24,
4339,
5999,
37,
18,
33,
3256,
198,
26173,
2389,
6158,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
8202,
29499,
14,
10659,
62,
20373,
26173,
8924,
705,
2999,
1120,
36,
15,
45385,
33,
22,
2481,
6500,
38540,
35549,
486,
33,
24,
4339,
23,
29499,
18,
33,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
1168,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
11,
198,
220,
220,
220,
23578,
3963,
6374,
62,
44710,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
12502,
25139,
2357,
49213,
3556,
79,
29,
198,
220,
220,
220,
347,
43312,
3963,
6374,
62,
44710,
62,
1404,
5446,
9865,
37780,
11,
198,
220,
220,
220,
220,
220,
220,
220,
347,
43312,
3963,
1168,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
11,
198,
220,
220,
220,
220,
220,
220,
220,
347,
43312,
3963,
406,
11290,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
11,
198,
24700,
1137,
2149,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
35353,
1137,
2149,
3256,
198,
48483,
62,
49058,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
24706,
62,
49058,
3256,
198,
11096,
62,
45,
11651,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
7036,
62,
45,
11651,
3256,
198,
6374,
32135,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
6173,
32135,
3256,
198,
7473,
5222,
62,
1268,
23428,
2389,
6234,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
13775,
5222,
62,
1268,
23428,
2389,
6234,
3256,
198,
406,
11290,
62,
27082,
2390,
2767,
1137,
62,
19499,
45746,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
36840,
62,
27082,
2390,
2767,
1137,
62,
19499,
45746,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
406,
11290,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
11,
198,
220,
220,
220,
220,
220,
220,
220,
347,
43312,
3963,
4725,
36840,
62,
57,
15751,
62,
40,
62,
31190,
41,
2943,
4694,
11,
198,
24700,
1137,
2149,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
35353,
1137,
2149,
3256,
198,
48483,
62,
49058,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
24706,
62,
49058,
3256,
198,
11096,
62,
45,
11651,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
7036,
62,
45,
11651,
3256,
198,
6374,
32135,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
19269,
2751,
26173,
8924,
705,
6173,
32135,
3256,
198,
7473,
5222,
62,
1268,
23428,
2389
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_BADI_IMPL_SMQ_INFO definition
public
inheriting from /UI2/CL_ADE_BADI_DEFAULT
final
create public .
public section.
interfaces /UI2/IF_ADE_BADI_CALLBACK_SRC .
methods CONSTRUCTOR .
methods /UI2/IF_ADE_BADI_DATA_PROVIDER~GET_DISPLAY_NAME
redefinition .
methods /UI2/IF_ADE_BADI_DATA_PROVIDER~GET_SOURCE_INFORMATION
redefinition .
methods /UI2/IF_ADE_BADI_DATA_PROVIDER~VERIFY_SOURCE_AVAILABLE
redefinition .
protected section.
data MV_MANDT type SYMANDT .
data MV_SYSID type SYSYSID .
data MV_TEMPLATE_LINK type STRING .
private section.
ENDCLASS.
CLASS ZCL_BADI_IMPL_SMQ_INFO IMPLEMENTATION.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_BADI_IMPL_SMQ_INFO->/UI2/IF_ADE_BADI_CALLBACK_SRC~CALLBACK_REMOTE_SOURCE
* +-------------------------------------------------------------------------------------------------+
* | [--->] P_TASK TYPE CLIKE
* +--------------------------------------------------------------------------------------</SIGNATURE>
METHOD /ui2/if_ade_badi_callback_src~callback_remote_source.
***---------------------------------------------------------------------------------------------------------
*** This method is called, when the RFC retrieves a result. With the statement RECEIVE RESULTS FROM FUNCTION
*** the actual exporting parameters are obtained from the FM. The messages should then be mapped to the
*** standard message format of /ui2/ade_s_diagnostics_log. In the last step the messages are passed to the
*** proxy instance. The proxy instance will take care of delivering them to App Support.
***---------------------------------------------------------------------------------------------------------
DATA: lt_rfcqueue TYPE STANDARD TABLE OF trfcqin,
lv_message(250) TYPE c.
"Get messages from callback
RECEIVE RESULTS FROM FUNCTION 'TRFC_GET_QIN_INFO_DETAILS'
TABLES
qtable = lt_rfcqueue
EXCEPTIONS
system_failure = 1 MESSAGE lv_message
communication_failure = 2 MESSAGE lv_message
OTHERS = 3.
"map messages to target format
LOOP AT lt_rfcqueue ASSIGNING FIELD-SYMBOL(<ls_entry>).
"we are only interested in queues in status failed
IF <ls_entry>-qstate <> 'SYSFAIL'.
CONTINUE.
ENDIF.
"build a message line for each sysfail SMQ2 entry
APPEND VALUE #(
s_keys = ms_keys
username = ms_keys-username
source = /ui2/if_ade_badi_data_provider=>sc_source_remote
type = 'E'
msg_date = <ls_entry>-qrfcdatum
msg_time = <ls_entry>-qrfcuzeit
error_text = <ls_entry>-errmess
context = substring( val = <ls_entry>-qname off = 14 ) "add delivery number as context information (last part of queue name)
sysid = mv_sysid "determined in GET_SOURCE_INFORMATION
client = mv_mandt "determined in GET_SOURCE_INFORMATION
"The template link has been set GET_SOURCE_INFORMATION for easier use here. Read more will now lead to the SMQ2 log entry.
more_info_link = replace( val = mv_template_link sub = 'MYPLACEHOLDER' with = <ls_entry>-qname )
) TO mt_messages.
ENDLOOP.
"set in result list in the proxy instance, which will dispatch it to the UI
me->mo_proxy_instance->callback_remote_data_source( iv_id = ms_keys-id
it_messages = mt_messages ).
ENDMETHOD.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_BADI_IMPL_SMQ_INFO->/UI2/IF_ADE_BADI_DATA_PROVIDER~GET_DISPLAY_NAME
* +-------------------------------------------------------------------------------------------------+
* | [--->] IV_APP_TYPE TYPE /UI2/FDM_APP_TYPE
* | [--->] IV_DEST TYPE RFCDEST
* | [<---] ES_DISPLAY_NAME TYPE /UI2/ADE_S_DISPLAY_NAMES
* | [<---] EV_LINK_TO_LOG TYPE /UI2/ADE_LINK
* | [!CX!] /IWBEP/CX_MGW_NOT_IMPL_EXC
* | [!CX!] /UI2/CX_ADE
* +--------------------------------------------------------------------------------------</SIGNATURE>
METHOD /ui2/if_ade_badi_data_provider~get_display_name.
***---------------------------------------------------------------------------------------------------------
*** In this method App Support retrieves the name of the menu entry and a link to an original log
*** transaction, for example a general link to SLG1.
***---------------------------------------------------------------------------------------------------------
"This is the name displayed in the menu, ideally the text is translated into different languages
es_display_name-name = 'Deliveries Inbound Queue'.
"this method creates a WebGUI link for the entered transaction
ev_link_to_log = /ui2/cl_ade_configuration=>get_instance( )->create_webgui_link(
EXPORTING
iv_transaction = 'SMQ2'
iv_rfc_destination = iv_dest ).
ENDMETHOD.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_BADI_IMPL_SMQ_INFO->/UI2/IF_ADE_BADI_DATA_PROVIDER~GET_SOURCE_INFORMATION
* +-------------------------------------------------------------------------------------------------+
* | [--->] IV_RFC_DEST TYPE RFCDEST
* | [--->] IS_KEYS TYPE /UI2/ADE_S_KEYS
* | [<---] ET_MESSAGES TYPE /UI2/ADE_T_DIAGNOSTICS_LOG
* | [!CX!] /IWBEP/CX_MGW_NOT_IMPL_EXC
* | [!CX!] /UI2/CX_ADE
* +--------------------------------------------------------------------------------------</SIGNATURE>
METHOD /ui2/if_ade_badi_data_provider~get_source_information.
***--------------------------------------------------------------------------------------------
*** The usage of this method depends on the type of Source, which is being used. In case the
*** messages are retrieved from a local source, the source (db table, local fm, etc.) can be
*** collected here directly and passed to ET_MESSAGES.
*** For a remote source it is recommended to use the asynchronuous processing, via usage of
*** STARTING NEW TASK. This way the application remains stable, even if the remote source
*** triggers a timeout. In case of a remote source the messages are retrieved in method
*** CALLBACK_REMOTE_SOURCE and do not have to be provided here.
***---------------------------------------------------------------------------------------------
DATA:
lv_task(32) TYPE c,
lv_qname TYPE trfcqnam,
lv_message TYPE c LENGTH 250.
IF mv_mandt IS INITIAL.
" set client and system id to add them in CALLBACK_REMOTE_SOURCE
/ui2/cl_ade_configuration=>get_instance( )->get_system_client_by_rfc_dest(
EXPORTING
iv_rfc_dest = iv_rfc_dest " Logical RFC Destination - Points to SAP system
IMPORTING
ev_sysid = mv_sysid " Target system
ev_client = mv_mandt "target client
).
"later in the callback function we can't call this method, as we run in background -> therefore create template link for log queues
mv_template_link = /ui2/cl_ade_configuration=>get_instance( )->create_webgui_link(
EXPORTING
iv_transaction = 'SMQ2'
it_query_parms = VALUE #( ( name = 'QNAME' value = 'MYPLACEHOLDER' ) ) "this is the parameter in SMQ2 -> MYPLACEHOLDER will be removed later
iv_rfc_destination = iv_rfc_dest ).
ENDIF.
"This entry depends on how the RFC queues are setup in the remote system. Here we're reading inbound queues from the same system
"and client, as EWM is on the same system.
lv_qname = 'DLWS' && mv_sysid && 'CLNT' && mv_mandt && '*'.
"To call the function module in a separate task, we need to provide a task id. Ideally related to our BAdI
lv_task = is_keys-id.
"Here the remote RFC function module is called in a new task. As a callback the interface method callback_remote_source
"is used, which has to be implemented by this class (Implement interface /UI2/IF_ADE_BADI_CALLBACK_SRC)
CALL FUNCTION 'TRFC_GET_QIN_INFO_DETAILS'
STARTING NEW TASK lv_task "maximum length 32
DESTINATION iv_rfc_dest
CALLING /ui2/if_ade_badi_callback_src~callback_remote_source ON END OF TASK
EXPORTING
qname = lv_qname
client = mv_mandt
EXCEPTIONS
communication_failure = 1 MESSAGE lv_message
system_failure = 2 MESSAGE lv_message
OTHERS = 3.
IF sy-subrc <> 0.
/ui2/cx_ade=>raise_error_in_fm(
EXPORTING
iv_fm_name = 'TRFC_GET_QIN_INFO_DETAILS'
iv_error = CONV #( lv_message )
).
ENDIF.
ENDMETHOD.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_BADI_IMPL_SMQ_INFO->/UI2/IF_ADE_BADI_DATA_PROVIDER~VERIFY_SOURCE_AVAILABLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] IV_RFC_DEST TYPE RFCDEST
* | [--->] IS_KEYS TYPE /UI2/ADE_S_KEYS
* | [--->] IV_ACTVTY TYPE ACTIV_AUTH
* | [<---] EV_AVAILABLE TYPE CHAR01
* | [<---] EV_OTHER_USER TYPE ABAP_BOOL
* | [!CX!] /IWBEP/CX_MGW_NOT_IMPL_EXC
* | [!CX!] /UI2/CX_ADE
* +--------------------------------------------------------------------------------------</SIGNATURE>
METHOD /ui2/if_ade_badi_data_provider~verify_source_available.
***---------------------------------------------------------------------------------------------------------
*** In this method App Support decides, if the BAdi implementation is relevant for the current application
*** to retrieve the correct appkey, simply debug the first time here, when in the application.
***---------------------------------------------------------------------------------------------------------
ev_available = /ui2/if_ade_badi_data_provider~sc_status_not_available.
"Check if App = Display Outbound delivery (Type: WebGUI, Tx: VL02n)
IF is_keys-appkey <> 'X-SAP-UI2-PAGE:X-SAP-UI2-CATALOGPAGE:SAP_LE_BC_OD_PROC:00O2TOBXDLX6WIZLS0DUK2RL0'.
RETURN.
ENDIF.
"now some more specific check, if the BAdI should be called here. In this scenario a log from a remote server
"is retrieved. Therefore we wait for a adeRemoteServer entry. If the log is from a local source, simply wait for
"adeLocalServer
IF is_keys-id_lvl1 <> 'adeLocalServer'.
"-! Important - this will make the entry available in the UI - after method GET_DISPLAY_NAME has been implemented
ev_available = /ui2/if_ade_badi_data_provider~sc_status_available.
"-! Important - set keys for remote proxy processing in CALLBACK_REMOTE_SOURCE and message handling
ms_keys = is_keys.
"-! register at App Support proxy hub, as this BAdI implements the remote interface, additionally set is remote in CONSTRUCTOR
me->register_at_proxy( ).
ENDIF.
ENDMETHOD.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_BADI_IMPL_SMQ_INFO->CONSTRUCTOR
* +-------------------------------------------------------------------------------------------------+
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CONSTRUCTOR.
"-! register as remote source here
super->constructor( iv_is_remote = abap_true ).
endmethod.
ENDCLASS. | [
4871,
1168,
5097,
62,
33,
2885,
40,
62,
3955,
6489,
62,
12310,
48,
62,
10778,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1220,
10080,
17,
14,
5097,
62,
19266,
62,
33,
2885,
40,
62,
7206,
38865,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1220,
10080,
17,
14,
5064,
62,
19266,
62,
33,
2885,
40,
62,
34,
7036,
31098,
62,
50,
7397,
764,
628,
220,
5050,
7102,
46126,
1581,
764,
628,
220,
5050,
1220,
10080,
17,
14,
5064,
62,
19266,
62,
33,
2885,
40,
62,
26947,
62,
41283,
41237,
93,
18851,
62,
26288,
31519,
62,
20608,
198,
220,
220,
220,
34087,
17750,
764,
198,
220,
5050,
1220,
10080,
17,
14,
5064,
62,
19266,
62,
33,
2885,
40,
62,
26947,
62,
41283,
41237,
93,
18851,
62,
47690,
62,
1268,
35036,
198,
220,
220,
220,
34087,
17750,
764,
198,
220,
5050,
1220,
10080,
17,
14,
5064,
62,
19266,
62,
33,
2885,
40,
62,
26947,
62,
41283,
41237,
93,
5959,
5064,
56,
62,
47690,
62,
10116,
32,
4146,
17534,
198,
220,
220,
220,
34087,
17750,
764,
198,
24326,
2665,
13,
628,
220,
1366,
32947,
62,
44,
6981,
51,
2099,
19704,
44,
6981,
51,
764,
198,
220,
1366,
32947,
62,
50,
16309,
2389,
2099,
311,
16309,
16309,
2389,
764,
198,
220,
1366,
32947,
62,
51,
3620,
6489,
6158,
62,
43,
17248,
2099,
19269,
2751,
764,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
33,
2885,
40,
62,
3955,
6489,
62,
12310,
48,
62,
10778,
30023,
2538,
10979,
6234,
13,
628,
198,
9,
1279,
46224,
40086,
29,
10097,
19351,
6329,
10,
198,
9,
930,
2262,
590,
5094,
11789,
1168,
5097,
62,
33,
2885,
40,
62,
3955,
6489,
62,
12310,
48,
62,
10778,
3784,
14,
10080,
17,
14,
5064,
62,
19266,
62,
33,
2885,
40,
62,
34,
7036,
31098,
62,
50,
7397,
93,
34,
7036,
31098,
62,
40726,
23051,
62,
47690,
198,
9,
1343,
10097,
3880,
19529,
198,
9,
930,
685,
438,
3784,
60,
350,
62,
51,
1921,
42,
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,
220,
220,
220,
220,
220,
220,
220,
43749,
7336,
198,
9,
1343,
10097,
19351,
438,
3556,
46224,
40086,
29,
198,
220,
337,
36252,
1220,
9019,
17,
14,
361,
62,
671,
62,
65,
9189,
62,
47423,
62,
10677,
93,
47423,
62,
47960,
62,
10459,
13,
198,
8162,
10097,
3880,
45537,
198,
8162,
770,
2446,
318,
1444,
11,
618,
262,
30978,
13236,
1158,
257,
1255,
13,
2080,
262,
2643,
19644,
36,
9306,
15731,
35342,
16034,
29397,
4177,
2849,
198,
8162,
262,
4036,
39133,
10007,
389,
6492,
422,
262,
18695,
13,
383,
6218,
815,
788,
307,
27661,
284,
262,
198,
8162,
3210,
3275,
5794,
286,
1220,
9019,
17,
14,
671,
62,
82,
62,
47356,
34558,
62,
6404,
13,
554,
262,
938,
2239,
262,
6218,
389,
3804,
284,
262,
198,
8162,
15741,
4554,
13,
383,
15741,
4554,
481,
1011,
1337,
286,
13630,
606,
284,
2034,
7929,
13,
198,
8162,
10097,
3880,
45537,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
81,
16072,
36560,
220,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
491,
16072,
80,
259,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
20500,
7,
9031,
8,
220,
41876,
269,
13,
628,
220,
220,
220,
366,
3855,
6218,
422,
23838,
198,
220,
220,
220,
19644,
36,
9306,
15731,
35342,
16034,
29397,
4177,
2849,
705,
5446,
4851,
62,
18851,
62,
48,
1268,
62,
10778,
62,
35,
20892,
45484,
6,
198,
220,
220,
220,
220,
309,
6242,
28378,
198,
220,
220,
220,
220,
220,
220,
220,
10662,
11487,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
81,
16072,
36560,
198,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
1080,
62,
32165,
495,
220,
220,
220,
220,
220,
220,
220,
796,
352,
337,
1546,
4090,
8264,
300,
85,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
6946,
62,
32165,
495,
796,
362,
337,
1546,
4090,
8264,
300,
85,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
796,
513,
13,
628,
198,
220,
220,
220,
366,
8899,
6218,
284,
2496,
5794,
198,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
81,
16072,
36560,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
7278,
62,
13000,
29,
737,
198,
220,
220,
220,
220,
220,
366,
732,
389,
691,
4609,
287,
43359,
287,
3722,
4054,
198,
220,
220,
220,
220,
220,
16876,
1279,
7278,
62,
13000,
29,
12,
80,
5219,
1279,
29,
705,
50,
16309,
7708,
4146,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
366,
11249,
257,
3275,
1627,
329,
1123,
25064,
32165,
9447,
48,
17,
5726,
198,
220,
220,
220,
220,
220,
43504,
10619,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
62,
13083,
220,
220,
220,
220,
220,
220,
220,
220,
796,
13845,
62,
13083,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20579,
220,
220,
220,
220,
220,
220,
796,
13845,
62,
13083,
12,
29460,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2723,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1220,
9019,
17,
14,
361,
62,
671,
62,
65,
9189,
62,
7890,
62,
15234,
1304,
14804,
1416,
62,
10459,
62,
47960,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
36,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
62,
4475,
220,
220,
220,
220,
220,
220,
796,
1279,
7278,
62,
13000,
29,
12,
80,
41871,
10210,
21307,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
62,
2435,
220,
220,
220,
220,
220,
220,
796,
1279,
7278,
62,
13000,
29,
12,
80,
81,
16072
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_dbbr_jumplist_param_table DEFINITION
PUBLIC
INHERITING FROM zcl_uitb_generic_table
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor
IMPORTING
!it_jump_params TYPE zdbbr_jumpparam_data_ui_itab
!ir_query_fields TYPE REF TO zcl_dbbr_tabfield_list
!it_table_to_alias_map TYPE zsat_table_to_alias_map_itab .
METHODS delete_selected_params .
METHODS param_id_f4 .
METHODS param_value_f4 .
METHODS validate
REDEFINITION .
METHODS zif_uitb_table~add_line
REDEFINITION .
METHODS zif_uitb_table~update_screen_attributes
REDEFINITION .
PROTECTED SECTION.
PRIVATE SECTION.
CONSTANTS:
BEGIN OF mc_table_fields,
param_id TYPE dynfnam VALUE 'GS_PARAM-PARAMETER_ID',
param_value TYPE dynfnam VALUE 'GS_PARAM-PARAM_VALUE',
END OF mc_table_fields.
DATA mr_query_fields TYPE REF TO zcl_dbbr_tabfield_list.
DATA mt_table_to_alias_map TYPE zsat_table_to_alias_map_itab.
ENDCLASS.
CLASS zcl_dbbr_jumplist_param_table IMPLEMENTATION.
METHOD constructor.
FIELD-SYMBOLS: <ls_jump_param> TYPE zdbbr_jumpparam_data_ui.
super->constructor( ).
mr_query_fields = ir_query_fields.
mt_table_to_alias_map = it_table_to_alias_map.
" init some global data references from ui
DATA(lr_data_cache) = zcl_uitb_data_cache=>get_instance( zif_dbbr_c_report_id=>jump_list_manager ).
mr_table_data = lr_data_cache->get_data_ref( zif_dbbr_jumplist_var_ids=>c_t_params ).
mr_current_line = lr_data_cache->get_data_ref( zif_dbbr_jumplist_var_ids=>c_s_param ).
mr_tablecontrol = CAST #( lr_data_cache->get_data_ref( zif_dbbr_jumplist_var_ids=>c_params_tc ) ).
*... fill parameter table
CAST zdbbr_jumpparam_data_ui_itab( mr_table_data )->* = it_jump_params.
CLEAR CAST zdbbr_jumpparam_data_ui( mr_current_line )->*.
*... build alias fieldnames if needed
LOOP AT CAST zdbbr_jumpparam_data_ui_itab( mr_table_data )->* ASSIGNING <ls_jump_param>.
IF <ls_jump_param>-param_field <> space.
DATA(lr_param_field) = mr_query_fields->get_field_ref(
iv_tabname_alias = <ls_jump_param>-param_table
iv_fieldname = <ls_jump_param>-param_field
).
<ls_jump_param>-value = lr_param_field->sql_fieldname.
ELSE.
<ls_jump_param>-value = <ls_jump_param>-param_value.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD delete_selected_params.
FIELD-SYMBOLS: <lt_table> TYPE zdbbr_jumpparam_data_ui_itab.
ASSIGN mr_table_data->* TO <lt_table>.
DELETE <lt_table> WHERE marked = abap_true.
ENDMETHOD.
METHOD param_id_f4.
DATA: lv_value TYPE zsat_value.
FIELD-SYMBOLS: <ls_current_line> TYPE zdbbr_jumpparam_data_ui.
ASSIGN mr_current_line->* TO <ls_current_line>.
zcl_dbbr_f4_helper=>call_built_in_f4(
EXPORTING
iv_repid = zif_dbbr_c_report_id=>jump_list_manager
iv_selfield_name = mc_table_fields-param_id
iv_tablename = 'TPARA'
iv_fieldname = 'PARAMID'
CHANGING
cv_value = lv_value
).
IF lv_value IS NOT INITIAL.
<ls_current_line>-parameter_id = lv_value.
ENDIF.
ENDMETHOD.
METHOD param_value_f4.
FIELD-SYMBOLS: <ls_current_line> TYPE zdbbr_jumpparam_data_ui.
DATA(lr_join_field_f4) = NEW zcl_dbbr_tabfield_tree_f4(
iv_screen_title = 'Value help for query Field'
io_tree_node_filler = NEW zcl_dbbr_tabf_treeno_fill(
ir_tabfield_list = mr_query_fields
)
).
lr_join_field_f4->display_value_help(
IMPORTING ev_chosen_field = DATA(lv_field)
ev_chosen_table_alias = DATA(lv_tabname_alias)
ev_chosen_field_with_alias = DATA(lv_field_with_alias) ).
IF lv_field IS NOT INITIAL.
ASSIGN mr_current_line->* TO <ls_current_line>.
<ls_current_line>-value = lv_field_with_alias.
<ls_current_line>-param_field = lv_field.
<ls_current_line>-param_table = lv_tabname_alias.
ENDIF.
ENDMETHOD.
METHOD validate.
FIELD-SYMBOLS: <lt_table> TYPE zdbbr_jumpparam_data_ui_itab.
" disable validation for delete line action
CHECK cv_function_code <> 'DELETE'.
ASSIGN mr_table_data->* TO <lt_table>.
DATA(lr_cursor) = zcl_uitb_cursor=>get_cursor( if_reset = abap_false ).
LOOP AT <lt_table> ASSIGNING FIELD-SYMBOL(<ls_current_line>).
DATA(lv_index) = sy-tabix.
<ls_current_line>-has_error = abap_true.
IF <ls_current_line>-parameter_id IS INITIAL.
lr_cursor->set_line( lv_index ).
lr_cursor->set_field( mc_table_fields-param_id ).
" clear function upon error
CLEAR cv_function_code.
MESSAGE s066(zdbbr_info) DISPLAY LIKE 'E'.
RETURN.
ELSE. " check the validity of the parameter name
ENDIF.
" no fieldname/value for parameter supplied
IF <ls_current_line>-value IS INITIAL.
lr_cursor->set_line( lv_index ).
lr_cursor->set_field( mc_table_fields-param_value ).
" clear function upon error
CLEAR cv_function_code.
MESSAGE s067(zdbbr_info) DISPLAY LIKE 'E'.
RETURN.
ELSE. " check the validity of the value
IF <ls_current_line>-value CP |'*'|.
" clear tab/field fields for param value if a string literal was entered
CLEAR : <ls_current_line>-param_field,
<ls_current_line>-param_table.
<ls_current_line>-param_value = <ls_current_line>-value.
ELSE.
CLEAR: <ls_current_line>-param_value.
TRY.
DATA(ls_param_field) = mr_query_fields->get_field_by_sql_name( CONV #( <ls_current_line>-value ) ).
<ls_current_line>-param_field = ls_param_field-fieldname.
<ls_current_line>-param_table = ls_param_field-tabname_alias.
CATCH cx_sy_itab_line_not_found.
CLEAR cv_function_code.
MESSAGE s014(zdbbr_exception) WITH <ls_current_line>-param_value DISPLAY LIKE 'E'.
RETURN.
ENDTRY.
ENDIF.
ENDIF.
CLEAR <ls_current_line>-has_error.
ENDLOOP.
" confirm that there is at least one active parameter
IF cv_function_code = 'ENTER' AND
<lt_table> IS NOT INITIAL AND
NOT line_exists( <lt_table>[ active = abap_true ] ).
CLEAR cv_function_code.
MESSAGE s068(zdbbr_info) DISPLAY LIKE 'E'.
RETURN.
ENDIF.
ENDMETHOD.
METHOD zif_uitb_table~add_line.
DATA(lv_new_line) = super->zif_uitb_table~add_line( ).
IF lv_new_line > 0.
DATA(lr_cursor) = zcl_uitb_cursor=>get_cursor( if_reset = abap_false ).
lr_cursor->set_line( lv_new_line ).
lr_cursor->set_field( mc_table_fields-param_id ).
ENDIF.
ENDMETHOD.
METHOD zif_uitb_table~update_screen_attributes.
DATA: ls_screen TYPE screen.
FIELD-SYMBOLS: <ls_current_line> TYPE zdbbr_jumpparam_data_ui.
super->zif_uitb_table~update_screen_attributes( ).
ASSIGN mr_current_line->* TO <ls_current_line>.
IF <ls_current_line>-parameter_id IS NOT INITIAL AND <ls_current_line>-has_error = abap_false.
LOOP AT SCREEN INTO ls_screen.
IF ls_screen-name = mc_table_fields-param_id.
ls_screen-input = 0.
MODIFY SCREEN FROM ls_screen.
ENDIF.
ENDLOOP.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
9945,
1671,
62,
73,
388,
489,
396,
62,
17143,
62,
11487,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
5013,
65,
62,
41357,
62,
11487,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
43327,
62,
37266,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
9945,
1671,
62,
73,
388,
381,
41158,
62,
7890,
62,
9019,
62,
270,
397,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
343,
62,
22766,
62,
25747,
220,
220,
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,
270,
62,
11487,
62,
1462,
62,
26011,
62,
8899,
41876,
1976,
49720,
62,
11487,
62,
1462,
62,
26011,
62,
8899,
62,
270,
397,
764,
198,
220,
220,
220,
337,
36252,
50,
12233,
62,
34213,
62,
37266,
764,
198,
220,
220,
220,
337,
36252,
50,
5772,
62,
312,
62,
69,
19,
764,
198,
220,
220,
220,
337,
36252,
50,
5772,
62,
8367,
62,
69,
19,
764,
628,
220,
220,
220,
337,
36252,
50,
26571,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
5013,
65,
62,
11487,
93,
2860,
62,
1370,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
5013,
65,
62,
11487,
93,
19119,
62,
9612,
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,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
36650,
62,
11487,
62,
25747,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5772,
62,
312,
220,
220,
220,
41876,
37860,
69,
7402,
26173,
8924,
705,
14313,
62,
27082,
2390,
12,
27082,
2390,
2767,
1137,
62,
2389,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
5772,
62,
8367,
41876,
37860,
69,
7402,
26173,
8924,
705,
14313,
62,
27082,
2390,
12,
27082,
2390,
62,
39488,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
36650,
62,
11487,
62,
25747,
13,
628,
220,
220,
220,
42865,
285,
81,
62,
22766,
62,
25747,
41876,
4526,
37,
5390,
1976,
565,
62,
9945,
1671,
62,
8658,
3245,
62,
4868,
13,
198,
220,
220,
220,
42865,
45079,
62,
11487,
62,
1462,
62,
26011,
62,
8899,
41876,
1976,
49720,
62,
11487,
62,
1462,
62,
26011,
62,
8899,
62,
270,
397,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
9945,
1671,
62,
73,
388,
489,
396,
62,
17143,
62,
11487,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
43327,
62,
17143,
29,
41876,
1976,
9945,
1671,
62,
73,
388,
381,
41158,
62,
7890,
62,
9019,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
628,
220,
220,
220,
285,
81,
62,
22766,
62,
25747,
796,
4173,
62,
22766,
62,
25747,
13,
198,
220,
220,
220,
45079,
62,
11487,
62,
1462,
62,
26011,
62,
8899,
796,
340,
62,
11487,
62,
1462,
62,
26011,
62,
8899,
13,
628,
220,
220,
220,
366,
2315,
617,
3298,
1366,
10288,
422,
334,
72,
198,
220,
220,
220,
42865,
7,
14050,
62,
7890,
62,
23870,
8,
796,
1976,
565,
62,
5013,
65,
62,
7890,
62,
23870,
14804,
1136,
62,
39098,
7,
1976,
361,
62,
9945,
1671,
62,
66,
62,
13116,
62,
312,
14804,
43327,
62,
4868,
62,
37153,
6739,
628,
220,
220,
220,
285,
81,
62,
11487,
62,
7890,
796,
300,
81,
62,
7890,
62,
23870,
3784,
1136,
62,
7890,
62,
5420,
7,
1976,
361,
62,
9945,
1671,
62,
73,
388,
489,
396,
62,
7785,
62,
2340,
14804,
66,
62,
83,
62,
37266,
6739,
198,
220,
220,
220,
285,
81,
62,
14421,
62,
1370,
796,
300,
81,
62,
7890,
62,
23870,
3784,
1136,
62,
7890,
62,
5420,
7,
1976,
361,
62,
9945,
1671,
62,
73,
388,
489,
396,
62,
7785,
62,
2340,
14804,
66,
62,
82,
62,
17143,
6739,
198,
220,
220,
220,
285,
81,
62,
11487,
13716,
796,
327,
11262,
1303,
7,
300,
81,
62,
7890,
62,
23870,
3784,
1136,
62,
7890,
62,
5420,
7,
1976,
361,
62,
9945,
1671,
62,
73,
388,
489,
396,
62,
7785,
62,
2340,
14804,
66,
62,
37266,
62,
23047,
1267,
6739,
198,
198,
9,
986,
6070,
11507,
3084,
198,
220,
220,
220,
327,
11262,
1976,
9945,
1671,
62,
73,
388,
381,
41158,
62,
7890,
62,
9019,
62,
270,
397,
7,
285,
81,
62,
11487,
62,
7890,
1267,
3784,
9,
796,
340,
62,
43327,
62,
37266,
13,
198,
220,
220,
220,
30301,
1503,
327,
11262,
1976,
9945,
1671,
62,
73,
388,
381,
41158,
62,
7890,
62,
9019,
7,
285,
81,
62,
14421,
62,
1370,
1267,
3784,
24620,
198,
198,
9,
986,
1382,
16144,
2214,
14933,
611,
2622,
198,
220,
220,
220,
17579,
3185,
5161,
327,
11262,
1976,
9945,
1671,
62,
73,
388,
381,
41158,
62,
7890,
62,
9019,
62,
270,
397,
7,
285,
81,
62,
11487,
62,
7890,
1267,
3784,
9,
24994,
3528,
15871,
1279,
7278,
62,
43327,
62,
17143,
28401,
198,
220,
220,
220,
220,
220,
16876,
1279,
7278,
62,
43327,
62,
17143,
29,
12,
17143,
62,
3245,
1279,
29,
2272,
13,
198,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
14050,
62,
17143,
62,
3245,
8,
796,
285,
81,
62,
22766,
62,
25747,
3784,
1136,
62,
3245,
62,
5420,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8658,
3672,
62,
26011,
796,
1279,
7278,
62,
43327,
62,
17143,
29,
12,
17143,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3245,
3672,
220,
220,
220,
220,
796,
1279,
7278,
62,
43327,
62,
17143,
29,
12,
17143,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_gtt_mia_ae_filler_shh_bs DEFINITION
PUBLIC
ABSTRACT
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_gtt_mia_ae_filler .
METHODS constructor
IMPORTING
!io_ae_parameters TYPE REF TO zif_gtt_mia_ae_parameters
RAISING
cx_udm_message .
PROTECTED SECTION.
METHODS get_date_field
ABSTRACT
RETURNING
VALUE(rv_field) TYPE zif_gtt_mia_ef_types=>tv_field_name .
METHODS get_eventid
ABSTRACT
RETURNING
VALUE(rv_eventid) TYPE /saptrx/ev_evtid .
METHODS get_location_category
ABSTRACT
RETURNING
VALUE(rv_loccat) TYPE zif_gtt_mia_app_types=>tv_loccat .
METHODS get_time_field
ABSTRACT
RETURNING
VALUE(rv_field) TYPE zif_gtt_mia_ef_types=>tv_field_name .
METHODS is_location_required
ABSTRACT
RETURNING
VALUE(rv_result) TYPE abap_bool .
PRIVATE SECTION.
TYPES tt_vttsvb TYPE vttsvb_tab .
TYPES:
BEGIN OF ts_dl_item_id,
vbeln TYPE vbeln_vl,
posnr TYPE posnr_vl,
END OF ts_dl_item_id .
DATA mo_ae_parameters TYPE REF TO zif_gtt_mia_ae_parameters .
DATA mt_vtts_new TYPE tt_vttsvb .
DATA mt_vtts_old TYPE tt_vttsvb .
METHODS get_copy_of_vtts_table
IMPORTING
!ir_vtts TYPE REF TO data
EXPORTING
!et_vtts TYPE tt_vttsvb .
METHODS get_stops_from_shipment
IMPORTING
!is_events TYPE trxas_evt_ctab_wa
EXPORTING
!et_stops TYPE zif_gtt_mia_app_types=>tt_stops
RAISING
cx_udm_message .
METHODS is_stop_changed
IMPORTING
!iv_tknum TYPE tknum
!iv_tsnum TYPE tsnum
RETURNING
VALUE(rv_result) TYPE abap_bool
RAISING
cx_udm_message .
ENDCLASS.
CLASS zcl_gtt_mia_ae_filler_shh_bs IMPLEMENTATION.
METHOD constructor.
mo_ae_parameters = io_ae_parameters.
get_copy_of_vtts_table(
EXPORTING
ir_vtts = mo_ae_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_stage_new )
IMPORTING
et_vtts = mt_vtts_new ).
get_copy_of_vtts_table(
EXPORTING
ir_vtts = mo_ae_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_stage_old )
IMPORTING
et_vtts = mt_vtts_old ).
ENDMETHOD.
METHOD get_copy_of_vtts_table.
FIELD-SYMBOLS: <lt_vtts> TYPE tt_vttsvb.
ASSIGN ir_vtts->* TO <lt_vtts>.
IF <lt_vtts> IS ASSIGNED.
et_vtts[] = <lt_vtts>[].
SORT et_vtts BY tknum tsnum.
ELSE.
CLEAR et_vtts[].
ENDIF.
ENDMETHOD.
METHOD get_stops_from_shipment.
DATA: lt_vtts TYPE vttsvb_tab.
DATA(lv_tknum) = CONV tknum( zcl_gtt_mia_tools=>get_field_of_structure(
ir_struct_data = is_events-maintabref
iv_field_name = 'TKNUM' ) ).
DATA(lr_vttp) = mo_ae_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_item_new ).
DATA(lr_vtts) = mo_ae_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_stage_new ).
DATA(lr_vtsp) = mo_ae_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_item_stage_new ).
FIELD-SYMBOLS: <lt_vttp> TYPE vttpvb_tab,
<lt_vtts> TYPE vttsvb_tab,
<lt_vtsp> TYPE vtspvb_tab.
ASSIGN lr_vtts->* TO <lt_vtts>.
ASSIGN lr_vttp->* TO <lt_vttp>.
ASSIGN lr_vtsp->* TO <lt_vtsp>.
IF <lt_vtts> IS ASSIGNED AND
<lt_vtsp> IS ASSIGNED AND
<lt_vttp> IS ASSIGNED.
lt_vtts[] = <lt_vtts>[].
SORT lt_vtts BY tsrfo.
zcl_gtt_mia_sh_tools=>get_stops_from_shipment(
EXPORTING
iv_tknum = lv_tknum
it_vtts = lt_vtts
it_vtsp = <lt_vtsp>
it_vttp = <lt_vttp>
IMPORTING
et_stops = et_stops ).
ELSE.
MESSAGE e002(zgtt_mia) WITH 'VTTS' INTO DATA(lv_dummy).
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD is_stop_changed.
FIELD-SYMBOLS: <lv_edate> TYPE d.
rv_result = zif_gtt_mia_ef_constants=>cs_condition-false.
READ TABLE mt_vtts_new ASSIGNING FIELD-SYMBOL(<ls_vtts_new>)
WITH KEY tknum = iv_tknum
tsnum = iv_tsnum
BINARY SEARCH.
IF sy-subrc = 0.
CASE <ls_vtts_new>-updkz.
WHEN zif_gtt_mia_ef_constants=>cs_change_mode-insert.
ASSIGN COMPONENT get_date_field( ) OF STRUCTURE <ls_vtts_new>
TO <lv_edate>.
IF <lv_edate> IS ASSIGNED.
rv_result = COND #( WHEN <lv_edate> IS NOT INITIAL
THEN zif_gtt_mia_ef_constants=>cs_condition-true
ELSE zif_gtt_mia_ef_constants=>cs_condition-false ).
ELSE.
MESSAGE e001(zgtt_mia) WITH get_date_field( ) 'VTTS'
INTO DATA(lv_dummy).
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
WHEN zif_gtt_mia_ef_constants=>cs_change_mode-update OR
zif_gtt_mia_ef_constants=>cs_change_mode-undefined.
ASSIGN COMPONENT get_date_field( ) OF STRUCTURE <ls_vtts_new>
TO <lv_edate>.
IF <lv_edate> IS ASSIGNED AND
<lv_edate> IS NOT INITIAL.
READ TABLE mt_vtts_old ASSIGNING FIELD-SYMBOL(<ls_vtts_old>)
WITH KEY tknum = <ls_vtts_new>-tknum
tsnum = <ls_vtts_new>-tsnum
BINARY SEARCH.
IF sy-subrc = 0.
rv_result = zcl_gtt_mia_tools=>are_fields_different(
ir_data1 = REF #( <ls_vtts_new> )
ir_data2 = REF #( <ls_vtts_old> )
it_fields = VALUE #( ( get_date_field( ) )
( get_time_field( ) ) ) ).
ENDIF.
ENDIF.
ENDCASE.
ELSE.
MESSAGE e005(zgtt_mia) WITH |{ iv_tknum }{ iv_tsnum }| 'VTTS' INTO lv_dummy.
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD zif_gtt_mia_ae_filler~check_relevance.
DATA: lv_date TYPE d.
FIELD-SYMBOLS: <lt_vtts_new> TYPE zif_gtt_mia_app_types=>tt_vttsvb,
<lt_vtts_old> TYPE zif_gtt_mia_app_types=>tt_vttsvb.
DATA(lt_fields) = VALUE zif_gtt_mia_ef_types=>tt_field_name( ( get_date_field( ) )
( get_time_field( ) ) ).
DATA(lr_vttp) = mo_ae_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_item_new ).
DATA(lr_vtts_new) = mo_ae_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_stage_new ).
rv_result = zif_gtt_mia_ef_constants=>cs_condition-false.
IF is_events-maintabdef = zif_gtt_mia_app_constants=>cs_tabledef-sh_header_new AND
zcl_gtt_mia_sh_tools=>is_appropriate_type( ir_vttk = is_events-maintabref ) = abap_true AND
zcl_gtt_mia_sh_tools=>is_delivery_assigned( ir_vttp = lr_vttp ) = abap_true.
ASSIGN lr_vtts_new->* TO <lt_vtts_new>.
IF <lt_vtts_new> IS ASSIGNED.
LOOP AT <lt_vtts_new> ASSIGNING FIELD-SYMBOL(<ls_vtts_new>)
WHERE updkz IS NOT INITIAL.
rv_result = is_stop_changed(
iv_tknum = <ls_vtts_new>-tknum
iv_tsnum = <ls_vtts_new>-tsnum ).
IF rv_result = zif_gtt_mia_ef_constants=>cs_condition-true.
EXIT.
ENDIF.
ENDLOOP.
ELSE.
MESSAGE e002(zgtt_mia) WITH 'VTTS' INTO DATA(lv_dummy).
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDIF.
ENDMETHOD.
METHOD zif_gtt_mia_ae_filler~get_event_data.
DATA: lt_stops TYPE zif_gtt_mia_app_types=>tt_stops.
get_stops_from_shipment(
EXPORTING
is_events = is_events
IMPORTING
et_stops = lt_stops ).
LOOP AT lt_stops ASSIGNING FIELD-SYMBOL(<ls_stops>)
WHERE loccat = get_location_category( ).
IF is_stop_changed( iv_tknum = <ls_stops>-tknum
iv_tsnum = <ls_stops>-tsnum ) = zif_gtt_mia_ef_constants=>cs_condition-true.
DATA(lv_evtcnt) = zcl_gtt_mia_sh_tools=>get_next_event_counter( ).
READ TABLE mt_vtts_new ASSIGNING FIELD-SYMBOL(<ls_vtts_new>)
WITH KEY tknum = <ls_stops>-tknum
tsnum = <ls_stops>-tsnum
BINARY SEARCH.
IF sy-subrc = 0.
ct_trackingheader = VALUE #( BASE ct_trackingheader (
language = sy-langu
trxcod = zif_gtt_mia_app_constants=>cs_trxcod-sh_number
trxid = <ls_stops>-tknum
evtcnt = lv_evtcnt
evtid = get_eventid( )
evtdat = zcl_gtt_mia_tools=>get_field_of_structure(
ir_struct_data = REF #( <ls_vtts_new> )
iv_field_name = get_date_field( ) )
evttim = zcl_gtt_mia_tools=>get_field_of_structure(
ir_struct_data = REF #( <ls_vtts_new> )
iv_field_name = get_time_field( ) )
evtzon = zcl_gtt_mia_tools=>get_system_time_zone( )
) ).
ct_eventid_map = VALUE #( BASE ct_eventid_map (
eventid = is_events-eventid
evtcnt = lv_evtcnt
) ).
ct_tracklocation = VALUE #( BASE ct_tracklocation (
evtcnt = lv_evtcnt
loccod = <ls_stops>-loctype
locid1 = zcl_gtt_mia_tools=>get_pretty_location_id(
iv_locid = <ls_stops>-locid
iv_loctype = <ls_stops>-loctype )
locid2 = <ls_stops>-stopid
) ).
IF is_location_required( ) = abap_true.
ct_trackparameters = VALUE #( BASE ct_trackparameters
(
evtcnt = lv_evtcnt
param_name = zif_gtt_mia_app_constants=>cs_event_param-location_id
param_value = zcl_gtt_mia_tools=>get_pretty_location_id(
iv_locid = <ls_stops>-locid
iv_loctype = <ls_stops>-loctype )
)
(
evtcnt = lv_evtcnt
param_name = zif_gtt_mia_app_constants=>cs_event_param-location_type
param_value = <ls_stops>-loctype
)
).
ENDIF.
ELSE.
MESSAGE e005(zgtt_mia)
WITH |{ <ls_stops>-tknum }{ <ls_stops>-tsnum }| 'VTTK'
INTO DATA(lv_dummy).
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
70,
926,
62,
20730,
62,
3609,
62,
69,
4665,
62,
1477,
71,
62,
1443,
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,
23255,
37,
2246,
1546,
1976,
361,
62,
70,
926,
62,
20730,
62,
3609,
62,
69,
4665,
764,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
3609,
62,
17143,
7307,
41876,
4526,
37,
5390,
1976,
361,
62,
70,
926,
62,
20730,
62,
3609,
62,
17143,
7307,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
463,
76,
62,
20500,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
4475,
62,
3245,
198,
220,
220,
220,
220,
220,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
3245,
8,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
891,
62,
19199,
14804,
14981,
62,
3245,
62,
3672,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
15596,
312,
198,
220,
220,
220,
220,
220,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
15596,
312,
8,
41876,
1220,
82,
2373,
40914,
14,
1990,
62,
1990,
83,
312,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
24886,
62,
22872,
198,
220,
220,
220,
220,
220,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
17946,
9246,
8,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
17946,
9246,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
2435,
62,
3245,
198,
220,
220,
220,
220,
220,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
3245,
8,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
891,
62,
19199,
14804,
14981,
62,
3245,
62,
3672,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
24886,
62,
35827,
198,
220,
220,
220,
220,
220,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
36540,
912,
85,
65,
41876,
410,
83,
912,
85,
65,
62,
8658,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
40379,
62,
25404,
62,
9186,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
410,
6667,
77,
41876,
410,
6667,
77,
62,
19279,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1426,
48624,
41876,
1426,
48624,
62,
19279,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
40379,
62,
25404,
62,
9186,
62,
312,
764,
628,
220,
220,
220,
42865,
6941,
62,
3609,
62,
17143,
7307,
41876,
4526,
37,
5390,
1976,
361,
62,
70,
926,
62,
20730,
62,
3609,
62,
17143,
7307,
764,
198,
220,
220,
220,
42865,
45079,
62,
36540,
912,
62,
3605,
41876,
256,
83,
62,
36540,
912,
85,
65,
764,
198,
220,
220,
220,
42865,
45079,
62,
36540,
912,
62,
727,
41876,
256,
83,
62,
36540,
912,
85,
65,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
30073,
62,
1659,
62,
36540,
912,
62,
11487,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
343,
62,
36540,
912,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
316,
62,
36540,
912,
41876,
256,
83,
62,
36540,
912,
85,
65,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
301,
2840,
62,
6738,
62,
6720,
434,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
31534,
41876,
491,
87,
292,
62,
1990,
83,
62,
310,
397,
62,
10247,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
316,
62,
301,
2840,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
926,
62,
301,
2840,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
463,
76,
62,
20500,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
11338,
62,
40985,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
83,
15418,
388,
220,
220,
220,
220,
220,
220,
220,
41876,
256,
15418,
388,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
912,
22510,
220,
220,
220,
220,
220,
220,
220,
41876,
256,
16184,
388,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
463,
76,
62,
20500,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
70,
926,
62,
20730,
62,
3609,
62,
69,
4665,
62,
1477,
71,
62,
1443,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
6941,
62,
3609,
62,
17143,
7307,
220,
796,
33245,
62,
3609,
62,
17143,
7307,
13,
628,
220,
220,
220,
651,
62,
30073,
62,
1659,
62,
36540,
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
1,
1,
1,
1,
1,
1,
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 LZADF_FGI01.
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Module VALIDATE_SASKEY INPUT
*&---------------------------------------------------------------------*
* Validate Sas_key
*----------------------------------------------------------------------*
MODULE validate_saskey INPUT.
DATA : lv_sas_key TYPE zadf_config-sas_key.
IF ( status-action EQ 'A' ) AND
( function EQ 'SAVE' ) AND
( extract[] NE total[] ).
**Do nothing
ELSE.
SELECT SINGLE sas_key FROM zadf_config
INTO lv_sas_key
WHERE interface_id EQ zadf_config-interface_id.
IF sy-subrc EQ 0.
IF lv_sas_key NE zadf_config-sas_key.
MESSAGE text-004 TYPE 'E'.
ENDIF.
ENDIF.
ENDIF.
ENDMODULE. " VALIDATE_SASKEY INPUT
| [
9,
10097,
23031,
9,
198,
8162,
1268,
5097,
52,
7206,
406,
57,
2885,
37,
62,
37,
18878,
486,
13,
198,
9,
10097,
23031,
9,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
220,
220,
19937,
220,
26173,
2389,
6158,
62,
50,
1921,
20373,
220,
3268,
30076,
198,
9,
5,
10097,
30934,
9,
198,
9,
220,
220,
220,
220,
220,
220,
3254,
20540,
23771,
62,
2539,
198,
9,
10097,
23031,
9,
198,
33365,
24212,
26571,
62,
82,
292,
2539,
3268,
30076,
13,
198,
220,
42865,
1058,
300,
85,
62,
82,
292,
62,
2539,
41876,
1976,
324,
69,
62,
11250,
12,
82,
292,
62,
2539,
13,
198,
220,
16876,
357,
3722,
12,
2673,
36529,
705,
32,
6,
1267,
5357,
198,
220,
220,
357,
2163,
36529,
705,
4090,
6089,
6,
1267,
5357,
198,
220,
220,
357,
7925,
21737,
10635,
2472,
21737,
6739,
198,
1174,
5211,
2147,
198,
220,
17852,
5188,
13,
198,
220,
220,
220,
33493,
311,
2751,
2538,
264,
292,
62,
2539,
16034,
1976,
324,
69,
62,
11250,
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,
39319,
300,
85,
62,
82,
292,
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,
33411,
7071,
62,
312,
36529,
1976,
324,
69,
62,
11250,
12,
39994,
62,
312,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
36529,
657,
13,
198,
220,
220,
220,
220,
220,
16876,
300,
85,
62,
82,
292,
62,
2539,
10635,
1976,
324,
69,
62,
11250,
12,
82,
292,
62,
2539,
13,
198,
220,
220,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
2420,
12,
22914,
41876,
705,
36,
4458,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
5064,
13,
198,
198,
10619,
33365,
24212,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
26173,
2389,
6158,
62,
50,
1921,
20373,
220,
3268,
30076,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 LZUITB_GUI_FRAMEWORKTOP. " Global Data
* INCLUDE lzuitb_gui_templated01.
INCLUDE LZUITB_GUI_FRAMEWORKUXX. " Function Modules
*******************************************************************
* User-defined Include-files (if necessary). *
*******************************************************************
* INCLUDE LZUITB_GUI_TEMPLATEF... " Subroutines
* INCLUDE LZUITB_GUI_TEMPLATEO... " PBO-Modules
* INCLUDE LZUITB_GUI_TEMPLATEI... " PAI-Modules
* INCLUDE LZUITB_GUI_TEMPLATEE... " Events
* INCLUDE LZUITB_GUI_TEMPLATEP... " Local class implement.
* INCLUDE LZUITB_GUI_TEMPLATET99. " ABAP Unit tests
INCLUDE LZUITB_GUI_FRAMEWORKF01.
* INCLUDE lzuitb_gui_templatef01.
INCLUDE LZUITB_GUI_FRAMEWORKI01.
* INCLUDE lzuitb_gui_templatei01.
INCLUDE LZUITB_GUI_FRAMEWORKO01.
* INCLUDE lzuitb_gui_templateo01.
| [
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,
52,
2043,
33,
62,
40156,
62,
10913,
2390,
6217,
14670,
35222,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8060,
6060,
198,
9,
220,
3268,
5097,
52,
7206,
300,
89,
5013,
65,
62,
48317,
62,
11498,
489,
515,
486,
13,
628,
220,
3268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
10913,
2390,
6217,
14670,
52,
8051,
13,
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,
52,
2043,
33,
62,
40156,
62,
51,
3620,
6489,
6158,
37,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3834,
81,
448,
1127,
198,
9,
3268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
51,
3620,
6489,
1404,
4720,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
350,
8202,
12,
5841,
5028,
198,
9,
3268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
51,
3620,
6489,
6158,
40,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8147,
40,
12,
5841,
5028,
198,
9,
3268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
51,
3620,
6489,
6158,
36,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
18715,
198,
9,
3268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
51,
3620,
6489,
6158,
47,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
10714,
1398,
3494,
13,
198,
9,
3268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
51,
3620,
6489,
1404,
2767,
2079,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9564,
2969,
11801,
5254,
628,
198,
1268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
10913,
2390,
6217,
14670,
37,
486,
13,
198,
9,
220,
3268,
5097,
52,
7206,
300,
89,
5013,
65,
62,
48317,
62,
28243,
69,
486,
13,
198,
198,
1268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
10913,
2390,
6217,
14670,
40,
486,
13,
198,
9,
220,
3268,
5097,
52,
7206,
300,
89,
5013,
65,
62,
48317,
62,
28243,
72,
486,
13,
198,
198,
1268,
5097,
52,
7206,
406,
57,
52,
2043,
33,
62,
40156,
62,
10913,
2390,
6217,
14670,
46,
486,
13,
198,
9,
220,
3268,
5097,
52,
7206,
300,
89,
5013,
65,
62,
48317,
62,
28243,
78,
486,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
"! <p class="shorttext synchronized" lang="en">Hebrew</p>
"!
CLASS zcl_csr_8859_8_he DEFINITION
PUBLIC
INHERITING FROM zcl_csr_8859_8
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
METHODS get_language
REDEFINITION .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_csr_8859_8_he IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
CONCATENATE
'20E0E520E0EC20E4E920E4EC20E4EE20E4F020E9F020ECF220ECF920EDE520EDE920EFE520EFE920F8E520F8E920FAE0'
'20FAE520FAE9E020E4E020ECE020EDE020FAE0E420E0E5E4E0EC20E0EE20E120E4E120EDE120FAE420E4E420E9E420EC'
'E420EDE420EFE420F8E420FAE4EC20E5E020E5E420E7E020E9E020E9E120E9E420EC20E4EC20EDEC20FAECF220ECF920'
'EDE9E9EDE9F0EDE9F8EE20E4EE20EDEE20FAEEE120EEE420F2E420F920E4F920EDF920FAF9E420FAE020FAE420FAE5E9'
INTO ngrams.
ENDMETHOD.
METHOD get_language.
language = 'he'.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
1544,
11269,
3556,
79,
29,
198,
40484,
198,
31631,
1976,
565,
62,
6359,
81,
62,
3459,
3270,
62,
23,
62,
258,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
6359,
81,
62,
3459,
3270,
62,
23,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
16129,
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,
1976,
565,
62,
6359,
81,
62,
3459,
3270,
62,
23,
62,
258,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
198,
220,
220,
220,
39962,
1404,
1677,
6158,
198,
220,
220,
220,
705,
1238,
36,
15,
36,
31211,
36,
15,
2943,
1238,
36,
19,
36,
37128,
36,
19,
2943,
1238,
36,
19,
6500,
1238,
36,
19,
37,
33618,
36,
24,
37,
33618,
2943,
37,
17572,
2943,
37,
37128,
1961,
36,
31211,
1961,
36,
37128,
36,
15112,
31211,
36,
15112,
37128,
37,
23,
36,
31211,
37,
23,
36,
37128,
7708,
36,
15,
6,
198,
220,
220,
220,
705,
1238,
7708,
36,
31211,
7708,
36,
24,
36,
33618,
36,
19,
36,
33618,
2943,
36,
33618,
1961,
36,
33618,
7708,
36,
15,
36,
27211,
36,
15,
36,
20,
36,
19,
36,
15,
2943,
1238,
36,
15,
6500,
1238,
36,
10232,
36,
19,
36,
10232,
1961,
36,
10232,
7708,
36,
27211,
36,
19,
36,
27211,
36,
24,
36,
27211,
2943,
6,
198,
220,
220,
220,
705,
36,
27211,
1961,
36,
27211,
36,
15112,
27211,
37,
23,
36,
27211,
7708,
36,
19,
2943,
1238,
36,
20,
36,
33618,
36,
20,
36,
27211,
36,
22,
36,
33618,
36,
24,
36,
33618,
36,
24,
36,
10232,
36,
24,
36,
27211,
2943,
1238,
36,
19,
2943,
1238,
1961,
2943,
1238,
7708,
2943,
37,
17572,
2943,
37,
37128,
6,
198,
220,
220,
220,
705,
1961,
36,
24,
36,
24,
1961,
36,
24,
37,
15,
1961,
36,
24,
37,
23,
6500,
1238,
36,
19,
6500,
1238,
1961,
6500,
1238,
7708,
31909,
10232,
31909,
27211,
37,
17,
36,
27211,
37,
37128,
36,
19,
37,
37128,
1961,
37,
37128,
7708,
37,
24,
36,
27211,
7708,
36,
33618,
7708,
36,
27211,
7708,
36,
20,
36,
24,
6,
198,
220,
220,
220,
39319,
299,
4546,
82,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
16129,
13,
628,
220,
220,
220,
3303,
796,
705,
258,
4458,
628,
220,
23578,
49273,
13,
628,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_check_num_output_parameter DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor.
PROTECTED SECTION.
METHODS inspect_tokens REDEFINITION.
PRIVATE SECTION.
METHODS count_outputs_of_statement IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE i.
ENDCLASS.
CLASS y_check_num_output_parameter IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
settings-pseudo_comment = '"#EC NUM_OUTPUT_PARA' ##NO_TEXT.
settings-disable_threshold_selection = abap_true.
settings-threshold = 2.
settings-documentation = |{ c_docs_path-checks }number-output-parameter.md|.
relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-class_definition )
( scan_struc_stmnt_type-interface ) ).
relevant_structure_types = VALUE #( ).
set_check_message( 'Number of output parameters must be lower than &2! (&1>=&2)' ).
ENDMETHOD.
METHOD inspect_tokens.
CHECK get_token_abs( statement-from ) = 'METHODS'
OR get_token_abs( statement-from ) = 'CLASS-METHODS'.
DATA(outputs_of_statement) = count_outputs_of_statement( statement ).
DATA(configuration) = detect_check_configuration( error_count = outputs_of_statement
statement = statement ).
IF configuration IS INITIAL.
RETURN.
ENDIF.
raise_error( statement_level = statement-level
statement_index = index
statement_from = statement-from + 1
error_priority = configuration-prio
parameter_01 = |{ outputs_of_statement }|
parameter_02 = |{ configuration-threshold }| ).
ENDMETHOD.
METHOD count_outputs_of_statement.
DATA(skip) = abap_false.
LOOP AT ref_scan_manager->tokens ASSIGNING FIELD-SYMBOL(<token>)
FROM statement-from
TO statement-to.
IF <token>-str = 'IMPORTING'.
skip = abap_true.
ELSEIF <token>-str = 'EXPORTING'
OR <token>-str = 'CHANGING'
OR <token>-str = 'RETURNING'.
skip = abap_false.
ENDIF.
IF skip = abap_true.
CONTINUE.
ENDIF.
IF <token>-str = 'TYPE'
OR <token>-str = 'LIKE'.
result = result + 1.
ENDIF.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9122,
62,
22510,
62,
22915,
62,
17143,
2357,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
29244,
6158,
44731,
764,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
954,
62,
22915,
82,
62,
1659,
62,
26090,
30023,
9863,
2751,
2643,
41876,
264,
301,
76,
429,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
1312,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
62,
9122,
62,
22510,
62,
22915,
62,
17143,
2357,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
628,
220,
220,
220,
6460,
12,
7752,
12003,
62,
23893,
796,
705,
1,
2,
2943,
36871,
62,
2606,
7250,
3843,
62,
47,
24401,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
6460,
12,
40223,
62,
400,
10126,
62,
49283,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
6460,
12,
400,
10126,
796,
362,
13,
198,
220,
220,
220,
6460,
12,
22897,
341,
796,
930,
90,
269,
62,
31628,
62,
6978,
12,
42116,
1782,
17618,
12,
22915,
12,
17143,
2357,
13,
9132,
91,
13,
628,
220,
220,
220,
5981,
62,
26090,
62,
19199,
796,
26173,
8924,
1303,
7,
357,
9367,
62,
19554,
66,
62,
301,
76,
429,
62,
4906,
12,
4871,
62,
46758,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
9367,
62,
19554,
66,
62,
301,
76,
429,
62,
4906,
12,
39994,
1267,
6739,
628,
220,
220,
220,
5981,
62,
301,
5620,
62,
19199,
796,
26173,
8924,
1303,
7,
6739,
628,
220,
220,
220,
900,
62,
9122,
62,
20500,
7,
705,
15057,
286,
5072,
10007,
1276,
307,
2793,
621,
1222,
17,
0,
35494,
16,
29,
28,
5,
17,
33047,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
10104,
62,
83,
482,
641,
13,
198,
220,
220,
220,
5870,
25171,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1267,
796,
705,
49273,
50,
6,
198,
220,
220,
220,
6375,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1267,
796,
705,
31631,
12,
49273,
50,
4458,
628,
220,
220,
220,
42865,
7,
22915,
82,
62,
1659,
62,
26090,
8,
796,
954,
62,
22915,
82,
62,
1659,
62,
26090,
7,
2643,
6739,
628,
220,
220,
220,
42865,
7,
11250,
3924,
8,
796,
4886,
62,
9122,
62,
11250,
3924,
7,
4049,
62,
9127,
796,
23862,
62,
1659,
62,
26090,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
796,
2643,
6739,
628,
220,
220,
220,
16876,
8398,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
5298,
62,
18224,
7,
2643,
62,
5715,
220,
220,
220,
220,
796,
2643,
12,
5715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
9630,
220,
220,
220,
220,
796,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
6738,
220,
220,
220,
220,
220,
796,
2643,
12,
6738,
1343,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
49336,
220,
220,
220,
220,
220,
796,
8398,
12,
3448,
78,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11507,
62,
486,
220,
220,
220,
220,
220,
220,
220,
796,
930,
90,
23862,
62,
1659,
62,
26090,
1782,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11507,
62,
2999,
220,
220,
220,
220,
220,
220,
220,
796,
930,
90,
8398,
12,
400,
10126,
1782,
91,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
954,
62,
22915,
82,
62,
1659,
62,
26090,
13,
198,
220,
220,
220,
42865,
7,
48267,
8,
796,
450,
499,
62,
9562,
13,
628,
220,
220,
220,
17579,
3185,
5161,
1006,
62,
35836,
62,
37153,
3784,
83,
482,
641,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
30001,
43734,
198,
220,
220,
220,
16034,
2643,
12,
6738,
198,
220,
220,
220,
5390,
2643,
12,
1462,
13,
628,
220,
220,
220,
220,
220,
16876,
1279,
30001,
29,
12,
2536,
796,
705,
3955,
15490,
2751,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
14267,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
5064,
1279,
30001,
29,
12,
2536,
796,
705,
6369,
15490,
2751,
6,
198,
220,
220,
220,
220,
220,
6375,
1279,
30001,
29,
12,
2536,
796,
705,
3398,
15567,
2751,
6,
198,
220,
220,
220,
220,
220,
6375,
1279,
30001,
29,
12,
2536,
796,
705,
26087,
4261,
15871,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
14267,
796,
450,
499,
62,
9562,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
16876,
14267,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
16876,
1279,
30001,
29,
12,
2536,
796,
705,
25216,
6,
198,
220,
220,
220,
220,
220,
6375,
1279,
30001,
29,
12,
2536,
796,
705,
31271,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_4_vscode DEFINITION
PUBLIC
CREATE PRIVATE .
PUBLIC SECTION.
METHODS do_something_wonderful.
PROTECTED SECTION.
PRIVATE SECTION.
METHODS call_non_existant_method.
METHODS test.
ENDCLASS.
CLASS zcl_4_vscode IMPLEMENTATION.
METHOD do_something_wonderful.
call_non_existant_method( ).
ENDMETHOD.
METHOD call_non_existant_method.
DATA: monster_is_bonkers TYPE bool.
ENDMETHOD.
METHOD test.
" given
" when
" then
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
19,
62,
85,
1416,
1098,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
466,
62,
18927,
62,
86,
8623,
913,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
869,
62,
13159,
62,
1069,
10167,
62,
24396,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
13,
198,
10619,
31631,
13,
198,
198,
31631,
1976,
565,
62,
19,
62,
85,
1416,
1098,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
466,
62,
18927,
62,
86,
8623,
913,
13,
198,
220,
220,
220,
869,
62,
13159,
62,
1069,
10167,
62,
24396,
7,
220,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
869,
62,
13159,
62,
1069,
10167,
62,
24396,
13,
198,
220,
220,
220,
42865,
25,
9234,
62,
271,
62,
4189,
15949,
41876,
20512,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
13,
198,
220,
220,
220,
366,
1813,
628,
220,
220,
220,
366,
618,
628,
220,
220,
220,
366,
788,
628,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_apack_writer DEFINITION
PUBLIC
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
CLASS-METHODS create_instance
IMPORTING
!is_apack_manifest_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor
RETURNING
VALUE(ro_manifest_writer) TYPE REF TO zcl_abapgit_apack_writer .
METHODS serialize
RETURNING
VALUE(rv_xml) TYPE string
RAISING
zcx_abapgit_exception .
METHODS constructor
IMPORTING
!is_apack_manifest_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor .
PROTECTED SECTION.
PRIVATE SECTION.
DATA ms_manifest_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor .
ENDCLASS.
CLASS ZCL_ABAPGIT_APACK_WRITER IMPLEMENTATION.
METHOD constructor.
me->ms_manifest_descriptor = is_apack_manifest_descriptor.
ENDMETHOD.
METHOD create_instance.
CREATE OBJECT ro_manifest_writer EXPORTING is_apack_manifest_descriptor = is_apack_manifest_descriptor.
ENDMETHOD.
METHOD serialize.
" Setting repository type automatically to 'abapGit' as there is no other one right now
ms_manifest_descriptor-repository_type = zif_abapgit_apack_definitions=>c_repository_type_abapgit.
CALL TRANSFORMATION id
OPTIONS initial_components = 'suppress'
SOURCE data = ms_manifest_descriptor
RESULT XML rv_xml.
rv_xml = zcl_abapgit_xml_pretty=>print( rv_xml ).
REPLACE FIRST OCCURRENCE
OF REGEX '<\?xml version="1\.0" encoding="[\w-]+"\?>'
IN rv_xml
WITH '<?xml version="1.0" encoding="utf-8"?>'.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
499,
441,
62,
16002,
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,
42715,
12,
49273,
50,
2251,
62,
39098,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
499,
441,
62,
805,
8409,
62,
20147,
1968,
273,
41876,
1976,
361,
62,
397,
499,
18300,
62,
499,
441,
62,
4299,
50101,
14804,
774,
62,
20147,
1968,
273,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
805,
8409,
62,
16002,
8,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
499,
441,
62,
16002,
764,
198,
220,
220,
220,
337,
36252,
50,
11389,
1096,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
19875,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
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,
499,
441,
62,
805,
8409,
62,
20147,
1968,
273,
41876,
1976,
361,
62,
397,
499,
18300,
62,
499,
441,
62,
4299,
50101,
14804,
774,
62,
20147,
1968,
273,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
13845,
62,
805,
8409,
62,
20147,
1968,
273,
41876,
1976,
361,
62,
397,
499,
18300,
62,
499,
441,
62,
4299,
50101,
14804,
774,
62,
20147,
1968,
273,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
2969,
8120,
62,
18564,
2043,
1137,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
502,
3784,
907,
62,
805,
8409,
62,
20147,
1968,
273,
796,
318,
62,
499,
441,
62,
805,
8409,
62,
20147,
1968,
273,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2251,
62,
39098,
13,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
805,
8409,
62,
16002,
7788,
15490,
2751,
318,
62,
499,
441,
62,
805,
8409,
62,
20147,
1968,
273,
796,
318,
62,
499,
441,
62,
805,
8409,
62,
20147,
1968,
273,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
11389,
1096,
13,
628,
220,
220,
220,
366,
25700,
16099,
2099,
6338,
284,
705,
397,
499,
38,
270,
6,
355,
612,
318,
645,
584,
530,
826,
783,
198,
220,
220,
220,
13845,
62,
805,
8409,
62,
20147,
1968,
273,
12,
260,
1930,
37765,
62,
4906,
796,
1976,
361,
62,
397,
499,
18300,
62,
499,
441,
62,
4299,
50101,
14804,
66,
62,
260,
1930,
37765,
62,
4906,
62,
397,
499,
18300,
13,
628,
220,
220,
220,
42815,
44069,
35036,
4686,
198,
220,
220,
220,
220,
220,
39852,
11053,
4238,
62,
5589,
3906,
796,
705,
18608,
601,
6,
198,
220,
220,
220,
220,
220,
311,
31033,
1366,
796,
13845,
62,
805,
8409,
62,
20147,
1968,
273,
198,
220,
220,
220,
220,
220,
15731,
16724,
23735,
374,
85,
62,
19875,
13,
628,
220,
220,
220,
374,
85,
62,
19875,
796,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
37784,
14804,
4798,
7,
374,
85,
62,
19875,
6739,
628,
220,
220,
220,
45285,
11598,
31328,
440,
4093,
31302,
18310,
198,
220,
220,
220,
220,
220,
3963,
23337,
6369,
705,
27,
59,
30,
19875,
2196,
2625,
16,
17405,
15,
1,
21004,
2625,
58,
59,
86,
12,
48688,
1,
59,
30,
29,
6,
198,
220,
220,
220,
220,
220,
3268,
374,
85,
62,
19875,
198,
220,
220,
220,
220,
220,
13315,
705,
47934,
19875,
2196,
2625,
16,
13,
15,
1,
21004,
2625,
40477,
12,
23,
13984,
29,
4458,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_enhc DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
METHODS:
constructor
IMPORTING
is_item TYPE zif_abapgit_definitions=>ty_item
iv_language TYPE spras.
PROTECTED SECTION.
PRIVATE SECTION.
DATA:
mv_composite_id TYPE enhcompositename.
ENDCLASS.
CLASS zcl_abapgit_object_enhc IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_composite_id = ms_item-obj_name.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE changedby INTO rv_user FROM enhcompheader
WHERE enhcomposite = ms_item-obj_name AND version = 'A'.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lx_enh_root TYPE REF TO cx_enh_root,
li_enh_object TYPE REF TO if_enh_object.
TRY.
li_enh_object = cl_enh_factory=>load_enhancement_composite(
name = mv_composite_id
lock = abap_true ).
li_enh_object->delete( nevertheless_delete = abap_true
run_dark = abap_true ).
li_enh_object->unlock( ).
CATCH cx_enh_root INTO lx_enh_root.
zcx_abapgit_exception=>raise_with_text( lx_enh_root ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: lx_enh_root TYPE REF TO cx_enh_root,
li_enh_composite TYPE REF TO if_enh_composite,
lv_package TYPE devclass,
lt_composite_childs TYPE enhcompositename_it,
lt_enh_childs TYPE enhname_it,
lv_longtext_id TYPE enhdocuobject,
lv_vers TYPE enhcompheader-version,
lv_shorttext TYPE string.
FIELD-SYMBOLS: <lv_composite_child> TYPE enhcompositename,
<lv_enh_child> LIKE LINE OF lt_enh_childs.
lv_package = iv_package.
io_xml->read( EXPORTING iv_name = 'SHORTTEXT'
CHANGING cg_data = lv_shorttext ).
io_xml->read( EXPORTING iv_name = 'COMPOSITE_CHILDS'
CHANGING cg_data = lt_composite_childs ).
io_xml->read( EXPORTING iv_name = 'ENH_CHILDS'
CHANGING cg_data = lt_enh_childs ).
io_xml->read( EXPORTING iv_name = 'LONGTEXT_ID'
CHANGING cg_data = lv_longtext_id ).
SELECT SINGLE version FROM enhcompheader INTO lv_vers WHERE enhcomposite = ms_item-obj_name.
IF sy-subrc = 0.
" If object exists already, then set TADIR entry to deleted
" otherwise create_enhancement_composite will fail
CALL FUNCTION 'TR_TADIR_INTERFACE'
EXPORTING
wi_test_modus = abap_false
wi_tadir_pgmid = 'R3TR'
wi_tadir_object = ms_item-obj_type
wi_tadir_obj_name = ms_item-obj_name
iv_delflag = abap_true
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDIF.
TRY.
cl_enh_factory=>create_enhancement_composite(
EXPORTING
name = mv_composite_id
run_dark = abap_true
IMPORTING
composite = li_enh_composite
CHANGING
devclass = lv_package ).
li_enh_composite->if_enh_object_docu~set_shorttext( lv_shorttext ).
LOOP AT lt_composite_childs ASSIGNING <lv_composite_child>.
li_enh_composite->add_composite_child( <lv_composite_child> ).
ENDLOOP.
LOOP AT lt_enh_childs ASSIGNING <lv_enh_child>.
li_enh_composite->add_enh_child( <lv_enh_child> ).
ENDLOOP.
li_enh_composite->set_longtext_id( lv_longtext_id ).
li_enh_composite->if_enh_object~save( ).
li_enh_composite->if_enh_object~activate( ).
li_enh_composite->if_enh_object~unlock( ).
CATCH cx_enh_root INTO lx_enh_root.
zcx_abapgit_exception=>raise_with_text( lx_enh_root ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
TRY.
cl_enh_factory=>load_enhancement_composite(
name = mv_composite_id
lock = abap_false ).
rv_bool = abap_true.
CATCH cx_enh_root.
rv_bool = abap_false.
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
DATA: lv_argument TYPE seqg3-garg.
lv_argument = |{ mv_composite_id }|.
OVERLAY lv_argument WITH ' '.
lv_argument = |{ lv_argument }*|.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = |E_ENHANCE|
iv_argument = lv_argument ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
" Covered by ZCL_ABAPGIT_OBJECTS=>JUMP
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: lx_enh_root TYPE REF TO cx_enh_root,
li_enh_composite TYPE REF TO if_enh_composite,
lt_composite_childs TYPE enhcompositename_it,
lt_enh_childs TYPE enhname_it,
lv_longtext_id TYPE enhdocuobject,
lv_shorttext TYPE string.
TRY.
li_enh_composite = cl_enh_factory=>load_enhancement_composite(
name = mv_composite_id
lock = abap_false ).
lv_shorttext = li_enh_composite->if_enh_object_docu~get_shorttext( ).
lt_composite_childs = li_enh_composite->get_composite_childs( ).
lt_enh_childs = li_enh_composite->get_enh_childs( ).
lv_longtext_id = li_enh_composite->get_longtext_id( ).
io_xml->add( iv_name = 'SHORTTEXT'
ig_data = lv_shorttext ).
io_xml->add( iv_name = 'COMPOSITE_CHILDS'
ig_data = lt_composite_childs ).
io_xml->add( iv_name = 'ENH_CHILDS'
ig_data = lt_enh_childs ).
io_xml->add( iv_name = 'LONGTEXT_ID'
ig_data = lv_longtext_id ).
CATCH cx_enh_root INTO lx_enh_root.
zcx_abapgit_exception=>raise_with_text( lx_enh_root ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
16550,
66,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
41876,
7500,
292,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
785,
1930,
578,
62,
312,
41876,
5881,
785,
1930,
270,
12453,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
16550,
66,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
318,
62,
9186,
220,
220,
220,
220,
796,
318,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
796,
21628,
62,
16129,
6739,
628,
220,
220,
220,
285,
85,
62,
785,
1930,
578,
62,
312,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
628,
220,
220,
220,
33493,
311,
2751,
2538,
3421,
1525,
39319,
374,
85,
62,
7220,
16034,
5881,
5589,
25677,
198,
220,
220,
220,
220,
220,
33411,
5881,
785,
1930,
578,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
5357,
2196,
796,
705,
32,
4458,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
374,
85,
62,
7220,
796,
269,
62,
7220,
62,
34680,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
42865,
25,
300,
87,
62,
16550,
62,
15763,
220,
220,
41876,
4526,
37,
5390,
43213,
62,
16550,
62,
15763,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
16550,
62,
15252,
41876,
4526,
37,
5390,
611,
62,
16550,
62,
15252,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
16550,
62,
15252,
796,
537,
62,
16550,
62,
69,
9548,
14804,
2220,
62,
16550,
590,
434,
62,
785,
1930,
578,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
285,
85,
62,
785,
1930,
578,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5793,
796,
450,
499,
62,
7942,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
16550,
62,
15252,
3784,
33678,
7,
19032,
62,
33678,
796,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1057,
62,
21953,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
16550,
62,
15252,
3784,
403,
5354,
7,
6739,
628,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
16550,
62,
15763,
39319,
300,
87,
62,
16550,
62,
15763,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
62,
4480,
62,
5239,
7,
300,
87,
62,
16550,
62,
15763,
6739,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
8906,
48499,
1096,
13,
628,
220,
220,
220,
42865,
25,
300,
87,
62,
16550,
62,
15763,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
43213,
62,
16550,
62,
15763,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
16550,
62,
785,
1930,
578,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
16550,
62,
785,
1930,
578,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
26495,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
785,
1930,
578,
62,
9410,
82,
41876,
5881,
785,
1930,
270,
12453,
62,
270,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
16550,
62,
9410,
82,
220,
220,
220,
220,
220,
220,
41876,
5881,
3672,
62,
270,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
6511,
5239,
62,
312,
220,
220,
220,
220,
220,
41876,
5881,
15390,
84,
15252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
690,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
5881,
5589,
25677,
12,
9641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
19509,
5239,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
6780,
62,
785,
1930,
578,
62,
9410,
29,
41876,
5881,
785,
1930,
270,
12453,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
6780,
62,
16550,
62,
9410,
29,
220,
220,
220,
220,
220,
220,
34178,
48920,
3963,
300,
83,
62,
16550,
62,
9410,
82,
13,
628,
220,
220,
220,
300,
85,
62,
26495,
796,
21628,
62,
26495,
13,
628,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_ghes221 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,
visibility TYPE string,
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,
delete_branch_on_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,
visibility TYPE string,
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,
delete_branch_on_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: nullable-authorization, object
TYPES: BEGIN OF subnullable_authorization_app,
client_id TYPE string,
name TYPE string,
url TYPE string,
END OF subnullable_authorization_app.
TYPES: BEGIN OF nullable_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 subnullable_authorization_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 nullable_authorization.
* 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,
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,
visibility TYPE string,
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,
delete_branch_on_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,
visibility TYPE string,
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,
delete_branch_on_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,
visibility TYPE string,
pushed_at TYPE string,
created_at TYPE string,
updated_at TYPE string,
permissions TYPE subminimal_repository_permissi,
template_repository TYPE nullable_repository,
delete_branch_on_merge TYPE abap_bool,
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_public_repo TYPE abap_bool,
members_can_create_private_rep TYPE abap_bool,
members_can_create_internal_re TYPE abap_bool,
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: 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: 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: 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-repository, object
TYPES: BEGIN OF subteam_repository_permissions,
admin TYPE abap_bool,
pull TYPE abap_bool,
triage TYPE abap_bool,
push TYPE abap_bool,
maintain TYPE abap_bool,
END OF subteam_repository_permissions.
TYPES: BEGIN OF team_repository,
id TYPE i,
node_id TYPE string,
name TYPE string,
full_name TYPE string,
license TYPE nullable_license_simple,
forks TYPE i,
permissions TYPE subteam_repository_permissions,
owner TYPE nullable_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,
visibility TYPE string,
pushed_at TYPE string,
created_at TYPE string,
updated_at TYPE string,
allow_rebase_merge TYPE abap_bool,
template_repository TYPE nullable_repository,
allow_squash_merge TYPE abap_bool,
delete_branch_on_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,
anonymous_access_enabled TYPE abap_bool,
END OF team_repository.
* 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,
visibility TYPE string,
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,
delete_branch_on_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
END OF branch_restriction_policy.
* Component schema: branch-protection, object
TYPES: BEGIN OF subbranch_protection_require03,
url TYPE string,
enabled TYPE abap_bool,
END OF subbranch_protection_require03.
TYPES: BEGIN OF subbranch_protection_require02,
enabled TYPE abap_bool,
END OF subbranch_protection_require02.
TYPES: BEGIN OF subbranch_protection_allow_del,
enabled TYPE abap_bool,
END OF subbranch_protection_allow_del.
TYPES: BEGIN OF subbranch_protection_allow_for,
enabled TYPE abap_bool,
END OF subbranch_protection_allow_for.
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_linear_history TYPE subbranch_protection_require01,
allow_force_pushes TYPE subbranch_protection_allow_for,
allow_deletions TYPE subbranch_protection_allow_del,
required_conversation_resoluti TYPE subbranch_protection_require02,
name TYPE string,
protection_url TYPE string,
required_signatures TYPE subbranch_protection_require03,
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: 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,
start_line TYPE i,
original_start_line TYPE i,
start_side TYPE string,
line TYPE i,
original_line TYPE i,
side TYPE string,
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: 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: 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: bodyapps_delete_authorization, object
TYPES: BEGIN OF bodyapps_delete_authorization,
access_token TYPE string,
END OF bodyapps_delete_authorization.
* Component schema: bodyapps_check_token, object
TYPES: BEGIN OF bodyapps_check_token,
access_token TYPE string,
END OF bodyapps_check_token.
* Component schema: bodyapps_reset_token, object
TYPES: BEGIN OF bodyapps_reset_token,
access_token TYPE string,
END OF bodyapps_reset_token.
* Component schema: bodyapps_delete_token, object
TYPES: BEGIN OF bodyapps_delete_token,
access_token TYPE string,
END OF bodyapps_delete_token.
* 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: bodyteams_update_in_org, object
TYPES: BEGIN OF bodyteams_update_in_org,
name TYPE string,
description TYPE string,
privacy TYPE string,
permission TYPE string,
parent_team_id TYPE i,
END OF bodyteams_update_in_org.
* Component schema: bodyteams_delete_in_org, object
TYPES: BEGIN OF bodyteams_delete_in_org,
name TYPE string,
description TYPE string,
privacy TYPE string,
permission TYPE string,
parent_team_id TYPE i,
END OF bodyteams_delete_in_org.
* Component schema: bodyteams_create_discussion_in, object
TYPES: BEGIN OF bodyteams_create_discussion_in,
title TYPE string,
body TYPE string,
private TYPE abap_bool,
END OF bodyteams_create_discussion_in.
* Component schema: bodyteams_update_discussion_in, object
TYPES: BEGIN OF bodyteams_update_discussion_in,
title TYPE string,
body TYPE string,
END OF bodyteams_update_discussion_in.
* Component schema: bodyteams_delete_discussion_in, object
TYPES: BEGIN OF bodyteams_delete_discussion_in,
title TYPE string,
body TYPE string,
END OF bodyteams_delete_discussion_in.
* 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_in_or, object
TYPES: BEGIN OF bodyteams_remove_project_in_or,
permission TYPE string,
END OF bodyteams_remove_project_in_or.
* 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_in_org, object
TYPES: BEGIN OF bodyteams_remove_repo_in_org,
permission TYPE string,
END OF bodyteams_remove_repo_in_org.
* 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_dispatch_even, object
TYPES: BEGIN OF subbodyrepos_create_dispatch_e,
dummy_workaround TYPE i,
END OF subbodyrepos_create_dispatch_e.
TYPES: BEGIN OF bodyrepos_create_dispatch_even,
event_type TYPE string,
client_payload TYPE subbodyrepos_create_dispatch_e,
END OF bodyrepos_create_dispatch_even.
* 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,
commit_id TYPE string,
path TYPE string,
position TYPE i,
side TYPE string,
line TYPE i,
start_line TYPE i,
start_side 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: 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_teams_list_discussions_in_org, 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_01 TYPE STANDARD TABLE OF reaction WITH DEFAULT KEY.
* Component schema: response_teams_list_members_in_org, array
TYPES response_teams_list_members_in TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_teams_list_projects_in_org, array
TYPES response_teams_list_projects_i 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_in_org, array
TYPES response_teams_list_repos_in_o TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY.
* Component schema: response_teams_list_child_in_org, array
TYPES response_teams_list_child_in_o 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_02 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_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.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 - "Delete an app authorization"
* Operation id: apps/delete-authorization
* Parameter: client_id, required, path
* Response: 204
* Response: 422
* Body ref: #/components/schemas/bodyapps_delete_authorization
METHODS apps_delete_authorization
IMPORTING
client_id TYPE string
body TYPE bodyapps_delete_authorization
RAISING cx_static_check.
* POST - "Check a token"
* Operation id: apps/check-token
* Parameter: client_id, required, path
* Response: 200
* application/json, #/components/schemas/authorization
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyapps_check_token
METHODS apps_check_token
IMPORTING
client_id TYPE string
body TYPE bodyapps_check_token
RETURNING
VALUE(return_data) TYPE authorization
RAISING cx_static_check.
* PATCH - "Reset a token"
* Operation id: apps/reset-token
* Parameter: client_id, required, path
* Response: 200
* application/json, #/components/schemas/authorization
* Response: 422
* Body ref: #/components/schemas/bodyapps_reset_token
METHODS apps_reset_token
IMPORTING
client_id TYPE string
body TYPE bodyapps_reset_token
RETURNING
VALUE(return_data) TYPE authorization
RAISING cx_static_check.
* DELETE - "Delete an app token"
* Operation id: apps/delete-token
* Parameter: client_id, required, path
* Response: 204
* Response: 422
* Body ref: #/components/schemas/bodyapps_delete_token
METHODS apps_delete_token
IMPORTING
client_id TYPE string
body TYPE bodyapps_delete_token
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.
* DELETE - "Revoke an installation access token"
* Operation id: apps/revoke-installation-access-token
* Response: 204
METHODS apps_revoke_installation_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.
* PATCH - "Update a team"
* Operation id: teams/update-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Response: 201
* application/json, #/components/schemas/team-full
* Body ref: #/components/schemas/bodyteams_update_in_org
METHODS teams_update_in_org
IMPORTING
org TYPE string
team_slug TYPE string
body TYPE bodyteams_update_in_org
RETURNING
VALUE(return_data) TYPE team_full
RAISING cx_static_check.
* DELETE - "Delete a team"
* Operation id: teams/delete-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Response: 204
* Body ref: #/components/schemas/bodyteams_delete_in_org
METHODS teams_delete_in_org
IMPORTING
org TYPE string
team_slug TYPE string
body TYPE bodyteams_delete_in_org
RAISING cx_static_check.
* GET - "List discussions"
* Operation id: teams/list-discussions-in-org
* Parameter: pinned, optional, query
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: direction, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_teams_list_discussions_in_org
METHODS teams_list_discussions_in_org
IMPORTING
pinned TYPE string OPTIONAL
org TYPE string
team_slug TYPE string
direction TYPE string DEFAULT 'desc'
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Response: 201
* application/json, #/components/schemas/team-discussion
* Body ref: #/components/schemas/bodyteams_create_discussion_in
METHODS teams_create_discussion_in_org
IMPORTING
org TYPE string
team_slug TYPE string
body TYPE bodyteams_create_discussion_in
RETURNING
VALUE(return_data) TYPE team_discussion
RAISING cx_static_check.
* GET - "Get a discussion"
* Operation id: teams/get-discussion-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: discussion_number, required, path
* Response: 200
* application/json, #/components/schemas/team-discussion
METHODS teams_get_discussion_in_org
IMPORTING
org TYPE string
team_slug TYPE string
discussion_number TYPE i
RETURNING
VALUE(return_data) TYPE team_discussion
RAISING cx_static_check.
* PATCH - "Update a discussion"
* Operation id: teams/update-discussion-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: discussion_number, required, path
* Response: 200
* application/json, #/components/schemas/team-discussion
* Body ref: #/components/schemas/bodyteams_update_discussion_in
METHODS teams_update_discussion_in_org
IMPORTING
org TYPE string
team_slug TYPE string
discussion_number TYPE i
body TYPE bodyteams_update_discussion_in
RETURNING
VALUE(return_data) TYPE team_discussion
RAISING cx_static_check.
* DELETE - "Delete a discussion"
* Operation id: teams/delete-discussion-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: discussion_number, required, path
* Response: 204
* Body ref: #/components/schemas/bodyteams_delete_discussion_in
METHODS teams_delete_discussion_in_org
IMPORTING
org TYPE string
team_slug TYPE string
discussion_number TYPE i
body TYPE bodyteams_delete_discussion_in
RAISING cx_static_check.
* GET - "List discussion comments"
* Operation id: teams/list-discussion-comments-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: discussion_number, required, path
* Parameter: direction, optional, query
* 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
org TYPE string
team_slug TYPE string
discussion_number TYPE i
direction TYPE string DEFAULT 'desc'
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, 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
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, 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_i
IMPORTING
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, 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
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, 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
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: content, optional, query
* Parameter: org, required, path
* Parameter: team_slug, 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
content TYPE string OPTIONAL
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: discussion_number, required, path
* Parameter: comment_number, required, path
* Response: 200
* application/json, #/components/schemas/reaction
* Response: 201
* application/json, #/components/schemas/reaction
* Body ref: #/components/schemas/bodyreactions_create_for_team_
METHODS reactions_create_for_team_disc
IMPORTING
org TYPE string
team_slug TYPE string
discussion_number TYPE i
comment_number TYPE i
body TYPE bodyreactions_create_for_team_
RETURNING
VALUE(return_data) TYPE reaction
RAISING cx_static_check.
* DELETE - "Delete team discussion comment reaction"
* Operation id: reactions/delete-for-team-discussion-comment
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: discussion_number, required, path
* Parameter: comment_number, required, path
* Parameter: reaction_id, required, path
* Response: 204
METHODS reactions_delete_for_team_disc
IMPORTING
org TYPE string
team_slug TYPE string
discussion_number TYPE i
comment_number TYPE i
reaction_id TYPE i
RAISING cx_static_check.
* GET - "List reactions for a team discussion"
* Operation id: reactions/list-for-team-discussion-in-org
* Parameter: content, optional, query
* Parameter: org, required, path
* Parameter: team_slug, 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
content TYPE string OPTIONAL
org TYPE string
team_slug TYPE string
discussion_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 a team discussion"
* Operation id: reactions/create-for-team-discussion-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: discussion_number, required, path
* Response: 200
* application/json, #/components/schemas/reaction
* Response: 201
* application/json, #/components/schemas/reaction
* Body ref: #/components/schemas/bodyreactions_create_for_tea01
METHODS reactions_create_for_team_di01
IMPORTING
org TYPE string
team_slug TYPE string
discussion_number TYPE i
body TYPE bodyreactions_create_for_tea01
RETURNING
VALUE(return_data) TYPE reaction
RAISING cx_static_check.
* DELETE - "Delete team discussion reaction"
* Operation id: reactions/delete-for-team-discussion
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: discussion_number, required, path
* Parameter: reaction_id, required, path
* Response: 204
METHODS reactions_delete_for_team_di01
IMPORTING
org TYPE string
team_slug TYPE string
discussion_number TYPE i
reaction_id TYPE i
RAISING cx_static_check.
* GET - "List team members"
* Operation id: teams/list-members-in-org
* Parameter: role, optional, query
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_teams_list_members_in_org
METHODS teams_list_members_in_org
IMPORTING
role TYPE string DEFAULT 'all'
org TYPE string
team_slug TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_teams_list_members_in
RAISING cx_static_check.
* GET - "Get team membership for a user"
* Operation id: teams/get-membership-for-user-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/team-membership
* Response: 404
METHODS teams_get_membership_for_user_
IMPORTING
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/team-membership
* Response: 403
* Response: 422
* Body ref: #/components/schemas/bodyteams_add_or_update_member
METHODS teams_add_or_update_membership
IMPORTING
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: username, required, path
* Response: 204
* Response: 403
* Body ref: #/components/schemas/bodyteams_remove_membership_fo
METHODS teams_remove_membership_for_us
IMPORTING
org TYPE string
team_slug TYPE string
username TYPE string
body TYPE bodyteams_remove_membership_fo
RAISING cx_static_check.
* GET - "List team projects"
* Operation id: teams/list-projects-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_teams_list_projects_in_org
METHODS teams_list_projects_in_org
IMPORTING
org TYPE string
team_slug TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_teams_list_projects_i
RAISING cx_static_check.
* GET - "Check team permissions for a project"
* Operation id: teams/check-permissions-for-project-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: project_id, required, path
* Response: 200
* application/json, #/components/schemas/team-project
* Response: 404
METHODS teams_check_permissions_for_pr
IMPORTING
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, 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
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: project_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyteams_remove_project_in_or
METHODS teams_remove_project_in_org
IMPORTING
org TYPE string
team_slug TYPE string
project_id TYPE i
body TYPE bodyteams_remove_project_in_or
RAISING cx_static_check.
* GET - "List team repositories"
* Operation id: teams/list-repos-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_teams_list_repos_in_org
METHODS teams_list_repos_in_org
IMPORTING
org TYPE string
team_slug TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_teams_list_repos_in_o
RAISING cx_static_check.
* GET - "Check team permissions for a repository"
* Operation id: teams/check-permissions-for-repo-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/team-repository
* Response: 204
* Response: 404
METHODS teams_check_permissions_for_re
IMPORTING
org TYPE string
team_slug TYPE string
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE team_repository
RAISING cx_static_check.
* PUT - "Add or update team repository permissions"
* Operation id: teams/add-or-update-repo-permissions-in-org
* Parameter: org, required, path
* Parameter: team_slug, 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
org TYPE string
team_slug TYPE string
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-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Body ref: #/components/schemas/bodyteams_remove_repo_in_org
METHODS teams_remove_repo_in_org
IMPORTING
org TYPE string
team_slug TYPE string
owner TYPE string
repo TYPE string
body TYPE bodyteams_remove_repo_in_org
RAISING cx_static_check.
* GET - "List child teams"
* Operation id: teams/list-child-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_teams_list_child_in_org
METHODS teams_list_child_in_org
IMPORTING
org TYPE string
team_slug TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_teams_list_child_in_o
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.
* 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.
* DELETE - "Delete a commit comment reaction"
* Operation id: reactions/delete-for-commit-comment
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: comment_id, required, path
* Parameter: reaction_id, required, path
* Response: 204
METHODS reactions_delete_for_commit_co
IMPORTING
owner TYPE string
repo TYPE string
comment_id TYPE i
reaction_id TYPE i
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.
* DELETE - "Delete a deployment"
* Operation id: repos/delete-deployment
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: deployment_id, required, path
* Response: 204
* Response: 404
* Response: 422
METHODS repos_delete_deployment
IMPORTING
owner TYPE string
repo TYPE string
deployment_id TYPE i
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.
* POST - "Create a repository dispatch event"
* Operation id: repos/create-dispatch-event
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Response: 422
* Body ref: #/components/schemas/bodyrepos_create_dispatch_even
METHODS repos_create_dispatch_event
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_create_dispatch_even
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.
* DELETE - "Delete an issue comment reaction"
* Operation id: reactions/delete-for-issue-comment
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: comment_id, required, path
* Parameter: reaction_id, required, path
* Response: 204
METHODS reactions_delete_for_issue_com
IMPORTING
owner TYPE string
repo TYPE string
comment_id TYPE i
reaction_id TYPE i
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_02
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.
* DELETE - "Delete an issue reaction"
* Operation id: reactions/delete-for-issue
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: issue_number, required, path
* Parameter: reaction_id, required, path
* Response: 204
METHODS reactions_delete_for_issue
IMPORTING
owner TYPE string
repo TYPE string
issue_number TYPE i
reaction_id TYPE i
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.
* DELETE - "Delete a pull request comment reaction"
* Operation id: reactions/delete-for-pull-request-comment
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: comment_id, required, path
* Parameter: reaction_id, required, path
* Response: 204
METHODS reactions_delete_for_pull_requ
IMPORTING
owner TYPE string
repo TYPE string
comment_id TYPE i
reaction_id TYPE i
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"
* Operation id: pulls/create-review-comment
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: pull_number, required, path
* Response: 201
* application/json, #/components/schemas/pull-request-review-comment
* Response: 403
* Response: 422
* Body ref: #/components/schemas/bodypulls_create_review_commen
METHODS pulls_create_review_comment
IMPORTING
owner TYPE string
repo TYPE string
pull_number TYPE i
body TYPE bodypulls_create_review_commen
RETURNING
VALUE(return_data) TYPE pull_request_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 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,
26115,
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,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NING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt
RAISING zcx_abapgit_exception.
PRIVATE SECTION.
CLASS-METHODS:
calculate_status
IMPORTING iv_devclass TYPE devclass
io_dot TYPE REF TO zcl_abapgit_dot_abapgit
it_local TYPE zif_abapgit_definitions=>ty_files_item_tt
it_remote TYPE zif_abapgit_definitions=>ty_files_tt
it_cur_state TYPE zif_abapgit_definitions=>ty_file_signatures_tt
RETURNING VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt
RAISING zcx_abapgit_exception,
run_checks
IMPORTING io_log TYPE REF TO zcl_abapgit_log
it_results TYPE zif_abapgit_definitions=>ty_results_tt
io_dot TYPE REF TO zcl_abapgit_dot_abapgit
iv_top TYPE devclass
RAISING zcx_abapgit_exception,
build_existing
IMPORTING is_local TYPE zif_abapgit_definitions=>ty_file_item
is_remote TYPE zif_abapgit_definitions=>ty_file
it_state TYPE zif_abapgit_definitions=>ty_file_signatures_ts
RETURNING VALUE(rs_result) TYPE zif_abapgit_definitions=>ty_result,
build_new_local
IMPORTING is_local TYPE zif_abapgit_definitions=>ty_file_item
RETURNING VALUE(rs_result) TYPE zif_abapgit_definitions=>ty_result,
build_new_remote
IMPORTING iv_devclass TYPE devclass
io_dot TYPE REF TO zcl_abapgit_dot_abapgit
is_remote TYPE zif_abapgit_definitions=>ty_file
it_items TYPE zif_abapgit_definitions=>ty_items_ts
it_state TYPE zif_abapgit_definitions=>ty_file_signatures_ts
RETURNING VALUE(rs_result) TYPE zif_abapgit_definitions=>ty_result
RAISING zcx_abapgit_exception,
identify_object
IMPORTING iv_filename TYPE string
iv_path TYPE string
iv_devclass TYPE devclass
io_dot TYPE REF TO zcl_abapgit_dot_abapgit
EXPORTING es_item TYPE zif_abapgit_definitions=>ty_item
ev_is_xml TYPE abap_bool
RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_FILE_STATUS IMPLEMENTATION.
METHOD build_existing.
DATA: ls_file_sig LIKE LINE OF it_state.
" Item
rs_result-obj_type = is_local-item-obj_type.
rs_result-obj_name = is_local-item-obj_name.
rs_result-package = is_local-item-devclass.
" File
rs_result-path = is_local-file-path.
rs_result-filename = is_local-file-filename.
IF is_local-file-sha1 = is_remote-sha1.
rs_result-match = abap_true.
RETURN.
ENDIF.
" Match against current state
READ TABLE it_state INTO ls_file_sig
WITH KEY path = is_local-file-path
filename = is_local-file-filename
BINARY SEARCH.
IF sy-subrc = 0.
IF ls_file_sig-sha1 <> is_local-file-sha1.
rs_result-lstate = zif_abapgit_definitions=>c_state-modified.
ENDIF.
IF ls_file_sig-sha1 <> is_remote-sha1.
rs_result-rstate = zif_abapgit_definitions=>c_state-modified.
ENDIF.
rs_result-match = boolc( rs_result-lstate IS INITIAL
AND rs_result-rstate IS INITIAL ).
ELSE.
" This is a strange situation. As both local and remote exist
" the state should also be present. Maybe this is a first run of the code.
" In this case just compare hashes directly and mark both changed
" the user will presumably decide what to do after checking the actual diff
rs_result-match = boolc( is_local-file-sha1 = is_remote-sha1 ).
IF rs_result-match = abap_false.
rs_result-lstate = zif_abapgit_definitions=>c_state-modified.
rs_result-rstate = zif_abapgit_definitions=>c_state-modified.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD build_new_local.
" Item
rs_result-obj_type = is_local-item-obj_type.
rs_result-obj_name = is_local-item-obj_name.
rs_result-package = is_local-item-devclass.
" File
rs_result-path = is_local-file-path.
rs_result-filename = is_local-file-filename.
" Match
rs_result-match = abap_false.
rs_result-lstate = zif_abapgit_definitions=>c_state-added.
ENDMETHOD.
METHOD build_new_remote.
DATA: ls_item LIKE LINE OF it_items,
ls_file_sig LIKE LINE OF it_state.
" Common and default part
rs_result-path = is_remote-path.
rs_result-filename = is_remote-filename.
rs_result-match = abap_false.
rs_result-rstate = zif_abapgit_definitions=>c_state-added.
identify_object( EXPORTING iv_filename = is_remote-filename
iv_path = is_remote-path
iv_devclass = iv_devclass
io_dot = io_dot
IMPORTING es_item = ls_item ).
" Check if in item index + get package
READ TABLE it_items INTO ls_item
WITH KEY obj_type = ls_item-obj_type obj_name = ls_item-obj_name
BINARY SEARCH.
IF sy-subrc = 0.
" Completely new (xml, abap) and new file in an existing object
rs_result-obj_type = ls_item-obj_type.
rs_result-obj_name = ls_item-obj_name.
rs_result-package = ls_item-devclass.
READ TABLE it_state INTO ls_file_sig
WITH KEY path = is_remote-path filename = is_remote-filename
BINARY SEARCH.
" Existing file but from another package
" was not added during local file proc as was not in tadir for repo package
IF sy-subrc = 0.
IF ls_file_sig-sha1 = is_remote-sha1.
rs_result-match = abap_true.
CLEAR rs_result-rstate.
ELSE.
rs_result-rstate = zif_abapgit_definitions=>c_state-modified.
ENDIF.
" Item is in state and in cache but with no package - it was deleted
" OR devclass is the same as repo package (see #532)
IF ls_item-devclass IS INITIAL OR ls_item-devclass = iv_devclass.
rs_result-match = abap_false.
rs_result-lstate = zif_abapgit_definitions=>c_state-deleted.
ENDIF.
ENDIF.
ELSE. " Completely unknown file, probably non-abapgit
ASSERT 1 = 1. " No action, just follow defaults
ENDIF.
ENDMETHOD.
METHOD calculate_status.
DATA: lt_remote LIKE it_remote,
lt_items TYPE zif_abapgit_definitions=>ty_items_tt,
ls_item LIKE LINE OF lt_items,
lv_is_xml TYPE abap_bool,
lv_sub_fetched TYPE abap_bool,
lt_sub_packages TYPE zif_abapgit_sap_package=>ty_devclass_tt,
lt_items_idx TYPE zif_abapgit_definitions=>ty_items_ts,
lt_state_idx TYPE zif_abapgit_definitions=>ty_file_signatures_ts. " Sorted by path+filename
FIELD-SYMBOLS: <ls_remote> LIKE LINE OF it_remote,
<ls_result> LIKE LINE OF rt_results,
<ls_local> LIKE LINE OF it_local.
lt_state_idx = it_cur_state. " Force sort it
lt_remote = it_remote.
SORT lt_remote BY path filename.
" Process local files and new local files
LOOP AT it_local ASSIGNING <ls_local>.
APPEND INITIAL LINE TO rt_results ASSIGNING <ls_result>.
IF <ls_local>-item IS NOT INITIAL.
APPEND <ls_local>-item TO lt_items. " Collect for item index
ENDIF.
READ TABLE lt_remote ASSIGNING <ls_remote>
WITH KEY path = <ls_local>-file-path filename = <ls_local>-file-filename
BINARY SEARCH.
IF sy-subrc = 0. " Exist local and remote
<ls_result> = build_existing(
is_local = <ls_local>
is_remote = <ls_remote>
it_state = lt_state_idx ).
ASSERT <ls_remote>-sha1 IS NOT INITIAL.
CLEAR <ls_remote>-sha1. " Mark as processed
ELSE. " Only L exists
<ls_result> = build_new_local( <ls_local> ).
ENDIF.
<ls_result>-inactive = <ls_local>-item-inactive.
ENDLOOP.
" Complete item index for unmarked remote files
LOOP AT lt_remote ASSIGNING <ls_remote> WHERE sha1 IS NOT INITIAL.
identify_object( EXPORTING iv_filename = <ls_remote>-filename
iv_path = <ls_remote>-path
io_dot = io_dot
iv_devclass = iv_devclass
IMPORTING es_item = ls_item
ev_is_xml = lv_is_xml ).
CHECK lv_is_xml = abap_true. " Skip all but obj definitions
ls_item-devclass = zcl_abapgit_factory=>get_tadir( )->get_object_package(
iv_object = ls_item-obj_type
iv_obj_name = ls_item-obj_name ).
IF NOT ls_item-devclass IS INITIAL AND iv_devclass <> ls_item-devclass.
IF lv_sub_fetched = abap_false.
lt_sub_packages = zcl_abapgit_factory=>get_sap_package( iv_devclass )->list_subpackages( ).
lv_sub_fetched = abap_true.
SORT lt_sub_packages BY table_line. "Optimize Read Access
ENDIF.
* make sure the package is under the repo main package
READ TABLE lt_sub_packages TRANSPORTING NO FIELDS
WITH KEY table_line = ls_item-devclass
BINARY SEARCH.
IF sy-subrc <> 0.
CLEAR ls_item-devclass.
ENDIF.
ENDIF.
APPEND ls_item TO lt_items.
ENDLOOP.
SORT lt_items DESCENDING. " Default key - type, name, pkg, inactive
DELETE ADJACENT DUPLICATES FROM lt_items COMPARING obj_type obj_name devclass.
lt_items_idx = lt_items. " Self protection + UNIQUE records assertion
" Process new remote files (marked above with empty SHA1)
LOOP AT lt_remote ASSIGNING <ls_remote> WHERE sha1 IS NOT INITIAL.
APPEND INITIAL LINE TO rt_results ASSIGNING <ls_result>.
<ls_result> = build_new_remote( iv_devclass = iv_devclass
io_dot = io_dot
is_remote = <ls_remote>
it_items = lt_items_idx
it_state = lt_state_idx ).
ENDLOOP.
SORT rt_results BY
obj_type ASCENDING
obj_name ASCENDING
filename ASCENDING.
ENDMETHOD.
METHOD identify_object.
DATA: lv_name TYPE tadir-obj_name,
lv_type TYPE string,
lv_ext TYPE string.
" Guess object type and name
SPLIT to_upper( iv_filename ) AT '.' INTO lv_name lv_type lv_ext.
" Handle namespaces
REPLACE ALL OCCURRENCES OF '#' IN lv_name WITH '/'.
REPLACE ALL OCCURRENCES OF '#' IN lv_type WITH '/'.
REPLACE ALL OCCURRENCES OF '#' IN lv_ext WITH '/'.
" Try to get a unique package name for DEVC by using the path
IF lv_type = 'DEVC'.
ASSERT lv_name = 'PACKAGE'.
lv_name = zcl_abapgit_folder_logic=>get_instance( )->path_to_package(
iv_top = iv_devclass
io_dot = io_dot
iv_create_if_not_exists = abap_false
iv_path = iv_path ).
ENDIF.
CLEAR es_item.
es_item-obj_type = lv_type.
es_item-obj_name = lv_name.
ev_is_xml = boolc( lv_ext = 'XML' AND strlen( lv_type ) = 4 ).
ENDMETHOD.
METHOD run_checks.
DATA: lv_path TYPE string,
ls_item TYPE zif_abapgit_definitions=>ty_item,
ls_file TYPE zif_abapgit_definitions=>ty_file_signature,
lt_res_sort LIKE it_results,
lt_item_idx LIKE it_results.
DATA: lo_folder_logic TYPE REF TO zcl_abapgit_folder_logic.
FIELD-SYMBOLS: <ls_res1> LIKE LINE OF it_results,
<ls_res2> LIKE LINE OF it_results.
IF io_log IS INITIAL.
RETURN.
ENDIF.
" Collect object indexe
lt_res_sort = it_results.
SORT lt_res_sort BY obj_type ASCENDING obj_name ASCENDING.
LOOP AT it_results ASSIGNING <ls_res1> WHERE NOT obj_type IS INITIAL.
IF NOT ( <ls_res1>-obj_type = ls_item-obj_type
AND <ls_res1>-obj_name = ls_item-obj_name ).
APPEND INITIAL LINE TO lt_item_idx ASSIGNING <ls_res2>.
<ls_res2>-obj_type = <ls_res1>-obj_type.
<ls_res2>-obj_name = <ls_res1>-obj_name.
<ls_res2>-path = <ls_res1>-path.
MOVE-CORRESPONDING <ls_res1> TO ls_item.
ENDIF.
ENDLOOP.
" Check files for one object is in the same folder
LOOP AT it_results ASSIGNING <ls_res1> WHERE NOT obj_type IS INITIAL AND obj_type <> 'DEVC'.
READ TABLE lt_item_idx ASSIGNING <ls_res2>
WITH KEY obj_type = <ls_res1>-obj_type obj_name = <ls_res1>-obj_name
BINARY SEARCH. " Sorted above
IF sy-subrc <> 0 OR <ls_res1>-path <> <ls_res2>-path. " All paths are same
io_log->add( iv_msg = |Files for object { <ls_res1>-obj_type } {
<ls_res1>-obj_name } are not placed in the same folder|
iv_type = 'W'
iv_rc = '1' ) ##no_text.
ENDIF.
ENDLOOP.
" Check that objects are created in package corresponding to folder
lo_folder_logic = zcl_abapgit_folder_logic=>get_instance( ).
LOOP AT it_results ASSIGNING <ls_res1>
WHERE NOT package IS INITIAL AND NOT path IS INITIAL.
lv_path = lo_folder_logic->package_to_path(
iv_top = iv_top
io_dot = io_dot
iv_package = <ls_res1>-package ).
IF lv_path <> <ls_res1>-path.
io_log->add( iv_msg = |Package and path does not match for object, {
<ls_res1>-obj_type } { <ls_res1>-obj_name }|
iv_type = 'W'
iv_rc = '2' ) ##no_text.
ENDIF.
ENDLOOP.
" Check for multiple files with same filename
SORT lt_res_sort BY filename ASCENDING.
LOOP AT lt_res_sort ASSIGNING <ls_res1> WHERE obj_type <> 'DEVC'.
IF <ls_res1>-filename IS NOT INITIAL AND <ls_res1>-filename = ls_file-filename.
io_log->add( iv_msg = |Multiple files with same filename, { <ls_res1>-filename }|
iv_type = 'W'
iv_rc = '3' ) ##no_text.
ENDIF.
IF <ls_res1>-filename IS INITIAL.
io_log->add( iv_msg = |Filename is empty for object { <ls_res1>-obj_type } { <ls_res1>-obj_name }|
iv_type = 'W'
iv_rc = '4' ) ##no_text.
ENDIF.
MOVE-CORRESPONDING <ls_res1> TO ls_file.
ENDLOOP.
ENDMETHOD.
METHOD status.
DATA: lv_index LIKE sy-tabix,
lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit.
FIELD-SYMBOLS <ls_result> LIKE LINE OF rt_results.
rt_results = calculate_status(
iv_devclass = io_repo->get_package( )
io_dot = io_repo->get_dot_abapgit( )
it_local = io_repo->get_files_local( io_log = io_log )
it_remote = io_repo->get_files_remote( )
it_cur_state = io_repo->get_local_checksums_per_file( ) ).
lo_dot_abapgit = io_repo->get_dot_abapgit( ).
" Remove ignored files, fix .abapgit
LOOP AT rt_results ASSIGNING <ls_result>.
lv_index = sy-tabix.
IF lo_dot_abapgit->is_ignored(
iv_path = <ls_result>-path
iv_filename = <ls_result>-filename ) = abap_true.
DELETE rt_results INDEX lv_index.
CONTINUE.
ENDIF.
ENDLOOP.
run_checks(
io_log = io_log
it_results = rt_results
io_dot = lo_dot_abapgit
iv_top = io_repo->get_package( ) ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
7753,
62,
13376,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
3722,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33245,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
6404,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6404,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
43420,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
43420,
62,
926,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
15284,
62,
13376,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
7959,
4871,
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,
33245,
62,
26518,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
12001,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
16624,
62,
9186,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
47960,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
16624,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
22019,
62,
5219,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
62,
12683,
6691,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
43420,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
43420,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
1057,
62,
42116,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33245,
62,
6404,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6404,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
43420,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
43420,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
26518,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
4852,
220,
220,
220,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
1382,
62,
25687,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
318,
62,
12001,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
47960,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
5219,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
62,
12683,
6691,
62,
912,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
20274,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
1382,
62,
3605,
62,
12001,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
318,
62,
12001,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
20274,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
1382,
62,
3605,
62,
47960,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
7959,
4871,
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,
33245,
62,
26518,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
47960,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
198,
220,
220,
220,
220,
220,
220,
220,
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,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_shi3 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.
PRIVATE SECTION.
DATA: mv_tree_id TYPE ttree-id.
METHODS jump_se43
RAISING zcx_abapgit_exception.
METHODS clear_fields
CHANGING cs_head TYPE ttree
ct_nodes TYPE hier_iface_t.
ENDCLASS.
CLASS zcl_abapgit_object_shi3 IMPLEMENTATION.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD. "zif_abapgit_object~has_changed_since
METHOD zif_abapgit_object~changed_by.
DATA: ls_head TYPE ttree.
CALL FUNCTION 'STREE_STRUCTURE_READ'
EXPORTING
structure_id = mv_tree_id
IMPORTING
structure_header = ls_head.
rv_user = ls_head-luser.
ENDMETHOD.
METHOD constructor.
super->constructor( is_item = is_item iv_language = iv_language ).
mv_tree_id = ms_item-obj_name.
ENDMETHOD. "constructor
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD. "zif_abapgit_object~get_metadata
METHOD jump_se43.
DATA: lt_bdcdata TYPE TABLE OF bdcdata.
FIELD-SYMBOLS: <ls_bdcdata> LIKE LINE OF lt_bdcdata.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-program = 'SAPLBMEN'.
<ls_bdcdata>-dynpro = '0200'.
<ls_bdcdata>-dynbegin = abap_true.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'BDC_OKCODE'.
<ls_bdcdata>-fval = '=SHOW'.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'BMENUNAME-ID'.
<ls_bdcdata>-fval = ms_item-obj_name.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
STARTING NEW TASK 'GIT'
EXPORTING
tcode = 'SE43'
mode_val = 'E'
TABLES
using_tab = lt_bdcdata
EXCEPTIONS
system_failure = 1
communication_failure = 2
resource_failure = 3
OTHERS = 4.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SHI3' ).
ENDIF.
ENDMETHOD. "jump_se43
METHOD zif_abapgit_object~jump.
DATA: ls_head TYPE ttree.
CALL FUNCTION 'STREE_STRUCTURE_READ'
EXPORTING
structure_id = mv_tree_id
IMPORTING
structure_header = ls_head.
CASE ls_head-type.
WHEN 'BMENU'.
jump_se43( ).
WHEN OTHERS.
zcx_abapgit_exception=>raise( |Jump for type { ls_head-type } not implemented| ).
ENDCASE.
ENDMETHOD. "jump
METHOD zif_abapgit_object~exists.
DATA: ls_msg TYPE hier_mess,
ls_header TYPE ttree,
ls_tadir TYPE tadir.
CALL FUNCTION 'STREE_STRUCTURE_EXIST'
EXPORTING
structure_id = mv_tree_id
do_not_read_devclass = ''
IMPORTING
message = ls_msg
structure_header = ls_header
structure_tadir = ls_tadir.
rv_bool = boolc( ls_header-id IS NOT INITIAL ).
ENDMETHOD. "zif_abapgit_object~exists
METHOD zif_abapgit_object~delete.
CALL FUNCTION 'BMENU_DELETE_TREE'
EXPORTING
tree_id = mv_tree_id
EXCEPTIONS
trees_do_not_exist = 1
no_authority = 2
canceled = 3
OTHERS = 4.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from BMENU_DELETE_TREE, SHI3' ).
ENDIF.
ENDMETHOD. "delete
METHOD zif_abapgit_object~serialize.
DATA: ls_msg TYPE hier_mess,
ls_head TYPE ttree,
lt_titles TYPE TABLE OF ttreet,
lt_nodes TYPE TABLE OF hier_iface,
lt_texts TYPE TABLE OF hier_texts,
lt_refs TYPE TABLE OF hier_ref.
CALL FUNCTION 'STREE_STRUCTURE_READ'
EXPORTING
structure_id = mv_tree_id
IMPORTING
message = ls_msg
structure_header = ls_head
TABLES
description = lt_titles.
CALL FUNCTION 'STREE_HIERARCHY_READ'
EXPORTING
structure_id = mv_tree_id
read_also_texts = 'X'
all_languages = 'X'
IMPORTING
message = ls_msg
TABLES
list_of_nodes = lt_nodes
list_of_references = lt_refs
list_of_texts = lt_texts.
clear_fields( CHANGING cs_head = ls_head
ct_nodes = lt_nodes ).
io_xml->add( iv_name = 'TREE_HEAD'
ig_data = ls_head ).
io_xml->add( iv_name = 'TREE_TITLES'
ig_data = lt_titles ).
io_xml->add( iv_name = 'TREE_NODES'
ig_data = lt_nodes ).
io_xml->add( iv_name = 'TREE_REFS'
ig_data = lt_refs ).
io_xml->add( iv_name = 'TREE_TEXTS'
ig_data = lt_texts ).
ENDMETHOD. "serialize
METHOD clear_fields.
FIELD-SYMBOLS <ls_node> LIKE LINE OF ct_nodes.
CLEAR: cs_head-luser, cs_head-ldate, cs_head-ltime.
CLEAR: cs_head-fuser, cs_head-fdate, cs_head-ftime.
CLEAR: cs_head-frelease, cs_head-lrelease.
CLEAR: cs_head-responsibl.
LOOP AT ct_nodes ASSIGNING <ls_node>.
CLEAR: <ls_node>-luser, <ls_node>-ldate, <ls_node>-ltime.
CLEAR: <ls_node>-fuser, <ls_node>-fdate, <ls_node>-ftime.
CLEAR: <ls_node>-frelease, <ls_node>-lrelease.
ENDLOOP.
ENDMETHOD. "strip_stamps
METHOD zif_abapgit_object~deserialize.
DATA: ls_msg TYPE hier_mess,
ls_head TYPE ttree,
lt_titles TYPE TABLE OF ttreet,
lt_nodes TYPE TABLE OF hier_iface,
lt_texts TYPE TABLE OF hier_texts,
lt_refs TYPE TABLE OF hier_ref.
io_xml->read( EXPORTING iv_name = 'TREE_HEAD'
CHANGING cg_data = ls_head ).
io_xml->read( EXPORTING iv_name = 'TREE_TITLES'
CHANGING cg_data = lt_titles ).
io_xml->read( EXPORTING iv_name = 'TREE_NODES'
CHANGING cg_data = lt_nodes ).
io_xml->read( EXPORTING iv_name = 'TREE_REFS'
CHANGING cg_data = lt_refs ).
io_xml->read( EXPORTING iv_name = 'TREE_TEXTS'
CHANGING cg_data = lt_texts ).
IF zif_abapgit_object~exists( ) = abap_true.
zif_abapgit_object~delete( ).
ENDIF.
CALL FUNCTION 'STREE_HIERARCHY_SAVE'
EXPORTING
structure_id = mv_tree_id
structure_type = ls_head-type
structure_description = space
structure_masterlanguage = mv_language
structure_responsible = sy-uname
development_class = iv_package
IMPORTING
message = ls_msg
TABLES
list_of_nodes = lt_nodes
list_of_references = lt_refs
list_of_texts = lt_texts
structure_descriptions = lt_titles
EXCEPTIONS
no_nodes_given = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Error from STREE_HIERARCHY_SAVE, SHI3' ).
ENDIF.
ENDMETHOD. "deserialize
METHOD zif_abapgit_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null.
ENDMETHOD.
ENDCLASS. "zcl_abapgit_object_shi3 IMPLEMENTATION
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
44019,
18,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
41876,
7500,
292,
13,
628,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
285,
85,
62,
21048,
62,
312,
41876,
256,
21048,
12,
312,
13,
628,
220,
220,
220,
337,
36252,
50,
4391,
62,
325,
3559,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
628,
220,
220,
220,
337,
36252,
50,
1598,
62,
25747,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
50115,
62,
2256,
220,
41876,
256,
21048,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
77,
4147,
41876,
13550,
62,
361,
558,
62,
83,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
44019,
18,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
10134,
62,
40985,
62,
20777,
13,
198,
220,
220,
220,
374,
85,
62,
40985,
796,
450,
499,
62,
7942,
13,
198,
220,
23578,
49273,
13,
220,
366,
89,
361,
62,
397,
499,
18300,
62,
15252,
93,
10134,
62,
40985,
62,
20777,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
2256,
41876,
256,
21048,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
2257,
11587,
62,
46126,
11335,
62,
15675,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
4645,
62,
312,
220,
220,
220,
220,
796,
285,
85,
62,
21048,
62,
312,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
4645,
62,
25677,
796,
43979,
62,
2256,
13,
628,
220,
220,
220,
374,
85,
62,
7220,
796,
43979,
62,
2256,
12,
75,
7220,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
318,
62,
9186,
796,
318,
62,
9186,
21628,
62,
16129,
796,
21628,
62,
16129,
6739,
198,
220,
220,
220,
285,
85,
62,
21048,
62,
312,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
41571,
273,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
38993,
13,
198,
220,
220,
220,
44608,
62,
38993,
796,
651,
62,
38993,
7,
6739,
198,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
89,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
38993,
628,
220,
337,
36252,
4391,
62,
325,
3559,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
17457,
66,
7890,
41876,
43679,
3963,
275,
17896,
7890,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
17457,
66,
7890,
29,
34178,
48920,
3963,
300,
83,
62,
17457,
66,
7890,
13,
628,
220,
220,
220,
43504,
10619,
3268,
2043,
12576,
48920,
5390,
300,
83,
62,
17457,
66,
7890,
24994,
3528,
15871,
1279,
7278,
62,
17457,
66,
7890,
28401,
198,
220,
220,
220,
1279,
7278,
62,
17457,
66,
7890,
29,
12,
23065,
220,
796,
705,
50,
2969,
43,
12261,
1677,
4458,
198,
220,
220,
220,
1279,
7278,
62,
17457,
66,
7890,
29,
12,
67,
2047,
1676,
220,
220,
796,
705,
44613,
4458,
198,
220,
220,
220,
1279,
7278,
62,
17457,
66,
7890,
29,
12,
67,
2047,
27471,
796,
450,
499,
62,
7942,
13,
628,
220,
220,
220,
43504,
10619,
3268,
2043,
12576,
48920,
5390,
300,
83,
62,
17457,
66,
7890,
24994,
3528,
15871,
1279,
7278,
62,
17457,
66,
7890,
28401,
198,
220,
220,
220,
1279,
7278,
62,
17457,
66,
7890,
29,
12,
69,
7402,
796,
705,
33,
9697,
62,
11380,
34,
16820,
4458,
198,
220,
220,
220,
1279,
7278,
62,
17457,
66,
7890,
29,
12,
69,
2100,
796,
705,
28,
9693,
3913,
4458,
628,
220,
220,
220,
43504,
10619,
3268,
2043,
12576,
48920,
5390,
300,
83,
62,
17457,
66,
7890,
24994,
3528,
15871,
1279,
7278,
62,
17457,
66,
7890,
28401,
198,
220,
220,
220,
1279,
7278,
62,
17457,
66,
7890,
29,
12,
69,
7402,
796,
705,
12261,
1677,
4944,
10067,
12,
2389,
4458,
198,
220,
220,
220,
1279,
7278,
62,
17457,
66,
7890,
29,
12,
69,
2100,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
6242,
2969,
19,
62,
34,
7036,
62,
5446,
15037,
44710,
6,
198,
220,
220,
220,
220,
220,
33303,
2751,
12682,
309,
1921,
42,
705,
38,
2043,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
256,
8189,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
5188,
3559,
6,
198,
220,
220,
220,
220,
220,
220,
220,
4235,
62,
2100,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
36,
6,
198,
220,
220,
220,
220,
220,
309,
6242,
28378,
198,
220,
220,
220,
220,
220,
220,
220,
1262,
62,
8658,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 DEFINITION
PUBLIC
CREATE PUBLIC.
PUBLIC SECTION.
CONSTANTS c_indent_size TYPE i VALUE 2 ##NO_TEXT.
CLASS-METHODS class_constructor .
METHODS add
IMPORTING
!ig_chunk TYPE any .
METHODS render
IMPORTING
!iv_no_indent_jscss TYPE abap_bool OPTIONAL
RETURNING
VALUE(rv_html) TYPE string .
METHODS is_empty
RETURNING
VALUE(rv_yes) TYPE abap_bool .
METHODS add_a
IMPORTING
!iv_txt TYPE string
!iv_act TYPE string
!iv_typ TYPE char1 DEFAULT zif_abapgit_definitions=>c_action_type-sapevent
!iv_opt TYPE clike OPTIONAL
!iv_class TYPE string OPTIONAL
!iv_id TYPE string OPTIONAL
!iv_style TYPE string OPTIONAL.
METHODS add_icon
IMPORTING
!iv_name TYPE string
!iv_hint TYPE string OPTIONAL
!iv_class TYPE string OPTIONAL .
CLASS-METHODS a
IMPORTING
!iv_txt TYPE string
!iv_act TYPE string
!iv_typ TYPE char1 DEFAULT zif_abapgit_definitions=>c_action_type-sapevent
!iv_opt TYPE clike OPTIONAL
!iv_class TYPE string OPTIONAL
!iv_id TYPE string OPTIONAL
!iv_style TYPE string OPTIONAL
RETURNING
VALUE(rv_str) TYPE string .
CLASS-METHODS icon
IMPORTING
!iv_name TYPE string
!iv_hint TYPE string OPTIONAL
!iv_class TYPE string OPTIONAL
RETURNING
VALUE(rv_str) TYPE string .
PRIVATE SECTION.
CLASS-DATA: go_single_tags_re TYPE REF TO cl_abap_regex.
DATA: mt_buffer TYPE string_table.
TYPES:
BEGIN OF ty_indent_context,
no_indent_jscss TYPE abap_bool,
within_style TYPE abap_bool,
within_js TYPE abap_bool,
indent TYPE i,
indent_str TYPE string,
END OF ty_indent_context,
BEGIN OF ty_study_result,
style_open TYPE abap_bool,
style_close TYPE abap_bool,
script_open TYPE abap_bool,
script_close TYPE abap_bool,
tag_close TYPE abap_bool,
curly_close TYPE abap_bool,
openings TYPE i,
closings TYPE i,
singles TYPE i,
END OF ty_study_result.
METHODS indent_line
CHANGING
cs_context TYPE ty_indent_context
cv_line TYPE string.
METHODS study_line
IMPORTING iv_line TYPE string
is_context TYPE ty_indent_context
RETURNING VALUE(rs_result) TYPE ty_study_result.
ENDCLASS.
CLASS zcl_abapgit_html IMPLEMENTATION.
METHOD a.
DATA: lv_class TYPE string,
lv_href TYPE string,
lv_click TYPE string,
lv_id TYPE string,
lv_style TYPE string,
lv_span TYPE string.
lv_class = iv_class.
IF iv_opt CA zif_abapgit_definitions=>c_html_opt-strong.
lv_class = lv_class && ' emphasis' ##NO_TEXT.
ENDIF.
IF iv_opt CA zif_abapgit_definitions=>c_html_opt-cancel.
lv_class = lv_class && ' attention' ##NO_TEXT.
ENDIF.
IF iv_opt CA zif_abapgit_definitions=>c_html_opt-crossout.
lv_class = lv_class && ' crossout grey' ##NO_TEXT.
ENDIF.
IF lv_class IS NOT INITIAL.
SHIFT lv_class LEFT DELETING LEADING space.
lv_class = | class="{ lv_class }"|.
ENDIF.
lv_href = ' href="#"'. " Default, dummy
IF iv_act IS NOT INITIAL OR iv_typ = zif_abapgit_definitions=>c_action_type-dummy.
CASE iv_typ.
WHEN zif_abapgit_definitions=>c_action_type-url.
lv_href = | href="{ iv_act }"|.
WHEN zif_abapgit_definitions=>c_action_type-sapevent.
lv_href = | href="sapevent:{ iv_act }"|.
WHEN zif_abapgit_definitions=>c_action_type-onclick.
lv_href = ' href="#"'.
lv_click = | onclick="{ iv_act }"|.
WHEN zif_abapgit_definitions=>c_action_type-dummy.
lv_href = ' href="#"'.
ENDCASE.
ENDIF.
IF iv_id IS NOT INITIAL.
lv_id = | id="{ iv_id }"|.
ENDIF.
IF iv_style IS NOT INITIAL.
lv_style = | style="{ iv_style }"|.
ENDIF.
lv_span = |<span class="tooltiptext hidden"></span>|.
rv_str = |<a{ lv_id }{ lv_class }{ lv_href }{ lv_click }{ lv_style }>{ iv_txt }{ lv_span }</a>|.
ENDMETHOD.
METHOD add.
DATA: lv_type TYPE c,
lo_html TYPE REF TO zcl_abapgit_html.
FIELD-SYMBOLS: <lt_tab> TYPE string_table.
DESCRIBE FIELD ig_chunk TYPE lv_type. " Describe is faster than RTTI classes
CASE lv_type.
WHEN 'C' OR 'g'. " Char or string
APPEND ig_chunk TO mt_buffer.
WHEN 'h'. " Table
ASSIGN ig_chunk TO <lt_tab>. " Assuming table of strings ! Will dump otherwise
APPEND LINES OF <lt_tab> TO mt_buffer.
WHEN 'r'. " Object ref
ASSERT ig_chunk IS BOUND. " Dev mistake
TRY.
lo_html ?= ig_chunk.
CATCH cx_sy_move_cast_error.
ASSERT 1 = 0. " Dev mistake
ENDTRY.
APPEND LINES OF lo_html->mt_buffer TO mt_buffer.
WHEN OTHERS.
ASSERT 1 = 0. " Dev mistake
ENDCASE.
ENDMETHOD.
METHOD add_a.
add( a( iv_txt = iv_txt
iv_act = iv_act
iv_typ = iv_typ
iv_opt = iv_opt
iv_class = iv_class
iv_id = iv_id
iv_style = iv_style ) ).
ENDMETHOD.
METHOD add_icon.
add( icon( iv_name = iv_name
iv_class = iv_class
iv_hint = iv_hint ) ).
ENDMETHOD.
METHOD class_constructor.
CREATE OBJECT go_single_tags_re
EXPORTING
pattern = '<(AREA|BASE|BR|COL|COMMAND|EMBED|HR|IMG|INPUT|LINK|META|PARAM|SOURCE|!)'
ignore_case = abap_false.
ENDMETHOD.
METHOD icon.
DATA: lv_hint TYPE string,
lv_name TYPE string,
lv_color TYPE string,
lv_class TYPE string,
lv_octicon_class TYPE string,
lv_xpixel TYPE i.
SPLIT iv_name AT '/' INTO lv_name lv_color.
IF iv_hint IS NOT INITIAL.
lv_hint = | title="{ iv_hint }"|.
ENDIF.
IF iv_class IS NOT INITIAL.
lv_class = | { iv_class }|.
ENDIF.
IF lv_color IS NOT INITIAL.
lv_color = | { lv_color }|.
ENDIF.
lv_xpixel = cl_gui_cfw=>compute_pixel_from_metric( x_or_y = 'X' in = 1 ).
IF lv_xpixel >= 2.
lv_octicon_class = 'mega-octicon'.
ELSE.
lv_octicon_class = 'octicon'.
ENDIF.
rv_str = |<i class="{ lv_octicon_class } octicon-{ lv_name }{ lv_color }{ lv_class }" { lv_hint }></i>|.
ENDMETHOD.
METHOD indent_line.
DATA: ls_study TYPE ty_study_result,
lv_x_str TYPE string.
ls_study = study_line(
is_context = cs_context
iv_line = cv_line ).
" First closing tag - shift back exceptionally
IF ( ls_study-script_close = abap_true
OR ls_study-style_close = abap_true
OR ls_study-curly_close = abap_true
OR ls_study-tag_close = abap_true )
AND cs_context-indent > 0.
lv_x_str = repeat( val = ` ` occ = ( cs_context-indent - 1 ) * c_indent_size ).
cv_line = lv_x_str && cv_line.
ELSE.
cv_line = cs_context-indent_str && cv_line.
ENDIF.
" Context status update
CASE abap_true.
WHEN ls_study-script_open.
cs_context-within_js = abap_true.
cs_context-within_style = abap_false.
WHEN ls_study-style_open.
cs_context-within_js = abap_false.
cs_context-within_style = abap_true.
WHEN ls_study-script_close OR ls_study-style_close.
cs_context-within_js = abap_false.
cs_context-within_style = abap_false.
ls_study-closings = ls_study-closings + 1.
ENDCASE.
" More-less logic chosen due to possible double tags in a line '<a><b>'
IF ls_study-openings <> ls_study-closings.
IF ls_study-openings > ls_study-closings.
cs_context-indent = cs_context-indent + 1.
ELSEIF cs_context-indent > 0. " AND ls_study-openings < ls_study-closings
cs_context-indent = cs_context-indent - 1.
ENDIF.
cs_context-indent_str = repeat( val = ` ` occ = cs_context-indent * c_indent_size ).
ENDIF.
ENDMETHOD.
METHOD is_empty.
rv_yes = boolc( lines( mt_buffer ) = 0 ).
ENDMETHOD.
METHOD render.
DATA: ls_context TYPE ty_indent_context,
lt_temp TYPE string_table.
FIELD-SYMBOLS: <lv_line> LIKE LINE OF lt_temp,
<lv_line_c> LIKE LINE OF lt_temp.
ls_context-no_indent_jscss = iv_no_indent_jscss.
LOOP AT mt_buffer ASSIGNING <lv_line>.
APPEND <lv_line> TO lt_temp ASSIGNING <lv_line_c>.
indent_line( CHANGING cs_context = ls_context cv_line = <lv_line_c> ).
ENDLOOP.
CONCATENATE LINES OF lt_temp INTO rv_html SEPARATED BY zif_abapgit_definitions=>c_newline.
ENDMETHOD.
METHOD study_line.
DATA: lv_line TYPE string,
lv_len TYPE i.
lv_line = to_upper( shift_left( val = iv_line sub = ` ` ) ).
lv_len = strlen( lv_line ).
" Some assumptions for simplification and speed
" - style & scripts tag should be opened/closed in a separate line
" - style & scripts opening and closing in one line is possible but only once
" TODO & Issues
" - What if the string IS a well formed html already not just single line ?
IF is_context-within_js = abap_true OR is_context-within_style = abap_true.
IF is_context-within_js = abap_true AND lv_len >= 8 AND lv_line(8) = '</SCRIPT'.
rs_result-script_close = abap_true.
ELSEIF is_context-within_style = abap_true AND lv_len >= 7 AND lv_line(7) = '</STYLE'.
rs_result-style_close = abap_true.
ENDIF.
IF is_context-no_indent_jscss = abap_false.
IF lv_len >= 1 AND lv_line(1) = '}'.
rs_result-curly_close = abap_true.
ENDIF.
FIND ALL OCCURRENCES OF '{' IN lv_line MATCH COUNT rs_result-openings.
FIND ALL OCCURRENCES OF '}' IN lv_line MATCH COUNT rs_result-closings.
ENDIF.
ELSE.
IF lv_len >= 7 AND lv_line(7) = '<SCRIPT'.
FIND FIRST OCCURRENCE OF '</SCRIPT' IN lv_line.
IF sy-subrc > 0. " Not found
rs_result-script_open = abap_true.
ENDIF.
ENDIF.
IF lv_len >= 6 AND lv_line(6) = '<STYLE'.
FIND FIRST OCCURRENCE OF '</STYLE' IN lv_line.
IF sy-subrc > 0. " Not found
rs_result-style_open = abap_true.
ENDIF.
ENDIF.
IF lv_len >= 2 AND lv_line(2) = '</'.
rs_result-tag_close = abap_true.
ENDIF.
FIND ALL OCCURRENCES OF '<' IN lv_line MATCH COUNT rs_result-openings.
FIND ALL OCCURRENCES OF '</' IN lv_line MATCH COUNT rs_result-closings.
FIND ALL OCCURRENCES OF REGEX go_single_tags_re IN lv_line MATCH COUNT rs_result-singles.
rs_result-openings = rs_result-openings - rs_result-closings - rs_result-singles.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
6494,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
521,
298,
62,
7857,
41876,
1312,
26173,
8924,
362,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
1398,
62,
41571,
273,
764,
198,
220,
220,
220,
337,
36252,
50,
751,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
328,
62,
354,
2954,
41876,
597,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3919,
62,
521,
298,
62,
73,
1416,
824,
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,
81,
85,
62,
6494,
8,
220,
220,
220,
220,
220,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
28920,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8505,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
64,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
14116,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
529,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
28004,
220,
220,
41876,
1149,
16,
5550,
38865,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
66,
62,
2673,
62,
4906,
12,
82,
1758,
1151,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8738,
220,
220,
41876,
537,
522,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
4871,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
312,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
7635,
41876,
4731,
39852,
2849,
1847,
13,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
4749,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
71,
600,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
4871,
41876,
4731,
39852,
2849,
1847,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
257,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
14116,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
529,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
28004,
220,
220,
220,
220,
220,
220,
41876,
1149,
16,
5550,
38865,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
66,
62,
2673,
62,
4906,
12,
82,
1758,
1151,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8738,
220,
220,
220,
220,
220,
220,
41876,
537,
522,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
4871,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
312,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
7635,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
2536,
8,
41876,
4731,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
7196,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
71,
600,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
4871,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
2536,
8,
41876,
4731,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42715,
12,
26947,
25,
467,
62,
29762,
62,
31499,
62,
260,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
260,
25636,
13,
628,
220,
220,
220,
42865,
25,
45079,
62,
22252,
41876,
4731,
62,
11487,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
521,
298,
62,
22866,
11,
198,
220,
220,
220,
220,
220,
220,
220,
645,
62,
521,
298,
62,
73,
1416,
824,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1626,
62,
7635,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1626,
62,
8457,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
33793,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
33793,
62,
2536,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
521,
298,
62,
22866,
11,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
44517,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3918,
62,
9654,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3918,
62,
19836,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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.
CLASS-METHODS: run RAISING zcx_abapgit_exception.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: BEGIN OF ty_settings_to_migrate,
name TYPE string,
value TYPE string,
END OF ty_settings_to_migrate,
tty_settings_to_migrate TYPE STANDARD TABLE OF ty_settings_to_migrate
WITH NON-UNIQUE DEFAULT KEY.
CONSTANTS c_text TYPE string VALUE 'Generated by abapGit' ##NO_TEXT.
CLASS-METHODS table_create
RAISING
zcx_abapgit_exception .
CLASS-METHODS table_exists
RETURNING
VALUE(rv_exists) TYPE abap_bool .
CLASS-METHODS lock_create
RAISING
zcx_abapgit_exception .
CLASS-METHODS lock_exists
RETURNING
VALUE(rv_exists) TYPE abap_bool .
CLASS-METHODS migrate_settings
RAISING
zcx_abapgit_exception.
CLASS-METHODS migrate_setting
IMPORTING
iv_name TYPE string
CHANGING
ct_settings_to_migrate TYPE tty_settings_to_migrate
ci_document TYPE REF TO if_ixml_document.
CLASS-METHODS distribute_settings_to_users
IMPORTING
it_settings_to_migrate TYPE tty_settings_to_migrate
RAISING
zcx_abapgit_exception.
CLASS-METHODS update_global_settings
IMPORTING
ii_document TYPE REF TO if_ixml_document
RAISING
zcx_abapgit_exception.
CLASS-METHODS read_global_settings_xml
RETURNING
VALUE(rv_global_settings_xml) TYPE string
RAISING
zcx_abapgit_not_found.
CLASS-METHODS get_global_settings_document
RETURNING
VALUE(ri_global_settings_dom) TYPE REF TO if_ixml_document
RAISING
zcx_abapgit_not_found.
ENDCLASS.
CLASS ZCL_ABAPGIT_PERSIST_MIGRATE IMPLEMENTATION.
METHOD distribute_settings_to_users.
TYPES: ty_char12 TYPE c LENGTH 12.
DATA: lt_abapgit_users TYPE STANDARD TABLE OF ty_char12
WITH NON-UNIQUE DEFAULT KEY,
ls_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings,
li_user_persistence TYPE REF TO zif_abapgit_persist_user.
FIELD-SYMBOLS: <lv_user> LIKE LINE OF lt_abapgit_users,
<ls_setting_to_migrate> TYPE ty_settings_to_migrate,
<lg_user_specific_setting_val> TYPE data.
" distribute settings to all abapGit users
SELECT value FROM (zcl_abapgit_persistence_db=>c_tabname)
INTO TABLE lt_abapgit_users
WHERE type = zcl_abapgit_persistence_db=>c_type_user.
LOOP AT lt_abapgit_users ASSIGNING <lv_user>.
li_user_persistence = zcl_abapgit_persistence_user=>get_instance( <lv_user> ).
ls_user_settings = li_user_persistence->get_settings( ).
LOOP AT it_settings_to_migrate ASSIGNING <ls_setting_to_migrate>.
ASSIGN COMPONENT <ls_setting_to_migrate>-name
OF STRUCTURE ls_user_settings
TO <lg_user_specific_setting_val>.
ASSERT sy-subrc = 0.
<lg_user_specific_setting_val> = <ls_setting_to_migrate>-value.
ENDLOOP.
li_user_persistence->set_settings( ls_user_settings ).
ENDLOOP.
ENDMETHOD.
METHOD get_global_settings_document.
DATA: lv_global_settings_xml TYPE string.
lv_global_settings_xml = read_global_settings_xml( ).
ri_global_settings_dom = cl_ixml_80_20=>parse_to_document( stream_string = lv_global_settings_xml ).
ENDMETHOD.
METHOD lock_create.
DATA: lv_obj_name TYPE tadir-obj_name,
ls_dd25v TYPE dd25v,
lt_dd26e TYPE STANDARD TABLE OF dd26e WITH DEFAULT KEY,
lt_dd27p TYPE STANDARD TABLE OF dd27p WITH DEFAULT KEY.
FIELD-SYMBOLS: <ls_dd26e> LIKE LINE OF lt_dd26e,
<ls_dd27p> LIKE LINE OF lt_dd27p.
ls_dd25v-viewname = zcl_abapgit_persistence_db=>c_lock.
ls_dd25v-aggtype = 'E'.
ls_dd25v-roottab = zcl_abapgit_persistence_db=>c_tabname.
ls_dd25v-ddlanguage = zif_abapgit_definitions=>c_english.
ls_dd25v-ddtext = c_text.
APPEND INITIAL LINE TO lt_dd26e ASSIGNING <ls_dd26e>.
<ls_dd26e>-viewname = zcl_abapgit_persistence_db=>c_lock.
<ls_dd26e>-tabname = zcl_abapgit_persistence_db=>c_tabname.
<ls_dd26e>-tabpos = '0001'.
<ls_dd26e>-fortabname = zcl_abapgit_persistence_db=>c_tabname.
<ls_dd26e>-enqmode = 'E'.
APPEND INITIAL LINE TO lt_dd27p ASSIGNING <ls_dd27p>.
<ls_dd27p>-viewname = zcl_abapgit_persistence_db=>c_lock.
<ls_dd27p>-objpos = '0001'.
<ls_dd27p>-viewfield = 'TYPE'.
<ls_dd27p>-tabname = zcl_abapgit_persistence_db=>c_tabname.
<ls_dd27p>-fieldname = 'TYPE'.
<ls_dd27p>-keyflag = abap_true.
APPEND INITIAL LINE TO lt_dd27p ASSIGNING <ls_dd27p>.
<ls_dd27p>-viewname = zcl_abapgit_persistence_db=>c_lock.
<ls_dd27p>-objpos = '0002'.
<ls_dd27p>-viewfield = 'VALUE'.
<ls_dd27p>-tabname = zcl_abapgit_persistence_db=>c_tabname.
<ls_dd27p>-fieldname = 'VALUE'.
<ls_dd27p>-keyflag = abap_true.
CALL FUNCTION 'DDIF_ENQU_PUT'
EXPORTING
name = zcl_abapgit_persistence_db=>c_lock
dd25v_wa = ls_dd25v
TABLES
dd26e_tab = lt_dd26e
dd27p_tab = lt_dd27p
EXCEPTIONS
enqu_not_found = 1
name_inconsistent = 2
enqu_inconsistent = 3
put_failure = 4
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'migrate, error from DDIF_ENQU_PUT' ).
ENDIF.
lv_obj_name = zcl_abapgit_persistence_db=>c_lock.
CALL FUNCTION 'TR_TADIR_INTERFACE'
EXPORTING
wi_tadir_pgmid = 'R3TR'
wi_tadir_object = 'ENQU'
wi_tadir_obj_name = lv_obj_name
wi_set_genflag = abap_true
wi_test_modus = abap_false
wi_tadir_devclass = '$TMP'
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'migrate, error from TR_TADIR_INTERFACE' ).
ENDIF.
CALL FUNCTION 'DDIF_ENQU_ACTIVATE'
EXPORTING
name = zcl_abapgit_persistence_db=>c_lock
EXCEPTIONS
not_found = 1
put_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'migrate, error from DDIF_ENQU_ACTIVATE' ).
ENDIF.
ENDMETHOD.
METHOD lock_exists.
DATA: lv_viewname TYPE dd25l-viewname.
SELECT SINGLE viewname FROM dd25l INTO lv_viewname
WHERE viewname = zcl_abapgit_persistence_db=>c_lock.
rv_exists = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD migrate_setting.
DATA: li_element TYPE REF TO if_ixml_element,
ls_setting_to_migrate LIKE LINE OF ct_settings_to_migrate.
li_element = ci_document->find_from_name( iv_name ).
IF li_element IS BOUND.
" The element is present in the global config.
" Therefore we have to migrate it
ls_setting_to_migrate-name = iv_name.
ls_setting_to_migrate-value = li_element->get_value( ).
INSERT ls_setting_to_migrate INTO TABLE ct_settings_to_migrate.
li_element->remove_node( ).
ENDIF.
ENDMETHOD.
METHOD migrate_settings.
DATA: li_global_settings_document TYPE REF TO if_ixml_document,
lt_settings_to_migrate TYPE tty_settings_to_migrate,
lx_error TYPE REF TO zcx_abapgit_not_found.
" migrate global settings to user specific settings
TRY.
li_global_settings_document = get_global_settings_document( ).
CATCH zcx_abapgit_not_found INTO lx_error.
" No global settings available, nothing todo.
RETURN.
ENDTRY.
migrate_setting(
EXPORTING
iv_name = |MAX_LINES|
CHANGING
ct_settings_to_migrate = lt_settings_to_migrate
ci_document = li_global_settings_document ).
migrate_setting(
EXPORTING
iv_name = |ADT_JUMP_ENABLED|
CHANGING
ct_settings_to_migrate = lt_settings_to_migrate
ci_document = li_global_settings_document ).
IF lines( lt_settings_to_migrate ) > 0.
distribute_settings_to_users( lt_settings_to_migrate ).
update_global_settings( li_global_settings_document ).
ENDIF.
ENDMETHOD.
METHOD read_global_settings_xml.
rv_global_settings_xml = zcl_abapgit_persistence_db=>get_instance( )->read(
iv_type = zcl_abapgit_persistence_db=>c_type_settings
iv_value = '' ).
ENDMETHOD.
METHOD run.
IF table_exists( ) = abap_false.
table_create( ).
ENDIF.
IF lock_exists( ) = abap_false.
lock_create( ).
ENDIF.
migrate_settings( ).
ENDMETHOD.
METHOD table_create.
DATA: lv_rc LIKE sy-subrc,
lv_obj_name TYPE tadir-obj_name,
ls_dd02v TYPE dd02v,
ls_dd09l TYPE dd09l,
lt_dd03p TYPE STANDARD TABLE OF dd03p WITH DEFAULT KEY.
FIELD-SYMBOLS: <ls_dd03p> LIKE LINE OF lt_dd03p.
ls_dd02v-tabname = zcl_abapgit_persistence_db=>c_tabname.
ls_dd02v-ddlanguage = zif_abapgit_definitions=>c_english.
ls_dd02v-tabclass = 'TRANSP'.
ls_dd02v-ddtext = c_text.
ls_dd02v-contflag = 'L'.
ls_dd02v-exclass = '1'.
ls_dd09l-tabname = zcl_abapgit_persistence_db=>c_tabname.
ls_dd09l-as4local = 'A'.
ls_dd09l-tabkat = '1'.
ls_dd09l-tabart = 'APPL1'.
ls_dd09l-bufallow = 'N'.
APPEND INITIAL LINE TO lt_dd03p ASSIGNING <ls_dd03p>.
<ls_dd03p>-tabname = zcl_abapgit_persistence_db=>c_tabname.
<ls_dd03p>-fieldname = 'TYPE'.
<ls_dd03p>-position = '0001'.
<ls_dd03p>-keyflag = 'X'.
<ls_dd03p>-datatype = 'CHAR'.
<ls_dd03p>-leng = '000012'.
APPEND INITIAL LINE TO lt_dd03p ASSIGNING <ls_dd03p>.
<ls_dd03p>-tabname = zcl_abapgit_persistence_db=>c_tabname.
<ls_dd03p>-fieldname = 'VALUE'.
<ls_dd03p>-position = '0002'.
<ls_dd03p>-keyflag = 'X'.
<ls_dd03p>-datatype = 'CHAR'.
<ls_dd03p>-leng = '000012'.
APPEND INITIAL LINE TO lt_dd03p ASSIGNING <ls_dd03p>.
<ls_dd03p>-tabname = zcl_abapgit_persistence_db=>c_tabname.
<ls_dd03p>-fieldname = 'DATA_STR'.
<ls_dd03p>-position = '0003'.
<ls_dd03p>-datatype = 'STRG'.
CALL FUNCTION 'DDIF_TABL_PUT'
EXPORTING
name = zcl_abapgit_persistence_db=>c_tabname
dd02v_wa = ls_dd02v
dd09l_wa = ls_dd09l
TABLES
dd03p_tab = lt_dd03p
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( 'migrate, error from DDIF_TABL_PUT' ).
ENDIF.
lv_obj_name = zcl_abapgit_persistence_db=>c_tabname.
CALL FUNCTION 'TR_TADIR_INTERFACE'
EXPORTING
wi_tadir_pgmid = 'R3TR'
wi_tadir_object = 'TABL'
wi_tadir_obj_name = lv_obj_name
wi_set_genflag = abap_true
wi_test_modus = abap_false
wi_tadir_devclass = '$TMP'
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'migrate, error from TR_TADIR_INTERFACE' ).
ENDIF.
CALL FUNCTION 'DDIF_TABL_ACTIVATE'
EXPORTING
name = zcl_abapgit_persistence_db=>c_tabname
auth_chk = abap_false
IMPORTING
rc = lv_rc
EXCEPTIONS
not_found = 1
put_failure = 2
OTHERS = 3.
IF sy-subrc <> 0 OR lv_rc <> 0.
zcx_abapgit_exception=>raise( 'migrate, error from DDIF_TABL_ACTIVATE' ).
ENDIF.
ENDMETHOD.
METHOD table_exists.
DATA: lv_tabname TYPE dd02l-tabname.
SELECT SINGLE tabname FROM dd02l INTO lv_tabname
WHERE tabname = zcl_abapgit_persistence_db=>c_tabname.
rv_exists = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD update_global_settings.
DATA: li_ixml TYPE REF TO if_ixml,
lv_settings_xml TYPE string,
li_ostream TYPE REF TO if_ixml_ostream,
li_renderer TYPE REF TO if_ixml_renderer,
li_streamfactory TYPE REF TO if_ixml_stream_factory.
" finally update global settings
" migrated elements are already removed from document
li_ixml = cl_ixml=>create( ).
li_streamfactory = li_ixml->create_stream_factory( ).
li_ostream = li_streamfactory->create_ostream_cstring( lv_settings_xml ).
li_renderer = li_ixml->create_renderer( ostream = li_ostream
document = ii_document ).
li_renderer->render( ).
zcl_abapgit_persistence_db=>get_instance( )->update(
iv_type = zcl_abapgit_persistence_db=>c_type_settings
iv_value = ''
iv_data = lv_settings_xml ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
76,
42175,
5550,
20032,
17941,
44731,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
1057,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
33692,
62,
1462,
62,
76,
42175,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
33692,
62,
1462,
62,
76,
42175,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
774,
62,
33692,
62,
1462,
62,
76,
42175,
41876,
49053,
9795,
43679,
3963,
1259,
62,
33692,
62,
1462,
62,
76,
42175,
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,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
5239,
41876,
4731,
26173,
8924,
705,
8645,
515,
416,
450,
499,
38,
270,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
3084,
62,
17953,
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,
3084,
62,
1069,
1023,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
1069,
1023,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
5793,
62,
17953,
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,
5793,
62,
1069,
1023,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
1069,
1023,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
32492,
62,
33692,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
32492,
62,
33990,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
33692,
62,
1462,
62,
76,
42175,
41876,
256,
774,
62,
33692,
62,
1462,
62,
76,
42175,
198,
220,
220,
220,
220,
220,
220,
220,
269,
72,
62,
22897,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
14983,
62,
33692,
62,
1462,
62,
18417,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
33692,
62,
1462,
62,
76,
42175,
41876,
256,
774,
62,
33692,
62,
1462,
62,
76,
42175,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
4296,
62,
20541,
62,
33692,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
22897,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
1100,
62,
20541,
62,
33692,
62,
19875,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
20541,
62,
33692,
62,
19875,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1662,
62,
9275,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
20541,
62,
33692,
62,
22897,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
20541,
62,
33692,
62,
3438,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
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,
1662,
62,
9275,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
47,
4877,
8808,
62,
44,
3528,
49,
6158,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
14983,
62,
33692,
62,
1462,
62,
18417,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
10641,
1065,
41876,
269,
406,
49494,
1105,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
397,
499,
18300,
62,
18417,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
1259,
62,
10641,
1065,
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,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_dot_abapgit DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS build_default
RETURNING
VALUE(ro_dot_abapgit) TYPE REF TO zcl_abapgit_dot_abapgit .
CLASS-METHODS deserialize
IMPORTING
!iv_xstr TYPE xstring
RETURNING
VALUE(ro_dot_abapgit) TYPE REF TO zcl_abapgit_dot_abapgit
RAISING
zcx_abapgit_exception .
METHODS constructor
IMPORTING
!is_data TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit .
METHODS serialize
RETURNING
VALUE(rv_xstr) TYPE xstring
RAISING
zcx_abapgit_exception .
METHODS get_data
RETURNING
VALUE(rs_data) TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit .
METHODS add_ignore
IMPORTING
!iv_path TYPE string
!iv_filename TYPE string .
METHODS is_ignored
IMPORTING
!iv_path TYPE string
!iv_filename TYPE string
RETURNING
VALUE(rv_ignored) TYPE abap_bool .
METHODS remove_ignore
IMPORTING
!iv_path TYPE string
!iv_filename TYPE string .
METHODS get_starting_folder
RETURNING
VALUE(rv_path) TYPE string .
METHODS get_folder_logic
RETURNING
VALUE(rv_logic) TYPE string .
METHODS set_folder_logic
IMPORTING
!iv_logic TYPE string .
METHODS set_starting_folder
IMPORTING
!iv_path TYPE string .
METHODS get_master_language
RETURNING
VALUE(rv_language) TYPE spras .
* set_master_language
* IMPORTING iv_language TYPE spras,
METHODS get_signature
RETURNING
VALUE(rs_signature) TYPE zif_abapgit_definitions=>ty_file_signature
RAISING
zcx_abapgit_exception .
METHODS get_requirements
RETURNING
VALUE(rt_requirements) TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt.
METHODS set_requirements
IMPORTING
it_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt.
PROTECTED SECTION.
PRIVATE SECTION.
DATA: ms_data TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit.
CLASS-METHODS:
to_xml
IMPORTING is_data TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit
RETURNING VALUE(rv_xml) TYPE string
RAISING zcx_abapgit_exception,
from_xml
IMPORTING iv_xml TYPE string
RETURNING VALUE(rs_data) TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit.
ENDCLASS.
CLASS ZCL_ABAPGIT_DOT_ABAPGIT IMPLEMENTATION.
METHOD add_ignore.
DATA: lv_name TYPE string.
FIELD-SYMBOLS: <lv_ignore> LIKE LINE OF ms_data-ignore.
lv_name = iv_path && iv_filename.
READ TABLE ms_data-ignore FROM lv_name TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
RETURN.
ENDIF.
APPEND INITIAL LINE TO ms_data-ignore ASSIGNING <lv_ignore>.
<lv_ignore> = lv_name.
ENDMETHOD.
METHOD build_default.
DATA: ls_data TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit.
ls_data-master_language = sy-langu.
ls_data-starting_folder = '/src/'.
ls_data-folder_logic = zif_abapgit_dot_abapgit=>c_folder_logic-prefix.
APPEND '/.gitignore' TO ls_data-ignore.
APPEND '/LICENSE' TO ls_data-ignore.
APPEND '/README.md' TO ls_data-ignore.
APPEND '/package.json' TO ls_data-ignore.
APPEND '/.travis.yml' TO ls_data-ignore.
APPEND '/.gitlab-ci.yml' TO ls_data-ignore.
APPEND '/abaplint.json' TO ls_data-ignore.
APPEND '/azure-pipelines.yml' TO ls_data-ignore.
CREATE OBJECT ro_dot_abapgit
EXPORTING
is_data = ls_data.
ENDMETHOD.
METHOD constructor.
ms_data = is_data.
ENDMETHOD.
METHOD deserialize.
DATA: lv_xml TYPE string,
ls_data TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit.
lv_xml = zcl_abapgit_convert=>xstring_to_string_utf8( iv_xstr ).
ls_data = from_xml( lv_xml ).
CREATE OBJECT ro_dot_abapgit
EXPORTING
is_data = ls_data.
ENDMETHOD.
METHOD from_xml.
DATA: lv_xml TYPE string.
lv_xml = iv_xml.
* fix downward compatibility
REPLACE ALL OCCURRENCES OF '<_--28C_DATA_--29>' IN lv_xml WITH '<DATA>'.
REPLACE ALL OCCURRENCES OF '</_--28C_DATA_--29>' IN lv_xml WITH '</DATA>'.
CALL TRANSFORMATION id
OPTIONS value_handling = 'accept_data_loss'
SOURCE XML lv_xml
RESULT data = rs_data ##NO_TEXT.
* downward compatibility
IF rs_data-folder_logic IS INITIAL.
rs_data-folder_logic = zif_abapgit_dot_abapgit=>c_folder_logic-prefix.
ENDIF.
ENDMETHOD.
METHOD get_data.
rs_data = ms_data.
ENDMETHOD.
METHOD get_folder_logic.
rv_logic = ms_data-folder_logic.
ENDMETHOD.
METHOD get_master_language.
rv_language = ms_data-master_language.
ENDMETHOD.
METHOD get_requirements.
rt_requirements = ms_data-requirements.
ENDMETHOD.
METHOD get_signature.
rs_signature-path = zif_abapgit_definitions=>c_root_dir.
rs_signature-filename = zif_abapgit_definitions=>c_dot_abapgit.
rs_signature-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob
iv_data = serialize( ) ).
ENDMETHOD.
METHOD get_starting_folder.
rv_path = ms_data-starting_folder.
ENDMETHOD.
METHOD is_ignored.
DATA: lv_name TYPE string,
lv_starting TYPE string,
lv_dot TYPE string,
lv_count TYPE i,
lv_ignore TYPE string.
lv_name = iv_path && iv_filename.
CONCATENATE ms_data-starting_folder '*' INTO lv_starting.
CONCATENATE '/' zif_abapgit_definitions=>c_dot_abapgit INTO lv_dot.
LOOP AT ms_data-ignore INTO lv_ignore.
FIND ALL OCCURRENCES OF '/' IN lv_name MATCH COUNT lv_count.
IF lv_name CP lv_ignore
OR ( ms_data-starting_folder <> '/'
AND lv_count > 1
AND NOT lv_name CP lv_starting
AND NOT lv_name = lv_dot ).
rv_ignored = abap_true.
RETURN.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD remove_ignore.
DATA: lv_name TYPE string.
lv_name = iv_path && iv_filename.
DELETE TABLE ms_data-ignore FROM lv_name.
ENDMETHOD.
METHOD serialize.
DATA: lv_xml TYPE string,
lv_mark TYPE string.
lv_xml = to_xml( ms_data ).
"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 lv_xml(1) <> lv_mark.
CONCATENATE lv_mark lv_xml INTO lv_xml.
ENDIF.
rv_xstr = zcl_abapgit_convert=>string_to_xstring_utf8_bom( lv_xml ).
ENDMETHOD.
METHOD set_folder_logic.
ms_data-folder_logic = iv_logic.
ENDMETHOD.
METHOD set_requirements.
ms_data-requirements = it_requirements.
ENDMETHOD.
METHOD set_starting_folder.
ms_data-starting_folder = iv_path.
ENDMETHOD.
METHOD to_xml.
CALL TRANSFORMATION id
OPTIONS initial_components = 'suppress'
SOURCE data = is_data
RESULT XML rv_xml.
rv_xml = zcl_abapgit_xml_pretty=>print( rv_xml ).
REPLACE FIRST OCCURRENCE
OF REGEX '<\?xml version="1\.0" encoding="[\w-]+"\?>'
IN rv_xml
WITH '<?xml version="1.0" encoding="utf-8"?>'.
ASSERT sy-subrc = 0.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
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,
1382,
62,
12286,
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,
42715,
12,
49273,
50,
748,
48499,
1096,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
87,
2536,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
26518,
62,
397,
499,
18300,
8,
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,
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,
26518,
62,
397,
499,
18300,
14804,
774,
62,
26518,
62,
397,
499,
18300,
764,
198,
220,
220,
220,
337,
36252,
50,
11389,
1096,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
87,
2536,
8,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
7890,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
7890,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
14804,
774,
62,
26518,
62,
397,
499,
18300,
764,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
46430,
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,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
34345,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
570,
1850,
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,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
34345,
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,
570,
1850,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
4781,
62,
46430,
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,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
34345,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
38690,
62,
43551,
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,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
43551,
62,
6404,
291,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6404,
291,
8,
41876,
4731,
764,
628,
220,
220,
220,
337,
36252,
50,
900,
62,
43551,
62,
6404,
291,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6404,
291,
41876,
4731,
764,
628,
220,
220,
220,
337,
36252,
50,
900,
62,
38690,
62,
43551,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6978,
41876,
4731,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
9866,
62,
16129,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
16129,
8,
41876,
7500,
292,
764,
198,
9,
220,
220,
220,
220,
220,
900,
62,
9866,
62,
16129,
198,
9,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
16129,
41876,
7500,
292,
11,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
12683,
1300,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
12683,
1300,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
62,
12683,
1300,
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,
8897,
18883,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
8897,
18883,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
14804,
774,
62,
8897,
24615,
62,
926,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
8897,
18883,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
8897,
18883,
41876,
1976,
361,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
14804,
774,
62,
8897,
24615,
62,
926,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
13845,
62,
7890,
41876,
1976,
361,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_BOOK_HTML_BUTTON_TICKET definition
public
final
create public .
public section.
class-methods SAVE .
class-methods DECLINE .
class-methods CLOSE .
protected section.
class-methods BUILD_BUTTON
importing
!IV_CC_NAME type CLIKE
!IV_TEXT type CLIKE
!IV_COLOR type CLIKE
!IV_OK_CODE type CLIKE .
private section.
ENDCLASS.
CLASS ZCL_BOOK_HTML_BUTTON_TICKET IMPLEMENTATION.
METHOD build_button.
DATA lr_button TYPE REF TO zcl_book_html_button.
CREATE OBJECT lr_button
EXPORTING
iv_cc_name = iv_cc_name
iv_text = iv_text
iv_color = iv_color
iv_ok_code = iv_ok_code.
ENDMETHOD.
METHOD close.
CALL METHOD build_button
EXPORTING
iv_cc_name = 'CC_BUTTON_CLOSE'
iv_text = 'Abschließen'
iv_color = '#0d1'
iv_ok_code = 'CLOSE'.
ENDMETHOD.
METHOD DECLINE.
CALL METHOD build_button
EXPORTING
iv_cc_name = 'CC_BUTTON_DECLINE'
iv_text = 'Ablehnen'
iv_color = '#f00'
iv_ok_code = 'DECLINE'.
ENDMETHOD.
METHOD save.
CALL METHOD build_button
EXPORTING
iv_cc_name = 'CC_BUTTON_SAVE'
iv_text = 'Sichern'
iv_color = '#ff0'
iv_ok_code = 'SAVE'.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
39453,
62,
28656,
62,
47526,
11357,
62,
51,
11860,
2767,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
1398,
12,
24396,
82,
14719,
6089,
764,
198,
220,
1398,
12,
24396,
82,
27196,
24027,
764,
198,
220,
1398,
12,
24396,
82,
7852,
14058,
764,
198,
24326,
2665,
13,
628,
220,
1398,
12,
24396,
82,
20571,
26761,
62,
47526,
11357,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
4093,
62,
20608,
2099,
43749,
7336,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
32541,
2099,
43749,
7336,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
46786,
2099,
43749,
7336,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
11380,
62,
34,
16820,
2099,
43749,
7336,
764,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
39453,
62,
28656,
62,
47526,
11357,
62,
51,
11860,
2767,
30023,
2538,
10979,
6234,
13,
628,
198,
49273,
1382,
62,
16539,
13,
628,
220,
42865,
300,
81,
62,
16539,
41876,
4526,
37,
5390,
1976,
565,
62,
2070,
62,
6494,
62,
16539,
13,
628,
220,
29244,
6158,
25334,
23680,
300,
81,
62,
16539,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
535,
62,
3672,
796,
21628,
62,
535,
62,
3672,
198,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
796,
21628,
62,
5239,
198,
220,
220,
220,
220,
220,
21628,
62,
8043,
220,
220,
796,
21628,
62,
8043,
198,
220,
220,
220,
220,
220,
21628,
62,
482,
62,
8189,
796,
21628,
62,
482,
62,
8189,
13,
198,
198,
10619,
49273,
13,
628,
198,
49273,
1969,
13,
628,
220,
42815,
337,
36252,
1382,
62,
16539,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
535,
62,
3672,
796,
705,
4093,
62,
47526,
11357,
62,
32737,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
796,
705,
24849,
354,
14485,
39683,
268,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
8043,
220,
220,
796,
705,
2,
15,
67,
16,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
482,
62,
8189,
796,
705,
32737,
4458,
198,
198,
10619,
49273,
13,
628,
198,
49273,
27196,
24027,
13,
628,
220,
42815,
337,
36252,
1382,
62,
16539,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
535,
62,
3672,
796,
705,
4093,
62,
47526,
11357,
62,
41374,
24027,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
796,
705,
32,
903,
21116,
268,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
8043,
220,
220,
796,
705,
2,
69,
405,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
482,
62,
8189,
796,
705,
41374,
24027,
4458,
198,
198,
10619,
49273,
13,
628,
198,
49273,
3613,
13,
628,
220,
42815,
337,
36252,
1382,
62,
16539,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
535,
62,
3672,
796,
705,
4093,
62,
47526,
11357,
62,
4090,
6089,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
796,
705,
50,
291,
2881,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
8043,
220,
220,
796,
705,
2,
487,
15,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
482,
62,
8189,
796,
705,
4090,
6089,
4458,
198,
198,
10619,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_APC_WSP_EXT_ZAPC_FOR_MONST definition
public
inheriting from CL_APC_WSP_EXT_STATELESS_BASE
final
create public .
public section.
methods IF_APC_WSP_EXTENSION~ON_MESSAGE
redefinition .
methods IF_APC_WSP_EXTENSION~ON_START
redefinition .
protected section.
private section.
data MO_MONSTER_MODEL type ref to ZCL_MONSTER_MODEL .
ENDCLASS.
CLASS ZCL_APC_WSP_EXT_ZAPC_FOR_MONST IMPLEMENTATION.
METHOD if_apc_wsp_extension~on_message.
TRY.
* (1) Decode Incoming Message
DATA(incoming_text_message) = i_message->get_text( ).
DATA: order_number TYPE ztmonster_adl-order_number,
monster_name TYPE ztmonster_am-monster_name.
SPLIT incoming_text_message AT ';'
INTO order_number monster_name.
* (2) Get existing order details
SELECT SINGLE *
FROM ztmonster_adl
INTO @DATA(monster_due_list_record)
WHERE order_number = @order_number.
CHECK sy-subrc = 0.
* (3) Prepare new "delivery" details
DATA: monitor_list_record TYPE ztmonster_am.
MOVE-CORRESPONDING monster_due_list_record TO monitor_list_record.
monitor_list_record-monster_name = monster_name.
monitor_list_record-current_status = 'A'."Atrocity Ready to be Committed
monitor_list_record-delivery_number = sy-datum+2(2) &&
sy-datum+4(2) &&
sy-datum+6(2) &&
sy-uzeit(2) &&
sy-uzeit+2(2).
* (4) Update Delivery and Order Tables
"Create the Delivery
MODIFY ztmonster_am FROM monitor_list_record.
IF sy-subrc <> 0.
ROLLBACK WORK.
RETURN.
ENDIF.
"Now update the order
UPDATE ztmonster_adl SET order_status = 'C' "Foul Deed has been Requested
WHERE order_number = order_number.
IF sy-subrc <> 0.
ROLLBACK WORK.
RETURN.
ELSE.
* (5) Send confirmation message back to web application via APC
DATA(message) = i_message_manager->create_message( ).
message->set_text( 'Horrible, Horrible, Deed has Been Scheduled' ).
i_message_manager->send( message ).
COMMIT WORK.
ENDIF.
* (6) Send message to SAP GUI application via AMC
* Determine message type of the AMC channel
TRY.
DATA(amc_dt_manager) = cl_amc_dt_manager=>create( i_application_id = 'ZAMC_FOR_MONSTERS'
i_channel_id = '/monsters' ).
DATA(amc_message_type) = amc_dt_manager->get_message_type( ).
CATCH cx_amc_dt_error INTO DATA(amc_dt_error).
MESSAGE amc_dt_error->get_text( ) TYPE 'E'.
ENDTRY.
CHECK amc_message_type = 'PCP'.
* Fill Payload
TRY.
* Create Bottle to Send
* Set extension ID to be the Castle Number.
DATA(message_bottle) = CAST if_amc_message_producer_pcp(
cl_amc_channel_manager=>create_message_producer(
i_application_id = 'ZAMC_FOR_MONSTERS'
i_channel_id = '/monsters'
i_channel_extension_id = CONV #( monitor_list_record-castle_number ) ) ).
* Create Message for Bottle
DATA(pcp_message) = cl_ac_message_type_pcp=>create( ).
pcp_message->set_text( 'A New Atrocity needs to be Committed' ).
pcp_message->set_field( i_name = 'Delivery Number'
i_value = CONV #( monitor_list_record-delivery_number ) ).
* Put message in bottle, and throw bottle into the sea
message_bottle->send( pcp_message ).
CATCH cx_ac_message_type_pcp_error INTO DATA(pcp_error).
MESSAGE pcp_error->get_text( ) TYPE 'E'.
CATCH cx_amc_error INTO DATA(amc_error).
MESSAGE amc_error->get_text( ) TYPE 'E'.
ENDTRY.
CATCH cx_apc_error INTO DATA(apc_error).
MESSAGE apc_error->get_text( ) TYPE 'E'.
ENDTRY.
ENDMETHOD."On Message
METHOD if_apc_wsp_extension~on_start.
CREATE OBJECT mo_monster_model.
TRY.
DATA(message) = i_message_manager->create_message( ).
message->set_text( 'Monster Object has been Created!' ).
i_message_manager->send( message ).
CATCH cx_apc_error INTO DATA(apc_error).
MESSAGE apc_error->get_text( ) TYPE 'E'.
ENDTRY.
ENDMETHOD."On Start
ENDCLASS.
| [
4871,
1168,
5097,
62,
2969,
34,
62,
54,
4303,
62,
13918,
62,
57,
2969,
34,
62,
13775,
62,
27857,
2257,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
7852,
62,
2969,
34,
62,
54,
4303,
62,
13918,
62,
35744,
3698,
7597,
62,
33,
11159,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
5050,
16876,
62,
2969,
34,
62,
54,
4303,
62,
13918,
16938,
2849,
93,
1340,
62,
44,
1546,
4090,
8264,
198,
220,
220,
220,
34087,
17750,
764,
198,
220,
5050,
16876,
62,
2969,
34,
62,
54,
4303,
62,
13918,
16938,
2849,
93,
1340,
62,
2257,
7227,
198,
220,
220,
220,
34087,
17750,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
628,
220,
1366,
13070,
62,
27857,
41809,
62,
33365,
3698,
2099,
1006,
284,
1168,
5097,
62,
27857,
41809,
62,
33365,
3698,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
2969,
34,
62,
54,
4303,
62,
13918,
62,
57,
2969,
34,
62,
13775,
62,
27857,
2257,
30023,
2538,
10979,
6234,
13,
628,
198,
49273,
611,
62,
499,
66,
62,
86,
2777,
62,
2302,
3004,
93,
261,
62,
20500,
13,
198,
220,
220,
220,
7579,
56,
13,
198,
9,
357,
16,
8,
4280,
1098,
554,
4976,
16000,
198,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
259,
4976,
62,
5239,
62,
20500,
8,
796,
1312,
62,
20500,
3784,
1136,
62,
5239,
7,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
42865,
25,
1502,
62,
17618,
41876,
1976,
83,
39050,
62,
324,
75,
12,
2875,
62,
17618,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9234,
62,
3672,
41876,
1976,
83,
39050,
62,
321,
12,
39050,
62,
3672,
13,
628,
220,
220,
220,
220,
220,
220,
220,
46341,
2043,
15619,
62,
5239,
62,
20500,
5161,
705,
26,
6,
198,
220,
220,
220,
220,
220,
220,
220,
39319,
1502,
62,
17618,
9234,
62,
3672,
13,
198,
198,
9,
357,
17,
8,
3497,
4683,
1502,
3307,
198,
220,
220,
220,
220,
220,
220,
220,
33493,
311,
2751,
2538,
1635,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
1976,
83,
39050,
62,
324,
75,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39319,
2488,
26947,
7,
39050,
62,
23301,
62,
4868,
62,
22105,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33411,
1502,
62,
17618,
796,
2488,
2875,
62,
17618,
13,
628,
220,
220,
220,
220,
220,
220,
220,
5870,
25171,
827,
12,
7266,
6015,
796,
657,
13,
198,
198,
9,
357,
18,
8,
43426,
649,
366,
12381,
6315,
1,
3307,
198,
220,
220,
220,
220,
220,
220,
220,
42865,
25,
5671,
62,
4868,
62,
22105,
41876,
1976,
83,
39050,
62,
321,
13,
628,
220,
220,
220,
220,
220,
220,
220,
13070,
6089,
12,
44879,
19535,
47,
18672,
2751,
9234,
62,
23301,
62,
4868,
62,
22105,
5390,
5671,
62,
4868,
62,
22105,
13,
628,
220,
220,
220,
220,
220,
220,
220,
5671,
62,
4868,
62,
22105,
12,
39050,
62,
3672,
220,
220,
220,
796,
9234,
62,
3672,
13,
198,
220,
220,
220,
220,
220,
220,
220,
5671,
62,
4868,
62,
22105,
12,
14421,
62,
13376,
220,
796,
705,
32,
30827,
2953,
12204,
414,
23432,
284,
307,
1520,
2175,
198,
220,
220,
220,
220,
220,
220,
220,
5671,
62,
4868,
62,
22105,
12,
12381,
6315,
62,
17618,
796,
827,
12,
19608,
388,
10,
17,
7,
17,
8,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
827,
12,
19608,
388,
10,
19,
7,
17,
8,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
827,
12,
19608,
388,
10,
21,
7,
17,
8,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
827,
12,
84,
2736,
270,
7,
17,
8,
220,
220,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
827,
12,
84,
2736,
270,
10,
17,
7,
17,
737,
198,
198,
9,
357,
19,
8,
10133,
28682,
290,
8284,
33220,
198,
220,
220,
220,
220,
220,
220,
220,
366,
16447,
262,
28682,
198,
220,
220,
220,
220,
220,
220,
220,
19164,
5064,
56,
1976,
83,
39050,
62,
321,
16034,
5671,
62,
4868,
62,
22105,
13,
628,
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,
15107,
3069,
31098,
30936,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
220,
220,
366,
3844,
4296,
262,
1502,
198,
220,
220,
220,
220,
220,
220,
220,
35717,
1976,
83,
39050,
62,
324,
75,
25823,
220,
220,
1502,
62,
13376,
796,
705,
34,
6,
366,
37,
2852,
1024,
276,
468,
587,
19390,
276,
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,
33411,
1502,
62,
17618,
796,
1502,
62,
17618,
13,
628,
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,
15107,
3069,
31098,
30936,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
9,
357,
20,
8,
16290,
12641,
3275,
736,
284,
3992,
3586,
2884,
3486,
34,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ZSB_AOC_2020
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zsb_aoc_2020.
CLASS lcl_main DEFINITION DEFERRED.
PARAMETERS p_day TYPE i AS LISTBOX VISIBLE LENGTH 10 DEFAULT 1 OBLIGATORY.
INCLUDE zsb_aoc_2020_cls.
INITIALIZATION.
DATA(go_main) = NEW lcl_main( ).
AT SELECTION-SCREEN OUTPUT.
go_main->at_sel_screen_out( ).
AT SELECTION-SCREEN ON p_day.
go_main->at_sel_screen_on( iv_par = 'P_DAY' ).
START-OF-SELECTION.
DATA(gv_output) = go_main->start( ).
END-OF-SELECTION.
WRITE:/ |{ 'Day' } { p_day } { 'result' }: { gv_output } |.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1168,
16811,
62,
32,
4503,
62,
42334,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1976,
36299,
62,
64,
420,
62,
42334,
13,
198,
198,
31631,
300,
565,
62,
12417,
5550,
20032,
17941,
23449,
1137,
22083,
13,
198,
198,
27082,
2390,
2767,
4877,
279,
62,
820,
41876,
1312,
7054,
39498,
39758,
50035,
34563,
406,
49494,
838,
5550,
38865,
352,
440,
9148,
3528,
1404,
15513,
13,
198,
198,
1268,
5097,
52,
7206,
1976,
36299,
62,
64,
420,
62,
42334,
62,
565,
82,
13,
198,
198,
1268,
2043,
12576,
14887,
6234,
13,
198,
220,
42865,
7,
2188,
62,
12417,
8,
796,
12682,
300,
565,
62,
12417,
7,
6739,
198,
198,
1404,
33493,
2849,
12,
6173,
2200,
1677,
16289,
30076,
13,
198,
220,
467,
62,
12417,
3784,
265,
62,
741,
62,
9612,
62,
448,
7,
6739,
198,
198,
1404,
33493,
2849,
12,
6173,
2200,
1677,
6177,
279,
62,
820,
13,
198,
220,
467,
62,
12417,
3784,
265,
62,
741,
62,
9612,
62,
261,
7,
21628,
62,
1845,
796,
705,
47,
62,
26442,
6,
6739,
198,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
628,
220,
42865,
7,
70,
85,
62,
22915,
8,
796,
467,
62,
12417,
3784,
9688,
7,
6739,
198,
198,
10619,
12,
19238,
12,
46506,
2849,
13,
198,
220,
44423,
14079,
930,
90,
705,
12393,
6,
1782,
1391,
279,
62,
820,
1782,
1391,
705,
20274,
6,
1782,
25,
1391,
308,
85,
62,
22915,
1782,
930,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_aoc_check_07 DEFINITION
PUBLIC
INHERITING FROM zcl_aoc_super
CREATE PUBLIC.
PUBLIC SECTION.
METHODS constructor.
METHODS check
REDEFINITION.
METHODS get_message_text
REDEFINITION.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_AOC_CHECK_07 IMPLEMENTATION.
METHOD check.
* abapOpenChecks
* https://github.com/larshp/abapOpenChecks
* MIT License
DATA: lv_token LIKE sy-tabix,
lv_include TYPE sobj_name.
FIELD-SYMBOLS: <ls_token> LIKE LINE OF it_tokens,
<ls_token1> LIKE LINE OF it_tokens,
<ls_token2> LIKE LINE OF it_tokens,
<ls_token3> LIKE LINE OF it_tokens,
<ls_statement> LIKE LINE OF it_statements.
LOOP AT it_statements ASSIGNING <ls_statement>
WHERE type = scan_stmnt_type-standard
OR type = scan_stmnt_type-method_direct.
lv_token = <ls_statement>-from.
READ TABLE it_tokens ASSIGNING <ls_token1> INDEX lv_token.
IF sy-subrc <> 0.
CONTINUE. " current loop
ENDIF.
lv_token = lv_token + 1.
READ TABLE it_tokens ASSIGNING <ls_token2> INDEX lv_token.
IF sy-subrc <> 0.
CONTINUE. " current loop
ENDIF.
lv_token = lv_token + 1.
READ TABLE it_tokens ASSIGNING <ls_token3> INDEX lv_token.
IF sy-subrc <> 0.
CONTINUE. " current loop
ENDIF.
IF <ls_token3>-str CP '*>(*'
OR <ls_token3>-str CP '*)=>*'
OR <ls_token3>-str CP '*)->*'
OR <ls_token3>-str CP '(*'.
* allow dynamic calls
CONTINUE.
ENDIF.
LOOP AT it_tokens ASSIGNING <ls_token>
FROM <ls_statement>-from TO <ls_statement>-to
WHERE str = 'RECEIVING'
AND type = scan_token_type-identifier.
IF <ls_token1>-str = 'CALL' OR <ls_token2>-str = 'BADI'.
EXIT.
ENDIF.
* allow if old style exceptions are part of method
LOOP AT it_tokens TRANSPORTING NO FIELDS
FROM <ls_statement>-from TO <ls_statement>-to
WHERE str = 'EXCEPTIONS'
AND type = scan_token_type-identifier.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
EXIT. " current loop
ENDIF.
lv_include = get_include( p_level = <ls_statement>-level ).
inform( p_sub_obj_type = c_type_include
p_sub_obj_name = lv_include
p_line = <ls_token>-row
p_kind = mv_errty
p_test = myname
p_code = '002' ).
ENDLOOP.
IF <ls_token1>-str <> 'CALL' OR <ls_token2>-str <> 'METHOD'.
CONTINUE. " current loop
ENDIF.
lv_include = get_include( p_level = <ls_statement>-level ).
inform( p_sub_obj_type = c_type_include
p_sub_obj_name = lv_include
p_line = <ls_token1>-row
p_kind = mv_errty
p_test = myname
p_code = '001' ).
ENDLOOP.
ENDMETHOD.
METHOD constructor.
super->constructor( ).
description = 'Functional writing style for CALL METHOD'. "#EC NOTEXT
category = 'ZCL_AOC_CATEGORY'.
version = '001'.
position = '007'.
has_attributes = abap_true.
attributes_ok = abap_true.
enable_rfc( ).
mv_errty = c_error.
ENDMETHOD. "CONSTRUCTOR
METHOD get_message_text.
CLEAR p_text.
CASE p_code.
WHEN '001'.
p_text = 'Use functional writing style'. "#EC NOTEXT
WHEN '002'.
p_text = 'Use functional writing style instead of RECEIVING'. "#EC NOTEXT
WHEN OTHERS.
super->get_message_text( EXPORTING p_test = p_test
p_code = p_code
IMPORTING p_text = p_text ).
ENDCASE.
ENDMETHOD. "GET_MESSAGE_TEXT
ENDCLASS.
| [
31631,
1976,
565,
62,
64,
420,
62,
9122,
62,
2998,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
64,
420,
62,
16668,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
20500,
62,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
32,
4503,
62,
50084,
62,
2998,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2198,
13,
198,
198,
9,
450,
499,
11505,
7376,
4657,
198,
9,
3740,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
397,
499,
11505,
7376,
4657,
198,
9,
17168,
13789,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
30001,
220,
220,
34178,
827,
12,
8658,
844,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
17256,
41876,
27355,
73,
62,
3672,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
30001,
29,
220,
220,
220,
220,
34178,
48920,
3963,
340,
62,
83,
482,
641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
30001,
16,
29,
220,
220,
220,
34178,
48920,
3963,
340,
62,
83,
482,
641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
30001,
17,
29,
220,
220,
220,
34178,
48920,
3963,
340,
62,
83,
482,
641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
30001,
18,
29,
220,
220,
220,
34178,
48920,
3963,
340,
62,
83,
482,
641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
26090,
29,
34178,
48920,
3963,
340,
62,
14269,
3196,
13,
628,
198,
220,
220,
220,
17579,
3185,
5161,
340,
62,
14269,
3196,
24994,
3528,
15871,
1279,
7278,
62,
26090,
29,
198,
220,
220,
220,
220,
220,
220,
220,
33411,
2099,
796,
9367,
62,
301,
76,
429,
62,
4906,
12,
20307,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
2099,
796,
9367,
62,
301,
76,
429,
62,
4906,
12,
24396,
62,
12942,
13,
628,
220,
220,
220,
220,
220,
300,
85,
62,
30001,
796,
1279,
7278,
62,
26090,
29,
12,
6738,
13,
198,
220,
220,
220,
220,
220,
20832,
43679,
340,
62,
83,
482,
641,
24994,
3528,
15871,
1279,
7278,
62,
30001,
16,
29,
24413,
6369,
300,
85,
62,
30001,
13,
198,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
366,
1459,
9052,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
220,
220,
300,
85,
62,
30001,
796,
300,
85,
62,
30001,
1343,
352,
13,
198,
220,
220,
220,
220,
220,
20832,
43679,
340,
62,
83,
482,
641,
24994,
3528,
15871,
1279,
7278,
62,
30001,
17,
29,
24413,
6369,
300,
85,
62,
30001,
13,
198,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
366,
1459,
9052,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
220,
220,
300,
85,
62,
30001,
796,
300,
85,
62,
30001,
1343,
352,
13,
198,
220,
220,
220,
220,
220,
20832,
43679,
340,
62,
83,
482,
641,
24994,
3528,
15871,
1279,
7278,
62,
30001,
18,
29,
24413,
6369,
300,
85,
62,
30001,
13,
198,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
366,
1459,
9052,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
16876,
1279,
7278,
62,
30001,
18,
29,
12,
2536,
16932,
705,
9,
33994,
9,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6375,
1279,
7278,
62,
30001,
18,
29,
12,
2536,
16932,
705,
28104,
14804,
9,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6375,
1279,
7278,
62,
30001,
18,
29,
12,
2536,
16932,
705,
28104,
3784,
9,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6375,
1279,
7278,
62,
30001,
18,
29,
12,
2536,
16932,
29513,
9,
4458,
198,
9,
1249,
8925,
3848,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
17579,
3185,
5161,
340,
62,
83,
482,
641,
24994,
3528,
15871,
1279,
7278,
62,
30001,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
1279,
7278,
62,
26090,
29,
12,
6738,
5390,
1279,
7278,
62,
26090,
29,
12,
1462,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33411,
965,
796,
705,
2200,
5222,
3824,
2751,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
2099,
796,
9367,
62,
30001,
62,
4906,
12,
738,
7483,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16876,
1279,
7278,
62,
30001,
16,
29,
12,
2536,
796,
705,
34,
7036,
6,
6375,
1279,
7278,
62,
30001,
17,
29,
12,
2536,
796,
705,
33,
2885,
40,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
2043,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
198,
9,
1249,
611,
1468,
3918,
13269,
389,
636,
286,
2446,
198,
220,
220,
220,
220,
220,
220,
220,
17579,
3185,
5161,
340,
62,
83,
482,
641,
48213,
4303,
9863,
2751,
8005,
18930,
3698,
5258,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
1279,
7278,
62,
26090,
29,
12,
6738,
5390
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
CLASS zcl_abapgit_objects_program DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super.
PUBLIC SECTION.
TYPES: BEGIN OF ty_progdir,
name TYPE progdir-name,
state TYPE progdir-state,
sqlx TYPE progdir-sqlx,
edtx TYPE progdir-edtx,
varcl TYPE progdir-varcl,
dbapl TYPE progdir-dbapl,
dbna TYPE progdir-dbna,
clas TYPE progdir-clas,
type TYPE progdir-type,
occurs TYPE progdir-occurs,
subc TYPE progdir-subc,
appl TYPE progdir-appl,
secu TYPE progdir-secu,
cnam TYPE progdir-cnam,
cdat TYPE progdir-cdat,
unam TYPE progdir-unam,
udat TYPE progdir-udat,
vern TYPE progdir-vern,
levl TYPE progdir-levl,
rstat TYPE progdir-rstat,
rmand TYPE progdir-rmand,
rload TYPE progdir-rload,
fixpt TYPE progdir-fixpt,
sset TYPE progdir-sset,
sdate TYPE progdir-sdate,
stime TYPE progdir-stime,
idate TYPE progdir-idate,
itime TYPE progdir-itime,
ldbname TYPE progdir-ldbname,
uccheck TYPE progdir-uccheck,
END OF ty_progdir.
METHODS serialize_program
IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_output OPTIONAL
is_item TYPE zif_abapgit_definitions=>ty_item
io_files TYPE REF TO zcl_abapgit_objects_files
iv_program TYPE programm OPTIONAL
iv_extra TYPE clike OPTIONAL
RAISING zcx_abapgit_exception.
METHODS read_progdir
IMPORTING iv_program TYPE programm
RETURNING VALUE(rs_progdir) TYPE ty_progdir.
METHODS deserialize_program
IMPORTING is_progdir TYPE ty_progdir
it_source TYPE abaptxt255_tab
it_tpool TYPE textpool_table
iv_package TYPE devclass
RAISING zcx_abapgit_exception.
PROTECTED SECTION.
TYPES: ty_spaces_tt TYPE STANDARD TABLE OF i WITH DEFAULT KEY.
TYPES: BEGIN OF ty_dynpro,
header TYPE rpy_dyhead,
containers TYPE dycatt_tab,
fields TYPE dyfatc_tab,
flow_logic TYPE swydyflow,
spaces TYPE ty_spaces_tt,
END OF ty_dynpro.
TYPES: ty_dynpro_tt TYPE STANDARD TABLE OF ty_dynpro WITH DEFAULT KEY.
TYPES: BEGIN OF ty_cua,
adm TYPE rsmpe_adm,
sta TYPE STANDARD TABLE OF rsmpe_stat WITH DEFAULT KEY,
fun TYPE STANDARD TABLE OF rsmpe_funt WITH DEFAULT KEY,
men TYPE STANDARD TABLE OF rsmpe_men WITH DEFAULT KEY,
mtx TYPE STANDARD TABLE OF rsmpe_mnlt WITH DEFAULT KEY,
act TYPE STANDARD TABLE OF rsmpe_act WITH DEFAULT KEY,
but TYPE STANDARD TABLE OF rsmpe_but WITH DEFAULT KEY,
pfk TYPE STANDARD TABLE OF rsmpe_pfk WITH DEFAULT KEY,
set TYPE STANDARD TABLE OF rsmpe_staf WITH DEFAULT KEY,
doc TYPE STANDARD TABLE OF rsmpe_atrt WITH DEFAULT KEY,
tit TYPE STANDARD TABLE OF rsmpe_titt WITH DEFAULT KEY,
biv TYPE STANDARD TABLE OF rsmpe_buts WITH DEFAULT KEY,
END OF ty_cua.
METHODS serialize_dynpros
IMPORTING iv_program_name TYPE programm
RETURNING VALUE(rt_dynpro) TYPE ty_dynpro_tt
RAISING zcx_abapgit_exception.
METHODS serialize_cua
IMPORTING iv_program_name TYPE programm
RETURNING VALUE(rs_cua) TYPE ty_cua
RAISING zcx_abapgit_exception.
METHODS deserialize_dynpros
IMPORTING it_dynpros TYPE ty_dynpro_tt
RAISING zcx_abapgit_exception.
METHODS deserialize_textpool
IMPORTING iv_program TYPE programm
it_tpool TYPE textpool_table
iv_language TYPE langu OPTIONAL
iv_is_include TYPE abap_bool DEFAULT abap_false
RAISING zcx_abapgit_exception.
METHODS deserialize_cua
IMPORTING iv_program_name TYPE programm
is_cua TYPE ty_cua
RAISING zcx_abapgit_exception.
METHODS check_prog_changed_since
IMPORTING iv_program TYPE programm
iv_timestamp TYPE timestamp
iv_skip_gui TYPE abap_bool DEFAULT abap_false
RETURNING VALUE(rv_changed) TYPE abap_bool.
METHODS is_any_dynpro_locked
IMPORTING iv_program TYPE programm
RETURNING VALUE(rv_is_any_dynpro_locked) TYPE abap_bool
RAISING zcx_abapgit_exception.
METHODS is_cua_locked
IMPORTING iv_program TYPE programm
RETURNING VALUE(rv_is_cua_locked) TYPE abap_bool
RAISING zcx_abapgit_exception.
METHODS is_text_locked
IMPORTING iv_program TYPE programm
RETURNING VALUE(rv_is_text_locked) TYPE abap_bool
RAISING zcx_abapgit_exception.
CLASS-METHODS:
add_tpool
IMPORTING it_tpool TYPE textpool_table
RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt,
read_tpool
IMPORTING it_tpool TYPE zif_abapgit_definitions=>ty_tpool_tt
RETURNING VALUE(rt_tpool) TYPE zif_abapgit_definitions=>ty_tpool_tt.
PRIVATE SECTION.
METHODS:
condense_flow
EXPORTING et_spaces TYPE ty_spaces_tt
CHANGING ct_flow TYPE swydyflow,
uncondense_flow
IMPORTING it_flow TYPE swydyflow
it_spaces TYPE ty_spaces_tt
RETURNING VALUE(rt_flow) TYPE swydyflow.
ENDCLASS.
CLASS zcl_abapgit_objects_program IMPLEMENTATION.
METHOD is_text_locked.
DATA: lv_object TYPE eqegraarg.
lv_object = |*{ iv_program }|.
rv_is_text_locked = exists_a_lock_entry_for( iv_lock_object = 'EABAPTEXTE'
iv_argument = lv_object ).
ENDMETHOD.
METHOD is_cua_locked.
DATA: lv_object TYPE eqegraarg,
ls_cua TYPE zcl_abapgit_objects_program=>ty_cua.
lv_object = |CU{ iv_program }|.
OVERLAY lv_object WITH ' '.
lv_object = lv_object && '*'.
rv_is_cua_locked = exists_a_lock_entry_for( iv_lock_object = 'ESCUAPAINT'
iv_argument = lv_object ).
ENDMETHOD.
METHOD is_any_dynpro_locked.
DATA: lt_dynpros TYPE zcl_abapgit_objects_program=>ty_dynpro_tt,
lv_object TYPE seqg3-garg.
FIELD-SYMBOLS: <ls_dynpro> TYPE zcl_abapgit_objects_program=>ty_dynpro.
lt_dynpros = serialize_dynpros( iv_program ).
LOOP AT lt_dynpros ASSIGNING <ls_dynpro>.
lv_object = |{ <ls_dynpro>-header-screen }{ <ls_dynpro>-header-program }|.
IF exists_a_lock_entry_for( iv_lock_object = 'ESCRP'
iv_argument = lv_object ) = abap_true.
rv_is_any_dynpro_locked = abap_true.
EXIT.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD condense_flow.
DATA: lv_spaces LIKE LINE OF et_spaces.
FIELD-SYMBOLS: <ls_flow> LIKE LINE OF ct_flow.
CLEAR et_spaces.
LOOP AT ct_flow ASSIGNING <ls_flow>.
lv_spaces = 0.
WHILE NOT <ls_flow>-line IS INITIAL AND <ls_flow>-line(1) = space.
lv_spaces = lv_spaces + 1.
<ls_flow>-line = <ls_flow>-line+1.
ENDWHILE.
APPEND lv_spaces TO et_spaces.
ENDLOOP.
ENDMETHOD.
METHOD uncondense_flow.
DATA: lv_spaces LIKE LINE OF it_spaces.
FIELD-SYMBOLS: <ls_flow> LIKE LINE OF it_flow,
<ls_output> LIKE LINE OF rt_flow.
LOOP AT it_flow ASSIGNING <ls_flow>.
APPEND INITIAL LINE TO rt_flow ASSIGNING <ls_output>.
<ls_output>-line = <ls_flow>-line.
READ TABLE it_spaces INDEX sy-tabix INTO lv_spaces.
IF sy-subrc = 0.
SHIFT <ls_output>-line RIGHT BY lv_spaces PLACES IN CHARACTER MODE.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD serialize_program.
DATA: ls_progdir TYPE ty_progdir,
lv_program_name TYPE programm,
lt_dynpros TYPE ty_dynpro_tt,
ls_cua TYPE ty_cua,
lt_source TYPE TABLE OF abaptxt255,
lt_tpool TYPE textpool_table,
ls_tpool LIKE LINE OF lt_tpool,
lo_xml TYPE REF TO zcl_abapgit_xml_output.
IF iv_program IS INITIAL.
lv_program_name = is_item-obj_name.
ELSE.
lv_program_name = iv_program.
ENDIF.
zcl_abapgit_language=>set_current_language( mv_language ).
CALL FUNCTION 'RPY_PROGRAM_READ'
EXPORTING
program_name = lv_program_name
with_lowercase = abap_true
TABLES
source_extended = lt_source
textelements = lt_tpool
EXCEPTIONS
cancelled = 1
not_found = 2
permission_error = 3
OTHERS = 4.
IF sy-subrc = 2.
zcl_abapgit_language=>restore_login_language( ).
RETURN.
ELSEIF sy-subrc <> 0.
zcl_abapgit_language=>restore_login_language( ).
zcx_abapgit_exception=>raise( 'Error reading program' ).
ENDIF.
zcl_abapgit_language=>restore_login_language( ).
ls_progdir = read_progdir( lv_program_name ).
IF io_xml IS BOUND.
lo_xml = io_xml.
ELSE.
CREATE OBJECT lo_xml.
ENDIF.
lo_xml->add( iv_name = 'PROGDIR'
ig_data = ls_progdir ).
IF ls_progdir-subc = '1' OR ls_progdir-subc = 'M'.
lt_dynpros = serialize_dynpros( lv_program_name ).
lo_xml->add( iv_name = 'DYNPROS'
ig_data = lt_dynpros ).
ls_cua = serialize_cua( lv_program_name ).
IF NOT ls_cua IS INITIAL.
lo_xml->add( iv_name = 'CUA'
ig_data = ls_cua ).
ENDIF.
ENDIF.
READ TABLE lt_tpool WITH KEY id = 'R' INTO ls_tpool.
IF sy-subrc = 0 AND ls_tpool-key = '' AND ls_tpool-length = 0.
DELETE lt_tpool INDEX sy-tabix.
ENDIF.
lo_xml->add( iv_name = 'TPOOL'
ig_data = add_tpool( lt_tpool ) ).
IF NOT io_xml IS BOUND.
io_files->add_xml( iv_extra = iv_extra
io_xml = lo_xml ).
ENDIF.
io_files->add_abap( iv_extra = iv_extra
it_abap = lt_source ).
ENDMETHOD. "serialize_program
METHOD deserialize_program.
DATA: lv_exists TYPE sap_bool,
lv_progname TYPE reposrc-progname,
ls_tpool LIKE LINE OF it_tpool,
lv_title TYPE rglif-title,
ls_progdir_new TYPE progdir.
FIELD-SYMBOLS: <lg_any> TYPE any.
CALL FUNCTION 'RS_CORR_INSERT'
EXPORTING
object = is_progdir-name
object_class = 'ABAP'
devclass = iv_package
master_language = mv_language
mode = 'INSERT'
EXCEPTIONS
cancelled = 1
permission_failure = 2
unknown_objectclass = 3
OTHERS = 4.
IF sy-subrc = 1.
zcx_abapgit_exception=>raise( 'Cancelled' ).
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from RS_CORR_INSERT' ).
ENDIF.
READ TABLE it_tpool INTO ls_tpool WITH KEY id = 'R'. "#EC CI_SUBRC
IF sy-subrc = 0.
* there is a bug in RPY_PROGRAM_UPDATE, the header line of TTAB is not
* cleared, so the title length might be inherited from a different program.
ASSIGN ('(SAPLSIFP)TTAB') TO <lg_any>.
IF sy-subrc = 0.
CLEAR <lg_any>.
ENDIF.
lv_title = ls_tpool-entry.
ENDIF.
SELECT SINGLE progname FROM reposrc INTO lv_progname
WHERE progname = is_progdir-name
AND r3state = 'A'.
IF sy-subrc = 0.
lv_exists = abap_true.
ELSE.
lv_exists = abap_false.
ENDIF.
IF lv_exists = abap_true.
zcl_abapgit_language=>set_current_language( mv_language ).
CALL FUNCTION 'RPY_PROGRAM_UPDATE'
EXPORTING
program_name = is_progdir-name
title_string = lv_title
save_inactive = 'I'
TABLES
source_extended = it_source
EXCEPTIONS
cancelled = 1
permission_error = 2
not_found = 3
OTHERS = 4.
IF sy-subrc <> 0.
zcl_abapgit_language=>restore_login_language( ).
IF sy-msgid = 'EU' AND sy-msgno = '510'.
zcx_abapgit_exception=>raise( 'User is currently editing program' ).
ELSE.
zcx_abapgit_exception=>raise( 'PROG, error updating' ).
ENDIF.
ENDIF.
zcl_abapgit_language=>restore_login_language( ).
ELSEIF strlen( is_progdir-name ) > 30.
* function module RPY_PROGRAM_INSERT cannot handle function group includes
" special treatment for extensions
" if the program name exceeds 30 characters it is not a usual
" ABAP program but might be some extension, which requires the internal
" addition EXTENSION TYPE, see
" http://help.sap.com/abapdocu_751/en/abapinsert_report_internal.htm#!ABAP_ADDITION_1@1@
" This e.g. occurs in case of transportable Code Inspector variants (ending with ===VC)
INSERT REPORT is_progdir-name
FROM it_source
STATE 'I'
EXTENSION TYPE is_progdir-name+30.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from INSERT REPORT .. EXTENSION TYPE' ).
ENDIF.
ELSE.
INSERT REPORT is_progdir-name
FROM it_source
STATE 'I'
PROGRAM TYPE is_progdir-subc.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from INSERT REPORT' ).
ENDIF.
ENDIF.
IF NOT it_tpool[] IS INITIAL.
INSERT TEXTPOOL is_progdir-name
FROM it_tpool
LANGUAGE mv_language
STATE 'I'.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ).
ENDIF.
ENDIF.
CALL FUNCTION 'READ_PROGDIR'
EXPORTING
i_progname = is_progdir-name
i_state = 'I'
IMPORTING
e_progdir = ls_progdir_new
EXCEPTIONS
not_exists = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'not found in PROGDIR' ).
ENDIF.
* todo, package?
ls_progdir_new-ldbname = is_progdir-ldbname.
ls_progdir_new-dbna = is_progdir-dbna.
ls_progdir_new-dbapl = is_progdir-dbapl.
ls_progdir_new-rload = is_progdir-rload.
ls_progdir_new-fixpt = is_progdir-fixpt.
ls_progdir_new-varcl = is_progdir-varcl.
ls_progdir_new-appl = is_progdir-appl.
ls_progdir_new-rstat = is_progdir-rstat.
CALL FUNCTION 'UPDATE_PROGDIR'
EXPORTING
i_progdir = ls_progdir_new
i_progname = ls_progdir_new-name
i_state = ls_progdir_new-state
EXCEPTIONS
not_executed = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'PROG, error inserting' ).
ENDIF.
SELECT SINGLE * FROM progdir INTO ls_progdir_new
WHERE name = ls_progdir_new-name
AND state = ls_progdir_new-state.
IF sy-subrc = 0 AND is_progdir-varcl = space AND ls_progdir_new-varcl = abap_true.
* function module UPDATE_PROGDIR does not update VARCL
UPDATE progdir SET varcl = is_progdir-varcl
WHERE name = ls_progdir_new-name
AND state = ls_progdir_new-state. "#EC CI_SUBRC
ENDIF.
zcl_abapgit_objects_activation=>add(
iv_type = 'REPS'
iv_name = is_progdir-name ).
ENDMETHOD. "deserialize_program
METHOD read_progdir.
DATA: ls_sapdir TYPE progdir.
CALL FUNCTION 'READ_PROGDIR'
EXPORTING
i_progname = iv_program
i_state = 'A'
IMPORTING
e_progdir = ls_sapdir.
MOVE-CORRESPONDING ls_sapdir TO rs_progdir.
CLEAR: rs_progdir-edtx,
rs_progdir-cnam,
rs_progdir-cdat,
rs_progdir-unam,
rs_progdir-udat,
rs_progdir-levl,
rs_progdir-vern,
rs_progdir-rmand,
rs_progdir-sdate,
rs_progdir-stime,
rs_progdir-idate,
rs_progdir-itime.
ENDMETHOD. "read_progdir
METHOD serialize_cua.
CALL FUNCTION 'RS_CUA_INTERNAL_FETCH'
EXPORTING
program = iv_program_name
language = mv_language
state = 'A'
IMPORTING
adm = rs_cua-adm
TABLES
sta = rs_cua-sta
fun = rs_cua-fun
men = rs_cua-men
mtx = rs_cua-mtx
act = rs_cua-act
but = rs_cua-but
pfk = rs_cua-pfk
set = rs_cua-set
doc = rs_cua-doc
tit = rs_cua-tit
biv = rs_cua-biv
EXCEPTIONS
not_found = 1
unknown_version = 2
OTHERS = 3.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from RS_CUA_INTERNAL_FETCH' ).
ENDIF.
ENDMETHOD. "serialize_cua
METHOD serialize_dynpros.
DATA: ls_header TYPE rpy_dyhead,
lt_containers TYPE dycatt_tab,
lt_fields_to_containers TYPE dyfatc_tab,
lt_flow_logic TYPE swydyflow,
lt_d020s TYPE TABLE OF d020s.
FIELD-SYMBOLS: <ls_d020s> LIKE LINE OF lt_d020s,
<lv_outputstyle> TYPE scrpostyle,
<ls_field> LIKE LINE OF lt_fields_to_containers,
<ls_dynpro> LIKE LINE OF rt_dynpro.
CALL FUNCTION 'RS_SCREEN_LIST'
EXPORTING
dynnr = ''
progname = iv_program_name
TABLES
dynpros = lt_d020s
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 2.
zcx_abapgit_exception=>raise( 'error from screen_list' ).
ENDIF.
* loop dynpros and skip generated selection screens
LOOP AT lt_d020s ASSIGNING <ls_d020s>
WHERE type <> 'S' AND type <> 'W' AND type <> 'J'.
CALL FUNCTION 'RPY_DYNPRO_READ'
EXPORTING
progname = iv_program_name
dynnr = <ls_d020s>-dnum
IMPORTING
header = ls_header
TABLES
containers = lt_containers
fields_to_containers = lt_fields_to_containers
flow_logic = lt_flow_logic
EXCEPTIONS
cancelled = 1
not_found = 2
permission_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Error while reading dynpro' ).
ENDIF.
LOOP AT lt_fields_to_containers ASSIGNING <ls_field>.
* output style is a NUMC field, the XML conversion will fail if it contains invalid value
* field does not exist in all versions
ASSIGN COMPONENT 'OUTPUTSTYLE' OF STRUCTURE <ls_field> TO <lv_outputstyle>.
IF sy-subrc = 0 AND <lv_outputstyle> = ' '.
CLEAR <lv_outputstyle>.
ENDIF.
ENDLOOP.
APPEND INITIAL LINE TO rt_dynpro ASSIGNING <ls_dynpro>.
<ls_dynpro>-header = ls_header.
<ls_dynpro>-containers = lt_containers.
<ls_dynpro>-fields = lt_fields_to_containers.
condense_flow( IMPORTING et_spaces = <ls_dynpro>-spaces
CHANGING ct_flow = lt_flow_logic ).
<ls_dynpro>-flow_logic = lt_flow_logic.
ENDLOOP.
ENDMETHOD. "serialize_dynpros
METHOD deserialize_dynpros.
DATA: lv_name TYPE dwinactiv-obj_name,
ls_dynpro LIKE LINE OF it_dynpros.
* ls_dynpro is changed by the function module, a field-symbol will cause
* the program to dump since it_dynpros cannot be changed
LOOP AT it_dynpros INTO ls_dynpro.
ls_dynpro-flow_logic = uncondense_flow(
it_flow = ls_dynpro-flow_logic
it_spaces = ls_dynpro-spaces ).
CALL FUNCTION 'RPY_DYNPRO_INSERT'
EXPORTING
header = ls_dynpro-header
suppress_exist_checks = abap_true
TABLES
containers = ls_dynpro-containers
fields_to_containers = ls_dynpro-fields
flow_logic = ls_dynpro-flow_logic
EXCEPTIONS
cancelled = 1
already_exists = 2
program_not_exists = 3
not_executed = 4
missing_required_field = 5
illegal_field_value = 6
field_not_allowed = 7
not_generated = 8
illegal_field_position = 9
OTHERS = 10.
IF sy-subrc <> 2 AND sy-subrc <> 0.
zcx_abapgit_exception=>raise( |error from RPY_DYNPRO_INSERT: { sy-subrc }| ).
ENDIF.
* todo, RPY_DYNPRO_UPDATE?
CONCATENATE ls_dynpro-header-program ls_dynpro-header-screen
INTO lv_name RESPECTING BLANKS.
ASSERT NOT lv_name IS INITIAL.
zcl_abapgit_objects_activation=>add(
iv_type = 'DYNP'
iv_name = lv_name ).
ENDLOOP.
ENDMETHOD. "deserialize_dynpros
METHOD add_tpool.
FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool,
<ls_tpool_out> LIKE LINE OF rt_tpool.
LOOP AT it_tpool ASSIGNING <ls_tpool_in>.
APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>.
MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>.
IF <ls_tpool_out>-id = 'S'.
<ls_tpool_out>-split = <ls_tpool_out>-entry.
<ls_tpool_out>-entry = <ls_tpool_out>-entry+8.
ENDIF.
ENDLOOP.
ENDMETHOD. "add_tpool
METHOD read_tpool.
FIELD-SYMBOLS: <ls_tpool_in> LIKE LINE OF it_tpool,
<ls_tpool_out> LIKE LINE OF rt_tpool.
LOOP AT it_tpool ASSIGNING <ls_tpool_in>.
APPEND INITIAL LINE TO rt_tpool ASSIGNING <ls_tpool_out>.
MOVE-CORRESPONDING <ls_tpool_in> TO <ls_tpool_out>.
IF <ls_tpool_out>-id = 'S'.
CONCATENATE <ls_tpool_in>-split <ls_tpool_in>-entry
INTO <ls_tpool_out>-entry
RESPECTING BLANKS.
ENDIF.
ENDLOOP.
ENDMETHOD. "read_tpool
METHOD deserialize_textpool.
DATA lv_language TYPE langu.
DATA lv_state TYPE c.
DATA lv_delete TYPE abap_bool.
IF iv_language IS INITIAL.
lv_language = mv_language.
ELSE.
lv_language = iv_language.
ENDIF.
IF lv_language = mv_language.
lv_state = 'I'. "Textpool in master language needs to be activated
ELSE.
lv_state = 'A'. "Translations are always active
ENDIF.
IF it_tpool IS INITIAL.
IF iv_is_include = abap_false OR lv_state = 'A'.
DELETE TEXTPOOL iv_program "Remove initial description from textpool if
LANGUAGE iv_program "original program does not have a textpool
STATE lv_state.
lv_delete = abap_true.
ELSE.
INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in
FROM it_tpool "master language cannot be activated because
LANGUAGE lv_language "this woul activate the deletion of the textpool
STATE lv_state. "of the mail program -> insert empty textpool
ENDIF.
ELSE.
IF lines( it_tpool ) = 1 AND lv_language = mv_language.
READ TABLE it_tpool WITH KEY id = 'R' TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
RETURN. "No action because description in master language is already there
ENDIF.
ENDIF.
INSERT TEXTPOOL iv_program
FROM it_tpool
LANGUAGE lv_language
STATE lv_state.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ).
ENDIF.
ENDIF.
IF lv_state = 'I'. "Textpool in master language needs to be activated
zcl_abapgit_objects_activation=>add(
iv_type = 'REPT'
iv_name = iv_program
iv_delete = lv_delete ).
ENDIF.
ENDMETHOD. "deserialize_textpool
METHOD deserialize_cua.
DATA: ls_tr_key TYPE trkey.
IF lines( is_cua-sta ) = 0
AND lines( is_cua-fun ) = 0
AND lines( is_cua-men ) = 0
AND lines( is_cua-mtx ) = 0
AND lines( is_cua-act ) = 0
AND lines( is_cua-but ) = 0
AND lines( is_cua-pfk ) = 0
AND lines( is_cua-set ) = 0
AND lines( is_cua-doc ) = 0
AND lines( is_cua-tit ) = 0
AND lines( is_cua-biv ) = 0.
RETURN.
ENDIF.
SELECT SINGLE devclass INTO ls_tr_key-devclass
FROM tadir
WHERE pgmid = 'R3TR'
AND object = ms_item-obj_type
AND obj_name = ms_item-obj_name. "#EC CI_GENBUFF
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'not found in tadir' ).
ENDIF.
ls_tr_key-obj_type = ms_item-obj_type.
ls_tr_key-obj_name = ms_item-obj_name.
ls_tr_key-sub_type = 'CUAD'.
ls_tr_key-sub_name = iv_program_name.
sy-tcode = 'SE41' ##write_ok. " evil hack, workaround to handle fixes in note 2159455
CALL FUNCTION 'RS_CUA_INTERNAL_WRITE'
EXPORTING
program = iv_program_name
language = mv_language
tr_key = ls_tr_key
adm = is_cua-adm
state = 'I'
TABLES
sta = is_cua-sta
fun = is_cua-fun
men = is_cua-men
mtx = is_cua-mtx
act = is_cua-act
but = is_cua-but
pfk = is_cua-pfk
set = is_cua-set
doc = is_cua-doc
tit = is_cua-tit
biv = is_cua-biv
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
* if moving code from SAPlink, see https://github.com/larshp/abapGit/issues/562
zcx_abapgit_exception=>raise( 'error from RS_CUA_INTERNAL_WRITE' ).
ENDIF.
zcl_abapgit_objects_activation=>add(
iv_type = 'CUAD'
iv_name = iv_program_name ).
ENDMETHOD. "deserialize_cua
METHOD check_prog_changed_since.
DATA: lv_date TYPE dats,
lv_time TYPE tims,
lt_screens TYPE STANDARD TABLE OF d020s,
lt_eudb TYPE STANDARD TABLE OF eudb.
FIELD-SYMBOLS: <ls_screen> LIKE LINE OF lt_screens,
<ls_eudb> LIKE LINE OF lt_eudb.
SELECT SINGLE udat utime FROM reposrc " Program
INTO (lv_date, lv_time)
WHERE progname = iv_program
AND r3state = 'A'.
rv_changed = check_timestamp(
iv_timestamp = iv_timestamp
iv_date = lv_date
iv_time = lv_time ).
IF rv_changed = abap_true.
RETURN.
ENDIF.
SELECT SINGLE udat utime FROM repotext " Program text pool
INTO (lv_date, lv_time)
WHERE progname = iv_program
AND r3state = 'A'.
IF sy-subrc = 0. " Text not found ? Assuming no changes, see #404
rv_changed = check_timestamp(
iv_timestamp = iv_timestamp
iv_date = lv_date
iv_time = lv_time ).
IF rv_changed = abap_true.
RETURN.
ENDIF.
ENDIF.
IF iv_skip_gui = abap_true.
RETURN.
ENDIF.
SELECT dgen tgen FROM d020s " Screens
INTO CORRESPONDING FIELDS OF TABLE lt_screens
WHERE prog = iv_program
ORDER BY PRIMARY KEY ##TOO_MANY_ITAB_FIELDS. "#EC CI_SUBRC
LOOP AT lt_screens ASSIGNING <ls_screen>.
rv_changed = check_timestamp(
iv_timestamp = iv_timestamp
iv_date = <ls_screen>-dgen
iv_time = <ls_screen>-tgen ).
IF rv_changed = abap_true.
RETURN.
ENDIF.
ENDLOOP.
SELECT vdatum vzeit FROM eudb " GUI
INTO CORRESPONDING FIELDS OF TABLE lt_eudb
WHERE relid = 'CU'
AND name = iv_program
AND srtf2 = 0
ORDER BY PRIMARY KEY ##TOO_MANY_ITAB_FIELDS. "#EC CI_SUBRC
LOOP AT lt_eudb ASSIGNING <ls_eudb>.
rv_changed = check_timestamp(
iv_timestamp = iv_timestamp
iv_date = <ls_eudb>-vdatum
iv_time = <ls_eudb>-vzeit ).
IF rv_changed = abap_true.
RETURN.
ENDIF.
ENDLOOP.
ENDMETHOD. "check_prog_changed_since
ENDCLASS. "zcl_abapgit_objects_program IMPLEMENTATION
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
23065,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
1676,
70,
15908,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
41876,
1172,
15908,
12,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1181,
220,
220,
41876,
1172,
15908,
12,
5219,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
44161,
87,
220,
220,
220,
41876,
1172,
15908,
12,
25410,
87,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1225,
17602,
220,
220,
220,
41876,
1172,
15908,
12,
276,
17602,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1401,
565,
220,
220,
41876,
1172,
15908,
12,
7785,
565,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
7012,
489,
220,
220,
41876,
1172,
15908,
12,
67,
7012,
489,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20613,
2616,
220,
220,
220,
41876,
1172,
15908,
12,
9945,
2616,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
537,
292,
220,
220,
220,
41876,
1172,
15908,
12,
565,
292,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
41876,
1172,
15908,
12,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8833,
220,
41876,
1172,
15908,
12,
13966,
1834,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
66,
220,
220,
220,
41876,
1172,
15908,
12,
7266,
66,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3680,
220,
220,
220,
41876,
1172,
15908,
12,
1324,
75,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
792,
84,
220,
220,
220,
41876,
1172,
15908,
12,
2363,
84,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
7402,
220,
220,
220,
41876,
1172,
15908,
12,
66,
7402,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
19608,
220,
220,
220,
41876,
1172,
15908,
12,
10210,
265,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
555,
321,
220,
220,
220,
41876,
1172,
15908,
12,
403,
321,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
334,
19608,
220,
220,
220,
41876,
1172,
15908,
12,
463,
265,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
933,
220,
220,
220,
41876,
1172,
15908,
12,
933,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
443,
19279,
220,
220,
220,
41876,
1172,
15908,
12,
2768,
75,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
14269,
220,
220,
41876,
1172,
15908,
12,
81,
14269,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
22249,
220,
220,
41876,
1172,
15908,
12,
81,
22249,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
2220,
220,
220,
41876,
1172,
15908,
12,
81,
2220,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4259,
457,
220,
220,
41876,
1172,
15908,
12,
13049,
457,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
2617,
220,
220,
220,
41876,
1172,
15908,
12,
824,
316,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
264,
4475,
220,
220,
41876,
1172,
15908,
12,
82,
4475,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
336,
524,
220,
220,
41876,
1172,
15908,
12,
301,
524,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
378,
220,
220,
41876,
1172,
15908,
12,
20540,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
524,
220,
220,
41876,
1172,
15908,
12,
22552,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
9945,
3672,
41876,
1172,
15908,
12,
335,
65,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
334,
535,
258,
694,
41876,
1172,
15908,
12,
18863,
258,
694,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
1676,
70,
15908,
13,
628,
220,
220,
220,
337,
36252,
50,
11389,
1096,
62,
23065,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33245,
62,
19875,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
22915,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
16624,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16624,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
23065,
41876,
1430,
76,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
26086,
220,
220,
41876,
537,
522,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
1100,
62,
1676,
70,
15908,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
23065,
220,
220,
220,
220,
220,
220,
220,
41876,
1430,
76,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_fi_commitment_factory DEFINITION
PUBLIC
INHERITING FROM zcl_fico_masterdata_factory
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS:
zif_masterdata_factory~is_exist REDEFINITION,
zif_masterdata_factory~get_data REDEFINITION,
zif_masterdata_factory~maintain_data REDEFINITION.
CLASS-METHODS:
"! <p class="shorttext synchronized" lang="en">Get All Commitment Items for an FM Area</p>
"!
"! @parameter iv_fikrs | <p class="shorttext synchronized" lang="en">FM Area for TAFE (Default 1000)</p>
"! @parameter rt_result | <p class="shorttext synchronized" lang="en">Table of all Commitment Items in the FM Area Passed</p>
get_all IMPORTING iv_fikrs TYPE fikrs DEFAULT tafe_fm_area
RETURNING VALUE(rt_result) TYPE fmci_t.
METHODS constructor
IMPORTING
iv_fikrs TYPE fikrs DEFAULT tafe_fm_area
iv_gjahr TYPE gjahr OPTIONAL
iv_fipex TYPE fm_fipex
is_citemdata TYPE zfi_s_commitment_data OPTIONAL
iv_mode TYPE glaccount_action DEFAULT gl_action-insert
iv_commit TYPE boole_d DEFAULT abap_true
iv_simulate TYPE boole_d DEFAULT abap_false
iv_wait TYPE boole_d DEFAULT abap_true.
PROTECTED SECTION.
PRIVATE SECTION.
DATA:
lv_fikrs TYPE fikrs,
lv_fipex TYPE fipex,
lv_gjahr TYPE gjahr,
ls_citemdata TYPE zfi_s_commitment_data.
METHODS:
"! <p class="shorttext synchronized" lang="en">Get FM Area</p>
get_fikrs RETURNING VALUE(r_result) TYPE fikrs,
"! <p class="shorttext synchronized" lang="en">Set FM Area</p>
set_fikrs IMPORTING iv_fikrs TYPE fikrs,
"! <p class="shorttext synchronized" lang="en">Get Commitment Item</p>
get_fipex RETURNING VALUE(r_result) TYPE fipex,
"! <p class="shorttext synchronized" lang="en">Set Commitment Item</p>
set_fipex IMPORTING iv_fipex TYPE fipex,
"! <p class="shorttext synchronized" lang="en">Get Commitment Data</p>
get_data RETURNING VALUE(rs_result) TYPE zfi_s_commitment_data,
"! <p class="shorttext synchronized" lang="en">set Commitment Data</p>
set_data IMPORTING is_citemdata TYPE zfi_s_commitment_data,
"! <p class="shorttext synchronized" lang="en">Set API Methods</p>
set_api IMPORTING io_api TYPE REF TO zcl_fi_commitment_api
iv_mode TYPE glaccount_action OPTIONAL.
ENDCLASS.
CLASS zcl_fi_commitment_factory IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
me->set_mode( iv_mode ).
me->set_commit( iv_commit ).
me->set_simulate( iv_simulate ).
me->set_wait( iv_wait ).
me->set_fikrs( iv_fikrs ).
me->set_fipex( iv_fipex ).
me->set_data( is_citemdata ).
ENDMETHOD.
METHOD zif_masterdata_factory~get_data.
*----------------------------------------------------------------------
* Author: Sougata Chatterjee (UserID 11034616)
* Date: September 2020
* Reason: TAFE_CIME 144 - GL Account Maintenance Form and Workflow
*----------------------------------------------------------------------
DATA(lo_api) = CAST zcl_fi_commitment_api(
zcl_fico_masterdata=>get_instance(
iv_comitem = me->get_fipex( )
)
).
me->set_api( io_api = lo_api iv_mode = me->get_mode( ) ).
lo_api->zif_masterdata~read_data(
IMPORTING
es_data = es_data
).
ENDMETHOD.
METHOD zif_masterdata_factory~is_exist.
DATA(lo_api) = CAST zcl_fi_commitment_api(
zcl_fico_masterdata=>get_instance(
iv_comitem = me->get_fipex( )
)
).
me->set_api( lo_api ).
r_result = lo_api->zif_masterdata~existencecheck( ).
ENDMETHOD.
METHOD zif_masterdata_factory~maintain_data.
*----------------------------------------------------------------------
* Author: Sougata Chatterjee (UserID 11034616)
* Date: September 2020
* Reason: TAFE_CIME 144 - GL Account Maintenance Form and Workflow
*----------------------------------------------------------------------
DATA(lo_api) = CAST zcl_fi_commitment_api(
zcl_fico_masterdata=>get_instance(
iv_comitem = me->get_fipex( )
)
).
me->set_api( io_api = lo_api iv_mode = me->get_mode( ) ).
r_result = lo_api->zif_masterdata~maintain( iv_ref ).
ENDMETHOD.
METHOD get_fikrs.
r_result = me->lv_fikrs.
ENDMETHOD.
METHOD set_fikrs.
me->lv_fikrs = iv_fikrs.
ENDMETHOD.
METHOD get_fipex.
r_result = me->lv_fipex.
ENDMETHOD.
METHOD set_fipex.
me->lv_fipex = iv_fipex.
ENDMETHOD.
METHOD get_data.
rs_result = me->ls_citemdata.
ENDMETHOD.
METHOD set_data.
me->ls_citemdata = is_citemdata.
ENDMETHOD.
METHOD set_api.
io_api->clear( ).
io_api->set_mode( COND #( WHEN iv_mode IS SUPPLIED
THEN iv_mode
ELSE me->get_mode( )
)
).
io_api->set_simulate( me->get_simulate( ) ).
io_api->set_commit( me->get_commit( ) ).
io_api->set_wait( me->get_wait( ) ).
io_api->set_fikrs( me->get_fikrs( ) ).
io_api->set_fipex( me->get_fipex( ) ).
io_api->set_data( me->get_data( ) ).
ENDMETHOD.
METHOD get_all.
SELECT fipex fipup FROM fmci
INTO CORRESPONDING FIELDS OF TABLE rt_result
WHERE fikrs = iv_fikrs
AND gjahr = '000'.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
12463,
62,
41509,
434,
62,
69,
9548,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
69,
3713,
62,
9866,
7890,
62,
69,
9548,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
9866,
7890,
62,
69,
9548,
93,
271,
62,
38476,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
9866,
7890,
62,
69,
9548,
93,
1136,
62,
7890,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
9866,
7890,
62,
69,
9548,
93,
76,
32725,
62,
7890,
220,
23848,
36,
20032,
17941,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
3855,
1439,
35910,
434,
17230,
329,
281,
18695,
9498,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
69,
1134,
3808,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
23264,
9498,
329,
309,
8579,
36,
357,
19463,
8576,
36475,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
83,
62,
20274,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
10962,
286,
477,
35910,
434,
17230,
287,
262,
18695,
9498,
23228,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
651,
62,
439,
30023,
9863,
2751,
21628,
62,
69,
1134,
3808,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
277,
1134,
3808,
5550,
38865,
256,
8635,
62,
38353,
62,
20337,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
20274,
8,
41876,
277,
76,
979,
62,
83,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
69,
1134,
3808,
220,
220,
220,
220,
41876,
277,
1134,
3808,
5550,
38865,
256,
8635,
62,
38353,
62,
20337,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
70,
31558,
81,
220,
220,
220,
220,
41876,
308,
31558,
81,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
69,
3757,
87,
220,
220,
220,
220,
41876,
277,
76,
62,
69,
3757,
87,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
66,
9186,
7890,
41876,
1976,
12463,
62,
82,
62,
41509,
434,
62,
7890,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
14171,
220,
220,
220,
220,
220,
41876,
1278,
23317,
62,
2673,
5550,
38865,
1278,
62,
2673,
12,
28463,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
41509,
220,
220,
220,
41876,
1489,
2305,
62,
67,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
14323,
5039,
220,
41876,
1489,
2305,
62,
67,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
17077,
220,
220,
220,
220,
220,
41876,
1489,
2305,
62,
67,
5550,
38865,
450,
499,
62,
7942,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
300,
85,
62,
69,
1134,
3808,
220,
220,
220,
220,
41876,
277,
1134,
3808,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
69,
3757,
87,
220,
220,
220,
220,
41876,
277,
3757,
87,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
70,
31558,
81,
220,
220,
220,
220,
41876,
308,
31558,
81,
11,
198,
220,
220,
220,
220,
220,
43979,
62,
66,
9186,
7890,
41876,
1976,
12463,
62,
82,
62,
41509,
434,
62,
7890,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
3855,
18695,
9498,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
651,
62,
69,
1134,
3808,
30826,
4261,
15871,
26173,
8924,
7,
81,
62,
20274,
8,
41876,
277,
1134,
3808,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
7248,
18695,
9498,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
900,
62,
69,
1134,
3808,
30023,
9863,
2751,
21628,
62,
69,
1134,
3808,
41876,
277,
1134,
3808,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
3855,
35910,
434,
9097,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
651,
62,
69,
3757,
87,
30826,
4261,
15871,
26173,
8924,
7,
81,
62,
20274,
8,
41876,
277,
3757,
87,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
7248,
35910,
434,
9097,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
900,
62,
69,
3757,
87,
30023,
9863,
2751,
21628,
62,
69,
3757,
87,
41876,
277,
3757,
87,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
3855,
35910,
434,
6060,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
651,
62,
7890,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
20274,
8,
41876,
1976,
12463,
62,
82,
62,
41509,
434,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
2617,
35910,
434,
6060,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
900,
62,
7890,
220,
30023,
9863,
2751,
318,
62,
66,
9186,
7890,
41876,
1976,
12463,
62,
82,
62,
41509,
434,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
7248,
7824,
25458,
3556,
79
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_hotkeys DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS:
get_all_default_hotkeys
IMPORTING
io_page TYPE REF TO zcl_abapgit_gui_page OPTIONAL
RETURNING
VALUE(rt_hotkey_actions) TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name
RAISING
zcx_abapgit_exception.
CLASS-METHODS:
should_show_hint
RETURNING
VALUE(rv_yes) TYPE abap_bool.
PROTECTED SECTION.
PRIVATE SECTION.
CONSTANTS:
mc_hotkey_interface TYPE string VALUE `ZIF_ABAPGIT_GUI_PAGE_HOTKEY` ##NO_TEXT.
CLASS-DATA:
gv_hint_was_shown TYPE abap_bool,
gt_interface_implementations TYPE saboo_iimpt.
CLASS-METHODS:
get_hotkeys_from_global_intf
IMPORTING
io_page TYPE REF TO zcl_abapgit_gui_page
RETURNING
VALUE(rt_hotkeys) TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name,
get_hotkeys_from_local_intf
IMPORTING
io_page TYPE REF TO zcl_abapgit_gui_page
RETURNING
VALUE(rt_hotkeys) TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name
RAISING
zcx_abapgit_exception,
get_local_intf_implementations
RETURNING
VALUE(rt_interface_implementations) TYPE saboo_iimpt
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_HOTKEYS IMPLEMENTATION.
METHOD get_all_default_hotkeys.
IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true.
rt_hotkey_actions = get_hotkeys_from_local_intf( io_page ).
ELSE.
rt_hotkey_actions = get_hotkeys_from_global_intf( io_page ).
ENDIF.
" the global shortcuts are defined in the base class
INSERT LINES OF zcl_abapgit_gui_page=>get_global_hotkeys( ) INTO TABLE rt_hotkey_actions.
SORT rt_hotkey_actions BY name.
ENDMETHOD.
METHOD get_hotkeys_from_global_intf.
DATA: lt_hotkey_actions TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name,
lo_interface TYPE REF TO cl_oo_interface,
lv_class_name TYPE abap_abstypename,
lt_classes TYPE seo_relkeys,
lv_where_clause TYPE string.
FIELD-SYMBOLS: <ls_class> LIKE LINE OF lt_classes.
TRY.
lo_interface ?= cl_oo_class=>get_instance( |{ mc_hotkey_interface }| ).
CATCH cx_class_not_existent.
RETURN.
ENDTRY.
lt_classes = lo_interface->get_implementing_classes( ).
IF io_page IS BOUND.
lv_class_name = cl_abap_classdescr=>get_class_name( io_page ).
lv_class_name = substring_after( val = lv_class_name
regex = '^\\CLASS=' ).
lv_where_clause = |CLSNAME = LV_CLASS_NAME|.
ENDIF.
LOOP AT lt_classes ASSIGNING <ls_class>
WHERE (lv_where_clause).
CALL METHOD (<ls_class>-clsname)=>zif_abapgit_gui_page_hotkey~get_hotkey_actions
RECEIVING
rt_hotkey_actions = lt_hotkey_actions.
INSERT LINES OF lt_hotkey_actions INTO TABLE rt_hotkeys.
ENDLOOP.
ENDMETHOD.
METHOD get_hotkeys_from_local_intf.
DATA: lt_hotkey_actions TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name,
lv_where_clause TYPE string,
lv_class_name TYPE abap_abstypename,
lt_interface_implementations TYPE saboo_iimpt.
FIELD-SYMBOLS: <ls_intf_implementation> TYPE vseoimplem.
lt_interface_implementations = get_local_intf_implementations( ).
lv_where_clause = |REFCLSNAME = MC_HOTKEY_INTERFACE|.
IF io_page IS BOUND.
lv_class_name = cl_abap_classdescr=>get_class_name( io_page ).
lv_class_name = substring_after( val = lv_class_name
regex = `^\\PROGRAM=` && sy-cprog && `\\CLASS=` ).
lv_where_clause = |{ lv_where_clause } AND CLSNAME = LV_CLASS_NAME|.
ENDIF.
LOOP AT lt_interface_implementations ASSIGNING <ls_intf_implementation>
WHERE (lv_where_clause).
CALL METHOD (<ls_intf_implementation>-clsname)=>zif_abapgit_gui_page_hotkey~get_hotkey_actions
RECEIVING
rt_hotkey_actions = lt_hotkey_actions.
INSERT LINES OF lt_hotkey_actions INTO TABLE rt_hotkeys.
ENDLOOP.
ENDMETHOD.
METHOD get_local_intf_implementations.
DATA: lt_type_infos TYPE saboo_vseot,
lt_method_implementations TYPE saboo_method_impl_tab,
lt_source TYPE saboo_sourt.
IF gt_interface_implementations IS INITIAL.
READ REPORT sy-cprog INTO lt_source.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Cannot read { sy-cprog }| ).
ENDIF.
CALL FUNCTION 'SCAN_ABAP_OBJECTS_CLASSES'
CHANGING
vseo_tabs = lt_type_infos
method_impls = lt_method_implementations
sourc_tab = lt_source
EXCEPTIONS
scan_abap_source_error = 1
scan_abap_src_line_too_long = 2
OTHERS = 3.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
gt_interface_implementations = lt_type_infos-iimpl_tab.
ENDIF.
rt_interface_implementations = gt_interface_implementations.
ENDMETHOD.
METHOD should_show_hint.
IF gv_hint_was_shown = abap_false.
rv_yes = abap_true.
gv_hint_was_shown = abap_true.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
8940,
13083,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
439,
62,
12286,
62,
8940,
13083,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
7700,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
8940,
2539,
62,
4658,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
8940,
2539,
14804,
42852,
62,
8940,
2539,
62,
4480,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
815,
62,
12860,
62,
71,
600,
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,
8505,
8,
41876,
450,
499,
62,
30388,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
36650,
62,
8940,
2539,
62,
39994,
41876,
4731,
26173,
8924,
4600,
57,
5064,
62,
6242,
2969,
38,
2043,
62,
40156,
62,
4537,
8264,
62,
39,
2394,
20373,
63,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
42715,
12,
26947,
25,
198,
220,
220,
220,
220,
220,
308,
85,
62,
71,
600,
62,
9776,
62,
42579,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
308,
83,
62,
39994,
62,
320,
26908,
602,
41876,
17463,
2238,
62,
72,
320,
457,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
8940,
13083,
62,
6738,
62,
20541,
62,
600,
69,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
7700,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
8940,
13083,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
8940,
2539,
14804,
42852,
62,
8940,
2539,
62,
4480,
62,
3672,
11,
628,
220,
220,
220,
220,
220,
651,
62,
8940,
13083,
62,
6738,
62,
12001,
62,
600,
69,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
7700,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
8940,
13083,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
8940,
2539,
14804,
42852,
62,
8940,
2539,
62,
4480,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
220,
220,
651,
62,
12001,
62,
600,
69,
62,
320,
26908,
602,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
39994,
62,
320,
26908,
602,
8,
41876,
17463,
2238,
62,
72,
320,
457,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
39,
2394,
7336,
16309,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
439,
62,
12286,
62,
8940,
13083,
13,
628,
220,
220,
220,
16876,
1976,
565,
62,
397,
499,
18300,
62,
69,
9548,
14804,
1136,
62,
38986,
7,
1267,
3784,
271,
62,
647,
2004,
7,
1267,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
374,
83,
62,
8940,
2539,
62,
4658,
796,
651,
62,
8940,
13083,
62,
6738,
62,
12001,
62,
600,
69,
7,
33245,
62,
7700,
6739,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
374,
83,
62,
8940,
2539,
62,
4658,
796,
651,
62,
8940,
13083,
62,
6738,
62,
20541,
62,
600,
69,
7,
33245,
62,
7700,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
366,
262,
3298,
32953,
389,
5447,
287,
262,
2779,
1398,
198,
220,
220,
220,
29194,
17395,
43277,
1546,
3963,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
14804,
1136,
62,
20541,
62,
8940,
13083,
7,
1267,
39319,
43679,
374,
83,
62,
8940,
2539,
62,
4658,
13,
628,
220,
220,
220,
311,
9863,
374,
83,
62,
8940,
2539,
62,
4658,
11050,
1438,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
8940,
13083,
62,
6738,
62,
20541,
62,
600,
69,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
8940,
2539,
62,
4658,
41876,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
8940,
2539,
14804,
42852,
62,
8940,
2539,
62,
4480,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_ale_log_reader
PUBLIC .
CONSTANTS: BEGIN OF con_log_level,
info TYPE c LENGTH 1 VALUE 'I',
warning TYPE c LENGTH 1 VALUE 'W',
error TYPE c LENGTH 1 VALUE 'E',
END OF con_log_level.
TYPES: BEGIN OF ty_filter_value,
key TYPE string,
value TYPE REF TO data,
END OF ty_filter_value.
TYPES ty_filter_values TYPE STANDARD TABLE OF ty_filter_value.
TYPES: BEGIN OF ty_additional_field,
field TYPE string,
value TYPE string,
END OF ty_additional_field.
TYPES ty_additional_fields TYPE STANDARD TABLE OF ty_additional_field WITH KEY field.
TYPES: BEGIN OF ty_log,
level TYPE c LENGTH 1,
header_text TYPE string,
item_text TYPE string,
timestamp TYPE timestamp,
additional_fields TYPE ty_additional_fields,
END OF ty_log.
TYPES ty_logs TYPE STANDARD TABLE OF ty_log WITH DEFAULT KEY.
METHODS read
IMPORTING filter_values TYPE ty_filter_values
customizing TYPE REF TO zcl_ale_customizing
RETURNING VALUE(logs) TYPE ty_logs.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
1000,
62,
6404,
62,
46862,
198,
220,
44731,
764,
628,
220,
7102,
2257,
1565,
4694,
25,
347,
43312,
3963,
369,
62,
6404,
62,
5715,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7508,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
40,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6509,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
54,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
36,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
369,
62,
6404,
62,
5715,
13,
628,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
24455,
62,
8367,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
41876,
4526,
37,
5390,
1366,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
24455,
62,
8367,
13,
628,
220,
24412,
47,
1546,
1259,
62,
24455,
62,
27160,
41876,
49053,
9795,
43679,
3963,
1259,
62,
24455,
62,
8367,
13,
628,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
2860,
1859,
62,
3245,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2214,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
2860,
1859,
62,
3245,
13,
628,
220,
24412,
47,
1546,
1259,
62,
2860,
1859,
62,
25747,
41876,
49053,
9795,
43679,
3963,
1259,
62,
2860,
1859,
62,
3245,
13315,
35374,
2214,
13,
628,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
6404,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1241,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13639,
62,
5239,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2378,
62,
5239,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41033,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
41033,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3224,
62,
25747,
41876,
1259,
62,
2860,
1859,
62,
25747,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
6404,
13,
628,
220,
24412,
47,
1546,
1259,
62,
6404,
82,
41876,
49053,
9795,
43679,
3963,
1259,
62,
6404,
13315,
5550,
38865,
35374,
13,
628,
220,
337,
36252,
50,
1100,
198,
220,
220,
220,
30023,
9863,
2751,
8106,
62,
27160,
41876,
1259,
62,
24455,
62,
27160,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2183,
2890,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1000,
62,
23144,
2890,
198,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
6404,
82,
8,
220,
220,
41876,
1259,
62,
6404,
82,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_ZEWM_ROBCO_MPC_EXT definition
public
inheriting from ZCL_ZEWM_ROBCO_MPC
create public .
public section.
methods DEFINE
redefinition .
protected section.
private section.
ENDCLASS.
CLASS ZCL_ZEWM_ROBCO_MPC_EXT IMPLEMENTATION.
method define.
**
** Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
**
** This file is part of ewm-cloud-robotics
** (see https://github.com/SAP/ewm-cloud-robotics).
**
** This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file (https://github.com/SAP/ewm-cloud-robotics/blob/master/LICENSE)
**
data: lo_entity_type type ref to /iwbep/if_mgw_odata_entity_typ,
lo_complex_type type ref to /iwbep/if_mgw_odata_cmplx_type,
lo_property type ref to /iwbep/if_mgw_odata_property,
lo_action type ref to /iwbep/if_mgw_odata_action.
super->define( ).
* Disable conversion for Lsd property to avoid error "The argument '00.00.0000 00:00:00' cannot be interpreted as a number"
* For EntitySet WarehouseOrder
lo_entity_type = model->get_entity_type( iv_entity_name = 'WarehouseOrder' ).
lo_entity_type->get_property( 'Lsd' )->disable_conversion( ).
* For ComplexType NewWarehouseOrder
lo_complex_type = model->get_complex_type( iv_cplx_type_name = 'NewWarehouseOrder' ).
lo_complex_type->get_property( 'Lsd' )->disable_conversion( ).
* Define optional import parameters
* For function import ConfirmWarehouseTask
lo_action = model->get_action( iv_action_name = 'ConfirmWarehouseTask' ).
lo_property = lo_action->get_input_parameter( iv_name = 'Altme' ).
lo_property->set_nullable( iv_nullable = abap_true ).
lo_property = lo_action->get_input_parameter( iv_name = 'ConfExc' ).
lo_property->set_nullable( iv_nullable = abap_true ).
lo_property = lo_action->get_input_parameter( iv_name = 'Nista' ).
lo_property->set_nullable( iv_nullable = abap_true ).
lo_property = lo_action->get_input_parameter( iv_name = 'Nlenr' ).
lo_property->set_nullable( iv_nullable = abap_true ).
lo_property = lo_action->get_input_parameter( iv_name = 'Nlpla' ).
lo_property->set_nullable( iv_nullable = abap_true ).
lo_property = lo_action->get_input_parameter( iv_name = 'Parti' ).
lo_property->set_nullable( iv_nullable = abap_true ).
endmethod.
ENDCLASS.
| [
4871,
1168,
5097,
62,
57,
6217,
44,
62,
13252,
2749,
46,
62,
44,
5662,
62,
13918,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
5097,
62,
57,
6217,
44,
62,
13252,
2749,
46,
62,
44,
5662,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
5050,
23449,
8881,
198,
220,
220,
220,
34087,
17750,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
57,
6217,
44,
62,
13252,
2749,
46,
62,
44,
5662,
62,
13918,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
8160,
13,
198,
1174,
198,
1174,
15069,
357,
66,
8,
13130,
48323,
7946,
393,
281,
48323,
17375,
1664,
13,
1439,
2489,
10395,
13,
198,
1174,
198,
1174,
770,
2393,
318,
636,
286,
304,
26377,
12,
17721,
12,
305,
13645,
873,
198,
1174,
357,
3826,
3740,
1378,
12567,
13,
785,
14,
50,
2969,
14,
413,
76,
12,
17721,
12,
305,
13645,
873,
737,
198,
1174,
198,
1174,
770,
2393,
318,
11971,
739,
262,
24843,
10442,
13789,
11,
410,
13,
362,
2845,
355,
4367,
4306,
287,
262,
38559,
24290,
2393,
357,
5450,
1378,
12567,
13,
785,
14,
50,
2969,
14,
413,
76,
12,
17721,
12,
305,
13645,
873,
14,
2436,
672,
14,
9866,
14,
43,
2149,
24290,
8,
198,
1174,
628,
220,
220,
220,
1366,
25,
2376,
62,
26858,
62,
4906,
220,
2099,
1006,
284,
1220,
14246,
65,
538,
14,
361,
62,
11296,
86,
62,
375,
1045,
62,
26858,
62,
28004,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
41887,
62,
4906,
2099,
1006,
284,
1220,
14246,
65,
538,
14,
361,
62,
11296,
86,
62,
375,
1045,
62,
11215,
489,
87,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
26745,
220,
220,
220,
220,
2099,
1006,
284,
1220,
14246,
65,
538,
14,
361,
62,
11296,
86,
62,
375,
1045,
62,
26745,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
2673,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
1220,
14246,
65,
538,
14,
361,
62,
11296,
86,
62,
375,
1045,
62,
2673,
13,
628,
220,
220,
220,
2208,
3784,
13086,
7,
6739,
198,
198,
9,
31529,
11315,
329,
406,
21282,
3119,
284,
3368,
4049,
366,
464,
4578,
705,
405,
13,
405,
13,
2388,
3571,
25,
405,
25,
405,
6,
2314,
307,
16173,
355,
257,
1271,
1,
198,
9,
1114,
20885,
7248,
45927,
18743,
198,
220,
220,
220,
2376,
62,
26858,
62,
4906,
796,
2746,
3784,
1136,
62,
26858,
62,
4906,
7,
21628,
62,
26858,
62,
3672,
796,
705,
38824,
4803,
18743,
6,
6739,
198,
220,
220,
220,
2376,
62,
26858,
62,
4906,
3784,
1136,
62,
26745,
7,
705,
43,
21282,
6,
1267,
3784,
40223,
62,
1102,
9641,
7,
6739,
198,
9,
1114,
19157,
6030,
968,
38824,
4803,
18743,
198,
220,
220,
220,
2376,
62,
41887,
62,
4906,
796,
2746,
3784,
1136,
62,
41887,
62,
4906,
7,
21628,
62,
66,
489,
87,
62,
4906,
62,
3672,
796,
705,
3791,
38824,
4803,
18743,
6,
6739,
198,
220,
220,
220,
2376,
62,
41887,
62,
4906,
3784,
1136,
62,
26745,
7,
705,
43,
21282,
6,
1267,
3784,
40223,
62,
1102,
9641,
7,
6739,
198,
198,
9,
2896,
500,
11902,
1330,
10007,
198,
9,
1114,
2163,
1330,
7326,
2533,
38824,
4803,
25714,
198,
220,
220,
220,
2376,
62,
2673,
796,
2746,
3784,
1136,
62,
2673,
7,
21628,
62,
2673,
62,
3672,
796,
705,
18546,
2533,
38824,
4803,
25714,
6,
6739,
198,
220,
220,
220,
2376,
62,
26745,
796,
2376,
62,
2673,
3784,
1136,
62,
15414,
62,
17143,
2357,
7,
21628,
62,
3672,
796,
705,
29161,
1326,
6,
6739,
198,
220,
220,
220,
2376,
62,
26745,
3784,
2617,
62,
8423,
540,
7,
21628,
62,
8423,
540,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
2376,
62,
26745,
796,
2376,
62,
2673,
3784,
1136,
62,
15414,
62,
17143,
2357,
7,
21628,
62,
3672,
796,
705,
18546,
40127,
6,
6739,
198,
220,
220,
220,
2376,
62,
26745,
3784,
2617,
62,
8423,
540,
7,
21628,
62,
8423,
540,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
2376,
62,
26745,
796,
2376,
62,
2673,
3784,
1136,
62,
15414,
62,
17143,
2357,
7,
21628,
62,
3672,
796,
705,
45,
12523,
6,
6739,
198,
220,
220,
220,
2376,
62,
26745,
3784,
2617,
62,
8423,
540,
7,
21628,
62,
8423,
540,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
2376,
62,
26745,
796,
2376,
62,
2673,
3784,
1136,
62,
15414,
62,
17143,
2357,
7,
21628,
62,
3672,
796,
705,
45,
11925,
81,
6,
6739,
198,
220,
220,
220,
2376,
62,
26745,
3784,
2617,
62,
8423,
540,
7,
21628,
62,
8423,
540,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
2376,
62,
26745,
796,
2376,
62,
2673,
3784,
1136,
62,
15414,
62,
17143,
2357,
7,
21628,
62,
3672,
796,
705,
45,
75,
489,
64,
6,
6739,
198,
220,
220,
220,
2376,
62,
26745,
3784,
2617,
62,
8423,
540,
7,
21628,
62,
8423,
540,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
2376,
62,
26745,
796,
2376,
62,
2673,
3784,
1136,
62,
15414,
62,
17143,
2357,
7,
21628,
62,
3672,
796,
705,
7841,
72,
6,
6739,
198,
220,
220,
220,
2376,
62,
26745,
3784,
2617,
62,
8423,
540,
7,
21628,
62,
8423,
540,
796,
450,
499,
62,
7942,
6739,
628,
220,
886,
24396,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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aces ZIF_SCABSRC_BLOCKS .
types:
ty_rng_block_index TYPE RANGE OF sytabix .
* ALIASES get_first_statement_each_block
* FOR zif_scabsrc_blocks~get_first_statement_each_block .
* ALIASES get_next
* FOR zif_scabsrc_blocks~get_next .
* ALIASES reset
* FOR zif_scabsrc_blocks~reset .
class-methods CREATE_FOR_CHILDREN_BLOCKS
importing
!BLOCK type ref to ZIF_SCABSRC_BLOCK
returning
value(BLOCKS) type ref to ZIF_SCABSRC_BLOCKS .
class-methods CREATE
importing
!SCABSRC type ref to ZCL_SCABSRC
!TYPE type ZIF_SCABSRC_BLOCK=>TY_TYPE optional
!STMNT_TYPE type ZIF_SCABSRC_BLOCK=>TY_STMNT_TYPE optional
!RNG_TYPE type ZIF_SCABSRC_BLOCK=>TY_RNG_TYPE optional
!RNG_STMNT_TYPE type ZIF_SCABSRC_BLOCK=>TY_RNG_STMNT_TYPE optional
returning
value(BLOCKS) type ref to ZIF_SCABSRC_BLOCKS .
class-methods CREATE_FOR_STATEMENT
importing
!STATEMENT type ref to ZIF_SCABSRC_STATEMENT
!TYPE type ZIF_SCABSRC_BLOCK=>TY_TYPE optional
!STMNT_TYPE type ZIF_SCABSRC_BLOCK=>TY_STMNT_TYPE optional
!RNG_TYPE type ZIF_SCABSRC_BLOCK=>TY_RNG_TYPE optional
!RNG_STMNT_TYPE type ZIF_SCABSRC_BLOCK=>TY_RNG_STMNT_TYPE optional
returning
value(BLOCKS) type ref to ZIF_SCABSRC_BLOCKS .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_is_range,
from TYPE sytabix,
to TYPE sytabix,
END OF ty_is_range,
ty_it_range TYPE STANDARD TABLE OF ty_is_range WITH EMPTY KEY.
METHODS constructor
IMPORTING
!scabsrc TYPE REF TO zcl_scabsrc
!tab_range TYPE ty_it_range.
DATA next TYPE sytabix .
DATA next2 TYPE sytabix .
DATA tab_range TYPE ty_it_range .
ENDCLASS.
CLASS ZCL_SCABSRC_BLOCKS IMPLEMENTATION.
METHOD constructor.
me->tab_range = tab_range.
me->zif_scabsrc_blocks~scabsrc = scabsrc.
me->zif_scabsrc_blocks~count = REDUCE #( INIT i = 0 FOR line IN tab_range NEXT i = i + line-to - line-from + 1 ).
ENDMETHOD.
METHOD create.
DATA: tab_range TYPE ty_it_range.
IF type IS INITIAL AND stmnt_type IS INITIAL
AND rng_type IS INITIAL AND rng_stmnt_type IS INITIAL.
tab_range = VALUE #( ( from = 1 to = lines( scabsrc->lt_sstruc ) ) ).
ELSE.
DATA(sng_rng_type) = COND zif_scabsrc_block=>ty_rng_type(
WHEN type IS NOT INITIAL THEN VALUE #( ( sign = 'I' option = 'EQ' low = type ) ) ).
DATA(sng_rng_stmnt_type) = COND zif_scabsrc_block=>ty_rng_stmnt_type(
WHEN stmnt_type IS NOT INITIAL THEN VALUE #( ( sign = 'I' option = 'EQ' low = stmnt_type ) ) ).
LOOP AT scabsrc->lt_sstruc ASSIGNING FIELD-SYMBOL(<ls_sstruc>)
WHERE type IN rng_type
AND type IN sng_rng_type
AND stmnt_type IN rng_stmnt_type
AND stmnt_type IN sng_rng_stmnt_type.
tab_range = VALUE #( BASE tab_range ( from = sy-tabix to = sy-tabix ) ).
ENDLOOP.
ENDIF.
blocks = NEW zcl_scabsrc_blocks( scabsrc = scabsrc tab_range = tab_range ).
ENDMETHOD.
METHOD create_for_children_blocks.
CREATE OBJECT blocks TYPE zcl_scabsrc_blocks
EXPORTING
scabsrc = block->scabsrc
tab_range = VALUE #( ( from = block->sstruc-struc_from to = block->sstruc-struc_to ) ).
ENDMETHOD.
METHOD create_for_statement.
DATA(block) = statement->get_block( ).
DATA(temp_tab_range) = VALUE ty_it_range( ).
WHILE block IS BOUND.
IF ( type IS NOT INITIAL AND type = block->sstruc-type )
OR ( type IS INITIAL AND block->sstruc-type IN rng_type )
OR ( stmnt_type IS NOT INITIAL AND stmnt_type = block->sstruc-stmnt_type )
OR ( stmnt_type IS INITIAL AND block->sstruc-stmnt_type IN rng_stmnt_type ).
temp_tab_range = VALUE #( BASE temp_tab_range ( from = block->index to = block->index ) ).
ENDIF.
block = block->get_parent_block( ).
ENDWHILE.
ENDMETHOD.
METHOD zif_scabsrc_blocks~get_first_statement_each_block.
zif_scabsrc_blocks~reset( ).
DATA(block) = zif_scabsrc_blocks~get_next( ).
WHILE block IS BOUND.
APPEND block->get_first_statement( ) TO statements.
block = zif_scabsrc_blocks~get_next( ).
ENDWHILE.
zif_scabsrc_blocks~reset( ).
ENDMETHOD.
METHOD zif_scabsrc_blocks~get_next.
IF next = 0.
next = 1.
next2 = 0.
ENDIF.
DO.
ASSIGN tab_range[ next ] TO FIELD-SYMBOL(<range>).
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF next2 = 0.
next2 = <range>-from.
ENDIF.
IF next2 <= <range>-to.
CREATE OBJECT block TYPE zcl_scabsrc_block
EXPORTING
scabsrc = zif_scabsrc_blocks~scabsrc
index = next2.
ADD 1 TO next2.
EXIT.
ELSE.
ADD 1 TO next.
next2 = 0.
ENDIF.
ENDDO.
ENDMETHOD.
METHOD zif_scabsrc_blocks~reset.
next = 0.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
23984,
79,
29,
198,
40484,
198,
4871,
1168,
5097,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
50,
6770,
198,
220,
1171,
198,
220,
2251,
2839,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
50,
764,
628,
220,
3858,
25,
198,
220,
220,
220,
1259,
62,
81,
782,
62,
9967,
62,
9630,
41876,
371,
27746,
3963,
827,
8658,
844,
764,
198,
198,
9,
220,
220,
220,
8355,
43429,
1546,
651,
62,
11085,
62,
26090,
62,
27379,
62,
9967,
198,
9,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
1416,
8937,
6015,
62,
27372,
93,
1136,
62,
11085,
62,
26090,
62,
27379,
62,
9967,
764,
198,
9,
220,
220,
220,
8355,
43429,
1546,
651,
62,
19545,
198,
9,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
1416,
8937,
6015,
62,
27372,
93,
1136,
62,
19545,
764,
198,
9,
220,
220,
220,
8355,
43429,
1546,
13259,
198,
9,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
1416,
8937,
6015,
62,
27372,
93,
42503,
764,
198,
220,
1398,
12,
24396,
82,
29244,
6158,
62,
13775,
62,
3398,
4146,
7707,
1677,
62,
9148,
11290,
50,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
9148,
11290,
2099,
1006,
284,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
9148,
11290,
50,
8,
2099,
1006,
284,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
50,
764,
198,
220,
1398,
12,
24396,
82,
29244,
6158,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
6173,
32,
4462,
7397,
2099,
1006,
284,
1168,
5097,
62,
6173,
32,
4462,
7397,
198,
220,
220,
220,
220,
220,
5145,
25216,
2099,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
14804,
9936,
62,
25216,
11902,
198,
220,
220,
220,
220,
220,
5145,
2257,
44,
11251,
62,
25216,
2099,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
14804,
9936,
62,
2257,
44,
11251,
62,
25216,
11902,
198,
220,
220,
220,
220,
220,
5145,
49,
10503,
62,
25216,
2099,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
14804,
9936,
62,
49,
10503,
62,
25216,
11902,
198,
220,
220,
220,
220,
220,
5145,
49,
10503,
62,
2257,
44,
11251,
62,
25216,
2099,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
14804,
9936,
62,
49,
10503,
62,
2257,
44,
11251,
62,
25216,
11902,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
9148,
11290,
50,
8,
2099,
1006,
284,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
50,
764,
198,
220,
1398,
12,
24396,
82,
29244,
6158,
62,
13775,
62,
35744,
12529,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
35744,
12529,
2099,
1006,
284,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
35744,
12529,
198,
220,
220,
220,
220,
220,
5145,
25216,
2099,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
14804,
9936,
62,
25216,
11902,
198,
220,
220,
220,
220,
220,
5145,
2257,
44,
11251,
62,
25216,
2099,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
14804,
9936,
62,
2257,
44,
11251,
62,
25216,
11902,
198,
220,
220,
220,
220,
220,
5145,
49,
10503,
62,
25216,
2099,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
14804,
9936,
62,
49,
10503,
62,
25216,
11902,
198,
220,
220,
220,
220,
220,
5145,
49,
10503,
62,
2257,
44,
11251,
62,
25216,
2099,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
14804,
9936,
62,
49,
10503,
62,
2257,
44,
11251,
62,
25216,
11902,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
9148,
11290,
50,
8,
2099,
1006,
284,
1168,
5064,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
50,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
271,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
220,
220,
422,
41876,
827,
8658,
844,
11,
198,
220,
220,
220,
220,
220,
220,
220,
284,
220,
220,
41876,
827,
8658,
844,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
271,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
270,
62,
9521,
41876,
49053,
9795,
43679,
3963,
1259,
62,
271,
62,
9521,
13315,
38144,
9936,
35374,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1416,
8937,
6015,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1416,
8937,
6015,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
8658,
62,
9521,
41876,
1259,
62,
270,
62,
9521,
13,
628,
220,
220,
220,
42865,
1306,
41876,
827,
8658,
844,
764,
198,
220,
220,
220,
42865,
1306,
17,
41876,
827,
8658,
844,
764,
198,
220,
220,
220,
42865,
7400,
62,
9521,
41876,
1259,
62,
270,
62,
9521,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6173,
32,
4462,
7397,
62,
9148,
11290,
50,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
502,
3784,
8658,
62,
9521,
796,
7400,
62,
9521,
13,
198,
220,
220,
220,
502,
3784,
89,
361,
62,
1416,
8937,
6015,
62,
27372,
93,
1416,
8937,
6015,
796,
629,
8937,
6015,
13,
198,
220,
220,
220,
502,
3784,
89,
361,
62,
1416,
8937,
6015,
62,
27372,
93,
9127,
796,
23848,
52,
5222,
1303,
7,
3268,
2043,
1312,
796,
657,
7473,
1627,
3268,
7400,
62,
9521,
39726,
1312,
796,
1312,
1343,
1627,
12,
1462,
532,
1627,
12,
6738,
1343,
352,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2251,
13,
628,
220,
220,
220,
42865,
25,
7400,
62,
9521,
41876,
1259,
62,
270,
62,
9521,
13,
628,
220,
220,
220,
16876,
2099,
3180,
3268,
2043,
12576,
5357,
336,
76,
429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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCX_ABAPGIT_2FA_DEL_FAILED definition
public
inheriting from ZCX_ABAPGIT_2FA_ERROR
final
create public .
public section.
methods CONSTRUCTOR
importing
!TEXTID like TEXTID optional
!PREVIOUS like PREVIOUS optional
!MV_TEXT type STRING optional .
protected section.
methods GET_DEFAULT_TEXT
redefinition .
private section.
ENDCLASS.
CLASS ZCX_ABAPGIT_2FA_DEL_FAILED IMPLEMENTATION.
method CONSTRUCTOR.
CALL METHOD SUPER->CONSTRUCTOR
EXPORTING
TEXTID = TEXTID
PREVIOUS = PREVIOUS
MV_TEXT = MV_TEXT
.
endmethod.
METHOD get_default_text.
rv_text = 'Deleting previous access tokens failed.' .
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
34,
55,
62,
6242,
2969,
38,
2043,
62,
17,
7708,
62,
35,
3698,
62,
7708,
4146,
1961,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
34,
55,
62,
6242,
2969,
38,
2043,
62,
17,
7708,
62,
24908,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
32541,
2389,
588,
40383,
2389,
11902,
198,
220,
220,
220,
220,
220,
5145,
46437,
12861,
20958,
588,
22814,
12861,
20958,
11902,
198,
220,
220,
220,
220,
220,
5145,
44,
53,
62,
32541,
2099,
19269,
2751,
11902,
764,
198,
24326,
2665,
13,
628,
220,
5050,
17151,
62,
7206,
38865,
62,
32541,
198,
220,
220,
220,
34087,
17750,
764,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
34,
55,
62,
6242,
2969,
38,
2043,
62,
17,
7708,
62,
35,
3698,
62,
7708,
4146,
1961,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
7102,
46126,
1581,
13,
198,
34,
7036,
337,
36252,
33088,
3784,
10943,
46126,
1581,
198,
6369,
15490,
2751,
198,
32541,
2389,
796,
40383,
2389,
198,
46437,
12861,
20958,
796,
22814,
12861,
20958,
198,
44,
53,
62,
32541,
796,
32947,
62,
32541,
198,
13,
198,
220,
886,
24396,
13,
628,
198,
220,
337,
36252,
651,
62,
12286,
62,
5239,
13,
198,
220,
220,
220,
374,
85,
62,
5239,
796,
705,
5005,
293,
889,
2180,
1895,
16326,
4054,
2637,
764,
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
] |
"! Statically accessible logger
"! <p>
"! This is a static facade interface for <em>ZIF_ALOG_LOGGER</em> and <em>ZIF_ALOG_MSG_LOGGER</em>.
"! The logger used is specified by using <em>ZCL_ALOG_STATIC_CONFIGURATION</em>.
"! </p>
CLASS zcl_alog_static_logger DEFINITION
PUBLIC
FINAL
CREATE PUBLIC.
PUBLIC SECTION.
CLASS-METHODS:
"! Get a (prefixed) logger instance
"! @parameter iv_prefix | Prefix to use (e. g. class name)
"! @parameter ri_logger | Logger instance
get_logger IMPORTING iv_prefix TYPE csequence OPTIONAL
RETURNING VALUE(ri_logger) TYPE REF TO zif_alog_logger,
"! Get a (prefixed) logger instance
"! @parameter ig_any | Variable whose relative type name will be the logger prefix
"! @parameter ri_logger | Logger instance
get_logger_for_any IMPORTING ig_any TYPE any
RETURNING VALUE(ri_logger) TYPE REF TO zif_alog_logger,
"! Get a (prefixed) message logger instance
"! @parameter iv_prefix | Prefix to use (e. g. class name)
"! @parameter ri_msg_logger | Logger instance
get_msg_logger IMPORTING iv_prefix TYPE csequence OPTIONAL
RETURNING VALUE(ri_msg_logger) TYPE REF TO zif_alog_msg_logger,
"! Get a prefixed logger for a variable
"! @parameter ig_any | Variable whose relative type name will be the logger prefix
"! @parameter ri_msg_logger | Message logger instance
get_msg_logger_for_any IMPORTING ig_any TYPE any
RETURNING VALUE(ri_msg_logger) TYPE REF TO zif_alog_msg_logger,
"! Log an informational message
"! @parameter iv_text | Message text
"! @raising zcx_alog_logging_failed | Logging failed
info IMPORTING iv_text TYPE csequence
RAISING zcx_alog_logging_failed,
"! Log a warning
"! @parameter iv_text | Message text
"! @raising zcx_alog_logging_failed | Logging failed
warning IMPORTING iv_text TYPE csequence
RAISING zcx_alog_logging_failed,
"! Log an error
"! @parameter iv_text | Message text
"! @raising zcx_alog_logging_failed | Logging failed
error IMPORTING iv_text TYPE csequence
RAISING zcx_alog_logging_failed,
"! Log a debug message
"! @parameter iv_text | Message text
"! @raising zcx_alog_logging_failed | Logging failed
debug IMPORTING iv_text TYPE csequence
RAISING zcx_alog_logging_failed,
"! Log a message of the specified type
"! @parameter iv_text | Message text
"! @parameter io_type | Type of the message
"! @raising zcx_alog_logging_failed | Logging failed
"! @raising zcx_alog_unsupported_msgty | Unsupported message type
"! @raising zcx_alog_argument_null | io_type cannot be null
entry IMPORTING iv_text TYPE csequence
io_type TYPE REF TO zcl_alog_entry_type
RAISING zcx_alog_logging_failed
zcx_alog_unsupported_msgty
zcx_alog_argument_null,
"! Log an exception (as an error)
"! @parameter ix_ex | The exception to log
"! @raising zcx_alog_logging_failed | Logging failed
"! @raising zcx_alog_argument_null | ix_ex cannot be null
exception IMPORTING ix_ex TYPE REF TO cx_root
RAISING zcx_alog_logging_failed
zcx_alog_argument_null,
"! Log an informational message using message classes
"! @parameter iv_msgid | Message id
"! @parameter iv_msgno | Message number
"! @parameter iv_msgv1 | Message variable 1
"! @parameter iv_msgv2 | Message variable 2
"! @parameter iv_msgv3 | Message variable 3
"! @parameter iv_msgv4 | Message variable 4
"! @raising zcx_alog_logging_failed | Logging failed
"! @raising zcx_alog_unsupported_operation | Configured logger does not support message
"! classes
info_msg IMPORTING VALUE(iv_msgid) TYPE syst_msgid DEFAULT sy-msgid
VALUE(iv_msgno) TYPE syst_msgno DEFAULT sy-msgno
VALUE(iv_msgv1) TYPE syst_msgv DEFAULT sy-msgv1
VALUE(iv_msgv2) TYPE syst_msgv DEFAULT sy-msgv2
VALUE(iv_msgv3) TYPE syst_msgv DEFAULT sy-msgv3
VALUE(iv_msgv4) TYPE syst_msgv DEFAULT sy-msgv4
RAISING zcx_alog_logging_failed
zcx_alog_unsupported_operation,
"! Log a warning using message classes
"! @parameter iv_msgid | Message id
"! @parameter iv_msgno | Message number
"! @parameter iv_msgv1 | Message variable 1
"! @parameter iv_msgv2 | Message variable 2
"! @parameter iv_msgv3 | Message variable 3
"! @parameter iv_msgv4 | Message variable 4
"! @raising zcx_alog_logging_failed | Logging failed
"! @raising zcx_alog_unsupported_operation | Configured logger does not support message
"! classes
warning_msg IMPORTING VALUE(iv_msgid) TYPE syst_msgid DEFAULT sy-msgid
VALUE(iv_msgno) TYPE syst_msgno DEFAULT sy-msgno
VALUE(iv_msgv1) TYPE syst_msgv DEFAULT sy-msgv1
VALUE(iv_msgv2) TYPE syst_msgv DEFAULT sy-msgv2
VALUE(iv_msgv3) TYPE syst_msgv DEFAULT sy-msgv3
VALUE(iv_msgv4) TYPE syst_msgv DEFAULT sy-msgv4
RAISING zcx_alog_logging_failed
zcx_alog_unsupported_operation,
"! Log an error using message classes
"! @parameter iv_msgid | Message id
"! @parameter iv_msgno | Message number
"! @parameter iv_msgv1 | Message variable 1
"! @parameter iv_msgv2 | Message variable 2
"! @parameter iv_msgv3 | Message variable 3
"! @parameter iv_msgv4 | Message variable 4
"! @raising zcx_alog_logging_failed | Logging failed
"! @raising zcx_alog_unsupported_operation | Configured logger does not support message
"! classes
error_msg IMPORTING VALUE(iv_msgid) TYPE syst_msgid DEFAULT sy-msgid
VALUE(iv_msgno) TYPE syst_msgno DEFAULT sy-msgno
VALUE(iv_msgv1) TYPE syst_msgv DEFAULT sy-msgv1
VALUE(iv_msgv2) TYPE syst_msgv DEFAULT sy-msgv2
VALUE(iv_msgv3) TYPE syst_msgv DEFAULT sy-msgv3
VALUE(iv_msgv4) TYPE syst_msgv DEFAULT sy-msgv4
RAISING zcx_alog_logging_failed
zcx_alog_unsupported_operation,
"! Log a debug message using message classes
"! @parameter iv_msgid | Message id
"! @parameter iv_msgno | Message number
"! @parameter iv_msgv1 | Message variable 1
"! @parameter iv_msgv2 | Message variable 2
"! @parameter iv_msgv3 | Message variable 3
"! @parameter iv_msgv4 | Message variable 4
"! @raising zcx_alog_logging_failed | Logging failed
"! @raising zcx_alog_unsupported_operation | Configured logger does not support message
"! classes
debug_msg IMPORTING VALUE(iv_msgid) TYPE syst_msgid DEFAULT sy-msgid
VALUE(iv_msgno) TYPE syst_msgno DEFAULT sy-msgno
VALUE(iv_msgv1) TYPE syst_msgv DEFAULT sy-msgv1
VALUE(iv_msgv2) TYPE syst_msgv DEFAULT sy-msgv2
VALUE(iv_msgv3) TYPE syst_msgv DEFAULT sy-msgv3
VALUE(iv_msgv4) TYPE syst_msgv DEFAULT sy-msgv4
RAISING zcx_alog_logging_failed
zcx_alog_unsupported_operation,
"! Log a message of the specified type using message classes
"! @parameter iv_msgid | Message id
"! @parameter iv_msgno | Message number
"! @parameter iv_msgty | Message type
"! @parameter iv_msgv1 | Message variable 1
"! @parameter iv_msgv2 | Message variable 2
"! @parameter iv_msgv3 | Message variable 3
"! @parameter iv_msgv4 | Message variable 4
"! @raising zcx_alog_logging_failed | Logging failed
"! @raising zcx_alog_unsupported_msgty | Message type unsupported
"! @raising zcx_alog_unsupported_operation | Configured logger does not support message
"! classes
entry_msg IMPORTING VALUE(iv_msgid) TYPE syst_msgid DEFAULT sy-msgid
VALUE(iv_msgno) TYPE syst_msgno DEFAULT sy-msgno
VALUE(iv_msgty) TYPE syst_msgty DEFAULT sy-msgty
VALUE(iv_msgv1) TYPE syst_msgv DEFAULT sy-msgv1
VALUE(iv_msgv2) TYPE syst_msgv DEFAULT sy-msgv2
VALUE(iv_msgv3) TYPE syst_msgv DEFAULT sy-msgv3
VALUE(iv_msgv4) TYPE syst_msgv DEFAULT sy-msgv4
RAISING zcx_alog_logging_failed
zcx_alog_unsupported_msgty
zcx_alog_unsupported_operation.
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-METHODS:
get_logger_internal RETURNING VALUE(ri_logger) TYPE REF TO zif_alog_logger,
get_msg_logger_internal RETURNING VALUE(ri_msg_logger) TYPE REF TO zif_alog_msg_logger
RAISING zcx_alog_unsupported_operation,
resolve_type_name IMPORTING ig_any TYPE any
RETURNING VALUE(rv_type) TYPE string.
ENDCLASS.
CLASS zcl_alog_static_logger IMPLEMENTATION.
METHOD error.
entry( iv_text = iv_text io_type = zcl_alog_entry_type=>go_error ).
ENDMETHOD.
METHOD debug.
entry( iv_text = iv_text io_type = zcl_alog_entry_type=>go_debug ).
ENDMETHOD.
METHOD exception.
entry( iv_text = ix_ex->get_text( ) io_type = zcl_alog_entry_type=>go_error ).
ENDMETHOD.
METHOD info.
entry( iv_text = iv_text io_type = zcl_alog_entry_type=>go_info ).
ENDMETHOD.
METHOD warning.
entry( iv_text = iv_text io_type = zcl_alog_entry_type=>go_warning ).
ENDMETHOD.
METHOD entry.
get_logger_internal( )->entry( iv_text = iv_text io_type = io_type ).
ENDMETHOD.
METHOD entry_msg.
get_msg_logger_internal( )->entry_msg( iv_msgid = iv_msgid
iv_msgno = iv_msgno
iv_msgty = iv_msgty
iv_msgv1 = iv_msgv1
iv_msgv2 = iv_msgv2
iv_msgv3 = iv_msgv3
iv_msgv4 = iv_msgv4 ).
ENDMETHOD.
METHOD debug_msg.
entry_msg( iv_msgid = iv_msgid
iv_msgno = iv_msgno
iv_msgty = 'I'
iv_msgv1 = iv_msgv1
iv_msgv2 = iv_msgv2
iv_msgv3 = iv_msgv3
iv_msgv4 = iv_msgv4 ).
ENDMETHOD.
METHOD error_msg.
entry_msg( iv_msgid = iv_msgid
iv_msgno = iv_msgno
iv_msgty = 'E'
iv_msgv1 = iv_msgv1
iv_msgv2 = iv_msgv2
iv_msgv3 = iv_msgv3
iv_msgv4 = iv_msgv4 ).
ENDMETHOD.
METHOD info_msg.
entry_msg( iv_msgid = iv_msgid
iv_msgno = iv_msgno
iv_msgty = 'I'
iv_msgv1 = iv_msgv1
iv_msgv2 = iv_msgv2
iv_msgv3 = iv_msgv3
iv_msgv4 = iv_msgv4 ).
ENDMETHOD.
METHOD warning_msg.
entry_msg( iv_msgid = iv_msgid
iv_msgno = iv_msgno
iv_msgty = 'W'
iv_msgv1 = iv_msgv1
iv_msgv2 = iv_msgv2
iv_msgv3 = iv_msgv3
iv_msgv4 = iv_msgv4 ).
ENDMETHOD.
METHOD get_msg_logger_internal.
DATA(li_logger) = get_logger_internal( ).
IF zcl_alog_static_configuration=>get_active_configuration( )->mv_supports_t100_msg = abap_true.
ri_msg_logger ?= li_logger.
ELSE.
RAISE EXCEPTION TYPE zcx_alog_unsupported_operation
EXPORTING
iv_operation = 'message logging' ##NO_TEXT.
ENDIF.
ENDMETHOD.
METHOD get_logger_internal.
ri_logger = zcl_alog_static_configuration=>get_active_configuration( )->mi_logger.
ENDMETHOD.
METHOD get_logger.
ri_logger = NEW lcl_logger_proxy( iv_prefix ).
ENDMETHOD.
METHOD get_logger_for_any.
ri_logger = get_logger( resolve_type_name( ig_any ) ).
ENDMETHOD.
METHOD get_msg_logger.
ri_msg_logger = NEW lcl_logger_proxy( iv_prefix ).
ENDMETHOD.
METHOD get_msg_logger_for_any.
ri_msg_logger = get_msg_logger( resolve_type_name( ig_any ) ).
ENDMETHOD.
METHOD resolve_type_name.
DATA(lo_descr) = cl_abap_typedescr=>describe_by_data( ig_any ).
TRY.
rv_type = CAST cl_abap_refdescr( lo_descr )->get_referenced_type( )->get_relative_name( ).
CATCH cx_sy_move_cast_error.
rv_type = lo_descr->get_relative_name( ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
40484,
520,
4142,
9857,
49706,
198,
40484,
1279,
79,
29,
198,
40484,
770,
318,
257,
9037,
43562,
7071,
329,
1279,
368,
29,
57,
5064,
62,
1847,
7730,
62,
25294,
30373,
3556,
368,
29,
290,
1279,
368,
29,
57,
5064,
62,
1847,
7730,
62,
5653,
38,
62,
25294,
30373,
3556,
368,
28401,
198,
40484,
383,
49706,
973,
318,
7368,
416,
1262,
1279,
368,
29,
57,
5097,
62,
1847,
7730,
62,
35744,
2149,
62,
10943,
16254,
4261,
6234,
3556,
368,
28401,
198,
40484,
7359,
79,
29,
198,
31631,
1976,
565,
62,
11794,
62,
12708,
62,
6404,
1362,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
3497,
257,
357,
3866,
34021,
8,
49706,
4554,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
40290,
930,
3771,
13049,
284,
779,
357,
68,
13,
308,
13,
1398,
1438,
8,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
72,
62,
6404,
1362,
930,
5972,
1362,
4554,
198,
220,
220,
220,
220,
220,
651,
62,
6404,
1362,
30023,
9863,
2751,
21628,
62,
40290,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
43167,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
6404,
1362,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
11794,
62,
6404,
1362,
11,
198,
220,
220,
220,
220,
220,
366,
0,
3497,
257,
357,
3866,
34021,
8,
49706,
4554,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
45329,
62,
1092,
930,
35748,
3025,
3585,
2099,
1438,
481,
307,
262,
49706,
21231,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
72,
62,
6404,
1362,
930,
5972,
1362,
4554,
198,
220,
220,
220,
220,
220,
651,
62,
6404,
1362,
62,
1640,
62,
1092,
30023,
9863,
2751,
45329,
62,
1092,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
6404,
1362,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
11794,
62,
6404,
1362,
11,
198,
220,
220,
220,
220,
220,
366,
0,
3497,
257,
357,
3866,
34021,
8,
3275,
49706,
4554,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
40290,
930,
3771,
13049,
284,
779,
357,
68,
13,
308,
13,
1398,
1438,
8,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
72,
62,
19662,
62,
6404,
1362,
930,
5972,
1362,
4554,
198,
220,
220,
220,
220,
220,
651,
62,
19662,
62,
6404,
1362,
30023,
9863,
2751,
21628,
62,
40290,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
19662,
62,
6404,
1362,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
11794,
62,
19662,
62,
6404,
1362,
11,
198,
220,
220,
220,
220,
220,
366,
0,
3497,
257,
7694,
2966,
49706,
329,
257,
7885,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
45329,
62,
1092,
930,
35748,
3025,
3585,
2099,
1438,
481,
307,
262,
49706,
21231,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
72,
62,
19662,
62,
6404,
1362,
930,
16000,
49706,
4554,
198,
220,
220,
220,
220,
220,
651,
62,
19662,
62,
6404,
1362,
62,
1640,
62,
1092,
30023,
9863,
2751,
45329,
62,
1092,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
19662,
62,
6404,
1362,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
11794,
62,
19662,
62,
6404,
1362,
11,
198,
220,
220,
220,
220,
220,
366,
0,
5972,
281,
21524,
3275,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
5239,
930,
16000,
2420,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
32741,
1976,
66,
87,
62,
11794,
62,
6404,
2667,
62,
47904,
930,
5972,
2667,
4054,
198,
220,
220,
220,
220,
220,
7508,
30023,
9863,
2751,
21628,
62,
5239,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
11794,
62,
6404,
2667,
62,
47904,
11,
198,
220,
220,
220,
220,
220,
366,
0,
5972,
257,
6509,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
5239,
930,
16000,
2420,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
32741,
1976,
66,
87,
62,
11794,
62,
6404,
2667,
62,
47904,
930,
5972,
2667,
4054,
198,
220,
220,
220,
220,
220,
6509,
30023,
9863,
2751,
21628,
62,
5239,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
11794,
62,
6404,
2667,
62,
47904,
11,
198,
220,
220,
220,
220,
220,
366,
0,
5972,
281,
4049,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
5239,
930,
16000,
2420,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
32741,
1976,
66,
87,
62,
11794,
62,
6404,
2667,
62,
47904,
930,
5972,
2667,
4054,
198,
220,
220,
220,
220,
220,
4049,
30023,
9863,
2751,
21628,
62,
5239,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
11794,
62,
6404,
2667,
62,
47904,
11,
198,
220,
220,
220,
220,
220,
366,
0,
5972,
257,
14257,
3275,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
5239,
930,
16000,
2420,
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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A(lo_salv)
CHANGING
t_table = it_list ).
ct_fcat = cl_salv_controller_metadata=>get_lvc_fieldcatalog(
r_columns = lo_salv->get_columns( )
r_aggregations = lo_salv->get_aggregations( ) ).
LOOP AT ct_fcat ASSIGNING FIELD-SYMBOL(<ls_fcat>).
<ls_fcat>-no_sign = abap_false.
ENDLOOP.
ENDFORM. | [
21389,
1382,
62,
69,
9246,
1294,
2751,
340,
62,
4868,
41876,
15529,
43679,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
269,
83,
62,
69,
9246,
41876,
300,
28435,
62,
83,
62,
69,
9246,
13,
198,
220,
537,
62,
21680,
85,
62,
11487,
14804,
69,
9548,
7,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
374,
62,
21680,
85,
62,
11487,
796,
42865,
7,
5439,
62,
21680,
85,
8,
198,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
256,
62,
11487,
220,
220,
220,
220,
220,
796,
340,
62,
4868,
6739,
628,
220,
269,
83,
62,
69,
9246,
796,
537,
62,
21680,
85,
62,
36500,
62,
38993,
14804,
1136,
62,
6780,
66,
62,
3245,
9246,
11794,
7,
198,
220,
220,
220,
220,
220,
220,
220,
374,
62,
28665,
82,
220,
220,
220,
220,
220,
796,
2376,
62,
21680,
85,
3784,
1136,
62,
28665,
82,
7,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
374,
62,
9460,
2301,
602,
796,
2376,
62,
21680,
85,
3784,
1136,
62,
9460,
2301,
602,
7,
1267,
6739,
628,
220,
17579,
3185,
5161,
269,
83,
62,
69,
9246,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
7278,
62,
69,
9246,
29,
737,
198,
220,
220,
220,
1279,
7278,
62,
69,
9246,
29,
12,
3919,
62,
12683,
796,
450,
499,
62,
9562,
13,
198,
220,
23578,
21982,
3185,
13,
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
] |
class ZCL_EXCEL_READER_2007 definition
public
create public .
public section.
*"* public components of class ZCL_EXCEL_READER_2007
*"* do not include other source files here!!!
type-pools IXML .
interfaces ZIF_EXCEL_READER .
class-methods FILL_STRUCT_FROM_ATTRIBUTES
importing
!IP_ELEMENT type ref to IF_IXML_ELEMENT
changing
!CP_STRUCTURE type ANY .
protected section.
types:
*"* protected components of class ZCL_EXCEL_READER_2007
*"* do not include other source files here!!!
BEGIN OF t_relationship,
id TYPE string,
type TYPE string,
target TYPE string,
targetmode TYPE string,
worksheet TYPE REF TO zcl_excel_worksheet,
sheetid TYPE string, "ins #235 - repeat rows/cols - needed to identify correct sheet
END OF t_relationship .
types:
BEGIN OF t_fileversion,
appname TYPE string,
lastedited TYPE string,
lowestedited TYPE string,
rupbuild TYPE string,
codename TYPE string,
END OF t_fileversion .
types:
BEGIN OF t_sheet,
name TYPE string,
sheetid TYPE string,
id TYPE string,
state TYPE string,
END OF t_sheet .
types:
BEGIN OF t_workbookpr,
codename TYPE string,
defaultthemeversion TYPE string,
END OF t_workbookpr .
types:
BEGIN OF t_sheetpr,
codename TYPE string,
END OF t_sheetpr .
types:
BEGIN OF t_range,
name TYPE string,
hidden TYPE string, "inserted with issue #235 because Autofilters didn't passthrough
localsheetid TYPE string, " issue #163
END OF t_range .
types:
t_fills TYPE STANDARD TABLE OF REF TO zcl_excel_style_fill WITH NON-UNIQUE DEFAULT KEY .
types:
t_borders TYPE STANDARD TABLE OF REF TO zcl_excel_style_borders WITH NON-UNIQUE DEFAULT KEY .
types:
t_fonts TYPE STANDARD TABLE OF REF TO zcl_excel_style_font WITH NON-UNIQUE DEFAULT KEY .
types:
t_style_refs TYPE STANDARD TABLE OF REF TO zcl_excel_style WITH NON-UNIQUE DEFAULT KEY .
types:
BEGIN OF t_color,
indexed TYPE string,
rgb TYPE string,
theme TYPE string,
tint TYPE string,
END OF t_color .
types:
BEGIN OF t_rel_drawing,
id TYPE string,
content TYPE xstring,
file_ext TYPE string,
content_xml TYPE REF TO if_ixml_document,
END OF t_rel_drawing .
types:
t_rel_drawings TYPE STANDARD TABLE OF t_rel_drawing WITH NON-UNIQUE DEFAULT KEY .
types:
BEGIN OF gts_external_hyperlink,
id TYPE string,
target TYPE string,
END OF gts_external_hyperlink .
types:
gtt_external_hyperlinks TYPE HASHED TABLE OF gts_external_hyperlink WITH UNIQUE KEY id .
types:
BEGIN OF ty_ref_formulae,
sheet TYPE REF TO zcl_excel_worksheet,
row TYPE i,
column TYPE i,
si TYPE i,
ref TYPE string,
formula TYPE string,
END OF ty_ref_formulae .
types:
tyt_ref_formulae TYPE HASHED TABLE OF ty_ref_formulae WITH UNIQUE KEY sheet row column .
data SHARED_STRINGS type STRINGTAB .
data STYLES type T_STYLE_REFS .
data MT_REF_FORMULAE type TYT_REF_FORMULAE .
data MT_DXF_STYLES type ZEXCEL_T_STYLES_COND_MAPPING .
methods FILL_ROW_OUTLINES
importing
!IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET
raising
ZCX_EXCEL .
methods GET_FROM_ZIP_ARCHIVE
importing
!I_FILENAME type STRING
returning
value(R_CONTENT) type XSTRING
raising
ZCX_EXCEL .
methods GET_IXML_FROM_ZIP_ARCHIVE
importing
!I_FILENAME type STRING
!IS_NORMALIZING type abap_bool default 'X'
returning
value(R_IXML) type ref to IF_IXML_DOCUMENT
raising
ZCX_EXCEL .
methods LOAD_DRAWING_ANCHOR
importing
!IO_ANCHOR_ELEMENT type ref to IF_IXML_ELEMENT
!IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET
!IT_RELATED_DRAWINGS type T_REL_DRAWINGS .
methods LOAD_SHARED_STRINGS
importing
!IP_PATH type STRING
raising
ZCX_EXCEL .
methods LOAD_STYLES
importing
!IP_PATH type STRING
!IP_EXCEL type ref to ZCL_EXCEL
raising
ZCX_EXCEL .
methods LOAD_DXF_STYLES
importing
!IV_PATH type STRING
!IO_EXCEL type ref to ZCL_EXCEL
raising
ZCX_EXCEL .
methods LOAD_STYLE_BORDERS
importing
!IP_XML type ref to IF_IXML_DOCUMENT
returning
value(EP_BORDERS) type T_BORDERS .
methods LOAD_STYLE_FILLS
importing
!IP_XML type ref to IF_IXML_DOCUMENT
returning
value(EP_FILLS) type T_FILLS .
methods LOAD_STYLE_FONTS
importing
!IP_XML type ref to IF_IXML_DOCUMENT
returning
value(EP_FONTS) type T_FONTS .
methods LOAD_STYLE_NUM_FORMATS
importing
!IP_XML type ref to IF_IXML_DOCUMENT
returning
value(EP_NUM_FORMATS) type ZCL_EXCEL_STYLE_NUMBER_FORMAT=>T_NUM_FORMATS .
methods LOAD_WORKBOOK
importing
!IV_WORKBOOK_FULL_FILENAME type STRING
!IO_EXCEL type ref to ZCL_EXCEL
raising
ZCX_EXCEL .
methods LOAD_WORKSHEET
importing
!IP_PATH type STRING
!IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET
raising
ZCX_EXCEL .
methods LOAD_WORKSHEET_COND_FORMAT
importing
!IO_IXML_WORKSHEET type ref to IF_IXML_DOCUMENT
!IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET
raising
ZCX_EXCEL .
methods LOAD_WORKSHEET_COND_FORMAT_AA
importing
!IO_IXML_RULE type ref to IF_IXML_ELEMENT
!IO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND.
methods LOAD_WORKSHEET_COND_FORMAT_CI
importing
!IO_IXML_RULE type ref to IF_IXML_ELEMENT
!IO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND .
methods LOAD_WORKSHEET_COND_FORMAT_CS
importing
!IO_IXML_RULE type ref to IF_IXML_ELEMENT
!IO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND .
methods LOAD_WORKSHEET_COND_FORMAT_EX
importing
!IO_IXML_RULE type ref to IF_IXML_ELEMENT
!IO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND .
methods LOAD_WORKSHEET_COND_FORMAT_IS
importing
!IO_IXML_RULE type ref to IF_IXML_ELEMENT
!IO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND .
methods LOAD_WORKSHEET_COND_FORMAT_DB
importing
!IO_IXML_RULE type ref to IF_IXML_ELEMENT
!IO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND .
methods LOAD_WORKSHEET_COND_FORMAT_T10
importing
!IO_IXML_RULE type ref to IF_IXML_ELEMENT
!IO_STYLE_COND type ref to ZCL_EXCEL_STYLE_COND .
methods LOAD_WORKSHEET_DRAWING
importing
!IP_PATH type STRING
!IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET
raising
ZCX_EXCEL .
methods LOAD_WORKSHEET_HYPERLINKS
importing
!IO_IXML_WORKSHEET type ref to IF_IXML_DOCUMENT
!IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET
!IT_EXTERNAL_HYPERLINKS type GTT_EXTERNAL_HYPERLINKS
raising
ZCX_EXCEL .
methods LOAD_WORKSHEET_PAGEBREAKS
importing
!IO_IXML_WORKSHEET type ref to IF_IXML_DOCUMENT
!IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET
raising
ZCX_EXCEL .
methods LOAD_WORKSHEET_PAGEMARGINS
importing
!IO_IXML_WORKSHEET type ref to IF_IXML_DOCUMENT
!IO_WORKSHEET type ref to ZCL_EXCEL_WORKSHEET
raising
ZCX_EXCEL .
class-methods RESOLVE_PATH
importing
!IP_PATH type STRING
returning
value(RP_RESULT) type STRING .
methods RESOLVE_REFERENCED_FORMULAE .
methods GET_DXF_STYLE_GUID
importing
!IO_IXML_DXF type ref to IF_IXML_ELEMENT
!IO_EXCEL type ref to ZCL_EXCEL
returning
value(RV_STYLE_GUID) type ZEXCEL_CELL_STYLE .
methods LOAD_THEME
importing
value(IV_PATH) type STRING
!IP_EXCEL type ref to ZCL_EXCEL .
private section.
data ZIP type ref to LCL_ZIP_ARCHIVE .
methods CREATE_ZIP_ARCHIVE
importing
!I_XLSX_BINARY type XSTRING
!I_USE_ALTERNATE_ZIP type SEOCLSNAME optional
returning
value(E_ZIP) type ref to LCL_ZIP_ARCHIVE
raising
ZCX_EXCEL .
methods READ_FROM_APPLSERVER
importing
!I_FILENAME type CSEQUENCE
returning
value(R_EXCEL_DATA) type XSTRING
raising
ZCX_EXCEL.
methods READ_FROM_LOCAL_FILE
importing
!I_FILENAME type CSEQUENCE
returning
value(R_EXCEL_DATA) type XSTRING
raising
ZCX_EXCEL .
ENDCLASS.
CLASS ZCL_EXCEL_READER_2007 IMPLEMENTATION.
METHOD create_zip_archive.
CASE i_use_alternate_zip.
WHEN space.
e_zip = lcl_abap_zip_archive=>create( i_xlsx_binary ).
WHEN OTHERS.
e_zip = lcl_alternate_zip_archive=>create( i_data = i_xlsx_binary
i_alternate_zip_class = i_use_alternate_zip ).
ENDCASE.
ENDMETHOD.
METHOD fill_row_outlines.
TYPES: BEGIN OF lts_row_data,
row TYPE i,
outline_level TYPE i,
END OF lts_row_data,
ltt_row_data TYPE SORTED TABLE OF lts_row_data WITH UNIQUE KEY row.
DATA: lt_row_data TYPE ltt_row_data,
ls_row_data LIKE LINE OF lt_row_data,
lt_collapse_rows TYPE HASHED TABLE OF i WITH UNIQUE KEY table_line,
lv_collapsed TYPE abap_bool,
lv_outline_level TYPE i,
lv_next_consecutive_row TYPE i,
lt_outline_rows TYPE zcl_excel_worksheet=>mty_ts_outlines_row,
ls_outline_row LIKE LINE OF lt_outline_rows,
lo_row TYPE REF TO zcl_excel_row,
lo_row_iterator TYPE REF TO cl_object_collection_iterator,
lv_row_offset TYPE i,
lv_row_collapse_flag TYPE i.
FIELD-SYMBOLS: <ls_row_data> LIKE LINE OF lt_row_data.
* First collect information about outlines ( outline leven and collapsed state )
lo_row_iterator = io_worksheet->get_rows_iterator( ).
WHILE lo_row_iterator->has_next( ) = abap_true.
lo_row ?= lo_row_iterator->get_next( ).
ls_row_data-row = lo_row->get_row_index( ).
ls_row_data-outline_level = lo_row->get_outline_level( ).
IF ls_row_data-outline_level IS NOT INITIAL.
INSERT ls_row_data INTO TABLE lt_row_data.
ENDIF.
lv_collapsed = lo_row->get_collapsed( ).
IF lv_collapsed = abap_true.
INSERT lo_row->get_row_index( ) INTO TABLE lt_collapse_rows.
ENDIF.
ENDWHILE.
* Now parse this information - we need consecutive rows - any gap will create a new outline
DO 7 TIMES. " max number of outlines allowed
lv_outline_level = sy-index.
CLEAR lv_next_consecutive_row.
CLEAR ls_outline_row.
LOOP AT lt_row_data ASSIGNING <ls_row_data> WHERE outline_level >= lv_outline_level.
IF lv_next_consecutive_row <> <ls_row_data>-row " A gap --> close all open outlines
AND lv_next_consecutive_row IS NOT INITIAL. " First time in loop.
INSERT ls_outline_row INTO TABLE lt_outline_rows.
CLEAR: ls_outline_row.
ENDIF.
IF ls_outline_row-row_from IS INITIAL.
ls_outline_row-row_from = <ls_row_data>-row.
ENDIF.
ls_outline_row-row_to = <ls_row_data>-row.
lv_next_consecutive_row = <ls_row_data>-row + 1.
ENDLOOP.
IF ls_outline_row-row_from IS NOT INITIAL.
INSERT ls_outline_row INTO TABLE lt_outline_rows.
ENDIF.
ENDDO.
* lt_outline_rows holds all outline information
* we now need to determine whether the outline is collapsed or not
LOOP AT lt_outline_rows INTO ls_outline_row.
IF io_worksheet->zif_excel_sheet_properties~summarybelow = zif_excel_sheet_properties=>c_below_off.
lv_row_collapse_flag = ls_outline_row-row_from - 1.
ELSE.
lv_row_collapse_flag = ls_outline_row-row_to + 1.
ENDIF.
READ TABLE lt_collapse_rows TRANSPORTING NO FIELDS WITH TABLE KEY table_line = lv_row_collapse_flag.
IF sy-subrc = 0.
ls_outline_row-collapsed = abap_true.
ENDIF.
io_worksheet->set_row_outline( iv_row_from = ls_outline_row-row_from
iv_row_to = ls_outline_row-row_to
iv_collapsed = ls_outline_row-collapsed ).
ENDLOOP.
* Finally purge outline information ( collapsed state, outline leve) from row_dimensions, since we want to keep these in the outline-table
lo_row_iterator = io_worksheet->get_rows_iterator( ).
WHILE lo_row_iterator->has_next( ) = abap_true.
lo_row ?= lo_row_iterator->get_next( ).
lo_row->set_outline_level( 0 ).
lo_row->set_collapsed( abap_false ).
ENDWHILE.
ENDMETHOD.
method fill_struct_from_attributes.
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-07
* - ...
* changes: renaming variables to naming conventions
* aligning code
* adding comments to explain what we are trying to achieve
*--------------------------------------------------------------------*
data: lv_name type string,
lo_attributes type ref to if_ixml_named_node_map,
lo_attribute type ref to if_ixml_attribute,
lo_iterator type ref to if_ixml_node_iterator.
field-symbols: <component> type any.
*--------------------------------------------------------------------*
* The values of named attributes of a tag are being read and moved into corresponding
* fields of given structure
* Behaves like move-corresonding tag to structure
* Example:
* <Relationship Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Id="rId3"/>
* Here the attributes are Target, Type and Id. Thus if the passed
* structure has fieldnames Id and Target these would be filled with
* "rId3" and "docProps/app.xml" respectively
*--------------------------------------------------------------------*
clear cp_structure.
lo_attributes = ip_element->get_attributes( ).
lo_iterator = lo_attributes->create_iterator( ).
lo_attribute ?= lo_iterator->get_next( ).
while lo_attribute is bound.
lv_name = lo_attribute->get_name( ).
translate lv_name to upper case.
assign component lv_name of structure cp_structure to <component>.
if sy-subrc = 0.
<component> = lo_attribute->get_value( ).
endif.
lo_attribute ?= lo_iterator->get_next( ).
endwhile.
endmethod.
METHOD get_dxf_style_guid.
DATA: lo_ixml_dxf_children TYPE REF TO if_ixml_node_list,
lo_ixml_iterator_dxf_children TYPE REF TO if_ixml_node_iterator,
lo_ixml_dxf_child TYPE REF TO if_ixml_element,
lv_dxf_child_type TYPE string,
lo_ixml_element TYPE REF TO if_ixml_element,
lo_ixml_element2 TYPE REF TO if_ixml_element,
lv_val TYPE string.
DATA: ls_cstyle TYPE zexcel_s_cstyle_complete,
ls_cstylex TYPE zexcel_s_cstylex_complete.
lo_ixml_dxf_children = io_ixml_dxf->get_children( ).
lo_ixml_iterator_dxf_children = lo_ixml_dxf_children->create_iterator( ).
lo_ixml_dxf_child ?= lo_ixml_iterator_dxf_children->get_next( ).
WHILE lo_ixml_dxf_child IS BOUND.
lv_dxf_child_type = lo_ixml_dxf_child->get_name( ).
CASE lv_dxf_child_type.
WHEN 'font'.
*--------------------------------------------------------------------*
* italic
*--------------------------------------------------------------------*
lo_ixml_element = lo_ixml_dxf_child->find_from_name( 'i' ).
IF lo_ixml_element IS BOUND.
CLEAR lv_val.
lv_val = lo_ixml_element->get_attribute_ns( 'val' ).
IF lv_val <> '0'.
ls_cstyle-font-italic = 'X'.
ls_cstylex-font-italic = 'X'.
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
* bold
*--------------------------------------------------------------------*
lo_ixml_element = lo_ixml_dxf_child->find_from_name( 'b' ).
IF lo_ixml_element IS BOUND.
CLEAR lv_val.
lv_val = lo_ixml_element->get_attribute_ns( 'val' ).
IF lv_val <> '0'.
ls_cstyle-font-bold = 'X'.
ls_cstylex-font-bold = 'X'.
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
* strikethrough
*--------------------------------------------------------------------*
lo_ixml_element = lo_ixml_dxf_child->find_from_name( 'strike' ).
IF lo_ixml_element IS BOUND.
CLEAR lv_val.
lv_val = lo_ixml_element->get_attribute_ns( 'val' ).
IF lv_val <> '0'.
ls_cstyle-font-strikethrough = 'X'.
ls_cstylex-font-strikethrough = 'X'.
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
* color
*--------------------------------------------------------------------*
lo_ixml_element = lo_ixml_dxf_child->find_from_name( 'color' ).
IF lo_ixml_element IS BOUND.
CLEAR lv_val.
lv_val = lo_ixml_element->get_attribute_ns( 'rgb' ).
ls_cstyle-font-color-rgb = lv_val.
ls_cstylex-font-color-rgb = 'X'.
ENDIF.
WHEN 'fill'.
lo_ixml_element = lo_ixml_dxf_child->find_from_name( 'patternFill' ).
IF lo_ixml_element IS BOUND.
lo_ixml_element2 = lo_ixml_element->find_from_name( 'bgColor' ).
IF lo_ixml_element2 IS BOUND.
CLEAR lv_val.
lv_val = lo_ixml_element2->get_attribute_ns( 'rgb' ).
IF lv_val IS NOT INITIAL.
ls_cstyle-fill-filltype = zcl_excel_style_fill=>c_fill_solid.
ls_cstyle-fill-bgcolor-rgb = lv_val.
ls_cstylex-fill-filltype = 'X'.
ls_cstylex-fill-bgcolor-rgb = 'X'.
ENDIF.
CLEAR lv_val.
lv_val = lo_ixml_element2->get_attribute_ns( 'theme' ).
IF lv_val IS NOT INITIAL.
ls_cstyle-fill-filltype = zcl_excel_style_fill=>c_fill_solid.
ls_cstyle-fill-bgcolor-theme = lv_val.
ls_cstylex-fill-filltype = 'X'.
ls_cstylex-fill-bgcolor-theme = 'X'.
ENDIF.
CLEAR lv_val.
ENDIF.
ENDIF.
* 2do - borders into dxf-styles. Here and in writerclass
* WHEN 'border'.
* lo_ixml_element = lo_ixml_dxf_child->find_from_name( 'left' ).
* IF lo_ixml_element IS BOUND.
* CLEAR lv_val.
* lv_val = lo_ixml_element2->get_attribute_ns( 'style' ).
* IF lv_val IS NOT INITIAL.
* ls_cstyle-borders-left-border_style = lv_val.
* ls_cstylex-borders-left-border_style = 'X'.
* ENDIF.
* ENDIF.
ENDCASE.
lo_ixml_dxf_child ?= lo_ixml_iterator_dxf_children->get_next( ).
ENDWHILE.
rv_style_guid = io_excel->get_static_cellstyle_guid( ip_cstyle_complete = ls_cstyle
ip_cstylex_complete = ls_cstylex ).
ENDMETHOD.
METHOD get_from_zip_archive.
ASSERT zip IS BOUND. " zip object has to exist at this point
r_content = zip->read( i_filename ).
ENDMETHOD.
METHOD get_ixml_from_zip_archive.
DATA: lv_content TYPE xstring,
lo_ixml TYPE REF TO if_ixml,
lo_streamfactory TYPE REF TO if_ixml_stream_factory,
lo_istream TYPE REF TO if_ixml_istream,
lo_parser TYPE REF TO if_ixml_parser.
*--------------------------------------------------------------------*
* Load XML file from archive into an input stream,
* and parse that stream into an ixml object
*--------------------------------------------------------------------*
lv_content = me->get_from_zip_archive( i_filename ).
lo_ixml = cl_ixml=>create( ).
lo_streamfactory = lo_ixml->create_stream_factory( ).
lo_istream = lo_streamfactory->create_istream_xstring( lv_content ).
r_ixml = lo_ixml->create_document( ).
lo_parser = lo_ixml->create_parser( stream_factory = lo_streamfactory
istream = lo_istream
document = r_ixml ).
lo_parser->set_normalizing( is_normalizing ).
lo_parser->set_validating( mode = if_ixml_parser=>co_no_validation ).
lo_parser->parse( ).
ENDMETHOD.
METHOD load_drawing_anchor.
TYPES: BEGIN OF t_c_nv_pr,
name TYPE string,
id TYPE string,
END OF t_c_nv_pr.
TYPES: BEGIN OF t_blip,
cstate TYPE string,
embed TYPE string,
END OF t_blip.
TYPES: BEGIN OF t_chart,
id TYPE string,
END OF t_chart.
TYPES: BEGIN OF t_ext,
cx TYPE string,
cy TYPE string,
END OF t_ext.
CONSTANTS: lc_xml_attr_true TYPE string VALUE 'true',
lc_xml_attr_true_int TYPE string VALUE '1'.
CONSTANTS: lc_rel_chart TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart',
lc_rel_image TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image'.
DATA: lo_drawing TYPE REF TO zcl_excel_drawing,
node TYPE REF TO if_ixml_element,
node2 TYPE REF TO if_ixml_element,
node3 TYPE REF TO if_ixml_element,
node4 TYPE REF TO if_ixml_element,
ls_upper TYPE zexcel_drawing_location,
ls_lower TYPE zexcel_drawing_location,
ls_size TYPE zexcel_drawing_size,
ext TYPE t_ext,
lv_content TYPE xstring,
lv_relation_id TYPE string,
lv_title TYPE string,
cnvpr TYPE t_c_nv_pr,
blip TYPE t_blip,
chart TYPE t_chart,
drawing_type TYPE zexcel_drawing_type,
rel_drawing TYPE t_rel_drawing.
node ?= io_anchor_element->find_from_name( name = 'from' namespace = 'xdr' ).
CHECK node IS NOT INITIAL.
node2 ?= node->find_from_name( name = 'col' namespace = 'xdr' ).
ls_upper-col = node2->get_value( ).
node2 ?= node->find_from_name( name = 'row' namespace = 'xdr' ).
ls_upper-row = node2->get_value( ).
node2 ?= node->find_from_name( name = 'colOff' namespace = 'xdr' ).
ls_upper-col_offset = node2->get_value( ).
node2 ?= node->find_from_name( name = 'rowOff' namespace = 'xdr' ).
ls_upper-row_offset = node2->get_value( ).
node ?= io_anchor_element->find_from_name( name = 'ext' namespace = 'xdr' ).
IF node IS INITIAL.
CLEAR ls_size.
ELSE.
me->fill_struct_from_attributes( EXPORTING ip_element = node CHANGING cp_structure = ext ).
ls_size-width = ext-cx.
ls_size-height = ext-cy.
TRY.
ls_size-width = zcl_excel_drawing=>emu2pixel( ls_size-width ).
CATCH cx_root.
ENDTRY.
TRY.
ls_size-height = zcl_excel_drawing=>emu2pixel( ls_size-height ).
CATCH cx_root.
ENDTRY.
ENDIF.
node ?= io_anchor_element->find_from_name( name = 'to' namespace = 'xdr' ).
IF node IS INITIAL.
CLEAR ls_lower.
ELSE.
node2 ?= node->find_from_name( name = 'col' namespace = 'xdr' ).
ls_lower-col = node2->get_value( ).
node2 ?= node->find_from_name( name = 'row' namespace = 'xdr' ).
ls_lower-row = node2->get_value( ).
node2 ?= node->find_from_name( name = 'colOff' namespace = 'xdr' ).
ls_lower-col_offset = node2->get_value( ).
node2 ?= node->find_from_name( name = 'rowOff' namespace = 'xdr' ).
ls_lower-row_offset = node2->get_value( ).
ENDIF.
node ?= io_anchor_element->find_from_name( name = 'pic' namespace = 'xdr' ).
IF node IS NOT INITIAL.
node2 ?= node->find_from_name( name = 'nvPicPr' namespace = 'xdr' ).
CHECK node2 IS NOT INITIAL.
node3 ?= node2->find_from_name( name = 'cNvPr' namespace = 'xdr' ).
CHECK node3 IS NOT INITIAL.
me->fill_struct_from_attributes( EXPORTING ip_element = node3 CHANGING cp_structure = cnvpr ).
lv_title = cnvpr-name.
node2 ?= node->find_from_name( name = 'blipFill' namespace = 'xdr' ).
CHECK node2 IS NOT INITIAL.
node3 ?= node2->find_from_name( name = 'blip' namespace = 'a' ).
CHECK node3 IS NOT INITIAL.
me->fill_struct_from_attributes( EXPORTING ip_element = node3 CHANGING cp_structure = blip ).
lv_relation_id = blip-embed.
drawing_type = zcl_excel_drawing=>type_image.
ENDIF.
node ?= io_anchor_element->find_from_name( name = 'graphicFrame' namespace = 'xdr' ).
IF node IS NOT INITIAL.
node2 ?= node->find_from_name( name = 'nvGraphicFramePr' namespace = 'xdr' ).
CHECK node2 IS NOT INITIAL.
node3 ?= node2->find_from_name( name = 'cNvPr' namespace = 'xdr' ).
CHECK node3 IS NOT INITIAL.
me->fill_struct_from_attributes( EXPORTING ip_element = node3 CHANGING cp_structure = cnvpr ).
lv_title = cnvpr-name.
node2 ?= node->find_from_name( name = 'graphic' namespace = 'a' ).
CHECK node2 IS NOT INITIAL.
node3 ?= node2->find_from_name( name = 'graphicData' namespace = 'a' ).
CHECK node3 IS NOT INITIAL.
node4 ?= node2->find_from_name( name = 'chart' namespace = 'c' ).
CHECK node4 IS NOT INITIAL.
me->fill_struct_from_attributes( EXPORTING ip_element = node4 CHANGING cp_structure = chart ).
lv_relation_id = chart-id.
drawing_type = zcl_excel_drawing=>type_chart.
ENDIF.
lo_drawing = io_worksheet->excel->add_new_drawing(
ip_type = drawing_type
ip_title = lv_title ).
io_worksheet->add_drawing( lo_drawing ).
lo_drawing->set_position2(
EXPORTING
ip_from = ls_upper
ip_to = ls_lower ).
READ TABLE it_related_drawings INTO rel_drawing
WITH KEY id = lv_relation_id.
lo_drawing->set_media(
EXPORTING
ip_media = rel_drawing-content
ip_media_type = rel_drawing-file_ext
ip_width = ls_size-width
ip_height = ls_size-height ).
IF drawing_type = zcl_excel_drawing=>type_chart.
* Begin fix for Issue #551
DATA: lo_tmp_node_2 TYPE REF TO if_ixml_element.
lo_tmp_node_2 ?= rel_drawing-content_xml->find_from_name( name = 'pieChart' namespace = 'c' ).
if lo_tmp_node_2 is not initial.
lo_drawing->graph_type = zcl_excel_drawing=>c_graph_pie.
else.
lo_tmp_node_2 ?= rel_drawing-content_xml->find_from_name( name = 'barChart' namespace = 'c' ).
if lo_tmp_node_2 is not initial.
lo_drawing->graph_type = zcl_excel_drawing=>c_graph_bars.
else.
lo_tmp_node_2 ?= rel_drawing-content_xml->find_from_name( name = 'lineChart' namespace = 'c' ).
if lo_tmp_node_2 is not initial.
lo_drawing->graph_type = zcl_excel_drawing=>c_graph_line.
endif.
endif.
endif.
* End fix for issue #551
"-------------Added by Alessandro Iannacci - Should load chart attributes
lo_drawing->load_chart_attributes( rel_drawing-content_xml ).
ENDIF.
ENDMETHOD.
METHOD load_dxf_styles.
DATA: lo_styles_xml TYPE REF TO if_ixml_document,
lo_node_dxfs TYPE REF TO if_ixml_element,
lo_nodes_dxf TYPE REF TO if_ixml_node_collection,
lo_iterator_dxf TYPE REF TO if_ixml_node_iterator,
lo_node_dxf TYPE REF TO if_ixml_element,
lv_dxf_count TYPE i.
FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF mt_dxf_styles.
*--------------------------------------------------------------------*
* Look for dxfs-node
*--------------------------------------------------------------------*
lo_styles_xml = me->get_ixml_from_zip_archive( iv_path ).
lo_node_dxfs = lo_styles_xml->find_from_name( 'dxfs' ).
CHECK lo_node_dxfs IS BOUND.
*--------------------------------------------------------------------*
* loop through all dxf-nodes and create style for each
*--------------------------------------------------------------------*
lo_nodes_dxf ?= lo_node_dxfs->get_elements_by_tag_name( 'dxf' ).
lo_iterator_dxf = lo_nodes_dxf->create_iterator( ).
lo_node_dxf ?= lo_iterator_dxf->get_next( ).
WHILE lo_node_dxf IS BOUND.
APPEND INITIAL LINE TO mt_dxf_styles ASSIGNING <ls_dxf_style>.
<ls_dxf_style>-dxf = lv_dxf_count. " We start counting at 0
ADD 1 TO lv_dxf_count. " prepare next entry
<ls_dxf_style>-guid = get_dxf_style_guid( io_ixml_dxf = lo_node_dxf
io_excel = io_excel ).
lo_node_dxf ?= lo_iterator_dxf->get_next( ).
ENDWHILE.
ENDMETHOD.
method LOAD_SHARED_STRINGS.
*--------------------------------------------------------------------*
* ToDos:
* 2do§1 Support partial formatting of strings in cells
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-11
* - ...
* changes: renaming variables to naming conventions
* renaming variables to indicate what they are used for
* aligning code
* adding comments to explain what we are trying to achieve
* rewriting code for better readibility
*--------------------------------------------------------------------*
DATA:
lo_shared_strings_xml TYPE REF TO if_ixml_document,
lo_node_si TYPE REF TO if_ixml_element,
lo_node_si_child TYPE REF TO if_ixml_element,
lo_node_r_child_t TYPE REF TO if_ixml_element,
lv_tag_name TYPE string,
lv_node_value TYPE string.
FIELD-SYMBOLS: <lv_shared_string> LIKE LINE OF me->shared_strings.
*--------------------------------------------------------------------*
* §1 Parse shared strings file and get into internal table
* So far I have encountered 2 ways how a string can be represented in the shared strings file
* §1.1 - "simple" strings
* §1.2 - rich text formatted strings
* Following is an example how this file could be set up; 2 strings in simple formatting, 3rd string rich textformatted
* <?xml version="1.0" encoding="UTF-8" standalone="true"?>
* <sst uniqueCount="6" count="6" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
* <si>
* <t>This is a teststring 1</t>
* </si>
* <si>
* <t>This is a teststring 2</t>
* </si>
* <si>
* <r>
* <t>T</t>
* </r>
* <r>
* <rPr>
* <sz val="11"/>
* <color rgb="FFFF0000"/>
* <rFont val="Calibri"/>
* <family val="2"/>
* <scheme val="minor"/>
* </rPr>
* <t xml:space="preserve">his is a </t>
* </r>
* <r>
* <rPr>
* <sz val="11"/>
* <color theme="1"/>
* <rFont val="Calibri"/>
* <family val="2"/>
* <scheme val="minor"/>
* </rPr>
* <t>teststring 3</t>
* </r>
* </si>
* </sst>
*--------------------------------------------------------------------*
lo_shared_strings_xml = me->get_ixml_from_zip_archive( i_filename = ip_path
is_normalizing = space ). " NO!!! normalizing - otherwise leading blanks will be omitted and that is not really desired for the stringtable
lo_node_si ?= lo_shared_strings_xml->find_from_name( 'si' ).
WHILE lo_node_si IS BOUND.
APPEND INITIAL LINE TO me->shared_strings ASSIGNING <lv_shared_string>. " Each <si>-entry in the xml-file must lead to an entry in our stringtable
lo_node_si_child ?= lo_node_si->get_first_child( ).
IF lo_node_si_child IS BOUND.
lv_tag_name = lo_node_si_child->get_name( ).
IF lv_tag_name = 't'.
*--------------------------------------------------------------------*
* §1.1 - "simple" strings
* Example: see above
*--------------------------------------------------------------------*
<lv_shared_string> = lo_node_si_child->get_value( ).
ELSE.
*--------------------------------------------------------------------*
* §1.2 - rich text formatted strings
* it is sufficient to strip the <t>...</t> tag from each <r>-tag and concatenate these
* as long as rich text formatting is not supported (2do§1) ignore all info about formatting
* Example: see above
*--------------------------------------------------------------------*
WHILE lo_node_si_child IS BOUND. " actually these children of <si> are <r>-tags
lo_node_r_child_t ?= lo_node_si_child->find_from_name( 't' ). " extract the <t>...</t> part of each <r>-tag
IF lo_node_r_child_t IS BOUND.
lv_node_value = lo_node_r_child_t->get_value( ).
CONCATENATE <lv_shared_string> lv_node_value INTO <lv_shared_string> RESPECTING BLANKS.
ENDIF.
lo_node_si_child ?= lo_node_si_child->get_next( ).
ENDWHILE.
ENDIF.
ENDIF.
lo_node_si ?= lo_node_si->get_next( ).
ENDWHILE.
endmethod.
METHOD load_styles.
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (wip ) 2012-11-25
* - ...
* changes: renaming variables and types to naming conventions
* aligning code
* adding comments to explain what we are trying to achieve
*--------------------------------------------------------------------*
TYPES: BEGIN OF lty_xf,
applyalignment TYPE string,
applyborder TYPE string,
applyfill TYPE string,
applyfont TYPE string,
applynumberformat TYPE string,
applyprotection TYPE string,
borderid TYPE string,
fillid TYPE string,
fontid TYPE string,
numfmtid TYPE string,
pivotbutton TYPE string,
quoteprefix TYPE string,
xfid TYPE string,
END OF lty_xf.
TYPES: BEGIN OF lty_alignment,
horizontal TYPE string,
indent TYPE string,
justifylastline TYPE string,
readingorder TYPE string,
relativeindent TYPE string,
shrinktofit TYPE string,
textrotation TYPE string,
vertical TYPE string,
wraptext TYPE string,
END OF lty_alignment.
TYPES: BEGIN OF lty_protection,
hidden TYPE string,
locked TYPE string,
END OF lty_protection.
DATA: lo_styles_xml TYPE REF TO if_ixml_document,
lo_style TYPE REF TO zcl_excel_style,
lt_num_formats TYPE zcl_excel_style_number_format=>t_num_formats,
lt_fills TYPE t_fills,
lt_borders TYPE t_borders,
lt_fonts TYPE t_fonts,
ls_num_format TYPE zcl_excel_style_number_format=>t_num_format ,
ls_fill TYPE REF TO zcl_excel_style_fill,
ls_cell_border TYPE REF TO zcl_excel_style_borders,
ls_font TYPE REF TO zcl_excel_style_font,
lo_node_cellxfs TYPE REF TO if_ixml_element,
lo_node_cellxfs_xf TYPE REF TO if_ixml_element,
lo_node_cellxfs_xf_alignment TYPE REF TO if_ixml_element,
lo_node_cellxfs_xf_protection TYPE REF TO if_ixml_element,
lo_nodes_xf TYPE REF TO if_ixml_node_collection,
lo_iterator_cellxfs TYPE REF TO if_ixml_node_iterator,
ls_xf TYPE lty_xf,
ls_alignment TYPE lty_alignment,
ls_protection TYPE lty_protection,
lv_index TYPE i.
*--------------------------------------------------------------------*
* To build a complete style that fully describes how a cell looks like
* we need the various parts
* §1 - Numberformat
* §2 - Fillstyle
* §3 - Borders
* §4 - Font
* §5 - Alignment
* §6 - Protection
* Following is an example how this part of a file could be set up
* ...
* parts with various formatinformation - see §1,§2,§3,§4
* ...
* <cellXfs count="26">
* <xf numFmtId="0" borderId="0" fillId="0" fontId="0" xfId="0"/>
* <xf numFmtId="0" borderId="0" fillId="2" fontId="0" xfId="0" applyFill="1"/>
* <xf numFmtId="0" borderId="1" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/>
* <xf numFmtId="0" borderId="2" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/>
* <xf numFmtId="0" borderId="3" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/>
* <xf numFmtId="0" borderId="4" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/>
* <xf numFmtId="0" borderId="0" fillId="3" fontId="0" xfId="0" applyFill="1" applyBorder="1"/>
* ...
* </cellXfs>
*--------------------------------------------------------------------*
lo_styles_xml = me->get_ixml_from_zip_archive( ip_path ).
*--------------------------------------------------------------------*
* The styles are build up from
* §1 number formats
* §2 fill styles
* §3 border styles
* §4 fonts
* These need to be read before we can try to build up a complete
* style that describes the look of a cell
*--------------------------------------------------------------------*
lt_num_formats = load_style_num_formats( lo_styles_xml ). " §1
lt_fills = load_style_fills( lo_styles_xml ). " §2
lt_borders = load_style_borders( lo_styles_xml ). " §3
lt_fonts = load_style_fonts( lo_styles_xml ). " §4
*--------------------------------------------------------------------*
* Now everything is prepared to build a "full" style
*--------------------------------------------------------------------*
lo_node_cellxfs = lo_styles_xml->find_from_name( name = 'cellXfs' ).
IF lo_node_cellxfs IS BOUND.
lo_nodes_xf = lo_node_cellxfs->get_elements_by_tag_name( name = 'xf' ).
lo_iterator_cellxfs = lo_nodes_xf->create_iterator( ).
lo_node_cellxfs_xf ?= lo_iterator_cellxfs->get_next( ).
WHILE lo_node_cellxfs_xf IS BOUND.
lo_style = ip_excel->add_new_style( ).
fill_struct_from_attributes( EXPORTING
ip_element = lo_node_cellxfs_xf
CHANGING
cp_structure = ls_xf ).
*--------------------------------------------------------------------*
* §2 fill style
*--------------------------------------------------------------------*
IF ls_xf-applyfill = '1' AND ls_xf-fillid IS NOT INITIAL.
lv_index = ls_xf-fillid + 1.
READ TABLE lt_fills INTO ls_fill INDEX lv_index.
IF sy-subrc = 0.
lo_style->fill = ls_fill.
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
* §1 number format
*--------------------------------------------------------------------*
IF ls_xf-numfmtid IS NOT INITIAL.
READ TABLE lt_num_formats INTO ls_num_format WITH TABLE KEY id = ls_xf-numfmtid.
IF sy-subrc = 0.
lo_style->number_format = ls_num_format-format.
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
* §3 border style
*--------------------------------------------------------------------*
IF ls_xf-applyborder = '1' AND ls_xf-borderid IS NOT INITIAL.
lv_index = ls_xf-borderid + 1.
READ TABLE lt_borders INTO ls_cell_border INDEX lv_index.
IF sy-subrc = 0.
lo_style->borders = ls_cell_border.
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
* §4 font
*--------------------------------------------------------------------*
IF ls_xf-applyfont = '1' AND ls_xf-fontid IS NOT INITIAL.
lv_index = ls_xf-fontid + 1.
READ TABLE lt_fonts INTO ls_font INDEX lv_index.
IF sy-subrc = 0.
lo_style->font = ls_font.
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
* §5 - Alignment
*--------------------------------------------------------------------*
lo_node_cellxfs_xf_alignment ?= lo_node_cellxfs_xf->find_from_name( 'alignment' ).
IF lo_node_cellxfs_xf_alignment IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node_cellxfs_xf_alignment
CHANGING
cp_structure = ls_alignment ).
IF ls_alignment-horizontal IS NOT INITIAL.
lo_style->alignment->horizontal = ls_alignment-horizontal.
ENDIF.
IF ls_alignment-vertical IS NOT INITIAL.
lo_style->alignment->vertical = ls_alignment-vertical.
ENDIF.
IF ls_alignment-textrotation IS NOT INITIAL.
lo_style->alignment->textrotation = ls_alignment-textrotation.
ENDIF.
IF ls_alignment-wraptext = '1' OR ls_alignment-wraptext = 'true'.
lo_style->alignment->wraptext = abap_true.
ENDIF.
IF ls_alignment-shrinktofit = '1' OR ls_alignment-shrinktofit = 'true'.
lo_style->alignment->shrinktofit = abap_true.
ENDIF.
IF ls_alignment-indent IS NOT INITIAL.
lo_style->alignment->indent = ls_alignment-indent.
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
* §6 - Protection
*--------------------------------------------------------------------*
lo_node_cellxfs_xf_protection ?= lo_node_cellxfs_xf->find_from_name( 'protection' ).
IF lo_node_cellxfs_xf_protection IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node_cellxfs_xf_protection
CHANGING
cp_structure = ls_protection ).
IF ls_protection-locked = '1' OR ls_protection-locked = 'true'.
lo_style->protection->locked = zcl_excel_style_protection=>c_protection_locked.
ELSE.
lo_style->protection->locked = zcl_excel_style_protection=>c_protection_unlocked.
ENDIF.
IF ls_protection-hidden = '1' OR ls_protection-hidden = 'true'.
lo_style->protection->hidden = zcl_excel_style_protection=>c_protection_hidden.
ELSE.
lo_style->protection->hidden = zcl_excel_style_protection=>c_protection_unhidden.
ENDIF.
ENDIF.
INSERT lo_style INTO TABLE me->styles.
lo_node_cellxfs_xf ?= lo_iterator_cellxfs->get_next( ).
ENDWHILE.
ENDIF.
ENDMETHOD.
method LOAD_STYLE_BORDERS.
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-25
* - ...
* changes: renaming variables and types to naming conventions
* aligning code
* renaming variables to indicate what they are used for
* adding comments to explain what we are trying to achieve
*--------------------------------------------------------------------*
DATA: lo_node_border TYPE REF TO if_ixml_element,
lo_node_bordertype TYPE REF TO if_ixml_element,
lo_node_bordercolor TYPE REF TO if_ixml_element,
lo_cell_border TYPE REF TO zcl_excel_style_borders,
lo_border TYPE REF TO zcl_excel_style_border,
ls_color TYPE t_color.
*--------------------------------------------------------------------*
* We need a table of used borderformats to build up our styles
* §1 A cell has 4 outer borders and 2 diagonal "borders"
* These borders can be formatted separately but the diagonal borders
* are always being formatted the same
* We'll parse through the <border>-tag for each of the bordertypes
* §2 and read the corresponding formatting information
* Following is an example how this part of a file could be set up
* <border diagonalDown="1">
* <left style="mediumDashDotDot">
* <color rgb="FFFF0000"/>
* </left>
* <right/>
* <top style="thick">
* <color rgb="FFFF0000"/>
* </top>
* <bottom style="thick">
* <color rgb="FFFF0000"/>
* </bottom>
* <diagonal style="thick">
* <color rgb="FFFF0000"/>
* </diagonal>
* </border>
*--------------------------------------------------------------------*
lo_node_border ?= ip_xml->find_from_name( 'border' ).
WHILE lo_node_border IS BOUND.
CREATE OBJECT lo_cell_border.
*--------------------------------------------------------------------*
* Diagonal borderlines are formatted the equally. Determine what kind of diagonal borders are present if any
*--------------------------------------------------------------------*
* DiagonalNone = 0
* DiagonalUp = 1
* DiagonalDown = 2
* DiagonalBoth = 3
*--------------------------------------------------------------------*
IF lo_node_border->get_attribute( 'diagonalDown' ) IS NOT INITIAL.
add zcl_excel_style_borders=>c_diagonal_down to lo_cell_border->diagonal_mode.
ENDIF.
IF lo_node_border->get_attribute( 'diagonalUp' ) IS NOT INITIAL.
add zcl_excel_style_borders=>c_diagonal_up to lo_cell_border->diagonal_mode.
ENDIF.
lo_node_bordertype ?= lo_node_border->get_first_child( ).
WHILE lo_node_bordertype IS BOUND.
*--------------------------------------------------------------------*
* §1 Determine what kind of border we are talking about
*--------------------------------------------------------------------*
* Up, down, left, right, diagonal
*--------------------------------------------------------------------*
CREATE OBJECT lo_border.
CASE lo_node_bordertype->get_name( ).
WHEN 'left'.
lo_cell_border->left = lo_border.
WHEN 'right'.
lo_cell_border->right = lo_border.
WHEN 'top'.
lo_cell_border->top = lo_border.
WHEN 'bottom'.
lo_cell_border->down = lo_border.
WHEN 'diagonal'.
lo_cell_border->diagonal = lo_border.
ENDCASE.
*--------------------------------------------------------------------*
* §2 Read the border-formatting
*--------------------------------------------------------------------*
lo_border->border_style = lo_node_bordertype->get_attribute( 'style' ).
lo_node_bordercolor ?= lo_node_bordertype->find_from_name( 'color' ).
IF lo_node_bordercolor IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node_bordercolor
CHANGING
cp_structure = ls_color ).
lo_border->border_color-rgb = ls_color-rgb.
IF ls_color-indexed IS NOT INITIAL.
lo_border->border_color-indexed = ls_color-indexed.
ENDIF.
IF ls_color-theme IS NOT INITIAL.
lo_border->border_color-theme = ls_color-theme.
ENDIF.
lo_border->border_color-tint = ls_color-tint.
ENDIF.
lo_node_bordertype ?= lo_node_bordertype->get_next( ).
ENDWHILE.
INSERT lo_cell_border INTO TABLE ep_borders.
lo_node_border ?= lo_node_border->get_next( ).
ENDWHILE.
endmethod.
method LOAD_STYLE_FILLS.
*--------------------------------------------------------------------*
* ToDos:
* 2do§1 Support gradientFill
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-25
* - ...
* changes: renaming variables and types to naming conventions
* aligning code
* commenting on problems/future enhancements/todos we already know of or should decide upon
* adding comments to explain what we are trying to achieve
* renaming variables to indicate what they are used for
*--------------------------------------------------------------------*
DATA: lv_value TYPE string,
lo_node_fill TYPE REF TO if_ixml_element,
lo_node_fill_child TYPE REF TO if_ixml_element,
lo_node_bgcolor TYPE REF TO if_ixml_element,
lo_node_fgcolor TYPE REF TO if_ixml_element,
lo_node_stop TYPE REF TO if_ixml_element,
lo_fill TYPE REF TO zcl_excel_style_fill,
ls_color TYPE t_color.
*--------------------------------------------------------------------*
* We need a table of used fillformats to build up our styles
* Following is an example how this part of a file could be set up
* <fill>
* <patternFill patternType="gray125"/>
* </fill>
* <fill>
* <patternFill patternType="solid">
* <fgColor rgb="FFFFFF00"/>
* <bgColor indexed="64"/>
* </patternFill>
* </fill>
*--------------------------------------------------------------------*
lo_node_fill ?= ip_xml->find_from_name( 'fill' ).
WHILE lo_node_fill IS BOUND.
CREATE OBJECT lo_fill.
lo_node_fill_child ?= lo_node_fill->get_first_child( ).
lv_value = lo_node_fill_child->get_name( ).
CASE lv_value.
*--------------------------------------------------------------------*
* Patternfill
*--------------------------------------------------------------------*
WHEN 'patternFill'.
lo_fill->filltype = lo_node_fill_child->get_attribute( 'patternType' ).
*--------------------------------------------------------------------*
* Patternfill - background color
*--------------------------------------------------------------------*
lo_node_bgcolor = lo_node_fill_child->find_from_name( 'bgColor' ).
IF lo_node_bgcolor IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node_bgcolor
CHANGING
cp_structure = ls_color ).
lo_fill->bgcolor-rgb = ls_color-rgb.
IF ls_color-indexed IS NOT INITIAL.
lo_fill->bgcolor-indexed = ls_color-indexed.
ENDIF.
IF ls_color-theme IS NOT INITIAL.
lo_fill->bgcolor-theme = ls_color-theme.
ENDIF.
lo_fill->bgcolor-tint = ls_color-tint.
ENDIF.
*--------------------------------------------------------------------*
* Patternfill - foreground color
*--------------------------------------------------------------------*
lo_node_fgcolor = lo_node_fill->find_from_name( 'fgColor' ).
IF lo_node_fgcolor IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node_fgcolor
CHANGING
cp_structure = ls_color ).
lo_fill->fgcolor-rgb = ls_color-rgb.
IF ls_color-indexed IS NOT INITIAL.
lo_fill->fgcolor-indexed = ls_color-indexed.
ENDIF.
IF ls_color-theme IS NOT INITIAL.
lo_fill->fgcolor-theme = ls_color-theme.
ENDIF.
lo_fill->fgcolor-tint = ls_color-tint.
ENDIF.
*--------------------------------------------------------------------*
* gradientFill
*--------------------------------------------------------------------*
WHEN 'gradientFill'.
lo_fill->gradtype-type = lo_node_fill_child->get_attribute( 'type' ).
lo_fill->gradtype-top = lo_node_fill_child->get_attribute( 'top' ).
lo_fill->gradtype-left = lo_node_fill_child->get_attribute( 'left' ).
lo_fill->gradtype-right = lo_node_fill_child->get_attribute( 'right' ).
lo_fill->gradtype-bottom = lo_node_fill_child->get_attribute( 'bottom' ).
lo_fill->gradtype-degree = lo_node_fill_child->get_attribute( 'degree' ).
free lo_node_stop.
lo_node_stop ?= lo_node_fill_child->find_from_name( 'stop' ).
while lo_node_stop is bound.
if lo_fill->gradtype-position1 is initial.
lo_fill->gradtype-position1 = lo_node_stop->get_attribute( 'position' ).
lo_node_bgcolor = lo_node_stop->find_from_name( 'color' ).
IF lo_node_bgcolor IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node_bgcolor
CHANGING
cp_structure = ls_color ).
lo_fill->bgcolor-rgb = ls_color-rgb.
IF ls_color-indexed IS NOT INITIAL.
lo_fill->bgcolor-indexed = ls_color-indexed.
ENDIF.
IF ls_color-theme IS NOT INITIAL.
lo_fill->bgcolor-theme = ls_color-theme.
ENDIF.
lo_fill->bgcolor-tint = ls_color-tint.
ENDIF.
elseif lo_fill->gradtype-position2 is initial.
lo_fill->gradtype-position2 = lo_node_stop->get_attribute( 'position' ).
lo_node_fgcolor = lo_node_stop->find_from_name( 'color' ).
IF lo_node_fgcolor IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node_fgcolor
CHANGING
cp_structure = ls_color ).
lo_fill->fgcolor-rgb = ls_color-rgb.
IF ls_color-indexed IS NOT INITIAL.
lo_fill->fgcolor-indexed = ls_color-indexed.
ENDIF.
IF ls_color-theme IS NOT INITIAL.
lo_fill->fgcolor-theme = ls_color-theme.
ENDIF.
lo_fill->fgcolor-tint = ls_color-tint.
ENDIF.
elseif lo_fill->gradtype-position3 is initial.
lo_fill->gradtype-position3 = lo_node_stop->get_attribute( 'position' ).
"BGColor is filled already with position 1 no need to check again
endif.
lo_node_stop ?= lo_node_stop->get_next( ).
ENDWHILE.
WHEN OTHERS.
ENDCASE.
INSERT lo_fill INTO TABLE ep_fills.
lo_node_fill ?= lo_node_fill->get_next( ).
ENDWHILE.
endmethod.
METHOD load_style_fonts.
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-25
* - ...
* changes: renaming variables and types to naming conventions
* aligning code
* removing unused variables
* adding comments to explain what we are trying to achieve
*--------------------------------------------------------------------*
DATA: lo_node_font TYPE REF TO if_ixml_element,
lo_node2 TYPE REF TO if_ixml_element,
lo_font TYPE REF TO zcl_excel_style_font,
ls_color TYPE t_color.
*--------------------------------------------------------------------*
* We need a table of used fonts to build up our styles
* Following is an example how this part of a file could be set up
* <font>
* <sz val="11"/>
* <color theme="1"/>
* <name val="Calibri"/>
* <family val="2"/>
* <scheme val="minor"/>
* </font>
*--------------------------------------------------------------------*
lo_node_font ?= ip_xml->find_from_name( 'font' ).
WHILE lo_node_font IS BOUND.
CREATE OBJECT lo_font.
*--------------------------------------------------------------------*
* Bold
*--------------------------------------------------------------------*
IF lo_node_font->find_from_name( 'b' ) IS BOUND.
lo_font->bold = abap_true.
ENDIF.
*--------------------------------------------------------------------*
* Italic
*--------------------------------------------------------------------*
IF lo_node_font->find_from_name( 'i' ) IS BOUND.
lo_font->italic = abap_true.
ENDIF.
*--------------------------------------------------------------------*
* Underline
*--------------------------------------------------------------------*
lo_node2 = lo_node_font->find_from_name( 'u' ).
IF lo_node2 IS BOUND.
lo_font->underline = abap_true.
lo_font->underline_mode = lo_node2->get_attribute( 'val' ).
ENDIF.
*--------------------------------------------------------------------*
* StrikeThrough
*--------------------------------------------------------------------*
IF lo_node_font->find_from_name( 'strike' ) IS BOUND.
lo_font->strikethrough = abap_true.
ENDIF.
*--------------------------------------------------------------------*
* Fontsize
*--------------------------------------------------------------------*
lo_node2 = lo_node_font->find_from_name( 'sz' ).
IF lo_node2 IS BOUND.
lo_font->size = lo_node2->get_attribute( 'val' ).
ENDIF.
*--------------------------------------------------------------------*
* Fontname
*--------------------------------------------------------------------*
lo_node2 = lo_node_font->find_from_name( 'name' ).
IF lo_node2 IS BOUND.
lo_font->name = lo_node2->get_attribute( 'val' ).
ENDIF.
*--------------------------------------------------------------------*
* Fontfamily
*--------------------------------------------------------------------*
lo_node2 = lo_node_font->find_from_name( 'family' ).
IF lo_node2 IS BOUND.
lo_font->family = lo_node2->get_attribute( 'val' ).
ENDIF.
*--------------------------------------------------------------------*
* Fontscheme
*--------------------------------------------------------------------*
lo_node2 = lo_node_font->find_from_name( 'scheme' ).
IF lo_node2 IS BOUND.
lo_font->scheme = lo_node2->get_attribute( 'val' ).
ELSE.
CLEAR lo_font->scheme.
ENDIF.
*--------------------------------------------------------------------*
* Fontcolor
*--------------------------------------------------------------------*
lo_node2 = lo_node_font->find_from_name( 'color' ).
IF lo_node2 IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node2
CHANGING
cp_structure = ls_color ).
lo_font->color-rgb = ls_color-rgb.
IF ls_color-indexed IS NOT INITIAL.
lo_font->color-indexed = ls_color-indexed.
ENDIF.
IF ls_color-theme IS NOT INITIAL.
lo_font->color-theme = ls_color-theme.
ENDIF.
lo_font->color-tint = ls_color-tint.
ENDIF.
INSERT lo_font INTO TABLE ep_fonts.
lo_node_font ?= lo_node_font->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD load_style_num_formats.
*--------------------------------------------------------------------*
* ToDos:
* 2do§1 Explain gaps in predefined formats
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-25
* - ...
* changes: renaming variables and types to naming conventions
* adding comments to explain what we are trying to achieve
* aligning code
*--------------------------------------------------------------------*
DATA: lo_node_numfmt TYPE REF TO if_ixml_element,
ls_num_format TYPE ZCL_EXCEL_STYLE_NUMBER_FORMAT=>T_NUM_FORMAT .
*--------------------------------------------------------------------*
* We need a table of used numberformats to build up our styles
* there are two kinds of numberformats
* §1 built-in numberformats
* §2 and those that have been explicitly added by the createor of the excel-file
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* §1 built-in numberformats
*--------------------------------------------------------------------*
ep_num_formats = ZCL_EXCEL_STYLE_NUMBER_FORMAT=>mt_built_in_num_formats.
*--------------------------------------------------------------------*
* §2 Get non-internal numberformats that are found in the file explicitly
* Following is an example how this part of a file could be set up
* <numFmts count="1">
* <numFmt formatCode="#,###,###,###,##0.00" numFmtId="164"/>
* </numFmts>
*--------------------------------------------------------------------*
lo_node_numfmt ?= ip_xml->find_from_name( 'numFmt' ).
WHILE lo_node_numfmt IS BOUND.
CLEAR ls_num_format.
CREATE OBJECT ls_num_format-format.
ls_num_format-format->format_code = lo_node_numfmt->get_attribute( 'formatCode' ).
ls_num_format-id = lo_node_numfmt->get_attribute( 'numFmtId' ).
INSERT ls_num_format INTO TABLE ep_num_formats.
lo_node_numfmt ?= lo_node_numfmt->get_next( ).
ENDWHILE.
ENDMETHOD.
method load_theme.
data theme type ref to zcl_excel_theme.
data: lo_theme_xml type ref to if_ixml_document.
create object theme.
lo_theme_xml = me->get_ixml_from_zip_archive( iv_path ).
theme->read_theme( io_theme_xml = lo_theme_xml ).
ip_excel->set_theme( io_theme = theme ).
endmethod.
method LOAD_WORKBOOK.
*--------------------------------------------------------------------*
* ToDos:
* 2do§1 Move macro-reading from zcl_excel_reader_xlsm to this class
* autodetect existance of macro/vba content
* Allow inputparameter to explicitly tell reader to ignore vba-content
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-10
* - ...
* changes: renaming variables to naming conventions
* aligning code
* removing unused variables
* adding me-> where possible
* renaming variables to indicate what they are used for
* adding comments to explain what we are trying to achieve
* renaming i/o parameters: previous input-parameter ip_path holds a (full) filename and not a path --> rename to iv_workbook_full_filename
* ip_excel renamed while being at it --> rename to io_excel
*--------------------------------------------------------------------*
* issue #232 - Read worksheetstate hidden/veryHidden
* - Stefan Schmoecker, 2012-11-11
*--------------------------------------------------------------------*
* issue#235 - repeat rows/columns
* - Stefan Schmoecker, 2012-12-02
* changes: correction in named ranges to correctly attach
* sheetlocal names/ranges to the correct sheet
*--------------------------------------------------------------------*
* issue#284 - Copied formulae ignored when reading excelfile
* - Stefan Schmoecker, 2013-08-02
* changes: initialize area to hold referenced formulaedata
* after all worksheets have been read resolve formuae
*--------------------------------------------------------------------*
CONSTANTS: lcv_shared_strings TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings',
lcv_worksheet TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet',
lcv_styles TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles',
lcv_vba_project TYPE string VALUE 'http://schemas.microsoft.com/office/2006/relationships/vbaProject', "#EC NEEDED for future incorporation of XLSM-reader
lcv_theme TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',
*--------------------------------------------------------------------*
* #232: Read worksheetstate hidden/veryHidden - begin data declarations
*--------------------------------------------------------------------*
lcv_worksheet_state_hidden TYPE string VALUE 'hidden',
lcv_worksheet_state_veryhidden TYPE string VALUE 'veryHidden'.
*--------------------------------------------------------------------*
* #232: Read worksheetstate hidden/veryHidden - end data declarations
*--------------------------------------------------------------------*
DATA:
lv_path TYPE string,
lv_filename TYPE chkfile,
lv_full_filename TYPE string,
lo_rels_workbook TYPE REF TO if_ixml_document,
lt_worksheets TYPE STANDARD TABLE OF t_relationship WITH NON-UNIQUE DEFAULT KEY,
lo_workbook TYPE REF TO if_ixml_document,
lv_workbook_index TYPE i,
lv_worksheet_path TYPE string,
ls_sheet TYPE t_sheet,
lo_node TYPE REF TO if_ixml_element,
ls_relationship TYPE t_relationship,
lo_worksheet TYPE REF TO zcl_excel_worksheet,
lo_range TYPE REF TO zcl_excel_range,
lv_worksheet_title TYPE zexcel_sheet_title,
lv_tabix TYPE sytabix, " #235 - repeat rows/cols. Needed to link defined name to correct worksheet
ls_range TYPE t_range,
lv_range_value TYPE zexcel_range_value,
*--------------------------------------------------------------------*
* #229: Set active worksheet - begin data declarations
*--------------------------------------------------------------------*
lv_active_sheet_string TYPE string,
lv_zexcel_active_worksheet TYPE zexcel_active_worksheet,
*--------------------------------------------------------------------*
* issue#235 - repeat rows/columns - added autofilter support while changing this section
lo_autofilter TYPE REF TO zcl_excel_autofilter,
ls_area TYPE zexcel_s_autofilter_area,
lv_col_start_alpha TYPE zexcel_cell_column_alpha,
lv_col_end_alpha TYPE zexcel_cell_column_alpha,
lv_row_start TYPE zexcel_cell_row,
lv_row_end TYPE zexcel_cell_row ,
lv_regex TYPE string,
lv_range_value_1 TYPE zexcel_range_value,
lv_range_value_2 TYPE zexcel_range_value.
*--------------------------------------------------------------------*
* #229: Set active worksheet - end data declarations
*--------------------------------------------------------------------*
FIELD-SYMBOLS: <worksheet> TYPE t_relationship.
*--------------------------------------------------------------------*
* §1 Get the position of files related to this workbook
* Usually this will be <root>/xl/workbook.xml
* Thus the workbookroot will be <root>/xl/
* The position of all related files will be given in file
* <workbookroot>/_rels/<workbookfilename>.rels and their positions
* be be given relative to the workbookroot
* Following is an example how this file could be set up
* <?xml version="1.0" encoding="UTF-8" standalone="true"?>
* <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
* <Relationship Target="styles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Id="rId6"/>
* <Relationship Target="theme/theme1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Id="rId5"/>
* <Relationship Target="worksheets/sheet1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId1"/>
* <Relationship Target="worksheets/sheet2.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId2"/>
* <Relationship Target="worksheets/sheet3.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId3"/>
* <Relationship Target="worksheets/sheet4.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId4"/>
* <Relationship Target="sharedStrings.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Id="rId7"/>
* </Relationships>
*
* §2 Load data that is relevant to the complete workbook
* Currently supported is:
* §2.1 Shared strings - This holds all strings that are used in all worksheets
* §2.2 Styles - This holds all styles that are used in all worksheets
* §2.3 Worksheets - For each worksheet in the workbook one entry appears here to point to the file that holds the content of this worksheet
* §2.4 [Themes] - not supported
* §2.5 [VBA (Macro)] - supported in class zcl_excel_reader_xlsm but should be moved here and autodetect
* ...
*
* §3 Some information is held in the workbookfile as well
* §3.1 Names and order of of worksheets
* §3.2 Active worksheet
* §3.3 Defined names
* ...
* Following is an example how this file could be set up
* <?xml version="1.0" encoding="UTF-8" standalone="true"?>
* <workbook xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
* <fileVersion rupBuild="4506" lowestEdited="4" lastEdited="4" appName="xl"/>
* <workbookPr defaultThemeVersion="124226"/>
* <bookViews>
* <workbookView activeTab="1" windowHeight="8445" windowWidth="19035" yWindow="120" xWindow="120"/>
* </bookViews>
* <sheets>
* <sheet r:id="rId1" sheetId="1" name="Sheet1"/>
* <sheet r:id="rId2" sheetId="2" name="Sheet2"/>
* <sheet r:id="rId3" sheetId="3" name="Sheet3" state="hidden"/>
* <sheet r:id="rId4" sheetId="4" name="Sheet4"/>
* </sheets>
* <definedNames/>
* <calcPr calcId="125725"/>
* </workbook>
*--------------------------------------------------------------------*
CLEAR me->mt_ref_formulae. " ins issue#284
*--------------------------------------------------------------------*
* §1 Get the position of files related to this workbook
* Entry into this method is with the filename of the workbook
*--------------------------------------------------------------------*
CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH'
EXPORTING
full_name = iv_workbook_full_filename
IMPORTING
stripped_name = lv_filename
file_path = lv_path.
CONCATENATE lv_path '_rels/' lv_filename '.rels'
INTO lv_full_filename.
lo_rels_workbook = me->get_ixml_from_zip_archive( lv_full_filename ).
lo_node ?= lo_rels_workbook->find_from_name( 'Relationship' ). "#EC NOTEXT
WHILE lo_node IS BOUND.
me->fill_struct_from_attributes( EXPORTING ip_element = lo_node CHANGING cp_structure = ls_relationship ).
CASE ls_relationship-type.
*--------------------------------------------------------------------*
* §2.1 Shared strings - This holds all strings that are used in all worksheets
*--------------------------------------------------------------------*
WHEN lcv_shared_strings.
CONCATENATE lv_path ls_relationship-target
INTO lv_full_filename.
me->load_shared_strings( lv_full_filename ).
*--------------------------------------------------------------------*
* §2.3 Worksheets
* For each worksheet in the workbook one entry appears here to point to the file that holds the content of this worksheet
* Shared strings and styles have to be present before we can start with creating the worksheets
* thus we only store this information for use when parsing the workbookfile for sheetinformations
*--------------------------------------------------------------------*
WHEN lcv_worksheet.
APPEND ls_relationship TO lt_worksheets.
*--------------------------------------------------------------------*
* §2.2 Styles - This holds the styles that are used in all worksheets
*--------------------------------------------------------------------*
WHEN lcv_styles.
CONCATENATE lv_path ls_relationship-target
INTO lv_full_filename.
me->load_styles( ip_path = lv_full_filename
ip_excel = io_excel ).
me->load_dxf_styles( iv_path = lv_full_filename
io_excel = io_excel ).
when lcv_theme.
CONCATENATE lv_path ls_relationship-target
INTO lv_full_filename.
me->load_theme(
exporting
iv_path = lv_full_filename
ip_excel = io_excel " Excel creator
).
WHEN OTHERS.
ENDCASE.
lo_node ?= lo_node->get_next( ).
ENDWHILE.
*--------------------------------------------------------------------*
* §3 Some information held in the workbookfile
*--------------------------------------------------------------------*
lo_workbook = me->get_ixml_from_zip_archive( iv_workbook_full_filename ).
*--------------------------------------------------------------------*
* §3.1 Names and order of of worksheets
*--------------------------------------------------------------------*
lo_node ?= lo_workbook->find_from_name( 'sheet' ).
lv_workbook_index = 1.
WHILE lo_node IS BOUND.
me->fill_struct_from_attributes( EXPORTING
ip_element = lo_node
CHANGING
cp_structure = ls_sheet ).
*--------------------------------------------------------------------*
* Create new worksheet in workbook with correct name
*--------------------------------------------------------------------*
lv_worksheet_title = ls_sheet-name.
IF lv_workbook_index = 1. " First sheet has been added automatically by creating io_excel
lo_worksheet = io_excel->get_active_worksheet( ).
lo_worksheet->set_title( lv_worksheet_title ).
ELSE.
lo_worksheet = io_excel->add_new_worksheet( lv_worksheet_title ).
ENDIF.
*--------------------------------------------------------------------*
* #232 - Read worksheetstate hidden/veryHidden - begin of coding
* Set status hidden if necessary
*--------------------------------------------------------------------*
CASE ls_sheet-state.
WHEN lcv_worksheet_state_hidden.
lo_worksheet->zif_excel_sheet_properties~hidden = zif_excel_sheet_properties=>c_hidden.
WHEN lcv_worksheet_state_veryhidden.
lo_worksheet->zif_excel_sheet_properties~hidden = zif_excel_sheet_properties=>c_veryhidden.
ENDCASE.
*--------------------------------------------------------------------*
* #232 - Read worksheetstate hidden/veryHidden - end of coding
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* Load worksheetdata
*--------------------------------------------------------------------*
READ TABLE lt_worksheets ASSIGNING <worksheet> WITH KEY id = ls_sheet-id.
IF sy-subrc = 0.
<worksheet>-sheetid = ls_sheet-sheetid. "ins #235 - repeat rows/cols - needed to identify correct sheet
CONCATENATE lv_path <worksheet>-target
INTO lv_worksheet_path.
me->load_worksheet( ip_path = lv_worksheet_path
io_worksheet = lo_worksheet ).
<worksheet>-worksheet = lo_worksheet.
ENDIF.
lo_node ?= lo_node->get_next( ).
ADD 1 TO lv_workbook_index.
ENDWHILE.
SORT lt_worksheets BY sheetid. " needed for localSheetid -referencing
*--------------------------------------------------------------------*
* #284: Set active worksheet - Resolve referenced formulae to
* explicit formulae those cells
*--------------------------------------------------------------------*
me->resolve_referenced_formulae( ).
" ins issue#284
*--------------------------------------------------------------------*
* #229: Set active worksheet - begin coding
* §3.2 Active worksheet
*--------------------------------------------------------------------*
lv_zexcel_active_worksheet = 1. " First sheet = active sheet if nothing else specified.
lo_node ?= lo_workbook->find_from_name( 'workbookView' ).
IF lo_node IS BOUND.
lv_active_sheet_string = lo_node->get_attribute( 'activeTab' ).
TRY.
lv_zexcel_active_worksheet = lv_active_sheet_string + 1. " EXCEL numbers the sheets from 0 onwards --> index into worksheettable is increased by one
CATCH cx_sy_conversion_error. "#EC NO_HANDLER - error here --> just use the default 1st sheet
ENDTRY.
ENDIF.
io_excel->set_active_sheet_index( lv_zexcel_active_worksheet ).
*--------------------------------------------------------------------*
* #229: Set active worksheet - end coding
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* §3.3 Defined names
* So far I have encountered these
* - named ranges - sheetlocal
* - named ranges - workbookglobal
* - autofilters - sheetlocal ( special range )
* - repeat rows/cols - sheetlocal ( special range )
*
*--------------------------------------------------------------------*
lo_node ?= lo_workbook->find_from_name( 'definedName' ).
WHILE lo_node IS BOUND.
CLEAR lo_range. "ins issue #235 - repeat rows/cols
me->fill_struct_from_attributes( EXPORTING
ip_element = lo_node
CHANGING
cp_structure = ls_range ).
lv_range_value = lo_node->get_value( ).
IF ls_range-localsheetid IS NOT INITIAL. " issue #163+
* READ TABLE lt_worksheets ASSIGNING <worksheet> WITH KEY id = ls_range-localsheetid. "del issue #235 - repeat rows/cols " issue #163+
* lo_range = <worksheet>-worksheet->add_new_range( ). "del issue #235 - repeat rows/cols " issue #163+
*--------------------------------------------------------------------*
* issue#235 - repeat rows/columns - begin
*--------------------------------------------------------------------*
lv_tabix = ls_range-localsheetid + 1.
READ TABLE lt_worksheets ASSIGNING <worksheet> INDEX lv_tabix.
IF sy-subrc = 0.
CASE ls_range-name.
*--------------------------------------------------------------------*
* insert autofilters
*--------------------------------------------------------------------*
WHEN zcl_excel_autofilters=>c_autofilter.
" begin Dennis Schaaf
TRY.
zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range_value
IMPORTING e_column_start = lv_col_start_alpha
e_column_end = lv_col_end_alpha
e_row_start = ls_area-row_start
e_row_end = ls_area-row_end ).
ls_area-col_start = zcl_excel_common=>convert_column2int( lv_col_start_alpha ).
ls_area-col_end = zcl_excel_common=>convert_column2int( lv_col_end_alpha ).
lo_autofilter = io_excel->add_new_autofilter( io_sheet = <worksheet>-worksheet ) .
lo_autofilter->set_filter_area( is_area = ls_area ).
CATCH zcx_excel.
" we expected a range but it was not usable, so just ignore it
ENDTRY.
" end Dennis Schaaf
*--------------------------------------------------------------------*
* repeat print rows/columns
*--------------------------------------------------------------------*
WHEN zif_excel_sheet_printsettings=>gcv_print_title_name.
lo_range = <worksheet>-worksheet->add_new_range( ).
*--------------------------------------------------------------------*
* This might be a temporary solution. Maybe ranges get be reworked
* to support areas consisting of multiple rectangles
* But for now just split the range into row and columnpart
*--------------------------------------------------------------------*
CLEAR:lv_range_value_1,
lv_range_value_2.
IF lv_range_value IS INITIAL.
* Empty --> nothing to do
ELSE.
IF lv_range_value(1) = `'`. " Escaped
lv_regex = `^('[^']*')+![^,]*,`.
ELSE.
lv_regex = `^[^!]*![^,]*,`.
ENDIF.
* Split into two ranges if necessary
FIND REGEX lv_regex IN lv_range_value MATCH LENGTH sy-fdpos.
IF sy-subrc = 0 AND sy-fdpos > 0.
lv_range_value_2 = lv_range_value+sy-fdpos.
SUBTRACT 1 FROM sy-fdpos.
lv_range_value_1 = lv_range_value(sy-fdpos).
ELSE.
lv_range_value_1 = lv_range_value.
ENDIF.
ENDIF.
* 1st range
zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range_value_1
IMPORTING e_column_start = lv_col_start_alpha
e_column_end = lv_col_end_alpha
e_row_start = lv_row_start
e_row_end = lv_row_end ).
IF lv_col_start_alpha IS NOT INITIAL.
<worksheet>-worksheet->zif_excel_sheet_printsettings~set_print_repeat_columns( iv_columns_from = lv_col_start_alpha
iv_columns_to = lv_col_end_alpha ).
ENDIF.
IF lv_row_start IS NOT INITIAL.
<worksheet>-worksheet->zif_excel_sheet_printsettings~set_print_repeat_rows( iv_rows_from = lv_row_start
iv_rows_to = lv_row_end ).
ENDIF.
* 2nd range
zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_range_value_2
IMPORTING e_column_start = lv_col_start_alpha
e_column_end = lv_col_end_alpha
e_row_start = lv_row_start
e_row_end = lv_row_end ).
IF lv_col_start_alpha IS NOT INITIAL.
<worksheet>-worksheet->zif_excel_sheet_printsettings~set_print_repeat_columns( iv_columns_from = lv_col_start_alpha
iv_columns_to = lv_col_end_alpha ).
ENDIF.
IF lv_row_start IS NOT INITIAL.
<worksheet>-worksheet->zif_excel_sheet_printsettings~set_print_repeat_rows( iv_rows_from = lv_row_start
iv_rows_to = lv_row_end ).
ENDIF.
WHEN OTHERS.
ENDCASE.
ENDIF.
*--------------------------------------------------------------------*
* issue#235 - repeat rows/columns - end
*--------------------------------------------------------------------*
ELSE. " issue #163+
lo_range = io_excel->add_new_range( ). " issue #163+
ENDIF. " issue #163+
* lo_range = ip_excel->add_new_range( ). " issue #163-
IF lo_range IS BOUND. "ins issue #235 - repeat rows/cols
lo_range->name = ls_range-name.
lo_range->set_range_value( lv_range_value ).
ENDIF. "ins issue #235 - repeat rows/cols
lo_node ?= lo_node->get_next( ).
ENDWHILE.
endmethod.
METHOD load_worksheet.
*--------------------------------------------------------------------*
* ToDos:
* 2do§1 Header/footer
*
* Please don't just delete these ToDos if they are not
* needed but leave a comment that states this
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker,
* - ...
* changes: renaming variables to naming conventions
* aligning code (started)
* add a list of open ToDos here
* adding comments to explain what we are trying to achieve (started)
*--------------------------------------------------------------------*
* issue #345 - Dump on small pagemargins
* Took the chance to modularize this very long method
* by extracting the code that needed correction into
* own method ( load_worksheet_pagemargins )
*--------------------------------------------------------------------*
TYPES: BEGIN OF lty_cell,
r TYPE string,
t TYPE string,
s TYPE string,
END OF lty_cell.
TYPES: BEGIN OF lty_column,
min TYPE string,
max TYPE string,
width TYPE float,
customwidth TYPE string,
style TYPE string,
bestfit TYPE string,
collapsed TYPE string,
hidden TYPE string,
outlinelevel TYPE string,
END OF lty_column.
TYPES: BEGIN OF lty_sheetview,
showgridlines TYPE zexcel_show_gridlines,
tabselected TYPE string,
zoomscalenormal TYPE string,
workbookviewid TYPE string,
showrowcolheaders TYPE string,
END OF lty_sheetview.
TYPES: BEGIN OF lty_mergecell,
ref TYPE string,
END OF lty_mergecell.
TYPES: BEGIN OF lty_row,
r TYPE string,
customheight TYPE string,
ht TYPE float,
spans TYPE string,
thickbot TYPE string,
customformat TYPE string,
thicktop TYPE string,
collapsed TYPE string,
hidden TYPE string,
outlinelevel TYPE string,
END OF lty_row.
TYPES: BEGIN OF lty_page_setup,
id TYPE string,
orientation TYPE string,
scale TYPE string,
fittoheight TYPE string,
fittowidth TYPE string,
papersize TYPE string,
END OF lty_page_setup.
TYPES: BEGIN OF lty_sheetformatpr,
customheight TYPE string,
defaultrowheight TYPE string,
customwidth TYPE string,
defaultcolwidth TYPE string,
END OF lty_sheetformatpr.
TYPES: BEGIN OF lty_headerfooter,
alignwithmargins TYPE string,
differentoddeven TYPE string,
END OF lty_headerfooter.
TYPES: BEGIN OF lty_tabcolor,
rgb TYPE string,
theme TYPE string,
END OF lty_tabcolor.
TYPES: BEGIN OF lty_datavalidation,
type TYPE zexcel_data_val_type,
allowblank TYPE flag,
showinputmessage TYPE flag,
showerrormessage TYPE flag,
showdropdown TYPE flag,
operator TYPE zexcel_data_val_operator,
formula1 TYPE zexcel_validation_formula1,
formula2 TYPE zexcel_validation_formula1,
sqref TYPE string,
cell_column TYPE zexcel_cell_column_alpha,
cell_column_to TYPE zexcel_cell_column_alpha,
cell_row TYPE zexcel_cell_row,
cell_row_to TYPE zexcel_cell_row,
error TYPE string,
errortitle TYPE string,
prompt TYPE string,
prompttitle TYPE string,
errorstyle TYPE zexcel_data_val_error_style,
END OF lty_datavalidation.
CONSTANTS: lc_xml_attr_true TYPE string VALUE 'true',
lc_xml_attr_true_int TYPE string VALUE '1',
lc_rel_drawing TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing',
lc_rel_hyperlink TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink',
lc_rel_printer TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings'.
DATA: lo_ixml_worksheet TYPE REF TO if_ixml_document,
lo_ixml_cells TYPE REF TO if_ixml_node_collection,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lo_ixml_iterator2 TYPE REF TO if_ixml_node_iterator,
lo_ixml_row_elem TYPE REF TO if_ixml_element,
lo_ixml_cell_elem TYPE REF TO if_ixml_element,
ls_cell TYPE lty_cell,
lv_index TYPE i,
lo_ixml_value_elem TYPE REF TO if_ixml_element,
lo_ixml_formula_elem TYPE REF TO if_ixml_element,
lv_cell_value TYPE zexcel_cell_value,
lv_cell_formula TYPE zexcel_cell_formula,
lv_cell_column TYPE zexcel_cell_column_alpha,
lv_cell_row TYPE zexcel_cell_row,
lo_excel_style TYPE REF TO zcl_excel_style,
lv_style_guid TYPE zexcel_cell_style,
lo_ixml_imension_elem TYPE REF TO if_ixml_element, "#+234
lv_dimension_range TYPE string, "#+234
lo_ixml_sheetview_elem TYPE REF TO if_ixml_element,
ls_sheetview TYPE lty_sheetview,
lo_ixml_pane_elem TYPE REF TO if_ixml_element,
ls_excel_pane TYPE zexcel_pane,
lv_pane_cell_row TYPE zexcel_cell_row,
lv_pane_cell_col_a TYPE zexcel_cell_column_alpha,
lv_pane_cell_col TYPE zexcel_cell_column,
lo_ixml_mergecells TYPE REF TO if_ixml_node_collection,
lo_ixml_mergecell_elem TYPE REF TO if_ixml_element,
ls_mergecell TYPE lty_mergecell,
lv_merge_column_start TYPE zexcel_cell_column_alpha,
lv_merge_column_end TYPE zexcel_cell_column_alpha,
lv_merge_row_start TYPE zexcel_cell_row,
lv_merge_row_end TYPE zexcel_cell_row,
lo_ixml_sheetformatpr_elem TYPE REF TO if_ixml_element,
ls_sheetformatpr TYPE lty_sheetformatpr,
lv_height TYPE float,
lo_ixml_headerfooter_elem TYPE REF TO if_ixml_element,
ls_headerfooter TYPE lty_headerfooter,
ls_odd_header TYPE zexcel_s_worksheet_head_foot,
ls_odd_footer TYPE zexcel_s_worksheet_head_foot,
ls_even_header TYPE zexcel_s_worksheet_head_foot,
ls_even_footer TYPE zexcel_s_worksheet_head_foot,
lo_ixml_hf_value_elem TYPE REF TO if_ixml_element,
lo_ixml_pagesetup_elem TYPE REF TO if_ixml_element,
lo_ixml_sheetpr TYPE REF TO if_ixml_element,
lv_fit_to_page TYPE string,
ls_pagesetup TYPE lty_page_setup,
lo_ixml_columns TYPE REF TO if_ixml_node_collection,
lo_ixml_column_elem TYPE REF TO if_ixml_element,
ls_column TYPE lty_column,
lv_column_alpha TYPE zexcel_cell_column_alpha,
lo_column TYPE REF TO zcl_excel_column,
lv_outline_level TYPE int4,
lo_ixml_tabcolor TYPE REF TO if_ixml_element,
ls_tabcolor TYPE lty_tabcolor,
ls_excel_s_tabcolor TYPE zexcel_s_tabcolor,
lo_ixml_rows TYPE REF TO if_ixml_node_collection,
ls_row TYPE lty_row,
lv_max_col TYPE i, "for use with SPANS element
* lv_min_col TYPE i, "for use with SPANS element " not in use currently
lv_max_col_s TYPE char10, "for use with SPANS element
lv_min_col_s TYPE char10, "for use with SPANS element
lo_row TYPE REF TO zcl_excel_row,
*--- End of current code aligning -------------------------------------------------------------------
lv_path TYPE string,
lo_ixml_node TYPE REF TO if_ixml_element,
ls_relationship TYPE t_relationship,
lo_ixml_rels_worksheet TYPE REF TO if_ixml_document,
lv_rels_worksheet_path TYPE string,
lv_stripped_name TYPE chkfile,
lv_dirname TYPE string,
lt_external_hyperlinks TYPE gtt_external_hyperlinks,
ls_external_hyperlink LIKE LINE OF lt_external_hyperlinks,
lo_ixml_datavalidations TYPE REF TO if_ixml_node_collection,
lo_ixml_datavalidation_elem TYPE REF TO if_ixml_element,
ls_datavalidation TYPE lty_datavalidation,
lo_data_validation TYPE REF TO zcl_excel_data_validation,
lv_datavalidation_range TYPE string,
lt_datavalidation_range TYPE TABLE OF string,
ex TYPE REF TO cx_root.
*--------------------------------------------------------------------*
* §2 We need to read the the file "\\_rels\.rels" because it tells
* us where in this folder structure the data for the workbook
* is located in the xlsx zip-archive
*
* The xlsx Zip-archive has generally the following folder structure:
* <root> |
* |--> _rels
* |--> doc_Props
* |--> xl |
* |--> _rels
* |--> theme
* |--> worksheets
*--------------------------------------------------------------------*
" Read Workbook Relationships
CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH'
EXPORTING
full_name = ip_path
IMPORTING
stripped_name = lv_stripped_name
file_path = lv_dirname.
CONCATENATE lv_dirname '_rels/' lv_stripped_name '.rels'
INTO lv_rels_worksheet_path.
TRY. " +#222 _rels/xxx.rels might not be present. If not found there can be no drawings --> just ignore this section
lo_ixml_rels_worksheet = me->get_ixml_from_zip_archive( lv_rels_worksheet_path ).
lo_ixml_node ?= lo_ixml_rels_worksheet->find_from_name( 'Relationship' ).
CATCH zcx_excel. "#EC NO_HANDLER +#222
" +#222 No errorhandling necessary - node will be unbound if error occurs
ENDTRY. " +#222
WHILE lo_ixml_node IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_ixml_node
CHANGING
cp_structure = ls_relationship ).
CONCATENATE lv_dirname ls_relationship-target INTO lv_path.
lv_path = resolve_path( lv_path ).
CASE ls_relationship-type.
WHEN lc_rel_drawing.
" Read Drawings
* Issue # 339 Not all drawings are in the path mentioned below.
* Some Excel elements like textfields (which we don't support ) have a drawing-part in the relationsships
* but no "xl/drawings/_rels/drawing____.xml.rels" part.
* Since we don't support these there is no need to read them. Catching exceptions thrown
* in the "load_worksheet_drawing" shouldn't lead to an abortion of the reading
TRY.
me->load_worksheet_drawing( ip_path = lv_path
io_worksheet = io_worksheet ).
CATCH zcx_excel. "--> then ignore it
ENDTRY.
WHEN lc_rel_printer.
" Read Printer settings
WHEN lc_rel_hyperlink.
MOVE-CORRESPONDING ls_relationship TO ls_external_hyperlink.
INSERT ls_external_hyperlink INTO TABLE lt_external_hyperlinks.
WHEN OTHERS.
ENDCASE.
lo_ixml_node ?= lo_ixml_node->get_next( ).
ENDWHILE.
lo_ixml_worksheet = me->get_ixml_from_zip_archive( ip_path ).
lo_ixml_tabcolor ?= lo_ixml_worksheet->find_from_name( 'tabColor' ).
IF lo_ixml_tabcolor IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_ixml_tabcolor
CHANGING
cp_structure = ls_tabcolor ).
* Theme not supported yet
IF ls_tabcolor-rgb IS NOT INITIAL.
ls_excel_s_tabcolor-rgb = ls_tabcolor-rgb.
io_worksheet->set_tabcolor( ls_excel_s_tabcolor ).
ENDIF.
ENDIF.
lo_ixml_rows = lo_ixml_worksheet->get_elements_by_tag_name( name = 'row' ).
lo_ixml_iterator = lo_ixml_rows->create_iterator( ).
lo_ixml_row_elem ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml_row_elem IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_ixml_row_elem
CHANGING
cp_structure = ls_row ).
SPLIT ls_row-spans AT ':' INTO lv_min_col_s lv_max_col_s.
lv_index = lv_max_col_s.
IF lv_index > lv_max_col.
lv_max_col = lv_index.
ENDIF.
lv_cell_row = ls_row-r.
lo_row = io_worksheet->get_row( lv_cell_row ).
IF ls_row-customheight = '1'.
lo_row->set_row_height( ip_row_height = ls_row-ht ip_custom_height = abap_true ).
ELSE.
lo_row->set_row_height( ip_row_height = ls_row-ht ip_custom_height = abap_false ).
ENDIF.
IF ls_row-collapsed = lc_xml_attr_true
OR ls_row-collapsed = lc_xml_attr_true_int.
lo_row->set_collapsed( abap_true ).
ENDIF.
IF ls_row-hidden = lc_xml_attr_true
OR ls_row-hidden = lc_xml_attr_true_int.
lo_row->set_visible( abap_false ).
ENDIF.
IF ls_row-outlinelevel > ''.
* outline_level = condense( row-outlineLevel ). "For basis 7.02 and higher
CONDENSE ls_row-outlinelevel.
lv_outline_level = ls_row-outlinelevel.
IF lv_outline_level > 0.
lo_row->set_outline_level( lv_outline_level ).
ENDIF.
ENDIF.
lo_ixml_cells = lo_ixml_row_elem->get_elements_by_tag_name( name = 'c' ).
lo_ixml_iterator2 = lo_ixml_cells->create_iterator( ).
lo_ixml_cell_elem ?= lo_ixml_iterator2->get_next( ).
WHILE lo_ixml_cell_elem IS BOUND.
CLEAR: lv_cell_value,
lv_cell_formula,
lv_style_guid.
fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_cell_elem CHANGING cp_structure = ls_cell ).
lo_ixml_value_elem = lo_ixml_cell_elem->find_from_name( name = 'v' ).
CASE ls_cell-t.
WHEN 's'. " String values are stored as index in shared string table
IF lo_ixml_value_elem IS BOUND.
lv_index = lo_ixml_value_elem->get_value( ) + 1.
READ TABLE shared_strings INTO lv_cell_value INDEX lv_index.
ENDIF.
WHEN 'inlineStr'. " inlineStr values are kept in special node
lo_ixml_value_elem = lo_ixml_cell_elem->find_from_name( name = 'is' ).
IF lo_ixml_value_elem IS BOUND.
lv_cell_value = lo_ixml_value_elem->get_value( ).
ENDIF.
WHEN OTHERS. "other types are stored directly
IF lo_ixml_value_elem IS BOUND.
lv_cell_value = lo_ixml_value_elem->get_value( ).
ENDIF.
ENDCASE.
CLEAR lv_style_guid.
"read style based on index
IF ls_cell-s IS NOT INITIAL.
lv_index = ls_cell-s + 1.
READ TABLE styles INTO lo_excel_style INDEX lv_index.
IF sy-subrc = 0.
lv_style_guid = lo_excel_style->get_guid( ).
ENDIF.
ENDIF.
lo_ixml_formula_elem = lo_ixml_cell_elem->find_from_name( name = 'f' ).
IF lo_ixml_formula_elem IS BOUND.
lv_cell_formula = lo_ixml_formula_elem->get_value( ).
*--------------------------------------------------------------------*
* Begin of insertion issue#284 - Copied formulae not
*--------------------------------------------------------------------*
DATA: BEGIN OF ls_formula_attributes,
ref TYPE string,
si TYPE i,
t TYPE string,
END OF ls_formula_attributes,
ls_ref_formula TYPE ty_ref_formulae.
fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_formula_elem CHANGING cp_structure = ls_formula_attributes ).
IF ls_formula_attributes-t = 'shared'.
zcl_excel_common=>convert_columnrow2column_a_row( EXPORTING
i_columnrow = ls_cell-r
IMPORTING
e_column = lv_cell_column
e_row = lv_cell_row ).
TRY.
CLEAR ls_ref_formula.
ls_ref_formula-sheet = io_worksheet.
ls_ref_formula-row = lv_cell_row.
ls_ref_formula-column = zcl_excel_common=>convert_column2int( lv_cell_column ).
ls_ref_formula-si = ls_formula_attributes-si.
ls_ref_formula-ref = ls_formula_attributes-ref.
ls_ref_formula-formula = lv_cell_formula.
INSERT ls_ref_formula INTO TABLE me->mt_ref_formulae.
CATCH cx_root INTO ex.
RAISE EXCEPTION TYPE zcx_excel
EXPORTING
previous = ex.
ENDTRY.
ENDIF.
*--------------------------------------------------------------------*
* End of insertion issue#284 - Copied formulae not
*--------------------------------------------------------------------*
ENDIF.
IF lv_cell_value IS NOT INITIAL
OR lv_cell_formula IS NOT INITIAL
OR lv_style_guid IS NOT INITIAL.
zcl_excel_common=>convert_columnrow2column_a_row( EXPORTING
i_columnrow = ls_cell-r
IMPORTING
e_column = lv_cell_column
e_row = lv_cell_row ).
io_worksheet->set_cell( ip_column = lv_cell_column " cell_elem Column
ip_row = lv_cell_row " cell_elem row_elem
ip_value = lv_cell_value " cell_elem Value
ip_formula = lv_cell_formula
ip_data_type = ls_cell-t
ip_style = lv_style_guid ).
ENDIF.
lo_ixml_cell_elem ?= lo_ixml_iterator2->get_next( ).
ENDWHILE.
lo_ixml_row_elem ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
*--------------------------------------------------------------------*
*#234 - column width not read correctly - begin of coding
* reason - libre office doesn't use SPAN in row - definitions
*--------------------------------------------------------------------*
IF lv_max_col = 0.
lo_ixml_imension_elem = lo_ixml_worksheet->find_from_name( name = 'dimension' ).
IF lo_ixml_imension_elem IS BOUND.
lv_dimension_range = lo_ixml_imension_elem->get_attribute( 'ref' ).
IF lv_dimension_range CS ':'.
REPLACE REGEX '\D+\d+:(\D+)\d+' IN lv_dimension_range WITH '$1'. " Get max column
ELSE.
REPLACE REGEX '(\D+)\d+' IN lv_dimension_range WITH '$1'. " Get max column
ENDIF.
lv_max_col = zcl_excel_common=>convert_column2int( lv_dimension_range ).
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
*#234 - column width not read correctly - end of coding
*--------------------------------------------------------------------*
"Get the customized column width
lo_ixml_columns = lo_ixml_worksheet->get_elements_by_tag_name( name = 'col' ).
lo_ixml_iterator = lo_ixml_columns->create_iterator( ).
lo_ixml_column_elem ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml_column_elem IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_ixml_column_elem
CHANGING
cp_structure = ls_column ).
lo_ixml_column_elem ?= lo_ixml_iterator->get_next( ).
IF ls_column-customwidth = lc_xml_attr_true
OR ls_column-customwidth = lc_xml_attr_true_int
OR ls_column-bestfit = lc_xml_attr_true
OR ls_column-bestfit = lc_xml_attr_true_int
OR ls_column-collapsed = lc_xml_attr_true
OR ls_column-collapsed = lc_xml_attr_true_int
OR ls_column-hidden = lc_xml_attr_true
OR ls_column-hidden = lc_xml_attr_true_int
OR ls_column-outlinelevel > ''
OR ls_column-style > ''.
lv_index = ls_column-min.
WHILE lv_index <= ls_column-max AND lv_index <= lv_max_col.
lv_column_alpha = zcl_excel_common=>convert_column2alpha( lv_index ).
lo_column = io_worksheet->get_column( lv_column_alpha ).
IF ls_column-customwidth = lc_xml_attr_true
OR ls_column-customwidth = lc_xml_attr_true_int
OR ls_column-width IS NOT INITIAL. "+#234
lo_column->set_width( ls_column-width ).
ENDIF.
IF ls_column-bestfit = lc_xml_attr_true
OR ls_column-bestfit = lc_xml_attr_true_int.
lo_column->set_auto_size( abap_true ).
ENDIF.
IF ls_column-collapsed = lc_xml_attr_true
OR ls_column-collapsed = lc_xml_attr_true_int.
lo_column->set_collapsed( abap_true ).
ENDIF.
IF ls_column-hidden = lc_xml_attr_true
OR ls_column-hidden = lc_xml_attr_true_int.
lo_column->set_visible( abap_false ).
ENDIF.
IF ls_column-outlinelevel > ''.
* outline_level = condense( column-outlineLevel ).
CONDENSE ls_column-outlinelevel.
lv_outline_level = ls_column-outlinelevel.
IF lv_outline_level > 0.
lo_column->set_outline_level( lv_outline_level ).
ENDIF.
ENDIF.
IF ls_column-style > ''.
sy-index = ls_column-style + 1.
READ TABLE styles INTO lo_excel_style INDEX sy-index.
DATA: dummy_zexcel_cell_style TYPE zexcel_cell_style.
dummy_zexcel_cell_style = lo_excel_style->get_guid( ).
lo_column->set_column_style_by_guid( dummy_zexcel_cell_style ).
ENDIF.
ADD 1 TO lv_index.
ENDWHILE.
ENDIF.
* issue #367 - hide columns from
IF ls_column-max = zcl_excel_common=>c_excel_sheet_max_col. " Max = very right column
IF ls_column-hidden = 1 " all hidden
AND ls_column-min > 0.
io_worksheet->zif_excel_sheet_properties~hide_columns_from = zcl_excel_common=>convert_column2alpha( ls_column-min ).
ELSEIF ls_column-style > ''.
sy-index = ls_column-style + 1.
READ TABLE styles INTO lo_excel_style INDEX sy-index.
dummy_zexcel_cell_style = lo_excel_style->get_guid( ).
* Set style for remaining columns
io_worksheet->zif_excel_sheet_properties~set_style( dummy_zexcel_cell_style ).
ENDIF.
ENDIF.
ENDWHILE.
"Now we need to get information from the sheetView node
lo_ixml_sheetview_elem = lo_ixml_worksheet->find_from_name( name = 'sheetView' ).
fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_sheetview_elem CHANGING cp_structure = ls_sheetview ).
IF ls_sheetview-showgridlines IS INITIAL OR
ls_sheetview-showgridlines = lc_xml_attr_true OR
ls_sheetview-showgridlines = lc_xml_attr_true_int.
"If the attribute is not specified or set to true, we will show grid lines
ls_sheetview-showgridlines = abap_true.
ELSE.
ls_sheetview-showgridlines = abap_false.
ENDIF.
io_worksheet->set_show_gridlines( ls_sheetview-showgridlines ).
"Add merge cell information
lo_ixml_mergecells = lo_ixml_worksheet->get_elements_by_tag_name( name = 'mergeCell' ).
lo_ixml_iterator = lo_ixml_mergecells->create_iterator( ).
lo_ixml_mergecell_elem ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml_mergecell_elem IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_ixml_mergecell_elem
CHANGING
cp_structure = ls_mergecell ).
zcl_excel_common=>convert_range2column_a_row( EXPORTING
i_range = ls_mergecell-ref
IMPORTING
e_column_start = lv_merge_column_start
e_column_end = lv_merge_column_end
e_row_start = lv_merge_row_start
e_row_end = lv_merge_row_end ).
lo_ixml_mergecell_elem ?= lo_ixml_iterator->get_next( ).
io_worksheet->set_merge( EXPORTING
ip_column_start = lv_merge_column_start
ip_column_end = lv_merge_column_end
ip_row = lv_merge_row_start
ip_row_to = lv_merge_row_end ).
ENDWHILE.
" read sheet format properties
lo_ixml_sheetformatpr_elem = lo_ixml_worksheet->find_from_name( 'sheetFormatPr' ).
IF lo_ixml_sheetformatpr_elem IS NOT INITIAL.
fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_sheetformatpr_elem CHANGING cp_structure = ls_sheetformatpr ).
IF ls_sheetformatpr-customheight = '1'.
lv_height = ls_sheetformatpr-defaultrowheight.
lo_row = io_worksheet->get_default_row( ).
lo_row->set_row_height( lv_height ).
ENDIF.
" TODO... column
ENDIF.
" Read in page margins
me->load_worksheet_pagemargins( EXPORTING
io_ixml_worksheet = lo_ixml_worksheet
io_worksheet = io_worksheet ).
* FitToPage
lo_ixml_sheetpr ?= lo_ixml_worksheet->find_from_name( 'pageSetUpPr' ).
IF lo_ixml_sheetpr IS BOUND.
lv_fit_to_page = lo_ixml_sheetpr->get_attribute_ns( 'fitToPage' ).
IF lv_fit_to_page IS NOT INITIAL.
io_worksheet->sheet_setup->fit_to_page = 'X'.
ENDIF.
ENDIF.
" Read in page setup
lo_ixml_pagesetup_elem = lo_ixml_worksheet->find_from_name( 'pageSetup' ).
IF lo_ixml_pagesetup_elem IS NOT INITIAL.
fill_struct_from_attributes( EXPORTING
ip_element = lo_ixml_pagesetup_elem
CHANGING
cp_structure = ls_pagesetup ).
io_worksheet->sheet_setup->orientation = ls_pagesetup-orientation.
io_worksheet->sheet_setup->scale = ls_pagesetup-scale.
io_worksheet->sheet_setup->paper_size = ls_pagesetup-papersize.
IF io_worksheet->sheet_setup->fit_to_page = 'X'.
IF ls_pagesetup-fittowidth IS NOT INITIAL.
io_worksheet->sheet_setup->fit_to_width = ls_pagesetup-fittowidth.
ELSE.
io_worksheet->sheet_setup->fit_to_width = 1. " Default if not given - Excel doesn't write this to xml
ENDIF.
IF ls_pagesetup-fittoheight IS NOT INITIAL.
io_worksheet->sheet_setup->fit_to_height = ls_pagesetup-fittoheight.
ELSE.
io_worksheet->sheet_setup->fit_to_height = 1. " Default if not given - Excel doesn't write this to xml
ENDIF.
ENDIF.
ENDIF.
" Read header footer
lo_ixml_headerfooter_elem = lo_ixml_worksheet->find_from_name( 'headerFooter' ).
IF lo_ixml_headerfooter_elem IS NOT INITIAL.
fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_headerfooter_elem CHANGING cp_structure = ls_headerfooter ).
io_worksheet->sheet_setup->diff_oddeven_headerfooter = ls_headerfooter-differentoddeven.
lo_ixml_hf_value_elem = lo_ixml_headerfooter_elem->find_from_name( 'oddFooter' ).
IF lo_ixml_hf_value_elem IS NOT INITIAL.
ls_odd_footer-left_value = lo_ixml_hf_value_elem->get_value( ).
ENDIF.
* 2do§1 Header/footer
" TODO.. get the rest.
io_worksheet->sheet_setup->set_header_footer( ip_odd_header = ls_odd_header
ip_odd_footer = ls_odd_footer
ip_even_header = ls_even_header
ip_even_footer = ls_even_footer ).
ENDIF.
" Start fix 194 Read attributes HIDDEN, OUTLINELEVEL, COLLAPSED in ZCL_EXCEL_READER_2007
" Read pane
lo_ixml_pane_elem = lo_ixml_sheetview_elem->find_from_name( name = 'pane' ).
IF lo_ixml_pane_elem IS BOUND.
fill_struct_from_attributes( EXPORTING ip_element = lo_ixml_pane_elem CHANGING cp_structure = ls_excel_pane ).
" Issue #194
" Replace REGEX with method from the common class
zcl_excel_common=>convert_columnrow2column_a_row( EXPORTING
i_columnrow = ls_excel_pane-topleftcell
IMPORTING
e_column = lv_pane_cell_col_a " Cell Column
e_row = lv_pane_cell_row ). " Natural number
lv_pane_cell_col = zcl_excel_common=>convert_column2int( lv_pane_cell_col_a ).
SUBTRACT 1 FROM: lv_pane_cell_col,
lv_pane_cell_row.
IF lv_pane_cell_col > 0
AND lv_pane_cell_row > 0.
io_worksheet->freeze_panes( ip_num_rows = lv_pane_cell_row
ip_num_columns = lv_pane_cell_col ).
ELSEIF lv_pane_cell_row > 0.
io_worksheet->freeze_panes( ip_num_rows = lv_pane_cell_row ).
ELSE.
io_worksheet->freeze_panes( ip_num_columns = lv_pane_cell_col ).
ENDIF.
ENDIF.
" End fix 194 Read attributes HIDDEN, OUTLINELEVEL, COLLAPSED in ZCL_EXCEL_READER_2007
" Start fix 276 Read data validations
lo_ixml_datavalidations = lo_ixml_worksheet->get_elements_by_tag_name( name = 'dataValidation' ).
lo_ixml_iterator = lo_ixml_datavalidations->create_iterator( ).
lo_ixml_datavalidation_elem ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml_datavalidation_elem IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_ixml_datavalidation_elem
CHANGING
cp_structure = ls_datavalidation ).
CLEAR lo_ixml_formula_elem.
lo_ixml_formula_elem = lo_ixml_datavalidation_elem->find_from_name( name = 'formula1' ).
IF lo_ixml_formula_elem IS BOUND.
ls_datavalidation-formula1 = lo_ixml_formula_elem->get_value( ).
ENDIF.
CLEAR lo_ixml_formula_elem.
lo_ixml_formula_elem = lo_ixml_datavalidation_elem->find_from_name( name = 'formula2' ).
IF lo_ixml_formula_elem IS BOUND.
ls_datavalidation-formula2 = lo_ixml_formula_elem->get_value( ).
ENDIF.
SPLIT ls_datavalidation-sqref AT space INTO TABLE lt_datavalidation_range.
LOOP AT lt_datavalidation_range INTO lv_datavalidation_range.
zcl_excel_common=>convert_range2column_a_row( EXPORTING
i_range = lv_datavalidation_range
IMPORTING
e_column_start = ls_datavalidation-cell_column
e_column_end = ls_datavalidation-cell_column_to
e_row_start = ls_datavalidation-cell_row
e_row_end = ls_datavalidation-cell_row_to ).
lo_data_validation = io_worksheet->add_new_data_validation( ).
lo_data_validation->type = ls_datavalidation-type.
lo_data_validation->allowblank = ls_datavalidation-allowblank.
IF ls_datavalidation-showinputmessage IS INITIAL.
lo_data_validation->showinputmessage = abap_false.
ELSE.
lo_data_validation->showinputmessage = abap_true.
ENDIF.
IF ls_datavalidation-showerrormessage IS INITIAL.
lo_data_validation->showerrormessage = abap_false.
ELSE.
lo_data_validation->showerrormessage = abap_true.
ENDIF.
IF ls_datavalidation-showdropdown IS INITIAL.
lo_data_validation->showdropdown = abap_false.
ELSE.
lo_data_validation->showdropdown = abap_true.
ENDIF.
lo_data_validation->operator = ls_datavalidation-operator.
lo_data_validation->formula1 = ls_datavalidation-formula1.
lo_data_validation->formula2 = ls_datavalidation-formula2.
lo_data_validation->prompttitle = ls_datavalidation-prompttitle.
lo_data_validation->prompt = ls_datavalidation-prompt.
lo_data_validation->errortitle = ls_datavalidation-errortitle.
lo_data_validation->error = ls_datavalidation-error.
lo_data_validation->errorstyle = ls_datavalidation-errorstyle.
lo_data_validation->cell_row = ls_datavalidation-cell_row.
lo_data_validation->cell_row_to = ls_datavalidation-cell_row_to.
lo_data_validation->cell_column = ls_datavalidation-cell_column.
lo_data_validation->cell_column_to = ls_datavalidation-cell_column_to.
ENDLOOP.
lo_ixml_datavalidation_elem ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
" End fix 276 Read data validations
" Read hyperlinks
TRY.
me->load_worksheet_hyperlinks( io_ixml_worksheet = lo_ixml_worksheet
io_worksheet = io_worksheet
it_external_hyperlinks = lt_external_hyperlinks ).
CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify
ENDTRY.
TRY.
me->fill_row_outlines( io_worksheet = io_worksheet ).
CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify
ENDTRY.
" Issue #366 - conditional formatting
TRY.
me->load_worksheet_cond_format( io_ixml_worksheet = lo_ixml_worksheet
io_worksheet = io_worksheet ).
CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify
ENDTRY.
" Issue #377 - pagebreaks
TRY.
me->load_worksheet_pagebreaks( io_ixml_worksheet = lo_ixml_worksheet
io_worksheet = io_worksheet ).
CATCH zcx_excel. " Ignore pagebreak reading errors - pass everything we were able to identify
ENDTRY.
ENDMETHOD.
METHOD load_worksheet_cond_format.
DATA: lo_ixml_cond_formats TYPE REF TO if_ixml_node_collection,
lo_ixml_cond_format TYPE REF TO if_ixml_element,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lo_ixml_rules TYPE REF TO if_ixml_node_collection,
lo_ixml_rule TYPE REF TO if_ixml_element,
lo_ixml_iterator2 TYPE REF TO if_ixml_node_iterator,
lo_style_cond TYPE REF TO zcl_excel_style_cond,
lo_style_cond2 TYPE REF TO zcl_excel_style_cond.
DATA: lv_area TYPE string,
lt_areas TYPE STANDARD TABLE OF string WITH NON-UNIQUE DEFAULT KEY,
lv_area_start_row TYPE zexcel_cell_row,
lv_area_end_row TYPE zexcel_cell_row,
lv_area_start_col TYPE zexcel_cell_column_alpha,
lv_area_end_col TYPE zexcel_cell_column_alpha,
lv_rule TYPE zexcel_condition_rule.
* FIELD-SYMBOLS: <ls_external_hyperlink> LIKE LINE OF it_external_hyperlinks.
lo_ixml_cond_formats = io_ixml_worksheet->get_elements_by_tag_name( name = 'conditionalFormatting' ).
lo_ixml_iterator = lo_ixml_cond_formats->create_iterator( ).
lo_ixml_cond_format ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml_cond_format IS BOUND.
CLEAR: lv_area,
lo_ixml_rule,
lo_style_cond.
*--------------------------------------------------------------------*
* Get type of rule
*--------------------------------------------------------------------*
lo_ixml_rules = lo_ixml_cond_format->get_elements_by_tag_name( name = 'cfRule' ).
lo_ixml_iterator2 = lo_ixml_rules->create_iterator( ).
lo_ixml_rule ?= lo_ixml_iterator2->get_next( ).
WHILE lo_ixml_rule IS BOUND.
lv_rule = lo_ixml_rule->get_attribute_ns( 'type' ).
CLEAR lo_style_cond.
*--------------------------------------------------------------------*
* Depending on ruletype get additional information
*--------------------------------------------------------------------*
CASE lv_rule.
WHEN zcl_excel_style_cond=>c_rule_cellis.
lo_style_cond = io_worksheet->add_new_style_cond( '' ).
load_worksheet_cond_format_ci( io_ixml_rule = lo_ixml_rule
io_style_cond = lo_style_cond ).
WHEN zcl_excel_style_cond=>c_rule_databar.
lo_style_cond = io_worksheet->add_new_style_cond( '' ).
load_worksheet_cond_format_db( io_ixml_rule = lo_ixml_rule
io_style_cond = lo_style_cond ).
WHEN zcl_excel_style_cond=>c_rule_expression.
lo_style_cond = io_worksheet->add_new_style_cond( '' ).
load_worksheet_cond_format_ex( io_ixml_rule = lo_ixml_rule
io_style_cond = lo_style_cond ).
WHEN zcl_excel_style_cond=>c_rule_iconset.
lo_style_cond = io_worksheet->add_new_style_cond( '' ).
load_worksheet_cond_format_is( io_ixml_rule = lo_ixml_rule
io_style_cond = lo_style_cond ).
WHEN zcl_excel_style_cond=>c_rule_colorscale.
lo_style_cond = io_worksheet->add_new_style_cond( '' ).
load_worksheet_cond_format_cs( io_ixml_rule = lo_ixml_rule
io_style_cond = lo_style_cond ).
WHEN zcl_excel_style_cond=>c_rule_top10.
lo_style_cond = io_worksheet->add_new_style_cond( '' ).
load_worksheet_cond_format_t10( io_ixml_rule = lo_ixml_rule
io_style_cond = lo_style_cond ).
WHEN zcl_excel_style_cond=>c_rule_above_average.
lo_style_cond = io_worksheet->add_new_style_cond( '' ).
load_worksheet_cond_format_aa( io_ixml_rule = lo_ixml_rule
io_style_cond = lo_style_cond ).
WHEN OTHERS.
ENDCASE.
IF lo_style_cond IS BOUND.
lo_style_cond->rule = lv_rule.
lo_style_cond->priority = lo_ixml_rule->get_attribute_ns( 'priority' ).
*--------------------------------------------------------------------*
* Set area to which conditional formatting belongs
*--------------------------------------------------------------------*
lv_area = lo_ixml_cond_format->get_attribute_ns( 'sqref' ).
SPLIT lv_area AT space INTO TABLE lt_areas.
DELETE lt_areas WHERE table_line IS INITIAL.
LOOP AT lt_areas INTO lv_area.
zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = lv_area
IMPORTING e_column_start = lv_area_start_col
e_column_end = lv_area_end_col
e_row_start = lv_area_start_row
e_row_end = lv_area_end_row ).
lo_style_cond->add_range( ip_start_column = lv_area_start_col
ip_stop_column = lv_area_end_col
ip_start_row = lv_area_start_row
ip_stop_row = lv_area_end_row ).
ENDLOOP.
ENDIF.
lo_ixml_rule ?= lo_ixml_iterator2->get_next( ).
ENDWHILE.
lo_ixml_cond_format ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD load_worksheet_cond_format_aa.
DATA: lv_dxf_style_index TYPE i,
val TYPE string.
FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF me->mt_dxf_styles.
*--------------------------------------------------------------------*
* above or below average
*--------------------------------------------------------------------*
val = io_ixml_rule->get_attribute_ns( 'aboveAverage' ).
IF val = '0'. " 0 = below average
io_style_cond->mode_above_average-above_average = space.
ELSE.
io_style_cond->mode_above_average-above_average = 'X'. " Not present or <> 0 --> we use above average
ENDIF.
*--------------------------------------------------------------------*
* Equal average also?
*--------------------------------------------------------------------*
CLEAR val.
val = io_ixml_rule->get_attribute_ns( 'equalAverage' ).
IF val = '1'. " 0 = below average
io_style_cond->mode_above_average-equal_average = 'X'.
ELSE.
io_style_cond->mode_above_average-equal_average = ' '. " Not present or <> 1 --> we use not equal average
ENDIF.
*--------------------------------------------------------------------*
* Standard deviation instead of value ( 2nd stddev, 3rd stdev )
*--------------------------------------------------------------------*
CLEAR val.
val = io_ixml_rule->get_attribute_ns( 'stdDev' ).
CASE val.
WHEN 1
OR 2
OR 3. " These seem to be supported by excel - don't try anything more
io_style_cond->mode_above_average-standard_deviation = val.
ENDCASE.
*--------------------------------------------------------------------*
* Cell formatting for top10
*--------------------------------------------------------------------*
lv_dxf_style_index = io_ixml_rule->get_attribute_ns( 'dxfId' ).
READ TABLE me->mt_dxf_styles ASSIGNING <ls_dxf_style> WITH KEY dxf = lv_dxf_style_index.
IF sy-subrc = 0.
io_style_cond->mode_above_average-cell_style = <ls_dxf_style>-guid.
ENDIF.
ENDMETHOD.
METHOD load_worksheet_cond_format_ci.
DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lo_ixml TYPE REF TO if_ixml_element,
lv_dxf_style_index TYPE i,
lo_excel_style LIKE LINE OF me->styles.
FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF me->mt_dxf_styles.
io_style_cond->mode_cellis-operator = io_ixml_rule->get_attribute_ns( 'operator' ).
lv_dxf_style_index = io_ixml_rule->get_attribute_ns( 'dxfId' ).
READ TABLE me->mt_dxf_styles ASSIGNING <ls_dxf_style> WITH KEY dxf = lv_dxf_style_index.
IF sy-subrc = 0.
io_style_cond->mode_cellis-cell_style = <ls_dxf_style>-guid.
ENDIF.
lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name( 'formula' ).
lo_ixml_iterator = lo_ixml_nodes->create_iterator( ).
lo_ixml ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml IS BOUND.
CASE sy-index.
WHEN 1.
io_style_cond->mode_cellis-formula = lo_ixml->get_value( ).
WHEN 2.
io_style_cond->mode_cellis-formula2 = lo_ixml->get_value( ).
WHEN OTHERS.
EXIT.
ENDCASE.
lo_ixml ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD load_worksheet_cond_format_cs.
DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lo_ixml TYPE REF TO if_ixml_element.
lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name( 'cfvo' ).
lo_ixml_iterator = lo_ixml_nodes->create_iterator( ).
lo_ixml ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml IS BOUND.
CASE sy-index.
WHEN 1.
io_style_cond->mode_colorscale-cfvo1_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_colorscale-cfvo1_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN 2.
io_style_cond->mode_colorscale-cfvo2_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_colorscale-cfvo2_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN 3.
io_style_cond->mode_colorscale-cfvo3_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_colorscale-cfvo2_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN OTHERS.
EXIT.
ENDCASE.
lo_ixml ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name( 'color' ).
lo_ixml_iterator = lo_ixml_nodes->create_iterator( ).
lo_ixml ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml IS BOUND.
CASE sy-index.
WHEN 1.
io_style_cond->mode_colorscale-colorrgb1 = lo_ixml->get_attribute_ns( 'rgb' ).
WHEN 2.
io_style_cond->mode_colorscale-colorrgb2 = lo_ixml->get_attribute_ns( 'rgb' ).
WHEN 3.
io_style_cond->mode_colorscale-colorrgb3 = lo_ixml->get_attribute_ns( 'rgb' ).
WHEN OTHERS.
EXIT.
ENDCASE.
lo_ixml ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD load_worksheet_cond_format_db.
DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lo_ixml TYPE REF TO if_ixml_element.
lo_ixml ?= io_ixml_rule->find_from_name( 'color' ).
IF lo_ixml IS BOUND.
io_style_cond->mode_databar-colorrgb = lo_ixml->get_attribute_ns( 'rgb' ).
ENDIF.
lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name( 'cfvo' ).
lo_ixml_iterator = lo_ixml_nodes->create_iterator( ).
lo_ixml ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml IS BOUND.
CASE sy-index.
WHEN 1.
io_style_cond->mode_databar-cfvo1_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_databar-cfvo1_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN 2.
io_style_cond->mode_databar-cfvo2_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_databar-cfvo2_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN OTHERS.
EXIT.
ENDCASE.
lo_ixml ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD load_worksheet_cond_format_ex.
DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lo_ixml TYPE REF TO if_ixml_element,
lv_dxf_style_index TYPE i,
lo_excel_style LIKE LINE OF me->styles.
FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF me->mt_dxf_styles.
lv_dxf_style_index = io_ixml_rule->get_attribute_ns( 'dxfId' ).
READ TABLE me->mt_dxf_styles ASSIGNING <ls_dxf_style> WITH KEY dxf = lv_dxf_style_index.
IF sy-subrc = 0.
io_style_cond->mode_expression-cell_style = <ls_dxf_style>-guid.
ENDIF.
lo_ixml_nodes ?= io_ixml_rule->get_elements_by_tag_name( 'formula' ).
lo_ixml_iterator = lo_ixml_nodes->create_iterator( ).
lo_ixml ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml IS BOUND.
CASE sy-index.
WHEN 1.
io_style_cond->mode_expression-formula = lo_ixml->get_value( ).
WHEN OTHERS.
EXIT.
ENDCASE.
lo_ixml ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD load_worksheet_cond_format_is.
DATA: lo_ixml_nodes TYPE REF TO if_ixml_node_collection,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lo_ixml TYPE REF TO if_ixml_element,
lo_ixml_rule_iconset TYPE REF TO if_ixml_element.
lo_ixml_rule_iconset ?= io_ixml_rule->get_first_child( ).
io_style_cond->mode_iconset-iconset = lo_ixml_rule_iconset->get_attribute_ns( 'iconSet' ).
io_style_cond->mode_iconset-showvalue = lo_ixml_rule_iconset->get_attribute_ns( 'showValue' ).
lo_ixml_nodes ?= lo_ixml_rule_iconset->get_elements_by_tag_name( 'cfvo' ).
lo_ixml_iterator = lo_ixml_nodes->create_iterator( ).
lo_ixml ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml IS BOUND.
CASE sy-index.
WHEN 1.
io_style_cond->mode_iconset-cfvo1_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_iconset-cfvo1_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN 2.
io_style_cond->mode_iconset-cfvo2_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_iconset-cfvo2_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN 3.
io_style_cond->mode_iconset-cfvo3_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_iconset-cfvo3_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN 4.
io_style_cond->mode_iconset-cfvo4_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_iconset-cfvo4_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN 5.
io_style_cond->mode_iconset-cfvo5_type = lo_ixml->get_attribute_ns( 'type' ).
io_style_cond->mode_iconset-cfvo5_value = lo_ixml->get_attribute_ns( 'val' ).
WHEN OTHERS.
EXIT.
ENDCASE.
lo_ixml ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD load_worksheet_cond_format_t10.
DATA: lv_dxf_style_index TYPE i.
FIELD-SYMBOLS: <ls_dxf_style> LIKE LINE OF me->mt_dxf_styles.
io_style_cond->mode_top10-topxx_count = io_ixml_rule->get_attribute_ns( 'rank' ). " Top10, Top20, Top 50...
io_style_cond->mode_top10-percent = io_ixml_rule->get_attribute_ns( 'percent' ). " Top10 percent instead of Top10 values
IF io_style_cond->mode_top10-percent = '1'.
io_style_cond->mode_top10-percent = 'X'.
ELSE.
io_style_cond->mode_top10-percent = ' '.
ENDIF.
io_style_cond->mode_top10-bottom = io_ixml_rule->get_attribute_ns( 'bottom' ). " Bottom10 instead of Top10
IF io_style_cond->mode_top10-bottom = '1'.
io_style_cond->mode_top10-bottom = 'X'.
ELSE.
io_style_cond->mode_top10-bottom = ' '.
ENDIF.
*--------------------------------------------------------------------*
* Cell formatting for top10
*--------------------------------------------------------------------*
lv_dxf_style_index = io_ixml_rule->get_attribute_ns( 'dxfId' ).
READ TABLE me->mt_dxf_styles ASSIGNING <ls_dxf_style> WITH KEY dxf = lv_dxf_style_index.
IF sy-subrc = 0.
io_style_cond->mode_top10-cell_style = <ls_dxf_style>-guid.
ENDIF.
ENDMETHOD.
method LOAD_WORKSHEET_DRAWING.
TYPES: BEGIN OF t_c_nv_pr,
name TYPE string,
id TYPE string,
END OF t_c_nv_pr.
TYPES: BEGIN OF t_blip,
cstate TYPE string,
embed TYPE string,
END OF t_blip.
TYPES: BEGIN OF t_chart,
id TYPE string,
END OF t_chart.
CONSTANTS: lc_xml_attr_true TYPE string VALUE 'true',
lc_xml_attr_true_int TYPE string VALUE '1'.
CONSTANTS: lc_rel_chart TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart',
lc_rel_image TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image'.
DATA: drawing TYPE REF TO if_ixml_document,
anchors TYPE REF TO if_ixml_node_collection,
node TYPE REF TO if_ixml_element,
coll_length TYPE i,
iterator TYPE REF TO if_ixml_node_iterator,
anchor_elem TYPE REF TO if_ixml_element,
relationship TYPE t_relationship,
rel_drawings TYPE t_rel_drawings,
rel_drawing TYPE t_rel_drawing,
rels_drawing TYPE REF TO if_ixml_document,
rels_drawing_path TYPE string,
stripped_name TYPE chkfile,
dirname TYPE string,
path TYPE string,
path2 TYPE text255,
file_ext2 TYPE char10.
" Read Workbook Relationships
CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH'
EXPORTING
full_name = ip_path
IMPORTING
stripped_name = stripped_name
file_path = dirname.
CONCATENATE dirname '_rels/' stripped_name '.rels'
INTO rels_drawing_path.
rels_drawing_path = resolve_path( rels_drawing_path ).
rels_drawing = me->get_ixml_from_zip_archive( rels_drawing_path ).
node ?= rels_drawing->find_from_name( 'Relationship' ).
WHILE node IS BOUND.
fill_struct_from_attributes( EXPORTING ip_element = node CHANGING cp_structure = relationship ).
rel_drawing-id = relationship-id.
CONCATENATE dirname relationship-target INTO path.
path = resolve_path( path ).
rel_drawing-content = me->get_from_zip_archive( path ). "------------> This is for template usage
path2 = path.
zcl_excel_common=>split_file( EXPORTING ip_file = path2
IMPORTING ep_extension = file_ext2 ).
rel_drawing-file_ext = file_ext2.
"-------------Added by Alessandro Iannacci - Should load graph xml
CASE relationship-type.
WHEN lc_rel_chart.
"Read chart xml
rel_drawing-content_xml = me->get_ixml_from_zip_archive( path ).
WHEN OTHERS.
ENDCASE.
"----------------------------
APPEND rel_drawing TO rel_drawings.
node ?= node->get_next( ).
ENDWHILE.
drawing = me->get_ixml_from_zip_archive( ip_path ).
* one-cell anchor **************
anchors = drawing->get_elements_by_tag_name( name = 'oneCellAnchor' namespace = 'xdr' ).
coll_length = anchors->get_length( ).
iterator = anchors->create_iterator( ).
DO coll_length TIMES.
anchor_elem ?= iterator->get_next( ).
CALL METHOD me->load_drawing_anchor
EXPORTING
io_anchor_element = anchor_elem
io_worksheet = io_worksheet
it_related_drawings = rel_drawings.
ENDDO.
* two-cell anchor ******************
anchors = drawing->get_elements_by_tag_name( name = 'twoCellAnchor' namespace = 'xdr' ).
coll_length = anchors->get_length( ).
iterator = anchors->create_iterator( ).
DO coll_length TIMES.
anchor_elem ?= iterator->get_next( ).
CALL METHOD me->load_drawing_anchor
EXPORTING
io_anchor_element = anchor_elem
io_worksheet = io_worksheet
it_related_drawings = rel_drawings.
ENDDO.
endmethod.
METHOD load_worksheet_hyperlinks.
DATA: lo_ixml_hyperlinks TYPE REF TO if_ixml_node_collection,
lo_ixml_hyperlink TYPE REF TO if_ixml_element,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lv_row TYPE zexcel_cell_row,
lv_column TYPE zexcel_cell_column_alpha,
lo_hyperlink TYPE REF TO zcl_excel_hyperlink,
lv_value TYPE zexcel_cell_value.
DATA: BEGIN OF ls_hyperlink,
ref TYPE string,
display TYPE string,
location TYPE string,
tooltip TYPE string,
r_id TYPE string,
END OF ls_hyperlink.
FIELD-SYMBOLS: <ls_external_hyperlink> LIKE LINE OF it_external_hyperlinks.
lo_ixml_hyperlinks = io_ixml_worksheet->get_elements_by_tag_name( name = 'hyperlink' ).
lo_ixml_iterator = lo_ixml_hyperlinks->create_iterator( ).
lo_ixml_hyperlink ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml_hyperlink IS BOUND.
CLEAR ls_hyperlink.
CLEAR lo_hyperlink.
ls_hyperlink-ref = lo_ixml_hyperlink->get_attribute_ns( 'ref' ).
ls_hyperlink-display = lo_ixml_hyperlink->get_attribute_ns( 'display' ).
ls_hyperlink-location = lo_ixml_hyperlink->get_attribute_ns( 'location' ).
ls_hyperlink-tooltip = lo_ixml_hyperlink->get_attribute_ns( 'tooltip' ).
ls_hyperlink-r_id = lo_ixml_hyperlink->get_attribute( name = 'id'
namespace = 'r' ).
IF ls_hyperlink-r_id IS INITIAL. " Internal link
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = ls_hyperlink-location ).
ELSE. " External link
READ TABLE it_external_hyperlinks ASSIGNING <ls_external_hyperlink> WITH TABLE KEY id = ls_hyperlink-r_id.
IF sy-subrc = 0.
lo_hyperlink = zcl_excel_hyperlink=>create_external_link( iv_url = <ls_external_hyperlink>-target ).
ENDIF.
ENDIF.
IF lo_hyperlink IS BOUND. " because of unsupported external links
zcl_excel_common=>convert_columnrow2column_a_row( EXPORTING
i_columnrow = ls_hyperlink-ref
IMPORTING
e_row = lv_row
e_column = lv_column ).
* Currently it is not allowed to pass a hyperlink w/o text, but text has already been read.
* So just reread it and be done with it
io_worksheet->get_cell( EXPORTING
ip_column = lv_column
ip_row = lv_row
IMPORTING
ep_value = lv_value ).
io_worksheet->set_cell( ip_column = lv_column
ip_row = lv_row
ip_value = lv_value
ip_hyperlink = lo_hyperlink ).
ENDIF.
lo_ixml_hyperlink ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD load_worksheet_pagebreaks.
DATA: lo_node TYPE REF TO if_ixml_element,
lo_ixml_rowbreaks TYPE REF TO if_ixml_node_collection,
lo_ixml_colbreaks TYPE REF TO if_ixml_node_collection,
lo_ixml_iterator TYPE REF TO if_ixml_node_iterator,
lo_ixml_rowbreak TYPE REF TO if_ixml_element,
lo_ixml_colbreak TYPE REF TO if_ixml_element,
lo_style_cond TYPE REF TO zcl_excel_style_cond,
lv_count TYPE i.
DATA: lt_pagebreaks TYPE STANDARD TABLE OF zcl_excel_worksheet_pagebreaks=>ts_pagebreak_at,
lo_pagebreaks TYPE REF TO zcl_excel_worksheet_pagebreaks.
FIELD-SYMBOLS: <ls_pagebreak_row> LIKE LINE OF lt_pagebreaks.
FIELD-SYMBOLS: <ls_pagebreak_col> LIKE LINE OF lt_pagebreaks.
*--------------------------------------------------------------------*
* Get minimal number of cells where to add pagebreaks
* Since rows and columns are handled in separate nodes
* Build table to identify these cells
*--------------------------------------------------------------------*
lo_node ?= io_ixml_worksheet->find_from_name( 'rowBreaks' ).
check lo_node is bound.
lo_ixml_rowbreaks = lo_node->get_elements_by_tag_name( name = 'brk' ).
lo_ixml_iterator = lo_ixml_rowbreaks->create_iterator( ).
lo_ixml_rowbreak ?= lo_ixml_iterator->get_next( ).
WHILE lo_ixml_rowbreak IS BOUND.
APPEND INITIAL LINE TO lt_pagebreaks ASSIGNING <ls_pagebreak_row>.
<ls_pagebreak_row>-cell_row = lo_ixml_rowbreak->get_attribute_ns( 'id' ).
lo_ixml_rowbreak ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
CHECK <ls_pagebreak_row> IS ASSIGNED.
lo_node ?= io_ixml_worksheet->find_from_name( 'colBreaks' ).
check lo_node is bound.
lo_ixml_colbreaks = lo_node->get_elements_by_tag_name( name = 'brk' ).
lo_ixml_iterator = lo_ixml_colbreaks->create_iterator( ).
lo_ixml_colbreak ?= lo_ixml_iterator->get_next( ).
CLEAR lv_count.
WHILE lo_ixml_colbreak IS BOUND.
ADD 1 TO lv_count.
READ TABLE lt_pagebreaks INDEX lv_count ASSIGNING <ls_pagebreak_col>.
IF sy-subrc <> 0.
APPEND INITIAL LINE TO lt_pagebreaks ASSIGNING <ls_pagebreak_col>.
<ls_pagebreak_col>-cell_row = <ls_pagebreak_row>-cell_row.
ENDIF.
<ls_pagebreak_col>-cell_column = lo_ixml_colbreak->get_attribute_ns( 'id' ).
lo_ixml_colbreak ?= lo_ixml_iterator->get_next( ).
ENDWHILE.
*--------------------------------------------------------------------*
* Finally add each pagebreak
*--------------------------------------------------------------------*
lo_pagebreaks = io_worksheet->get_pagebreaks( ).
LOOP AT lt_pagebreaks ASSIGNING <ls_pagebreak_row>.
lo_pagebreaks->add_pagebreak( ip_column = <ls_pagebreak_row>-cell_column
ip_row = <ls_pagebreak_row>-cell_row ).
ENDLOOP.
ENDMETHOD.
METHOD load_worksheet_pagemargins.
TYPES: BEGIN OF lty_page_margins,
footer TYPE string,
header TYPE string,
bottom TYPE string,
top TYPE string,
right TYPE string,
left TYPE string,
END OF lty_page_margins.
DATA:lo_ixml_pagemargins_elem TYPE REF TO if_ixml_element,
ls_pagemargins TYPE lty_page_margins.
lo_ixml_pagemargins_elem = io_ixml_worksheet->find_from_name( 'pageMargins' ).
IF lo_ixml_pagemargins_elem IS NOT INITIAL.
fill_struct_from_attributes( EXPORTING
ip_element = lo_ixml_pagemargins_elem
CHANGING
cp_structure = ls_pagemargins ).
io_worksheet->sheet_setup->margin_bottom = zcl_excel_common=>excel_string_to_number( ls_pagemargins-bottom ).
io_worksheet->sheet_setup->margin_footer = zcl_excel_common=>excel_string_to_number( ls_pagemargins-footer ).
io_worksheet->sheet_setup->margin_header = zcl_excel_common=>excel_string_to_number( ls_pagemargins-header ).
io_worksheet->sheet_setup->margin_left = zcl_excel_common=>excel_string_to_number( ls_pagemargins-left ).
io_worksheet->sheet_setup->margin_right = zcl_excel_common=>excel_string_to_number( ls_pagemargins-right ).
io_worksheet->sheet_setup->margin_top = zcl_excel_common=>excel_string_to_number( ls_pagemargins-top ).
ENDIF.
ENDMETHOD.
METHOD read_from_applserver.
DATA: lv_filelength TYPE i,
lt_binary_data TYPE STANDARD TABLE OF x255 WITH NON-UNIQUE DEFAULT KEY,
ls_binary_data LIKE LINE OF lt_binary_data,
lv_filename TYPE string,
lv_max_length_line TYPE i,
lv_actual_length_line TYPE i,
lv_errormessage TYPE string.
MOVE i_filename TO lv_filename.
DESCRIBE FIELD ls_binary_data LENGTH lv_max_length_line IN BYTE MODE.
OPEN DATASET lv_filename FOR INPUT IN BINARY MODE.
IF sy-subrc <> 0.
lv_errormessage = 'A problem occured when reading the file'(001).
zcx_excel=>raise_text( lv_errormessage ).
ENDIF.
WHILE sy-subrc = 0.
READ DATASET lv_filename INTO ls_binary_data MAXIMUM LENGTH lv_max_length_line ACTUAL LENGTH lv_actual_length_line.
APPEND ls_binary_data TO lt_binary_data.
lv_filelength = lv_filelength + lv_actual_length_line.
ENDWHILE.
CLOSE DATASET lv_filename.
*--------------------------------------------------------------------*
* Binary data needs to be provided as XSTRING for further processing
*--------------------------------------------------------------------*
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_filelength
IMPORTING
buffer = r_excel_data
TABLES
binary_tab = lt_binary_data.
ENDMETHOD.
METHOD read_from_local_file.
DATA: lv_filelength TYPE i,
lt_binary_data TYPE STANDARD TABLE OF x255 WITH NON-UNIQUE DEFAULT KEY,
ls_binary_data LIKE LINE OF lt_binary_data,
lv_filename TYPE string,
lv_errormessage TYPE string.
MOVE i_filename TO lv_filename.
cl_gui_frontend_services=>gui_upload( EXPORTING
filename = lv_filename
filetype = 'BIN' " We are basically working with zipped directories --> force binary read
IMPORTING
filelength = lv_filelength
CHANGING
data_tab = lt_binary_data
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19 ).
IF sy-subrc <> 0.
lv_errormessage = 'A problem occured when reading the file'(001).
zcx_excel=>raise_text( lv_errormessage ).
ENDIF.
*--------------------------------------------------------------------*
* Binary data needs to be provided as XSTRING for further processing
*--------------------------------------------------------------------*
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_filelength
IMPORTING
buffer = r_excel_data
TABLES
binary_tab = lt_binary_data.
ENDMETHOD.
method RESOLVE_PATH.
*--------------------------------------------------------------------*
* ToDos:
* 2do§1 Determine whether the replacement should be done
* iterative to allow /../../.. or something alike
* 2do§2 Determine whether /./ has to be supported as well
* 2do§3 Create unit-test for this method
*
* Please don't just delete these ToDos if they are not
* needed but leave a comment that states this
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-11
* - ...
* changes: replaced previous coding by regular expression
* adding comments to explain what we are trying to achieve
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* §1 This routine will receive a path, that may have a relative pathname (/../) included somewhere
* The output should be a resolved path without relative references
* Example: Input xl/worksheets/../drawings/drawing1.xml
* Output xl/drawings/drawing1.xml
*--------------------------------------------------------------------*
rp_result = ip_path.
*--------------------------------------------------------------------*
* §1 Remove relative pathnames
*--------------------------------------------------------------------*
* Regular expression [^/]*/\.\./
* [^/]* --> any number of characters other than /
* followed by /\.\./ --> the sequence /../
* ==> worksheets/../ will be found in the example
*--------------------------------------------------------------------*
REPLACE REGEX '[^/]*/\.\./' IN rp_result WITH ``.
endmethod.
method RESOLVE_REFERENCED_FORMULAE.
TYPES: BEGIN OF ty_referenced_cells,
sheet TYPE REF TO zcl_excel_worksheet,
si TYPE i,
row_from TYPE i,
row_to TYPE i,
col_from TYPE i,
col_to TYPE i,
formula TYPE string,
ref_cell TYPE char10,
END OF ty_referenced_cells.
DATA: ls_ref_formula LIKE LINE OF me->mt_ref_formulae,
lts_referenced_cells TYPE SORTED TABLE OF ty_referenced_cells WITH NON-UNIQUE KEY sheet si row_from row_to col_from col_to,
ls_referenced_cell LIKE LINE OF lts_referenced_cells,
lv_col_from TYPE zexcel_cell_column_alpha,
lv_col_to TYPE zexcel_cell_column_alpha,
lv_resulting_formula TYPE string,
lv_current_cell TYPE char10.
me->mt_ref_formulae = me->mt_ref_formulae.
*--------------------------------------------------------------------*
* Get referenced Cells, Build ranges for easy lookup
*--------------------------------------------------------------------*
LOOP AT me->mt_ref_formulae INTO ls_ref_formula WHERE ref <> space.
CLEAR ls_referenced_cell.
ls_referenced_cell-sheet = ls_ref_formula-sheet.
ls_referenced_cell-si = ls_ref_formula-si.
ls_referenced_cell-formula = ls_ref_formula-formula.
TRY.
zcl_excel_common=>convert_range2column_a_row( EXPORTING i_range = ls_ref_formula-ref
IMPORTING e_column_start = lv_col_from
e_column_end = lv_col_to
e_row_start = ls_referenced_cell-row_from
e_row_end = ls_referenced_cell-row_to ).
ls_referenced_cell-col_from = zcl_excel_common=>convert_column2int( lv_col_from ).
ls_referenced_cell-col_to = zcl_excel_common=>convert_column2int( lv_col_to ).
CLEAR ls_referenced_cell-ref_cell.
TRY.
ls_referenced_cell-ref_cell(3) = zcl_excel_common=>convert_column2alpha( ls_ref_formula-column ).
ls_referenced_cell-ref_cell+3 = ls_ref_formula-row.
CONDENSE ls_referenced_cell-ref_cell NO-GAPS.
CATCH zcx_excel.
ENDTRY.
INSERT ls_referenced_cell INTO TABLE lts_referenced_cells.
CATCH zcx_excel.
ENDTRY.
ENDLOOP.
* break x0009004.
*--------------------------------------------------------------------*
* For each referencing cell determine the referenced cell
* and resolve the formula
*--------------------------------------------------------------------*
LOOP AT me->mt_ref_formulae INTO ls_ref_formula WHERE ref = space.
CLEAR lv_current_cell.
TRY.
lv_current_cell(3) = zcl_excel_common=>convert_column2alpha( ls_ref_formula-column ).
lv_current_cell+3 = ls_ref_formula-row.
CONDENSE lv_current_cell NO-GAPS.
CATCH zcx_excel.
ENDTRY.
LOOP AT lts_referenced_cells INTO ls_referenced_cell WHERE sheet = ls_ref_formula-sheet
AND si = ls_ref_formula-si
AND row_from <= ls_ref_formula-row
AND row_to >= ls_ref_formula-row
AND col_from <= ls_ref_formula-column
AND col_to >= ls_ref_formula-column.
TRY.
lv_resulting_formula = zcl_excel_common=>determine_resulting_formula( iv_reference_cell = ls_referenced_cell-ref_cell
iv_reference_formula = ls_referenced_cell-formula
iv_current_cell = lv_current_cell ).
ls_referenced_cell-sheet->set_cell_formula( ip_column = ls_ref_formula-column
ip_row = ls_ref_formula-row
ip_formula = lv_resulting_formula ).
CATCH zcx_excel.
ENDTRY.
EXIT.
ENDLOOP.
ENDLOOP.
endmethod.
METHOD zif_excel_reader~load.
*--------------------------------------------------------------------*
* ToDos:
* 2do§1 Map Document Properties to ZCL_EXCEL
*--------------------------------------------------------------------*
CONSTANTS: lcv_core_properties TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties',
lcv_office_document TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument'.
DATA: lo_rels TYPE REF TO if_ixml_document,
lo_node TYPE REF TO if_ixml_element,
ls_relationship TYPE t_relationship.
*--------------------------------------------------------------------*
* §1 Create EXCEL-Object we want to return to caller
* §2 We need to read the the file "\\_rels\.rels" because it tells
* us where in this folder structure the data for the workbook
* is located in the xlsx zip-archive
*
* The xlsx Zip-archive has generally the following folder structure:
* <root> |
* |--> _rels
* |--> doc_Props
* |--> xl |
* |--> _rels
* |--> theme
* |--> worksheets
* §3 Extracting from this the path&file where the workbook is located
* Following is an example how this file could be set up
* <?xml version="1.0" encoding="UTF-8" standalone="true"?>
* <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
* <Relationship Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Id="rId3"/>
* <Relationship Target="docProps/core.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Id="rId2"/>
* <Relationship Target="xl/workbook.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Id="rId1"/>
* </Relationships>
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
* §1 Create EXCEL-Object we want to return to caller
*--------------------------------------------------------------------*
IF iv_zcl_excel_classname IS INITIAL.
CREATE OBJECT r_excel.
ELSE.
CREATE OBJECT r_excel TYPE (iv_zcl_excel_classname).
ENDIF.
zip = create_zip_archive( i_xlsx_binary = i_excel2007
i_use_alternate_zip = i_use_alternate_zip ).
*--------------------------------------------------------------------*
* §2 Get file in folderstructure
*--------------------------------------------------------------------*
lo_rels = get_ixml_from_zip_archive( '_rels/.rels' ).
*--------------------------------------------------------------------*
* §3 Cycle through the Relationship Tags and use the ones we need
*--------------------------------------------------------------------*
lo_node ?= lo_rels->find_from_name( 'Relationship' ). "#EC NOTEXT
WHILE lo_node IS BOUND.
fill_struct_from_attributes( EXPORTING
ip_element = lo_node
CHANGING
cp_structure = ls_relationship ).
CASE ls_relationship-type.
WHEN lcv_office_document.
*--------------------------------------------------------------------*
* Parse workbook - main part here
*--------------------------------------------------------------------*
load_workbook( iv_workbook_full_filename = ls_relationship-target
io_excel = r_excel ).
WHEN lcv_core_properties.
" 2do§1 Map Document Properties to ZCL_EXCEL
WHEN OTHERS.
ENDCASE.
lo_node ?= lo_node->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD zif_excel_reader~load_file.
DATA: lv_excel_data TYPE xstring.
*--------------------------------------------------------------------*
* Read file into binary string
*--------------------------------------------------------------------*
IF i_from_applserver = abap_true.
lv_excel_data = read_from_applserver( i_filename ).
ELSE.
lv_excel_data = read_from_local_file( i_filename ).
ENDIF.
*--------------------------------------------------------------------*
* Parse Excel data into ZCL_EXCEL object from binary string
*--------------------------------------------------------------------*
r_excel = zif_excel_reader~load( i_excel2007 = lv_excel_data
i_use_alternate_zip = i_use_alternate_zip
iv_zcl_excel_classname = iv_zcl_excel_classname ).
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
6369,
34,
3698,
62,
15675,
1137,
62,
12726,
6770,
198,
220,
1171,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
198,
9,
1,
9,
1171,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
15675,
1137,
62,
12726,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
220,
2099,
12,
7742,
82,
22631,
5805,
764,
628,
220,
20314,
1168,
5064,
62,
6369,
34,
3698,
62,
15675,
1137,
764,
628,
220,
1398,
12,
24396,
82,
376,
8267,
62,
46126,
62,
10913,
2662,
62,
1404,
5446,
9865,
3843,
1546,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
4061,
62,
36,
2538,
10979,
2099,
1006,
284,
16876,
62,
10426,
5805,
62,
36,
2538,
10979,
198,
220,
220,
220,
5609,
198,
220,
220,
220,
220,
220,
5145,
8697,
62,
46126,
11335,
2099,
15529,
764,
198,
24326,
2665,
13,
628,
220,
3858,
25,
198,
9,
1,
9,
6861,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
15675,
1137,
62,
12726,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
220,
220,
220,
347,
43312,
3963,
256,
62,
39468,
1056,
11,
198,
220,
220,
220,
220,
220,
4686,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2496,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2496,
14171,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2499,
25473,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
5225,
25473,
11,
198,
220,
220,
220,
220,
220,
9629,
312,
220,
220,
220,
41876,
4731,
11,
220,
220,
220,
220,
366,
1040,
1303,
22370,
532,
9585,
15274,
14,
4033,
82,
532,
2622,
284,
5911,
3376,
9629,
198,
220,
220,
220,
23578,
3963,
256,
62,
39468,
1056,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
256,
62,
7753,
9641,
11,
198,
220,
220,
220,
220,
220,
598,
3672,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
15436,
863,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
1877,
7287,
863,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
374,
929,
11249,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
14873,
12453,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
256,
62,
7753,
9641,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
256,
62,
21760,
11,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
9629,
312,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
4686,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
1181,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
256,
62,
21760,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
256,
62,
1818,
2070,
1050,
11,
198,
220,
220,
220,
220,
220,
14873,
12453,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
4277,
43810,
9641,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
256,
62,
1818,
2070,
1050,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
256,
62,
21760,
1050,
11,
198,
220,
220,
220,
220,
220,
14873,
12453,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
256,
62,
21760,
1050,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
256,
62,
9521,
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,
7104,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
220,
220,
220,
220,
220,
220,
366,
28463,
276,
351,
2071,
1303,
22370,
780,
5231,
1659,
346,
1010,
1422,
470,
38836,
48476,
740,
198,
220,
220,
220,
220,
220,
17205,
25473,
312,
41876,
4731,
11,
220,
220,
220,
220,
220,
220,
366,
2071,
1303,
24136,
198,
220,
220,
220,
23578,
3963,
256,
62,
9521,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
256,
62,
69,
2171,
220,
220,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
62,
20797,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
256,
62,
65,
6361,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
62,
65,
6361,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
256,
62,
10331,
82,
220,
220,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
62,
10331,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
256,
62,
7635,
62,
5420,
82,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
256,
62,
8043,
11,
198,
220,
220,
220,
220,
220,
41497,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
46140,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
7505,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
34791,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
256,
62,
8043,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
256,
62,
2411,
62,
19334,
278,
11,
198,
220,
220,
220,
220,
220,
4686,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2695,
220,
220,
220,
220,
41876,
2124,
8841,
11,
198,
220,
220,
220,
220,
220,
2393,
62,
2302,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2695,
62,
19875,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
11
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*&---------------------------------------------------------------------*
*& Include ZAL30_MAIN_CONF_F01
*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Form INITIALIZACION
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM initializacion .
* Creo el objeto que orquestará todas las operaciones
CREATE OBJECT mo_cnt_al30.
* Funciones que se excluirán de los ALV
PERFORM func_excluding_alv.
* Catalogo general de campos
PERFORM alv_fieldcatalog.
* Indico que los refrescos de los ALV no se moverán de filas y columna
ms_stable-row = abap_true.
ms_stable-col = abap_true.
* Por defectos los datos de las pestañas son correctos
mv_datos_validos_text = abap_true.
mv_datos_validos_gen = abap_true.
* El frame donde se muestran los datos de cabera y campos se muestra por defecto
mv_expand_fields = abap_true.
mv_expand_header = abap_true.
* Diferencias entre la vista y el diccionario. Inicialmente no las hay.
mv_diff_dict = abap_false.
* Se recupera si se podra grabar la configuración
mv_pedir_orden = mo_cnt_al30->allowed_transport( ).
* Variable donde se guarda la orden de transporte donde se guarda la
* configuración
CLEAR mv_orden_transporte.
* Idioma de visualización de textos
mv_lang_vis = sy-langu.
* Se recupera si se podrá grabar la configuración
* d_perm_modif_datos = go_controller->allowed_modify_data( ).
* Lo dejo abierto porque es una tabla de worbench y en cualquier sistema se podra modificar.
* y lo que devuelve el método anterior solo tiene sentido para tablas de customizing. Aún asi,
* dejo la variable porque si en un futuro quiero restringir por otra casuística.
mv_perm_modif_datos = abap_true.
* Relleno la tablas de alv para los filtros comunes.
PERFORM fill_filtro_comunes.
ENDFORM. " INITIALIZACION
*&---------------------------------------------------------------------*
*& Form CHANGE_VIEW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM change_view .
DATA ls_return TYPE bapiret2.
DATA ld_name_view TYPE tabname.
* Paso el nombre de la vista a una variable para que no se limpie
* cuando se busca los datos de la vista
ld_name_view = zal30_t_view-tabname.
PERFORM read_view USING ld_name_view
CHANGING ls_return.
* Miro si la vista existe. En caso contrario lanzo la operación de creacion
IF ls_return-type = zif_al30_data=>cs_msg_type-error.
* Vuelvo a recuperar el nombre de la vista
zal30_t_view-tabname = ld_name_view.
* En ese caso saco el mensaje pasado. Lo pongo de tipo 'S'
* porque aunque no exista, debe existir la opción de crearlo.
MESSAGE ID ls_return-id TYPE zif_al30_data=>cs_msg_type-success
NUMBER ls_return-number
WITH ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
* Activo que la único edición posible es la de creacion
mv_mode = zif_al30_data=>cv_mode_insert.
ELSE.
* Activo el modo de visualizacion
* PARA IR MÁS RAPIDO EN LAS PRUEBAS LO PONGO EN MODO
* MODIFICACION
mv_mode = zif_al30_data=>cv_mode_change.
* Chequeo si hay diferencias entre la configuracion guardada y la tabla del diccionario
mo_cnt_al30->check_changes_dict_view( EXPORTING is_view = zal30_t_view
* it_fields_view_alv = mt_fields
* it_fields_text_view_alv = mt_fields_text
IMPORTING ev_diff_fields = DATA(lv_diff_fields)
ev_diff_text = DATA(lv_diff_text) ).
IF lv_diff_fields = abap_true OR lv_diff_text = abap_true.
" Si las hay se mira si tiene la opción de autoajuste. Si la tiene se ejecuta el ajuste de manera automática
IF mo_cnt_al30->view_have_auto_adjust( zal30_t_view-tabname ) = abap_true.
mo_cnt_al30->auto_adjust_view_ddic(
EXPORTING
iv_name_view = zal30_t_view-tabname
IMPORTING
es_return = ls_return
es_view = zal30_t_view
et_fields_text_view_alv = mt_fields_text
et_fields_view_alv = mt_fields ).
" Solo si hay errores en el ajuste
IF ls_return-type = zif_al30_data=>cs_msg_type-error.
MESSAGE ID ls_return-id TYPE ls_return-type
NUMBER ls_return-number
WITH ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
ELSE.
MESSAGE s035.
" Se ajustan el texto de cabecera del campo
PERFORM text_heading_fields.
ENDIF.
ELSE.
mv_diff_dict = abap_true.
MESSAGE w024.
ENDIF.
ELSE.
mv_diff_dict = abap_false.
ENDIF.
ENDIF.
ENDFORM. " CHANGE_VIEW
*&---------------------------------------------------------------------*
*& Form CHECK_VIEW_INSERT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM check_view_insert .
DATA ls_return TYPE bapiret2.
* Verifico que la vista/tabla sea correcta
CALL METHOD mo_cnt_al30->check_view
EXPORTING
iv_name_view = zal30_t_view-tabname
iv_operation = zif_al30_data=>cv_operation_insert
IMPORTING
es_return = ls_return
ev_text_view = d_text_view.
IF ls_return-type = zif_al30_data=>cs_msg_type-error.
MESSAGE ID ls_return-id TYPE ls_return-type
NUMBER ls_return-number
WITH ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
ENDIF.
ENDFORM. " CHECK_VIEW_INSERT
*&---------------------------------------------------------------------*
*& Form CREATE_VIEW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM create_view .
DATA ls_return TYPE bapiret2.
DATA ls_return_read TYPE bapiret2.
DATA ld_name_view TYPE tabname.
CALL METHOD mo_cnt_al30->create_view
EXPORTING
iv_name_view = zal30_t_view-tabname
IMPORTING
es_return = ls_return
ev_text_view = d_text_view
et_fields_view_alv = mt_fields
et_fields_text_view_alv = mt_fields_text
es_view = zal30_t_view.
* Si no hay error indico que la edición va ser la actualizacion.
IF ls_return-type NE zif_al30_data=>cs_msg_type-error.
mv_mode = zif_al30_data=>cv_mode_change.
* Ajuste de campos y textos de los listados
PERFORM adjust_field_and_text.
ELSE.
* Si hay error vuelto a la situación anterior.
CLEAR mv_mode.
* El mensaje de error lo saco como warning para que pueda cambiar la vista si necesidad de salir
* del programa
MESSAGE ID ls_return-id TYPE zif_al30_data=>cs_msg_type-warning
NUMBER ls_return-number
WITH ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
ENDIF.
ENDFORM. " CREATE_VIEW
*&---------------------------------------------------------------------*
*& Form DELETE_VIEW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM delete_view .
DATA ld_answer TYPE c.
DATA ls_return TYPE bapiret2.
* Confirmacion del borrado
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = TEXT-t03
text_question = TEXT-t04
text_button_1 = TEXT-t05
text_button_2 = TEXT-t06
default_button = '2'
display_cancel_button = ''
IMPORTING
answer = ld_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF ld_answer = '1'.
ls_return = mo_cnt_al30->delete_view( zal30_t_view-tabname ).
* Saco el mensaje devuelto tal cual se produce.
MESSAGE ID ls_return-id TYPE ls_return-type
NUMBER ls_return-number
WITH ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
* Si el mensaje es correcto pongo el modo de edición al inicial
IF ls_return-type = zif_al30_data=>cs_msg_type-success.
PERFORM clean_data.
ENDIF.
ELSE.
MESSAGE s033.
ENDIF.
ENDFORM. " DELETE_VIEW
*&---------------------------------------------------------------------*
*& Form CLEAN_DATA
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM clean_data .
CLEAR: mv_mode, zal30_t_view, mt_fields, d_text_view.
* Si el ALV de atributros genericos esta instancio lo libero de memoria,
* así como, su container.
IF mo_alv_gen IS BOUND.
mo_alv_gen->free( ).
mo_container_gen->free( ).
FREE: mo_alv_gen, mo_container_gen.
ENDIF.
* Lo mismo para los atributos de texto
IF mo_alv_text IS BOUND.
mo_alv_text->free( ).
mo_container_text->free( ).
FREE: mo_alv_text, mo_container_text.
ENDIF.
ENDFORM. " CLEAN_DATA
*&---------------------------------------------------------------------*
*& Form OTHER_VIEW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM other_view .
* Limpio los datos para dejarlo todo al estado inicial.
PERFORM clean_data.
ENDFORM. " OTHER_VIEW
*&---------------------------------------------------------------------*
*& Form DISPLAY_CHANGE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM display_change .
IF mv_datos_validos = abap_true.
CASE mv_mode.
WHEN zif_al30_data=>cv_mode_view.
mv_mode = zif_al30_data=>cv_mode_change.
WHEN zif_al30_data=>cv_mode_change.
mv_mode = zif_al30_data=>cv_mode_view.
ENDCASE.
ELSE.
* Saco los mensajes de las pestañas que tienen error
PERFORM mostrar_msg_tab_error.
ENDIF.
ENDFORM. " DISPLAY_CHANGE
*&---------------------------------------------------------------------*
*& Form FUNC_EXCLUDING_ALV
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM func_excluding_alv .
CLEAR: mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_append_row TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_copy TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_copy_row TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_cut TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_delete_row TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_insert_row TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_move_row TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_paste TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_paste_new_row TO mt_excluding.
APPEND cl_gui_alv_grid=>mc_fc_loc_undo TO mt_excluding.
ENDFORM. " FUNC_EXCLUDING_ALV
*&---------------------------------------------------------------------*
*& Form MOSTRAR_MSG_TAB_ERROR
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM mostrar_msg_tab_error .
* Saco los mensaje de tipo warning para que vea donde están los errores.
IF mv_datos_validos_gen = abap_false.
MESSAGE w015.
ENDIF.
IF mv_datos_validos_text = abap_false.
MESSAGE w016.
ENDIF.
ENDFORM. " MOSTRAR_MSG_TAB_ERROR
*&---------------------------------------------------------------------*
*& Form SAVE_VIEW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM save_view .
DATA ls_return TYPE bapiret2.
IF mv_datos_validos = abap_true.
ls_return = mo_cnt_al30->save_view_alv( is_view = zal30_t_view
it_fields_view_alv = mt_fields
it_fields_text_view_alv = mt_fields_text ).
MESSAGE ID ls_return-id TYPE ls_return-type
NUMBER ls_return-number
WITH ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
ELSE.
* Saco los mensajes de las pestañas que tienen error
PERFORM mostrar_msg_tab_error.
ENDIF.
ENDFORM. " SAVE_VIEW
*&---------------------------------------------------------------------*
*& Form READ_VIEW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM read_view USING pe_name_view
CHANGING ps_return TYPE bapiret2.
* Debido a que en la creacion se pueden inicializar valores lo que hago es
* leer la vista y así tengo los datos exactos,
CALL METHOD mo_cnt_al30->read_view_alv
EXPORTING
iv_name_view = pe_name_view
iv_all_language = abap_true
IMPORTING
es_return = ps_return
es_view = zal30_t_view
et_fields_view_alv = mt_fields
et_fields_text_view_alv = mt_fields_text
ev_text_view = d_text_view.
" Guardo los textos originales de la vista para poder recuperar
" el texto en caso necesario
mt_fields_text_orig = mt_fields_text.
* Ajuste de campos y textos de los listados
PERFORM adjust_field_and_text.
ENDFORM. " READ_VIEW
*&---------------------------------------------------------------------*
*& Form EXPAND_FIELDS
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM expand_fields .
* Cuando se pulsa el botón cambio el estado el cual estaba.
IF mv_expand_fields = abap_true.
mv_expand_fields = abap_false.
ELSE.
mv_expand_fields = abap_true.
ENDIF.
ENDFORM. " EXPAND_FIELDS
*&---------------------------------------------------------------------*
*& Form FILL_BUTTON_TABLE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM fill_button_table USING fcode TYPE ui_func
icon TYPE any "iconname
type TYPE tb_btype
text TYPE text40
tip.
DATA ld_tip TYPE iconquick.
ld_tip = tip.
CALL METHOD mo_toolbar_fields->fill_buttons_data_table
EXPORTING
fcode = fcode
icon = icon
butn_type = type
text = text
quickinfo = ld_tip
CHANGING
data_table = mt_buttongroup.
ENDFORM. " FILL_BUTTON_TABLE
*&---------------------------------------------------------------------*
*& Form SYNC_DICTIONARY
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM sync_dictionary .
DATA ls_return TYPE bapiret2.
DATA ld_keep_text TYPE sap_bool.
DATA ld_answer TYPE c.
* Confirmación para mantener los textos
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = TEXT-t07
text_question = TEXT-t08
text_button_1 = TEXT-t09
text_button_2 = TEXT-t10
default_button = '1'
display_cancel_button = ''
IMPORTING
answer = ld_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF ld_answer = '1'.
ld_keep_text = abap_true.
ELSE.
ld_keep_text = abap_false.
ENDIF.
CALL METHOD mo_cnt_al30->adjust_view_dictionary
EXPORTING
iv_keep_text = ld_keep_text
IMPORTING
es_return = ls_return
ev_text_view = d_text_view
CHANGING
cs_view = zal30_t_view
ct_fields_view_alv = mt_fields
ct_fields_text_view_alv = mt_fields_text.
* Si no hay errores indico que no hay diferencias con el diccionario
IF ls_return-type NE zif_al30_data=>cs_msg_type-error.
mv_diff_dict = abap_false.
ENDIF.
* El mensaje lo saco tal cual
MESSAGE ID ls_return-id TYPE ls_return-type
NUMBER ls_return-number
WITH ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
* Actualizo los dos listados
CALL METHOD mo_alv_text->refresh_table_display( EXPORTING is_stable = ms_stable ).
CALL METHOD mo_alv_gen->refresh_table_display( EXPORTING is_stable = ms_stable ).
ENDFORM. " SYNC_DICTIONARY
*&---------------------------------------------------------------------*
*& Form CHECK_DICTIONARY
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM check_dictionary .
mo_cnt_al30->check_changes_dict_view( EXPORTING is_view = zal30_t_view
IMPORTING ev_diff_fields = DATA(lv_diff_fields)
ev_diff_text = DATA(lv_diff_text) ).
IF lv_diff_fields = abap_true OR lv_diff_text = abap_true.
mv_diff_dict = abap_true.
MESSAGE w024 WITH zal30_t_view-tabname.
ELSE.
mv_diff_dict = abap_false .
MESSAGE s025 WITH zal30_t_view-tabname.
ENDIF.
ENDFORM. " CHECK_DICTIONARY
*&---------------------------------------------------------------------*
*& Form LOAD_DROPDOWN_SOURCE_TEXT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM load_dropdown_source_text .
zcl_al30_util=>get_key_value_domain(
EXPORTING
iv_domain = zif_al30_data=>cs_domain-source_text
IMPORTING
et_values = DATA(lt_values) ).
LOOP AT lt_values ASSIGNING FIELD-SYMBOL(<ls_values>).
APPEND VALUE #( handle = mc_hndl_source_text int_value = <ls_values>-key value = <ls_values>-value ) TO mt_dropdown_gen.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form LOAD_DROPDOWN_LBL_TYPE_HEADER
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM load_dropdown_lbl_type_header .
zcl_al30_util=>get_key_value_domain(
EXPORTING
iv_domain = zif_al30_data=>cs_domain-label_type_header
IMPORTING
et_values = DATA(lt_values) ).
LOOP AT lt_values ASSIGNING FIELD-SYMBOL(<ls_values>).
APPEND VALUE #( handle = mc_hndl_lbl_type_header int_value = <ls_values>-key value = <ls_values>-value ) TO mt_dropdown_gen.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ENABLED_FIELD_TEXTS_SOURCE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM enabled_field_texts_source .
* Sacamos los campos asociados a los atributos de texto
zcl_al30_util=>get_fields_struc( EXPORTING iv_struc = zif_al30_data=>cv_fields_attr_text
IMPORTING et_fields = DATA(lt_fields_alv) ).
LOOP AT mt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>).
IF <ls_fields>-source_text = zif_al30_data=>cs_source_text-dictionary.
DATA(lv_style) = cl_gui_alv_grid=>mc_style_disabled.
ELSE.
lv_style = cl_gui_alv_grid=>mc_style_enabled.
ENDIF.
LOOP AT mt_fields_text ASSIGNING FIELD-SYMBOL(<ls_fields_text>) WHERE fieldname = <ls_fields>-fieldname.
LOOP AT lt_fields_alv ASSIGNING FIELD-SYMBOL(<ls_fields_alv>).
READ TABLE <ls_fields_text>-celltab ASSIGNING FIELD-SYMBOL(<ls_celltab>) WITH KEY fieldname = <ls_fields_alv>.
IF sy-subrc NE 0.
INSERT VALUE #( fieldname = <ls_fields_alv> style = lv_style ) INTO TABLE <ls_fields_text>-celltab.
ELSE.
<ls_celltab>-style = lv_style.
ENDIF.
ENDLOOP.
ENDLOOP.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FILL_FILTRO_COMUNES
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM fill_filtro_comunes .
CLEAR mt_filter.
APPEND VALUE #( fieldname = 'SPRAS' sign = 'I' option = 'EQ' low = mv_lang_vis ) TO mt_filter.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form CHANGE_LANGUAGE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM change_language USING pe_fcode.
* Indico el nuevo idioma de visualización.
mv_lang_vis = pe_fcode+5.
* Establezco el filtro de idioma al listado.
PERFORM set_filter_language_alv CHANGING mo_alv_text.
* Se pone el idioma de cabecera al ALV de campos.
PERFORM text_heading_fields.
* Fuerzo la actualización de los métodos que se vean los filtros
cl_gui_cfw=>flush( ).
ENDFORM.
*&---------------------------------------------------------------------*
*& Form SET_FILTER_LANGUAGE_ALV
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_MO_ALV_TEXT text
*----------------------------------------------------------------------*
FORM set_filter_language_alv CHANGING ps_alv TYPE REF TO cl_gui_alv_grid.
DATA lt_filter TYPE lvc_t_filt.
DATA ls_filter TYPE lvc_t_filt.
" Recupero los filtros que pueda tener
CALL METHOD ps_alv->get_filter_criteria
IMPORTING
et_filter = lt_filter.
* Elimino el filtro de campo idioma, que se rellena de manera fija
DELETE lt_filter WHERE fieldname = 'SPRAS'.
* Creo el filtro
PERFORM fill_filtro_comunes. " Rellena los filtros comunes para los alvs
APPEND LINES OF mt_filter TO lt_filter.
* Se establece el filtro
CALL METHOD ps_alv->set_filter_criteria
EXPORTING
it_filter = lt_filter
EXCEPTIONS
no_fieldcatalog_available = 1
OTHERS = 2.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form TEXT_HEADING_FIELDS
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM text_heading_fields .
" Actualizo el texto del campo segun el origen del texto del campo
LOOP AT mt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>).
READ TABLE mt_fields_text ASSIGNING FIELD-SYMBOL(<ls_fields_text>)
WITH KEY fieldname = <ls_fields>-fieldname
spras = mv_lang_vis.
IF sy-subrc = 0.
" El texto de la cabecera dependerá del seleccionado en la pestaña de textos, aunque siempre hay un valor por defecto
CASE <ls_fields>-lbl_type_header.
WHEN zif_al30_data=>cs_label_type_col_header-header.
<ls_fields>-reptext = <ls_fields_text>-reptext.
WHEN zif_al30_data=>cs_label_type_col_header-short.
<ls_fields>-reptext = <ls_fields_text>-scrtext_s.
WHEN zif_al30_data=>cs_label_type_col_header-medium.
<ls_fields>-reptext = <ls_fields_text>-scrtext_m.
WHEN zif_al30_data=>cs_label_type_col_header-long.
<ls_fields>-reptext = <ls_fields_text>-scrtext_l.
WHEN zif_al30_data=>cs_label_type_col_header-auto.
zcl_al30_util=>get_optime_text_header(
EXPORTING
iv_reptext = <ls_fields_text>-reptext
iv_scrtext_s = <ls_fields_text>-scrtext_s
iv_scrtext_m = <ls_fields_text>-scrtext_m
iv_scrtext_l = <ls_fields_text>-scrtext_l
IMPORTING
ev_text = <ls_fields>-reptext ).
ENDCASE.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form SUBMENU_LANGUAGES
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM submenu_languages USING pe_posx pe_posy.
DATA: lo_menu TYPE REF TO cl_ctmenu.
DATA: lv_fcode TYPE ui_func.
DATA: lv_text TYPE gui_text.
DATA ld_checked TYPE cua_active.
CREATE OBJECT lo_menu.
* Recupero los idiomas instalados en el sistema
mo_cnt_al30->get_logon_languages( IMPORTING et_lang = DATA(lt_languages) ).
LOOP AT lt_languages ASSIGNING FIELD-SYMBOL(<ls_logon_lang>).
CONCATENATE cs_toolbar_functions-id_lang_button <ls_logon_lang>-lang INTO lv_fcode.
lv_text = <ls_logon_lang>-description.
* Si el idioma de visualización es el mismo que se esta leyendo la opcion del
* menu saldra marcada. De esta manera se sabe cual es idioma que se esta
* tratando.
IF <ls_logon_lang>-lang = mv_lang_vis.
ld_checked = abap_true.
ELSE.
ld_checked = abap_false.
ENDIF.
CALL METHOD lo_menu->add_function
EXPORTING
fcode = lv_fcode
text = lv_text
checked = ld_checked.
ENDLOOP.
IF sy-subrc = 0.
CALL METHOD mo_toolbar_fields->track_context_menu
EXPORTING
context_menu = lo_menu
posx = pe_posx
posy = pe_posy.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ADJUST_FIELD_AND_TEXT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM adjust_field_and_text .
* Activación/Desactivación de campos de entrada de textos segun la opción de origen del texto
PERFORM enabled_field_texts_source.
* Se pone el idioma de cabecera al ALV de campos.
PERFORM text_heading_fields.
* Activación/desacticacion del campo de checkbox si el campo es técnico
PERFORM enabled_field_tech.
" Ajuste de campos virtuales
PERFORM enabled_virtual_fields.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_FIELDCAT_GEN
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM alv_fieldcat_gen .
FIELD-SYMBOLS <ls_fieldcat> TYPE LINE OF lvc_t_fcat.
DATA ls_fieldcat_gen TYPE LINE OF lvc_t_fcat.
CLEAR: mt_fieldcat_gen.
* Recorro los campos y los voy colocando
LOOP AT mt_fieldcat ASSIGNING <ls_fieldcat>.
CLEAR: ls_fieldcat_gen.
CASE <ls_fieldcat>-fieldname.
WHEN 'FIELDNAME'. " Nombre del campo
* El nombre del campo se pone en todos
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-col_opt = abap_true.
WHEN 'POS_DDIC'. " Posición
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-edit = abap_true.
ls_fieldcat_gen-col_pos = 3.
WHEN 'REPTEXT'. " Texto cabecera
<ls_fieldcat>-col_opt = abap_true.
* El texto de cabecera se pone siempre.
ls_fieldcat_gen = <ls_fieldcat>.
* En los atributos generales ha de salir en la segunda posicion justo despues del nombre del campo.
ls_fieldcat_gen-col_pos = 2.
* Opciones de visualización van a los atributos principales
WHEN 'NO_OUTPUT' OR 'TECH' OR 'MANDATORY'.
<ls_fieldcat>-col_opt = abap_true.
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-checkbox = abap_true.
ls_fieldcat_gen-edit = abap_true.
ls_fieldcat_gen-outputlen = 9.
WHEN 'SOURCE_TEXT'. " Origen del texto del campo
<ls_fieldcat>-col_opt = abap_true.
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-edit = abap_true.
ls_fieldcat_gen-drdn_hndl = mc_hndl_source_text. " Handle del dropdown
ls_fieldcat_gen-drdn_alias = abap_true.
ls_fieldcat_gen-convexit = 'ZSRCT'.
" Se carga los valores para el dropdown
PERFORM load_dropdown_source_text.
WHEN 'CHECKBOX'. " Indicador si es un campo de checkbox
ls_fieldcat_gen-fieldname = <ls_fieldcat>-fieldname.
ls_fieldcat_gen-checkbox = abap_true.
ls_fieldcat_gen-coltext = TEXT-c03.
ls_fieldcat_gen-col_pos = 10.
ls_fieldcat_gen-edit = abap_true.
WHEN 'SEL_SCREEN'. " Indicador si se mostrará en la pantalla de selección
ls_fieldcat_gen-fieldname = <ls_fieldcat>-fieldname.
ls_fieldcat_gen-checkbox = abap_true.
ls_fieldcat_gen-coltext = TEXT-c04.
ls_fieldcat_gen-col_pos = 11.
ls_fieldcat_gen-edit = abap_true.
WHEN 'ADD_DESC'. " Añadir de la descripción
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-edit = abap_false.
ls_fieldcat_gen-col_pos = 12.
ls_fieldcat_gen-checkbox = abap_true.
<ls_fieldcat>-col_opt = abap_true.
WHEN 'VIRTUAL'. " Indicador de campo virtual
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-col_pos = 20.
ls_fieldcat_gen-checkbox = abap_true.
ls_fieldcat_gen-no_out = abap_true.
WHEN 'VIRTUAL_DTEL'. " Elemento de datos
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-edit = abap_true.
ls_fieldcat_gen-col_pos = 22.
* Indicador de campo que pertenece a la tabla de textos
WHEN 'FIELD_TEXTTABLE'.
ls_fieldcat_gen-fieldname = <ls_fieldcat>-fieldname.
ls_fieldcat_gen-checkbox = abap_true.
ls_fieldcat_gen-coltext = TEXT-c01.
ls_fieldcat_gen-col_pos = 100.
* Indicador que es el campo idioma de la tabla de textos
WHEN 'LANG_TEXTTABLE'.
ls_fieldcat_gen-fieldname = <ls_fieldcat>-fieldname.
ls_fieldcat_gen-checkbox = abap_true.
ls_fieldcat_gen-coltext = TEXT-c02.
ls_fieldcat_gen-col_pos = 110.
WHEN 'KEY_DDIC'. " Indicador de campo clave
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-checkbox = abap_true.
ls_fieldcat_gen-col_pos = 120.
WHEN 'LBL_TYPE_HEADER'. " Tipo de texto que se usará en la cabecera de las columnas
<ls_fieldcat>-col_opt = abap_true.
ls_fieldcat_gen = <ls_fieldcat>.
ls_fieldcat_gen-edit = abap_true.
ls_fieldcat_gen-drdn_hndl = mc_hndl_lbl_type_header. " Handle del dropdown
ls_fieldcat_gen-drdn_alias = abap_true.
ls_fieldcat_gen-convexit = 'ZLTCT'.
" Se carga los valores para el dropdown
PERFORM load_dropdown_lbl_type_header.
ENDCASE.
IF ls_fieldcat_gen IS NOT INITIAL.
APPEND ls_fieldcat_gen TO mt_fieldcat_gen.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_FIELDCAT_TEXT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM alv_fieldcat_text .
FIELD-SYMBOLS <ls_fieldcat> TYPE LINE OF lvc_t_fcat.
DATA ls_fieldcat_text TYPE LINE OF lvc_t_fcat.
CLEAR: mt_fieldcat_text.
* Recorro los campos y los voy colocando
LOOP AT mt_fieldcat ASSIGNING <ls_fieldcat>.
CLEAR: ls_fieldcat_text.
CASE <ls_fieldcat>-fieldname.
WHEN 'FIELDNAME'. " Nombre del campo
* El nombre del campo se pone en todos
<ls_fieldcat>-col_opt = abap_true.
ls_fieldcat_text = <ls_fieldcat>.
WHEN 'REPTEXT'. " Texto cabecera
<ls_fieldcat>-col_opt = abap_true.
* El texto de cabecera se pone siempre.
ls_fieldcat_text = <ls_fieldcat>.
* Para el catalogo de textos ha de ser editable
ls_fieldcat_text-edit = 'X'.
WHEN 'SPRAS'.
* El comportamiento del campo debe ser el mismo en los dos listados
ls_fieldcat_text = <ls_fieldcat>.
ls_fieldcat_text-col_opt = abap_true.
ls_fieldcat_text-no_out = abap_true.
ls_fieldcat_text-col_pos = 2.
* Texto corto, largo y grande para ALV de textos
WHEN 'SCRTEXT_S' OR 'SCRTEXT_M' OR 'SCRTEXT_L'.
<ls_fieldcat>-col_opt = abap_true.
ls_fieldcat_text = <ls_fieldcat>.
ls_fieldcat_text-edit = 'X'.
ENDCASE.
IF ls_fieldcat_text IS NOT INITIAL.
APPEND ls_fieldcat_text TO mt_fieldcat_text.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_FIELDCATALOG
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM alv_fieldcatalog .
CLEAR: mt_fieldcat.
* En la estructura de diccionario contiene todos los campos que contendrán los dos ALV
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = zif_al30_data=>cv_ddic_fields
i_bypassing_buffer = abap_true
CHANGING
ct_fieldcat = mt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* Implement suitable error handling here
MESSAGE x012 WITH zif_al30_data=>cv_ddic_fields.
ENDIF.
* Borro los campos de mandante y tabla que no serán necesarios.
DELETE mt_fieldcat WHERE fieldname = 'MANDT'.
DELETE mt_fieldcat WHERE fieldname = 'TABNAME'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form TRANSPORT_ENTRIES
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM transport_entries USING pe_objfunc TYPE objfunc.
DATA ls_return TYPE bapiret2.
* Aunque el boton de transporte no es visible si el sistema esta cerrado, hago
* una segunda comprobación por si ponen el codigo de funcion por la barra de comandos.
IF mv_pedir_orden = abap_true.
" Si lanza el proceso que lo que hará es validar y/o solicitar la orden de transporte
" para guardar las entradas.
mo_cnt_al30->check_select_transport_order( EXPORTING iv_category = zif_al30_data=>cs_order_category-workbench
IMPORTING es_return = ls_return
CHANGING cv_order = mv_orden_transporte ).
IF mv_orden_transporte IS NOT INITIAL.
mo_cnt_al30->transport_view_alv( EXPORTING is_view = zal30_t_view
it_fields_view_alv = mt_fields
it_fields_text_view_alv = mt_fields_text
iv_spras = mv_lang_vis
IMPORTING es_return = ls_return
CHANGING cv_order = mv_orden_transporte ).
ENDIF.
IF ls_return IS NOT INITIAL.
MESSAGE ID ls_return-id TYPE ls_return-type
NUMBER ls_return-number
WITH ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
ENDIF.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form syncro_field_texts_source
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM syncro_field_texts_source .
* El objetivo es que todos los campos que tengan la opción de textos
* del diccionario, ponerle el texto del diccionario
LOOP AT mt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>)
WHERE source_text = zif_al30_data=>cs_source_text-dictionary.
READ TABLE mt_fields_text ASSIGNING FIELD-SYMBOL(<ls_fields_text>) WITH KEY fieldname = <ls_fields>-fieldname
spras = mv_lang_vis.
IF sy-subrc = 0.
READ TABLE mt_fields_text_orig ASSIGNING FIELD-SYMBOL(<ls_fields_text_orig>)
WITH KEY fieldname = <ls_fields>-fieldname
spras = <ls_fields_text>-spras.
IF sy-subrc = 0.
<ls_fields_text>-reptext = <ls_fields_text_orig>-reptext.
<ls_fields_text>-scrtext_l = <ls_fields_text_orig>-scrtext_l.
<ls_fields_text>-scrtext_s = <ls_fields_text_orig>-scrtext_s.
<ls_fields_text>-scrtext_m = <ls_fields_text_orig>-scrtext_m.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ENABLED_FIELD_TECH
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM enabled_field_tech .
LOOP AT mt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>).
IF <ls_fields>-tech = abap_true.
DATA(lv_style) = cl_gui_alv_grid=>mc_style_disabled.
ELSE.
lv_style = cl_gui_alv_grid=>mc_style_enabled.
ENDIF.
" Campo pantalla de seleccion
READ TABLE <ls_fields>-celltab ASSIGNING FIELD-SYMBOL(<ls_celltab>)
WITH KEY fieldname = zif_al30_data=>cs_fix_field_conf-sel_screen.
IF sy-subrc NE 0.
INSERT VALUE #( fieldname = zif_al30_data=>cs_fix_field_conf-sel_screen
style = lv_style )
INTO TABLE <ls_fields>-celltab.
ELSE.
<ls_celltab>-style = lv_style.
ENDIF.
" Campo obligatorio
READ TABLE <ls_fields>-celltab ASSIGNING <ls_celltab>
WITH KEY fieldname = zif_al30_data=>cs_fix_field_conf-mandatory.
IF sy-subrc NE 0.
INSERT VALUE #( fieldname = zif_al30_data=>cs_fix_field_conf-mandatory
style = lv_style )
INTO TABLE <ls_fields>-celltab.
ELSE.
<ls_celltab>-style = lv_style.
ENDIF.
" Campo salida
READ TABLE <ls_fields>-celltab ASSIGNING <ls_celltab>
WITH KEY fieldname = zif_al30_data=>cs_fix_field_conf-no_output.
IF sy-subrc NE 0.
INSERT VALUE #( fieldname = zif_al30_data=>cs_fix_field_conf-no_output
style = lv_style )
INTO TABLE <ls_fields>-celltab.
ELSE.
<ls_celltab>-style = lv_style.
ENDIF.
" Origen del texto
READ TABLE <ls_fields>-celltab ASSIGNING <ls_celltab>
WITH KEY fieldname = zif_al30_data=>cs_fix_field_conf-source_text.
IF sy-subrc NE 0.
INSERT VALUE #( fieldname = zif_al30_data=>cs_fix_field_conf-source_text
style = lv_style )
INTO TABLE <ls_fields>-celltab.
ELSE.
<ls_celltab>-style = lv_style.
ENDIF.
" Checkbox
READ TABLE <ls_fields>-celltab ASSIGNING <ls_celltab>
WITH KEY fieldname = zif_al30_data=>cs_fix_field_conf-checkbox.
IF sy-subrc NE 0.
INSERT VALUE #( fieldname = zif_al30_data=>cs_fix_field_conf-checkbox
style = lv_style )
INTO TABLE <ls_fields>-celltab.
ELSE.
<ls_celltab>-style = lv_style.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ADJUST_VIRTUAL_FIELDS
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
FORM enabled_virtual_fields .
LOOP AT mt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>).
DATA(lv_style) = COND #( WHEN <ls_fields>-virtual = abap_true THEN cl_gui_alv_grid=>mc_style_enabled ELSE cl_gui_alv_grid=>mc_style_disabled ).
" Elemento de datos del campo virtual
READ TABLE <ls_fields>-celltab ASSIGNING FIELD-SYMBOL(<ls_celltab>)
WITH KEY fieldname = zif_al30_data=>cs_fix_field_conf-virtual_dtel.
IF sy-subrc NE 0.
INSERT VALUE #( fieldname = zif_al30_data=>cs_fix_field_conf-virtual_dtel
style = lv_style )
INTO TABLE <ls_fields>-celltab.
ELSE.
<ls_celltab>-style = lv_style.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ADD_VIRTUAL_FIELD
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
FORM add_virtual_field .
" Se chequea el campo virtual no exista
DATA(lv_field) = |{ zif_al30_data=>cs_virtual_fields-prefix }{ ms_virtual_field-name }|.
READ TABLE mt_fields TRANSPORTING NO FIELDS WITH KEY fieldname = lv_field.
IF sy-subrc NE 0.
" Se leen los datos del elementos en todos los idiomas
TRY.
" Se busca la última posición usada
DATA(lv_position) = REDUCE #( INIT x = 0 FOR <wa> IN mt_fields NEXT x = COND #( WHEN <wa>-pos_ddic > x THEN <wa>-pos_ddic ELSE x ) ).
lv_position = lv_position + 1.
" Se inserta en la tabla de campos
INSERT VALUE #( tabname = zal30_t_view-tabname
fieldname = lv_field
pos_ddic = lv_position
source_text = zif_al30_data=>cs_source_text-dictionary
virtual = abap_true
virtual_dtel = ms_virtual_field-dtel ) INTO TABLE mt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>).
" Se añaden los textos
PERFORM add_text_of_dtel USING ms_virtual_field-dtel
CHANGING <ls_fields>.
CLEAR: ms_virtual_field-dtel, ms_virtual_field-name.
" Se lanza el proceso que ajusta los campos virtuales
PERFORM enabled_virtual_fields.
mo_alv_gen->refresh_table_display( EXPORTING is_stable = ms_stable ).
mo_alv_text->refresh_table_display( EXPORTING is_stable = ms_stable ).
cl_gui_cfw=>flush( ).
SET SCREEN 0. LEAVE SCREEN.
CATCH zcx_al30.
CLEAR: mv_okcode_9004.
MESSAGE s021 WITH ms_virtual_field-dtel DISPLAY LIKE zif_al30_data=>cs_msg_type-error.
ENDTRY.
ELSE.
CLEAR: mv_okcode_9004.
MESSAGE s010 WITH ms_virtual_field-name DISPLAY LIKE zif_al30_data=>cs_msg_type-error.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form SHOW_DYNP_ADD_VIRTUAL_FIELD
*&---------------------------------------------------------------------*
FORM show_dynp_add_virtual_field .
CLEAR: ms_virtual_field.
" Se pone el prefijo para que salga en la dynpro
ms_virtual_field-text_prefix = |{ TEXT-i01 } { zif_al30_data=>cs_virtual_fields-prefix }|.
CALL SCREEN 9004 STARTING AT 5 2 ENDING AT 70 5.
ENDFORM.
FORM delete_fields.
mo_alv_gen->get_selected_rows( IMPORTING et_index_rows = DATA(lt_rows) ).
DATA(lv_valid_fields) = abap_false.
LOOP AT lt_rows ASSIGNING FIELD-SYMBOL(<ls_rows>).
READ TABLE mt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>) INDEX <ls_rows>-index.
IF sy-subrc = 0.
" Solo se pueden borrar campos virtuales
IF <ls_fields>-virtual = abap_true.
lv_valid_fields = abap_true.
DELETE mt_fields_text WHERE fieldname = <ls_fields>-fieldname.
DELETE mt_fields INDEX <ls_rows>-index.
ENDIF.
ENDIF.
ENDLOOP.
IF sy-subrc NE 0.
MESSAGE s063.
ELSE.
IF lv_valid_fields = abap_false.
MESSAGE s064.
ENDIF.
ENDIF.
ENDFORM.
FORM update_dtel_virtual_field USING pe_dtel
CHANGING ps_field_line TYPE zif_al30_data=>ts_fields_view_alv.
TRY.
ps_field_line-virtual_dtel = pe_dtel. " Se cambia el elemento de datos
" Se quitan los textos del campo pasado por parámetro
DELETE mt_fields_text WHERE fieldname = ps_field_line-fieldname.
DELETE mt_fields_text_orig WHERE fieldname = ps_field_line-fieldname.
" Se añaden los textos a las tablas de textos
PERFORM add_text_of_dtel USING pe_dtel
CHANGING ps_field_line.
CATCH zcx_al30.
ENDTRY.
ENDFORM.
FORM add_text_of_dtel USING pe_dtel
CHANGING ps_field_line TYPE zif_al30_data=>ts_fields_view_alv.
TRY.
mo_cnt_al30->read_data_element_all_lang( EXPORTING iv_dtel = CONV #( pe_dtel )
IMPORTING et_info = DATA(lt_info_dtel) ).
LOOP AT lt_info_dtel ASSIGNING FIELD-SYMBOL(<ls_info_dtel>).
DATA(ls_field_text) = CORRESPONDING zif_al30_data=>ts_fields_text_view_alv( <ls_info_dtel> ).
ls_field_text-tabname = ps_field_line-tabname.
ls_field_text-fieldname = ps_field_line-fieldname.
ls_field_text-pos_ddic = ps_field_line-pos_ddic.
ls_field_text-spras = <ls_info_dtel>-langu.
ps_field_line-reptext = COND #( WHEN <ls_info_dtel>-langu = mv_lang_vis THEN ls_field_text-reptext ELSE ps_field_line-reptext ).
INSERT ls_field_text INTO TABLE mt_fields_text.
" Se añade el mismo registro a la tabla de textos original por si cambian textos y los quieren volver a dejar
INSERT ls_field_text INTO TABLE mt_fields_text_orig.
ENDLOOP.
CATCH zcx_al30.
ENDTRY.
ENDFORM.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
1847,
1270,
62,
5673,
1268,
62,
10943,
37,
62,
37,
486,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
220,
220,
5178,
220,
3268,
2043,
12576,
14887,
2246,
2849,
198,
9,
5,
10097,
30934,
9,
198,
9,
220,
220,
220,
220,
220,
220,
2420,
198,
9,
10097,
23031,
9,
198,
21389,
4238,
528,
49443,
764,
198,
198,
9,
5844,
78,
1288,
26181,
27206,
8358,
393,
6138,
283,
6557,
284,
67,
292,
39990,
1515,
49443,
274,
198,
220,
29244,
6158,
25334,
23680,
6941,
62,
66,
429,
62,
282,
1270,
13,
198,
198,
9,
11138,
66,
295,
274,
8358,
384,
409,
565,
84,
343,
21162,
390,
22346,
8355,
53,
198,
220,
19878,
21389,
25439,
62,
42218,
62,
282,
85,
13,
198,
198,
9,
44515,
78,
2276,
390,
1413,
418,
198,
220,
19878,
21389,
435,
85,
62,
3245,
9246,
11794,
13,
198,
198,
9,
1423,
3713,
8358,
22346,
17434,
6966,
390,
22346,
8355,
53,
645,
384,
285,
2502,
21162,
390,
1226,
292,
331,
951,
388,
2616,
198,
220,
13845,
62,
31284,
12,
808,
796,
450,
499,
62,
7942,
13,
198,
220,
13845,
62,
31284,
12,
4033,
796,
450,
499,
62,
7942,
13,
198,
198,
9,
20139,
11855,
418,
22346,
4818,
418,
390,
39990,
279,
18059,
12654,
292,
3367,
3376,
418,
198,
220,
285,
85,
62,
19608,
418,
62,
12102,
418,
62,
5239,
796,
450,
499,
62,
7942,
13,
198,
220,
285,
85,
62,
19608,
418,
62,
12102,
418,
62,
5235,
796,
450,
499,
62,
7942,
13,
198,
198,
9,
2574,
5739,
288,
14378,
384,
38779,
395,
2596,
22346,
4818,
418,
390,
16212,
8607,
331,
1413,
418,
384,
38779,
395,
430,
16964,
11855,
78,
198,
220,
285,
85,
62,
11201,
392,
62,
25747,
796,
450,
499,
62,
7942,
13,
198,
220,
285,
85,
62,
11201,
392,
62,
25677,
796,
450,
499,
62,
7942,
13,
198,
198,
9,
360,
361,
14226,
979,
292,
920,
260,
8591,
410,
12523,
331,
1288,
288,
44240,
295,
4982,
13,
554,
6652,
434,
68,
645,
39990,
27678,
13,
198,
220,
285,
85,
62,
26069,
62,
11600,
796,
450,
499,
62,
9562,
13,
198,
198,
9,
1001,
664,
48568,
64,
33721,
384,
24573,
430,
5552,
283,
8591,
4566,
333,
32009,
18840,
198,
220,
285,
85,
62,
9124,
343,
62,
585,
268,
796,
6941,
62,
66,
429,
62,
282,
1270,
3784,
40845,
62,
7645,
634,
7,
6739,
198,
198,
9,
35748,
288,
14378,
384,
4860,
64,
8591,
2760,
268,
390,
4839,
68,
288,
14378,
384,
4860,
64,
8591,
198,
9,
4566,
333,
32009,
18840,
198,
220,
30301,
1503,
285,
85,
62,
585,
268,
62,
7645,
634,
68,
13,
198,
198,
9,
5121,
72,
6086,
390,
5874,
528,
32009,
18840,
390,
2420,
418,
198,
220,
285,
85,
62,
17204,
62,
4703,
796,
827,
12,
75,
2303,
13,
198,
198,
9,
1001,
664,
48568,
64,
33721,
384,
24573,
81,
6557,
5552,
283,
8591,
4566,
333,
32009,
18840,
198,
9,
220,
288,
62,
16321,
62,
4666,
361,
62,
19608,
418,
796,
467,
62,
36500,
3784,
40845,
62,
4666,
1958,
62,
7890,
7,
6739,
198,
9,
6706,
390,
7639,
450,
72,
13806,
16964,
4188,
1658,
555,
64,
7400,
5031,
390,
476,
26968,
331,
551,
269,
723,
421,
959,
264,
396,
19687,
384,
24573,
430,
953,
811,
283,
13,
198,
9,
331,
2376,
8358,
1614,
2731,
303,
1288,
285,
25125,
24313,
32700,
12199,
46668,
1734,
1908,
17305,
31215,
7400,
21921,
390,
2183,
2890,
13,
317,
21356,
77,
355,
72,
11,
198,
9,
390,
7639,
8591,
7885,
16964,
4188,
33721,
551,
555,
13294,
1434,
627,
959,
78,
1334,
1806,
343,
16964,
267,
9535,
6124,
84,
8836,
301,
3970,
13,
198,
220,
285,
85,
62,
16321,
62,
4666,
361,
62,
19608,
418,
796,
450,
499,
62,
7942,
13,
198,
198,
9,
371,
695,
23397,
8591,
7400,
21921,
390,
435,
85,
31215,
22346,
1226,
83,
4951,
401,
4015,
13,
198,
220,
19878,
21389,
6070,
62,
69,
2326,
305,
62,
785,
4015,
13,
628,
198,
1677,
8068,
1581,
44,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3268,
2043,
12576,
14887,
2246,
2849,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
220,
220,
5178,
220,
5870,
27746,
62,
28206,
198,
9,
5,
10097,
30934,
9,
198,
9,
220,
220,
220,
220,
220,
220,
2420,
198,
9,
10097,
23031,
9,
198,
21389,
1487,
62,
1177,
764,
198,
220,
42865,
43979,
62,
7783,
41876,
275,
499,
557,
83,
17,
13,
198,
220,
42865,
300,
67,
62,
3672,
62,
1177,
41876,
7400,
3672,
13,
198,
198,
9,
39245,
1288,
299,
2381,
260,
390,
8591,
410,
12523,
257,
555,
64,
7885,
31215,
8358,
645,
384,
1761,
21749,
198,
9,
18912,
25440,
384,
1323,
6888,
22346,
4818,
418,
390,
8591,
410,
12523,
198,
220,
300,
67,
62,
3672,
62,
1177,
796,
1976,
282,
1270,
62,
83,
62,
1177,
12,
8658,
3672,
13,
628,
220,
19878,
21389,
1100,
62,
1177,
1294,
2751,
300,
67,
62,
3672,
62,
1177,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
43979,
62,
7783,
13,
198,
198,
9,
337,
7058,
33721,
8591,
410,
12523,
2152,
68,
13,
2039,
6124,
78,
3445,
4982,
26992,
10872,
8591,
1515,
32009,
18840,
390,
1126,
49443,
198,
220,
16876,
43979,
62,
7783,
12,
4906,
796,
1976,
361,
62,
282,
1270,
62,
7890,
14804,
6359,
62,
19662,
62,
4906,
12,
18224,
13,
198,
198,
9,
569,
2731,
13038,
257,
664,
48568,
283,
1288,
299,
2381,
260,
390,
8591,
410,
12523,
198,
220,
220,
220,
1976,
282,
1270,
62,
83,
62,
1177,
12,
8658,
3672,
796,
300,
67,
62,
3672,
62,
1177,
13,
198,
198,
9,
2039,
1658,
68,
6124,
78,
5360,
78,
1288,
285,
641,
1228,
68,
38836,
4533,
13,
6706,
279,
25162,
390,
8171,
78,
705,
50,
6,
198,
9,
16964,
4188,
257,
403,
4188,
645,
2152,
64,
11,
390,
1350,
2152,
343,
8591,
1034,
979,
18840,
390,
1126,
283,
5439,
13,
198,
220,
220,
220,
337,
1546
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*&---------------------------------------------------------------------*
*& Report ZDEMO_EXCEL
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zdemo_excel.
DATA: lv_workdir TYPE string,
lv_upfile TYPE string.
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 = sy-lisel ).
CONCATENATE p_path sy-lisel '01_HelloWorld.xlsx' INTO lv_upfile.
SUBMIT zdemo_excel1 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Hello world
SUBMIT zdemo_excel2 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Styles
SUBMIT zdemo_excel3 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: iTab binding
SUBMIT zdemo_excel4 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Multi sheets, page setup and sheet properties
SUBMIT zdemo_excel5 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Conditional formatting
SUBMIT zdemo_excel6 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Formulas
SUBMIT zdemo_excel7 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Conditional formatting
SUBMIT zdemo_excel8 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Ranges
SUBMIT zdemo_excel9 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Data validation
SUBMIT zdemo_excel10 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Bind table with field catalog
" zdemo_excel11 is not added because it has a selection screen and
" you also need to have business partners maintained in transaction BP
SUBMIT zdemo_excel12 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Column size
SUBMIT zdemo_excel13 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Merge cell
SUBMIT zdemo_excel14 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Alignment
" zdemo_excel15 added at the end
SUBMIT zdemo_excel16 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Drawing
SUBMIT zdemo_excel17 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Lock sheet
SUBMIT zdemo_excel18 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Lock workbook
SUBMIT zdemo_excel19 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Set active sheet
" zdemo_excel20 is not added because it uses ALV and cannot be processed (OLE2)
SUBMIT zdemo_excel21 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Color Picker
SUBMIT zdemo_excel22 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Bind table with field catalog & sheet style
SUBMIT zdemo_excel23 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Multiple sheets with and w/o grid lines, print options
SUBMIT zdemo_excel24 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Multiple sheets with different default date formats
SUBMIT zdemo_excel25 AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Create and xlsx on Application Server (could be executed in batch mode)
" zdemo_excel26 is not added because it uses ALV and cannot be processed (Native)
SUBMIT zdemo_excel27 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Conditional Formatting
SUBMIT zdemo_excel28 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: CSV writer
" SUBMIT zdemo_excel29 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Macro enabled workbook
SUBMIT zdemo_excel30 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: ABAP Cell data types + leading blanks string
SUBMIT zdemo_excel31 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Autosize Column with different Font sizes
" zdemo_excel32 is not added because it uses ALV and cannot be processed (Native)
SUBMIT zdemo_excel33 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Table autofilter
SUBMIT zdemo_excel34 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Static Styles Chess
SUBMIT zdemo_excel35 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Static Styles
SUBMIT zdemo_excel36 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Style applied to sheet, column and single cell
SUBMIT zdemo_excel37 WITH p_upfile = lv_upfile
WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Simplest call of the reader and writer - passthrough data
SUBMIT zdemo_excel38 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Show off integration of drawings ( here using the SAP-Icons )
SUBMIT zdemo_excel39 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Charts
SUBMIT zdemo_excel40 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Demo Printsettings
SUBMIT zdemo_excel41 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Inheritance
"
" Reader/Writer Demo must always run at the end
" to make sure all documents where created
"
SUBMIT zdemo_excel15 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT Read Excel and write it back
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
39429,
46,
62,
6369,
34,
3698,
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,
1976,
9536,
78,
62,
1069,
5276,
13,
198,
198,
26947,
25,
300,
85,
62,
1818,
15908,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
929,
7753,
220,
41876,
4731,
13,
628,
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,
628,
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,
827,
12,
27999,
417,
6739,
198,
220,
39962,
1404,
1677,
6158,
279,
62,
6978,
827,
12,
27999,
417,
705,
486,
62,
15496,
10603,
13,
87,
7278,
87,
6,
39319,
300,
85,
62,
929,
7753,
13,
628,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
16,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
18435,
995,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
17,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
44963,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
18,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
4748,
397,
12765,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
19,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
15237,
15747,
11,
2443,
9058,
290,
9629,
6608,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
20,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
9724,
1859,
33313,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
21,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
5178,
25283,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
22,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
9724,
1859,
33313,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
23,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
371,
6231,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
24,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978,
220,
220,
220,
220,
796,
279,
62,
6978,
5357,
30826,
27064,
13,
25113,
2943,
14514,
62,
50,
10526,
36393,
450,
499,
17,
87,
7278,
87,
34588,
25,
6060,
21201,
198,
220,
28932,
36393,
1976,
9536,
78,
62,
1069,
5276,
940,
13315,
374,
65,
62,
2902,
796,
450,
499,
62,
7942,
13315,
374,
65,
62,
12860,
796,
450,
499,
62,
9562,
13315,
220,
279,
62,
6978
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_TIMEM_ASSET_FACTORY definition
public
final
create public .
public section.
methods CREATE_INSTANCE
importing
!ASSET_TYPE type STRING
!DATA type ZTIMEM_DATA
returning
value(RESULT) type ref to ZIF_TIMEM_ASSET .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_TIMEM_ASSET_FACTORY IMPLEMENTATION.
METHOD create_instance.
DATA(options) = zcl_timem_options=>get_instance( ).
result = SWITCH #(
asset_type
WHEN 'CSS' THEN NEW zcl_timem_asset_css( options->theme )
WHEN 'HTML' THEN
SWITCH #(
options->mode
WHEN zcl_timem_consts=>mode-blame THEN NEW zcl_timem_asset_html_blame( data )
WHEN zcl_timem_consts=>mode-time_machine THEN NEW zcl_timem_asset_html_tmachine( data ) ) ).
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
51,
3955,
3620,
62,
10705,
2767,
62,
37,
10659,
15513,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
5050,
29244,
6158,
62,
38604,
19240,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
10705,
2767,
62,
25216,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
26947,
2099,
1168,
51,
3955,
3620,
62,
26947,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
19535,
16724,
8,
2099,
1006,
284,
1168,
5064,
62,
51,
3955,
3620,
62,
10705,
2767,
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,
51,
3955,
3620,
62,
10705,
2767,
62,
37,
10659,
15513,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2251,
62,
39098,
13,
198,
220,
220,
220,
42865,
7,
25811,
8,
796,
1976,
565,
62,
16514,
368,
62,
25811,
14804,
1136,
62,
39098,
7,
6739,
198,
220,
220,
220,
1255,
796,
12672,
31949,
1303,
7,
198,
220,
220,
220,
220,
220,
11171,
62,
4906,
198,
220,
220,
220,
220,
220,
42099,
705,
49155,
6,
42243,
12682,
1976,
565,
62,
16514,
368,
62,
562,
316,
62,
25471,
7,
3689,
3784,
43810,
1267,
198,
220,
220,
220,
220,
220,
42099,
705,
28656,
6,
42243,
198,
220,
220,
220,
220,
220,
220,
220,
12672,
31949,
1303,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3689,
3784,
14171,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42099,
1976,
565,
62,
16514,
368,
62,
1102,
6448,
14804,
14171,
12,
2436,
480,
42243,
12682,
1976,
565,
62,
16514,
368,
62,
562,
316,
62,
6494,
62,
2436,
480,
7,
1366,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42099,
1976,
565,
62,
16514,
368,
62,
1102,
6448,
14804,
14171,
12,
2435,
62,
30243,
42243,
12682,
1976,
565,
62,
16514,
368,
62,
562,
316,
62,
6494,
62,
17209,
20480,
7,
1366,
1267,
1267,
6739,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 29.06.2018 18:05:32
FUNCTION-POOL ZMQBA_TAB MESSAGE-ID SV.
* INCLUDE LZMQBA_TABD... " Local class definition
INCLUDE LSVIMDAT . "general data decl.
INCLUDE LZMQBA_TABT00 . "view rel. data dcl.
| [
9,
16935,
515,
379,
2808,
13,
3312,
13,
7908,
1248,
25,
2713,
25,
2624,
198,
42296,
4177,
2849,
12,
16402,
3535,
1168,
49215,
4339,
62,
5603,
33,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
12,
2389,
20546,
13,
198,
198,
9,
3268,
5097,
52,
7206,
406,
57,
49215,
4339,
62,
5603,
14529,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
10714,
1398,
6770,
198,
220,
3268,
5097,
52,
7206,
30948,
53,
3955,
35,
1404,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
764,
366,
24622,
1366,
2377,
13,
198,
220,
3268,
5097,
52,
7206,
406,
57,
49215,
4339,
62,
5603,
19313,
405,
220,
220,
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,
1177,
823,
13,
1366,
288,
565,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS cl_abapgit_res_util DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
TYPES:
BEGIN OF t_obj_result,
obj_type TYPE trobjtype,
obj_name TYPE sobj_name,
obj_status TYPE symsgty,
package TYPE devclass,
msg_type TYPE symsgty,
msg_text TYPE string,
END OF t_obj_result,
tt_obj_result TYPE STANDARD TABLE OF t_obj_result WITH DEFAULT KEY.
CLASS-METHODS:
get_obj_result_from_log
IMPORTING
iv_log TYPE REF TO if_abapgit_log
RETURNING VALUE(rt_obj_result) TYPE tt_obj_result.
CLASS-METHODS:
encode_password
IMPORTING iv_password TYPE string
RETURNING VALUE(rv_password) TYPE string.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS cl_abapgit_res_util IMPLEMENTATION.
METHOD get_obj_result_from_log.
DATA ls_obj_result TYPE t_obj_result.
CLEAR rt_obj_result.
CHECK iv_log IS BOUND.
iv_log->get_item_status( IMPORTING et_item_status = DATA(lt_item_status) ).
LOOP AT lt_item_status REFERENCE INTO DATA(lr_item_status).
CLEAR ls_obj_result.
ls_obj_result-obj_name = lr_item_status->item-obj_name.
ls_obj_result-obj_type = lr_item_status->item-obj_type.
ls_obj_result-package = lr_item_status->item-devclass.
ls_obj_result-obj_status = lr_item_status->status.
DATA(lt_msg) = lr_item_status->messages.
LOOP AT lt_msg ASSIGNING FIELD-SYMBOL(<ls_msg>).
ls_obj_result-msg_type = <ls_msg>-type.
ls_obj_result-msg_text = <ls_msg>-text.
APPEND ls_obj_result TO rt_obj_result.
ENDLOOP.
IF sy-subrc <> 0.
APPEND ls_obj_result TO rt_obj_result.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD encode_password.
rv_password = cl_http_utility=>decode_base64( iv_password ).
ENDMETHOD.
ENDCLASS.
| [
31631,
537,
62,
397,
499,
18300,
62,
411,
62,
22602,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
256,
62,
26801,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
4906,
220,
220,
41876,
4161,
50007,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
3672,
220,
220,
41876,
27355,
73,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
13376,
41876,
827,
19662,
774,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
62,
4906,
220,
220,
41876,
827,
19662,
774,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
62,
5239,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
256,
62,
26801,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
256,
83,
62,
26801,
62,
20274,
41876,
49053,
9795,
43679,
3963,
256,
62,
26801,
62,
20274,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
26801,
62,
20274,
62,
6738,
62,
6404,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
6404,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
397,
499,
18300,
62,
6404,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
26801,
62,
20274,
8,
41876,
256,
83,
62,
26801,
62,
20274,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
37773,
62,
28712,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
28712,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
28712,
8,
41876,
4731,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
537,
62,
397,
499,
18300,
62,
411,
62,
22602,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
651,
62,
26801,
62,
20274,
62,
6738,
62,
6404,
13,
628,
220,
220,
220,
42865,
43979,
62,
26801,
62,
20274,
41876,
256,
62,
26801,
62,
20274,
13,
198,
220,
220,
220,
30301,
1503,
374,
83,
62,
26801,
62,
20274,
13,
198,
220,
220,
220,
5870,
25171,
21628,
62,
6404,
3180,
347,
15919,
13,
628,
220,
220,
220,
21628,
62,
6404,
3784,
1136,
62,
9186,
62,
13376,
7,
30023,
9863,
2751,
2123,
62,
9186,
62,
13376,
796,
42865,
7,
2528,
62,
9186,
62,
13376,
8,
6739,
628,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
9186,
62,
13376,
4526,
24302,
18310,
39319,
42865,
7,
14050,
62,
9186,
62,
13376,
737,
628,
220,
220,
220,
220,
220,
30301,
1503,
43979,
62,
26801,
62,
20274,
13,
198,
220,
220,
220,
220,
220,
43979,
62,
26801,
62,
20274,
12,
26801,
62,
3672,
220,
220,
796,
300,
81,
62,
9186,
62,
13376,
3784,
9186,
12,
26801,
62,
3672,
13,
198,
220,
220,
220,
220,
220,
43979,
62,
26801,
62,
20274,
12,
26801,
62,
4906,
220,
220,
796,
300,
81,
62,
9186,
62,
13376,
3784,
9186,
12,
26801,
62,
4906,
13,
198,
220,
220,
220,
220,
220,
43979,
62,
26801,
62,
20274,
12,
26495,
220,
220,
220,
796,
300,
81,
62,
9186,
62,
13376,
3784,
9186,
12,
7959,
4871,
13,
198,
220,
220,
220,
220,
220,
43979,
62,
26801,
62,
20274,
12,
26801,
62,
13376,
796,
300,
81,
62,
9186,
62,
13376,
3784,
13376,
13,
628,
220,
220,
220,
220,
220,
42865,
7,
2528,
62,
19662,
8,
796,
300,
81,
62,
9186,
62,
13376,
3784,
37348,
1095,
13,
198,
220,
220,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
19662,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
7278,
62,
19662,
29,
737,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
26801,
62,
20274,
12,
19662,
62,
4906,
796,
1279,
7278,
62,
19662,
29,
12,
4906,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
26801,
62,
20274,
12,
19662,
62,
5239,
796,
1279,
7278,
62,
19662,
29,
12,
5239,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43504,
10619,
43979,
62,
26801,
62,
20274,
5390,
374,
83,
62,
26801,
62,
20274,
13,
198,
220,
220,
220,
220,
220,
23578,
21982,
3185,
13,
198,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43504,
10619,
43979,
62,
26801,
62,
20274,
5390,
374,
83,
62,
26801,
62,
20274,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
37773,
62,
28712,
13,
198,
220,
220,
220,
374,
85,
62,
28712,
796,
537,
62,
4023,
62,
315,
879,
14804,
12501,
1098,
62,
8692,
2414,
7,
21628,
62,
28712,
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,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS /dmo/cl_flight_legacy DEFINITION
PUBLIC
FINAL
CREATE PRIVATE
GLOBAL FRIENDS /dmo/cl_flight_data_generator.
PUBLIC SECTION.
INTERFACES: /dmo/if_flight_legacy.
TYPES: BEGIN OF ENUM ty_change_mode STRUCTURE change_mode," Key checks are done separately
create,
update," Only fields that have been changed need to be checked
END OF ENUM ty_change_mode STRUCTURE change_mode.
CLASS-METHODS: get_instance RETURNING VALUE(ro_instance) TYPE REF TO /dmo/cl_flight_legacy.
" With respect to the same method call of create/update/delete_travel() we have All or Nothing.
" I.e. when one of the levels contains an error, the complete call is refused.
" However, the buffer is not cleared in case of an error.
" I.e. when the caller wants to start over, he needs to call Initialize() explicitly.
METHODS set_status_to_booked IMPORTING iv_travel_id TYPE /dmo/travel_id
EXPORTING et_messages TYPE /dmo/if_flight_legacy=>tt_if_t100_message.
METHODS create_travel IMPORTING is_travel TYPE /dmo/if_flight_legacy=>ts_travel_in
it_booking TYPE /dmo/if_flight_legacy=>tt_booking_in OPTIONAL
it_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement_in OPTIONAL
EXPORTING es_travel TYPE /dmo/travel
et_booking TYPE /dmo/if_flight_legacy=>tt_booking
et_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement
et_messages TYPE /dmo/if_flight_legacy=>tt_if_t100_message.
METHODS update_travel IMPORTING is_travel TYPE /dmo/if_flight_legacy=>ts_travel_in
is_travelx TYPE /dmo/if_flight_legacy=>ts_travel_inx
it_booking TYPE /dmo/if_flight_legacy=>tt_booking_in OPTIONAL
it_bookingx TYPE /dmo/if_flight_legacy=>tt_booking_inx OPTIONAL
it_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement_in OPTIONAL
it_booking_supplementx TYPE /dmo/if_flight_legacy=>tt_booking_supplement_inx OPTIONAL
EXPORTING es_travel TYPE /dmo/travel
et_booking TYPE /dmo/if_flight_legacy=>tt_booking
et_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement
et_messages TYPE /dmo/if_flight_legacy=>tt_if_t100_message.
METHODS delete_travel IMPORTING iv_travel_id TYPE /dmo/travel_id
EXPORTING et_messages TYPE /dmo/if_flight_legacy=>tt_if_t100_message.
METHODS get_travel IMPORTING iv_travel_id TYPE /dmo/travel_id
iv_include_buffer TYPE abap_boolean
iv_include_temp_buffer TYPE abap_boolean OPTIONAL
EXPORTING es_travel TYPE /dmo/travel
et_booking TYPE /dmo/if_flight_legacy=>tt_booking
et_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement
et_messages TYPE /dmo/if_flight_legacy=>tt_if_t100_message.
METHODS save.
METHODS initialize.
METHODS convert_messages IMPORTING it_messages TYPE /dmo/if_flight_legacy=>tt_if_t100_message
EXPORTING et_messages TYPE /dmo/if_flight_legacy=>tt_message.
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-DATA go_instance TYPE REF TO /dmo/cl_flight_legacy.
CLASS-METHODS:
"! Calculation of Price <br/>
"! <br/>
"! Price will be calculated using distance multiplied and occupied seats.<br/>
"! Depending on how many seats in percentage are occupied the formula <br/>
"! 3/400·x² + 25<br/>
"! will be applied.<br/>
"! 0% seats occupied leads to 25% of distance as price.<br/>
"! 75% seats occupied leads to 50% of distance as price.<br/>
"! 100% seats occupied leads to 100% of distance as price.<br/>
"! @parameter iv_seats_occupied_percent | occupied seats
"! @parameter iv_flight_distance | flight distance in kilometer
"! @parameter rv_price | calculated flight price
calculate_flight_price
IMPORTING
iv_seats_occupied_percent TYPE /dmo/plane_seats_occupied
iv_flight_distance TYPE i
RETURNING
VALUE(rv_price) TYPE /dmo/flight_price ##RELAX.
METHODS lock_travel IMPORTING iv_lock TYPE abap_bool
RAISING /dmo/cx_flight_legacy ##RELAX ##NEEDED.
METHODS _resolve_attribute IMPORTING iv_attrname TYPE scx_attrname
ix TYPE REF TO /dmo/cx_flight_legacy
RETURNING VALUE(rv_symsgv) TYPE symsgv.
"! Final determinations / derivations after all levels have been prepared, e.g. bottom-up derivations
METHODS _determine EXPORTING et_messages TYPE /dmo/if_flight_legacy=>tt_if_t100_message
CHANGING cs_travel TYPE /dmo/travel
ct_booking TYPE /dmo/if_flight_legacy=>tt_booking
ct_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement.
METHODS _determine_travel_total_price CHANGING cs_travel TYPE /dmo/travel
ct_booking TYPE /dmo/if_flight_legacy=>tt_booking
ct_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement
ct_messages TYPE /dmo/if_flight_legacy=>tt_if_t100_message ##NEEDED.
METHODS _convert_currency IMPORTING iv_currency_code_source TYPE /dmo/currency_code
iv_currency_code_target TYPE /dmo/currency_code
iv_amount TYPE /dmo/total_price
RETURNING VALUE(rv_amount) TYPE /dmo/total_price.
ENDCLASS.
CLASS /dmo/cl_flight_legacy IMPLEMENTATION.
METHOD calculate_flight_price.
DATA: lv_percentage_of_max_price TYPE i.
lv_percentage_of_max_price = ( 3 * iv_seats_occupied_percent ** 2 DIV 400 ) + 25 ##OPERATOR[**].
rv_price = lv_percentage_of_max_price * iv_flight_distance DIV 100.
ENDMETHOD.
METHOD convert_messages.
CLEAR et_messages.
DATA ls_message TYPE symsg.
LOOP AT it_messages INTO DATA(lr_error) ##INTO_OK.
ls_message-msgty = 'E'.
ls_message-msgid = lr_error->t100key-msgid.
ls_message-msgno = lr_error->t100key-msgno.
IF lr_error IS INSTANCE OF /dmo/cx_flight_legacy.
DATA(lx) = CAST /dmo/cx_flight_legacy( lr_error ).
ls_message-msgv1 = _resolve_attribute( iv_attrname = lr_error->t100key-attr1 ix = lx ).
ls_message-msgv2 = _resolve_attribute( iv_attrname = lr_error->t100key-attr2 ix = lx ).
ls_message-msgv3 = _resolve_attribute( iv_attrname = lr_error->t100key-attr3 ix = lx ).
ls_message-msgv4 = _resolve_attribute( iv_attrname = lr_error->t100key-attr4 ix = lx ).
ENDIF.
APPEND ls_message TO et_messages.
ENDLOOP.
ENDMETHOD.
METHOD create_travel.
CLEAR: es_travel, et_booking, et_booking_supplement, et_messages.
" Travel
lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( CORRESPONDING #( is_travel ) ) )
it_travelx = VALUE #( ( travel_id = is_travel-travel_id action_code = /dmo/if_flight_legacy=>action_code-create ) )
IMPORTING et_travel = DATA(lt_travel)
et_messages = et_messages ).
IF et_messages IS INITIAL.
ASSERT lines( lt_travel ) = 1.
es_travel = lt_travel[ 1 ].
ENDIF.
" Bookings
IF et_messages IS INITIAL.
DATA lt_booking TYPE /dmo/if_flight_legacy=>tt_booking.
DATA lt_bookingx TYPE /dmo/if_flight_legacy=>tt_bookingx.
LOOP AT it_booking INTO DATA(ls_booking_in).
DATA ls_booking TYPE /dmo/booking.
ls_booking = CORRESPONDING #( ls_booking_in ).
ls_booking-travel_id = es_travel-travel_id.
INSERT ls_booking INTO TABLE lt_booking.
INSERT VALUE #( travel_id = ls_booking-travel_id booking_id = ls_booking-booking_id action_code = /dmo/if_flight_legacy=>action_code-create ) INTO TABLE lt_bookingx.
ENDLOOP.
lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = lt_booking
it_bookingx = lt_bookingx
IMPORTING et_booking = et_booking
et_messages = DATA(lt_messages) ).
APPEND LINES OF lt_messages TO et_messages.
ENDIF.
" Booking Supplements
IF et_messages IS INITIAL.
DATA lt_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement.
DATA lt_booking_supplementx TYPE /dmo/if_flight_legacy=>tt_booking_supplementx.
LOOP AT it_booking_supplement INTO DATA(ls_booking_supplement_in).
DATA ls_booking_supplement TYPE /dmo/book_suppl.
ls_booking_supplement = CORRESPONDING #( ls_booking_supplement_in ).
ls_booking_supplement-travel_id = es_travel-travel_id.
IF lcl_booking_buffer=>get_instance( )->check_booking_id( EXPORTING iv_travel_id = ls_booking_supplement-travel_id iv_booking_id = ls_booking_supplement-booking_id CHANGING ct_messages = et_messages ) = abap_false.
EXIT.
ENDIF.
INSERT ls_booking_supplement INTO TABLE lt_booking_supplement.
INSERT VALUE #( travel_id = ls_booking_supplement-travel_id
booking_id = ls_booking_supplement-booking_id
booking_supplement_id = ls_booking_supplement-booking_supplement_id
action_code = /dmo/if_flight_legacy=>action_code-create ) INTO TABLE lt_booking_supplementx.
ENDLOOP.
IF et_messages IS INITIAL.
lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = lt_booking_supplement
it_booking_supplementx = lt_booking_supplementx
IMPORTING et_booking_supplement = et_booking_supplement
et_messages = lt_messages ).
APPEND LINES OF lt_messages TO et_messages.
ENDIF.
ENDIF.
" Now do any derivations that require the whole business object (not only a single node), but which may in principle result in an error
IF et_messages IS INITIAL.
_determine( IMPORTING et_messages = et_messages
CHANGING cs_travel = es_travel
ct_booking = et_booking
ct_booking_supplement = et_booking_supplement ).
ENDIF.
IF et_messages IS INITIAL.
lcl_travel_buffer=>get_instance( )->cud_copy( ).
lcl_booking_buffer=>get_instance( )->cud_copy( ).
lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ).
ELSE.
CLEAR: es_travel, et_booking, et_booking_supplement.
lcl_travel_buffer=>get_instance( )->cud_disc( ).
lcl_booking_buffer=>get_instance( )->cud_disc( ).
lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ).
ENDIF.
ENDMETHOD.
METHOD delete_travel.
CLEAR et_messages.
get_travel( EXPORTING iv_travel_id = iv_travel_id
iv_include_buffer = abap_true
iv_include_temp_buffer = abap_true
IMPORTING et_booking = DATA(lt_booking)
et_booking_supplement = DATA(lt_booking_supplement)
et_messages = et_messages ).
IF et_messages IS INITIAL.
lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = CORRESPONDING #( lt_booking_supplement MAPPING travel_id = travel_id
booking_id = booking_id
booking_supplement_id = booking_supplement_id EXCEPT * )
it_booking_supplementx = VALUE #( FOR ls_bs IN lt_booking_supplement ( action_code = /dmo/if_flight_legacy=>action_code-delete
travel_id = ls_bs-travel_id
booking_id = ls_bs-booking_id
booking_supplement_id = ls_bs-booking_supplement_id ) )
iv_no_delete_check = abap_true " No existence check required
IMPORTING et_messages = DATA(lt_messages) ).
APPEND LINES OF lt_messages TO et_messages.
ENDIF.
IF et_messages IS INITIAL.
lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = CORRESPONDING #( lt_booking MAPPING travel_id = travel_id booking_id = booking_id EXCEPT * )
it_bookingx = VALUE #( FOR ls_b IN lt_booking ( action_code = /dmo/if_flight_legacy=>action_code-delete travel_id = ls_b-travel_id booking_id = ls_b-booking_id ) )
iv_no_delete_check = abap_true " No existence check required
IMPORTING et_messages = lt_messages ).
APPEND LINES OF lt_messages TO et_messages.
ENDIF.
IF et_messages IS INITIAL.
lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( travel_id = iv_travel_id ) )
it_travelx = VALUE #( ( travel_id = iv_travel_id action_code = /dmo/if_flight_legacy=>action_code-delete ) )
iv_no_delete_check = abap_true " No existence check required
IMPORTING et_messages = lt_messages ).
APPEND LINES OF lt_messages TO et_messages.
ENDIF.
IF et_messages IS INITIAL.
lcl_travel_buffer=>get_instance( )->cud_copy( ).
lcl_booking_buffer=>get_instance( )->cud_copy( ).
lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ).
ELSE.
lcl_travel_buffer=>get_instance( )->cud_disc( ).
lcl_booking_buffer=>get_instance( )->cud_disc( ).
lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ).
ENDIF.
ENDMETHOD.
METHOD get_instance.
go_instance = COND #( WHEN go_instance IS BOUND THEN go_instance ELSE NEW #( ) ).
ro_instance = go_instance.
ENDMETHOD.
METHOD get_travel.
CLEAR: es_travel, et_booking, et_booking_supplement, et_messages.
IF iv_travel_id IS INITIAL.
APPEND NEW /dmo/cx_flight_legacy( textid = /dmo/cx_flight_legacy=>travel_no_key ) TO et_messages.
RETURN.
ENDIF.
lcl_travel_buffer=>get_instance( )->get( EXPORTING it_travel = VALUE #( ( travel_id = iv_travel_id ) )
iv_include_buffer = iv_include_buffer
iv_include_temp_buffer = iv_include_temp_buffer
IMPORTING et_travel = DATA(lt_travel) ).
IF lt_travel IS INITIAL.
APPEND NEW /dmo/cx_flight_legacy( textid = /dmo/cx_flight_legacy=>travel_unknown travel_id = iv_travel_id ) TO et_messages.
RETURN.
ENDIF.
ASSERT lines( lt_travel ) = 1.
es_travel = lt_travel[ 1 ].
lcl_booking_buffer=>get_instance( )->get( EXPORTING it_booking = VALUE #( ( travel_id = iv_travel_id ) )
iv_include_buffer = iv_include_buffer
iv_include_temp_buffer = iv_include_temp_buffer
IMPORTING et_booking = et_booking ).
lcl_booking_supplement_buffer=>get_instance( )->get( EXPORTING it_booking_supplement = CORRESPONDING #( et_booking MAPPING travel_id = travel_id booking_id = booking_id EXCEPT * )
iv_include_buffer = iv_include_buffer
iv_include_temp_buffer = iv_include_temp_buffer
IMPORTING et_booking_supplement = et_booking_supplement ).
ENDMETHOD.
METHOD initialize.
lcl_travel_buffer=>get_instance( )->initialize( ).
lcl_booking_buffer=>get_instance( )->initialize( ).
lcl_booking_supplement_buffer=>get_instance( )->initialize( ).
ENDMETHOD.
METHOD lock_travel ##NEEDED.
* IF iv_lock = abap_true.
* CALL FUNCTION 'ENQUEUE_/DMO/ETRAVEL'
* EXCEPTIONS
* foreign_lock = 1
* system_failure = 2
* OTHERS = 3.
* IF sy-subrc <> 0.
* RAISE EXCEPTION TYPE /dmo/cx_flight_legacy
* EXPORTING
* textid = /dmo/cx_flight_legacy=>travel_lock.
* ENDIF.
* ELSE.
* CALL FUNCTION 'DEQUEUE_/DMO/ETRAVEL'.
* ENDIF.
ENDMETHOD.
METHOD save.
lcl_travel_buffer=>get_instance( )->save( ).
lcl_booking_buffer=>get_instance( )->save( ).
lcl_booking_supplement_buffer=>get_instance( )->save( ).
initialize( ).
ENDMETHOD.
METHOD set_status_to_booked.
lcl_travel_buffer=>get_instance( )->set_status_to_booked( EXPORTING iv_travel_id = iv_travel_id
IMPORTING et_messages = et_messages ).
ENDMETHOD.
METHOD update_travel.
CLEAR es_travel.
CLEAR et_booking.
CLEAR et_booking_supplement.
CLEAR et_messages.
" Travel
IF is_travel-travel_id IS INITIAL.
APPEND NEW /dmo/cx_flight_legacy( textid = /dmo/cx_flight_legacy=>travel_no_key ) TO et_messages.
RETURN.
ENDIF.
DATA ls_travelx TYPE /dmo/if_flight_legacy=>ts_travelx.
ls_travelx = CORRESPONDING #( is_travelx ).
ls_travelx-action_code = /dmo/if_flight_legacy=>action_code-update.
lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( CORRESPONDING #( is_travel ) ) )
it_travelx = VALUE #( ( ls_travelx ) )
IMPORTING et_travel = DATA(lt_travel)
et_messages = et_messages ).
" We may need to delete Booking Supplements of deleted Bookings
" Read all Booking Supplements before any Bookings are deleted
get_travel( EXPORTING iv_travel_id = is_travel-travel_id
iv_include_buffer = abap_true
iv_include_temp_buffer = abap_true
IMPORTING et_booking_supplement = DATA(lt_booking_supplement_del) ).
" Bookings
IF et_messages IS INITIAL.
" Ignore provided Travel ID of subnode tables
DATA lt_booking TYPE /dmo/if_flight_legacy=>tt_booking.
DATA lt_bookingx TYPE /dmo/if_flight_legacy=>tt_bookingx.
LOOP AT it_booking INTO DATA(ls_booking_in).
DATA ls_booking TYPE /dmo/booking.
ls_booking = CORRESPONDING #( ls_booking_in ).
ls_booking-travel_id = is_travel-travel_id.
INSERT ls_booking INTO TABLE lt_booking.
ENDLOOP.
LOOP AT it_bookingx INTO DATA(ls_booking_inx).
DATA ls_bookingx TYPE /dmo/if_flight_legacy=>ts_bookingx.
ls_bookingx = CORRESPONDING #( ls_booking_inx ).
ls_bookingx-travel_id = is_travel-travel_id.
INSERT ls_bookingx INTO TABLE lt_bookingx.
ENDLOOP.
lcl_booking_buffer=>get_instance( )->cud_prep( EXPORTING it_booking = lt_booking
it_bookingx = lt_bookingx
IMPORTING et_booking = et_booking
et_messages = DATA(lt_messages) ).
APPEND LINES OF lt_messages TO et_messages.
ENDIF.
" Booking Supplements
IF et_messages IS INITIAL.
" Ignore provided Travel ID of subnode tables
DATA lt_booking_supplement TYPE /dmo/if_flight_legacy=>tt_booking_supplement.
DATA lt_booking_supplementx TYPE /dmo/if_flight_legacy=>tt_booking_supplementx.
LOOP AT it_booking_supplement INTO DATA(ls_booking_supplement_in).
DATA ls_booking_supplement TYPE /dmo/book_suppl.
ls_booking_supplement = CORRESPONDING #( ls_booking_supplement_in ).
ls_booking_supplement-travel_id = is_travel-travel_id.
IF lcl_booking_buffer=>get_instance( )->check_booking_id( EXPORTING iv_travel_id = ls_booking_supplement-travel_id
iv_booking_id = ls_booking_supplement-booking_id
CHANGING ct_messages = et_messages ) = abap_false.
EXIT.
ENDIF.
INSERT ls_booking_supplement INTO TABLE lt_booking_supplement.
ENDLOOP.
IF et_messages IS INITIAL.
LOOP AT it_booking_supplementx INTO DATA(ls_booking_supplement_inx).
DATA ls_booking_supplementx TYPE /dmo/if_flight_legacy=>ts_booking_supplementx.
ls_booking_supplementx = CORRESPONDING #( ls_booking_supplement_inx ).
ls_booking_supplementx-travel_id = is_travel-travel_id.
INSERT ls_booking_supplementx INTO TABLE lt_booking_supplementx.
ENDLOOP.
lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = lt_booking_supplement
it_booking_supplementx = lt_booking_supplementx
IMPORTING et_booking_supplement = et_booking_supplement
et_messages = lt_messages ).
APPEND LINES OF lt_messages TO et_messages.
ENDIF.
ENDIF.
" For Bookings to be deleted we also need to delete the Booking Supplements
IF et_messages IS INITIAL
AND lt_booking_supplement_del IS NOT INITIAL
AND line_exists( lt_bookingx[ action_code = CONV /dmo/action_code( /dmo/if_flight_legacy=>action_code-delete ) ] ).
" Remove any Bookings from internal table that must not be deleted
LOOP AT lt_booking_supplement_del ASSIGNING FIELD-SYMBOL(<s_booking_supplement_del>).
READ TABLE lt_bookingx TRANSPORTING NO FIELDS WITH KEY action_code = CONV /dmo/action_code( /dmo/if_flight_legacy=>action_code-delete )
travel_id = <s_booking_supplement_del>-travel_id
booking_id = <s_booking_supplement_del>-booking_id.
IF sy-subrc <> 0.
DELETE lt_booking_supplement_del.
ENDIF.
ENDLOOP.
lcl_booking_supplement_buffer=>get_instance( )->cud_prep( EXPORTING it_booking_supplement = CORRESPONDING #( lt_booking_supplement_del MAPPING travel_id = travel_id
booking_id = booking_id
booking_supplement_id = booking_supplement_id EXCEPT * )
it_booking_supplementx = VALUE #( FOR ls_bs IN lt_booking_supplement_del ( action_code = /dmo/if_flight_legacy=>action_code-delete
travel_id = ls_bs-travel_id
booking_id = ls_bs-booking_id
booking_supplement_id = ls_bs-booking_supplement_id ) )
iv_no_delete_check = abap_true " No existence check required
IMPORTING et_messages = et_messages ).
ENDIF.
IF et_messages IS INITIAL.
ASSERT lines( lt_travel ) = 1.
" Now do any derivations that require the whole business object (not only a single node), but which may in principle result in an error
" The derivation may need the complete Business Object, i.e. including unchanged subnodes
get_travel( EXPORTING iv_travel_id = lt_travel[ 1 ]-travel_id
iv_include_buffer = abap_true
iv_include_temp_buffer = abap_true
IMPORTING es_travel = es_travel
et_booking = et_booking
et_booking_supplement = et_booking_supplement
et_messages = et_messages ).
ASSERT et_messages IS INITIAL.
_determine( IMPORTING et_messages = et_messages
CHANGING cs_travel = es_travel
ct_booking = et_booking
ct_booking_supplement = et_booking_supplement ).
IF et_messages IS INITIAL.
" We do not want to return all subnodes, but only those that have been created or changed.
" So currently it is not implemented that a determination of a booking changes another booking as the other booking cannot be properly returned.
LOOP AT et_booking ASSIGNING FIELD-SYMBOL(<s_booking>).
LOOP AT it_bookingx TRANSPORTING NO FIELDS WHERE booking_id = <s_booking>-booking_id
AND ( action_code = CONV /dmo/action_code( /dmo/if_flight_legacy=>action_code-create ) OR action_code = CONV /dmo/action_code( /dmo/if_flight_legacy=>action_code-update ) ).
EXIT.
ENDLOOP.
IF sy-subrc <> 0.
DELETE et_booking.
ENDIF.
ENDLOOP.
LOOP AT et_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement>).
LOOP AT it_booking_supplementx TRANSPORTING NO FIELDS WHERE booking_id = <s_booking_supplement>-booking_id AND booking_supplement_id = <s_booking_supplement>-booking_supplement_id
AND ( action_code = CONV /dmo/action_code( /dmo/if_flight_legacy=>action_code-create ) OR action_code = CONV /dmo/action_code( /dmo/if_flight_legacy=>action_code-update ) ).
EXIT.
ENDLOOP.
IF sy-subrc <> 0.
DELETE et_booking_supplement.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
IF et_messages IS INITIAL.
lcl_travel_buffer=>get_instance( )->cud_copy( ).
lcl_booking_buffer=>get_instance( )->cud_copy( ).
lcl_booking_supplement_buffer=>get_instance( )->cud_copy( ).
ELSE.
CLEAR: es_travel, et_booking, et_booking_supplement.
lcl_travel_buffer=>get_instance( )->cud_disc( ).
lcl_booking_buffer=>get_instance( )->cud_disc( ).
lcl_booking_supplement_buffer=>get_instance( )->cud_disc( ).
ENDIF.
ENDMETHOD.
METHOD _convert_currency.
DATA(lv_exchange_rate_date) = cl_abap_context_info=>get_system_date( )." Do not buffer: Current date may change during lifetime of session
SELECT convertedamount FROM /dmo/currency_helper( amount = @iv_amount,
source_currency = @iv_currency_code_source,
target_currency = @iv_currency_code_target,
exchange_rate_date = @lv_exchange_rate_date )
INTO @rv_amount
UP TO 1 ROWS.
ENDSELECT.
ENDMETHOD.
METHOD _determine.
ASSERT cs_travel-travel_id IS NOT INITIAL.
LOOP AT ct_booking TRANSPORTING NO FIELDS WHERE travel_id <> cs_travel-travel_id.
EXIT.
ENDLOOP.
ASSERT sy-subrc = 4.
LOOP AT ct_booking_supplement TRANSPORTING NO FIELDS WHERE travel_id <> cs_travel-travel_id.
EXIT.
ENDLOOP.
ASSERT sy-subrc = 4.
CLEAR et_messages.
_determine_travel_total_price( CHANGING cs_travel = cs_travel
ct_booking = ct_booking
ct_booking_supplement = ct_booking_supplement
ct_messages = et_messages ).
ENDMETHOD.
METHOD _determine_travel_total_price.
DATA lv_add TYPE /dmo/total_price.
DATA(lv_currency_code_target) = cs_travel-currency_code.
" If we do not have a Travel Currency Code yet,
" we may derive it when all the subnodes have the same non-initial Currency Code
IF lv_currency_code_target IS INITIAL.
DATA lv_ok TYPE abap_bool.
lv_ok = abap_true.
LOOP AT ct_booking ASSIGNING FIELD-SYMBOL(<s_booking>).
IF sy-tabix = 1.
lv_currency_code_target = <s_booking>-currency_code.
ENDIF.
IF <s_booking>-currency_code IS INITIAL.
lv_ok = abap_false.
EXIT.
ENDIF.
IF lv_currency_code_target <> <s_booking>-currency_code.
lv_ok = abap_false.
EXIT.
ENDIF.
ENDLOOP.
IF lv_ok = abap_true.
LOOP AT ct_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement>).
IF <s_booking_supplement>-currency_code IS INITIAL.
lv_ok = abap_false.
EXIT.
ENDIF.
IF lv_currency_code_target <> <s_booking_supplement>-currency_code.
lv_ok = abap_false.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
IF lv_currency_code_target IS NOT INITIAL.
" Total Price = Booking Fee + Booking Flight Prices + Booking Supplement Prices
cs_travel-total_price = cs_travel-booking_fee.
cs_travel-currency_code = lv_currency_code_target.
LOOP AT ct_booking ASSIGNING <s_booking>.
IF <s_booking>-currency_code = lv_currency_code_target.
lv_add = <s_booking>-flight_price.
ELSE.
lv_add = _convert_currency( iv_currency_code_source = <s_booking>-currency_code
iv_currency_code_target = lv_currency_code_target
iv_amount = <s_booking>-flight_price ).
ENDIF.
cs_travel-total_price = cs_travel-total_price + lv_add.
ENDLOOP.
LOOP AT ct_booking_supplement ASSIGNING <s_booking_supplement>.
IF <s_booking_supplement>-currency_code = lv_currency_code_target.
lv_add = <s_booking_supplement>-price.
ELSE.
lv_add = _convert_currency( iv_currency_code_source = <s_booking_supplement>-currency_code
iv_currency_code_target = lv_currency_code_target
iv_amount = <s_booking_supplement>-price ).
ENDIF.
cs_travel-total_price = cs_travel-total_price + lv_add.
ENDLOOP.
lcl_travel_buffer=>get_instance( )->cud_prep( EXPORTING it_travel = VALUE #( ( travel_id = cs_travel-travel_id total_price = cs_travel-total_price currency_code = cs_travel-currency_code ) )
it_travelx = VALUE #( ( action_code = /dmo/if_flight_legacy=>action_code-update travel_id = cs_travel-travel_id total_price = abap_true currency_code = abap_true ) )
IMPORTING et_messages = DATA(lt_messages) ).
ASSERT lt_messages IS INITIAL.
ENDIF.
ENDMETHOD.
METHOD _resolve_attribute.
CLEAR rv_symsgv.
CASE iv_attrname.
WHEN ''.
rv_symsgv = ''.
WHEN 'MV_TRAVEL_ID'.
rv_symsgv = |{ ix->mv_travel_id ALPHA = OUT }|.
WHEN 'MV_BOOKING_ID'.
rv_symsgv = |{ ix->mv_booking_id ALPHA = OUT }|.
WHEN 'MV_BOOKING_SUPPLEMENT_ID'.
rv_symsgv = |{ ix->mv_booking_supplement_id ALPHA = OUT }|.
WHEN 'MV_AGENCY_ID'.
rv_symsgv = |{ ix->mv_agency_id ALPHA = OUT }|.
WHEN 'MV_CUSTOMER_ID'.
rv_symsgv = |{ ix->mv_customer_id ALPHA = OUT }|.
WHEN 'MV_CARRIER_ID'.
rv_symsgv = |{ ix->mv_carrier_id ALPHA = OUT }|.
WHEN 'MV_CONNECTION_ID'.
rv_symsgv = |{ ix->mv_connection_id ALPHA = OUT }|.
WHEN 'MV_SUPPLEMENT_ID'.
rv_symsgv = ix->mv_supplement_id.
WHEN 'MV_BEGIN_DATE'.
rv_symsgv = |{ ix->mv_begin_date DATE = USER }|.
WHEN 'MV_END_DATE'.
rv_symsgv = |{ ix->mv_end_date DATE = USER }|.
WHEN 'MV_BOOKING_DATE'.
rv_symsgv = |{ ix->mv_booking_date DATE = USER }|.
WHEN 'MV_FLIGHT_DATE'.
rv_symsgv = |{ ix->mv_flight_date DATE = USER }|.
WHEN 'MV_STATUS'.
rv_symsgv = ix->mv_status.
WHEN 'MV_CURRENCY_CODE'.
rv_symsgv = ix->mv_currency_code.
WHEN 'MV_UNAME'.
rv_symsgv = ix->mv_uname.
WHEN OTHERS.
ASSERT 1 = 2.
ENDCASE.
ENDMETHOD.
ENDCLASS.
| [
31631,
1220,
67,
5908,
14,
565,
62,
22560,
62,
1455,
1590,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
198,
220,
10188,
9864,
1847,
48167,
1677,
5258,
1220,
67,
5908,
14,
565,
62,
22560,
62,
7890,
62,
8612,
1352,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
12964,
5883,
1259,
62,
3803,
62,
14171,
19269,
18415,
11335,
1487,
62,
14171,
553,
7383,
8794,
389,
1760,
13869,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2251,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4296,
553,
5514,
7032,
326,
423,
587,
3421,
761,
284,
307,
10667,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
12964,
5883,
1259,
62,
3803,
62,
14171,
19269,
18415,
11335,
1487,
62,
14171,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
651,
62,
39098,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
39098,
8,
41876,
4526,
37,
5390,
1220,
67,
5908,
14,
565,
62,
22560,
62,
1455,
1590,
13,
628,
220,
220,
220,
366,
220,
220,
2080,
2461,
284,
262,
976,
2446,
869,
286,
2251,
14,
19119,
14,
33678,
62,
35927,
3419,
356,
423,
1439,
393,
10528,
13,
198,
220,
220,
220,
366,
220,
220,
314,
13,
68,
13,
618,
530,
286,
262,
2974,
4909,
281,
4049,
11,
262,
1844,
869,
318,
6520,
13,
198,
220,
220,
220,
366,
220,
220,
2102,
11,
262,
11876,
318,
407,
12539,
287,
1339,
286,
281,
4049,
13,
198,
220,
220,
220,
366,
220,
220,
314,
13,
68,
13,
618,
262,
24955,
3382,
284,
923,
625,
11,
339,
2476,
284,
869,
20768,
1096,
3419,
11777,
13,
628,
220,
220,
220,
337,
36252,
50,
900,
62,
13376,
62,
1462,
62,
2070,
276,
30023,
9863,
2751,
21628,
62,
35927,
62,
312,
41876,
1220,
67,
5908,
14,
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,
7788,
15490,
2751,
2123,
62,
37348,
1095,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
926,
62,
361,
62,
83,
3064,
62,
20500,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
35927,
30023,
9863,
2751,
318,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
912,
62,
35927,
62,
259,
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,
340,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
926,
62,
2070,
278,
62,
259,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
2070,
278,
62,
18608,
1732,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
926,
62,
2070,
278,
62,
18608,
1732,
62,
259,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
1658,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
35927,
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,
2123,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
926,
62,
2070,
278,
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,
2123,
62,
2070,
278,
62,
18608,
1732,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
926,
62,
2070,
278,
62,
18608,
1732,
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,
2123,
62,
37348,
1095,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
926,
62,
361,
62,
83,
3064,
62,
20500,
13,
198,
220,
220,
220,
337,
36252,
50,
4296,
62,
35927,
30023,
9863,
2751,
318,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
912,
62,
35927,
62,
259,
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,
35927,
87,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
912,
62,
35927,
62,
28413,
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,
340,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
14804,
926,
62,
2070,
278,
62,
259,
39852,
2849
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
"! <p class="shorttext synchronized" lang="en">Tasks Tracker Constants</p>
INTERFACE zif_tt_constants
PUBLIC.
CONSTANTS:
BEGIN OF gc_status,
backlog TYPE ztt_status VALUE '' ##NO_TEXT,
open TYPE ztt_status VALUE 'OPEN' ##NO_TEXT,
work_in_progress TYPE ztt_status VALUE 'WIP' ##NO_TEXT,
testing TYPE ztt_status VALUE 'TESTING' ##NO_TEXT,
ended TYPE ztt_status VALUE 'ENDED' ##NO_TEXT,
locked TYPE ztt_status VALUE 'LOCKED' ##NO_TEXT,
cancelled TYPE ztt_status VALUE 'CANCEL' ##NO_TEXT,
END OF gc_status.
ENDINTERFACE.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
51,
6791,
26885,
4757,
1187,
3556,
79,
29,
198,
41358,
49836,
1976,
361,
62,
926,
62,
9979,
1187,
198,
220,
44731,
13,
628,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
347,
43312,
3963,
308,
66,
62,
13376,
11,
198,
220,
220,
220,
220,
220,
38780,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
926,
62,
13376,
26173,
8924,
10148,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
1280,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
926,
62,
13376,
26173,
8924,
705,
3185,
1677,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
670,
62,
259,
62,
33723,
41876,
1976,
926,
62,
13376,
26173,
8924,
705,
54,
4061,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
4856,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
926,
62,
13376,
26173,
8924,
705,
51,
6465,
2751,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
4444,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
926,
62,
13376,
26173,
8924,
705,
49361,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
8970,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
926,
62,
13376,
26173,
8924,
705,
36840,
1961,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
16769,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
926,
62,
13376,
26173,
8924,
705,
34,
20940,
3698,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
23578,
3963,
308,
66,
62,
13376,
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
] |
*----------------------------------------------------------------------*
* CLASS lcl_Test DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_test DEFINITION FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS
FINAL.
PRIVATE SECTION.
* ================
DATA: mt_code TYPE string_table,
mt_tokens TYPE stokesx_tab,
mt_statements TYPE sstmnt_tab,
mt_structures TYPE zcl_aoc_super=>ty_structures_tt.
METHODS:
build01 FOR TESTING,
build02 FOR TESTING.
METHODS: parse.
ENDCLASS. "lcl_Test
*----------------------------------------------------------------------*
* CLASS lcl_Test IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS ltcl_test IMPLEMENTATION.
* ==============================
DEFINE _code.
APPEND &1 TO mt_code.
END-OF-DEFINITION.
METHOD parse.
SCAN ABAP-SOURCE mt_code
TOKENS INTO mt_tokens
STATEMENTS INTO mt_statements
STRUCTURES INTO mt_structures
WITH ANALYSIS
WITH COMMENTS.
ENDMETHOD. "parse
METHOD build01.
DATA: lt_string TYPE zcl_aoc_structure=>ty_string_tt,
lo_stru TYPE REF TO zcl_aoc_structure.
_code 'DATA: lv_foo TYPE i, lv_bar TYPE i.'.
_code 'WRITE lv_foo.'.
_code 'IF lv_foo = lv_bar.'.
_code ' WRITE lv_foo.'.
_code ' WRITE lv_foo.'.
_code 'ELSEIF lv_foo = lv_bar.'.
_code ' WRITE lv_foo.'.
_code 'ELSE.'.
_code ' WRITE lv_foo.'.
_code 'ENDIF.'.
_code 'WRITE lv_foo.'.
parse( ).
lo_stru = zcl_aoc_structure=>build(
it_tokens = mt_tokens
it_statements = mt_statements
it_structures = mt_structures ).
lt_string = zcl_aoc_structure=>to_string( lo_stru ).
cl_abap_unit_assert=>assert_not_initial( lt_string ).
cl_abap_unit_assert=>assert_equals(
act = lines( lt_string )
exp = 14 ).
ENDMETHOD. "build
METHOD build02.
DATA: lt_string TYPE zcl_aoc_structure=>ty_string_tt,
lo_stru TYPE REF TO zcl_aoc_structure.
_code 'CASE lv_foo.'.
_code ' WHEN ''a''.'.
_code ' lv_moo = lv_boo.'.
_code ' WHEN OTHERS.'.
_code ' lv_moo = lv_boo.'.
_code 'ENDCASE.'.
parse( ).
lo_stru = zcl_aoc_structure=>build(
it_tokens = mt_tokens
it_statements = mt_statements
it_structures = mt_structures ).
lt_string = zcl_aoc_structure=>to_string( lo_stru ).
cl_abap_unit_assert=>assert_not_initial( lt_string ).
cl_abap_unit_assert=>assert_equals(
act = lines( lt_string )
exp = 6 ).
ENDMETHOD.
ENDCLASS. "lcl_Test
| [
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,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
9,
796,
25609,
18604,
628,
220,
220,
220,
42865,
25,
45079,
62,
8189,
220,
220,
220,
220,
220,
220,
41876,
4731,
62,
11487,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45079,
62,
83,
482,
641,
220,
220,
220,
220,
41876,
336,
3369,
87,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45079,
62,
14269,
3196,
41876,
264,
301,
76,
429,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45079,
62,
7249,
942,
41876,
1976,
565,
62,
64,
420,
62,
16668,
14804,
774,
62,
7249,
942,
62,
926,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
1382,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1382,
2999,
7473,
43001,
2751,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
21136,
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,
23449,
8881,
4808,
8189,
13,
198,
220,
220,
220,
43504,
10619,
1222,
16,
5390,
45079,
62,
8189,
13,
198,
220,
23578,
12,
19238,
12,
7206,
20032,
17941,
13,
628,
220,
337,
36252,
21136,
13,
198,
220,
220,
220,
6374,
1565,
9564,
2969,
12,
47690,
45079,
62,
8189,
198,
220,
220,
220,
220,
220,
220,
220,
220,
5390,
42,
16938,
39319,
45079,
62,
83,
482,
641,
198,
220,
220,
220,
220,
220,
220,
220,
220,
15486,
12529,
50,
39319,
45079,
62,
14269,
3196,
198,
220,
220,
220,
220,
220,
220,
220,
220,
19269,
18415,
29514,
39319,
45079,
62,
7249,
942,
198,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
3537,
1847,
16309,
1797,
198,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
9440,
28957,
13,
198,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
29572,
628,
220,
337,
36252,
1382,
486,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
8841,
41876,
1976,
565,
62,
64,
420,
62,
301,
5620,
14804,
774,
62,
8841,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
19554,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
64,
420,
62,
301,
5620,
13,
628,
198,
220,
220,
220,
4808,
8189,
705,
26947,
25,
300,
85,
62,
21943,
41876,
1312,
11,
300,
85,
62,
5657,
41876,
1312,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
18564,
12709,
300,
85,
62,
21943,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
5064,
300,
85,
62,
21943,
796,
300,
85,
62,
5657,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
44423,
300,
85,
62,
21943,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
44423,
300,
85,
62,
21943,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
3698,
5188,
5064,
300,
85,
62,
21943,
796,
300,
85,
62,
5657,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
44423,
300,
85,
62,
21943,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
3698,
5188,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
44423,
300,
85,
62,
21943,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
10619,
5064,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
18564,
12709,
300,
85,
62,
21943,
2637,
13,
628,
220,
220,
220,
21136,
7,
6739,
628,
220,
220,
220,
2376,
62,
19554,
796,
1976,
565,
62,
64,
420,
62,
301,
5620,
14804,
11249,
7,
198,
220,
220,
220,
220,
220,
340,
62,
83,
482,
641,
220,
220,
220,
220,
796,
45079,
62,
83,
482,
641,
198,
220,
220,
220,
220,
220,
340,
62,
14269,
3196,
796,
45079,
62,
14269,
3196,
198,
220,
220,
220,
220,
220,
340,
62,
7249,
942,
796,
45079,
62,
7249,
942,
6739,
628,
220,
220,
220,
300,
83,
62,
8841,
796,
1976,
565,
62,
64,
420,
62,
301,
5620,
14804,
1462,
62,
8841,
7,
2376,
62,
19554,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
1662,
62,
36733,
7,
300,
83,
62,
8841,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
3951,
7,
300,
83,
62,
8841,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
1478,
6739,
628,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
366,
11249,
628,
220,
337,
36252,
1382,
2999,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
8841,
41876,
1976,
565,
62,
64,
420,
62,
301,
5620,
14804,
774,
62,
8841,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
19554,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
64,
420,
62,
301,
5620,
13,
628,
198,
220,
220,
220,
4808,
8189,
705,
34,
11159,
300,
85,
62,
21943,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
42099,
10148,
64,
7061,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
220,
220,
300,
85,
62,
76,
2238,
796,
300,
85,
62,
2127,
78,
2637,
13,
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
] |
*"* use this source file for your ABAP unit test classes
CLASS ltcl_unit_test DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA mo_cut TYPE REF TO zcl_dbbr_sql_query_parser.
METHODS:
setup,
test_normal_select FOR TESTING
RAISING cx_static_check,
test_with_select FOR TESTING
RAISING cx_static_check,
test_join FOR TESTING
RAISING cx_static_check,
test_join2 FOR TESTING
RAISING cx_static_check,
test_union FOR TESTING
RAISING cx_static_check,
test_sub_query FOR TESTING
RAISING cx_static_check,
test_params FOR TESTING
RAISING cx_static_check,
test_no_terminator FOR TESTING
RAISING cx_static_check,
test_is_count_query FOR TESTING
RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_unit_test IMPLEMENTATION.
METHOD setup.
ENDMETHOD.
METHOD test_normal_select.
DATA: lt_query TYPE TABLE OF string.
mo_cut = NEW #( iv_query = 'SELECT * FROM MARA' ).
TRY.
mo_cut->parse( ).
CATCH ZCX_DBBR_APPLICATION_EXC.
ENDTRY.
ENDMETHOD.
METHOD test_with_select.
DATA: lt_query TYPE TABLE OF string.
lt_query = VALUE #(
( |DATA: carrid type spfli-carrid.| )
( )
( |WITH | )
( | +cities AS (| )
( | SELECT cityfrom AS city| )
( | FROM spfli| )
( | WHERE carrid = @carrid | )
( | UNION DISTINCT | )
( | SELECT cityto AS city | )
( | FROM spfli | )
( | WHERE carrid = @carrid | )
( | ) | )
( | SELECT * | )
( | FROM sgeocity | )
( | WHERE city IN ( SELECT city | )
( | FROM +cities ). | )
).
CONCATENATE LINES OF lt_query INTO DATA(lv_query) SEPARATED BY cl_abap_char_utilities=>cr_lf.
mo_cut = NEW #( lv_query ).
TRY.
mo_cut->parse( ).
CATCH ZCX_DBBR_APPLICATION_EXC INTO DATA(lx_error).
ENDTRY.
* cl_abap_unit_assert=>assert_bound(
* act = lx_error
* msg = 'Unsupported WITH query not caught'
* ).
ENDMETHOD.
METHOD test_join.
DATA: lt_query TYPE TABLE OF string.
lt_query = VALUE #(
( |SELECT *| )
( | FROM mara AS material| )
( | INNER JOIN marc AS plant| )
( | ON material~matnr = plant~matnr| )
( | WHERE plant like '1002'. | )
).
CONCATENATE LINES OF lt_query INTO DATA(lv_query) SEPARATED BY cl_abap_char_utilities=>cr_lf.
mo_cut = NEW #( lv_query ).
TRY.
mo_cut->parse( ).
CATCH ZCX_DBBR_APPLICATION_EXC.
ENDTRY.
ENDMETHOD.
METHOD test_join2.
DATA: lt_query TYPE TABLE OF string.
lt_query = VALUE #(
( |SELECT| )
( | FROM /dry/process AS process| )
( | LEFT OUTER JOIN /dry/proccstctr AS costcenter| )
( | ON process~processuuid = costcenter~processuuid| )
( | JOIN /dry/i_workcentercostcenter AS processcostcenter| )
( | ON process~dairyresourceinternalid = processcostcenter~workcenterinternalid| )
( | FIELDS process~dairyprocessexternalid| )
).
CONCATENATE LINES OF lt_query INTO DATA(lv_query) SEPARATED BY cl_abap_char_utilities=>cr_lf.
mo_cut = NEW #( lv_query ).
TRY.
mo_cut->parse( ).
CATCH ZCX_DBBR_APPLICATION_EXC.
ENDTRY.
ENDMETHOD.
METHOD test_union.
DATA: lt_query TYPE TABLE OF string.
lt_query = VALUE #(
( |SELECT costcenter AS entity, CAST( 'Cost Center' AS CHAR ) AS type| )
( | FROM /dry/proccstctr| )
( | UNION| )
( |SELECT costelement AS entity, CAST( 'Cost Element' AS CHAR ) AS type| )
( | FROM /dry/proccstelmt| )
( | WHERE costelement LIKE '%'| )
).
CONCATENATE LINES OF lt_query INTO DATA(lv_query) SEPARATED BY cl_abap_char_utilities=>cr_lf.
mo_cut = NEW #( lv_query ).
TRY.
mo_cut->parse( ).
CATCH ZCX_DBBR_APPLICATION_EXC.
ENDTRY.
ENDMETHOD.
METHOD test_sub_query.
DATA: lt_query TYPE TABLE OF string.
lt_query = VALUE #(
( |SELECT *| )
( | FROM mara| )
( | WHERE matnr IN ( SELECT matnr| )
( | FROM marc| )
( | WHERE matnr LIKE 'F%'| )
( | AND werks IN ( '1002','1003','1004' )| )
( | GROUP BY matnr| )
( | ) | )
).
CONCATENATE LINES OF lt_query INTO DATA(lv_query) SEPARATED BY cl_abap_char_utilities=>cr_lf.
mo_cut = NEW #( lv_query ).
TRY.
mo_cut->parse( ).
CATCH ZCX_DBBR_APPLICATION_EXC.
ENDTRY.
ENDMETHOD.
METHOD test_params.
DATA: lt_query TYPE TABLE OF string.
lt_query = VALUE #(
( |DATA: p_plant value '1002' type werks_d,| )
( | p_inline(4) type c value '003',| )
( | p_from_date TYPE dats.| )
( || )
( |SELECT costcenter AS entity, CAST( 'Cost Center' AS CHAR ) AS type| )
( | FROM /dry/proccstctr| )
( | UNION| )
( |SELECT costelement AS entity, CAST( 'Cost Element' AS CHAR ) AS type| )
( | FROM /dry/proccstelmt| )
( | WHERE costelement LIKE '%'| )
).
CONCATENATE LINES OF lt_query INTO DATA(lv_query) SEPARATED BY cl_abap_char_utilities=>cr_lf.
mo_cut = NEW #( lv_query ).
TRY.
mo_cut->parse( ).
CATCH ZCX_DBBR_APPLICATION_EXC.
ENDTRY.
ENDMETHOD.
METHOD test_no_terminator.
DATA: lt_query TYPE TABLE OF string.
lt_query = VALUE #(
( |SELECT matnr, mtart from mara| )
).
CONCATENATE LINES OF lt_query INTO DATA(lv_query) SEPARATED BY cl_abap_char_utilities=>cr_lf.
mo_cut = NEW #( lv_query ).
TRY.
mo_cut->parse( ).
CATCH ZCX_DBBR_APPLICATION_EXC.
ENDTRY.
ENDMETHOD.
METHOD test_is_count_query.
DATA: lt_query TYPE TABLE OF string.
lt_query = VALUE #(
( |DATA: carrid type spfli-carrid.| )
( )
( |WITH | )
( | +cities AS (| )
( | SELECT cityfrom AS city| )
( | FROM spfli| )
( | WHERE carrid = @carrid | )
( | UNION DISTINCT | )
( | SELECT cityto AS city | )
( | FROM spfli | )
( | WHERE carrid = @carrid | )
( | ) | )
( | SELECT COUNT( * ) as count | )
( | FROM sgeocity | )
( | WHERE city IN ( SELECT city | )
( | FROM +cities ). | )
).
CONCATENATE LINES OF lt_query INTO DATA(lv_query) SEPARATED BY cl_abap_char_utilities=>cr_lf.
mo_cut = NEW #( lv_query ).
TRY.
DATA(lo_query) = mo_cut->parse( ).
cl_abap_unit_assert=>assert_true(
act = lo_query->ms_data-is_single_result_query
msg = 'Count query could not be detected'
).
CATCH ZCX_DBBR_APPLICATION_EXC INTO DATA(lx_error).
ENDTRY.
cl_abap_unit_assert=>assert_not_bound(
act = lx_error
msg = cond #( when lx_error is bound then lx_error->get_longtext( ) )
).
ENDMETHOD.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
534,
9564,
2969,
4326,
1332,
6097,
198,
31631,
300,
83,
565,
62,
20850,
62,
9288,
5550,
20032,
17941,
25261,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
6941,
62,
8968,
41876,
4526,
37,
5390,
1976,
565,
62,
9945,
1671,
62,
25410,
62,
22766,
62,
48610,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
11265,
62,
19738,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
4480,
62,
19738,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
22179,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
22179,
17,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
24592,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
7266,
62,
22766,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
37266,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
3919,
62,
23705,
1352,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
271,
62,
9127,
62,
22766,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
20850,
62,
9288,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
9058,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
62,
11265,
62,
19738,
13,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
22766,
41876,
43679,
3963,
4731,
13,
628,
220,
220,
220,
6941,
62,
8968,
796,
12682,
1303,
7,
21628,
62,
22766,
796,
705,
46506,
1635,
16034,
18805,
32,
6,
6739,
198,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
6941,
62,
8968,
3784,
29572,
7,
6739,
198,
220,
220,
220,
220,
220,
327,
11417,
1168,
34,
55,
62,
11012,
11473,
62,
2969,
31484,
6234,
62,
6369,
34,
13,
198,
220,
220,
220,
23578,
40405,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
62,
4480,
62,
19738,
13,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
22766,
41876,
43679,
3963,
4731,
13,
198,
220,
220,
220,
300,
83,
62,
22766,
796,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
930,
26947,
25,
1097,
6058,
2099,
599,
2704,
72,
12,
66,
3258,
312,
13,
91,
1267,
198,
220,
220,
220,
220,
220,
357,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
54,
10554,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
1343,
66,
871,
7054,
357,
91,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
33493,
1748,
6738,
7054,
1748,
91,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
599,
2704,
72,
91,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33411,
1097,
6058,
796,
2488,
66,
3258,
312,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
4725,
2849,
360,
8808,
1268,
4177,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
33493,
1748,
1462,
7054,
1748,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
599,
2704,
72,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33411,
1097,
6058,
796,
2488,
66,
3258,
312,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
1267,
220,
220,
220,
220,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
33493,
1635,
220,
220,
220,
220,
220,
220,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
16034,
264,
469,
11683,
220,
220,
220,
220,
220,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
33411,
1748,
3268,
357,
33493,
1748,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1267,
198,
220,
220,
220,
220,
220,
357,
930,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
1343,
66,
871,
6739,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1267,
198,
220,
220,
220,
6739,
628,
220,
220,
220,
39962,
1404,
1677,
6158,
43277,
1546,
3963,
300,
83,
62,
22766,
39319,
42865,
7,
6780,
62,
22766,
8,
7946,
27082,
11617,
11050,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
13,
198,
220,
220,
220,
6941,
62,
8968,
796,
12682,
1303,
7,
300,
85,
62,
22766,
6739,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_services_abapgit DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
CONSTANTS c_abapgit_homepage TYPE string VALUE 'http://www.abapgit.org' ##NO_TEXT.
CONSTANTS c_abapgit_wikipage TYPE string VALUE 'http://docs.abapgit.org' ##NO_TEXT.
CONSTANTS c_package_abapgit TYPE devclass VALUE '$ABAPGIT' ##NO_TEXT.
CONSTANTS c_abapgit_url TYPE string VALUE 'https://github.com/larshp/abapGit.git' ##NO_TEXT.
CLASS-METHODS open_abapgit_homepage
RAISING
zcx_abapgit_exception .
CLASS-METHODS open_abapgit_wikipage
RAISING
zcx_abapgit_exception .
CLASS-METHODS install_abapgit
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel .
CLASS-METHODS is_installed
RETURNING
VALUE(rv_installed) TYPE abap_bool .
PRIVATE SECTION.
CLASS-METHODS do_install
IMPORTING iv_title TYPE c
iv_text TYPE c
iv_url TYPE string
iv_package TYPE devclass
RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS zcl_abapgit_services_abapgit IMPLEMENTATION.
METHOD do_install.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
lv_answer TYPE c LENGTH 1.
lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm(
iv_titlebar = iv_title
iv_text_question = iv_text
iv_text_button_1 = 'Continue'
iv_text_button_2 = 'Cancel'
iv_default_button = '2'
iv_display_cancel_button = abap_false ). "#EC NOTEXT
IF lv_answer <> '1'.
RETURN.
ENDIF.
IF abap_false = zcl_abapgit_repo_srv=>get_instance( )->is_repo_installed(
iv_url = iv_url
iv_target_package = iv_package ).
zcl_abapgit_factory=>get_sap_package( iv_package )->create_local( ).
lo_repo = zcl_abapgit_repo_srv=>get_instance( )->new_online(
iv_url = iv_url
iv_branch_name = 'refs/heads/master'
iv_package = iv_package ) ##NO_TEXT.
zcl_abapgit_services_repo=>gui_deserialize( lo_repo ).
zcl_abapgit_services_repo=>toggle_favorite( lo_repo->get_key( ) ).
ENDIF.
COMMIT WORK.
ENDMETHOD.
METHOD install_abapgit.
CONSTANTS lc_title TYPE c LENGTH 40 VALUE 'Install abapGit'.
DATA lv_text TYPE c LENGTH 100.
IF is_installed( ) = abap_true.
lv_text = 'Seems like abapGit package is already installed. No changes to be done'.
zcl_abapgit_ui_factory=>get_popups( )->popup_to_inform(
iv_titlebar = lc_title
iv_text_message = lv_text ).
RETURN.
ENDIF.
lv_text = |Confirm to install current version of abapGit to package { c_package_abapgit }|.
do_install( iv_title = lc_title
iv_text = lv_text
iv_url = c_abapgit_url
iv_package = c_package_abapgit ).
ENDMETHOD.
METHOD is_installed.
TRY.
rv_installed = zcl_abapgit_repo_srv=>get_instance( )->is_repo_installed( c_abapgit_url ).
" TODO, alternative checks for presence in the system
CATCH zcx_abapgit_exception.
" cannot be installed anyway in this case, e.g. no connection
rv_installed = abap_false.
ENDTRY.
ENDMETHOD.
METHOD open_abapgit_homepage.
cl_gui_frontend_services=>execute(
EXPORTING document = c_abapgit_homepage
EXCEPTIONS OTHERS = 1 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Opening page in external browser failed.' ).
ENDIF.
ENDMETHOD.
METHOD open_abapgit_wikipage.
cl_gui_frontend_services=>execute(
EXPORTING document = c_abapgit_wikipage
EXCEPTIONS OTHERS = 1 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Opening page in external browser failed.' ).
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
30416,
62,
397,
499,
18300,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
397,
499,
18300,
62,
11195,
7700,
41876,
4731,
26173,
8924,
705,
4023,
1378,
2503,
13,
397,
499,
18300,
13,
2398,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
397,
499,
18300,
62,
20763,
541,
496,
41876,
4731,
26173,
8924,
705,
4023,
1378,
31628,
13,
397,
499,
18300,
13,
2398,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
26495,
62,
397,
499,
18300,
41876,
1614,
4871,
26173,
8924,
705,
3,
6242,
2969,
38,
2043,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
397,
499,
18300,
62,
6371,
41876,
4731,
26173,
8924,
705,
5450,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
397,
499,
38,
270,
13,
18300,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
1280,
62,
397,
499,
18300,
62,
11195,
7700,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
1280,
62,
397,
499,
18300,
62,
20763,
541,
496,
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,
2721,
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,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
318,
62,
37050,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
37050,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
466,
62,
17350,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
7839,
220,
220,
41876,
269,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
41876,
269,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
6371,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
26495,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
30416,
62,
397,
499,
18300,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
466,
62,
17350,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
260,
7501,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
41484,
41876,
269,
406,
49494,
352,
13,
628,
198,
220,
220,
220,
300,
85,
62,
41484,
796,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
14804,
1136,
62,
12924,
4739,
7,
1267,
3784,
12924,
929,
62,
1462,
62,
10414,
2533,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
7839,
5657,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
21628,
62,
7839,
198,
220,
220,
220,
220,
220,
21628,
62,
5239,
62,
25652,
220,
220,
220,
220,
220,
220,
220,
220,
796,
21628,
62,
5239,
198,
220,
220,
220,
220,
220,
21628,
62,
5239,
62,
16539,
62,
16,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
29453,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
5239,
62,
16539,
62,
17,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
34,
21130,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
12286,
62,
16539,
220,
220,
220,
220,
220,
220,
220,
796,
705,
17,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
13812,
62,
66,
21130,
62,
16539,
796,
450,
499,
62,
9562,
6739,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
628,
220,
220,
220,
16876,
300,
85,
62,
41484,
1279,
29,
705,
16,
4458,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
16876,
450,
499,
62,
9562,
796,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
14804,
1136,
62,
39098,
7,
1267,
3784,
271,
62,
260,
7501,
62,
37050,
7,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
21628,
62,
6371,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16793,
62,
26495,
220,
220,
796,
21628,
62,
26495,
6739,
628,
220,
220,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
69,
9548,
14804,
1136,
62,
82,
499,
62,
26495,
7,
21628,
62,
26495,
1267,
3784,
17953,
62,
12001,
7,
6739,
628,
220,
220,
220,
220,
220,
2376,
62,
260,
7501,
796,
1976,
565,
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,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
796,
21628,
62,
6371,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1671,
3702,
62,
3672,
796,
705,
5420,
82,
14,
16600,
14,
9866,
6,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
26495,
220,
220,
220,
220,
796,
21628
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
FUNCTION CONVERSION_EXIT_YDK29_INPUT .
*"--------------------------------------------------------------------
*"*"Локальный интерфейс:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
*"--------------------------------------------------------------------
* see FM YDK_CONVERSION_EXIT_REGISTER
PERFORM input USING '29' input CHANGING output.
ENDFUNCTION.
| [
42296,
4177,
2849,
7102,
43717,
62,
6369,
2043,
62,
35755,
42,
1959,
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,
1959,
6,
5128,
5870,
15567,
2751,
5072,
13,
198,
1677,
8068,
4944,
4177,
2849,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*"* use this source file for your ABAP unit test classes
CLASS lcl_helper DEFINITION DEFERRED.
CLASS zcl_xmi_bapi DEFINITION LOCAL FRIENDS lcl_helper.
CLASS lcl_helper DEFINITION.
PUBLIC SECTION.
CLASS-METHODS get_xmi RETURNING VALUE(result) TYPE REF TO zif_xmi_bapi.
ENDCLASS.
CLASS lcl_helper IMPLEMENTATION.
METHOD get_xmi.
result = NEW zcl_xmi_bapi( ).
ENDMETHOD.
ENDCLASS.
CLASS ltc_logon_ok DEFINITION
FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA: xmi TYPE REF TO zif_xmi_bapi.
METHODS nothing FOR TESTING.
METHODS company_only FOR TESTING.
METHODS interface_only FOR TESTING.
METHODS interface_and_company FOR TESTING.
METHODS interface_only_enter_logmsg FOR TESTING.
METHODS check_version FOR TESTING RAISING cx_static_check.
METHODS get_versions FOR TESTING RAISING cx_static_check.
METHODS describe_interface FOR TESTING RAISING cx_static_check.
METHODS enter_logmsg_in_interface_off FOR TESTING RAISING cx_static_check.
METHODS logon_invalid_interface FOR TESTING RAISING cx_static_check.
METHODS teardown.
METHODS setup.
ENDCLASS.
CLASS ltc_logon_ok IMPLEMENTATION.
METHOD logon_invalid_interface.
TRY.
xmi->logon(
interface = '???'
version = '?'
extcompany = ''
extproduct = '' ).
cl_abap_unit_assert=>fail( msg = 'logon with invalid interface should fail' ).
CATCH zcx_xmi INTO DATA(lx_xmi).
ENDTRY.
cl_abap_unit_assert=>assert_equals(
act = CORRESPONDING bapiret2( lx_xmi->return EXCEPT message system )
exp = VALUE bapiret2(
type = 'E'
id = 'XM'
number = '023'
message_v1 = 'BAPI_XMI_LOGON'
message_v2 = '???' ) ).
ENDMETHOD.
METHOD interface_and_company.
xmi->logon(
interface = 'XBP'
version = '3.0'
extcompany = 'DUMMY' ).
xmi->select_log( extuser = 'ZZZ' ).
xmi->logoff( ).
ENDMETHOD.
METHOD company_only.
xmi->logon( extcompany = 'DUMMY' ).
xmi->select_log( extuser = 'ZZZ' ).
xmi->logoff( ).
ENDMETHOD.
METHOD interface_only.
xmi->logon( interface = 'XBP' version = '3.0' ).
TRY.
xmi->logoff( interface = 'XBP' ).
CATCH zcx_xmi INTO DATA(lx_xmi).
ENDTRY.
cl_abap_unit_assert=>assert_bound( act = lx_xmi ).
cl_abap_unit_assert=>assert_equals(
act = CORRESPONDING bapiret2( lx_xmi->return EXCEPT message system )
exp = VALUE bapiret2(
type = 'E'
id = 'XM'
number = '028'
message_v1 = 'BAPI_XMI_LOGOFF'
message_v2 = 'XBP' ) ).
ENDMETHOD.
METHOD nothing.
xmi->logon( ).
TRY.
xmi->logoff( ).
CATCH zcx_xmi INTO DATA(lx_xmi).
ENDTRY.
cl_abap_unit_assert=>assert_bound( act = lx_xmi ).
cl_abap_unit_assert=>assert_equals(
act = CORRESPONDING bapiret2( lx_xmi->return EXCEPT message system )
exp = VALUE bapiret2(
type = 'E'
id = 'XM'
number = '028'
message_v1 = 'BAPI_XMI_LOGOFF' ) ).
ENDMETHOD.
METHOD teardown.
TRY.
xmi->logon( extcompany = 'ZZZ' ).
CATCH zcx_xmi ##NO_HANDLER.
ENDTRY.
TRY.
xmi->logoff( ).
CATCH zcx_xmi ##NO_HANDLER.
ENDTRY.
ENDMETHOD.
METHOD setup.
xmi = lcl_helper=>get_xmi( ).
ENDMETHOD.
METHOD interface_only_enter_logmsg.
xmi->logon( interface = 'XBP' version = '3.0' ).
xmi->enter_logmsg( interface = 'XBP' msgtext = 'test' ).
" LOGOFF is only possible with EXTCOMPANY
xmi->logon( extcompany = 'A' ).
xmi->logoff( ).
ENDMETHOD.
METHOD enter_logmsg_in_interface_off.
xmi->logon( interface = 'XBP' version = '3.0' ).
TRY.
xmi->enter_logmsg( interface = 'XAL' msgtext = 'test' ).
cl_abap_unit_assert=>fail( msg = 'should not write to interface not logged on' ).
CATCH zcx_xmi INTO DATA(lx_xmi).
ENDTRY.
" LOGOFF is only possible with EXTCOMPANY
xmi->logon( extcompany = 'A' ).
xmi->logoff( ).
ENDMETHOD.
METHOD check_version.
DATA(valid) = xmi->check_version( interface = 'XBP' version = '3.0' ).
cl_abap_unit_assert=>assert_equals(
msg = 'XBP 3.0 should be a valid version'
exp = abap_true
act = valid ).
ENDMETHOD.
METHOD get_versions.
DATA(versions) = xmi->get_versions( interface = 'XBP' ).
cl_abap_unit_assert=>assert_not_initial(
msg = 'XBP should have at least one version'
act = versions ).
ENDMETHOD.
METHOD describe_interface.
DATA(description) = xmi->describe_interface( interface = 'XBP' ).
cl_abap_unit_assert=>assert_not_initial(
msg = 'XBP should have a description'
act = description ).
ENDMETHOD.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
534,
9564,
2969,
4326,
1332,
6097,
198,
198,
31631,
300,
565,
62,
2978,
525,
5550,
20032,
17941,
23449,
1137,
22083,
13,
198,
31631,
1976,
565,
62,
87,
11632,
62,
65,
15042,
5550,
20032,
17941,
37347,
1847,
48167,
1677,
5258,
300,
565,
62,
2978,
525,
13,
198,
198,
31631,
300,
565,
62,
2978,
525,
5550,
20032,
17941,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
87,
11632,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
87,
11632,
62,
65,
15042,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
565,
62,
2978,
525,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
651,
62,
87,
11632,
13,
198,
220,
220,
220,
1255,
796,
12682,
1976,
565,
62,
87,
11632,
62,
65,
15042,
7,
6739,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
23047,
62,
6404,
261,
62,
482,
5550,
20032,
17941,
198,
220,
220,
220,
220,
220,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
220,
220,
220,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
2124,
11632,
41876,
4526,
37,
5390,
1976,
361,
62,
87,
11632,
62,
65,
15042,
13,
198,
220,
220,
220,
337,
36252,
50,
2147,
7473,
43001,
2751,
13,
198,
220,
220,
220,
337,
36252,
50,
1664,
62,
8807,
7473,
43001,
2751,
13,
198,
220,
220,
220,
337,
36252,
50,
7071,
62,
8807,
7473,
43001,
2751,
13,
198,
220,
220,
220,
337,
36252,
50,
7071,
62,
392,
62,
39722,
7473,
43001,
2751,
13,
198,
220,
220,
220,
337,
36252,
50,
7071,
62,
8807,
62,
9255,
62,
6404,
19662,
7473,
43001,
2751,
13,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
9641,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
47178,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
6901,
62,
39994,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
3802,
62,
6404,
19662,
62,
259,
62,
39994,
62,
2364,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
2604,
261,
62,
259,
12102,
62,
39994,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
573,
446,
593,
13,
198,
220,
220,
220,
337,
36252,
50,
9058,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
23047,
62,
6404,
261,
62,
482,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
2604,
261,
62,
259,
12102,
62,
39994,
13,
198,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
11632,
3784,
6404,
261,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7071,
220,
796,
705,
3548,
8348,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2196,
220,
220,
220,
796,
705,
8348,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1070,
39722,
796,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1070,
11167,
796,
10148,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
31456,
796,
705,
6404,
261,
351,
12515,
7071,
815,
2038,
6,
6739,
628,
220,
220,
220,
220,
220,
327,
11417,
1976,
66,
87,
62,
87,
11632,
39319,
42865,
7,
75,
87,
62,
87,
11632,
737,
198,
220,
220,
220,
23578,
40405,
13,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
220,
220,
719,
796,
23929,
19535,
47,
18672,
2751,
275,
499,
557,
83,
17,
7,
300,
87,
62,
87,
11632,
3784,
7783,
7788,
42006,
3275,
1080,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
1033,
796,
26173,
8924,
275,
499,
557,
83,
17,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
796,
705,
36,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
37643,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
220,
220,
220,
220,
796,
705,
45310,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
85,
16,
796,
705,
33,
17614,
62,
55,
8895,
62,
25294,
1340,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
62,
85,
17,
796,
705,
3548,
8348,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
7071,
62,
392,
62,
39722,
13,
628,
220,
220,
220,
2124,
11632,
3784,
6404,
261,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7071,
220,
796,
705,
55,
20866,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2196,
220,
220,
220,
796,
705,
18,
13,
15,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1070,
39722,
796,
705,
35,
5883,
26708,
6,
6739,
628,
220,
220,
220,
2124,
11632,
3784,
19738,
62,
6404,
7,
1070,
7220,
796,
705,
30148,
57,
6,
6739,
628,
220,
220,
220,
2124,
11632,
3784,
6404,
2364,
7,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1664,
62,
8807,
13,
628,
220,
220,
220,
2124,
11632,
3784,
6404,
261,
7,
1070,
39722,
796,
705,
35,
5883,
26708,
6,
6739,
628,
220,
220,
220,
2124,
11632,
3784,
19738,
62,
6404,
7,
1070,
7220,
796,
705,
30148,
57,
6,
6739,
628,
220,
220,
220,
2124,
11632,
3784,
6404,
2364,
7,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
7071,
62,
8807,
13,
628,
220,
220,
220,
2124,
11632,
3784,
6404,
261,
7,
7071,
796,
705,
55,
20866,
6,
2196,
796,
705,
18,
13,
15,
6,
6739,
628,
220,
220,
220,
7579
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class ZSAPLINK_TABLE_CONTENTS definition
public
inheriting from ZSAPLINK
final
create public .
public section.
methods CHECKEXISTS
redefinition .
methods CREATEIXMLDOCFROMOBJECT
redefinition .
methods CREATEOBJECTFROMIXMLDOC
redefinition .
protected section.
methods DELETEOBJECT
redefinition .
methods GETOBJECTTYPE
redefinition .
private section.
endclass. "ZSAPLINK_TABLE_CONTENTS definition
*----------------------------------------------------------------------*
* class ZSAPLINK_TABLE_CONTENTS implementation.
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
class ZSAPLINK_TABLE_CONTENTS implementation.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| SAPlink is free software; you can redistribute it and/or modify |
*| it under the terms of the GNU General Public License as published |
*| by the Free Software Foundation; either version 2 of the License, |
*| or (at your option) any later version. |
*| |
*| SAPlink is distributed in the hope that it will be useful, |
*| but WITHOUT ANY WARRANTY; without even the implied warranty of |
*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
*| GNU General Public License for more details. |
*| |
*| You should have received a copy of the GNU General Public License |
*| along with SAPlink; if not, write to the |
*| Free Software Foundation, Inc., |
*| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
*\---------------------------------------------------------------------/
METHOD checkexists.
* Plugin created by:
* Rich Heilman
* [email protected]
* No implementation
ENDMETHOD.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| SAPlink is free software; you can redistribute it and/or modify |
*| it under the terms of the GNU General Public License as published |
*| by the Free Software Foundation; either version 2 of the License, |
*| or (at your option) any later version. |
*| |
*| SAPlink is distributed in the hope that it will be useful, |
*| but WITHOUT ANY WARRANTY; without even the implied warranty of |
*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
*| GNU General Public License for more details. |
*| |
*| You should have received a copy of the GNU General Public License |
*| along with SAPlink; if not, write to the |
*| Free Software Foundation, Inc., |
*| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
*\---------------------------------------------------------------------/
METHOD createixmldocfromobject.
* Plugin created by:
* Rich Heilman
* [email protected]
TYPES: BEGIN OF ttabname,
tabname TYPE dd02v-tabname,
END OF ttabname.
DATA xtabname TYPE ttabname.
DATA xdd02v TYPE dd02v.
DATA root_node TYPE REF TO if_ixml_element.
DATA datarow_node TYPE REF TO if_ixml_element.
DATA rc TYPE sysubrc.
DATA _tablname TYPE ddobjname.
DATA _objtype TYPE string.
DATA dref_tab TYPE REF TO data.
DATA dref_wa TYPE REF TO data.
FIELD-SYMBOLS: <dyn_tab> TYPE table.
FIELD-SYMBOLS: <dyn_wa> TYPE ANY.
* Check that table exits.
_tablname = objname.
* Does the table exist?
CALL FUNCTION 'DDIF_TABL_GET'
EXPORTING
name = _tablname
IMPORTING
dd02v_wa = xdd02v
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0 OR xdd02v-tabname IS INITIAL.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING textid = zcx_saplink=>error_message
msg = `Table not found`.
ENDIF.
* Create parent node
_objtype = getobjecttype( ).
root_node = xmldoc->create_element( _objtype ).
xtabname-tabname = xdd02v-tabname.
me->setattributesfromstructure( node = root_node structure = xtabname ).
* Create dynamic internal table and work area
CREATE DATA dref_tab TYPE TABLE OF (xdd02v-tabname).
ASSIGN dref_tab->* TO <dyn_tab>.
CREATE DATA dref_wa LIKE LINE OF <dyn_tab>.
ASSIGN dref_wa->* TO <dyn_wa>.
* Select all data
SELECT * INTO TABLE <dyn_tab> FROM (xdd02v-tabname).
* Write records to XML node
LOOP AT <dyn_tab> ASSIGNING <dyn_wa>.
datarow_node = xmldoc->create_element( `DataRow` ).
me->setattributesfromstructure( node = datarow_node structure = <dyn_wa> ).
rc = root_node->append_child( datarow_node ).
ENDLOOP.
* Add node
rc = xmldoc->append_child( root_node ).
ixmldocument = xmldoc.
ENDMETHOD.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| SAPlink is free software; you can redistribute it and/or modify |
*| it under the terms of the GNU General Public License as published |
*| by the Free Software Foundation; either version 2 of the License, |
*| or (at your option) any later version. |
*| |
*| SAPlink is distributed in the hope that it will be useful, |
*| but WITHOUT ANY WARRANTY; without even the implied warranty of |
*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
*| GNU General Public License for more details. |
*| |
*| You should have received a copy of the GNU General Public License |
*| along with SAPlink; if not, write to the |
*| Free Software Foundation, Inc., |
*| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
*\---------------------------------------------------------------------/
METHOD createobjectfromixmldoc.
* Plugin created by:
* Rich Heilman
* [email protected]
TYPES: BEGIN OF ttabname,
tabname TYPE dd02v-tabname,
END OF ttabname.
DATA xtabname TYPE ttabname.
DATA xdd02v TYPE dd02v.
DATA xtadir TYPE tadir.
DATA idd03p TYPE TABLE OF dd03p.
DATA xdd03p LIKE LINE OF idd03p.
DATA root_node TYPE REF TO if_ixml_element.
DATA datarow_node TYPE REF TO if_ixml_element.
DATA datarow_filter TYPE REF TO if_ixml_node_filter.
DATA datarow_iterator TYPE REF TO if_ixml_node_iterator.
DATA _objtype TYPE string.
DATA l_answer TYPE string.
DATA l_nameclass TYPE c.
DATA l_client_dependent TYPE abap_bool.
DATA dref_tab TYPE REF TO data.
DATA dref_wa TYPE REF TO data.
FIELD-SYMBOLS: <dyn_tab> TYPE table.
FIELD-SYMBOLS: <dyn_wa> TYPE ANY.
FIELD-SYMBOLS: <fs_mandt> TYPE ANY.
_objtype = getobjecttype( ).
xmldoc = ixmldocument.
root_node = xmldoc->find_from_name( _objtype ).
* Get table name from XML.
me->getstructurefromattributes(
EXPORTING node = root_node
CHANGING structure = xtabname ).
objname = xtabname-tabname.
* Check that table exists
CALL FUNCTION 'DDIF_TABL_GET'
EXPORTING
name = xtabname-tabname
IMPORTING
dd02v_wa = xdd02v
TABLES
dd03p_tab = idd03p
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0 OR xdd02v-tabname IS INITIAL.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING textid = zcx_saplink=>error_message
msg = `Table not found`.
ENDIF.
* Check for MANDT field, if found, then set client dependent
READ TABLE idd03p INTO xdd03p WITH KEY fieldname = 'MANDT'.
IF sy-subrc = 0.
l_client_dependent = abap_true.
ENDIF.
* Only allow tables in customer namespace
CLEAR xtadir.
SELECT SINGLE * FROM tadir INTO xtadir
WHERE pgmid = 'R3TR'
AND object = 'TABL'
AND obj_name = xdd02v-tabname.
CALL FUNCTION 'TRINT_OBJECT_NAMESPACE_INFO'
EXPORTING
iv_pgmid = xtadir-pgmid
iv_object = xtadir-object
iv_objname = xtadir-obj_name
IMPORTING
ev_nameclass = l_nameclass
EXCEPTIONS
namespace_not_existing = 1
namespace_use_rejected = 2
invalid_object = 3
OTHERS = 4.
IF l_nameclass <> `C`.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING textid = zcx_saplink=>error_message
msg = 'Table is not within customer namespace'.
ENDIF.
* Create dynamic internal table and work area
CREATE DATA dref_tab TYPE TABLE OF (xdd02v-tabname).
ASSIGN dref_tab->* TO <dyn_tab>.
CREATE DATA dref_wa LIKE LINE OF <dyn_tab>.
ASSIGN dref_wa->* TO <dyn_wa>.
* Build dynamic internal table from XML
FREE: datarow_filter, datarow_iterator, datarow_node.
datarow_filter = xmldoc->create_filter_name( `DataRow` ).
datarow_iterator = xmldoc->create_iterator_filtered( datarow_filter ).
datarow_node ?= datarow_iterator->get_next( ).
WHILE datarow_node IS NOT INITIAL.
APPEND INITIAL LINE TO <dyn_tab> ASSIGNING <dyn_wa>.
me->getstructurefromattributes(
EXPORTING node = datarow_node
CHANGING structure = <dyn_wa> ).
datarow_node ?= datarow_iterator->get_next( ).
ENDWHILE.
* Any records imported from XML, if not, give error.
IF LINES( <dyn_tab> ) = 0.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING textid = zcx_saplink=>error_message
msg = `No data records present in XML document`.
ENDIF.
* Change MANDT field to current client number
* Always add imported records to current client number
IF l_client_dependent = abap_true.
LOOP AT <dyn_tab> ASSIGNING <dyn_wa>.
ASSIGN COMPONENT `MANDT` OF STRUCTURE <dyn_wa> TO <fs_mandt>.
<fs_mandt> = sy-mandt.
ENDLOOP.
ENDIF.
* Check that db table is initial, if so, then insert data and exit
DATA: l_count TYPE i.
CASE l_client_dependent .
WHEN abap_true.
SELECT COUNT( * ) INTO l_count
FROM (xdd02v-tabname) CLIENT SPECIFIED
WHERE mandt = sy-mandt.
WHEN abap_false.
SELECT COUNT( * ) INTO l_count
FROM (xdd02v-tabname).
ENDCASE.
IF l_count = 0.
INSERT (xdd02v-tabname) FROM TABLE <dyn_tab>.
name = objname.
RETURN.
ENDIF.
* Still here, then ask user how he wants to handle the existing
* data, either modify it, of delete/insert
DATA: text_question TYPE string.
text_question = `Table contains data which may be modified, ` &
`would you like to modify existing records, ` &
`or delete existing data first and insert`.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
text_question = text_question
text_button_1 = 'Modify Data' " UPdate table via MODIFY
icon_button_1 = 'ICON_CHANGE'
text_button_2 = 'Del/Ins Data' " Delete data first, then INSERT
icon_button_2 = 'ICON_DELETE'
IMPORTING
answer = l_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
* Check answer
CASE l_answer .
WHEN '1'. "Modify existing rows, insert new rows based on key
MODIFY (xdd02v-tabname) FROM TABLE <dyn_tab>.
WHEN '2'. "Delete existing data first, then insert new data
CASE l_client_dependent .
WHEN abap_true.
DELETE FROM (xdd02v-tabname) WHERE mandt = sy-mandt.
WHEN abap_false.
DELETE FROM (xdd02v-tabname).
ENDCASE.
INSERT (xdd02v-tabname) FROM TABLE <dyn_tab>.
WHEN 'A'. "Action has been cancelled
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING textid = zcx_saplink=>error_message
msg = `Action Cancelled`.
ENDCASE.
name = objname.
ENDMETHOD.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| SAPlink is free software; you can redistribute it and/or modify |
*| it under the terms of the GNU General Public License as published |
*| by the Free Software Foundation; either version 2 of the License, |
*| or (at your option) any later version. |
*| |
*| SAPlink is distributed in the hope that it will be useful, |
*| but WITHOUT ANY WARRANTY; without even the implied warranty of |
*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
*| GNU General Public License for more details. |
*| |
*| You should have received a copy of the GNU General Public License |
*| along with SAPlink; if not, write to the |
*| Free Software Foundation, Inc., |
*| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
*\---------------------------------------------------------------------/
method DELETEOBJECT.
* Plugin created by:
* Rich Heilman
* [email protected]
* No implementation
endmethod.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| SAPlink is free software; you can redistribute it and/or modify |
*| it under the terms of the GNU General Public License as published |
*| by the Free Software Foundation; either version 2 of the License, |
*| or (at your option) any later version. |
*| |
*| SAPlink is distributed in the hope that it will be useful, |
*| but WITHOUT ANY WARRANTY; without even the implied warranty of |
*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
*| GNU General Public License for more details. |
*| |
*| You should have received a copy of the GNU General Public License |
*| along with SAPlink; if not, write to the |
*| Free Software Foundation, Inc., |
*| 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
*\---------------------------------------------------------------------/
method GETOBJECTTYPE.
* Plugin created by:
* Rich Heilman
* [email protected]
objecttype = 'TABU'. "Table Contents
endmethod.
endclass. "ZSAPLINK_TABLE_CONTENTS implementation | [
4871,
1168,
50,
2969,
43,
17248,
62,
38148,
62,
37815,
15365,
6770,
201,
198,
220,
1171,
201,
198,
220,
10639,
1780,
422,
1168,
50,
2969,
43,
17248,
201,
198,
220,
2457,
201,
198,
220,
2251,
1171,
764,
201,
198,
201,
198,
11377,
2665,
13,
201,
198,
201,
198,
220,
5050,
5870,
25171,
6369,
1797,
4694,
201,
198,
220,
220,
220,
34087,
17750,
764,
201,
198,
220,
5050,
29244,
6158,
10426,
5805,
38715,
10913,
2662,
9864,
23680,
201,
198,
220,
220,
220,
34087,
17750,
764,
201,
198,
220,
5050,
29244,
1404,
4720,
33,
23680,
10913,
2662,
10426,
5805,
38715,
201,
198,
220,
220,
220,
34087,
17750,
764,
201,
198,
24326,
2665,
13,
201,
198,
201,
198,
220,
5050,
5550,
28882,
4720,
33,
23680,
201,
198,
220,
220,
220,
34087,
17750,
764,
201,
198,
220,
5050,
17151,
9864,
23680,
25216,
201,
198,
220,
220,
220,
34087,
17750,
764,
201,
198,
19734,
2665,
13,
201,
198,
437,
4871,
13,
366,
57,
50,
2969,
43,
17248,
62,
38148,
62,
37815,
15365,
6770,
201,
198,
201,
198,
201,
198,
201,
198,
9,
10097,
23031,
9,
201,
198,
9,
220,
220,
220,
220,
220,
220,
1398,
1168,
50,
2969,
43,
17248,
62,
38148,
62,
37815,
15365,
7822,
13,
201,
198,
9,
10097,
23031,
9,
201,
198,
9,
201,
198,
9,
10097,
23031,
9,
201,
198,
4871,
1168,
50,
2969,
43,
17248,
62,
38148,
62,
37815,
15365,
7822,
13,
201,
198,
201,
198,
201,
198,
16208,
10097,
30934,
59,
201,
198,
9,
91,
220,
220,
770,
2393,
318,
636,
286,
48323,
8726,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
48323,
8726,
318,
1479,
3788,
26,
345,
460,
17678,
4163,
340,
290,
14,
273,
13096,
220,
220,
930,
201,
198,
9,
91,
220,
220,
340,
739,
262,
2846,
286,
262,
22961,
3611,
5094,
13789,
355,
3199,
930,
201,
198,
9,
91,
220,
220,
416,
262,
3232,
10442,
5693,
26,
2035,
2196,
362,
286,
262,
13789,
11,
930,
201,
198,
9,
91,
220,
220,
393,
357,
265,
534,
3038,
8,
597,
1568,
2196,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
48323,
8726,
318,
9387,
287,
262,
2911,
326,
340,
481,
307,
4465,
11,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
475,
42881,
15529,
34764,
56,
26,
1231,
772,
262,
17142,
18215,
286,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
34482,
3398,
1565,
5603,
25382,
393,
376,
46144,
7473,
317,
16652,
2149,
37232,
33079,
48933,
13,
220,
4091,
262,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
22961,
3611,
5094,
13789,
329,
517,
3307,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
921,
815,
423,
2722,
257,
4866,
286,
262,
22961,
3611,
5094,
13789,
930,
201,
198,
9,
91,
220,
220,
1863,
351,
48323,
8726,
26,
611,
407,
11,
3551,
284,
262,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
3232,
10442,
5693,
11,
3457,
1539,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
6885,
14021,
520,
11,
19383,
22343,
11,
6182,
11,
8779,
220,
657,
2481,
940,
12,
1485,
486,
220,
4916,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
59,
10097,
30934,
14,
201,
198,
49273,
1125,
66,
365,
87,
1023,
13,
201,
198,
201,
198,
9,
220,
220,
220,
220,
220,
42636,
2727,
416,
25,
201,
198,
9,
220,
220,
220,
220,
220,
3998,
679,
346,
805,
201,
198,
9,
220,
220,
220,
220,
220,
5527,
13,
258,
346,
805,
13,
73,
81,
31,
14816,
13,
785,
201,
198,
201,
198,
9,
1400,
7822,
201,
198,
201,
198,
10619,
49273,
13,
201,
198,
201,
198,
201,
198,
16208,
10097,
30934,
59,
201,
198,
9,
91,
220,
220,
770,
2393,
318,
636,
286,
48323,
8726,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
201,
198,
9,
91,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class ZCL_ZCONTROLE_REQUEST_MPC_EXT definition
public
inheriting from ZCL_ZCONTROLE_REQUEST_MPC
create public .
public section.
protected section.
private section.
ENDCLASS.
CLASS ZCL_ZCONTROLE_REQUEST_MPC_EXT IMPLEMENTATION.
ENDCLASS.
| [
4871,
1168,
5097,
62,
57,
10943,
5446,
46,
2538,
62,
2200,
35780,
62,
44,
5662,
62,
13918,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
5097,
62,
57,
10943,
5446,
46,
2538,
62,
2200,
35780,
62,
44,
5662,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
57,
10943,
5446,
46,
2538,
62,
2200,
35780,
62,
44,
5662,
62,
13918,
30023,
2538,
10979,
6234,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_syntax_abap DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_syntax_highlighter
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS class_constructor.
METHODS constructor.
CONSTANTS:
BEGIN OF c_css,
keyword TYPE string VALUE 'keyword',
text TYPE string VALUE 'text',
comment TYPE string VALUE 'comment',
END OF c_css,
BEGIN OF c_token,
keyword TYPE c VALUE 'K',
text TYPE c VALUE 'T',
comment TYPE c VALUE 'C',
END OF c_token,
BEGIN OF c_regex,
comment TYPE string VALUE '##|"|^\*',
text TYPE string VALUE '`|''|\||\{|\}',
keyword TYPE string VALUE '&&|\b[-_a-z0-9]+\b',
END OF c_regex.
PROTECTED SECTION.
CLASS-DATA gt_keywords TYPE HASHED TABLE OF string WITH UNIQUE KEY table_line.
CLASS-METHODS init_keywords.
CLASS-METHODS is_keyword
IMPORTING iv_chunk TYPE string
RETURNING VALUE(rv_yes) TYPE abap_bool.
METHODS order_matches REDEFINITION.
METHODS parse_line REDEFINITION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ABAPGIT_SYNTAX_ABAP IMPLEMENTATION.
METHOD class_constructor.
init_keywords( ).
ENDMETHOD.
METHOD constructor.
super->constructor( ).
" Initialize instances of regular expression
add_rule( iv_regex = c_regex-keyword
iv_token = c_token-keyword
iv_style = c_css-keyword ).
add_rule( iv_regex = c_regex-comment
iv_token = c_token-comment
iv_style = c_css-comment ).
add_rule( iv_regex = c_regex-text
iv_token = c_token-text
iv_style = c_css-text ).
ENDMETHOD.
METHOD init_keywords.
DATA: lv_keywords TYPE string,
lt_keywords TYPE STANDARD TABLE OF string.
lv_keywords =
'&&|?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING' &&
'|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS' &&
'|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE' &&
'|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT' &&
'|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY' &&
'|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN' &&
'|BETWEEN|BIG|BINARY|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK' &&
'|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT' &&
'|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS' &&
'|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED' &&
'|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHARACTER|CHARLEN' &&
'|CHAR-TO-HEX|CHECK|CHECKBOX|CI_|CIRCULAR|CLASS|CLASS-CODING|CLASS-DATA' &&
'|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE' &&
'|CN|CO|COALESCE|CODE|CODING|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY' &&
'|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COLLECT|COLOR|COLUMN|COLUMNS' &&
'|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS' &&
'|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT' &&
'|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION' &&
'|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE' &&
'|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION' &&
'|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE' &&
'|DAYLIGHT|DBMAXLEN|DD/MM/YY|DD/MM/YYYY|DDMMYY|DEALLOCATE|DECIMAL_SHIFT|DECIMALS' &&
'|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING' &&
'|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY' &&
'|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING' &&
'|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO' &&
'|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|ENDAT|ENDCASE' &&
'|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|END-ENHANCEMENT-SECTION' &&
'|ENDEXEC|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE' &&
'|END-LINES|ENDLOOP|ENDMETHOD|ENDMODULE|END-OF-DEFINITION|END-OF-FILE' &&
'|END-OF-PAGE|END-OF-SELECTION|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE' &&
'|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENTS|ENHANCEMENT-SECTION' &&
'|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING' &&
'|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTIONS|EXCEPTION-TABLE|EXCLUDE|EXCLUDING' &&
'|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT' &&
'|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD' &&
'|FIELD-GROUPS|FIELDS|FIELD-SYMBOL|FIELD-SYMBOLS|FILE|FILTER|FILTERS|FILTER-TABLE' &&
'|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM' &&
'|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTIONALITY' &&
'|FUNCTION-POOL|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT' &&
'|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEADER|HEADERS' &&
'|HEADING|HEAD-LINES|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID' &&
'|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION' &&
'|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE' &&
'|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL' &&
'|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE' &&
'|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS' &&
'|ISO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND' &&
'|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS' &&
'|LEFTSPACE|LEGACY|LENGTH|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINEFEED' &&
'|LINES|LINE-SELECTION|LINE-SIZE|LIST|LISTBOX|LIST-PROCESSING|LITTLE|LLANG' &&
'|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG10|LOGFILE|LOGICAL' &&
'|LOG-POINT|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN' &&
'|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE' &&
'|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM/DD/YY' &&
'|MM/DD/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING' &&
'|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING' &&
'|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NODE|NODES|NO-DISPLAY' &&
'|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NON-UNICODE|NON-UNIQUE' &&
'|NO-SCROLLING|NO-SIGN|NOT|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NP|NS|NULL|NUMBER' &&
'|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF' &&
'|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT' &&
'|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE' &&
'|PAGES|PARAMETER|PARAMETERS|PARAMETER-TABLE|PART|PARTIALLY|PATTERN|PERCENTAGE' &&
'|PERFORM|PERFORMING|PERSON|PF1|PF2|PF3|PF4|PF5|PF6|PF7|PF8|PF9|PF10|PF11|PF12' &&
'|PF13|PF14|PF15|PF-STATUS|PINK|PLACES|POOL|POS_HIGH|POS_LOW' &&
'|POSITION|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL' &&
'|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC' &&
'|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES' &&
'|RAW|READ|READER|READ-ONLY|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION' &&
'|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE' &&
'|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION' &&
'|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE' &&
'|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE' &&
'|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RUN|SAP' &&
'|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC' &&
'|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH' &&
'|SECONDARY|SECONDS|SECTION|SELECT|SELECTION|SELECTIONS|SELECTION-SCREEN|SELECTION-SET' &&
'|SELECTION-SETS|SELECTION-TABLE|SELECT-OPTIONS|SEND|SEPARATE|SEPARATED|SET' &&
'|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE' &&
'|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL' &&
'|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|STARTING|START-OF-SELECTION|STATE' &&
'|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE' &&
'|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT' &&
'|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH' &&
'|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE' &&
'|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP' &&
'|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP' &&
'|TIMEZONE|TITLE|TITLEBAR|TITLE-LINES|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE' &&
'|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE' &&
'|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES' &&
'|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL' &&
'|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES' &&
'|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER' &&
'|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITHOUT|WITH-TITLE|WORD|WORK' &&
'|WRITE|WRITER|X|XML|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE' &&
'|BINTOHEX|CHAR|CLNT|CONCAT_WITH_SPACE|CURR|DATS|DATS_ADD_DAYS|DATS_ADD_MONTHS' &&
'|DATS_DAYS_BETWEEN|DATS_IS_VALID|DEC|END-OF-EDITING|END-TEST-INJECTION|END-TEST-SEAM' &&
'|ENDWITH|ENUM|HEXTOBIN|INSTANCE|INSTR|LANG|LTRIM|NUMC|PUSH' &&
'|QUAN|RETURNS|RPAD|RTRIM|SSTRING|START-OF-EDITING|TEST-INJECTION|TEST-SEAM|TIMS' &&
'|TIMS_IS_VALID|TSTMP_ADD_SECONDS|TSTMP_CURRENT_UTCTIMESTAMP|TSTMP_IS_VALID' &&
'|TSTMP_SECONDS_BETWEEN|B|D|DECFLOAT16|DECFLOAT34|F|INT8|N|P|S|STRING|T|UTCLONG|XSTRING' &&
'|ABAP_BOOL|ACCP|CUKY|DF16_DEC|DF16_RAW|DF34_DEC|DF34_RAW|FLTP' &&
'|INT1|INT2|INT4|LCHR|LRAW|RAWSTRING|DF16_SCL|DF34_SCL' &&
'|PREC|VARC|CLIKE|CSEQUENCE|DECFLOAT|NUMERIC|XSEQUENCE|ME|SYST|SY' &&
'|BIT-SET|BOOLC|BOOLX|CHAR_OFF|CMAX|CMIN|CONCAT_LINES_OF|CONTAINS|CONTAINS_ANY_NOT_OF' &&
'|CONTAINS_ANY_OF|COUNT_ANY_NOT_OF|COUNT_ANY_OF|FIND_ANY_NOT_OF|FIND_ANY_OF|FIND_END' &&
'|FROM_MIXED|IPOW|LINE_EXISTS|LINE_INDEX|MATCHES|NMAX|NMIN|REPEAT|RESCALE|REVERSE' &&
'|SEGMENT|SHIFT_LEFT|SHIFT_RIGHT|SUBSTRING_AFTER|SUBSTRING_BEFORE|SUBSTRING_FROM|SUBSTRING_TO' &&
'|TO_LOWER|TO_MIXED|TO_UPPER|UTCLONG_ADD|UTCLONG_CURRENT|UTCLONG_DIFF|XSDBOOL'.
SPLIT lv_keywords AT '|' INTO TABLE lt_keywords.
" remove duplicates to avoid dumps when converting to a hash table
SORT lt_keywords BY table_line ASCENDING.
DELETE ADJACENT DUPLICATES FROM lt_keywords.
gt_keywords = lt_keywords. " Hash table
ENDMETHOD.
METHOD is_keyword.
DATA lv_str TYPE string.
lv_str = to_upper( iv_chunk ).
READ TABLE gt_keywords WITH KEY table_line = lv_str TRANSPORTING NO FIELDS.
rv_yes = xsdbool( sy-subrc = 0 ).
ENDMETHOD.
METHOD order_matches.
DATA:
lv_index TYPE sy-tabix,
lv_line_len TYPE i,
lv_prev_token TYPE c.
FIELD-SYMBOLS:
<ls_prev> TYPE ty_match,
<ls_match> TYPE ty_match.
SORT ct_matches BY offset.
lv_line_len = strlen( iv_line ).
LOOP AT ct_matches ASSIGNING <ls_match>.
lv_index = sy-tabix.
" Delete matches after open text match
IF lv_prev_token = c_token-text AND <ls_match>-token <> c_token-text.
DELETE ct_matches INDEX lv_index.
CONTINUE.
ENDIF.
CASE <ls_match>-token.
WHEN c_token-keyword.
IF <ls_match>-offset > 0
AND substring( val = iv_line
off = ( <ls_match>-offset - 1 )
len = 1 ) CA '-<'.
" Delete match if keyword is part of structure or field symbol
DELETE ct_matches INDEX lv_index.
CONTINUE.
ENDIF.
WHEN c_token-comment.
<ls_match>-length = lv_line_len - <ls_match>-offset.
DELETE ct_matches FROM lv_index + 1.
CONTINUE.
WHEN c_token-text.
<ls_match>-text_tag = substring( val = iv_line
off = <ls_match>-offset
len = <ls_match>-length ).
IF lv_prev_token = c_token-text.
IF <ls_match>-text_tag = <ls_prev>-text_tag.
<ls_prev>-length = <ls_match>-offset + <ls_match>-length - <ls_prev>-offset.
CLEAR lv_prev_token.
ELSEIF <ls_prev>-text_tag = '}' AND <ls_match>-text_tag = '{'.
<ls_prev>-length = <ls_match>-offset - <ls_prev>-offset - 1. " Shift } out of scope
<ls_prev>-offset = <ls_prev>-offset + 1. " Shift { out of scope
CLEAR lv_prev_token.
ELSEIF <ls_match>-text_tag = '{'.
<ls_prev>-length = <ls_match>-offset - <ls_prev>-offset.
CLEAR lv_prev_token.
ELSEIF <ls_prev>-text_tag = '}'.
<ls_prev>-length = <ls_match>-offset - <ls_prev>-offset.
<ls_prev>-offset = <ls_prev>-offset + 1. " Shift } out of scope
CLEAR lv_prev_token.
ENDIF.
DELETE ct_matches INDEX lv_index.
CONTINUE.
ENDIF.
ENDCASE.
lv_prev_token = <ls_match>-token.
ASSIGN <ls_match> TO <ls_prev>.
ENDLOOP.
ENDMETHOD.
METHOD parse_line. "REDEFINITION
DATA lv_index TYPE i.
FIELD-SYMBOLS <ls_match> LIKE LINE OF rt_matches.
rt_matches = super->parse_line( iv_line ).
" Remove non-keywords
LOOP AT rt_matches ASSIGNING <ls_match> WHERE token = c_token-keyword.
lv_index = sy-tabix.
IF abap_false = is_keyword( substring( val = iv_line
off = <ls_match>-offset
len = <ls_match>-length ) ).
DELETE rt_matches INDEX lv_index.
ENDIF.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
397,
499,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
8929,
75,
4799,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
1398,
62,
41571,
273,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
25471,
11,
198,
220,
220,
220,
220,
220,
220,
220,
21179,
41876,
4731,
26173,
8924,
705,
2539,
4775,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
5239,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2912,
41876,
4731,
26173,
8924,
705,
23893,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
25471,
11,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
30001,
11,
198,
220,
220,
220,
220,
220,
220,
220,
21179,
41876,
269,
26173,
8924,
705,
42,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
41876,
269,
26173,
8924,
705,
51,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2912,
41876,
269,
26173,
8924,
705,
34,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
30001,
11,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
260,
25636,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2912,
41876,
4731,
26173,
8924,
705,
2235,
91,
1,
91,
61,
59,
9,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
63,
91,
7061,
91,
59,
15886,
59,
90,
91,
59,
92,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
21179,
41876,
4731,
26173,
8924,
705,
25226,
91,
59,
65,
58,
12,
62,
64,
12,
89,
15,
12,
24,
48688,
59,
65,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
260,
25636,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
42715,
12,
26947,
308,
83,
62,
2539,
10879,
41876,
367,
11211,
1961,
43679,
3963,
4731,
13315,
4725,
33866,
8924,
35374,
3084,
62,
1370,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
2315,
62,
2539,
10879,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
318,
62,
2539,
4775,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
354,
2954,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
8505,
8,
41876,
450,
499,
62,
30388,
13,
628,
220,
220,
220,
337,
36252,
50,
1502,
62,
6759,
2052,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
1370,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
23060,
45,
5603,
55,
62,
6242,
2969,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1398,
62,
41571,
273,
13,
628,
220,
220,
220,
2315,
62,
2539,
10879,
7,
6739,
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,
366,
20768,
1096,
10245,
286,
3218,
5408,
198,
220,
220,
220,
751,
62,
25135,
7,
21628,
62,
260,
25636,
796,
269,
62,
260,
25636,
12,
2539,
4775,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
30001,
796,
269,
62,
30001,
12,
2539,
4775,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7635,
796,
269,
62,
25471,
12,
2539,
4775,
6739,
628,
220,
220,
220,
751,
62,
25135,
7,
21628,
62,
260,
25636,
796,
269,
62,
260,
25636,
12,
23893,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
30001,
796,
269,
62,
30001,
12,
23893,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7635,
796,
269,
62,
25471,
12,
23893,
6739,
628,
220,
220,
220,
751,
62,
25135,
7,
21628,
62,
260,
25636,
796,
269,
62,
260,
25636,
12,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
30001,
796,
269,
62,
30001,
12,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7635,
796,
269,
62,
25471,
12,
5239,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2315,
62,
2539,
10879,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
2539,
10879,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
2539,
10879,
41876,
49053,
9795,
43679,
3963,
4731,
13,
628,
220,
220,
220,
300,
85,
62,
2539,
10879,
796,
198,
220,
220,
220,
220,
705,
25226,
91,
30,
10468,
91,
6242,
2969,
12,
47690,
91,
6242,
40438,
12861,
11617,
91,
32,
4462,
91,
6242,
18601,
10659,
91,
2246,
42006,
91,
2246,
42006,
2751,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
91,
26861,
12532,
2751,
91,
2246,
2640,
91,
10659,
3824,
6234,
91,
10659,
25620,
91,
29266,
91,
29266,
12,
44879,
19535,
47,
18672,
2751,
91,
2885,
41,
2246,
3525,
91,
8579,
5781,
91,
1847,
43429,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
91,
1847,
43429,
1546,
91,
1847,
16284,
91,
7036,
91,
7036,
4503,
6158,
91,
1847,
47,
7801,
91,
1565,
1847,
16309,
1797,
91,
1565,
1847,
56,
57,
1137,
91,
6981,
91,
31827,
91,
24805,
10619,
91,
24805,
10619,
11879,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
91,
24805,
10619,
2751,
91,
2969,
31484,
6234,
91,
31315,
9306,
91,
12203,
32,
91,
1503,
10554,
47123,
2149,
91,
1921,
91,
42643,
10619,
2751,
91,
1921,
1268,
91,
1921,
47,
9782,
91,
10705,
17395,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
91,
10705,
16284,
91,
10705,
16284,
1961,
91,
10705,
3528,
15871,
91,
10705,
4503,
40,
6234,
91,
26483
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*&---------------------------------------------------------------------*
*& Include ZHRO_ADP_WFN_CA_S01
*&---------------------------------------------------------------------*
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_cp TYPE c RADIOBUTTON GROUP rb2 USER-COMMAND uc2 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 3(30) text-012.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_op TYPE c RADIOBUTTON GROUP rb2.
SELECTION-SCREEN COMMENT 3(30) text-013.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 10(12) text-014 FOR FIELD p_abkrs.
PARAMETERS: p_abkrs LIKE p0001-abkrs MATCHCODE OBJECT zh_t549a_ca.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 10(12) text-015 FOR FIELD p_pabrp.
PARAMETERS: p_pabrp TYPE c LENGTH 2.
PARAMETERS: p_pabrj TYPE c LENGTH 4.
SELECTION-SCREEN POSITION 34.
PARAMETERS: p_period TYPE c LENGTH 23.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_pc TYPE c RADIOBUTTON GROUP rb1 USER-COMMAND uc1.
SELECTION-SCREEN COMMENT 3(17) text-004.
PARAMETERS: p_pfile TYPE c LENGTH 255 VISIBLE LENGTH 80.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_srv TYPE c RADIOBUTTON GROUP rb1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 3(17) text-005.
PARAMETERS: p_sfile TYPE c LENGTH 255 VISIBLE LENGTH 80 LOWER CASE. "DEFAULT '\\SCB2FS\SAPDR1\\HCM\TemSeFile.txt'.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-010.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(19) text-011 FOR FIELD p_backup.
PARAMETERS: p_backup TYPE c LENGTH 255 VISIBLE LENGTH 80 MODIF ID bop LOWER CASE.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b4.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pfile.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
CHANGING
filename = gv_filename
path = gv_path
fullpath = gv_fullpath
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF gv_fullpath IS NOT INITIAL.
gs_dynpfields-fieldname = 'P_PFILE'.
gs_dynpfields-fieldvalue = gv_fullpath.
APPEND gs_dynpfields TO gt_dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = gt_dynpfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
p_pfile = gv_fullpath.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name EQ 'P_PERIOD'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
IF p_pc EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_SFILE'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-name EQ 'P_PFILE'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
IF screen-group1 EQ 'BOP'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF p_srv EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_PFILE'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-name EQ 'P_SFILE'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
IF screen-group1 EQ 'BOP'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF p_cp EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_ABKRS' OR
screen-name EQ 'P_PABRP' OR
screen-name EQ 'P_PABRJ'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF p_op EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_ABKRS' OR
screen-name EQ 'P_PABRP' OR
screen-name EQ 'P_PABRJ'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF sy-slset EQ 'CUS&DEFAULT'.
CONCATENATE gc_ca_path gc_filename INTO p_sfile.
CONCATENATE gc_ca_path gc_archive '\' gc_filename INTO p_backup.
CONCATENATE p_sfile '.' gc_ext INTO p_sfile.
CONCATENATE p_backup '_' sy-datum '.' gc_ext INTO p_backup.
ENDIF.
LOOP AT SCREEN.
CASE screen-name.
WHEN 'PNPTIMR1' OR
'PNPTIMR2' OR
'PNPTIMR3' OR
'PNPTIMR4' OR
'PNPTIMR5' OR
'PNPTIMR6' OR
'PNPBEGDA' OR
'PNPENDDA' OR
'PNPTBEG' OR
'%FBIS112_1000' OR
'PNPBLCKT'.
screen-active = '0'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
pnptimr6 = 'X'.
AT SELECTION-SCREEN ON p_pfile.
IF sy-ucomm NE 'UC1' AND sy-ucomm NE 'UC2'.
IF p_pc EQ 'X' AND p_pfile IS INITIAL.
MESSAGE e016(rp) WITH 'Please provide a full PC path and filename.'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN ON p_sfile.
IF sy-ucomm NE 'UC1' AND sy-ucomm NE 'UC2'.
IF p_srv EQ 'X' AND p_sfile IS INITIAL.
MESSAGE e016(rp) WITH 'Please provide a full server path and filename.'.
ENDIF.
ENDIF.
AT SELECTION-SCREEN.
IF p_pc EQ 'X'.
p_sfile = gv_sfile.
ELSE.
CLEAR p_pfile.
ENDIF.
IF p_op EQ 'X'.
IF p_abkrs IS NOT INITIAL.
pnpabkrs-sign = 'I'.
pnpabkrs-option = 'EQ'.
pnpabkrs-low = p_abkrs.
APPEND pnpabkrs.
ENDIF.
ENDIF.
IF p_op EQ 'X'.
LOOP AT SCREEN.
IF screen-name EQ 'P_ABKRS' OR
screen-name EQ 'P_PABRP' OR
screen-name EQ 'P_PABRJ'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
IF p_abkrs IS INITIAL.
MESSAGE e016(rp) WITH 'Enter a payroll area'.
ENDIF.
IF p_pabrp IS INITIAL.
MESSAGE e016(rp) WITH 'Enter a payroll period'.
ENDIF.
IF p_pabrj IS INITIAL.
MESSAGE e016(rp) WITH 'Enter a payroll year'.
ENDIF.
CLEAR: gv_frper, gv_frbeg, gv_frend.
CONCATENATE p_pabrj p_pabrp INTO gv_frper.
SELECT * FROM t549a WHERE
abkrs EQ p_abkrs.
SELECT * FROM t549q WHERE
permo EQ t549a-permo AND
pabrj EQ p_pabrj AND
pabrp EQ p_pabrp.
MOVE t549q-begda TO gv_frbeg.
MOVE t549q-endda TO gv_frend.
CONCATENATE gv_frbeg+4(2) '/' gv_frbeg+6(2) '/' gv_frbeg(4) ' - ' gv_frend+4(2) '/' gv_frend+6(2) '/' gv_frend(4)
INTO p_period RESPECTING BLANKS.
ENDSELECT.
IF sy-subrc NE 0.
MESSAGE e016(rp) WITH 'Period cannot be found'.
ENDIF.
ENDSELECT.
ENDIF. | [
9,
5,
10097,
30934,
9,
201,
198,
9,
5,
220,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
39,
13252,
62,
2885,
47,
62,
54,
43221,
62,
8141,
62,
50,
486,
201,
198,
9,
5,
10097,
30934,
9,
201,
198,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
275,
16,
13315,
8782,
10067,
37977,
2538,
2420,
12,
8298,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
13155,
41876,
269,
33540,
9399,
47526,
11357,
44441,
374,
65,
17,
1294,
1137,
12,
9858,
44,
6981,
334,
66,
17,
5550,
38865,
705,
55,
4458,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
513,
7,
1270,
8,
2420,
12,
30206,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
404,
41876,
269,
33540,
9399,
47526,
11357,
44441,
374,
65,
17,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
513,
7,
1270,
8,
2420,
12,
30273,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
838,
7,
1065,
8,
2420,
12,
28645,
7473,
18930,
24639,
279,
62,
397,
74,
3808,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
397,
74,
3808,
34178,
279,
18005,
12,
397,
74,
3808,
337,
11417,
34,
16820,
25334,
23680,
1976,
71,
62,
83,
44966,
64,
62,
6888,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
838,
7,
1065,
8,
2420,
12,
25150,
7473,
18930,
24639,
279,
62,
79,
397,
81,
79,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
79,
397,
81,
79,
41876,
269,
406,
49494,
362,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
79,
397,
81,
73,
41876,
269,
406,
49494,
604,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
28069,
17941,
4974,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
41007,
41876,
269,
406,
49494,
2242,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
9878,
11290,
275,
16,
13,
201,
198,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
275,
17,
13315,
8782,
10067,
37977,
2538,
2420,
12,
11245,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
14751,
41876,
269,
33540,
9399,
47526,
11357,
44441,
374,
65,
16,
1294,
1137,
12,
9858,
44,
6981,
334,
66,
16,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
513,
7,
1558,
8,
2420,
12,
22914,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
79,
7753,
41876,
269,
406,
49494,
14280,
50035,
34563,
406,
49494,
4019,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
27891,
85,
41876,
269,
33540,
9399,
47526,
11357,
44441,
374,
65,
16,
5550,
38865,
705,
55,
4458,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
513,
7,
1558,
8,
2420,
12,
22544,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
82,
7753,
41876,
269,
406,
49494,
14280,
50035,
34563,
406,
49494,
4019,
406,
36048,
42001,
13,
366,
7206,
38865,
705,
6852,
6173,
33,
17,
10652,
59,
50,
2969,
7707,
16,
6852,
16045,
44,
59,
12966,
4653,
8979,
13,
14116,
4458,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
9878,
11290,
275,
17,
13,
201,
198,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
275,
19,
13315,
8782,
10067,
37977,
2538,
2420,
12,
20943,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
352,
7,
1129,
8,
2420,
12,
28555,
7473,
18930,
24639,
279,
62,
1891,
929,
13,
201,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
1891,
929,
41876,
269,
406,
49494,
14280,
50035,
34563,
406,
49494,
4019,
19164,
5064,
4522,
275,
404,
406,
36048,
42001,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
201,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
9878,
11290,
275,
19,
13,
201,
198,
201,
198,
1404,
33493,
2849,
12,
6173,
2200,
1677,
6177,
26173,
8924,
12,
2200,
35780,
7473,
279,
62,
79,
7753,
13,
201,
198,
201,
198,
220,
42815,
337,
36252,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
7753,
62,
21928,
62,
38969,
519,
201,
198,
220,
220,
220,
5870,
15567,
2751,
201,
198,
220,
220,
220,
220,
220,
29472,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
308,
85,
62,
34345,
201,
198,
220,
220,
220,
220,
220,
3108,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
308,
85,
62,
6978,
201,
198,
220,
220,
220,
220,
220,
1336,
6978,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
308,
85,
62,
12853,
6978,
201,
198,
220,
220,
220,
7788,
42006,
11053,
201,
198,
220,
220,
220,
220,
220,
269,
429,
75,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
352,
201,
198,
220,
220,
220,
220,
220,
4049,
62,
3919,
62,
48317,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
201,
198,
220,
220,
220,
220,
220,
407,
62,
15999,
62,
1525,
62,
48317,
796,
513,
201,
198,
220,
220,
220,
220,
220,
440,
4221,
4877,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Include ZABAPGIT_MACROS
*&---------------------------------------------------------------------*
* Macros
DEFINE _object_check_timestamp.
IF sy-subrc = 0 AND &1 IS NOT INITIAL AND &2 IS NOT INITIAL.
cl_abap_tstmp=>systemtstmp_syst2utc(
EXPORTING syst_date = &1
syst_time = &2
IMPORTING utc_tstmp = lv_ts ).
IF lv_ts < iv_timestamp.
rv_changed = abap_false. " Unchanged
ELSE.
rv_changed = abap_true.
RETURN.
ENDIF.
ELSE. " Not found? => changed
rv_changed = abap_true.
RETURN.
ENDIF.
END-OF-DEFINITION.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
6242,
2969,
38,
2043,
62,
44721,
49,
2640,
198,
9,
5,
10097,
30934,
9,
198,
198,
9,
4100,
4951,
198,
198,
7206,
29940,
4808,
15252,
62,
9122,
62,
16514,
27823,
13,
198,
220,
16876,
827,
12,
7266,
6015,
796,
657,
5357,
1222,
16,
3180,
5626,
3268,
2043,
12576,
5357,
1222,
17,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
537,
62,
397,
499,
62,
83,
301,
3149,
14804,
10057,
83,
301,
3149,
62,
1837,
301,
17,
315,
66,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
827,
301,
62,
4475,
796,
1222,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
827,
301,
62,
2435,
796,
1222,
17,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
3384,
66,
62,
83,
301,
3149,
796,
300,
85,
62,
912,
6739,
198,
220,
220,
220,
16876,
300,
85,
62,
912,
1279,
21628,
62,
16514,
27823,
13,
198,
220,
220,
220,
220,
220,
374,
85,
62,
40985,
796,
450,
499,
62,
9562,
13,
366,
34867,
5102,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
374,
85,
62,
40985,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
17852,
5188,
13,
366,
1892,
1043,
30,
5218,
3421,
198,
220,
220,
220,
374,
85,
62,
40985,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
30826,
27064,
13,
198,
220,
23578,
5064,
13,
198,
10619,
12,
19238,
12,
7206,
20032,
17941,
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
] |
class ZCL_EXCEL_COLUMNS definition
public
final
create public .
*"* public components of class ZCL_EXCEL_COLUMNS
*"* do not include other source files here!!!
public section.
methods ADD
importing
!IO_COLUMN type ref to ZCL_EXCEL_COLUMN .
methods CLEAR .
methods CONSTRUCTOR .
methods GET
importing
!IP_INDEX type I
returning
value(EO_COLUMN) type ref to ZCL_EXCEL_COLUMN .
methods GET_ITERATOR
returning
value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR .
methods IS_EMPTY
returning
value(IS_EMPTY) type FLAG .
methods REMOVE
importing
!IO_COLUMN type ref to ZCL_EXCEL_COLUMN .
methods SIZE
returning
value(EP_SIZE) type I .
*"* protected components of class ZABAP_EXCEL_WORKSHEETS
*"* do not include other source files here!!!
protected section.
*"* private components of class ZABAP_EXCEL_RANGES
*"* do not include other source files here!!!
private section.
data COLUMNS type ref to CL_OBJECT_COLLECTION .
ENDCLASS.
CLASS ZCL_EXCEL_COLUMNS IMPLEMENTATION.
METHOD add.
columns->add( io_column ).
ENDMETHOD.
METHOD clear.
columns->clear( ).
ENDMETHOD.
METHOD constructor.
CREATE OBJECT columns.
ENDMETHOD.
METHOD get.
eo_column ?= columns->if_object_collection~get( ip_index ).
ENDMETHOD.
METHOD get_iterator.
eo_iterator ?= columns->if_object_collection~get_iterator( ).
ENDMETHOD.
METHOD is_empty.
is_empty = columns->if_object_collection~is_empty( ).
ENDMETHOD.
METHOD remove.
columns->remove( io_column ).
ENDMETHOD.
METHOD size.
ep_size = columns->if_object_collection~size( ).
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
6369,
34,
3698,
62,
25154,
5883,
8035,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
9,
1,
9,
1171,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
25154,
5883,
8035,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
11377,
2665,
13,
628,
220,
5050,
27841,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
25154,
5883,
45,
2099,
1006,
284,
1168,
5097,
62,
6369,
34,
3698,
62,
25154,
5883,
45,
764,
198,
220,
5050,
30301,
1503,
764,
198,
220,
5050,
7102,
46126,
1581,
764,
198,
220,
5050,
17151,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
4061,
62,
12115,
6369,
2099,
314,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
4720,
62,
25154,
5883,
45,
8,
2099,
1006,
284,
1168,
5097,
62,
6369,
34,
3698,
62,
25154,
5883,
45,
764,
198,
220,
5050,
17151,
62,
2043,
1137,
25633,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
4720,
62,
2043,
1137,
25633,
8,
2099,
1006,
284,
7852,
62,
9864,
23680,
62,
25154,
16779,
2849,
62,
2043,
1137,
25633,
764,
198,
220,
5050,
3180,
62,
39494,
9936,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
1797,
62,
39494,
9936,
8,
2099,
9977,
4760,
764,
198,
220,
5050,
22657,
46,
6089,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
25154,
5883,
45,
2099,
1006,
284,
1168,
5097,
62,
6369,
34,
3698,
62,
25154,
5883,
45,
764,
198,
220,
5050,
311,
35400,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
8905,
62,
33489,
8,
2099,
314,
764,
198,
9,
1,
9,
6861,
6805,
286,
1398,
1168,
6242,
2969,
62,
6369,
34,
3698,
62,
33249,
9693,
36,
32716,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
24326,
2665,
13,
198,
9,
1,
9,
2839,
6805,
286,
1398,
1168,
6242,
2969,
62,
6369,
34,
3698,
62,
49,
15567,
1546,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
19734,
2665,
13,
628,
220,
1366,
20444,
5883,
8035,
2099,
1006,
284,
7852,
62,
9864,
23680,
62,
25154,
16779,
2849,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6369,
34,
3698,
62,
25154,
5883,
8035,
30023,
2538,
10979,
6234,
13,
628,
198,
49273,
751,
13,
198,
220,
15180,
3784,
2860,
7,
33245,
62,
28665,
6739,
198,
10619,
49273,
13,
628,
198,
49273,
1598,
13,
198,
220,
15180,
3784,
20063,
7,
6739,
198,
10619,
49273,
13,
628,
198,
49273,
23772,
13,
628,
220,
29244,
6158,
25334,
23680,
15180,
13,
198,
198,
10619,
49273,
13,
628,
198,
49273,
651,
13,
198,
220,
304,
78,
62,
28665,
5633,
28,
15180,
3784,
361,
62,
15252,
62,
43681,
93,
1136,
7,
20966,
62,
9630,
6739,
198,
10619,
49273,
13,
628,
198,
49273,
651,
62,
48727,
13,
198,
220,
304,
78,
62,
48727,
5633,
28,
15180,
3784,
361,
62,
15252,
62,
43681,
93,
1136,
62,
48727,
7,
6739,
198,
10619,
49273,
13,
628,
198,
49273,
318,
62,
28920,
13,
198,
220,
318,
62,
28920,
796,
15180,
3784,
361,
62,
15252,
62,
43681,
93,
271,
62,
28920,
7,
6739,
198,
10619,
49273,
13,
628,
198,
49273,
4781,
13,
198,
220,
15180,
3784,
28956,
7,
33245,
62,
28665,
6739,
198,
10619,
49273,
13,
628,
198,
49273,
2546,
13,
198,
220,
2462,
62,
7857,
796,
15180,
3784,
361,
62,
15252,
62,
43681,
93,
7857,
7,
6739,
198,
10619,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
interface ZIF_EXCEL_CONVERTER
public .
methods CAN_CONVERT_OBJECT
importing
!IO_OBJECT type ref to OBJECT
raising
ZCX_EXCEL .
methods CREATE_FIELDCATALOG
importing
!IS_OPTION type ZEXCEL_S_CONVERTER_OPTION
!IO_OBJECT type ref to OBJECT
!IT_TABLE type STANDARD TABLE
exporting
!ES_LAYOUT type ZEXCEL_S_CONVERTER_LAYO
!ET_FIELDCATALOG type ZEXCEL_T_CONVERTER_FCAT
!EO_TABLE type ref to DATA
!ET_COLORS type ZEXCEL_T_CONVERTER_COL
!ET_FILTER type ZEXCEL_T_CONVERTER_FIL
raising
ZCX_EXCEL .
endinterface.
| [
39994,
1168,
5064,
62,
6369,
34,
3698,
62,
10943,
5959,
5781,
198,
220,
1171,
764,
628,
198,
220,
5050,
15628,
62,
10943,
15858,
62,
9864,
23680,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
9864,
23680,
2099,
1006,
284,
25334,
23680,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1168,
34,
55,
62,
6369,
34,
3698,
764,
198,
220,
5050,
29244,
6158,
62,
11674,
3698,
9697,
1404,
1847,
7730,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
1797,
62,
3185,
24131,
2099,
1168,
6369,
34,
3698,
62,
50,
62,
10943,
5959,
5781,
62,
3185,
24131,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
9864,
23680,
2099,
1006,
284,
25334,
23680,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
38148,
2099,
49053,
9795,
43679,
198,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
5145,
1546,
62,
43,
4792,
12425,
2099,
1168,
6369,
34,
3698,
62,
50,
62,
10943,
5959,
5781,
62,
43,
4792,
46,
198,
220,
220,
220,
220,
220,
5145,
2767,
62,
11674,
3698,
9697,
1404,
1847,
7730,
2099,
1168,
6369,
34,
3698,
62,
51,
62,
10943,
5959,
5781,
62,
4851,
1404,
198,
220,
220,
220,
220,
220,
5145,
4720,
62,
38148,
2099,
1006,
284,
42865,
198,
220,
220,
220,
220,
220,
5145,
2767,
62,
25154,
20673,
2099,
1168,
6369,
34,
3698,
62,
51,
62,
10943,
5959,
5781,
62,
25154,
198,
220,
220,
220,
220,
220,
5145,
2767,
62,
46700,
5781,
2099,
1168,
6369,
34,
3698,
62,
51,
62,
10943,
5959,
5781,
62,
46700,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1168,
34,
55,
62,
6369,
34,
3698,
764,
198,
437,
39994,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_enho_intf DEFINITION PUBLIC.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING
is_item TYPE zif_abapgit_definitions=>ty_item
io_files TYPE REF TO zcl_abapgit_objects_files.
INTERFACES: zif_abapgit_object_enho.
PROTECTED SECTION.
PRIVATE SECTION.
DATA: ms_item TYPE zif_abapgit_definitions=>ty_item,
mo_files TYPE REF TO zcl_abapgit_objects_files.
ENDCLASS.
CLASS zcl_abapgit_object_enho_intf IMPLEMENTATION.
METHOD constructor.
ms_item = is_item.
mo_files = io_files.
ENDMETHOD.
METHOD zif_abapgit_object_enho~deserialize.
DATA: lo_enh_intf TYPE REF TO cl_enh_tool_intf,
li_tool TYPE REF TO if_enh_tool,
lv_shorttext TYPE string,
lv_class TYPE seoclsname,
lv_enhname TYPE enhname,
lv_package TYPE devclass,
lx_enh_root TYPE REF TO cx_enh_root.
ii_xml->read( EXPORTING iv_name = 'SHORTTEXT'
CHANGING cg_data = lv_shorttext ).
ii_xml->read( EXPORTING iv_name = 'CLASS'
CHANGING cg_data = lv_class ).
lv_enhname = ms_item-obj_name.
lv_package = iv_package.
TRY.
cl_enh_factory=>create_enhancement(
EXPORTING
enhname = lv_enhname
enhtype = ''
enhtooltype = cl_enh_tool_intf=>tooltype
IMPORTING
enhancement = li_tool
CHANGING
devclass = lv_package ).
lo_enh_intf ?= li_tool.
lo_enh_intf->if_enh_object_docu~set_shorttext( lv_shorttext ).
lo_enh_intf->set_class( lv_class ).
zcl_abapgit_object_enho_clif=>deserialize(
io_xml = ii_xml
io_clif = lo_enh_intf ).
lo_enh_intf->if_enh_object~save( run_dark = abap_true ).
lo_enh_intf->if_enh_object~unlock( ).
CATCH cx_enh_root INTO lx_enh_root.
zcx_abapgit_exception=>raise_with_text( lx_enh_root ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object_enho~serialize.
DATA: lo_enh_intf TYPE REF TO cl_enh_tool_intf,
lv_class TYPE seoclsname,
lv_shorttext TYPE string.
lo_enh_intf ?= ii_enh_tool.
lv_shorttext = lo_enh_intf->if_enh_object_docu~get_shorttext( ).
lo_enh_intf->get_class( IMPORTING class_name = lv_class ).
ii_xml->add( iv_name = 'TOOL'
ig_data = ii_enh_tool->get_tool( ) ).
ii_xml->add( ig_data = lv_shorttext
iv_name = 'SHORTTEXT' ).
ii_xml->add( iv_name = 'CLASS'
ig_data = lv_class ).
zcl_abapgit_object_enho_clif=>serialize(
io_xml = ii_xml
io_files = mo_files
io_clif = lo_enh_intf ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
268,
8873,
62,
600,
69,
5550,
20032,
17941,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
16624,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16624,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
1976,
361,
62,
397,
499,
18300,
62,
15252,
62,
268,
8873,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
13845,
62,
9186,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6941,
62,
16624,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16624,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
268,
8873,
62,
600,
69,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
13845,
62,
9186,
220,
796,
318,
62,
9186,
13,
198,
220,
220,
220,
6941,
62,
16624,
796,
33245,
62,
16624,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
62,
268,
8873,
93,
8906,
48499,
1096,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
16550,
62,
600,
69,
220,
41876,
4526,
37,
5390,
537,
62,
16550,
62,
25981,
62,
600,
69,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
25981,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
16550,
62,
25981,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
19509,
5239,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
4871,
220,
220,
220,
220,
41876,
384,
420,
7278,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
16550,
3672,
220,
220,
41876,
5881,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
26495,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
87,
62,
16550,
62,
15763,
220,
41876,
4526,
37,
5390,
43213,
62,
16550,
62,
15763,
13,
628,
220,
220,
220,
21065,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
9693,
9863,
32541,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
269,
70,
62,
7890,
220,
796,
300,
85,
62,
19509,
5239,
6739,
198,
220,
220,
220,
21065,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
31631,
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,
220,
796,
300,
85,
62,
4871,
6739,
628,
220,
220,
220,
300,
85,
62,
16550,
3672,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
220,
220,
300,
85,
62,
26495,
796,
21628,
62,
26495,
13,
198,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
16550,
62,
69,
9548,
14804,
17953,
62,
16550,
590,
434,
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,
5881,
3672,
220,
220,
220,
220,
796,
300,
85,
62,
16550,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5881,
4906,
220,
220,
220,
220,
796,
10148,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
551,
4352,
970,
4906,
796,
537,
62,
16550,
62,
25981,
62,
600,
69,
14804,
25981,
4906,
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,
28554,
796,
7649,
62,
25981,
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,
1614,
4871,
220,
220,
220,
796,
300,
85,
62,
26495,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
16550,
62,
600,
69,
5633,
28,
7649,
62,
25981,
13,
628,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
16550,
62,
600,
69,
3784,
361,
62,
16550,
62,
15252,
62,
15390,
84,
93,
2617,
62,
19509,
5239,
7,
300,
85,
62,
19509,
5239,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
16550,
62,
600,
69,
3784,
2617,
62,
4871,
7,
300,
85,
62,
4871,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
268,
8873,
62,
565,
361,
14804,
8906,
48499,
1096,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
19875,
220,
796,
21065,
62,
19875,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
565,
361,
796,
2376,
62,
16550,
62,
600,
69,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
16550,
62,
600,
69,
3784,
361,
62,
16550,
62,
15252,
93,
21928,
7,
1057,
62,
21953,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
16550,
62,
600,
69,
3784,
361,
62,
16550,
62,
15252,
93,
403,
5354,
7,
6739,
198,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
16550,
62,
15763,
39319,
300,
87,
62,
16550,
62,
15763,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
62,
4480,
62,
5239,
7,
300,
87,
62,
16550,
62,
15763,
6739,
198,
220,
220,
220,
23578,
40405
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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