content
stringlengths 4
1.04M
| input_ids
sequencelengths 2
1.02k
| attention_mask
sequencelengths 2
1.02k
|
---|---|---|
CLASS ycl_abapgit_persist_settings DEFINITION
PUBLIC
CREATE PRIVATE .
PUBLIC SECTION.
METHODS modify
IMPORTING
!io_settings TYPE REF TO ycl_abapgit_settings
RAISING
ycx_abapgit_exception .
METHODS read
RETURNING
VALUE(ro_settings) TYPE REF TO ycl_abapgit_settings .
CLASS-METHODS get_instance
RETURNING
VALUE(ro_settings) TYPE REF TO ycl_abapgit_persist_settings .
PRIVATE SECTION.
DATA mo_settings TYPE REF TO ycl_abapgit_settings .
CLASS-DATA go_persist TYPE REF TO ycl_abapgit_persist_settings .
ENDCLASS.
CLASS ycl_abapgit_persist_settings IMPLEMENTATION.
METHOD get_instance.
IF go_persist IS NOT BOUND.
CREATE OBJECT go_persist.
ENDIF.
ro_settings = go_persist.
ENDMETHOD.
METHOD modify.
DATA: lv_settings TYPE string,
ls_user_settings TYPE yif_abapgit_definitions=>ty_s_user_settings.
lv_settings = io_settings->get_settings_xml( ).
ycl_abapgit_persistence_db=>get_instance( )->modify(
iv_type = ycl_abapgit_persistence_db=>c_type_settings
iv_value = ''
iv_data = lv_settings ).
ls_user_settings = io_settings->get_user_settings( ).
ycl_abapgit_persistence_user=>get_instance( )->set_settings( ls_user_settings ).
" Settings have been modified: Update Buffered Settings
IF mo_settings IS BOUND.
mo_settings->set_xml_settings( lv_settings ).
mo_settings->set_user_settings( ls_user_settings ).
ENDIF.
ENDMETHOD.
METHOD read.
IF mo_settings IS BOUND.
" Return Buffered Settings
ro_settings = mo_settings.
RETURN.
ENDIF.
" Settings have changed or have not yet been loaded
CREATE OBJECT ro_settings.
TRY.
ro_settings->set_xml_settings(
ycl_abapgit_persistence_db=>get_instance( )->read(
iv_type = ycl_abapgit_persistence_db=>c_type_settings
iv_value = '' ) ).
ro_settings->set_user_settings( ycl_abapgit_persistence_user=>get_instance( )->get_settings( ) ).
CATCH ycx_abapgit_not_found ycx_abapgit_exception.
ro_settings->set_defaults( ).
ENDTRY.
mo_settings = ro_settings.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
13096,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
33692,
41876,
4526,
37,
5390,
331,
565,
62,
397,
499,
18300,
62,
33692,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
331,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
1100,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
33692,
8,
41876,
4526,
37,
5390,
331,
565,
62,
397,
499,
18300,
62,
33692,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
39098,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
33692,
8,
41876,
4526,
37,
5390,
331,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
6941,
62,
33692,
41876,
4526,
37,
5390,
331,
565,
62,
397,
499,
18300,
62,
33692,
764,
198,
220,
220,
220,
42715,
12,
26947,
467,
62,
19276,
396,
41876,
4526,
37,
5390,
331,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
39098,
13,
628,
220,
220,
220,
16876,
467,
62,
19276,
396,
3180,
5626,
347,
15919,
13,
198,
220,
220,
220,
220,
220,
29244,
6158,
25334,
23680,
467,
62,
19276,
396,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
686,
62,
33692,
796,
467,
62,
19276,
396,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
13096,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
33692,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
7220,
62,
33692,
41876,
331,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
82,
62,
7220,
62,
33692,
13,
628,
198,
220,
220,
220,
300,
85,
62,
33692,
796,
33245,
62,
33692,
3784,
1136,
62,
33692,
62,
19875,
7,
6739,
628,
220,
220,
220,
331,
565,
62,
397,
499,
18300,
62,
19276,
13274,
62,
9945,
14804,
1136,
62,
39098,
7,
1267,
3784,
4666,
1958,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
4906,
220,
220,
220,
220,
220,
220,
796,
331,
565,
62,
397,
499,
18300,
62,
19276,
13274,
62,
9945,
14804,
66,
62,
4906,
62,
33692,
198,
220,
220,
220,
220,
220,
21628,
62,
8367,
220,
220,
220,
220,
220,
796,
10148,
198,
220,
220,
220,
220,
220,
21628,
62,
7890,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
33692,
6739,
628,
220,
220,
220,
43979,
62,
7220,
62,
33692,
796,
33245,
62,
33692,
3784,
1136,
62,
7220,
62,
33692,
7,
6739,
628,
220,
220,
220,
331,
565,
62,
397,
499,
18300,
62,
19276,
13274,
62,
7220,
14804,
1136,
62,
39098,
7,
1267,
3784,
2617,
62,
33692,
7,
43979,
62,
7220,
62,
33692,
6739,
628,
220,
220,
220,
366,
16163,
423,
587,
9518,
25,
10133,
8792,
1068,
16163,
198,
220,
220,
220,
16876,
6941,
62,
33692,
3180,
347,
15919,
13,
198,
220,
220,
220,
220,
220,
6941,
62,
33692,
3784,
2617,
62,
19875,
62,
33692,
7,
300,
85,
62,
33692,
6739,
198,
220,
220,
220,
220,
220,
6941,
62,
33692,
3784,
2617,
62,
7220,
62,
33692,
7,
43979,
62,
7220,
62,
33692,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1100,
13,
628,
220,
220,
220,
16876,
6941,
62,
33692,
3180,
347,
15919,
13,
198,
220,
220,
220,
220,
220,
366,
8229,
8792,
1068,
16163,
198,
220,
220,
220,
220,
220,
686,
62,
33692,
796,
6941,
62,
33692,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
366,
16163,
423,
3421,
393,
423,
407,
1865,
587,
9639,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
33692,
13,
628,
220,
220,
220,
7579,
56,
13,
628,
220,
220,
220,
220,
220,
220,
220,
686,
62,
33692,
3784,
2617,
62,
19875,
62,
33692,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
331,
565,
62,
397,
499,
18300,
62,
19276,
13274,
62,
9945,
14804,
1136,
62,
39098,
7,
1267,
3784,
961,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
4906,
220,
796,
331,
565,
62,
397,
499,
18300,
62,
19276,
13274,
62,
9945,
14804,
66,
62,
4906,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
796,
10148,
1267,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
686,
62,
33692,
3784,
2617,
62,
7220,
62,
33692,
7,
331,
565,
62,
397,
499,
18300,
62,
19276,
13274,
62,
7220,
14804,
1136,
62,
39098,
7,
1267,
3784,
1136,
62,
33692,
7,
1267,
6739,
628,
220,
220,
220,
220,
220,
327,
11417,
331,
66,
87,
62,
397,
499,
18300,
62,
1662,
62,
9275,
331,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
220,
220,
220,
220,
686,
62,
33692,
3784,
2617,
62,
12286,
82,
7,
6739,
628,
220,
220,
220,
23578,
40405,
13,
628,
220,
220,
220,
6941,
62,
33692,
796,
686,
62,
33692,
13,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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CLASS zcl_i_a2cc_dpndncy_anlyzr_clas DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_i_a2cc_dependency_analyzer.
METHODS constructor.
PROTECTED SECTION.
METHODS collect_object_where_used_list
IMPORTING
metric TYPE REF TO zsi_a2cc_code_metrics
depending_objects TYPE zif_i_a2cc_where_used=>object_list.
METHODS where_used_analysis
IMPORTING
metrics TYPE ztti_a2cc_code_metrics.
DATA where_used_provider TYPE REF TO zif_i_a2cc_where_used_provider.
DATA object_where_used_list_by TYPE zif_i_a2cc_where_used=>where_used_list.
METHODS has_where_used_entries
IMPORTING
object_list TYPE REF TO zif_i_a2cc_where_used=>object_list
RETURNING
VALUE(result) TYPE abap_bool.
PRIVATE SECTION.
DATA: analyze_dependecies TYPE abap_bool,
analyze_direct_cycles TYPE abap_bool.
METHODS analyze_cycles.
ENDCLASS.
CLASS zcl_i_a2cc_dpndncy_anlyzr_clas IMPLEMENTATION.
METHOD constructor.
where_used_provider = NEW zcl_i_a2cc_where_used_provider( ).
ENDMETHOD.
METHOD zif_i_a2cc_dependency_analyzer~find_object_usages.
me->analyze_dependecies = analyze_dependecies.
me->analyze_direct_cycles = analyze_direct_cycles.
IF analyze_dependecies = abap_true OR analyze_direct_cycles = abap_true.
where_used_analysis( metrics ).
ENDIF.
IF analyze_direct_cycles = abap_true.
analyze_cycles( ).
ENDIF.
result = object_where_used_list_by.
ENDMETHOD.
METHOD where_used_analysis.
LOOP AT metrics REFERENCE INTO DATA(metric).
TRY.
DATA(depending_objects) = where_used_provider->get( objecttype = metric->category subtype = metric->sub_type )->get_cross_references( VALUE #( object = metric->modu_unit_1
subobject = metric->modu_unit_2 ) ).
IF has_where_used_entries( depending_objects ).
collect_object_where_used_list( metric = metric depending_objects = depending_objects->* ).
ENDIF.
CATCH zcx_i_a2cc_metrics_impl_error.
"Fallback for unknown references
INSERT VALUE #( object_identifier = metric->modu_unit_1 references = VALUE #( ( depending_object = |{ zcl_i_a2cc_metrics_2_json=>system }| number_of_usages = 1 ) ) )
INTO TABLE object_where_used_list_by.
ENDTRY.
ENDLOOP.
ENDMETHOD.
METHOD analyze_cycles.
LOOP AT object_where_used_list_by REFERENCE INTO DATA(object_where_used).
LOOP AT object_where_used->references REFERENCE INTO DATA(reference).
DATA(line_index) = sy-tabix.
TRY.
data(references) = object_where_used_list_by[ object_identifier = reference->depending_object object_type = reference->depending_type ]-references.
DATA(back_refenrence) = references[ depending_object = object_where_used->object_identifier depending_type = object_where_used->object_type ].
reference->cycle = 1.
CATCH cx_sy_itab_line_not_found.
DELETE TABLE object_where_used->references FROM reference->*.
ENDTRY.
ENDLOOP.
ENDLOOP.
ENDMETHOD.
METHOD has_where_used_entries.
result = boolc( object_list IS NOT INITIAL AND lines( object_list->* ) > 0 ).
ENDMETHOD.
METHOD collect_object_where_used_list.
TRY.
DATA(references) = REF #( me->object_where_used_list_by[ object_identifier = metric->modu_unit_1 object_type = metric->category ]-references ).
LOOP AT depending_objects REFERENCE INTO DATA(depending_object).
IF line_exists( references->*[ depending_object = depending_object->depending_object depending_type = depending_object->depending_type ] ).
ASSIGN references->*[ depending_object = depending_object->depending_object depending_type = depending_object->depending_type ] TO FIELD-SYMBOL(<existing_reference>).
<existing_reference>-number_of_usages = <existing_reference>-number_of_usages + 1.
ELSE.
INSERT depending_object->* INTO TABLE references->*.
ENDIF.
ENDLOOP.
CATCH cx_sy_itab_line_not_found.
INSERT VALUE #( object_identifier = metric->modu_unit_1 object_type = metric->category references = depending_objects ) INTO TABLE object_where_used_list_by.
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
72,
62,
64,
17,
535,
62,
26059,
358,
77,
948,
62,
272,
306,
89,
81,
62,
565,
292,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
72,
62,
64,
17,
535,
62,
45841,
1387,
62,
38200,
9107,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
2824,
62,
15252,
62,
3003,
62,
1484,
62,
4868,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
18663,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
13396,
62,
64,
17,
535,
62,
8189,
62,
4164,
10466,
198,
220,
220,
220,
220,
220,
220,
220,
6906,
62,
48205,
41876,
1976,
361,
62,
72,
62,
64,
17,
535,
62,
3003,
62,
1484,
14804,
15252,
62,
4868,
13,
198,
220,
220,
220,
337,
36252,
50,
810,
62,
1484,
62,
20930,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
20731,
41876,
1976,
35671,
62,
64,
17,
535,
62,
8189,
62,
4164,
10466,
13,
628,
220,
220,
220,
42865,
810,
62,
1484,
62,
15234,
1304,
41876,
4526,
37,
5390,
1976,
361,
62,
72,
62,
64,
17,
535,
62,
3003,
62,
1484,
62,
15234,
1304,
13,
198,
220,
220,
220,
42865,
2134,
62,
3003,
62,
1484,
62,
4868,
62,
1525,
41876,
1976,
361,
62,
72,
62,
64,
17,
535,
62,
3003,
62,
1484,
14804,
3003,
62,
1484,
62,
4868,
13,
628,
220,
220,
220,
337,
36252,
50,
468,
62,
3003,
62,
1484,
62,
298,
1678,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
62,
4868,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
72,
62,
64,
17,
535,
62,
3003,
62,
1484,
14804,
15252,
62,
4868,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
450,
499,
62,
30388,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
16602,
62,
45841,
721,
444,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16602,
62,
12942,
62,
32503,
41876,
450,
499,
62,
30388,
13,
198,
220,
220,
220,
337,
36252,
50,
16602,
62,
32503,
13,
198,
10619,
31631,
13,
198,
198,
31631,
1976,
565,
62,
72,
62,
64,
17,
535,
62,
26059,
358,
77,
948,
62,
272,
306,
89,
81,
62,
565,
292,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
810,
62,
1484,
62,
15234,
1304,
796,
12682,
1976,
565,
62,
72,
62,
64,
17,
535,
62,
3003,
62,
1484,
62,
15234,
1304,
7,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
72,
62,
64,
17,
535,
62,
45841,
1387,
62,
38200,
9107,
93,
19796,
62,
15252,
62,
385,
1095,
13,
198,
220,
220,
220,
502,
3784,
38200,
2736,
62,
45841,
721,
444,
796,
16602,
62,
45841,
721,
444,
13,
198,
220,
220,
220,
502,
3784,
38200,
2736,
62,
12942,
62,
32503,
796,
16602,
62,
12942,
62,
32503,
13,
628,
220,
220,
220,
16876,
16602,
62,
45841,
721,
444,
796,
450,
499,
62,
7942,
6375,
16602,
62,
12942,
62,
32503,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
810,
62,
1484,
62,
20930,
7,
20731,
6739,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
16876,
16602,
62,
12942,
62,
32503,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
16602,
62,
32503,
7,
6739,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
1255,
796,
2134,
62,
3003,
62,
1484,
62,
4868,
62,
1525,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
810,
62,
1484,
62,
20930,
13,
198,
220,
220,
220,
17579,
3185,
5161,
20731,
4526,
24302,
18310,
39319,
42865,
7,
4164,
1173,
737,
198,
220,
220,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
44023,
62,
48205,
8,
796,
810,
62,
1484,
62,
15234,
1304,
3784,
1136,
7,
2134,
4906,
796,
18663,
3784,
22872,
850,
4906,
796,
18663,
3784,
7266,
62,
4906,
1267,
3784,
1136,
62,
19692,
62,
5420,
4972,
7,
26173,
8924,
1303,
7,
2134,
220,
220,
220,
796,
18663,
3784,
4666,
84,
62,
20850,
62,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
850,
15252,
796,
18663,
3784,
4666,
84,
62,
20850,
62,
17,
1267,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16876,
468,
62,
3003,
62,
1484,
62,
298,
1678,
7,
6906,
62,
48205,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2824,
62,
15252,
62,
3003,
62,
1484,
62,
4868,
7,
18663,
796,
18663,
6906,
62,
48205,
796,
6906,
62,
48205,
3784,
9,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
method ZAS_EMPSET_CREATE_ENTITY.
RAISE EXCEPTION TYPE /iwbep/cx_mgw_not_impl_exc
EXPORTING
textid = /iwbep/cx_mgw_not_impl_exc=>method_not_implemented
method = 'ZAS_EMPSET_CREATE_ENTITY'.
endmethod. | [
220,
2446,
1168,
1921,
62,
3620,
3705,
2767,
62,
43387,
6158,
62,
3525,
9050,
13,
198,
220,
17926,
24352,
7788,
42006,
2849,
41876,
1220,
14246,
65,
538,
14,
66,
87,
62,
11296,
86,
62,
1662,
62,
23928,
62,
41194,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
2420,
312,
796,
1220,
14246,
65,
538,
14,
66,
87,
62,
11296,
86,
62,
1662,
62,
23928,
62,
41194,
14804,
24396,
62,
1662,
62,
320,
1154,
12061,
198,
220,
220,
220,
220,
220,
2446,
796,
705,
57,
1921,
62,
3620,
3705,
2767,
62,
43387,
6158,
62,
3525,
9050,
4458,
198,
220,
886,
24396,
13
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS /dmo/cx_flight_legacy14 DEFINITION
PUBLIC
INHERITING FROM cx_static_check
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES if_t100_message .
CONSTANTS:
gc_msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
BEGIN OF agency_unkown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '001',
attr1 TYPE scx_attrname VALUE 'MV_AGENCY_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF agency_unkown,
BEGIN OF customer_unkown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '002',
attr1 TYPE scx_attrname VALUE 'MV_CUSTOMER_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF customer_unkown,
BEGIN OF connection_unknown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '004',
attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID',
attr2 TYPE scx_attrname VALUE 'MV_CONNECTION_ID',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF connection_unknown ,
BEGIN OF carrier_unknown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '005',
attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF carrier_unknown ,
BEGIN OF supplement_unknown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '006',
attr1 TYPE scx_attrname VALUE 'MV_SUPPLEMENT_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF supplement_unknown,
BEGIN OF travel_status_invalid,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '007',
attr1 TYPE scx_attrname VALUE 'MV_STATUS',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF travel_status_invalid,
BEGIN OF currency_unknown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '008',
attr1 TYPE scx_attrname VALUE 'MV_CURRENCY_CODE',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF currency_unknown,
BEGIN OF travel_no_key,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '009',
attr1 TYPE scx_attrname VALUE '',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF travel_no_key,
BEGIN OF no_begin_date,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '013',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF no_begin_date,
BEGIN OF no_end_date,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '014',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF no_end_date,
BEGIN OF end_date_before_begin_date,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '015',
attr1 TYPE scx_attrname VALUE 'MV_BEGIN_DATE',
attr2 TYPE scx_attrname VALUE 'MV_END_DATE',
attr3 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr4 TYPE scx_attrname VALUE '',
END OF end_date_before_begin_date,
BEGIN OF travel_unknown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '016',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF travel_unknown,
BEGIN OF booking_unknown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '017',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF booking_unknown,
BEGIN OF booking_no_key,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '018',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF booking_no_key,
BEGIN OF booking_booking_date_invalid,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '019',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE 'MV_BOOKING_DATE',
attr4 TYPE scx_attrname VALUE '',
END OF booking_booking_date_invalid,
BEGIN OF flight_unknown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '020',
attr1 TYPE scx_attrname VALUE 'MV_CARRIER_ID',
attr2 TYPE scx_attrname VALUE 'MV_CONNECTION_ID',
attr3 TYPE scx_attrname VALUE 'MV_FLIGHT_DATE',
attr4 TYPE scx_attrname VALUE '',
END OF flight_unknown,
BEGIN OF booking_supplement_unknown,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '021',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID',
attr4 TYPE scx_attrname VALUE '',
END OF booking_supplement_unknown,
BEGIN OF booking_supplement_no_key,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '022',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF booking_supplement_no_key,
BEGIN OF booking_exists,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '023',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF booking_exists,
BEGIN OF booking_supplement_exists,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '024',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID',
attr4 TYPE scx_attrname VALUE '',
END OF booking_supplement_exists,
BEGIN OF travel_no_control,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '025',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF travel_no_control,
BEGIN OF booking_no_control,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '026',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF booking_no_control,
BEGIN OF booking_supplement_no_control,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '027',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID',
attr4 TYPE scx_attrname VALUE '',
END OF booking_supplement_no_control,
BEGIN OF booking_supplement_suppl_id_u,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '028',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID',
attr4 TYPE scx_attrname VALUE '',
END OF booking_supplement_suppl_id_u,
BEGIN OF booking_supplement_pri_curr_u,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '029',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE 'MV_BOOKING_SUPPLEMENT_ID',
attr4 TYPE scx_attrname VALUE '',
END OF booking_supplement_pri_curr_u,
BEGIN OF booking_flight_u,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '030',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF booking_flight_u,
BEGIN OF booking_price_currency_u,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '031',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_BOOKING_ID',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF booking_price_currency_u,
BEGIN OF travel_lock,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '032',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE 'MV_UNAME',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF travel_lock,
BEGIN OF travel_already_exists,
msgid TYPE symsgid VALUE '/DMO/CM_FLIGHT_LE_14',
msgno TYPE symsgno VALUE '033',
attr1 TYPE scx_attrname VALUE 'MV_TRAVEL_ID',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF travel_already_exists.
METHODS constructor
IMPORTING
textid LIKE if_t100_message=>t100key OPTIONAL
previous LIKE previous OPTIONAL
travel_id TYPE /dmo/travel_id14 OPTIONAL
booking_id TYPE /dmo/booking_id14 OPTIONAL
booking_supplement_id TYPE /dmo/booking_supplement_id14 OPTIONAL
agency_id TYPE /dmo/agency_id14 OPTIONAL
customer_id TYPE /dmo/customer_id14 OPTIONAL
carrier_id TYPE /dmo/carrier14-carrier_id OPTIONAL
connection_id TYPE /dmo/connecti_14-connection_id OPTIONAL
supplement_id TYPE /dmo/suppleme_14-supplement_id OPTIONAL
begin_date TYPE /dmo/begin_date14 OPTIONAL
end_date TYPE /dmo/end_date14 OPTIONAL
booking_date TYPE /dmo/booking_date14 OPTIONAL
flight_date TYPE /dmo/flight_date14 OPTIONAL
status TYPE /dmo/travel_status14 OPTIONAL
currency_code TYPE /dmo/currency_code14 OPTIONAL
uname TYPE syuname OPTIONAL.
DATA: mv_travel_id TYPE /dmo/travel_id14,
mv_booking_id TYPE /dmo/booking_id14,
mv_booking_supplement_id TYPE /dmo/booking_supplement_id14,
mv_agency_id TYPE /dmo/agency_id14,
mv_customer_id TYPE /dmo/customer_id14,
mv_carrier_id TYPE /dmo/carrier14-carrier_id,
mv_connection_id TYPE /dmo/connecti_14-connection_id,
mv_supplement_id TYPE /dmo/suppleme_14-supplement_id,
mv_begin_date TYPE /dmo/begin_date14,
mv_end_date TYPE /dmo/end_date14,
mv_booking_date TYPE /dmo/booking_date14,
mv_flight_date TYPE /dmo/flight_date14,
mv_status TYPE /dmo/travel_status14,
mv_currency_code TYPE /dmo/currency_code14,
mv_uname TYPE syuname.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS /dmo/cx_flight_legacy14 IMPLEMENTATION.
METHOD constructor ##ADT_SUPPRESS_GENERATION.
super->constructor( previous = previous ).
me->mv_travel_id = travel_id.
me->mv_booking_id = booking_id.
me->mv_booking_supplement_id = booking_supplement_id.
me->mv_agency_id = agency_id.
me->mv_customer_id = customer_id.
me->mv_carrier_id = carrier_id.
me->mv_connection_id = connection_id.
me->mv_supplement_id = supplement_id.
me->mv_begin_date = begin_date.
me->mv_end_date = end_date.
me->mv_booking_date = booking_date.
me->mv_flight_date = flight_date.
me->mv_status = status.
me->mv_currency_code = currency_code.
me->mv_uname = uname.
CLEAR me->textid.
IF textid IS INITIAL.
if_t100_message~t100key = if_t100_message=>default_textid.
ELSE.
if_t100_message~t100key = textid.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1220,
67,
5908,
14,
66,
87,
62,
22560,
62,
1455,
1590,
1415,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
43213,
62,
12708,
62,
9122,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
83,
3064,
62,
20500,
764,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
308,
66,
62,
19662,
312,
41876,
827,
19662,
312,
26173,
8924,
31051,
35,
11770,
14,
24187,
62,
3697,
9947,
62,
2538,
62,
1415,
3256,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
4086,
62,
2954,
593,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
41876,
827,
19662,
312,
26173,
8924,
31051,
35,
11770,
14,
24187,
62,
3697,
9947,
62,
2538,
62,
1415,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
3919,
41876,
827,
19662,
3919,
26173,
8924,
705,
8298,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
16,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
44,
53,
62,
4760,
45155,
62,
2389,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
17,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
18,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
19,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
4086,
62,
2954,
593,
11,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
6491,
62,
2954,
593,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
41876,
827,
19662,
312,
26173,
8924,
31051,
35,
11770,
14,
24187,
62,
3697,
9947,
62,
2538,
62,
1415,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
3919,
41876,
827,
19662,
3919,
26173,
8924,
705,
21601,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
16,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
44,
53,
62,
34,
7759,
2662,
1137,
62,
2389,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
17,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
18,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
19,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
6491,
62,
2954,
593,
11,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
4637,
62,
34680,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
41876,
827,
19662,
312,
26173,
8924,
31051,
35,
11770,
14,
24187,
62,
3697,
9947,
62,
2538,
62,
1415,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
3919,
41876,
827,
19662,
3919,
26173,
8924,
705,
22914,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
16,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
44,
53,
62,
20034,
7112,
1137,
62,
2389,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
17,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
44,
53,
62,
10943,
45,
24565,
62,
2389,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
18,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
19,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
4637,
62,
34680,
220,
220,
220,
220,
220,
837,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
11920,
62,
34680,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
41876,
827,
19662,
312,
26173,
8924,
31051,
35,
11770,
14,
24187,
62,
3697,
9947,
62,
2538,
62,
1415,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
3919,
41876,
827,
19662,
3919,
26173,
8924,
705,
22544,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
16,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
44,
53,
62,
20034,
7112,
1137,
62,
2389,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
17,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
18,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
19,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
11920,
62,
34680,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
837,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
10327,
62,
34680,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
41876,
827,
19662,
312,
26173,
8924,
31051,
35,
11770,
14,
24187,
62,
3697,
9947,
62,
2538,
62,
1415,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
3919,
41876,
827,
19662,
3919,
26173,
8924,
705,
28041,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
16,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
44,
53,
62,
40331,
16437,
10979,
62,
2389,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
17,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
18,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
19,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
10327,
62,
34680,
11,
628,
220,
220,
220,
220,
220,
347,
43312,
3963,
3067,
62,
13376,
62,
259,
12102,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
41876,
827,
19662,
312,
26173,
8924,
31051,
35,
11770,
14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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_devc DEFINITION PUBLIC
INHERITING FROM zcl_abapgit_objects_super
FINAL.
PUBLIC SECTION.
INTERFACES:
zif_abapgit_object.
ALIASES:
mo_files FOR zif_abapgit_object~mo_files.
METHODS:
constructor IMPORTING is_item TYPE zif_abapgit_definitions=>ty_item
iv_language TYPE spras.
PROTECTED SECTION.
PRIVATE SECTION.
DATA mv_local_devclass TYPE devclass .
METHODS get_package
RETURNING
VALUE(ri_package) TYPE REF TO if_package
RAISING
zcx_abapgit_exception .
METHODS update_pinf_usages
IMPORTING
!ii_package TYPE REF TO if_package
!it_usage_data TYPE scomppdata
RAISING
zcx_abapgit_exception .
METHODS set_lock
IMPORTING
!ii_package TYPE REF TO if_package
!iv_lock TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS is_empty
IMPORTING
!iv_package_name TYPE devclass
RETURNING
VALUE(rv_is_empty) TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS load_package
IMPORTING
!iv_package_name TYPE devclass
RETURNING
VALUE(ri_package) TYPE REF TO if_package
RAISING
zcx_abapgit_exception .
METHODS is_local
IMPORTING
!iv_package_name TYPE devclass
RETURNING
VALUE(rv_is_local) TYPE abap_bool .
METHODS remove_obsolete_tadir
IMPORTING
!iv_package_name TYPE devclass .
ENDCLASS.
CLASS zcl_abapgit_object_devc IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
IF is_item-devclass IS NOT INITIAL.
mv_local_devclass = is_item-devclass.
ELSE.
mv_local_devclass = is_item-obj_name.
ENDIF.
ENDMETHOD.
METHOD get_package.
IF zif_abapgit_object~exists( ) = abap_true.
ri_package = load_package( mv_local_devclass ).
ENDIF.
ENDMETHOD.
METHOD is_empty.
DATA: lv_object_name TYPE tadir-obj_name,
lt_subpackages TYPE zif_abapgit_sap_package=>ty_devclass_tt.
lt_subpackages = zcl_abapgit_factory=>get_sap_package( iv_package_name )->list_subpackages( ).
IF lines( lt_subpackages ) > 0.
rv_is_empty = abap_false.
RETURN.
ENDIF.
" Ignore the SOTR if is linked to the current SAP package (DEVC)
SELECT SINGLE obj_name
FROM tadir
INTO lv_object_name
WHERE pgmid = 'R3TR'
AND NOT ( ( object = 'DEVC' OR object = 'SOTR' ) AND obj_name = iv_package_name )
AND devclass = iv_package_name.
rv_is_empty = boolc( sy-subrc <> 0 ).
ENDMETHOD.
METHOD is_local.
DATA lv_dlvunit TYPE tdevc-dlvunit.
SELECT SINGLE dlvunit FROM tdevc INTO lv_dlvunit
WHERE devclass = iv_package_name AND intsys <> 'SAP'.
IF sy-subrc = 0 AND lv_dlvunit = 'LOCAL'.
rv_is_local = abap_true.
ENDIF.
ENDMETHOD.
METHOD load_package.
cl_package_factory=>load_package(
EXPORTING
i_package_name = iv_package_name
i_force_reload = abap_true
IMPORTING
e_package = ri_package
EXCEPTIONS
object_not_existing = 1
unexpected_error = 2
intern_err = 3
no_access = 4
object_locked_and_modified = 5
OTHERS = 6 ).
IF sy-subrc = 1.
RETURN.
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
METHOD remove_obsolete_tadir.
DATA:
lv_pack TYPE devclass,
lt_pack TYPE STANDARD TABLE OF devclass,
ls_tadir TYPE zif_abapgit_definitions=>ty_tadir,
lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt,
ls_item TYPE zif_abapgit_definitions=>ty_item.
" TADIR entries must remain for transportable packages
IF is_local( iv_package_name ) = abap_false.
RETURN.
ENDIF.
" Clean-up sub packages first
SELECT devclass FROM tdevc INTO TABLE lt_pack WHERE parentcl = iv_package_name.
LOOP AT lt_pack INTO lv_pack.
remove_obsolete_tadir( lv_pack ).
ENDLOOP.
" Remove TADIR entries for objects that do not exist anymore
SELECT * FROM tadir INTO CORRESPONDING FIELDS OF TABLE lt_tadir
WHERE devclass = iv_package_name ##TOO_MANY_ITAB_FIELDS.
LOOP AT lt_tadir INTO ls_tadir.
ls_item-obj_type = ls_tadir-object.
ls_item-obj_name = ls_tadir-obj_name.
IF zcl_abapgit_objects=>exists( ls_item ) = abap_false.
CALL FUNCTION 'TR_TADIR_INTERFACE'
EXPORTING
wi_delete_tadir_entry = abap_true
wi_tadir_pgmid = 'R3TR'
wi_tadir_object = ls_tadir-object
wi_tadir_obj_name = ls_tadir-obj_name
wi_test_modus = abap_false
EXCEPTIONS
OTHERS = 1 ##FM_SUBRC_OK.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD set_lock.
DATA: lv_changeable TYPE abap_bool.
ii_package->get_changeable( IMPORTING e_changeable = lv_changeable ).
IF lv_changeable <> iv_lock.
TRY.
CALL METHOD ii_package->('SET_CHANGEABLE')
EXPORTING
i_changeable = iv_lock
i_suppress_dialog = abap_true " Parameter missing in 702
EXCEPTIONS
object_locked_by_other_user = 1
permission_failure = 2
object_already_changeable = 3
object_already_unlocked = 4
object_just_created = 5
object_deleted = 6
object_modified = 7
object_not_existing = 8
object_invalid = 9
unexpected_error = 10
OTHERS = 11.
CATCH cx_sy_dyn_call_param_not_found.
ii_package->set_changeable(
EXPORTING
i_changeable = iv_lock
EXCEPTIONS
object_locked_by_other_user = 1
permission_failure = 2
object_already_changeable = 3
object_already_unlocked = 4
object_just_created = 5
object_deleted = 6
object_modified = 7
object_not_existing = 8
object_invalid = 9
unexpected_error = 10
OTHERS = 11 ).
ENDTRY.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDIF.
TRY.
CALL METHOD ii_package->('SET_PERMISSIONS_CHANGEABLE')
EXPORTING
i_changeable = iv_lock
i_suppress_dialog = abap_true " Parameter missing in 702
EXCEPTIONS
object_already_changeable = 1
object_already_unlocked = 2
object_locked_by_other_user = 3
object_modified = 4
object_just_created = 5
object_deleted = 6
permission_failure = 7
object_invalid = 8
unexpected_error = 9
OTHERS = 10.
CATCH cx_sy_dyn_call_param_not_found.
ii_package->set_permissions_changeable(
EXPORTING
i_changeable = iv_lock
EXCEPTIONS
object_already_changeable = 1
object_already_unlocked = 2
object_locked_by_other_user = 3
object_modified = 4
object_just_created = 5
object_deleted = 6
permission_failure = 7
object_invalid = 8
unexpected_error = 9
OTHERS = 10 ).
ENDTRY.
IF ( sy-subrc = 1 AND iv_lock = abap_true ) OR ( sy-subrc = 2 AND iv_lock = abap_false ).
" There's no getter to find out beforehand...
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
METHOD update_pinf_usages.
DATA: lt_current_permissions TYPE tpak_permission_to_use_list,
li_usage TYPE REF TO if_package_permission_to_use,
ls_data_sign TYPE scomppsign,
ls_add_permission_data TYPE pkgpermdat,
lt_handled TYPE SORTED TABLE OF i WITH UNIQUE KEY table_line.
FIELD-SYMBOLS: <ls_usage_data> LIKE LINE OF it_usage_data.
" Get the current permissions
ii_package->get_permissions_to_use(
IMPORTING
e_permissions = lt_current_permissions
EXCEPTIONS
object_invalid = 1
unexpected_error = 2
OTHERS = 3 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ls_data_sign-err_sever = abap_true.
" New permissions
LOOP AT it_usage_data ASSIGNING <ls_usage_data>.
READ TABLE lt_current_permissions
WITH KEY table_line->package_interface_name = <ls_usage_data>-intf_name
INTO li_usage.
IF sy-subrc = 0 AND li_usage IS BOUND.
INSERT sy-tabix INTO TABLE lt_handled.
" Permission already exists, update attributes
li_usage->set_all_attributes(
EXPORTING
i_permission_data = <ls_usage_data>
i_data_sign = ls_data_sign
EXCEPTIONS
object_not_changeable = 1
object_invalid = 2
intern_err = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ELSE.
" Permission does not exist yet, add it
MOVE-CORRESPONDING <ls_usage_data> TO ls_add_permission_data.
ii_package->add_permission_to_use(
EXPORTING
i_pkg_permission_data = ls_add_permission_data
EXCEPTIONS
object_not_changeable = 1
object_access_error = 2
object_already_existing = 3
object_invalid = 4
unexpected_error = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDIF.
FREE li_usage.
ENDLOOP.
" Delete missing usages
LOOP AT lt_current_permissions INTO li_usage.
READ TABLE lt_handled WITH TABLE KEY table_line = sy-tabix TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
CONTINUE.
ENDIF.
li_usage->delete(
EXCEPTIONS
object_not_changeable = 1
object_invalid = 2
* deletion_not_allowed = 3 downport, does not exist in 7.30
intern_err = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = get_package( )->changed_by.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: li_package TYPE REF TO if_package,
lv_package TYPE devclass.
" Package deletion is a bit tricky. A package can only be deleted if there are no objects
" contained in it. This includes subpackages, so first the leaf packages need to be deleted.
" Unfortunately deleted objects that are still contained in an unreleased transport request
" also count towards the contained objects counter.
" -> Currently we delete only empty packages
"
" If objects are deleted, the TADIR entry is deleted when the transport request is released.
" So before we can delete the package, the transport which deletes the objects
" in the package has to be released.
lv_package = ms_item-obj_name.
" Remove remaining OTR entries
zcl_abapgit_sotr_handler=>delete_sotr_package( iv_package ).
remove_obsolete_tadir( lv_package ).
IF is_empty( lv_package ) = abap_true.
li_package = load_package( lv_package ).
IF li_package IS NOT BOUND.
RETURN.
ENDIF.
IF lv_package(1) = '$'.
zcl_abapgit_persist_packages=>get_instance( )->modify( lv_package ).
ENDIF.
set_lock( ii_package = li_package
iv_lock = abap_true ).
TRY.
CALL METHOD li_package->('DELETE')
EXPORTING
i_suppress_dialog = abap_true " Parameter missing in 702
EXCEPTIONS
object_not_empty = 1
object_not_changeable = 2
object_invalid = 3
intern_err = 4
OTHERS = 5.
CATCH cx_sy_dyn_call_param_not_found.
li_package->delete(
EXCEPTIONS
object_not_empty = 1
object_not_changeable = 2
object_invalid = 3
intern_err = 4
OTHERS = 5 ).
ENDTRY.
IF sy-subrc <> 0.
set_lock( ii_package = li_package
iv_lock = abap_false ).
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
TRY.
CALL METHOD li_package->('SAVE')
EXPORTING
i_suppress_dialog = abap_true
EXCEPTIONS
object_invalid = 1
object_not_changeable = 2
cancelled_in_corr = 3
permission_failure = 4
unexpected_error = 5
intern_err = 6
OTHERS = 7.
CATCH cx_sy_dyn_call_param_not_found.
li_package->save(
EXCEPTIONS
object_invalid = 1
object_not_changeable = 2
cancelled_in_corr = 3
permission_failure = 4
unexpected_error = 5
intern_err = 6
OTHERS = 7 ).
ENDTRY.
IF sy-subrc <> 0.
set_lock( ii_package = li_package
iv_lock = abap_false ).
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: li_package TYPE REF TO if_package,
ls_package_data TYPE scompkdtln,
ls_data_sign TYPE scompksign,
lt_usage_data TYPE scomppdata,
ls_save_sign TYPE paksavsign.
FIELD-SYMBOLS: <ls_usage_data> TYPE scomppdtln.
mv_local_devclass = iv_package.
io_xml->read(
EXPORTING
iv_name = 'DEVC'
CHANGING
cg_data = ls_package_data ).
IF mv_local_devclass(1) = '$'.
IF ls_package_data-mainpack = 'X'.
zcx_abapgit_exception=>raise( |Main package { iv_package } cannot be used in local package| ).
ELSEIF ls_package_data-mainpack = 'S'.
zcx_abapgit_exception=>raise( |Structure package { iv_package } cannot be used in local package| ).
ENDIF.
ENDIF.
li_package = get_package( ).
" Swap out repository package name with the local installation package name
ls_package_data-devclass = mv_local_devclass.
IF li_package IS BOUND.
ls_package_data-pdevclass = li_package->transport_layer.
ENDIF.
" For local packages store application component
IF ls_package_data-devclass(1) = '$'.
zcl_abapgit_persist_packages=>get_instance( )->modify(
iv_package = ls_package_data-devclass
iv_component = ls_package_data-component
iv_comp_posid = ls_package_data-comp_posid ).
ENDIF.
" Parent package is not changed. Assume the folder logic already created the package and set
" the hierarchy before.
CLEAR ls_package_data-parentcl.
* Fields not set:
* korrflag
* dlvunit
* parentcl
* cli_check
* intprefx
ls_data_sign-ctext = abap_true.
ls_data_sign-as4user = abap_true.
ls_data_sign-pdevclass = abap_true.
ls_data_sign-comp_posid = abap_true.
ls_data_sign-component = abap_true.
ls_data_sign-perminher = abap_true.
ls_data_sign-packtype = abap_true.
ls_data_sign-restricted = abap_true.
ls_data_sign-mainpack = abap_true.
ls_data_sign-srv_check = abap_true.
ls_data_sign-ext_alias = abap_true.
ls_data_sign-project_guid = abap_true.
ls_data_sign-project_id = abap_true.
ls_data_sign-project_passdown = abap_true.
IF ls_package_data-ctext IS INITIAL.
ls_package_data-ctext = mv_local_devclass.
ENDIF.
IF ls_package_data-dlvunit IS INITIAL.
ls_package_data-dlvunit = 'HOME'.
ENDIF.
ls_package_data-as4user = cl_abap_syst=>get_user_name( ).
IF li_package IS BOUND.
" Package already exists, change it
set_lock( ii_package = li_package
iv_lock = abap_true ).
li_package->set_all_attributes(
EXPORTING
i_package_data = ls_package_data
i_data_sign = ls_data_sign
EXCEPTIONS
object_not_changeable = 1
object_deleted = 2
object_invalid = 3
short_text_missing = 4
author_not_existing = 5
local_package = 6
software_component_invalid = 7
layer_invalid = 8
korrflag_invalid = 9
component_not_existing = 10
component_missing = 11
authorize_failure = 12
prefix_in_use = 13
unexpected_error = 14
intern_err = 15
* wrong_mainpack_value = 16 downport, does not exist in 7.30
* superpackage_invalid = 17 downport, does not exist in 7.30
OTHERS = 18 ).
IF sy-subrc <> 0.
set_lock( ii_package = li_package
iv_lock = abap_false ).
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ELSE.
" Package does not exist yet, create it
" This shouldn't really happen, because the folder logic initially creates the packages.
cl_package_factory=>create_new_package(
IMPORTING
e_package = li_package
CHANGING
c_package_data = ls_package_data
EXCEPTIONS
object_already_existing = 1
object_just_created = 2
not_authorized = 3
wrong_name_prefix = 4
undefined_name = 5
reserved_local_name = 6
invalid_package_name = 7
short_text_missing = 8
software_component_invalid = 9
layer_invalid = 10
author_not_existing = 11
component_not_existing = 12
component_missing = 13
prefix_in_use = 14
unexpected_error = 15
intern_err = 16
no_access = 17
* invalid_translation_depth = 18 downport, does not exist in 7.30
* wrong_mainpack_value = 19 downport, does not exist in 7.30
* superpackage_invalid = 20 downport, does not exist in 7.30
* error_in_cts_checks = 21 downport, does not exist in 7.31
OTHERS = 22 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDIF.
" Load package interface usages
TRY.
io_xml->read(
EXPORTING
iv_name = 'PERMISSION'
CHANGING
cg_data = lt_usage_data ).
CATCH zcx_abapgit_exception ##NO_HANDLER.
" No permissions saved
ENDTRY.
LOOP AT lt_usage_data ASSIGNING <ls_usage_data>.
<ls_usage_data>-client_pak = mv_local_devclass.
ENDLOOP.
update_pinf_usages( ii_package = li_package
it_usage_data = lt_usage_data ).
ls_save_sign-pack = abap_true.
ls_save_sign-permis = abap_true.
ls_save_sign-elems = abap_true.
ls_save_sign-interf = abap_true.
li_package->save_generic(
EXPORTING
i_save_sign = ls_save_sign
i_transport_request = iv_transport
i_suppress_dialog = abap_true
EXCEPTIONS
cancelled_in_corr = 1
permission_failure = 2
object_not_changeable = 3
object_invalid = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
set_lock( ii_package = li_package
iv_lock = abap_false ).
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
set_lock( ii_package = li_package
iv_lock = abap_false ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
" Check remote package if deserialize has not been called before this
IF mv_local_devclass IS INITIAL.
rv_bool = abap_false.
ELSE.
cl_package_helper=>check_package_existence(
EXPORTING
i_package_name = mv_local_devclass
IMPORTING
e_package_exists = rv_bool
EXCEPTIONS
intern_err = 1
OTHERS = 2 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
DATA: lv_object TYPE eqegraarg.
lv_object = |DV{ ms_item-obj_name }|.
OVERLAY lv_object WITH ' '.
lv_object = lv_object && '*'.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'EEUDB'
iv_argument = lv_object ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
" Covered by ZCL_ABAPGIT_OBJECTS=>JUMP
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: ls_package_data TYPE scompkdtln,
ls_package_comp TYPE zcl_abapgit_persist_packages=>ty_package,
li_package TYPE REF TO if_package,
lt_intf_usages TYPE tpak_permission_to_use_list,
lt_usage_data TYPE scomppdata,
ls_usage_data TYPE scomppdtln,
li_usage TYPE REF TO if_package_permission_to_use.
FIELD-SYMBOLS: <lg_field> TYPE any.
li_package = get_package( ).
IF li_package IS NOT BOUND.
zcx_abapgit_exception=>raise( |Could not find package to serialize.| ).
ENDIF.
li_package->get_all_attributes(
IMPORTING
e_package_data = ls_package_data
EXCEPTIONS
object_invalid = 1
package_deleted = 2
intern_err = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
" For local packages get application component
IF is_local( ls_package_data-devclass ) = abap_true.
ls_package_comp = zcl_abapgit_persist_packages=>get_instance( )->read( ls_package_data-devclass ).
ls_package_data-component = ls_package_comp-component.
ls_package_data-comp_posid = ls_package_comp-comp_posid.
ENDIF.
CLEAR: ls_package_data-devclass,
ls_package_data-parentcl.
" Clear administrative data to prevent diffs
CLEAR: ls_package_data-created_by,
ls_package_data-created_on,
ls_package_data-changed_by,
ls_package_data-changed_on,
ls_package_data-as4user.
" Clear text descriptions that might be localized
CLEAR: ls_package_data-comp_text,
ls_package_data-dlvu_text,
ls_package_data-layer_text.
" Clear obsolete fields
CLEAR: ls_package_data-intfprefx,
ls_package_data-cli_check.
ASSIGN COMPONENT 'TRANSLATION_DEPTH_TEXT'
OF STRUCTURE ls_package_data
TO <lg_field>.
IF sy-subrc = 0.
CLEAR: <lg_field>.
ENDIF.
ASSIGN COMPONENT 'TRANSLATION_GRAPH_DEPTH_TEXT'
OF STRUCTURE ls_package_data
TO <lg_field>.
IF sy-subrc = 0.
CLEAR: <lg_field>.
ENDIF.
" Clear things related to local installation package
CLEAR: ls_package_data-namespace,
ls_package_data-dlvunit,
ls_package_data-pdevclass.
" Not usable on customer systems
ASSIGN COMPONENT 'TRANSLATION_DEPTH'
OF STRUCTURE ls_package_data
TO <lg_field>.
IF sy-subrc = 0.
CLEAR: <lg_field>.
ENDIF.
ASSIGN COMPONENT 'TRANSLATION_GRAPH_DEPTH'
OF STRUCTURE ls_package_data
TO <lg_field>.
IF sy-subrc = 0.
CLEAR: <lg_field>.
ENDIF.
CLEAR: ls_package_data-korrflag.
io_xml->add( iv_name = 'DEVC'
ig_data = ls_package_data ).
" Save package interface usages
li_package->get_permissions_to_use(
IMPORTING
e_permissions = lt_intf_usages
EXCEPTIONS
object_invalid = 1
unexpected_error = 2
OTHERS = 3 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
LOOP AT lt_intf_usages INTO li_usage.
li_usage->get_all_attributes(
IMPORTING
e_permission_data = ls_usage_data
EXCEPTIONS
object_invalid = 1
intern_err = 2
OTHERS = 3 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
CLEAR: ls_usage_data-pack_name, ls_usage_data-client_pak.
APPEND ls_usage_data TO lt_usage_data.
ENDLOOP.
IF lt_usage_data IS NOT INITIAL.
io_xml->add( iv_name = 'PERMISSION'
ig_data = lt_usage_data ).
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
7959,
66,
5550,
20032,
17941,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
198,
220,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
25,
198,
220,
220,
220,
220,
220,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
30023,
9863,
2751,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
628,
220,
220,
220,
42865,
285,
85,
62,
12001,
62,
7959,
4871,
41876,
1614,
4871,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
26495,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
26495,
8,
41876,
4526,
37,
5390,
611,
62,
26495,
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,
79,
10745,
62,
385,
1095,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
26495,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
26495,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
26060,
62,
7890,
41876,
629,
296,
381,
7890,
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,
5354,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
26495,
41876,
4526,
37,
5390,
611,
62,
26495,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
5354,
220,
220,
220,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
28920,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
62,
3672,
220,
220,
41876,
1614,
4871,
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,
28920,
8,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
3440,
62,
26495,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
62,
3672,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
26495,
8,
41876,
4526,
37,
5390,
611,
62,
26495,
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,
12001,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
62,
3672,
220,
220,
41876,
1614,
4871,
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,
4781,
62,
672,
23869,
62,
83,
324,
343,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
62,
3672,
41876,
1614,
4871,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
7959,
66,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
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,
198,
220,
220,
220,
16876,
318,
62,
9186,
12,
7959,
4871,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
285,
85,
62,
12001,
62,
7959,
4871,
796,
318,
62,
9186,
12,
7959,
4871,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
285,
85,
62,
12001,
62,
7959,
4871,
796,
318,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
26495,
13,
198,
220,
220,
220,
16876,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1069,
1023,
7,
1267,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
374,
72,
62,
26495,
796,
3440,
62,
26495,
7,
285,
85,
62,
12001,
62,
7959,
4871,
6739,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
318,
62,
28920,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
15252,
62,
3672,
41876,
36264,
343,
12,
26801,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_Z_4_MONSTER_DELIVE_MPC_EXT definition
public
inheriting from ZCL_Z_4_MONSTER_DELIVE_MPC
create public .
public section.
protected section.
private section.
ENDCLASS.
CLASS ZCL_Z_4_MONSTER_DELIVE_MPC_EXT IMPLEMENTATION.
ENDCLASS.
| [
4871,
1168,
5097,
62,
57,
62,
19,
62,
27857,
41809,
62,
35,
3698,
9306,
62,
44,
5662,
62,
13918,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
5097,
62,
57,
62,
19,
62,
27857,
41809,
62,
35,
3698,
9306,
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,
62,
19,
62,
27857,
41809,
62,
35,
3698,
9306,
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,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">Back-end file</p>
INTERFACE zif_io_backend
PUBLIC .
INTERFACES zif_io_file.
TYPE-POOLS dset .
TYPES: BEGIN OF ty_attr2_indicator,
position TYPE abap_bool,
type TYPE abap_bool,
process_utf8_bom TYPE abap_bool,
END OF ty_attr2_indicator,
BEGIN OF ty_attr2,
indicator TYPE ty_attr2_indicator,
position TYPE decfloat16,
type TYPE string,
process_utf8_bom TYPE abap_bool,
END OF ty_attr2.
METHODS get_line_end_marker
RETURNING
VALUE(result) TYPE string .
"! <p class="shorttext synchronized" lang="en"></p>
"!
METHODS delete
RAISING
zcx_io_file_error.
CONSTANTS:
BEGIN OF cs_dset,
BEGIN OF mode,
text TYPE dset_fixed_attributes-mode VALUE dset_text_mode,
binary TYPE dset_fixed_attributes-mode VALUE dset_binary_mode,
legacy_text TYPE dset_fixed_attributes-mode VALUE dset_legacy_text_mode,
legacy_binary TYPE dset_fixed_attributes-mode VALUE dset_legacy_binary_mode,
END OF mode,
BEGIN OF position,
begin_of_file TYPE i VALUE 0,
end_of_file TYPE i VALUE -1,
END OF position,
BEGIN OF access_type,
input TYPE dset_fixed_attributes-access_type VALUE dset_input,
output TYPE dset_fixed_attributes-access_type VALUE dset_output,
update TYPE dset_fixed_attributes-access_type VALUE dset_update,
appending TYPE dset_fixed_attributes-access_type VALUE dset_appending,
END OF access_type,
BEGIN OF encoding,
none TYPE dset_fixed_attributes-encoding VALUE '',
default TYPE dset_fixed_attributes-encoding VALUE 'DEFAULT',
non_unicode TYPE dset_fixed_attributes-encoding VALUE 'NON-UNICODE',
utf_8 TYPE dset_fixed_attributes-encoding VALUE 'UTF-8',
END OF encoding,
END OF cs_dset.
DATA filename TYPE string READ-ONLY .
DATA msg TYPE msg READ-ONLY .
DATA attr TYPE dset_attributes READ-ONLY.
DATA attr2 TYPE ty_attr2 READ-ONLY.
ENDINTERFACE.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
7282,
12,
437,
2393,
3556,
79,
29,
198,
41358,
49836,
1976,
361,
62,
952,
62,
1891,
437,
198,
220,
44731,
764,
628,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
952,
62,
7753,
13,
628,
220,
41876,
12,
16402,
3535,
50,
288,
2617,
764,
628,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
35226,
17,
62,
521,
26407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2292,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
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,
220,
1429,
62,
40477,
23,
62,
65,
296,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
35226,
17,
62,
521,
26407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
35226,
17,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16916,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
35226,
17,
62,
521,
26407,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2292,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
875,
22468,
1433,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
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,
220,
1429,
62,
40477,
23,
62,
65,
296,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
35226,
17,
13,
628,
220,
337,
36252,
50,
651,
62,
1370,
62,
437,
62,
4102,
263,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
764,
628,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
23984,
79,
29,
198,
220,
366,
0,
198,
220,
337,
36252,
50,
12233,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
952,
62,
7753,
62,
18224,
13,
628,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
347,
43312,
3963,
50115,
62,
67,
2617,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
4235,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
14171,
26173,
8924,
288,
2617,
62,
5239,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13934,
220,
220,
220,
220,
220,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
14171,
26173,
8924,
288,
2617,
62,
39491,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10655,
62,
5239,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
14171,
26173,
8924,
288,
2617,
62,
1455,
1590,
62,
5239,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10655,
62,
39491,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
14171,
26173,
8924,
288,
2617,
62,
1455,
1590,
62,
39491,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
4235,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
2292,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2221,
62,
1659,
62,
7753,
41876,
1312,
26173,
8924,
657,
11,
198,
220,
220,
220,
220,
220,
220,
220,
886,
62,
1659,
62,
7753,
220,
220,
41876,
1312,
26173,
8924,
532,
16,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
2292,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1895,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5128,
220,
220,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
15526,
62,
4906,
26173,
8924,
288,
2617,
62,
15414,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
220,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
15526,
62,
4906,
26173,
8924,
288,
2617,
62,
22915,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4296,
220,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
15526,
62,
4906,
26173,
8924,
288,
2617,
62,
19119,
11,
198,
220,
220,
220,
220,
220,
220,
220,
598,
1571,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
15526,
62,
4906,
26173,
8924,
288,
2617,
62,
1324,
1571,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1895,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
21004,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4844,
220,
220,
220,
220,
220,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
12685,
7656,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
220,
220,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
12685,
7656,
26173,
8924,
705,
7206,
38865,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1729,
62,
46903,
1098,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
12685,
7656,
26173,
8924,
705,
45,
1340,
12,
4944,
2149,
16820,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3384,
69,
62,
23,
220,
220,
220,
220,
220,
220,
41876,
288,
2617,
62,
34021,
62,
1078,
7657,
12,
12685,
7656,
26173,
8924,
705,
48504,
12,
23,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
21004,
11,
198,
220,
220,
220,
23578,
3963,
50115,
62,
67,
2617,
13,
628,
220,
42865,
29472,
41876,
4731,
20832,
12,
1340,
11319,
764,
198,
220,
42865,
31456,
41876,
31456,
20832,
12,
1340,
11319,
764,
198,
220,
42865,
708,
81,
41876,
288,
2617,
62,
1078,
7657,
20832,
12,
1340,
11319,
13,
198,
220,
42865,
708,
81,
17,
41876,
1259,
62,
35226,
17,
20832,
12,
1340,
11319,
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,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Include ZABAPGIT_OBJECT_SMIM
*&---------------------------------------------------------------------*
*----------------------------------------------------------------------*
* CLASS lcl_object_smim DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_object_smim DEFINITION INHERITING FROM lcl_objects_super FINAL.
PUBLIC SECTION.
INTERFACES lif_object.
ALIASES mo_files FOR lif_object~mo_files.
PRIVATE SECTION.
METHODS get_filename
IMPORTING iv_url TYPE string
RETURNING VALUE(rv_filename) TYPE string.
METHODS find_content
IMPORTING iv_url TYPE string
RETURNING VALUE(rv_content) TYPE xstring
RAISING lcx_exception.
METHODS build_filename
IMPORTING iv_filename TYPE string
RETURNING VALUE(rv_filename) TYPE string.
METHODS get_url_for_io
EXPORTING ev_url TYPE string
ev_is_folder TYPE boole_d
RAISING lcx_not_found
lcx_exception.
ENDCLASS. "lcl_object_smim DEFINITION
*----------------------------------------------------------------------*
* CLASS lcl_object_smim IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_object_smim IMPLEMENTATION.
METHOD lif_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD. "lif_object~has_changed_since
METHOD lif_object~changed_by.
DATA: lv_loio TYPE sdok_docid.
lv_loio = ms_item-obj_name.
SELECT SINGLE chng_user FROM smimloio INTO rv_user
WHERE loio_id = lv_loio. "#EC CI_GENBUFF
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD lif_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD. "lif_object~get_metadata
METHOD lif_object~exists.
TRY.
get_url_for_io( ).
rv_bool = abap_true.
CATCH lcx_not_found.
rv_bool = abap_false.
ENDTRY.
ENDMETHOD. "lif_object~exists
METHOD get_url_for_io.
DATA: ls_io TYPE skwf_io,
lv_url TYPE skwf_url,
ls_smimloio TYPE smimloio,
lv_loio TYPE sdok_docid.
lv_loio = ms_item-obj_name.
CLEAR ev_url.
CLEAR ev_is_folder.
SELECT SINGLE * FROM smimloio INTO ls_smimloio
WHERE loio_id = lv_loio. "#EC CI_GENBUFF
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE lcx_not_found.
ENDIF.
IF ls_smimloio-lo_class = wbmr_c_skwf_folder_class.
ev_is_folder = abap_true.
ls_io-objtype = skwfc_obtype_folder.
ELSE.
ls_io-objtype = skwfc_obtype_loio.
ENDIF.
ls_io-class = ls_smimloio-lo_class.
ls_io-objid = ls_smimloio-loio_id.
CALL FUNCTION 'SKWF_NMSPC_IO_ADDRESS_GET'
EXPORTING
io = ls_io
IMPORTING
url = lv_url.
ev_url = lv_url.
ENDMETHOD. "get_url_for_io
METHOD build_filename.
CONCATENATE ms_item-obj_name ms_item-obj_type iv_filename
INTO rv_filename SEPARATED BY '.'.
TRANSLATE rv_filename TO LOWER CASE.
ENDMETHOD. "build_filename
METHOD find_content.
DATA: lv_filename TYPE string,
lt_files TYPE ty_files_tt.
FIELD-SYMBOLS: <ls_file> LIKE LINE OF lt_files.
lv_filename = get_filename( iv_url ).
lv_filename = build_filename( lv_filename ).
lt_files = mo_files->get_files( ).
READ TABLE lt_files ASSIGNING <ls_file> WITH KEY filename = lv_filename.
IF sy-subrc <> 0.
lcx_exception=>raise( 'SMIM, file not found' ).
ENDIF.
rv_content = <ls_file>-data.
ENDMETHOD. "find_content
METHOD get_filename.
DATA: lv_lines TYPE i,
lt_strings TYPE TABLE OF string.
SPLIT iv_url AT '/' INTO TABLE lt_strings.
lv_lines = lines( lt_strings ).
ASSERT lv_lines > 0.
READ TABLE lt_strings INDEX lv_lines INTO rv_filename.
ASSERT sy-subrc = 0.
ENDMETHOD. "get_filename
METHOD lif_object~serialize.
DATA: lv_url TYPE string,
lv_folder TYPE abap_bool,
lv_filename TYPE string,
ls_file TYPE ty_file,
lv_content TYPE xstring,
li_api TYPE REF TO if_mr_api.
TRY.
get_url_for_io(
IMPORTING
ev_url = lv_url
ev_is_folder = lv_folder ).
CATCH lcx_not_found.
RETURN.
ENDTRY.
IF lv_folder = abap_false.
li_api = cl_mime_repository_api=>if_mr_api~get_api( ).
li_api->get(
EXPORTING
i_url = lv_url
IMPORTING
e_content = lv_content
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5 ).
IF sy-subrc <> 0 AND sy-subrc <> 2 AND sy-subrc <> 3.
lcx_exception=>raise( 'error from mime api->get:' && sy-msgv1 ).
ENDIF.
lv_filename = get_filename( lv_url ).
CLEAR ls_file.
ls_file-filename = build_filename( lv_filename ).
ls_file-path = '/'.
ls_file-data = lv_content.
mo_files->add( ls_file ).
ENDIF.
io_xml->add( iv_name = 'URL'
ig_data = lv_url ).
io_xml->add( iv_name = 'FOLDER'
ig_data = lv_folder ).
ENDMETHOD. "serialize
METHOD lif_object~deserialize.
DATA: lv_url TYPE string,
lv_folder TYPE abap_bool,
lv_content TYPE xstring,
lv_filename TYPE skwf_filnm,
lv_io TYPE sdok_docid,
ls_skwf_io TYPE skwf_io,
li_api TYPE REF TO if_mr_api.
li_api = cl_mime_repository_api=>if_mr_api~get_api( ).
lv_io = ms_item-obj_name.
io_xml->read( EXPORTING iv_name = 'URL'
CHANGING cg_data = lv_url ).
io_xml->read( EXPORTING iv_name = 'FOLDER'
CHANGING cg_data = lv_folder ).
ls_skwf_io-objid = lv_io.
IF lv_folder = abap_true.
li_api->create_folder(
EXPORTING
i_url = lv_url
i_language = sy-langu
i_dev_package = iv_package
i_folder_loio = ls_skwf_io
EXCEPTIONS
parameter_missing = 1
error_occured = 2
cancelled = 3
permission_failure = 4
folder_exists = 5
OTHERS = 6 ).
IF sy-subrc <> 5 AND sy-subrc <> 0.
lcx_exception=>raise( 'error frrom SMIM create_folder' ).
ENDIF.
ELSE.
lv_filename = get_filename( lv_url ).
cl_wb_mime_repository=>determine_io_class(
EXPORTING
filename = lv_filename
IMPORTING
io_class = ls_skwf_io-class ).
CONCATENATE ls_skwf_io-class '_L' INTO ls_skwf_io-class.
lv_content = find_content( lv_url ).
li_api->put(
EXPORTING
i_url = lv_url
i_content = lv_content
i_dev_package = iv_package
i_new_loio = ls_skwf_io
EXCEPTIONS
parameter_missing = 1
error_occured = 2
cancelled = 3
permission_failure = 4
data_inconsistency = 5
new_loio_already_exists = 6
is_folder = 7
OTHERS = 8 ).
IF sy-subrc <> 0.
lcx_exception=>raise( 'error from SMIM put' ).
ENDIF.
ENDIF.
ENDMETHOD. "deserialize
METHOD lif_object~delete.
DATA: li_api TYPE REF TO if_mr_api,
lv_url TYPE string.
TRY.
get_url_for_io(
IMPORTING
ev_url = lv_url ).
CATCH lcx_not_found.
RETURN.
ENDTRY.
li_api = cl_mime_repository_api=>if_mr_api~get_api( ).
li_api->delete(
EXPORTING
i_url = lv_url
i_delete_children = abap_true
EXCEPTIONS
parameter_missing = 1
error_occured = 2
cancelled = 3
permission_failure = 4
not_found = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
lcx_exception=>raise( 'error from delete' ).
ENDIF.
ENDMETHOD. "delete
METHOD lif_object~jump.
lcx_exception=>raise( 'todo, SMIM, jump' ).
ENDMETHOD. "jump
METHOD lif_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE lcl_null_comparison_result.
ENDMETHOD.
ENDCLASS. "lcl_object_smim IMPLEMENTATION
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
12310,
3955,
198,
9,
5,
10097,
30934,
9,
198,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
300,
565,
62,
15252,
62,
5796,
320,
5550,
20032,
17941,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
300,
565,
62,
15252,
62,
5796,
320,
5550,
20032,
17941,
3268,
16879,
2043,
2751,
16034,
300,
565,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
3868,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
3868,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
34345,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
34345,
8,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
1064,
62,
11299,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
11299,
8,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
300,
66,
87,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
1382,
62,
34345,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
34345,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
34345,
8,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
6371,
62,
1640,
62,
952,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
819,
62,
6371,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
271,
62,
43551,
41876,
1489,
2305,
62,
67,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
300,
66,
87,
62,
1662,
62,
9275,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
66,
87,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
75,
565,
62,
15252,
62,
5796,
320,
5550,
20032,
17941,
198,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
300,
565,
62,
15252,
62,
5796,
320,
30023,
2538,
10979,
6234,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
300,
565,
62,
15252,
62,
5796,
320,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
3868,
62,
15252,
93,
10134,
62,
40985,
62,
20777,
13,
198,
220,
220,
220,
374,
85,
62,
40985,
796,
450,
499,
62,
7942,
13,
198,
220,
23578,
49273,
13,
220,
366,
36195,
62,
15252,
93,
10134,
62,
40985,
62,
20777,
628,
220,
337,
36252,
3868,
62,
15252,
93,
40985,
62,
1525,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
5439,
952,
41876,
45647,
482,
62,
15390,
312,
13,
628,
198,
220,
220,
220,
300,
85,
62,
5439,
952,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
628,
220,
220,
220,
33493,
311,
2751,
2538,
442,
782,
62,
7220,
16034,
895,
320,
5439,
952,
39319,
374,
85,
62,
7220,
198,
220,
220,
220,
220,
220,
33411,
2376,
952,
62,
312,
796,
300,
85,
62,
5439,
952,
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,
25113,
2943,
14514,
62,
35353,
19499,
5777,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
374,
85,
62,
7220,
796,
269,
62,
7220,
62,
34680,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
3868,
62,
15252,
93,
1136,
62,
38993,
13,
198,
220,
220,
220,
44608,
62,
38993,
796,
651,
62,
38993,
7,
6739,
198,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
36195,
62,
15252,
93,
1136,
62,
38993,
628,
220,
337,
36252,
3868,
62,
15252,
93,
1069,
1023,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
651,
62,
6371,
62,
1640,
62,
952,
7,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
374,
85,
62,
30388,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
327,
11417,
300,
66,
87,
62,
1662,
62,
9275,
13,
198,
220,
220,
220,
220,
220,
220,
220,
374,
85,
62,
30388,
796,
450,
499,
62,
9562,
13,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
36195,
62,
15252,
93,
1069,
1023,
628,
220,
337,
36252,
651,
62,
6371,
62,
1640,
62,
952,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
952,
220,
220,
220,
220,
220,
220,
41876,
1341,
86,
69,
62,
952,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
6371,
220,
220,
220,
220,
220,
41876,
1341,
86,
69,
62,
6371,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
5796,
320,
5439,
952,
41876,
895,
320,
5439,
952,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
5439,
952,
220,
220,
220,
220,
41876,
45647,
482,
62,
15390,
312,
13,
628,
198,
220,
220,
220,
300,
85,
62,
5439,
952,
796,
13845,
62,
9186,
12,
26801,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_poller_test definition final for testing
duration short
risk level harmless.
private section.
methods manual_state_check for testing.
methods detect_changes for testing.
methods merge_changes for testing.
endclass.
class lcl_poller_test implementation.
method manual_state_check.
data lo type ref to zcl_w3mime_poller.
data lt_targets type zcl_w3mime_poller=>tt_target.
data lt_act type zcl_w3mime_poller=>tt_file_state.
field-symbols <t> like line of lt_targets.
append initial line to lt_targets assigning <t>.
<t>-directory = 'c:\tmp'.
try.
"FOR MANUAL TEST ONLY
* create object lo exporting it_targets = lt_targets.
* lt_act = lo->read_current_state( ).
* lt_act = lo->update_state( ).
* lt_act = lo->update_state( ).
catch cx_root.
cl_abap_unit_assert=>fail( 'Unexpected error' ).
endtry.
endmethod. " manual_state_check.
define _add_state.
append initial line to &1 assigning <i>.
<i>-path = &2.
<i>-timestamp = &3.
end-of-definition.
method detect_changes.
data:
lt_prev type zcl_w3mime_poller=>tt_file_state,
lt_cur like lt_prev,
lt_act like lt_prev,
lt_exp like lt_prev.
field-symbols <i> like line of lt_prev.
_add_state lt_prev 'A' '20180801120000'.
_add_state lt_prev 'B' '20180801120000'.
_add_state lt_cur 'A' '20180801120000'.
_add_state lt_cur 'B' '20180801120001'.
_add_state lt_cur 'NEW' '20180801120005'.
_add_state lt_exp 'B' '20180801120001'.
_add_state lt_exp 'NEW' '20180801120005'.
lt_act = zcl_w3mime_poller=>detect_changes( it_prev = lt_prev it_cur = lt_cur ).
cl_abap_unit_assert=>assert_equals( act = lt_act exp = lt_exp ).
endmethod. " detect_changes.
method merge_changes.
data:
lt_prev type zcl_w3mime_poller=>tt_file_state,
lt_cur like lt_prev,
lt_exp like lt_prev.
field-symbols <i> like line of lt_prev.
_add_state lt_prev 'A' '20180801120000'.
_add_state lt_prev 'B' '20180801120000'.
_add_state lt_cur 'A' '20180801120000'.
_add_state lt_cur 'B' '20180801120001'.
_add_state lt_cur 'NEW' '20180801120005'.
_add_state lt_exp 'A' '20180801120000'.
_add_state lt_exp 'B' '20180801120001'.
_add_state lt_exp 'NEW' '20180801120005'.
zcl_w3mime_poller=>merge_changes( exporting it_changes = lt_cur changing ct_state = lt_prev ).
cl_abap_unit_assert=>assert_equals( act = lt_prev exp = lt_exp ).
endmethod. " merge_changes.
endclass.
| [
4871,
300,
565,
62,
30393,
263,
62,
9288,
6770,
2457,
329,
4856,
198,
220,
9478,
1790,
198,
220,
2526,
1241,
23585,
13,
628,
220,
2839,
2665,
13,
198,
220,
220,
220,
5050,
10107,
62,
5219,
62,
9122,
329,
4856,
13,
198,
220,
220,
220,
5050,
4886,
62,
36653,
329,
4856,
13,
198,
220,
220,
220,
5050,
20121,
62,
36653,
329,
4856,
13,
198,
437,
4871,
13,
198,
198,
4871,
300,
565,
62,
30393,
263,
62,
9288,
7822,
13,
628,
220,
2446,
10107,
62,
5219,
62,
9122,
13,
628,
220,
220,
220,
1366,
2376,
2099,
1006,
284,
1976,
565,
62,
86,
18,
76,
524,
62,
30393,
263,
13,
198,
220,
220,
220,
1366,
300,
83,
62,
83,
853,
1039,
2099,
1976,
565,
62,
86,
18,
76,
524,
62,
30393,
263,
14804,
926,
62,
16793,
13,
198,
220,
220,
220,
1366,
300,
83,
62,
529,
2099,
1976,
565,
62,
86,
18,
76,
524,
62,
30393,
263,
14804,
926,
62,
7753,
62,
5219,
13,
198,
220,
220,
220,
2214,
12,
1837,
2022,
10220,
1279,
83,
29,
588,
1627,
286,
300,
83,
62,
83,
853,
1039,
13,
628,
220,
220,
220,
24443,
4238,
1627,
284,
300,
83,
62,
83,
853,
1039,
38875,
1279,
83,
28401,
198,
220,
220,
220,
1279,
83,
29,
12,
34945,
796,
705,
66,
7479,
22065,
4458,
628,
220,
220,
220,
1949,
13,
198,
220,
220,
220,
220,
220,
366,
13775,
17254,
25620,
43001,
22224,
198,
9,
220,
220,
220,
220,
220,
2251,
2134,
2376,
39133,
340,
62,
83,
853,
1039,
796,
300,
83,
62,
83,
853,
1039,
13,
198,
9,
220,
220,
220,
220,
220,
300,
83,
62,
529,
796,
2376,
3784,
961,
62,
14421,
62,
5219,
7,
6739,
198,
9,
220,
220,
220,
220,
220,
300,
83,
62,
529,
796,
2376,
3784,
19119,
62,
5219,
7,
6739,
198,
9,
220,
220,
220,
220,
220,
300,
83,
62,
529,
796,
2376,
3784,
19119,
62,
5219,
7,
6739,
198,
220,
220,
220,
4929,
43213,
62,
15763,
13,
198,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
705,
52,
42072,
4049,
6,
6739,
198,
220,
220,
220,
886,
28311,
13,
628,
220,
886,
24396,
13,
220,
366,
10107,
62,
5219,
62,
9122,
13,
628,
220,
8160,
4808,
2860,
62,
5219,
13,
198,
220,
220,
220,
24443,
4238,
1627,
284,
1222,
16,
38875,
1279,
72,
28401,
198,
220,
220,
220,
1279,
72,
29,
12,
6978,
220,
220,
220,
220,
220,
796,
1222,
17,
13,
198,
220,
220,
220,
1279,
72,
29,
12,
16514,
27823,
796,
1222,
18,
13,
198,
220,
886,
12,
1659,
12,
46758,
13,
628,
220,
2446,
4886,
62,
36653,
13,
198,
220,
220,
220,
1366,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
47050,
2099,
1976,
565,
62,
86,
18,
76,
524,
62,
30393,
263,
14804,
926,
62,
7753,
62,
5219,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
22019,
220,
588,
300,
83,
62,
47050,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
529,
220,
588,
300,
83,
62,
47050,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
11201,
220,
588,
300,
83,
62,
47050,
13,
628,
220,
220,
220,
2214,
12,
1837,
2022,
10220,
1279,
72,
29,
588,
1627,
286,
300,
83,
62,
47050,
13,
628,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
47050,
705,
32,
6,
705,
1264,
28362,
486,
1065,
2388,
4458,
198,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
47050,
705,
33,
6,
705,
1264,
28362,
486,
1065,
2388,
4458,
628,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
22019,
705,
32,
6,
220,
220,
705,
1264,
28362,
486,
1065,
2388,
4458,
198,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
22019,
705,
33,
6,
220,
220,
705,
1264,
28362,
486,
1065,
18005,
4458,
198,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
22019,
705,
13965,
6,
705,
1264,
28362,
486,
1065,
830,
20,
4458,
628,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
11201,
705,
33,
6,
220,
220,
705,
1264,
28362,
486,
1065,
18005,
4458,
198,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
11201,
705,
13965,
6,
705,
1264,
28362,
486,
1065,
830,
20,
4458,
628,
220,
220,
220,
300,
83,
62,
529,
796,
1976,
565,
62,
86,
18,
76,
524,
62,
30393,
263,
14804,
15255,
478,
62,
36653,
7,
340,
62,
47050,
796,
300,
83,
62,
47050,
340,
62,
22019,
796,
300,
83,
62,
22019,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
719,
796,
300,
83,
62,
529,
1033,
796,
300,
83,
62,
11201,
6739,
628,
220,
886,
24396,
13,
220,
366,
4886,
62,
36653,
13,
628,
220,
2446,
20121,
62,
36653,
13,
198,
220,
220,
220,
1366,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
47050,
2099,
1976,
565,
62,
86,
18,
76,
524,
62,
30393,
263,
14804,
926,
62,
7753,
62,
5219,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
22019,
220,
588,
300,
83,
62,
47050,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
11201,
220,
588,
300,
83,
62,
47050,
13,
628,
220,
220,
220,
2214,
12,
1837,
2022,
10220,
1279,
72,
29,
588,
1627,
286,
300,
83,
62,
47050,
13,
628,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
47050,
705,
32,
6,
705,
1264,
28362,
486,
1065,
2388,
4458,
198,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
47050,
705,
33,
6,
705,
1264,
28362,
486,
1065,
2388,
4458,
628,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
22019,
705,
32,
6,
220,
220,
705,
1264,
28362,
486,
1065,
2388,
4458,
198,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
22019,
705,
33,
6,
220,
220,
705,
1264,
28362,
486,
1065,
18005,
4458,
198,
220,
220,
220,
4808,
2860,
62,
5219,
300,
83,
62,
22019,
705,
13965,
6,
705,
1264,
28362,
486,
1065
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
CLASS zcl_abapgit_tag_popups DEFINITION
PUBLIC
FINAL
CREATE PRIVATE
GLOBAL FRIENDS zcl_abapgit_ui_factory.
PUBLIC SECTION.
INTERFACES: zif_abapgit_tag_popups.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_tag_out.
INCLUDE TYPE zif_abapgit_definitions=>ty_git_tag.
TYPES: body_icon TYPE icon_d,
END OF ty_tag_out,
tty_tag_out TYPE STANDARD TABLE OF ty_tag_out
WITH NON-UNIQUE DEFAULT KEY.
DATA:
mt_tags TYPE tty_tag_out,
mo_docking_container TYPE REF TO cl_gui_docking_container,
mo_text_control TYPE REF TO cl_gui_textedit.
METHODS:
on_double_click FOR EVENT double_click OF cl_salv_events_table
IMPORTING row column,
prepare_tags_for_display
IMPORTING
it_tags TYPE zif_abapgit_definitions=>ty_git_tag_list_tt
RETURNING
VALUE(rt_tags_out) TYPE tty_tag_out,
clean_up,
show_docking_container_with
IMPORTING
iv_text TYPE string.
ENDCLASS.
CLASS ZCL_ABAPGIT_TAG_POPUPS IMPLEMENTATION.
METHOD clean_up.
IF mo_text_control IS BOUND.
mo_text_control->finalize( ).
mo_text_control->free(
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3 ).
ASSERT sy-subrc = 0.
CLEAR: mo_text_control.
ENDIF.
IF mo_docking_container IS BOUND.
mo_docking_container->finalize( ).
mo_docking_container->free(
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3 ).
ASSERT sy-subrc = 0.
CLEAR: mo_docking_container.
ENDIF.
ENDMETHOD.
METHOD on_double_click.
FIELD-SYMBOLS: <ls_tag> TYPE ty_tag_out.
READ TABLE mt_tags ASSIGNING <ls_tag>
INDEX row.
IF sy-subrc <> 0 OR <ls_tag>-body IS INITIAL.
RETURN.
ENDIF.
show_docking_container_with( <ls_tag>-body ).
ENDMETHOD.
METHOD prepare_tags_for_display.
DATA: ls_tag_out LIKE LINE OF rt_tags_out.
FIELD-SYMBOLS: <ls_tag> TYPE zif_abapgit_definitions=>ty_git_tag.
LOOP AT it_tags ASSIGNING <ls_tag>.
CLEAR: ls_tag_out.
MOVE-CORRESPONDING <ls_tag> TO ls_tag_out.
ls_tag_out-name = zcl_abapgit_git_tag=>remove_tag_prefix( ls_tag_out-name ).
IF ls_tag_out-body IS NOT INITIAL.
ls_tag_out-body_icon = |{ icon_display_text }|.
ENDIF.
INSERT ls_tag_out INTO TABLE rt_tags_out.
ENDLOOP.
ENDMETHOD.
METHOD show_docking_container_with.
IF mo_docking_container IS NOT BOUND.
CREATE OBJECT mo_docking_container
EXPORTING
side = cl_gui_docking_container=>dock_at_bottom
extension = 120
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
ASSERT sy-subrc = 0.
ENDIF.
IF mo_text_control IS NOT BOUND.
CREATE OBJECT mo_text_control
EXPORTING
parent = mo_docking_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
ASSERT sy-subrc = 0.
mo_text_control->set_readonly_mode(
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3 ).
ASSERT sy-subrc = 0.
ENDIF.
mo_text_control->set_textstream(
EXPORTING
text = iv_text
EXCEPTIONS
error_cntl_call_method = 1
not_supported_by_gui = 2
OTHERS = 3 ).
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD zif_abapgit_tag_popups~tag_list_popup.
DATA: lo_alv TYPE REF TO cl_salv_table,
lo_table_header TYPE REF TO cl_salv_form_header_info,
lo_columns TYPE REF TO cl_salv_columns_table,
lx_alv TYPE REF TO cx_salv_error,
lt_tags TYPE zif_abapgit_definitions=>ty_git_tag_list_tt,
lo_event TYPE REF TO cl_salv_events_table.
CLEAR: mt_tags.
lt_tags = zcl_abapgit_factory=>get_branch_overview( io_repo )->get_tags( ).
IF lines( lt_tags ) = 0.
zcx_abapgit_exception=>raise( `There are no tags for this repository` ).
ENDIF.
mt_tags = prepare_tags_for_display( lt_tags ).
TRY.
cl_salv_table=>factory(
IMPORTING
r_salv_table = lo_alv
CHANGING
t_table = mt_tags ).
lo_columns = lo_alv->get_columns( ).
lo_columns->get_column( `TYPE` )->set_technical( ).
lo_columns->get_column( `DISPLAY_NAME` )->set_technical( ).
lo_columns->get_column( `BODY` )->set_technical( ).
lo_columns->get_column( `NAME` )->set_medium_text( 'Tag name' ).
lo_columns->set_column_position( columnname = 'NAME'
position = 1 ).
lo_columns->get_column( `TAGGER_NAME` )->set_medium_text( 'Tagger' ).
lo_columns->set_column_position( columnname = 'TAGGER_NAME'
position = 2 ).
lo_columns->get_column( `TAGGER_EMAIL` )->set_medium_text( 'Tagger E-Mail' ).
lo_columns->set_column_position( columnname = 'TAGGER_EMAIL'
position = 3 ).
lo_columns->get_column( `MESSAGE` )->set_medium_text( 'Tag message' ).
lo_columns->set_column_position( columnname = 'MESSAGE'
position = 4 ).
lo_columns->get_column( `BODY_ICON` )->set_medium_text( 'Body' ).
lo_columns->get_column( `BODY_ICON` )->set_output_length( 4 ).
lo_columns->set_column_position( columnname = 'BODY_ICON'
position = 5 ).
lo_columns->get_column( `SHA1` )->set_output_length( 15 ).
lo_columns->get_column( `SHA1` )->set_medium_text( 'SHA' ).
lo_columns->set_column_position( columnname = 'SHA1'
position = 6 ).
lo_columns->get_column( `OBJECT` )->set_output_length( 15 ).
lo_columns->get_column( `OBJECT` )->set_medium_text( 'Object' ).
lo_columns->set_column_position( columnname = 'OBJECT'
position = 7 ).
lo_columns->set_optimize( ).
lo_alv->set_screen_popup( start_column = 7
end_column = 200
start_line = 1
end_line = 25 ).
CREATE OBJECT lo_table_header
EXPORTING
text = `Tags`.
lo_alv->set_top_of_list( lo_table_header ).
lo_event = lo_alv->get_event( ).
SET HANDLER on_double_click FOR lo_event.
lo_alv->display( ).
CATCH cx_salv_error INTO lx_alv.
zcx_abapgit_exception=>raise( lx_alv->get_text( ) ).
ENDTRY.
clean_up( ).
ENDMETHOD.
METHOD zif_abapgit_tag_popups~tag_select_popup.
DATA: lt_tags TYPE zif_abapgit_definitions=>ty_git_tag_list_tt,
lv_answer TYPE c LENGTH 1,
lt_selection TYPE TABLE OF spopli,
lv_name_with_prefix TYPE string.
FIELD-SYMBOLS: <ls_sel> LIKE LINE OF lt_selection,
<ls_tag> LIKE LINE OF lt_tags.
lt_tags = zcl_abapgit_factory=>get_branch_overview( io_repo )->get_tags( ).
IF lines( lt_tags ) = 0.
zcx_abapgit_exception=>raise( `There are no tags for this repository` ).
ENDIF.
LOOP AT lt_tags ASSIGNING <ls_tag>.
INSERT INITIAL LINE INTO lt_selection INDEX 1 ASSIGNING <ls_sel>.
<ls_sel>-varoption = zcl_abapgit_git_tag=>remove_tag_prefix( <ls_tag>-name ).
ENDLOOP.
CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
EXPORTING
textline1 = 'Select tag'
titel = 'Select tag'
start_col = 30
start_row = 5
IMPORTING
answer = lv_answer
TABLES
t_spopli = lt_selection
EXCEPTIONS
not_enough_answers = 1
too_much_answers = 2
too_much_marks = 3
OTHERS = 4.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Error from POPUP_TO_DECIDE_LIST' ).
ENDIF.
IF lv_answer = 'A'.
RETURN.
ENDIF.
READ TABLE lt_selection ASSIGNING <ls_sel> WITH KEY selflag = abap_true.
ASSERT sy-subrc = 0.
lv_name_with_prefix = zcl_abapgit_git_tag=>add_tag_prefix( <ls_sel>-varoption ).
READ TABLE lt_tags ASSIGNING <ls_tag> WITH KEY name = lv_name_with_prefix.
ASSERT sy-subrc = 0.
rs_tag = <ls_tag>.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
12985,
62,
12924,
4739,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
198,
220,
10188,
9864,
1847,
48167,
1677,
5258,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
1976,
361,
62,
397,
499,
18300,
62,
12985,
62,
12924,
4739,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
12985,
62,
448,
13,
198,
220,
220,
220,
220,
220,
220,
220,
3268,
5097,
52,
7206,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
18300,
62,
12985,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
1767,
62,
4749,
41876,
7196,
62,
67,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
12985,
62,
448,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
774,
62,
12985,
62,
448,
41876,
49053,
9795,
43679,
3963,
1259,
62,
12985,
62,
448,
198,
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,
42865,
25,
198,
220,
220,
220,
220,
220,
45079,
62,
31499,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
256,
774,
62,
12985,
62,
448,
11,
198,
220,
220,
220,
220,
220,
6941,
62,
67,
8629,
62,
34924,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
67,
8629,
62,
34924,
11,
198,
220,
220,
220,
220,
220,
6941,
62,
5239,
62,
13716,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
5239,
19312,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
319,
62,
23352,
62,
12976,
7473,
49261,
4274,
62,
12976,
3963,
537,
62,
21680,
85,
62,
31534,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
5752,
5721,
11,
628,
220,
220,
220,
220,
220,
8335,
62,
31499,
62,
1640,
62,
13812,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
31499,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
18300,
62,
12985,
62,
4868,
62,
926,
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,
31499,
62,
448,
8,
41876,
256,
774,
62,
12985,
62,
448,
11,
628,
220,
220,
220,
220,
220,
3424,
62,
929,
11,
628,
220,
220,
220,
220,
220,
905,
62,
67,
8629,
62,
34924,
62,
4480,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5239,
41876,
4731,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
42197,
62,
47,
3185,
52,
3705,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
3424,
62,
929,
13,
628,
220,
220,
220,
16876,
6941,
62,
5239,
62,
13716,
3180,
347,
15919,
13,
628,
220,
220,
220,
220,
220,
6941,
62,
5239,
62,
13716,
3784,
20311,
1096,
7,
6739,
198,
220,
220,
220,
220,
220,
6941,
62,
5239,
62,
13716,
3784,
5787,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
429,
75,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
429,
75,
62,
10057,
62,
18224,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
513,
6739,
198,
220,
220,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
220,
220,
220,
220,
30301,
1503,
25,
6941,
62,
5239,
62,
13716,
13,
628,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
16876,
6941,
62,
67,
8629,
62,
34924,
3180,
347,
15919,
13,
628,
220,
220,
220,
220,
220,
6941,
62,
67,
8629,
62,
34924,
3784,
20311,
1096,
7,
6739,
198,
220,
220,
220,
220,
220,
6941,
62,
67,
8629,
62,
34924,
3784,
5787,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
429,
75,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
429,
75,
62,
10057,
62,
18224,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
513,
6739,
198,
220,
220,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
220,
220,
220,
220,
30301,
1503,
25,
6941,
62,
67,
8629,
62,
34924,
13,
628,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
319,
62,
23352,
62,
12976,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
12985,
29,
41876,
1259,
62,
12985,
62,
448,
13,
628,
220,
220,
220,
20832,
43679,
45079,
62,
31499,
24994,
3528,
15871,
1279,
7278,
62,
12985,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24413,
6369,
5752,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
6375,
1279,
7278,
62,
12985,
29,
12,
2618,
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,
905,
62,
67,
8629,
62,
34924,
62,
4480,
7,
1279
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_ale_log_converter_loki IMPLEMENTATION.
METHOD zif_ale_log_converter~convert.
LOOP AT logs ASSIGNING FIELD-SYMBOL(<log>).
DATA(object) = <log>-additional_fields[ field = 'object' ]-value.
DATA(loki_json) = |\{"streams": | &&
|[| &&
|\{ "labels": "\{ object=\\"{ object }\\" \}",| &&
|"entries": [| &&
|\{ "ts": "{ <log>-timestamp TIMESTAMP = ISO }Z", "line": "{ <log>-item_text }" \}| &&
|] \}]\}|.
converted_logs = VALUE #( BASE converted_logs ( json = loki_json ) ).
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
1000,
62,
6404,
62,
1102,
332,
353,
62,
75,
18228,
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,
1000,
62,
6404,
62,
1102,
332,
353,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
1000,
62,
6404,
62,
1102,
332,
353,
62,
75,
18228,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
1976,
361,
62,
1000,
62,
6404,
62,
1102,
332,
353,
93,
1102,
1851,
13,
628,
220,
220,
220,
17579,
3185,
5161,
17259,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
6404,
29,
737,
628,
220,
220,
220,
220,
220,
42865,
7,
15252,
8,
796,
1279,
6404,
29,
12,
2860,
1859,
62,
25747,
58,
2214,
796,
705,
15252,
6,
2361,
12,
8367,
13,
628,
220,
220,
220,
220,
220,
42865,
7,
75,
18228,
62,
17752,
8,
796,
930,
59,
4895,
5532,
82,
1298,
930,
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,
930,
58,
91,
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,
930,
59,
90,
366,
23912,
1424,
1298,
37082,
90,
2134,
28,
6852,
1,
90,
2134,
1782,
6852,
1,
3467,
92,
1600,
91,
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,
930,
1,
298,
1678,
1298,
49074,
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,
930,
59,
90,
366,
912,
1298,
45144,
1279,
6404,
29,
12,
16514,
27823,
31742,
6465,
23518,
796,
19694,
1782,
57,
1600,
366,
1370,
1298,
45144,
1279,
6404,
29,
12,
9186,
62,
5239,
1782,
1,
3467,
92,
91,
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,
930,
60,
3467,
92,
60,
59,
92,
91,
13,
628,
220,
220,
220,
220,
220,
11513,
62,
6404,
82,
796,
26173,
8924,
1303,
7,
49688,
11513,
62,
6404,
82,
357,
33918,
796,
300,
18228,
62,
17752,
1267,
6739,
628,
220,
220,
220,
23578,
21982,
3185,
13,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1
] |
* Copyright 2019 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
"! <h1>Watson Assistant v1</h1>
"! The IBM Watson™ Assistant service combines machine learning, natural
"! language understanding, and an integrated dialog editor to create conversation
"! flows between your apps and your users.
"!
"! The Assistant v1 API provides authoring methods your application can use to
"! create or update a workspace. <br/>
class ZCL_IBMC_ASSISTANT_V1 DEFINITION
public
inheriting from ZCL_IBMC_SERVICE_EXT
create public .
public section.
types:
"!
begin of T_DIA_ND_OTPT_TEXT_VALUES_ELEM,
TEXT type STRING,
end of T_DIA_ND_OTPT_TEXT_VALUES_ELEM.
types:
"! A mention of a contextual entity.
begin of T_MENTION,
ENTITY type STRING,
LOCATION type STANDARD TABLE OF INTEGER WITH NON-UNIQUE DEFAULT KEY,
end of T_MENTION.
types:
"!
begin of T_EXAMPLE,
TEXT type STRING,
MENTIONS type STANDARD TABLE OF T_MENTION WITH NON-UNIQUE DEFAULT KEY,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_EXAMPLE.
types:
"!
begin of T_INTENT,
INTENT type STRING,
DESCRIPTION type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
EXAMPLES type STANDARD TABLE OF T_EXAMPLE WITH NON-UNIQUE DEFAULT KEY,
end of T_INTENT.
types:
"!
begin of T_DIALOG_NODE_ACTION,
NAME type STRING,
TYPE type STRING,
PARAMETERS type MAP,
RESULT_VARIABLE type STRING,
CREDENTIALS type STRING,
end of T_DIALOG_NODE_ACTION.
types:
"! Workspace settings related to the disambiguation feature.
"!
"! **Note:** This feature is available only to Premium users.
begin of T_WS_SYSTM_STTNGS_DSMBGTN,
PROMPT type STRING,
NONE_OF_THE_ABOVE_PROMPT type STRING,
ENABLED type BOOLEAN,
SENSITIVITY type STRING,
end of T_WS_SYSTM_STTNGS_DSMBGTN.
types:
"! Options that modify how specified output is handled.
begin of T_DIALOG_NODE_OUTPUT_MODIFIERS,
OVERWRITE type BOOLEAN,
end of T_DIALOG_NODE_OUTPUT_MODIFIERS.
types:
"! The next step to execute following this dialog node.
begin of T_DIALOG_NODE_NEXT_STEP,
BEHAVIOR type STRING,
DIALOG_NODE type STRING,
SELECTOR type STRING,
end of T_DIALOG_NODE_NEXT_STEP.
types:
"! An input object that includes the input text.
begin of T_MESSAGE_INPUT,
TEXT type STRING,
end of T_MESSAGE_INPUT.
types:
"! A recognized capture group for a pattern-based entity.
begin of T_CAPTURE_GROUP,
GROUP type STRING,
LOCATION type STANDARD TABLE OF INTEGER WITH NON-UNIQUE DEFAULT KEY,
end of T_CAPTURE_GROUP.
types:
"! A term from the request that was identified as an entity.
begin of T_RUNTIME_ENTITY,
ENTITY type STRING,
LOCATION type STANDARD TABLE OF INTEGER WITH NON-UNIQUE DEFAULT KEY,
VALUE type STRING,
CONFIDENCE type NUMBER,
METADATA type MAP,
GROUPS type STANDARD TABLE OF T_CAPTURE_GROUP WITH NON-UNIQUE DEFAULT KEY,
end of T_RUNTIME_ENTITY.
types:
"! An intent identified in the user input.
begin of T_RUNTIME_INTENT,
INTENT type STRING,
CONFIDENCE type DOUBLE,
end of T_RUNTIME_INTENT.
types:
"! An object defining the message input to be sent to the Watson Assistant service
"! if the user selects the corresponding option.
begin of T_DIA_ND_OUTPUT_OPT_ELEM_VALUE,
INPUT type T_MESSAGE_INPUT,
INTENTS type STANDARD TABLE OF T_RUNTIME_INTENT WITH NON-UNIQUE DEFAULT KEY,
ENTITIES type STANDARD TABLE OF T_RUNTIME_ENTITY WITH NON-UNIQUE DEFAULT KEY,
end of T_DIA_ND_OUTPUT_OPT_ELEM_VALUE.
types:
"!
begin of T_DIA_NODE_OUTPUT_OPT_ELEMENT,
LABEL type STRING,
VALUE type T_DIA_ND_OUTPUT_OPT_ELEM_VALUE,
end of T_DIA_NODE_OUTPUT_OPT_ELEMENT.
types:
"!
begin of T_DIALOG_NODE_OUTPUT_GENERIC,
RESPONSE_TYPE type STRING,
VALUES type STANDARD TABLE OF T_DIA_ND_OTPT_TEXT_VALUES_ELEM WITH NON-UNIQUE DEFAULT KEY,
SELECTION_POLICY type STRING,
DELIMITER type STRING,
TIME type INTEGER,
TYPING type BOOLEAN,
SOURCE type STRING,
TITLE type STRING,
DESCRIPTION type STRING,
PREFERENCE type STRING,
OPTIONS type STANDARD TABLE OF T_DIA_NODE_OUTPUT_OPT_ELEMENT WITH NON-UNIQUE DEFAULT KEY,
MESSAGE_TO_HUMAN_AGENT type STRING,
QUERY type STRING,
QUERY_TYPE type STRING,
FILTER type STRING,
DISCOVERY_VERSION type STRING,
end of T_DIALOG_NODE_OUTPUT_GENERIC.
types:
"! The output of the dialog node. For more information about how to specify dialog
"! node output, see the
"! [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-d
"! ialog-overview#dialog-overview-responses).
begin of T_DIALOG_NODE_OUTPUT,
GENERIC type STANDARD TABLE OF T_DIALOG_NODE_OUTPUT_GENERIC WITH NON-UNIQUE DEFAULT KEY,
MODIFIERS type T_DIALOG_NODE_OUTPUT_MODIFIERS,
end of T_DIALOG_NODE_OUTPUT.
types:
"! Workspace settings related to the Watson Assistant user interface.
begin of T_WS_SYSTEM_SETTINGS_TOOLING,
STORE_GENERIC_RESPONSES type BOOLEAN,
end of T_WS_SYSTEM_SETTINGS_TOOLING.
types:
"! Global settings for the workspace.
begin of T_WORKSPACE_SYSTEM_SETTINGS,
TOOLING type T_WS_SYSTEM_SETTINGS_TOOLING,
DISAMBIGUATION type T_WS_SYSTM_STTNGS_DSMBGTN,
HUMAN_AGENT_ASSIST type MAP,
end of T_WORKSPACE_SYSTEM_SETTINGS.
types:
"!
begin of T_DIALOG_NODE,
DIALOG_NODE type STRING,
DESCRIPTION type STRING,
CONDITIONS type STRING,
PARENT type STRING,
PREVIOUS_SIBLING type STRING,
OUTPUT type T_DIALOG_NODE_OUTPUT,
CONTEXT type MAP,
METADATA type MAP,
NEXT_STEP type T_DIALOG_NODE_NEXT_STEP,
TITLE type STRING,
TYPE type STRING,
EVENT_NAME type STRING,
VARIABLE type STRING,
ACTIONS type STANDARD TABLE OF T_DIALOG_NODE_ACTION WITH NON-UNIQUE DEFAULT KEY,
DIGRESS_IN type STRING,
DIGRESS_OUT type STRING,
DIGRESS_OUT_SLOTS type STRING,
USER_LABEL type STRING,
DISABLED type BOOLEAN,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_DIALOG_NODE.
types:
"!
begin of T_VALUE,
VALUE type STRING,
METADATA type MAP,
TYPE type STRING,
SYNONYMS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
PATTERNS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_VALUE.
types:
"!
begin of T_COUNTEREXAMPLE,
TEXT type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_COUNTEREXAMPLE.
types:
"!
begin of T_ENTITY,
ENTITY type STRING,
DESCRIPTION type STRING,
METADATA type MAP,
FUZZY_MATCH type BOOLEAN,
CREATED type DATETIME,
UPDATED type DATETIME,
VALUES type STANDARD TABLE OF T_VALUE WITH NON-UNIQUE DEFAULT KEY,
end of T_ENTITY.
types:
"!
begin of T_WORKSPACE,
NAME type STRING,
DESCRIPTION type STRING,
LANGUAGE type STRING,
METADATA type MAP,
LEARNING_OPT_OUT type BOOLEAN,
SYSTEM_SETTINGS type T_WORKSPACE_SYSTEM_SETTINGS,
WORKSPACE_ID type STRING,
STATUS type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
INTENTS type STANDARD TABLE OF T_INTENT WITH NON-UNIQUE DEFAULT KEY,
ENTITIES type STANDARD TABLE OF T_ENTITY WITH NON-UNIQUE DEFAULT KEY,
DIALOG_NODES type STANDARD TABLE OF T_DIALOG_NODE WITH NON-UNIQUE DEFAULT KEY,
COUNTEREXAMPLES type STANDARD TABLE OF T_COUNTEREXAMPLE WITH NON-UNIQUE DEFAULT KEY,
end of T_WORKSPACE.
types:
"!
begin of T_RT_ENTTY_INTRPRTTN_SYS_NUM,
NUMERIC_VALUE type NUMBER,
RANGE_LINK type STRING,
SUBTYPE type STRING,
end of T_RT_ENTTY_INTRPRTTN_SYS_NUM.
types:
"!
begin of T_UPDATE_COUNTEREXAMPLE,
TEXT type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_UPDATE_COUNTEREXAMPLE.
types:
"!
begin of T_SYNONYM,
SYNONYM type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_SYNONYM.
types:
"! The pagination data for the returned objects.
begin of T_PAGINATION,
REFRESH_URL type STRING,
NEXT_URL type STRING,
TOTAL type INTEGER,
MATCHED type INTEGER,
REFRESH_CURSOR type STRING,
NEXT_CURSOR type STRING,
end of T_PAGINATION.
types:
"!
begin of T_SYNONYM_COLLECTION,
SYNONYMS type STANDARD TABLE OF T_SYNONYM WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_SYNONYM_COLLECTION.
types:
"!
begin of T_RUNTIME_RESPONSE_TYPE_OPTION,
TITLE type STRING,
DESCRIPTION type STRING,
PREFERENCE type STRING,
OPTIONS type STANDARD TABLE OF T_DIA_NODE_OUTPUT_OPT_ELEMENT WITH NON-UNIQUE DEFAULT KEY,
end of T_RUNTIME_RESPONSE_TYPE_OPTION.
types:
"! Log message details.
begin of T_LOG_MESSAGE,
LEVEL type STRING,
MSG type STRING,
end of T_LOG_MESSAGE.
types:
"! An array of objects describing the entities for the workspace.
begin of T_ENTITY_COLLECTION,
ENTITIES type STANDARD TABLE OF T_ENTITY WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_ENTITY_COLLECTION.
types:
"!
begin of T_DIA_ND_OUTPUT_RESP_TYPE_TEXT,
VALUES type STANDARD TABLE OF T_DIA_ND_OTPT_TEXT_VALUES_ELEM WITH NON-UNIQUE DEFAULT KEY,
SELECTION_POLICY type STRING,
DELIMITER type STRING,
end of T_DIA_ND_OUTPUT_RESP_TYPE_TEXT.
types:
"!
begin of T_INTENT_COLLECTION,
INTENTS type STANDARD TABLE OF T_INTENT WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_INTENT_COLLECTION.
types:
"!
begin of T_DIA_ND_OTPT_RESP_TYPE_PAUSE,
TIME type INTEGER,
TYPING type BOOLEAN,
end of T_DIA_ND_OTPT_RESP_TYPE_PAUSE.
types:
"!
begin of T_BASE_WORKSPACE,
NAME type STRING,
DESCRIPTION type STRING,
LANGUAGE type STRING,
METADATA type MAP,
LEARNING_OPT_OUT type BOOLEAN,
SYSTEM_SETTINGS type T_WORKSPACE_SYSTEM_SETTINGS,
WORKSPACE_ID type STRING,
STATUS type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_BASE_WORKSPACE.
types:
"!
begin of T_DIA_SUGGESTION_RESP_GENERIC,
RESPONSE_TYPE type STRING,
TEXT type STRING,
TIME type INTEGER,
TYPING type BOOLEAN,
SOURCE type STRING,
TITLE type STRING,
DESCRIPTION type STRING,
PREFERENCE type STRING,
OPTIONS type STANDARD TABLE OF T_DIA_NODE_OUTPUT_OPT_ELEMENT WITH NON-UNIQUE DEFAULT KEY,
MESSAGE_TO_HUMAN_AGENT type STRING,
TOPIC type STRING,
DIALOG_NODE type STRING,
end of T_DIA_SUGGESTION_RESP_GENERIC.
types:
"!
begin of T_DIA_ND_OUTPUT_RESP_TYPE_IMG,
SOURCE type STRING,
TITLE type STRING,
DESCRIPTION type STRING,
end of T_DIA_ND_OUTPUT_RESP_TYPE_IMG.
types:
"!
begin of T_ERROR_DETAIL,
MESSAGE type STRING,
PATH type STRING,
end of T_ERROR_DETAIL.
types:
"!
begin of T_ERROR_RESPONSE,
ERROR type STRING,
ERRORS type STANDARD TABLE OF T_ERROR_DETAIL WITH NON-UNIQUE DEFAULT KEY,
CODE type INTEGER,
end of T_ERROR_RESPONSE.
types:
"! Workspace settings related to the behavior of system entities.
begin of T_WS_SYSTM_STTNGS_SYSTM_ENTTS,
ENABLED type BOOLEAN,
end of T_WS_SYSTM_STTNGS_SYSTM_ENTTS.
types:
"!
begin of T_RT_ENTITY_INTERPRETATION,
CALENDAR_TYPE type STRING,
DATETIME_LINK type STRING,
FESTIVAL type STRING,
GRANULARITY type STRING,
RANGE_LINK type STRING,
RANGE_MODIFIER type STRING,
RELATIVE_DAY type NUMBER,
RELATIVE_MONTH type NUMBER,
RELATIVE_WEEK type NUMBER,
RELATIVE_WEEKEND type NUMBER,
RELATIVE_YEAR type NUMBER,
SPECIFIC_DAY type NUMBER,
SPECIFIC_DAY_OF_WEEK type STRING,
SPECIFIC_MONTH type NUMBER,
SPECIFIC_QUARTER type NUMBER,
SPECIFIC_YEAR type NUMBER,
NUMERIC_VALUE type NUMBER,
SUBTYPE type STRING,
PART_OF_DAY type STRING,
RELATIVE_HOUR type NUMBER,
RELATIVE_MINUTE type NUMBER,
RELATIVE_SECOND type NUMBER,
SPECIFIC_HOUR type NUMBER,
SPECIFIC_MINUTE type NUMBER,
SPECIFIC_SECOND type NUMBER,
TIMEZONE type STRING,
end of T_RT_ENTITY_INTERPRETATION.
types:
"! An object defining the message input, intents, and entities to be sent to the
"! Watson Assistant service if the user selects the corresponding disambiguation
"! option.
begin of T_DIALOG_SUGGESTION_VALUE,
INPUT type T_MESSAGE_INPUT,
INTENTS type STANDARD TABLE OF T_RUNTIME_INTENT WITH NON-UNIQUE DEFAULT KEY,
ENTITIES type STANDARD TABLE OF T_RUNTIME_ENTITY WITH NON-UNIQUE DEFAULT KEY,
end of T_DIALOG_SUGGESTION_VALUE.
types:
"!
begin of T_DIALOG_NODE_VISITED_DETAILS,
DIALOG_NODE type STRING,
TITLE type STRING,
CONDITIONS type STRING,
end of T_DIALOG_NODE_VISITED_DETAILS.
types:
"! The dialog output that will be returned from the Watson Assistant service if the
"! user selects the corresponding option.
begin of T_DIALOG_SUGGESTION_OUTPUT,
NODES_VISITED type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
NODES_VISITED_DETAILS type STANDARD TABLE OF T_DIALOG_NODE_VISITED_DETAILS WITH NON-UNIQUE DEFAULT KEY,
TEXT type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
GENERIC type STANDARD TABLE OF T_DIA_SUGGESTION_RESP_GENERIC WITH NON-UNIQUE DEFAULT KEY,
end of T_DIALOG_SUGGESTION_OUTPUT.
types:
"!
begin of T_BASE_ENTITY,
ENTITY type STRING,
DESCRIPTION type STRING,
METADATA type MAP,
FUZZY_MATCH type BOOLEAN,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_BASE_ENTITY.
types:
"!
begin of T_RUNTIME_RESPONSE_TYPE_TEXT,
TEXT type STRING,
end of T_RUNTIME_RESPONSE_TYPE_TEXT.
types:
"! For internal use only.
T_SYSTEM_RESPONSE type MAP.
types:
"! Metadata related to the message.
begin of T_MESSAGE_CONTEXT_METADATA,
DEPLOYMENT type STRING,
USER_ID type STRING,
end of T_MESSAGE_CONTEXT_METADATA.
types:
"! State information for the conversation. To maintain state, include the context
"! from the previous response.
begin of T_CONTEXT,
CONVERSATION_ID type STRING,
SYSTEM type T_SYSTEM_RESPONSE,
METADATA type T_MESSAGE_CONTEXT_METADATA,
end of T_CONTEXT.
types:
"!
begin of T_RT_ENTTY_INTRPRTTN_SYS_TIME,
DATETIME_LINK type STRING,
GRANULARITY type STRING,
PART_OF_DAY type STRING,
RANGE_LINK type STRING,
RELATIVE_HOUR type NUMBER,
RELATIVE_MINUTE type NUMBER,
RELATIVE_SECOND type NUMBER,
SPECIFIC_HOUR type NUMBER,
SPECIFIC_MINUTE type NUMBER,
SPECIFIC_SECOND type NUMBER,
TIMEZONE type STRING,
end of T_RT_ENTTY_INTRPRTTN_SYS_TIME.
types:
"!
begin of T_UPDATE_EXAMPLE,
TEXT type STRING,
MENTIONS type STANDARD TABLE OF T_MENTION WITH NON-UNIQUE DEFAULT KEY,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_UPDATE_EXAMPLE.
types:
"!
begin of T_DIALOG_SUGGESTION,
LABEL type STRING,
VALUE type T_DIALOG_SUGGESTION_VALUE,
OUTPUT type T_DIALOG_SUGGESTION_OUTPUT,
DIALOG_NODE type STRING,
end of T_DIALOG_SUGGESTION.
types:
"!
begin of T_RUNTIME_RESPONSE_GENERIC,
RESPONSE_TYPE type STRING,
TEXT type STRING,
TIME type INTEGER,
TYPING type BOOLEAN,
SOURCE type STRING,
TITLE type STRING,
DESCRIPTION type STRING,
PREFERENCE type STRING,
OPTIONS type STANDARD TABLE OF T_DIA_NODE_OUTPUT_OPT_ELEMENT WITH NON-UNIQUE DEFAULT KEY,
MESSAGE_TO_HUMAN_AGENT type STRING,
TOPIC type STRING,
DIALOG_NODE type STRING,
SUGGESTIONS type STANDARD TABLE OF T_DIALOG_SUGGESTION WITH NON-UNIQUE DEFAULT KEY,
end of T_RUNTIME_RESPONSE_GENERIC.
types:
"! An output object that includes the response to the user, the dialog nodes that
"! were triggered, and messages from the log.
begin of T_OUTPUT_DATA,
NODES_VISITED type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
NODES_VISITED_DETAILS type STANDARD TABLE OF T_DIALOG_NODE_VISITED_DETAILS WITH NON-UNIQUE DEFAULT KEY,
LOG_MESSAGES type STANDARD TABLE OF T_LOG_MESSAGE WITH NON-UNIQUE DEFAULT KEY,
TEXT type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
GENERIC type STANDARD TABLE OF T_RUNTIME_RESPONSE_GENERIC WITH NON-UNIQUE DEFAULT KEY,
end of T_OUTPUT_DATA.
types:
"!
begin of T_BASE_MESSAGE,
INPUT type T_MESSAGE_INPUT,
INTENTS type STANDARD TABLE OF T_RUNTIME_INTENT WITH NON-UNIQUE DEFAULT KEY,
ENTITIES type STANDARD TABLE OF T_RUNTIME_ENTITY WITH NON-UNIQUE DEFAULT KEY,
ALTERNATE_INTENTS type BOOLEAN,
CONTEXT type T_CONTEXT,
OUTPUT type T_OUTPUT_DATA,
ACTIONS type STANDARD TABLE OF T_DIALOG_NODE_ACTION WITH NON-UNIQUE DEFAULT KEY,
end of T_BASE_MESSAGE.
types:
"! An object describing a contextual entity mention.
begin of T_ENTITY_MENTION,
TEXT type STRING,
INTENT type STRING,
LOCATION type STANDARD TABLE OF INTEGER WITH NON-UNIQUE DEFAULT KEY,
end of T_ENTITY_MENTION.
types:
"!
begin of T_RT_RESPONSE_TYPE_SUGGESTION,
TITLE type STRING,
SUGGESTIONS type STANDARD TABLE OF T_DIALOG_SUGGESTION WITH NON-UNIQUE DEFAULT KEY,
end of T_RT_RESPONSE_TYPE_SUGGESTION.
types:
"!
begin of T_ENTITY_MENTION_COLLECTION,
EXAMPLES type STANDARD TABLE OF T_ENTITY_MENTION WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_ENTITY_MENTION_COLLECTION.
types:
"!
begin of T_UPDATE_SYNONYM,
SYNONYM type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_UPDATE_SYNONYM.
types:
"!
begin of T_DIA_ND_OTPT_RESP_TYP_SRCH_S1,
QUERY type STRING,
QUERY_TYPE type STRING,
FILTER type STRING,
DISCOVERY_VERSION type STRING,
end of T_DIA_ND_OTPT_RESP_TYP_SRCH_S1.
types:
"!
begin of T_EXAMPLE_COLLECTION,
EXAMPLES type STANDARD TABLE OF T_EXAMPLE WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_EXAMPLE_COLLECTION.
types:
"! The pagination data for the returned objects.
begin of T_LOG_PAGINATION,
NEXT_URL type STRING,
MATCHED type INTEGER,
NEXT_CURSOR type STRING,
end of T_LOG_PAGINATION.
types:
"!
begin of T_RT_RESP_TYP_CONNECT_TO_AGENT,
MESSAGE_TO_HUMAN_AGENT type STRING,
TOPIC type STRING,
DIALOG_NODE type STRING,
end of T_RT_RESP_TYP_CONNECT_TO_AGENT.
types:
"!
begin of T_CREATE_VALUE,
VALUE type STRING,
METADATA type MAP,
TYPE type STRING,
SYNONYMS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
PATTERNS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_CREATE_VALUE.
types:
"!
begin of T_BASE_INTENT,
INTENT type STRING,
DESCRIPTION type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_BASE_INTENT.
types:
"!
T_EMPTY_RESPONSE type JSONOBJECT.
types:
"!
begin of T_UPDATE_VALUE,
VALUE type STRING,
METADATA type MAP,
TYPE type STRING,
SYNONYMS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
PATTERNS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_UPDATE_VALUE.
types:
"! An alternative value for the recognized entity.
begin of T_RUNTIME_ENTITY_ALTERNATIVE,
VALUE type STRING,
CONFIDENCE type NUMBER,
end of T_RUNTIME_ENTITY_ALTERNATIVE.
types:
"!
begin of T_RT_ENTTY_INTRPRTTN_SYS_DATE,
CALENDAR_TYPE type STRING,
DATETIME_LINK type STRING,
FESTIVAL type STRING,
GRANULARITY type STRING,
RANGE_LINK type STRING,
RANGE_MODIFIER type STRING,
RELATIVE_DAY type NUMBER,
RELATIVE_MONTH type NUMBER,
RELATIVE_WEEK type NUMBER,
RELATIVE_WEEKEND type NUMBER,
RELATIVE_YEAR type NUMBER,
SPECIFIC_DAY type NUMBER,
SPECIFIC_DAY_OF_WEEK type STRING,
SPECIFIC_MONTH type NUMBER,
SPECIFIC_QUARTER type NUMBER,
SPECIFIC_YEAR type NUMBER,
end of T_RT_ENTTY_INTRPRTTN_SYS_DATE.
types:
"!
begin of T_UPDATE_INTENT,
INTENT type STRING,
DESCRIPTION type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
EXAMPLES type STANDARD TABLE OF T_EXAMPLE WITH NON-UNIQUE DEFAULT KEY,
end of T_UPDATE_INTENT.
types:
"!
begin of T_VALUE_COLLECTION,
VALUES type STANDARD TABLE OF T_VALUE WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_VALUE_COLLECTION.
types:
"! An object describing the role played by a system entity that is specifies the
"! beginning or end of a range recognized in the user input.
"!
"! This property is part of the new system entities, which are a beta feature.
begin of T_RUNTIME_ENTITY_ROLE,
TYPE type STRING,
end of T_RUNTIME_ENTITY_ROLE.
types:
"!
begin of T_DIA_ND_OUTPUT_RESP_TYPE_OPT,
TITLE type STRING,
DESCRIPTION type STRING,
PREFERENCE type STRING,
OPTIONS type STANDARD TABLE OF T_DIA_NODE_OUTPUT_OPT_ELEMENT WITH NON-UNIQUE DEFAULT KEY,
end of T_DIA_ND_OUTPUT_RESP_TYPE_OPT.
types:
"!
begin of T_BASE_COUNTEREXAMPLE,
TEXT type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_BASE_COUNTEREXAMPLE.
types:
"!
begin of T_RUNTIME_RESPONSE_TYPE_IMAGE,
SOURCE type STRING,
TITLE type STRING,
DESCRIPTION type STRING,
end of T_RUNTIME_RESPONSE_TYPE_IMAGE.
types:
"!
begin of T_CREATE_INTENT,
INTENT type STRING,
DESCRIPTION type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
EXAMPLES type STANDARD TABLE OF T_EXAMPLE WITH NON-UNIQUE DEFAULT KEY,
end of T_CREATE_INTENT.
types:
"!
begin of T_CREATE_ENTITY,
ENTITY type STRING,
DESCRIPTION type STRING,
METADATA type MAP,
FUZZY_MATCH type BOOLEAN,
CREATED type DATETIME,
UPDATED type DATETIME,
VALUES type STANDARD TABLE OF T_CREATE_VALUE WITH NON-UNIQUE DEFAULT KEY,
end of T_CREATE_ENTITY.
types:
"!
begin of T_UPDATE_WORKSPACE,
NAME type STRING,
DESCRIPTION type STRING,
LANGUAGE type STRING,
METADATA type MAP,
LEARNING_OPT_OUT type BOOLEAN,
SYSTEM_SETTINGS type T_WORKSPACE_SYSTEM_SETTINGS,
WORKSPACE_ID type STRING,
STATUS type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
INTENTS type STANDARD TABLE OF T_CREATE_INTENT WITH NON-UNIQUE DEFAULT KEY,
ENTITIES type STANDARD TABLE OF T_CREATE_ENTITY WITH NON-UNIQUE DEFAULT KEY,
DIALOG_NODES type STANDARD TABLE OF T_DIALOG_NODE WITH NON-UNIQUE DEFAULT KEY,
COUNTEREXAMPLES type STANDARD TABLE OF T_COUNTEREXAMPLE WITH NON-UNIQUE DEFAULT KEY,
end of T_UPDATE_WORKSPACE.
types:
"! An array of dialog nodes.
begin of T_DIALOG_NODE_COLLECTION,
DIALOG_NODES type STANDARD TABLE OF T_DIALOG_NODE WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_DIALOG_NODE_COLLECTION.
types:
"!
begin of T_BASE_DIALOG_NODE,
DIALOG_NODE type STRING,
DESCRIPTION type STRING,
CONDITIONS type STRING,
PARENT type STRING,
PREVIOUS_SIBLING type STRING,
OUTPUT type T_DIALOG_NODE_OUTPUT,
CONTEXT type MAP,
METADATA type MAP,
NEXT_STEP type T_DIALOG_NODE_NEXT_STEP,
TITLE type STRING,
TYPE type STRING,
EVENT_NAME type STRING,
VARIABLE type STRING,
ACTIONS type STANDARD TABLE OF T_DIALOG_NODE_ACTION WITH NON-UNIQUE DEFAULT KEY,
DIGRESS_IN type STRING,
DIGRESS_OUT type STRING,
DIGRESS_OUT_SLOTS type STRING,
USER_LABEL type STRING,
DISABLED type BOOLEAN,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_BASE_DIALOG_NODE.
types:
"! The response sent by the workspace, including the output text, detected intents
"! and entities, and context.
begin of T_MESSAGE_RESPONSE,
INPUT type T_MESSAGE_INPUT,
INTENTS type STANDARD TABLE OF T_RUNTIME_INTENT WITH NON-UNIQUE DEFAULT KEY,
ENTITIES type STANDARD TABLE OF T_RUNTIME_ENTITY WITH NON-UNIQUE DEFAULT KEY,
ALTERNATE_INTENTS type BOOLEAN,
CONTEXT type T_CONTEXT,
OUTPUT type T_OUTPUT_DATA,
ACTIONS type STANDARD TABLE OF T_DIALOG_NODE_ACTION WITH NON-UNIQUE DEFAULT KEY,
end of T_MESSAGE_RESPONSE.
types:
"!
begin of T_BASE_VALUE,
VALUE type STRING,
METADATA type MAP,
TYPE type STRING,
SYNONYMS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
PATTERNS type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_BASE_VALUE.
types:
"! A request sent to the workspace, including the user input and context.
begin of T_MESSAGE_REQUEST,
INPUT type T_MESSAGE_INPUT,
INTENTS type STANDARD TABLE OF T_RUNTIME_INTENT WITH NON-UNIQUE DEFAULT KEY,
ENTITIES type STANDARD TABLE OF T_RUNTIME_ENTITY WITH NON-UNIQUE DEFAULT KEY,
ALTERNATE_INTENTS type BOOLEAN,
CONTEXT type T_CONTEXT,
OUTPUT type T_OUTPUT_DATA,
ACTIONS type STANDARD TABLE OF T_DIALOG_NODE_ACTION WITH NON-UNIQUE DEFAULT KEY,
end of T_MESSAGE_REQUEST.
types:
"!
begin of T_LOG,
REQUEST type T_MESSAGE_REQUEST,
RESPONSE type T_MESSAGE_RESPONSE,
LOG_ID type STRING,
REQUEST_TIMESTAMP type STRING,
RESPONSE_TIMESTAMP type STRING,
WORKSPACE_ID type STRING,
LANGUAGE type STRING,
end of T_LOG.
types:
"!
begin of T_UPDATE_ENTITY,
ENTITY type STRING,
DESCRIPTION type STRING,
METADATA type MAP,
FUZZY_MATCH type BOOLEAN,
CREATED type DATETIME,
UPDATED type DATETIME,
VALUES type STANDARD TABLE OF T_CREATE_VALUE WITH NON-UNIQUE DEFAULT KEY,
end of T_UPDATE_ENTITY.
types:
"! An output object that includes the response to the user, the dialog nodes that
"! were triggered, and messages from the log.
begin of T_BASE_OUTPUT,
NODES_VISITED type STANDARD TABLE OF STRING WITH NON-UNIQUE DEFAULT KEY,
NODES_VISITED_DETAILS type STANDARD TABLE OF T_DIALOG_NODE_VISITED_DETAILS WITH NON-UNIQUE DEFAULT KEY,
end of T_BASE_OUTPUT.
types:
"!
begin of T_UPDATE_DIALOG_NODE,
DIALOG_NODE type STRING,
DESCRIPTION type STRING,
CONDITIONS type STRING,
PARENT type STRING,
PREVIOUS_SIBLING type STRING,
OUTPUT type T_DIALOG_NODE_OUTPUT,
CONTEXT type MAP,
METADATA type MAP,
NEXT_STEP type T_DIALOG_NODE_NEXT_STEP,
TITLE type STRING,
TYPE type STRING,
EVENT_NAME type STRING,
VARIABLE type STRING,
ACTIONS type STANDARD TABLE OF T_DIALOG_NODE_ACTION WITH NON-UNIQUE DEFAULT KEY,
DIGRESS_IN type STRING,
DIGRESS_OUT type STRING,
DIGRESS_OUT_SLOTS type STRING,
USER_LABEL type STRING,
DISABLED type BOOLEAN,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_UPDATE_DIALOG_NODE.
types:
"!
begin of T_RUNTIME_RESPONSE_TYPE_PAUSE,
TIME type INTEGER,
TYPING type BOOLEAN,
end of T_RUNTIME_RESPONSE_TYPE_PAUSE.
types:
"!
begin of T_LOG_COLLECTION,
LOGS type STANDARD TABLE OF T_LOG WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_LOG_PAGINATION,
end of T_LOG_COLLECTION.
types:
"!
begin of T_DIA_ND_OTPT_RESP_TYP_CNNCT_1,
MESSAGE_TO_HUMAN_AGENT type STRING,
end of T_DIA_ND_OTPT_RESP_TYP_CNNCT_1.
types:
"!
begin of T_AUDIT_PROPERTIES,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_AUDIT_PROPERTIES.
types:
"!
begin of T_CREATE_WORKSPACE,
NAME type STRING,
DESCRIPTION type STRING,
LANGUAGE type STRING,
METADATA type MAP,
LEARNING_OPT_OUT type BOOLEAN,
SYSTEM_SETTINGS type T_WORKSPACE_SYSTEM_SETTINGS,
WORKSPACE_ID type STRING,
STATUS type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
INTENTS type STANDARD TABLE OF T_CREATE_INTENT WITH NON-UNIQUE DEFAULT KEY,
ENTITIES type STANDARD TABLE OF T_CREATE_ENTITY WITH NON-UNIQUE DEFAULT KEY,
DIALOG_NODES type STANDARD TABLE OF T_DIALOG_NODE WITH NON-UNIQUE DEFAULT KEY,
COUNTEREXAMPLES type STANDARD TABLE OF T_COUNTEREXAMPLE WITH NON-UNIQUE DEFAULT KEY,
end of T_CREATE_WORKSPACE.
types:
"!
begin of T_COUNTEREXAMPLE_COLLECTION,
COUNTEREXAMPLES type STANDARD TABLE OF T_COUNTEREXAMPLE WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_COUNTEREXAMPLE_COLLECTION.
types:
"!
begin of T_WORKSPACE_COLLECTION,
WORKSPACES type STANDARD TABLE OF T_WORKSPACE WITH NON-UNIQUE DEFAULT KEY,
PAGINATION type T_PAGINATION,
end of T_WORKSPACE_COLLECTION.
types:
"!
begin of T_BASE_SYNONYM,
SYNONYM type STRING,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_BASE_SYNONYM.
types:
"!
begin of T_BASE_EXAMPLE,
TEXT type STRING,
MENTIONS type STANDARD TABLE OF T_MENTION WITH NON-UNIQUE DEFAULT KEY,
CREATED type DATETIME,
UPDATED type DATETIME,
end of T_BASE_EXAMPLE.
constants:
begin of C_REQUIRED_FIELDS,
T_DIA_ND_OTPT_TEXT_VALUES_ELEM type string value '|',
T_MENTION type string value '|ENTITY|LOCATION|',
T_EXAMPLE type string value '|TEXT|',
T_INTENT type string value '|INTENT|',
T_DIALOG_NODE_ACTION type string value '|NAME|RESULT_VARIABLE|',
T_WS_SYSTM_STTNGS_DSMBGTN type string value '|',
T_DIALOG_NODE_OUTPUT_MODIFIERS type string value '|',
T_DIALOG_NODE_NEXT_STEP type string value '|BEHAVIOR|',
T_MESSAGE_INPUT type string value '|',
T_CAPTURE_GROUP type string value '|GROUP|',
T_RUNTIME_ENTITY type string value '|ENTITY|LOCATION|VALUE|',
T_RUNTIME_INTENT type string value '|INTENT|CONFIDENCE|',
T_DIA_ND_OUTPUT_OPT_ELEM_VALUE type string value '|',
T_DIA_NODE_OUTPUT_OPT_ELEMENT type string value '|LABEL|VALUE|',
T_DIALOG_NODE_OUTPUT_GENERIC type string value '|RESPONSE_TYPE|',
T_DIALOG_NODE_OUTPUT type string value '|',
T_WS_SYSTEM_SETTINGS_TOOLING type string value '|',
T_WORKSPACE_SYSTEM_SETTINGS type string value '|',
T_DIALOG_NODE type string value '|DIALOG_NODE|',
T_VALUE type string value '|VALUE|TYPE|',
T_COUNTEREXAMPLE type string value '|TEXT|',
T_ENTITY type string value '|ENTITY|',
T_WORKSPACE type string value '|NAME|LANGUAGE|LEARNING_OPT_OUT|WORKSPACE_ID|',
T_RT_ENTTY_INTRPRTTN_SYS_NUM type string value '|',
T_UPDATE_COUNTEREXAMPLE type string value '|',
T_SYNONYM type string value '|SYNONYM|',
T_PAGINATION type string value '|REFRESH_URL|',
T_SYNONYM_COLLECTION type string value '|SYNONYMS|PAGINATION|',
T_RUNTIME_RESPONSE_TYPE_OPTION type string value '|',
T_LOG_MESSAGE type string value '|LEVEL|MSG|',
T_ENTITY_COLLECTION type string value '|ENTITIES|PAGINATION|',
T_DIA_ND_OUTPUT_RESP_TYPE_TEXT type string value '|',
T_INTENT_COLLECTION type string value '|INTENTS|PAGINATION|',
T_DIA_ND_OTPT_RESP_TYPE_PAUSE type string value '|',
T_BASE_WORKSPACE type string value '|',
T_DIA_SUGGESTION_RESP_GENERIC type string value '|RESPONSE_TYPE|',
T_DIA_ND_OUTPUT_RESP_TYPE_IMG type string value '|',
T_ERROR_DETAIL type string value '|MESSAGE|',
T_ERROR_RESPONSE type string value '|ERROR|CODE|',
T_WS_SYSTM_STTNGS_SYSTM_ENTTS type string value '|',
T_RT_ENTITY_INTERPRETATION type string value '|',
T_DIALOG_SUGGESTION_VALUE type string value '|',
T_DIALOG_NODE_VISITED_DETAILS type string value '|',
T_DIALOG_SUGGESTION_OUTPUT type string value '|TEXT|',
T_BASE_ENTITY type string value '|',
T_RUNTIME_RESPONSE_TYPE_TEXT type string value '|',
T_MESSAGE_CONTEXT_METADATA type string value '|',
T_CONTEXT type string value '|',
T_RT_ENTTY_INTRPRTTN_SYS_TIME type string value '|',
T_UPDATE_EXAMPLE type string value '|',
T_DIALOG_SUGGESTION type string value '|LABEL|VALUE|',
T_RUNTIME_RESPONSE_GENERIC type string value '|RESPONSE_TYPE|',
T_OUTPUT_DATA type string value '|LOG_MESSAGES|TEXT|',
T_BASE_MESSAGE type string value '|',
T_ENTITY_MENTION type string value '|TEXT|INTENT|LOCATION|',
T_RT_RESPONSE_TYPE_SUGGESTION type string value '|',
T_ENTITY_MENTION_COLLECTION type string value '|EXAMPLES|PAGINATION|',
T_UPDATE_SYNONYM type string value '|',
T_DIA_ND_OTPT_RESP_TYP_SRCH_S1 type string value '|',
T_EXAMPLE_COLLECTION type string value '|EXAMPLES|PAGINATION|',
T_LOG_PAGINATION type string value '|',
T_RT_RESP_TYP_CONNECT_TO_AGENT type string value '|',
T_CREATE_VALUE type string value '|VALUE|',
T_BASE_INTENT type string value '|',
T_UPDATE_VALUE type string value '|',
T_RUNTIME_ENTITY_ALTERNATIVE type string value '|',
T_RT_ENTTY_INTRPRTTN_SYS_DATE type string value '|',
T_UPDATE_INTENT type string value '|',
T_VALUE_COLLECTION type string value '|VALUES|PAGINATION|',
T_RUNTIME_ENTITY_ROLE type string value '|',
T_DIA_ND_OUTPUT_RESP_TYPE_OPT type string value '|',
T_BASE_COUNTEREXAMPLE type string value '|',
T_RUNTIME_RESPONSE_TYPE_IMAGE type string value '|',
T_CREATE_INTENT type string value '|INTENT|',
T_CREATE_ENTITY type string value '|ENTITY|',
T_UPDATE_WORKSPACE type string value '|',
T_DIALOG_NODE_COLLECTION type string value '|DIALOG_NODES|PAGINATION|',
T_BASE_DIALOG_NODE type string value '|',
T_MESSAGE_RESPONSE type string value '|INPUT|INTENTS|ENTITIES|CONTEXT|OUTPUT|',
T_BASE_VALUE type string value '|',
T_MESSAGE_REQUEST type string value '|',
T_LOG type string value '|REQUEST|RESPONSE|LOG_ID|REQUEST_TIMESTAMP|RESPONSE_TIMESTAMP|WORKSPACE_ID|LANGUAGE|',
T_UPDATE_ENTITY type string value '|',
T_BASE_OUTPUT type string value '|',
T_UPDATE_DIALOG_NODE type string value '|',
T_RUNTIME_RESPONSE_TYPE_PAUSE type string value '|',
T_LOG_COLLECTION type string value '|LOGS|PAGINATION|',
T_DIA_ND_OTPT_RESP_TYP_CNNCT_1 type string value '|',
T_AUDIT_PROPERTIES type string value '|',
T_CREATE_WORKSPACE type string value '|',
T_COUNTEREXAMPLE_COLLECTION type string value '|COUNTEREXAMPLES|PAGINATION|',
T_WORKSPACE_COLLECTION type string value '|WORKSPACES|PAGINATION|',
T_BASE_SYNONYM type string value '|',
T_BASE_EXAMPLE type string value '|',
__DUMMY type string value SPACE,
end of C_REQUIRED_FIELDS .
constants:
begin of C_ABAPNAME_DICTIONARY,
CREATED type string value 'created',
UPDATED type string value 'updated',
TEXT type string value 'text',
DIALOG_NODE type string value 'dialog_node',
DESCRIPTION type string value 'description',
CONDITIONS type string value 'conditions',
PARENT type string value 'parent',
PREVIOUS_SIBLING type string value 'previous_sibling',
OUTPUT type string value 'output',
CONTEXT type string value 'context',
INNER type string value 'inner',
METADATA type string value 'metadata',
NEXT_STEP type string value 'next_step',
TITLE type string value 'title',
TYPE type string value 'type',
EVENT_NAME type string value 'event_name',
VARIABLE type string value 'variable',
ACTIONS type string value 'actions',
DIGRESS_IN type string value 'digress_in',
DIGRESS_OUT type string value 'digress_out',
DIGRESS_OUT_SLOTS type string value 'digress_out_slots',
USER_LABEL type string value 'user_label',
DISABLED type string value 'disabled',
ENTITY type string value 'entity',
FUZZY_MATCH type string value 'fuzzy_match',
MENTIONS type string value 'mentions',
INTENT type string value 'intent',
INPUT type string value 'input',
INTENTS type string value 'intents',
ENTITIES type string value 'entities',
ALTERNATE_INTENTS type string value 'alternate_intents',
SYNONYM type string value 'synonym',
VALUE type string value 'value',
SYNONYMS type string value 'synonyms',
PATTERNS type string value 'patterns',
PATTERN type string value 'pattern',
NAME type string value 'name',
LANGUAGE type string value 'language',
LEARNING_OPT_OUT type string value 'learning_opt_out',
SYSTEM_SETTINGS type string value 'system_settings',
WORKSPACE_ID type string value 'workspace_id',
STATUS type string value 'status',
GROUP type string value 'group',
LOCATION type string value 'location',
CONVERSATION_ID type string value 'conversation_id',
SYSTEM type string value 'system',
COUNTEREXAMPLES type string value 'counterexamples',
PAGINATION type string value 'pagination',
VALUES type string value 'values',
EXAMPLES type string value 'examples',
EXAMPLE type string value 'example',
DIALOG_NODES type string value 'dialog_nodes',
DIALOGNODE type string value 'dialogNode',
COUNTEREXAMPLE type string value 'counterexample',
PARAMETERS type string value 'parameters',
RESULT_VARIABLE type string value 'result_variable',
CREDENTIALS type string value 'credentials',
GENERIC type string value 'generic',
MODIFIERS type string value 'modifiers',
OVERWRITE type string value 'overwrite',
RESPONSE_TYPE type string value 'response_type',
SELECTION_POLICY type string value 'selection_policy',
DELIMITER type string value 'delimiter',
TIME type string value 'time',
TYPING type string value 'typing',
SOURCE type string value 'source',
PREFERENCE type string value 'preference',
OPTIONS type string value 'options',
MESSAGE_TO_HUMAN_AGENT type string value 'message_to_human_agent',
QUERY type string value 'query',
QUERY_TYPE type string value 'query_type',
FILTER type string value 'filter',
DISCOVERY_VERSION type string value 'discovery_version',
TOPIC type string value 'topic',
SUGGESTIONS type string value 'suggestions',
LABEL type string value 'label',
NODES_VISITED type string value 'nodes_visited',
NODESVISITED type string value 'nodesVisited',
NODES_VISITED_DETAILS type string value 'nodes_visited_details',
NODESVISITEDDETAILS type string value 'nodesVisitedDetails',
DIALOGNODES type string value 'dialogNodes',
BEHAVIOR type string value 'behavior',
SELECTOR type string value 'selector',
MESSAGE type string value 'message',
PATH type string value 'path',
ERROR type string value 'error',
ERRORS type string value 'errors',
CODE type string value 'code',
LOGS type string value 'logs',
LEVEL type string value 'level',
MSG type string value 'msg',
REQUEST type string value 'request',
RESPONSE type string value 'response',
LOG_ID type string value 'log_id',
REQUEST_TIMESTAMP type string value 'request_timestamp',
RESPONSE_TIMESTAMP type string value 'response_timestamp',
NEXT_URL type string value 'next_url',
MATCHED type string value 'matched',
NEXT_CURSOR type string value 'next_cursor',
DEPLOYMENT type string value 'deployment',
USER_ID type string value 'user_id',
LOG_MESSAGES type string value 'log_messages',
LOGMESSAGES type string value 'logMessages',
REFRESH_URL type string value 'refresh_url',
TOTAL type string value 'total',
REFRESH_CURSOR type string value 'refresh_cursor',
CONFIDENCE type string value 'confidence',
GROUPS type string value 'groups',
CALENDAR_TYPE type string value 'calendar_type',
DATETIME_LINK type string value 'datetime_link',
FESTIVAL type string value 'festival',
GRANULARITY type string value 'granularity',
RANGE_LINK type string value 'range_link',
RANGE_MODIFIER type string value 'range_modifier',
RELATIVE_DAY type string value 'relative_day',
RELATIVE_MONTH type string value 'relative_month',
RELATIVE_WEEK type string value 'relative_week',
RELATIVE_WEEKEND type string value 'relative_weekend',
RELATIVE_YEAR type string value 'relative_year',
SPECIFIC_DAY type string value 'specific_day',
SPECIFIC_DAY_OF_WEEK type string value 'specific_day_of_week',
SPECIFIC_MONTH type string value 'specific_month',
SPECIFIC_QUARTER type string value 'specific_quarter',
SPECIFIC_YEAR type string value 'specific_year',
NUMERIC_VALUE type string value 'numeric_value',
SUBTYPE type string value 'subtype',
PART_OF_DAY type string value 'part_of_day',
RELATIVE_HOUR type string value 'relative_hour',
RELATIVE_MINUTE type string value 'relative_minute',
RELATIVE_SECOND type string value 'relative_second',
SPECIFIC_HOUR type string value 'specific_hour',
SPECIFIC_MINUTE type string value 'specific_minute',
SPECIFIC_SECOND type string value 'specific_second',
TIMEZONE type string value 'timezone',
TOOLING type string value 'tooling',
DISAMBIGUATION type string value 'disambiguation',
HUMAN_AGENT_ASSIST type string value 'human_agent_assist',
ENABLED type string value 'enabled',
STORE_GENERIC_RESPONSES type string value 'store_generic_responses',
PROMPT type string value 'prompt',
NONE_OF_THE_ABOVE_PROMPT type string value 'none_of_the_above_prompt',
SENSITIVITY type string value 'sensitivity',
WORKSPACES type string value 'workspaces',
end of C_ABAPNAME_DICTIONARY .
methods GET_APPNAME
redefinition .
methods GET_REQUEST_PROP
redefinition .
methods GET_SDK_VERSION_DATE
redefinition .
"! Get response to user input.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_body |
"! The message to be sent. This includes the user's input, along with optional
"! intents, entities, and context from the last response.
"! @parameter I_nodes_visited_details |
"! Whether to include additional diagnostic information about the dialog nodes that
"! were visited during processing of the message.
"! @parameter E_RESPONSE |
"! Service return value of type T_MESSAGE_RESPONSE
"!
methods MESSAGE
importing
!I_workspace_id type STRING
!I_body type T_MESSAGE_REQUEST optional
!I_nodes_visited_details type BOOLEAN default c_boolean_false
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_MESSAGE_RESPONSE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List workspaces.
"!
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_sort |
"! The attribute by which returned workspaces will be sorted. To reverse the sort
"! order, prefix the value with a minus sign (`-`).
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_WORKSPACE_COLLECTION
"!
methods LIST_WORKSPACES
importing
!I_page_limit type INTEGER optional
!I_sort type STRING optional
!I_cursor type STRING optional
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_WORKSPACE_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Create workspace.
"!
"! @parameter I_body |
"! The content of the new workspace.
"!
"! The maximum size for this data is 50MB. If you need to import a larger
"! workspace, consider importing the workspace without intents and entities and
"! then adding them separately.
"! @parameter E_RESPONSE |
"! Service return value of type T_WORKSPACE
"!
methods CREATE_WORKSPACE
importing
!I_body type T_CREATE_WORKSPACE optional
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_WORKSPACE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Get information about a workspace.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_export |
"! Whether to include all element content in the returned data. If
"! **export**=`false`, the returned data includes only information about the
"! element itself. If **export**=`true`, all content, including subelements, is
"! included.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter I_sort |
"! Indicates how the returned workspace data will be sorted. This parameter is
"! valid only if **export**=`true`. Specify `sort=stable` to sort all workspace
"! objects by unique identifier, in ascending alphabetical order.
"! @parameter E_RESPONSE |
"! Service return value of type T_WORKSPACE
"!
methods GET_WORKSPACE
importing
!I_workspace_id type STRING
!I_export type BOOLEAN default c_boolean_false
!I_include_audit type BOOLEAN default c_boolean_false
!I_sort type STRING optional
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_WORKSPACE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Update workspace.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_body |
"! Valid data defining the new and updated workspace content.
"!
"! The maximum size for this data is 50MB. If you need to import a larger amount of
"! workspace data, consider importing components such as intents and entities
"! using separate operations.
"! @parameter I_append |
"! Whether the new data is to be appended to the existing data in the workspace. If
"! **append**=`false`, elements included in the new data completely replace the
"! corresponding existing elements, including all subelements. For example, if the
"! new data includes **entities** and **append**=`false`, all existing entities in
"! the workspace are discarded and replaced with the new entities.
"!
"! If **append**=`true`, existing elements are preserved, and the new elements are
"! added. If any elements in the new data collide with existing elements, the
"! update request fails.
"! @parameter E_RESPONSE |
"! Service return value of type T_WORKSPACE
"!
methods UPDATE_WORKSPACE
importing
!I_workspace_id type STRING
!I_body type T_UPDATE_WORKSPACE optional
!I_append type BOOLEAN default c_boolean_false
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_WORKSPACE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete workspace.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"!
methods DELETE_WORKSPACE
importing
!I_workspace_id type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List intents.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_export |
"! Whether to include all element content in the returned data. If
"! **export**=`false`, the returned data includes only information about the
"! element itself. If **export**=`true`, all content, including subelements, is
"! included.
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_sort |
"! The attribute by which returned intents will be sorted. To reverse the sort
"! order, prefix the value with a minus sign (`-`).
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_INTENT_COLLECTION
"!
methods LIST_INTENTS
importing
!I_workspace_id type STRING
!I_export type BOOLEAN default c_boolean_false
!I_page_limit type INTEGER optional
!I_sort type STRING optional
!I_cursor type STRING optional
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_INTENT_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Create intent.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_body |
"! The content of the new intent.
"! @parameter E_RESPONSE |
"! Service return value of type T_INTENT
"!
methods CREATE_INTENT
importing
!I_workspace_id type STRING
!I_body type T_CREATE_INTENT
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_INTENT
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Get intent.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_intent |
"! The intent name.
"! @parameter I_export |
"! Whether to include all element content in the returned data. If
"! **export**=`false`, the returned data includes only information about the
"! element itself. If **export**=`true`, all content, including subelements, is
"! included.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_INTENT
"!
methods GET_INTENT
importing
!I_workspace_id type STRING
!I_intent type STRING
!I_export type BOOLEAN default c_boolean_false
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_INTENT
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Update intent.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_intent |
"! The intent name.
"! @parameter I_body |
"! The updated content of the intent.
"!
"! Any elements included in the new data will completely replace the equivalent
"! existing elements, including all subelements. (Previously existing subelements
"! are not retained unless they are also included in the new data.) For example,
"! if you update the user input examples for an intent, the previously existing
"! examples are discarded and replaced with the new examples specified in the
"! update.
"! @parameter E_RESPONSE |
"! Service return value of type T_INTENT
"!
methods UPDATE_INTENT
importing
!I_workspace_id type STRING
!I_intent type STRING
!I_body type T_UPDATE_INTENT
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_INTENT
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete intent.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_intent |
"! The intent name.
"!
methods DELETE_INTENT
importing
!I_workspace_id type STRING
!I_intent type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List user input examples.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_intent |
"! The intent name.
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_sort |
"! The attribute by which returned examples will be sorted. To reverse the sort
"! order, prefix the value with a minus sign (`-`).
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_EXAMPLE_COLLECTION
"!
methods LIST_EXAMPLES
importing
!I_workspace_id type STRING
!I_intent type STRING
!I_page_limit type INTEGER optional
!I_sort type STRING optional
!I_cursor type STRING optional
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_EXAMPLE_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Create user input example.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_intent |
"! The intent name.
"! @parameter I_body |
"! The content of the new user input example.
"! @parameter E_RESPONSE |
"! Service return value of type T_EXAMPLE
"!
methods CREATE_EXAMPLE
importing
!I_workspace_id type STRING
!I_intent type STRING
!I_body type T_EXAMPLE
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_EXAMPLE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Get user input example.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_intent |
"! The intent name.
"! @parameter I_text |
"! The text of the user input example.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_EXAMPLE
"!
methods GET_EXAMPLE
importing
!I_workspace_id type STRING
!I_intent type STRING
!I_text type STRING
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_EXAMPLE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Update user input example.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_intent |
"! The intent name.
"! @parameter I_text |
"! The text of the user input example.
"! @parameter I_body |
"! The new text of the user input example.
"! @parameter E_RESPONSE |
"! Service return value of type T_EXAMPLE
"!
methods UPDATE_EXAMPLE
importing
!I_workspace_id type STRING
!I_intent type STRING
!I_text type STRING
!I_body type T_UPDATE_EXAMPLE
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_EXAMPLE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete user input example.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_intent |
"! The intent name.
"! @parameter I_text |
"! The text of the user input example.
"!
methods DELETE_EXAMPLE
importing
!I_workspace_id type STRING
!I_intent type STRING
!I_text type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List counterexamples.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_sort |
"! The attribute by which returned counterexamples will be sorted. To reverse the
"! sort order, prefix the value with a minus sign (`-`).
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_COUNTEREXAMPLE_COLLECTION
"!
methods LIST_COUNTEREXAMPLES
importing
!I_workspace_id type STRING
!I_page_limit type INTEGER optional
!I_sort type STRING optional
!I_cursor type STRING optional
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_COUNTEREXAMPLE_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Create counterexample.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_body |
"! The content of the new counterexample.
"! @parameter E_RESPONSE |
"! Service return value of type T_COUNTEREXAMPLE
"!
methods CREATE_COUNTEREXAMPLE
importing
!I_workspace_id type STRING
!I_body type T_COUNTEREXAMPLE
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_COUNTEREXAMPLE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Get counterexample.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_text |
"! The text of a user input counterexample (for example, `What are you wearing?`).
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_COUNTEREXAMPLE
"!
methods GET_COUNTEREXAMPLE
importing
!I_workspace_id type STRING
!I_text type STRING
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_COUNTEREXAMPLE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Update counterexample.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_text |
"! The text of a user input counterexample (for example, `What are you wearing?`).
"! @parameter I_body |
"! The text of the counterexample.
"! @parameter E_RESPONSE |
"! Service return value of type T_COUNTEREXAMPLE
"!
methods UPDATE_COUNTEREXAMPLE
importing
!I_workspace_id type STRING
!I_text type STRING
!I_body type T_UPDATE_COUNTEREXAMPLE
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_COUNTEREXAMPLE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete counterexample.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_text |
"! The text of a user input counterexample (for example, `What are you wearing?`).
"!
methods DELETE_COUNTEREXAMPLE
importing
!I_workspace_id type STRING
!I_text type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List entities.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_export |
"! Whether to include all element content in the returned data. If
"! **export**=`false`, the returned data includes only information about the
"! element itself. If **export**=`true`, all content, including subelements, is
"! included.
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_sort |
"! The attribute by which returned entities will be sorted. To reverse the sort
"! order, prefix the value with a minus sign (`-`).
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_ENTITY_COLLECTION
"!
methods LIST_ENTITIES
importing
!I_workspace_id type STRING
!I_export type BOOLEAN default c_boolean_false
!I_page_limit type INTEGER optional
!I_sort type STRING optional
!I_cursor type STRING optional
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_ENTITY_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Create entity.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_body |
"! The content of the new entity.
"! @parameter E_RESPONSE |
"! Service return value of type T_ENTITY
"!
methods CREATE_ENTITY
importing
!I_workspace_id type STRING
!I_body type T_CREATE_ENTITY
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_ENTITY
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Get entity.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_export |
"! Whether to include all element content in the returned data. If
"! **export**=`false`, the returned data includes only information about the
"! element itself. If **export**=`true`, all content, including subelements, is
"! included.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_ENTITY
"!
methods GET_ENTITY
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_export type BOOLEAN default c_boolean_false
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_ENTITY
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Update entity.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_body |
"! The updated content of the entity. Any elements included in the new data will
"! completely replace the equivalent existing elements, including all subelements.
"! (Previously existing subelements are not retained unless they are also included
"! in the new data.) For example, if you update the values for an entity, the
"! previously existing values are discarded and replaced with the new values
"! specified in the update.
"! @parameter E_RESPONSE |
"! Service return value of type T_ENTITY
"!
methods UPDATE_ENTITY
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_body type T_UPDATE_ENTITY
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_ENTITY
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete entity.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"!
methods DELETE_ENTITY
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List entity mentions.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_export |
"! Whether to include all element content in the returned data. If
"! **export**=`false`, the returned data includes only information about the
"! element itself. If **export**=`true`, all content, including subelements, is
"! included.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_ENTITY_MENTION_COLLECTION
"!
methods LIST_MENTIONS
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_export type BOOLEAN default c_boolean_false
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_ENTITY_MENTION_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List entity values.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_export |
"! Whether to include all element content in the returned data. If
"! **export**=`false`, the returned data includes only information about the
"! element itself. If **export**=`true`, all content, including subelements, is
"! included.
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_sort |
"! The attribute by which returned entity values will be sorted. To reverse the
"! sort order, prefix the value with a minus sign (`-`).
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_VALUE_COLLECTION
"!
methods LIST_VALUES
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_export type BOOLEAN default c_boolean_false
!I_page_limit type INTEGER optional
!I_sort type STRING optional
!I_cursor type STRING optional
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_VALUE_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Create entity value.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_body |
"! The new entity value.
"! @parameter E_RESPONSE |
"! Service return value of type T_VALUE
"!
methods CREATE_VALUE
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_body type T_CREATE_VALUE
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_VALUE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Get entity value.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_value |
"! The text of the entity value.
"! @parameter I_export |
"! Whether to include all element content in the returned data. If
"! **export**=`false`, the returned data includes only information about the
"! element itself. If **export**=`true`, all content, including subelements, is
"! included.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_VALUE
"!
methods GET_VALUE
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_value type STRING
!I_export type BOOLEAN default c_boolean_false
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_VALUE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Update entity value.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_value |
"! The text of the entity value.
"! @parameter I_body |
"! The updated content of the entity value.
"!
"! Any elements included in the new data will completely replace the equivalent
"! existing elements, including all subelements. (Previously existing subelements
"! are not retained unless they are also included in the new data.) For example,
"! if you update the synonyms for an entity value, the previously existing
"! synonyms are discarded and replaced with the new synonyms specified in the
"! update.
"! @parameter E_RESPONSE |
"! Service return value of type T_VALUE
"!
methods UPDATE_VALUE
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_value type STRING
!I_body type T_UPDATE_VALUE
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_VALUE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete entity value.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_value |
"! The text of the entity value.
"!
methods DELETE_VALUE
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_value type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List entity value synonyms.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_value |
"! The text of the entity value.
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_sort |
"! The attribute by which returned entity value synonyms will be sorted. To reverse
"! the sort order, prefix the value with a minus sign (`-`).
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_SYNONYM_COLLECTION
"!
methods LIST_SYNONYMS
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_value type STRING
!I_page_limit type INTEGER optional
!I_sort type STRING optional
!I_cursor type STRING optional
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_SYNONYM_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Create entity value synonym.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_value |
"! The text of the entity value.
"! @parameter I_body |
"! The new synonym.
"! @parameter E_RESPONSE |
"! Service return value of type T_SYNONYM
"!
methods CREATE_SYNONYM
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_value type STRING
!I_body type T_SYNONYM
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_SYNONYM
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Get entity value synonym.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_value |
"! The text of the entity value.
"! @parameter I_synonym |
"! The text of the synonym.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_SYNONYM
"!
methods GET_SYNONYM
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_value type STRING
!I_synonym type STRING
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_SYNONYM
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Update entity value synonym.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_value |
"! The text of the entity value.
"! @parameter I_synonym |
"! The text of the synonym.
"! @parameter I_body |
"! The updated entity value synonym.
"! @parameter E_RESPONSE |
"! Service return value of type T_SYNONYM
"!
methods UPDATE_SYNONYM
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_value type STRING
!I_synonym type STRING
!I_body type T_UPDATE_SYNONYM
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_SYNONYM
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete entity value synonym.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_entity |
"! The name of the entity.
"! @parameter I_value |
"! The text of the entity value.
"! @parameter I_synonym |
"! The text of the synonym.
"!
methods DELETE_SYNONYM
importing
!I_workspace_id type STRING
!I_entity type STRING
!I_value type STRING
!I_synonym type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List dialog nodes.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_sort |
"! The attribute by which returned dialog nodes will be sorted. To reverse the sort
"! order, prefix the value with a minus sign (`-`).
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_DIALOG_NODE_COLLECTION
"!
methods LIST_DIALOG_NODES
importing
!I_workspace_id type STRING
!I_page_limit type INTEGER optional
!I_sort type STRING optional
!I_cursor type STRING optional
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_DIALOG_NODE_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Create dialog node.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_body |
"! A CreateDialogNode object defining the content of the new dialog node.
"! @parameter E_RESPONSE |
"! Service return value of type T_DIALOG_NODE
"!
methods CREATE_DIALOG_NODE
importing
!I_workspace_id type STRING
!I_body type T_DIALOG_NODE
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_DIALOG_NODE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Get dialog node.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_dialog_node |
"! The dialog node ID (for example, `get_order`).
"! @parameter I_include_audit |
"! Whether to include the audit properties (`created` and `updated` timestamps) in
"! the response.
"! @parameter E_RESPONSE |
"! Service return value of type T_DIALOG_NODE
"!
methods GET_DIALOG_NODE
importing
!I_workspace_id type STRING
!I_dialog_node type STRING
!I_include_audit type BOOLEAN default c_boolean_false
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_DIALOG_NODE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Update dialog node.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_dialog_node |
"! The dialog node ID (for example, `get_order`).
"! @parameter I_body |
"! The updated content of the dialog node.
"!
"! Any elements included in the new data will completely replace the equivalent
"! existing elements, including all subelements. (Previously existing subelements
"! are not retained unless they are also included in the new data.) For example,
"! if you update the actions for a dialog node, the previously existing actions
"! are discarded and replaced with the new actions specified in the update.
"! @parameter E_RESPONSE |
"! Service return value of type T_DIALOG_NODE
"!
methods UPDATE_DIALOG_NODE
importing
!I_workspace_id type STRING
!I_dialog_node type STRING
!I_body type T_UPDATE_DIALOG_NODE
!I_contenttype type string default 'application/json'
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_DIALOG_NODE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete dialog node.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_dialog_node |
"! The dialog node ID (for example, `get_order`).
"!
methods DELETE_DIALOG_NODE
importing
!I_workspace_id type STRING
!I_dialog_node type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List log events in a workspace.
"!
"! @parameter I_workspace_id |
"! Unique identifier of the workspace.
"! @parameter I_sort |
"! How to sort the returned log events. You can sort by **request_timestamp**. To
"! reverse the sort order, prefix the parameter value with a minus sign (`-`).
"! @parameter I_filter |
"! A cacheable parameter that limits the results to those matching the specified
"! filter. For more information, see the
"! [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-f
"! ilter-reference#filter-reference).
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter E_RESPONSE |
"! Service return value of type T_LOG_COLLECTION
"!
methods LIST_LOGS
importing
!I_workspace_id type STRING
!I_sort type STRING optional
!I_filter type STRING optional
!I_page_limit type INTEGER optional
!I_cursor type STRING optional
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_LOG_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! List log events in all workspaces.
"!
"! @parameter I_filter |
"! A cacheable parameter that limits the results to those matching the specified
"! filter. You must specify a filter query that includes a value for `language`,
"! as well as a value for `workspace_id` or `request.context.metadata.deployment`.
"! For more information, see the
"! [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-f
"! ilter-reference#filter-reference).
"! @parameter I_sort |
"! How to sort the returned log events. You can sort by **request_timestamp**. To
"! reverse the sort order, prefix the parameter value with a minus sign (`-`).
"! @parameter I_page_limit |
"! The number of records to return in each page of results.
"! @parameter I_cursor |
"! A token identifying the page of results to retrieve.
"! @parameter E_RESPONSE |
"! Service return value of type T_LOG_COLLECTION
"!
methods LIST_ALL_LOGS
importing
!I_filter type STRING
!I_sort type STRING optional
!I_page_limit type INTEGER optional
!I_cursor type STRING optional
!I_accept type string default 'application/json'
exporting
!E_RESPONSE type T_LOG_COLLECTION
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! Delete labeled data.
"!
"! @parameter I_customer_id |
"! The customer ID for which all data is to be deleted.
"!
methods DELETE_USER_DATA
importing
!I_customer_id type STRING
!I_accept type string default 'application/json'
raising
ZCX_IBMC_SERVICE_EXCEPTION .
protected section.
private section.
methods SET_DEFAULT_QUERY_PARAMETERS
changing
!C_URL type TS_URL .
ENDCLASS.
class ZCL_IBMC_ASSISTANT_V1 IMPLEMENTATION.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_APPNAME
* +-------------------------------------------------------------------------------------------------+
* | [<-()] E_APPNAME TYPE STRING
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_APPNAME.
e_appname = 'Watson Assistant v1'.
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Protected Method ZCL_IBMC_ASSISTANT_V1->GET_REQUEST_PROP
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_AUTH_METHOD TYPE STRING (default =C_DEFAULT)
* | [<-()] E_REQUEST_PROP TYPE TS_REQUEST_PROP
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_REQUEST_PROP.
data:
lv_auth_method type string ##NEEDED.
e_request_prop = super->get_request_prop( ).
lv_auth_method = i_auth_method.
if lv_auth_method eq c_default.
lv_auth_method = 'IAM'.
endif.
if lv_auth_method is initial.
e_request_prop-auth_basic = c_boolean_false.
e_request_prop-auth_oauth = c_boolean_false.
e_request_prop-auth_apikey = c_boolean_false.
elseif lv_auth_method eq 'IAM'.
e_request_prop-auth_name = 'IAM'.
e_request_prop-auth_type = 'apiKey'.
e_request_prop-auth_headername = 'Authorization'.
e_request_prop-auth_header = c_boolean_true.
elseif lv_auth_method eq 'ICP4D'.
e_request_prop-auth_name = 'ICP4D'.
e_request_prop-auth_type = 'apiKey'.
e_request_prop-auth_headername = 'Authorization'.
e_request_prop-auth_header = c_boolean_true.
elseif lv_auth_method eq 'basicAuth'.
e_request_prop-auth_name = 'basicAuth'.
e_request_prop-auth_type = 'http'.
e_request_prop-auth_basic = c_boolean_true.
else.
endif.
e_request_prop-url-protocol = 'http'.
e_request_prop-url-host = 'localhost'.
e_request_prop-url-path_base = '/assistant/api'.
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_SDK_VERSION_DATE
* +-------------------------------------------------------------------------------------------------+
* | [<-()] E_SDK_VERSION_DATE TYPE STRING
* +--------------------------------------------------------------------------------------</SIGNATURE>
method get_sdk_version_date.
e_sdk_version_date = '20191002122834'.
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->MESSAGE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_body TYPE T_MESSAGE_REQUEST(optional)
* | [--->] I_nodes_visited_details TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_MESSAGE_RESPONSE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method MESSAGE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/message'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_nodes_visited_details is supplied.
lv_queryparam = i_nodes_visited_details.
add_query_parameter(
exporting
i_parameter = `nodes_visited_details`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
if not i_body is initial.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_WORKSPACES
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_WORKSPACE_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_WORKSPACES.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces'.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->CREATE_WORKSPACE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_body TYPE T_CREATE_WORKSPACE(optional)
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_WORKSPACE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CREATE_WORKSPACE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces'.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
if not i_body is initial.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_WORKSPACE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_export TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_WORKSPACE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_WORKSPACE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_export is supplied.
lv_queryparam = i_export.
add_query_parameter(
exporting
i_parameter = `export`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->UPDATE_WORKSPACE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_body TYPE T_UPDATE_WORKSPACE(optional)
* | [--->] I_append TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_WORKSPACE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method UPDATE_WORKSPACE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_append is supplied.
lv_queryparam = i_append.
add_query_parameter(
exporting
i_parameter = `append`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
if not i_body is initial.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_WORKSPACE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_WORKSPACE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_INTENTS
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_export TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_INTENT_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_INTENTS.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_export is supplied.
lv_queryparam = i_export.
add_query_parameter(
exporting
i_parameter = `export`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->CREATE_INTENT
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_body TYPE T_CREATE_INTENT
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_INTENT
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CREATE_INTENT.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_INTENT
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_intent TYPE STRING
* | [--->] I_export TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_INTENT
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_INTENT.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents/{intent}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{intent}` in ls_request_prop-url-path with i_intent ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_export is supplied.
lv_queryparam = i_export.
add_query_parameter(
exporting
i_parameter = `export`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->UPDATE_INTENT
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_intent TYPE STRING
* | [--->] I_body TYPE T_UPDATE_INTENT
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_INTENT
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method UPDATE_INTENT.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents/{intent}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{intent}` in ls_request_prop-url-path with i_intent ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_INTENT
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_intent TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_INTENT.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents/{intent}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{intent}` in ls_request_prop-url-path with i_intent ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_EXAMPLES
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_intent TYPE STRING
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_EXAMPLE_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_EXAMPLES.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents/{intent}/examples'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{intent}` in ls_request_prop-url-path with i_intent ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->CREATE_EXAMPLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_intent TYPE STRING
* | [--->] I_body TYPE T_EXAMPLE
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_EXAMPLE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CREATE_EXAMPLE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents/{intent}/examples'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{intent}` in ls_request_prop-url-path with i_intent ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_EXAMPLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_intent TYPE STRING
* | [--->] I_text TYPE STRING
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_EXAMPLE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_EXAMPLE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents/{intent}/examples/{text}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{intent}` in ls_request_prop-url-path with i_intent ignoring case.
replace all occurrences of `{text}` in ls_request_prop-url-path with i_text ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->UPDATE_EXAMPLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_intent TYPE STRING
* | [--->] I_text TYPE STRING
* | [--->] I_body TYPE T_UPDATE_EXAMPLE
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_EXAMPLE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method UPDATE_EXAMPLE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents/{intent}/examples/{text}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{intent}` in ls_request_prop-url-path with i_intent ignoring case.
replace all occurrences of `{text}` in ls_request_prop-url-path with i_text ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_EXAMPLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_intent TYPE STRING
* | [--->] I_text TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_EXAMPLE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/intents/{intent}/examples/{text}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{intent}` in ls_request_prop-url-path with i_intent ignoring case.
replace all occurrences of `{text}` in ls_request_prop-url-path with i_text ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_COUNTEREXAMPLES
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_COUNTEREXAMPLE_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_COUNTEREXAMPLES.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/counterexamples'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->CREATE_COUNTEREXAMPLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_body TYPE T_COUNTEREXAMPLE
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_COUNTEREXAMPLE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CREATE_COUNTEREXAMPLE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/counterexamples'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_COUNTEREXAMPLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_text TYPE STRING
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_COUNTEREXAMPLE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_COUNTEREXAMPLE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/counterexamples/{text}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{text}` in ls_request_prop-url-path with i_text ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->UPDATE_COUNTEREXAMPLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_text TYPE STRING
* | [--->] I_body TYPE T_UPDATE_COUNTEREXAMPLE
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_COUNTEREXAMPLE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method UPDATE_COUNTEREXAMPLE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/counterexamples/{text}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{text}` in ls_request_prop-url-path with i_text ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_COUNTEREXAMPLE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_text TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_COUNTEREXAMPLE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/counterexamples/{text}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{text}` in ls_request_prop-url-path with i_text ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_ENTITIES
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_export TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_ENTITY_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_ENTITIES.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_export is supplied.
lv_queryparam = i_export.
add_query_parameter(
exporting
i_parameter = `export`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->CREATE_ENTITY
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_body TYPE T_CREATE_ENTITY
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_ENTITY
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CREATE_ENTITY.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_ENTITY
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_export TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_ENTITY
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_ENTITY.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_export is supplied.
lv_queryparam = i_export.
add_query_parameter(
exporting
i_parameter = `export`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->UPDATE_ENTITY
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_body TYPE T_UPDATE_ENTITY
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_ENTITY
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method UPDATE_ENTITY.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_ENTITY
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_ENTITY.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_MENTIONS
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_export TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_ENTITY_MENTION_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_MENTIONS.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/mentions'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_export is supplied.
lv_queryparam = i_export.
add_query_parameter(
exporting
i_parameter = `export`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_VALUES
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_export TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_VALUE_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_VALUES.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_export is supplied.
lv_queryparam = i_export.
add_query_parameter(
exporting
i_parameter = `export`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->CREATE_VALUE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_body TYPE T_CREATE_VALUE
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_VALUE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CREATE_VALUE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_VALUE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_value TYPE STRING
* | [--->] I_export TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_VALUE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_VALUE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values/{value}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
replace all occurrences of `{value}` in ls_request_prop-url-path with i_value ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_export is supplied.
lv_queryparam = i_export.
add_query_parameter(
exporting
i_parameter = `export`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->UPDATE_VALUE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_value TYPE STRING
* | [--->] I_body TYPE T_UPDATE_VALUE
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_VALUE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method UPDATE_VALUE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values/{value}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
replace all occurrences of `{value}` in ls_request_prop-url-path with i_value ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_VALUE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_value TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_VALUE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values/{value}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
replace all occurrences of `{value}` in ls_request_prop-url-path with i_value ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_SYNONYMS
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_value TYPE STRING
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_SYNONYM_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_SYNONYMS.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values/{value}/synonyms'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
replace all occurrences of `{value}` in ls_request_prop-url-path with i_value ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->CREATE_SYNONYM
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_value TYPE STRING
* | [--->] I_body TYPE T_SYNONYM
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_SYNONYM
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CREATE_SYNONYM.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values/{value}/synonyms'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
replace all occurrences of `{value}` in ls_request_prop-url-path with i_value ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_SYNONYM
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_value TYPE STRING
* | [--->] I_synonym TYPE STRING
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_SYNONYM
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_SYNONYM.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values/{value}/synonyms/{synonym}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
replace all occurrences of `{value}` in ls_request_prop-url-path with i_value ignoring case.
replace all occurrences of `{synonym}` in ls_request_prop-url-path with i_synonym ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->UPDATE_SYNONYM
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_value TYPE STRING
* | [--->] I_synonym TYPE STRING
* | [--->] I_body TYPE T_UPDATE_SYNONYM
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_SYNONYM
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method UPDATE_SYNONYM.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values/{value}/synonyms/{synonym}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
replace all occurrences of `{value}` in ls_request_prop-url-path with i_value ignoring case.
replace all occurrences of `{synonym}` in ls_request_prop-url-path with i_synonym ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_SYNONYM
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_entity TYPE STRING
* | [--->] I_value TYPE STRING
* | [--->] I_synonym TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_SYNONYM.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/entities/{entity}/values/{value}/synonyms/{synonym}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{entity}` in ls_request_prop-url-path with i_entity ignoring case.
replace all occurrences of `{value}` in ls_request_prop-url-path with i_value ignoring case.
replace all occurrences of `{synonym}` in ls_request_prop-url-path with i_synonym ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_DIALOG_NODES
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_DIALOG_NODE_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_DIALOG_NODES.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/dialog_nodes'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->CREATE_DIALOG_NODE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_body TYPE T_DIALOG_NODE
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_DIALOG_NODE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method CREATE_DIALOG_NODE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/dialog_nodes'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->GET_DIALOG_NODE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_dialog_node TYPE STRING
* | [--->] I_include_audit TYPE BOOLEAN (default =c_boolean_false)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_DIALOG_NODE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method GET_DIALOG_NODE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/dialog_nodes/{dialog_node}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{dialog_node}` in ls_request_prop-url-path with i_dialog_node ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_include_audit is supplied.
lv_queryparam = i_include_audit.
add_query_parameter(
exporting
i_parameter = `include_audit`
i_value = lv_queryparam
i_is_boolean = c_boolean_true
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->UPDATE_DIALOG_NODE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_dialog_node TYPE STRING
* | [--->] I_body TYPE T_UPDATE_DIALOG_NODE
* | [--->] I_contenttype TYPE string (default ='application/json')
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_DIALOG_NODE
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method UPDATE_DIALOG_NODE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/dialog_nodes/{dialog_node}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{dialog_node}` in ls_request_prop-url-path with i_dialog_node ignoring case.
" standard headers
ls_request_prop-header_content_type = I_contenttype.
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process body parameters
data:
lv_body type string,
lv_bodyparam type string,
lv_datatype type char.
field-symbols:
<lv_text> type any.
lv_separator = ''.
lv_datatype = get_datatype( i_body ).
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep or
ls_request_prop-header_content_type cp '*json*'.
if lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct or
lv_datatype eq ZIF_IBMC_SERVICE_ARCH~c_datatype-struct_deep.
lv_bodyparam = abap_to_json( i_value = i_body i_dictionary = c_abapname_dictionary i_required_fields = c_required_fields ).
else.
lv_bodyparam = abap_to_json( i_name = 'body' i_value = i_body ).
endif.
lv_body = lv_body && lv_separator && lv_bodyparam.
else.
assign i_body to <lv_text>.
lv_bodyparam = <lv_text>.
concatenate lv_body lv_bodyparam into lv_body.
endif.
if ls_request_prop-header_content_type cp '*json*' and lv_body(1) ne '{'.
lv_body = `{` && lv_body && `}`.
endif.
if ls_request_prop-header_content_type cp '*charset=utf-8*'.
ls_request_prop-body_bin = convert_string_to_utf8( i_string = lv_body ).
replace all occurrences of regex ';\s*charset=utf-8' in ls_request_prop-header_content_type with '' ignoring case.
else.
ls_request_prop-body = lv_body.
endif.
" execute HTTP POST request
lo_response = HTTP_POST( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_DIALOG_NODE
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_dialog_node TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_DIALOG_NODE.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/dialog_nodes/{dialog_node}'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
replace all occurrences of `{dialog_node}` in ls_request_prop-url-path with i_dialog_node ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_LOGS
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_workspace_id TYPE STRING
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_filter TYPE STRING(optional)
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_LOG_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_LOGS.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/workspaces/{workspace_id}/logs'.
replace all occurrences of `{workspace_id}` in ls_request_prop-url-path with i_workspace_id ignoring case.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_filter is supplied.
lv_queryparam = escape( val = i_filter format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `filter`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->LIST_ALL_LOGS
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_filter TYPE STRING
* | [--->] I_sort TYPE STRING(optional)
* | [--->] I_page_limit TYPE INTEGER(optional)
* | [--->] I_cursor TYPE STRING(optional)
* | [--->] I_accept TYPE string (default ='application/json')
* | [<---] E_RESPONSE TYPE T_LOG_COLLECTION
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method LIST_ALL_LOGS.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/logs'.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
lv_queryparam = escape( val = i_filter format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `filter`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
if i_sort is supplied.
lv_queryparam = escape( val = i_sort format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `sort`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_page_limit is supplied.
lv_queryparam = i_page_limit.
add_query_parameter(
exporting
i_parameter = `page_limit`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
if i_cursor is supplied.
lv_queryparam = escape( val = i_cursor format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `cursor`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
endif.
" execute HTTP GET request
lo_response = HTTP_GET( i_request_prop = ls_request_prop ).
" retrieve JSON data
lv_json = get_response_string( lo_response ).
parse_json(
exporting
i_json = lv_json
i_dictionary = c_abapname_dictionary
changing
c_abap = e_response ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_IBMC_ASSISTANT_V1->DELETE_USER_DATA
* +-------------------------------------------------------------------------------------------------+
* | [--->] I_customer_id TYPE STRING
* | [--->] I_accept TYPE string (default ='application/json')
* | [!CX!] ZCX_IBMC_SERVICE_EXCEPTION
* +--------------------------------------------------------------------------------------</SIGNATURE>
method DELETE_USER_DATA.
data:
ls_request_prop type ts_request_prop,
lv_separator(1) type c ##NEEDED,
lv_sep(1) type c ##NEEDED,
lo_response type to_rest_response,
lv_json type string ##NEEDED.
ls_request_prop-url-path = '/v1/user_data'.
" standard headers
ls_request_prop-header_accept = I_accept.
set_default_query_parameters(
changing
c_url = ls_request_prop-url ).
" process query parameters
data:
lv_queryparam type string.
lv_queryparam = escape( val = i_customer_id format = cl_abap_format=>e_uri_full ).
add_query_parameter(
exporting
i_parameter = `customer_id`
i_value = lv_queryparam
changing
c_url = ls_request_prop-url ) ##NO_TEXT.
" execute HTTP DELETE request
lo_response = HTTP_DELETE( i_request_prop = ls_request_prop ).
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Private Method ZCL_IBMC_ASSISTANT_V1->SET_DEFAULT_QUERY_PARAMETERS
* +-------------------------------------------------------------------------------------------------+
* | [<-->] C_URL TYPE TS_URL
* +--------------------------------------------------------------------------------------</SIGNATURE>
method set_default_query_parameters.
if not p_version is initial.
add_query_parameter(
exporting
i_parameter = `version`
i_value = p_version
changing
c_url = c_url ).
endif.
endmethod.
ENDCLASS.
| [
9,
15069,
13130,
19764,
11421,
13,
1439,
6923,
33876,
13,
198,
9,
198,
9,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
9,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
9,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
9,
198,
9,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
9,
198,
9,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
9,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
9,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
9,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
9,
11247,
739,
262,
13789,
13,
198,
40484,
1279,
71,
16,
29,
54,
13506,
15286,
410,
16,
3556,
71,
16,
29,
198,
40484,
383,
19764,
14959,
5,
25351,
26,
15286,
2139,
21001,
4572,
4673,
11,
3288,
198,
40484,
220,
3303,
4547,
11,
290,
281,
11521,
17310,
5464,
284,
2251,
5273,
198,
40484,
220,
15623,
1022,
534,
6725,
290,
534,
2985,
13,
198,
40484,
198,
40484,
383,
15286,
410,
16,
7824,
3769,
1772,
278,
5050,
534,
3586,
460,
779,
284,
198,
40484,
220,
2251,
393,
4296,
257,
44573,
13,
1279,
1671,
15913,
198,
4871,
1168,
5097,
62,
9865,
9655,
62,
10705,
8808,
8643,
62,
53,
16,
5550,
20032,
17941,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
5097,
62,
9865,
9655,
62,
35009,
27389,
62,
13918,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
198,
220,
3858,
25,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
2221,
286,
309,
62,
35,
3539,
62,
8575,
62,
2394,
11571,
62,
32541,
62,
23428,
35409,
62,
36,
2538,
44,
11,
198,
220,
220,
220,
220,
220,
40383,
2099,
19269,
2751,
11,
198,
220,
220,
220,
886,
286,
309,
62,
35,
3539,
62,
8575,
62,
2394,
11571,
62,
32541,
62,
23428,
35409,
62,
36,
2538,
44,
13,
198,
220,
3858,
25,
198,
220,
220,
220,
366,
0,
220,
220,
317,
3068,
286,
257,
38356,
9312,
13,
198,
220,
220,
220,
2221,
286,
309,
62,
10979,
2849,
11,
198,
220,
220,
220,
220,
220,
47353,
9050,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
37347,
6234,
2099,
49053,
9795,
43679,
3963,
17828,
7156,
1137,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
198,
220,
220,
220,
886,
286,
309,
62,
10979,
2849,
13,
198,
220,
3858,
25,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
2221,
286,
309,
62,
6369,
2390,
16437,
11,
198,
220,
220,
220,
220,
220,
40383,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
337,
3525,
11053,
2099,
49053,
9795,
43679,
3963,
309,
62,
10979,
2849,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
198,
220,
220,
220,
220,
220,
29244,
11617,
2099,
360,
1404,
2767,
12789,
11,
198,
220,
220,
220,
220,
220,
471,
49316,
2099,
360,
1404,
2767,
12789,
11,
198,
220,
220,
220,
886,
286,
309,
62,
6369,
2390,
16437,
13,
198,
220,
3858,
25,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
2221,
286,
309,
62,
12394,
3525,
11,
198,
220,
220,
220,
220,
220,
17828,
3525,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
22196,
40165,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
29244,
11617,
2099,
360,
1404,
2767,
12789,
11,
198,
220,
220,
220,
220,
220,
471,
49316,
2099,
360,
1404,
2767,
12789,
11,
198,
220,
220,
220,
220,
220,
7788,
2390,
6489,
1546,
2099,
49053,
9795,
43679,
3963,
309,
62,
6369,
2390,
16437,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
198,
220,
220,
220,
886,
286,
309,
62,
12394,
3525,
13,
198,
220,
3858,
25,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
2221,
286,
309,
62,
35,
12576,
7730,
62,
45,
16820,
62,
44710,
11,
198,
220,
220,
220,
220,
220,
36751,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
41876,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
29463,
2390,
2767,
4877,
2099,
34645,
11,
198,
220,
220,
220,
220,
220,
15731,
16724,
62,
53,
1503,
3539,
19146,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
8740,
1961,
3525,
12576,
50,
2099,
19269,
2751,
11,
198,
220,
220,
220,
886,
286,
309,
62,
35,
12576,
7730,
62,
45,
16820,
62,
44710,
13,
198,
220,
3858,
25,
198,
220,
220,
220,
366,
0,
220,
220,
10933,
10223,
6460,
3519,
284,
262,
595,
4131,
328,
2288,
3895,
13,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
366,
0,
220,
220,
12429,
6425,
25,
1174,
770,
3895,
318,
1695,
691,
284,
17315,
2985,
13,
198,
220,
220,
220,
2221,
286,
309,
62,
19416,
62,
23060,
2257,
44,
62,
2257,
51,
10503,
50,
62,
5258,
10744,
19555,
45,
11,
198,
220,
220,
220,
220,
220,
4810,
2662,
11571,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
399,
11651,
62,
19238,
62,
10970,
62,
6242,
46,
6089,
62,
4805,
2662,
11571,
2099,
19269,
2751,
11,
198,
220,
220,
220,
220,
220,
412,
4535,
9148,
1961,
2099,
347,
6684,
2538,
1565,
11,
198,
220,
220,
220,
220,
220,
311,
16938,
2043,
3824,
9050,
2099,
19269,
2751,
11,
198,
220,
220,
220,
886,
286,
309,
62,
19416,
62,
23060,
2257,
44,
62,
2257,
51,
10503,
50,
62,
5258,
10744,
19555,
45,
13,
198,
220,
3858,
25,
198,
220,
220,
220,
366,
0,
220,
220,
18634,
326,
13096,
703,
7368,
5072,
318,
12118,
13,
198,
220,
220,
220,
2221,
286,
309,
62,
35,
12576,
7730,
62,
45,
16820,
62,
2606,
7250,
3843,
62,
33365,
5064,
40,
4877,
11,
198,
220,
220,
220,
220,
220,
28729,
18564,
12709,
2099,
347,
6684,
2538,
1565,
11,
198,
220,
220,
220,
886,
286,
309,
62,
35,
12576,
7730,
62,
45,
16820,
62,
2606,
7250,
3843,
62,
33365,
5064,
40,
4877,
13,
198,
220,
3858,
25,
198,
220,
220,
220,
366,
0,
220,
220,
383,
1306,
2239
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*"* use this source file for any type of declarations (class
*"* definitions, interfaces or type declarations) you need for
*"* components in the private section
CLASS lcl_helper DEFINITION INHERITING FROM cl_salv_model_list FINAL.
PUBLIC SECTION.
CLASS-DATA:
mt_xsdboolean TYPE stringtab.
CLASS-METHODS:
class_constructor,
alv_from_salv
IMPORTING
io_salv TYPE REF TO cl_salv_model_list
RETURNING
VALUE(ro_gui_alv) TYPE REF TO cl_gui_alv_grid
RAISING
cx_salv_msg.
ENDCLASS.
CLASS zcl_eui_conv DEFINITION LOCAL FRIENDS lcl_helper.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
597,
2099,
286,
31713,
357,
4871,
198,
9,
1,
9,
17336,
11,
20314,
393,
2099,
31713,
8,
345,
761,
329,
198,
9,
1,
9,
6805,
287,
262,
2839,
2665,
198,
198,
31631,
300,
565,
62,
2978,
525,
5550,
20032,
17941,
3268,
16879,
2043,
2751,
16034,
537,
62,
21680,
85,
62,
19849,
62,
4868,
25261,
13,
198,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
26947,
25,
198,
220,
220,
220,
220,
45079,
62,
87,
21282,
2127,
21052,
41876,
4731,
8658,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
1398,
62,
41571,
273,
11,
628,
220,
220,
220,
220,
220,
435,
85,
62,
6738,
62,
21680,
85,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
21680,
85,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
21680,
85,
62,
19849,
62,
4868,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
48317,
62,
282,
85,
8,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
282,
85,
62,
25928,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
21680,
85,
62,
19662,
13,
198,
10619,
31631,
13,
198,
198,
31631,
1976,
565,
62,
68,
9019,
62,
42946,
5550,
20032,
17941,
37347,
1847,
48167,
1677,
5258,
300,
565,
62,
2978,
525,
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
] |
CLASS zcl_abapgit_services_repo DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS new_online
IMPORTING
!iv_url TYPE string
RETURNING
VALUE(ro_repo) TYPE REF TO zcl_abapgit_repo_online
RAISING
zcx_abapgit_exception.
CLASS-METHODS refresh
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception .
CLASS-METHODS remove
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception.
CLASS-METHODS purge
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception.
CLASS-METHODS new_offline
RAISING
zcx_abapgit_exception.
CLASS-METHODS remote_attach
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception.
CLASS-METHODS remote_detach
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception.
CLASS-METHODS remote_change
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception.
CLASS-METHODS refresh_local_checksums
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception.
CLASS-METHODS toggle_favorite
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception .
CLASS-METHODS open_se80
IMPORTING
!iv_package TYPE devclass
RAISING
zcx_abapgit_exception .
CLASS-METHODS transport_to_branch
IMPORTING
!iv_repository_key TYPE zif_abapgit_persistence=>ty_value
RAISING
zcx_abapgit_exception.
CLASS-METHODS gui_deserialize
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo
RAISING
zcx_abapgit_exception .
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-METHODS popup_overwrite
CHANGING
!ct_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt
RAISING
zcx_abapgit_exception.
CLASS-METHODS popup_package_overwrite
CHANGING
!ct_overwrite TYPE zif_abapgit_definitions=>ty_overwrite_tt
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_SERVICES_REPO IMPLEMENTATION.
METHOD gui_deserialize.
DATA: ls_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks,
lt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt,
lt_dependencies TYPE zif_abapgit_apack_definitions=>tt_dependencies.
* find troublesome objects
ls_checks = io_repo->deserialize_checks( ).
* and let the user decide what to do
TRY.
popup_overwrite( CHANGING ct_overwrite = ls_checks-overwrite ).
popup_package_overwrite( CHANGING ct_overwrite = ls_checks-warning_package ).
IF ls_checks-requirements-met = zif_abapgit_definitions=>gc_no.
lt_requirements = io_repo->get_dot_abapgit( )->get_data( )-requirements.
zcl_abapgit_requirement_helper=>requirements_popup( lt_requirements ).
ls_checks-requirements-decision = zif_abapgit_definitions=>gc_yes.
ENDIF.
IF ls_checks-dependencies-met = zif_abapgit_definitions=>gc_no.
lt_dependencies = io_repo->get_dot_apack( )->get_manifest_descriptor( )-dependencies.
zcl_abapgit_apack_helper=>dependencies_popup( lt_dependencies ).
ENDIF.
IF ls_checks-transport-required = abap_true.
ls_checks-transport-transport = zcl_abapgit_ui_factory=>get_popups( )->popup_transport_request(
is_transport_type = ls_checks-transport-type ).
ENDIF.
CATCH zcx_abapgit_cancel.
RETURN.
ENDTRY.
* and pass decisions to deserialize
io_repo->deserialize( is_checks = ls_checks
ii_log = io_repo->create_new_log( 'Pull Log' ) ).
ENDMETHOD.
METHOD new_offline.
DATA: ls_popup TYPE zif_abapgit_popups=>ty_popup,
lo_repo TYPE REF TO zcl_abapgit_repo,
lo_repo_offline TYPE REF TO zcl_abapgit_repo_offline,
lv_reason TYPE string.
ls_popup = zcl_abapgit_ui_factory=>get_popups( )->repo_new_offline( ).
IF ls_popup-cancel = abap_true.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
" make sure package is not already in use for a different repository
zcl_abapgit_repo_srv=>get_instance( )->get_repo_from_package(
EXPORTING
iv_package = ls_popup-package
IMPORTING
eo_repo = lo_repo
ev_reason = lv_reason ).
IF lo_repo IS BOUND.
MESSAGE lv_reason TYPE 'S'.
ELSE.
" create new repo and add to favorites
lo_repo_offline = zcl_abapgit_repo_srv=>get_instance( )->new_offline(
iv_url = ls_popup-url
iv_package = ls_popup-package
iv_folder_logic = ls_popup-folder_logic
iv_master_lang_only = ls_popup-master_lang_only ).
lo_repo_offline->rebuild_local_checksums( ).
lo_repo ?= lo_repo_offline.
toggle_favorite( lo_repo->get_key( ) ).
ENDIF.
" Set default repo for user
zcl_abapgit_persistence_user=>get_instance( )->set_repo_show( lo_repo->get_key( ) ).
COMMIT WORK AND WAIT.
ENDMETHOD.
METHOD new_online.
DATA: ls_popup TYPE zif_abapgit_popups=>ty_popup,
lo_repo TYPE REF TO zcl_abapgit_repo,
lv_reason TYPE string.
ls_popup = zcl_abapgit_ui_factory=>get_popups( )->repo_popup( iv_url ).
IF ls_popup-cancel = abap_true.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
" make sure package is not already in use for a different repository
zcl_abapgit_repo_srv=>get_instance( )->get_repo_from_package(
EXPORTING
iv_package = ls_popup-package
IMPORTING
eo_repo = lo_repo
ev_reason = lv_reason ).
IF lo_repo IS BOUND.
MESSAGE lv_reason TYPE 'S'.
ELSE.
ro_repo = zcl_abapgit_repo_srv=>get_instance( )->new_online(
iv_url = ls_popup-url
iv_branch_name = ls_popup-branch_name
iv_package = ls_popup-package
iv_display_name = ls_popup-display_name
iv_folder_logic = ls_popup-folder_logic
iv_ign_subpkg = ls_popup-ign_subpkg
iv_master_lang_only = ls_popup-master_lang_only ).
toggle_favorite( ro_repo->get_key( ) ).
lo_repo ?= ro_repo.
ENDIF.
" Set default repo for user
zcl_abapgit_persistence_user=>get_instance( )->set_repo_show( lo_repo->get_key( ) ).
COMMIT WORK.
ENDMETHOD.
METHOD open_se80.
CALL FUNCTION 'RS_TOOL_ACCESS'
EXPORTING
operation = 'SHOW'
in_new_window = abap_true
object_name = iv_package
object_type = 'DEVC'
with_objectlist = abap_true.
ENDMETHOD.
METHOD popup_overwrite.
DATA: lt_columns TYPE zif_abapgit_definitions=>ty_alv_column_tt,
lt_selected LIKE ct_overwrite,
li_popups TYPE REF TO zif_abapgit_popups.
FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF ct_overwrite,
<ls_column> TYPE zif_abapgit_definitions=>ty_alv_column.
IF lines( ct_overwrite ) = 0.
RETURN.
ENDIF.
APPEND INITIAL LINE TO lt_columns ASSIGNING <ls_column>.
<ls_column>-name = 'OBJ_TYPE'.
APPEND INITIAL LINE TO lt_columns ASSIGNING <ls_column>.
<ls_column>-name = 'OBJ_NAME'.
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
li_popups->popup_to_select_from_list(
EXPORTING
it_list = ct_overwrite
iv_header_text = |The following objects have been modified locally.|
&& | Select the objects which should be overwritten.|
iv_select_column_text = 'Overwrite?'
it_columns_to_display = lt_columns
IMPORTING
et_list = lt_selected ).
LOOP AT ct_overwrite ASSIGNING <ls_overwrite>.
READ TABLE lt_selected WITH TABLE KEY object_type_and_name
COMPONENTS obj_type = <ls_overwrite>-obj_type
obj_name = <ls_overwrite>-obj_name
TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
<ls_overwrite>-decision = 'Y'.
ELSE.
<ls_overwrite>-decision = 'N'.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD popup_package_overwrite.
DATA: lt_columns TYPE zif_abapgit_definitions=>ty_alv_column_tt,
lt_selected LIKE ct_overwrite,
li_popups TYPE REF TO zif_abapgit_popups.
FIELD-SYMBOLS: <ls_overwrite> LIKE LINE OF ct_overwrite,
<ls_column> TYPE zif_abapgit_definitions=>ty_alv_column.
IF lines( ct_overwrite ) = 0.
RETURN.
ENDIF.
APPEND INITIAL LINE TO lt_columns ASSIGNING <ls_column>.
<ls_column>-name = 'OBJ_TYPE'.
APPEND INITIAL LINE TO lt_columns ASSIGNING <ls_column>.
<ls_column>-name = 'OBJ_NAME'.
APPEND INITIAL LINE TO lt_columns ASSIGNING <ls_column>.
<ls_column>-name = 'DEVCLASS'.
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
li_popups->popup_to_select_from_list(
EXPORTING
it_list = ct_overwrite
iv_header_text = |The following objects have been created in other packages.|
&& | Select the objects which should be overwritten.|
iv_select_column_text = |Overwrite?|
it_columns_to_display = lt_columns
IMPORTING
et_list = lt_selected ).
LOOP AT ct_overwrite ASSIGNING <ls_overwrite>.
READ TABLE lt_selected WITH TABLE KEY object_type_and_name
COMPONENTS obj_type = <ls_overwrite>-obj_type
obj_name = <ls_overwrite>-obj_name
TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
<ls_overwrite>-decision = 'Y'.
ELSE.
<ls_overwrite>-decision = 'N'.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD purge.
DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt,
lv_answer TYPE c LENGTH 1,
lo_repo TYPE REF TO zcl_abapgit_repo,
lv_package TYPE devclass,
lv_question TYPE c LENGTH 100,
ls_checks TYPE zif_abapgit_definitions=>ty_delete_checks.
lo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
lv_package = lo_repo->get_package( ).
lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( lv_package ).
IF lines( lt_tadir ) > 0.
lv_question = |This will DELETE all objects in package { lv_package
} ({ lines( lt_tadir ) } objects) from the system|. "#EC NOTEXT
lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm(
iv_titlebar = 'Uninstall'
iv_text_question = lv_question
iv_text_button_1 = 'Delete'
iv_icon_button_1 = 'ICON_DELETE'
iv_text_button_2 = 'Cancel'
iv_icon_button_2 = 'ICON_CANCEL'
iv_default_button = '2'
iv_display_cancel_button = abap_false ). "#EC NOTEXT
IF lv_answer = '2'.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
ENDIF.
ls_checks = lo_repo->delete_checks( ).
IF ls_checks-transport-required = abap_true.
ls_checks-transport-transport = zcl_abapgit_ui_factory=>get_popups(
)->popup_transport_request( ls_checks-transport-type ).
ENDIF.
zcl_abapgit_repo_srv=>get_instance( )->purge( io_repo = lo_repo
is_checks = ls_checks ).
COMMIT WORK.
ENDMETHOD.
METHOD refresh.
zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->refresh( ).
ENDMETHOD.
METHOD refresh_local_checksums.
DATA: lv_answer TYPE c,
lv_question TYPE string,
lo_repo TYPE REF TO zcl_abapgit_repo.
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-update_local_checksum ) = abap_false.
zcx_abapgit_exception=>raise( 'Not authorized' ).
ENDIF.
lo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
lv_question = 'This will rebuild and overwrite local repo checksums.'.
IF lo_repo->is_offline( ) = abap_false.
lv_question = lv_question
&& ' The logic: if local and remote file differs then:'
&& ' if remote branch is ahead then assume changes are remote,'
&& ' else (branches are equal) assume changes are local.'
&& ' This will lead to incorrect state for files changed on both sides.'
&& ' Please make sure you don''t have ones like that.'.
ENDIF.
lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm(
iv_titlebar = 'Warning'
iv_text_question = lv_question
iv_text_button_1 = 'OK'
iv_icon_button_1 = 'ICON_DELETE'
iv_text_button_2 = 'Cancel'
iv_icon_button_2 = 'ICON_CANCEL'
iv_default_button = '2'
iv_display_cancel_button = abap_false ). "#EC NOTEXT
IF lv_answer = '2'.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
lo_repo->rebuild_local_checksums( ).
COMMIT WORK AND WAIT.
ENDMETHOD.
METHOD remote_attach.
DATA: ls_popup TYPE zif_abapgit_popups=>ty_popup,
ls_loc TYPE zif_abapgit_persistence=>ty_repo-local_settings,
lo_repo TYPE REF TO zcl_abapgit_repo_online.
ls_loc = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->get_local_settings( ).
ls_popup = zcl_abapgit_ui_factory=>get_popups( )->repo_popup(
iv_title = 'Attach repo to remote ...'
iv_url = ''
iv_display_name = ls_loc-display_name
iv_package = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->get_package( )
iv_freeze_package = abap_true ).
IF ls_popup-cancel = abap_true.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->switch_repo_type( iv_offline = abap_false ).
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
lo_repo->set_url( ls_popup-url ).
lo_repo->set_branch_name( ls_popup-branch_name ).
ls_loc = lo_repo->get_local_settings( ). " Just in case ... if switch affects LS state
ls_loc-display_name = ls_popup-display_name.
lo_repo->set_local_settings( ls_loc ).
COMMIT WORK.
ENDMETHOD.
METHOD remote_change.
DATA: ls_popup TYPE zif_abapgit_popups=>ty_popup,
ls_loc TYPE zif_abapgit_persistence=>ty_repo-local_settings,
lo_repo TYPE REF TO zcl_abapgit_repo_online.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
ls_loc = lo_repo->get_local_settings( ).
ls_popup = zcl_abapgit_ui_factory=>get_popups( )->repo_popup(
iv_title = 'Change repo remote ...'
iv_url = lo_repo->get_url( )
iv_package = lo_repo->get_package( )
iv_display_name = ls_loc-display_name
iv_freeze_package = abap_true ).
IF ls_popup-cancel = abap_true.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
lo_repo->set_url( ls_popup-url ).
lo_repo->set_branch_name( ls_popup-branch_name ).
ls_loc-display_name = ls_popup-display_name.
lo_repo->set_local_settings( ls_loc ).
COMMIT WORK.
ENDMETHOD.
METHOD remote_detach.
DATA: lv_answer TYPE c LENGTH 1.
lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm(
iv_titlebar = 'Make repository OFF-line'
iv_text_question = 'This will detach the repo from remote and make it OFF-line'
iv_text_button_1 = 'Make OFF-line'
iv_icon_button_1 = 'ICON_WF_UNLINK'
iv_text_button_2 = 'Cancel'
iv_icon_button_2 = 'ICON_CANCEL'
iv_default_button = '2'
iv_display_cancel_button = abap_false ). "#EC NOTEXT
IF lv_answer = '2'.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->switch_repo_type( iv_offline = abap_true ).
COMMIT WORK.
ENDMETHOD.
METHOD remove.
DATA: lv_answer TYPE c LENGTH 1,
lo_repo TYPE REF TO zcl_abapgit_repo,
lv_package TYPE devclass,
lv_question TYPE c LENGTH 200.
lo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
lv_package = lo_repo->get_package( ).
lv_question = |This will remove the repository reference to the package { lv_package
}. All objects will safely remain in the system.|.
lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm(
iv_titlebar = 'Remove'
iv_text_question = lv_question
iv_text_button_1 = 'Remove'
iv_icon_button_1 = 'ICON_WF_UNLINK'
iv_text_button_2 = 'Cancel'
iv_icon_button_2 = 'ICON_CANCEL'
iv_default_button = '2'
iv_display_cancel_button = abap_false ). "#EC NOTEXT
IF lv_answer = '2'.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
zcl_abapgit_repo_srv=>get_instance( )->delete( lo_repo ).
COMMIT WORK.
ENDMETHOD.
METHOD toggle_favorite.
zcl_abapgit_persistence_user=>get_instance( )->toggle_favorite( iv_key ).
ENDMETHOD.
METHOD transport_to_branch.
DATA:
lo_repository TYPE REF TO zcl_abapgit_repo_online,
lo_transport_to_branch TYPE REF TO zcl_abapgit_transport_2_branch,
lt_transport_headers TYPE trwbo_request_headers,
lt_transport_objects TYPE zif_abapgit_definitions=>ty_tadir_tt,
ls_transport_to_branch TYPE zif_abapgit_definitions=>ty_transport_to_branch.
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-transport_to_branch ) = abap_false.
zcx_abapgit_exception=>raise( 'Not authorized' ).
ENDIF.
lo_repository ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_repository_key ).
lt_transport_headers = zcl_abapgit_ui_factory=>get_popups( )->popup_to_select_transports( ).
lt_transport_objects = zcl_abapgit_transport=>to_tadir( lt_transport_headers ).
IF lt_transport_objects IS INITIAL.
zcx_abapgit_exception=>raise( 'Canceled or List of objects is empty ' ).
ENDIF.
ls_transport_to_branch = zcl_abapgit_ui_factory=>get_popups( )->popup_to_create_transp_branch(
lt_transport_headers ).
CREATE OBJECT lo_transport_to_branch.
lo_transport_to_branch->create(
io_repository = lo_repository
is_transport_to_branch = ls_transport_to_branch
it_transport_objects = lt_transport_objects ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
30416,
62,
260,
7501,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
649,
62,
25119,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
260,
7501,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
14976,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4781,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
35714,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
649,
62,
2364,
1370,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
6569,
62,
47348,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
6569,
62,
15255,
620,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
6569,
62,
3803,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
14976,
62,
12001,
62,
42116,
5700,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
19846,
62,
35200,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
1280,
62,
325,
1795,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4839,
62,
1462,
62,
1671,
3702,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
260,
1930,
37765,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
8367,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
11774,
62,
8906,
48499,
1096,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
260,
7501,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_xml_input DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_xml
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_xml_input.
ALIASES:
read FOR zif_abapgit_xml_input~read,
get_raw FOR zif_abapgit_xml_input~get_raw,
get_metadata FOR zif_abapgit_xml_input~get_metadata.
METHODS constructor
IMPORTING
!iv_xml TYPE clike
!iv_filename TYPE string OPTIONAL
RAISING
zcx_abapgit_exception .
PRIVATE SECTION.
METHODS: fix_xml.
ENDCLASS.
CLASS zcl_abapgit_xml_input IMPLEMENTATION.
METHOD constructor.
super->constructor( iv_filename ).
parse( iv_xml ).
fix_xml( ).
ENDMETHOD.
METHOD fix_xml.
DATA: li_git TYPE REF TO if_ixml_element,
li_abap TYPE REF TO if_ixml_node.
li_git ?= mi_xml_doc->find_from_name_ns( depth = 0
name = c_abapgit_tag ).
li_abap = li_git->get_first_child( ).
mi_xml_doc->get_root( )->remove_child( li_git ).
mi_xml_doc->get_root( )->append_child( li_abap ).
ENDMETHOD.
METHOD get_metadata.
rs_metadata = ms_metadata.
ENDMETHOD.
METHOD get_raw.
ri_raw = mi_xml_doc.
ENDMETHOD.
METHOD read.
DATA: lx_error TYPE REF TO cx_transformation_error,
lt_rtab TYPE abap_trans_resbind_tab.
FIELD-SYMBOLS: <ls_rtab> LIKE LINE OF lt_rtab.
ASSERT NOT iv_name IS INITIAL.
CLEAR cg_data. "Initialize result to avoid problems with empty values
APPEND INITIAL LINE TO lt_rtab ASSIGNING <ls_rtab>.
<ls_rtab>-name = iv_name.
GET REFERENCE OF cg_data INTO <ls_rtab>-value.
TRY.
CALL TRANSFORMATION id
OPTIONS value_handling = 'accept_data_loss'
SOURCE XML mi_xml_doc
RESULT (lt_rtab).
CATCH cx_transformation_error INTO lx_error.
IF mv_filename IS INITIAL.
zcx_abapgit_exception=>raise( lx_error->if_message~get_text( ) ).
ELSE.
zcx_abapgit_exception=>raise( |File { mv_filename }: { lx_error->if_message~get_text( ) }| ).
ENDIF.
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
15414,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
19875,
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,
19875,
62,
15414,
13,
628,
220,
220,
220,
8355,
43429,
1546,
25,
198,
220,
220,
220,
220,
220,
1100,
7473,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
93,
961,
11,
198,
220,
220,
220,
220,
220,
651,
62,
1831,
7473,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
93,
1136,
62,
1831,
11,
198,
220,
220,
220,
220,
220,
651,
62,
38993,
7473,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
93,
1136,
62,
38993,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
19875,
220,
220,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
34345,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
4259,
62,
19875,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
15414,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
21628,
62,
34345,
6739,
198,
220,
220,
220,
21136,
7,
21628,
62,
19875,
6739,
198,
220,
220,
220,
4259,
62,
19875,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
4259,
62,
19875,
13,
628,
220,
220,
220,
42865,
25,
7649,
62,
18300,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
397,
499,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
13,
628,
198,
220,
220,
220,
7649,
62,
18300,
5633,
28,
21504,
62,
19875,
62,
15390,
3784,
19796,
62,
6738,
62,
3672,
62,
5907,
7,
6795,
796,
657,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
796,
269,
62,
397,
499,
18300,
62,
12985,
6739,
198,
220,
220,
220,
7649,
62,
397,
499,
796,
7649,
62,
18300,
3784,
1136,
62,
11085,
62,
9410,
7,
6739,
628,
220,
220,
220,
21504,
62,
19875,
62,
15390,
3784,
1136,
62,
15763,
7,
1267,
3784,
28956,
62,
9410,
7,
7649,
62,
18300,
6739,
198,
220,
220,
220,
21504,
62,
19875,
62,
15390,
3784,
1136,
62,
15763,
7,
1267,
3784,
33295,
62,
9410,
7,
7649,
62,
397,
499,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
38993,
13,
198,
220,
220,
220,
44608,
62,
38993,
796,
13845,
62,
38993,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
1831,
13,
198,
220,
220,
220,
374,
72,
62,
1831,
796,
21504,
62,
19875,
62,
15390,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1100,
13,
628,
220,
220,
220,
42865,
25,
300,
87,
62,
18224,
41876,
4526,
37,
5390,
43213,
62,
7645,
1161,
62,
18224,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
81,
8658,
220,
41876,
450,
499,
62,
7645,
62,
411,
21653,
62,
8658,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
81,
8658,
29,
34178,
48920,
3963,
300,
83,
62,
81,
8658,
13,
628,
220,
220,
220,
24994,
17395,
5626,
21628,
62,
3672,
3180,
3268,
2043,
12576,
13,
628,
220,
220,
220,
30301,
1503,
269,
70,
62,
7890,
13,
366,
24243,
1096,
1255,
284,
3368,
2761,
351,
6565,
3815,
628,
220,
220,
220,
43504,
10619,
3268,
2043,
12576,
48920,
5390,
300,
83,
62,
81,
8658,
24994,
3528,
15871,
1279,
7278,
62,
81,
8658,
28401,
198,
220,
220,
220,
1279,
7278,
62,
81,
8658,
29,
12,
3672,
796,
21628,
62,
3672,
13,
198,
220,
220,
220,
17151,
4526,
24302,
18310,
3963,
269,
70,
62,
7890,
39319,
1279,
7278,
62,
81,
8658,
29,
12,
8367,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
42815,
44069,
35036,
4686,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39852,
11053,
1988,
62,
4993,
1359,
796,
705,
13635,
62,
7890,
62,
22462,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
311,
31033,
23735,
21504,
62,
19875,
62,
15390,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15731,
16724,
357,
2528,
62,
81,
8658,
737,
198,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
7645,
1161,
62,
18224,
39319,
300,
87,
62,
18224,
13,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
285,
85,
62,
34345,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
300,
87,
62,
18224,
3784,
361,
62,
20500,
93,
1136,
62,
5239,
7,
1267,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
930,
8979,
1391,
285,
85,
62,
34345,
1782,
25,
1391,
300,
87,
62,
18224,
3784,
361,
62,
20500,
93,
1136,
62,
5239,
7,
1267,
1782,
91,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_abaplint_backend_api_agent DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS create
IMPORTING
!is_config TYPE zabaplint_glob_data
RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abaplint_backend_api_agent .
" TODO query ?
" TODO headers ?
METHODS request
IMPORTING
!iv_uri TYPE string
!iv_method TYPE string DEFAULT if_http_request=>co_request_method_get
!iv_payload TYPE string OPTIONAL
RETURNING
VALUE(ro_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abaplint_error .
PROTECTED SECTION.
PRIVATE SECTION.
DATA ms_config TYPE zabaplint_glob_data.
METHODS create_client
RETURNING
VALUE(ri_client) TYPE REF TO if_http_client
RAISING
zcx_abaplint_error .
METHODS parse_response
IMPORTING
ii_response TYPE REF TO if_http_response
RETURNING
VALUE(ro_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abaplint_error .
METHODS send_receive
IMPORTING
ii_client TYPE REF TO if_http_client
RAISING
zcx_abaplint_error .
ENDCLASS.
CLASS zcl_abaplint_backend_api_agent IMPLEMENTATION.
METHOD create.
CREATE OBJECT ro_instance.
ro_instance->ms_config = is_config.
ENDMETHOD.
METHOD create_client.
cl_http_client=>create_by_url(
EXPORTING
url = |{ ms_config-url }|
ssl_id = ms_config-ssl_id
IMPORTING
client = ri_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE zcx_abaplint_error
EXPORTING
message = |Create_client error: sy-subrc={ sy-subrc }, url={ ms_config-url }|.
ENDIF.
ENDMETHOD.
METHOD parse_response.
DATA lv_scode TYPE i.
DATA lv_sreason TYPE string.
DATA lv_response TYPE string.
ii_response->get_status(
IMPORTING
code = lv_scode
reason = lv_sreason ).
lv_response = ii_response->get_cdata( ).
IF lv_response IS INITIAL.
RAISE EXCEPTION TYPE zcx_abaplint_error
EXPORTING
message = |API request failed [{ lv_scode }]|.
ENDIF.
DATA li_reader TYPE REF TO zif_abapgit_ajson.
DATA lo_ajson_err TYPE REF TO zcx_abapgit_ajson_error.
TRY.
li_reader = zcl_abapgit_ajson=>parse( lv_response ).
CATCH zcx_abapgit_ajson_error INTO lo_ajson_err.
RAISE EXCEPTION TYPE zcx_abaplint_error EXPORTING message = lo_ajson_err->get_text( ).
ENDTRY.
IF li_reader->exists( '/success' ) = abap_false.
RAISE EXCEPTION TYPE zcx_abaplint_error
EXPORTING
message = |API request failed [{ lv_scode }]: Unexpected API response shape|.
ENDIF.
IF li_reader->get_integer( '/success' ) <> 1.
RAISE EXCEPTION TYPE zcx_abaplint_error
EXPORTING
message = |API request failed [{ lv_scode }]: { li_reader->get_string( '/error/message' ) }|.
ENDIF.
IF lv_scode < 200 OR lv_scode >= 300.
RAISE EXCEPTION TYPE zcx_abaplint_error
EXPORTING
message = |API request failed [{ lv_scode }], but API response is OK (?)|.
ENDIF.
ro_json = li_reader->slice( '/payload' ).
ENDMETHOD.
METHOD request.
DATA lx_error TYPE REF TO zcx_abapgit_exception.
DATA li_client TYPE REF TO if_http_client.
li_client = create_client( ).
cl_http_utility=>set_request_uri(
request = li_client->request
uri = iv_uri ).
li_client->request->set_method( iv_method ).
li_client->request->set_compression( ).
IF iv_method = 'POST' AND iv_payload IS NOT INITIAL. " OR PUT ... maybe in future
TRY.
li_client->request->set_data( zcl_abapgit_convert=>string_to_xstring_utf8( iv_payload ) ).
CATCH zcx_abapgit_exception INTO lx_error.
zcx_abaplint_error=>raise( lx_error->get_text( ) ).
ENDTRY.
ENDIF.
li_client->request->set_header_field(
name = 'content-type'
value = 'application/json; charset=utf-8' ).
send_receive( li_client ).
ro_json = parse_response( li_client->response ).
li_client->close( ).
ENDMETHOD.
METHOD send_receive.
ii_client->send(
EXPORTING
timeout = ms_config-http_timeout
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
http_invalid_timeout = 4
OTHERS = 5 ).
IF sy-subrc = 0.
ii_client->receive(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4 ).
ENDIF.
IF sy-subrc <> 0.
DATA lv_ecode TYPE i.
DATA lv_emessage TYPE string.
ii_client->get_last_error(
IMPORTING
code = lv_ecode
message = lv_emessage ).
RAISE EXCEPTION TYPE zcx_abaplint_error
EXPORTING
message = |{ lv_ecode } { lv_emessage }|.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
15498,
489,
600,
62,
1891,
437,
62,
15042,
62,
25781,
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,
2251,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
11250,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
15498,
489,
600,
62,
4743,
672,
62,
7890,
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,
15498,
489,
600,
62,
1891,
437,
62,
15042,
62,
25781,
764,
198,
220,
220,
220,
366,
16926,
46,
12405,
5633,
198,
220,
220,
220,
366,
16926,
46,
24697,
5633,
198,
220,
220,
220,
337,
36252,
50,
2581,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
9900,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
24396,
220,
220,
220,
220,
41876,
4731,
5550,
38865,
611,
62,
4023,
62,
25927,
14804,
1073,
62,
25927,
62,
24396,
62,
1136,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
15577,
2220,
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,
305,
62,
17752,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
15498,
489,
600,
62,
18224,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
13845,
62,
11250,
41876,
1976,
15498,
489,
600,
62,
4743,
672,
62,
7890,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
16366,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
16366,
8,
41876,
4526,
37,
5390,
611,
62,
4023,
62,
16366,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
15498,
489,
600,
62,
18224,
764,
198,
220,
220,
220,
337,
36252,
50,
21136,
62,
26209,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
26209,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
4023,
62,
26209,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
17752,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
15498,
489,
600,
62,
18224,
764,
198,
220,
220,
220,
337,
36252,
50,
3758,
62,
260,
15164,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
16366,
41876,
4526,
37,
5390,
611,
62,
4023,
62,
16366,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
15498,
489,
600,
62,
18224,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
15498,
489,
600,
62,
1891,
437,
62,
15042,
62,
25781,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2251,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
39098,
13,
198,
220,
220,
220,
686,
62,
39098,
3784,
907,
62,
11250,
796,
318,
62,
11250,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2251,
62,
16366,
13,
628,
220,
220,
220,
537,
62,
4023,
62,
16366,
14804,
17953,
62,
1525,
62,
6371,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
930,
90,
13845,
62,
11250,
12,
6371,
1782,
91,
198,
220,
220,
220,
220,
220,
220,
220,
264,
6649,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
13845,
62,
11250,
12,
45163,
62,
312,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5456,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
374,
72,
62,
16366,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
4578,
62,
1662,
62,
9275,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
13877,
62,
1662,
62,
5275,
220,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
5387,
62,
18224,
220,
220,
220,
220,
796,
513,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
604,
6739,
628,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
17926,
24352,
7788,
42006,
2849,
41876,
1976,
66,
87,
62,
15498,
489,
600,
62,
18224,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
796,
930,
16447,
62,
16366,
4049,
25,
827,
12,
7266,
6015,
34758,
827,
12,
7266,
6015,
8964,
19016,
34758,
13845,
62,
11250,
12,
6371,
1782,
91,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
21136,
62,
26209,
13,
628,
220,
220,
220,
42865,
300,
85,
62,
1416,
1098,
41876,
1312,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_aps_task_factory definition
public
final
create public.
public section.
class-methods:
provide
importing
i_settings type ref to zif_aps_settings
i_packageData type zaps_package
returning
value(result) type ref to zif_aps_task
raising
zcx_aps_task_invalid_class
zcx_aps_task_instanciation_err
zcx_aps_task_unknown_exec_type.
protected section.
private section.
endclass.
class zcl_aps_task_factory implementation.
method provide.
case i_settings->getTypeOfExecutable( ).
when i_settings->executableTypeReport.
result = new zcl_aps_task_report( i_settings ).
when i_settings->executableTypeFuncUnit.
result = new zcl_aps_task_functionunit( i_settings ).
when i_settings->executableTypeObject.
result = new zcl_aps_task_object( i_settings ).
when others.
raise exception
type zcx_aps_task_unknown_exec_type
exporting
i_executabletype = i_settings->getTypeOfExecutable( ).
endcase.
result->setPackage( i_packageData ).
endmethod.
endclass.
| [
4871,
1976,
565,
62,
1686,
62,
35943,
62,
69,
9548,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
13,
628,
220,
1171,
2665,
13,
198,
220,
220,
220,
1398,
12,
24396,
82,
25,
198,
220,
220,
220,
220,
220,
2148,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
33692,
220,
220,
220,
220,
220,
2099,
1006,
284,
1976,
361,
62,
1686,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
26495,
6601,
220,
220,
2099,
1976,
1686,
62,
26495,
198,
220,
220,
220,
220,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
7,
20274,
8,
220,
220,
2099,
1006,
284,
1976,
361,
62,
1686,
62,
35943,
198,
220,
220,
220,
220,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
35943,
62,
259,
12102,
62,
4871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
35943,
62,
8625,
272,
17269,
62,
8056,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
35943,
62,
34680,
62,
18558,
62,
4906,
13,
628,
220,
6861,
2665,
13,
198,
220,
2839,
2665,
13,
198,
437,
4871,
13,
628,
198,
198,
4871,
1976,
565,
62,
1686,
62,
35943,
62,
69,
9548,
7822,
13,
198,
220,
2446,
2148,
13,
198,
220,
220,
220,
1339,
1312,
62,
33692,
3784,
1136,
6030,
5189,
23002,
18187,
7,
6739,
198,
220,
220,
220,
220,
220,
618,
1312,
62,
33692,
3784,
18558,
18187,
6030,
19100,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
649,
1976,
565,
62,
1686,
62,
35943,
62,
13116,
7,
1312,
62,
33692,
6739,
628,
220,
220,
220,
220,
220,
618,
1312,
62,
33692,
3784,
18558,
18187,
6030,
37,
19524,
26453,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
649,
1976,
565,
62,
1686,
62,
35943,
62,
8818,
20850,
7,
1312,
62,
33692,
6739,
628,
220,
220,
220,
220,
220,
618,
1312,
62,
33692,
3784,
18558,
18187,
6030,
10267,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
649,
1976,
565,
62,
1686,
62,
35943,
62,
15252,
7,
1312,
62,
33692,
6739,
628,
220,
220,
220,
220,
220,
618,
1854,
13,
198,
220,
220,
220,
220,
220,
220,
220,
5298,
6631,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
1976,
66,
87,
62,
1686,
62,
35943,
62,
34680,
62,
18558,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_iamu 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_internet_appl_comp_binary,
attributes TYPE w3mimeattr,
source TYPE w3mimetabtype,
length TYPE i,
END OF ty_internet_appl_comp_binary.
DATA: mi_mime_api TYPE REF TO if_w3_api_mime.
METHODS:
load_mime_api
RAISING
zcx_abapgit_exception,
read
RETURNING
VALUE(rs_internet_appl_comp_binary) TYPE ty_internet_appl_comp_binary
RAISING
zcx_abapgit_exception,
save
IMPORTING
is_internet_appl_comp_binary TYPE ty_internet_appl_comp_binary
RAISING
zcx_abapgit_exception,
release_lock
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS zcl_abapgit_object_iamu IMPLEMENTATION.
METHOD load_mime_api.
DATA: ls_mime_name TYPE iacikeym.
ls_mime_name = ms_item-obj_name.
cl_w3_api_mime=>if_w3_api_mime~load(
EXPORTING
p_mime_name = ls_mime_name
IMPORTING
p_mime = mi_mime_api
EXCEPTIONS
object_not_existing = 1
permission_failure = 2
data_corrupt = 3
error_occured = 4
OTHERS = 6 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from if_w3_api_mime~load' ).
ENDIF.
ENDMETHOD.
METHOD read.
load_mime_api( ).
mi_mime_api->get_attributes(
IMPORTING
p_attributes = rs_internet_appl_comp_binary-attributes
EXCEPTIONS
object_invalid = 1
mime_deleted = 2
error_occured = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from if_w3_api_mime~get_attributes| ).
ENDIF.
CLEAR: rs_internet_appl_comp_binary-attributes-chname,
rs_internet_appl_comp_binary-attributes-tdate,
rs_internet_appl_comp_binary-attributes-ttime,
rs_internet_appl_comp_binary-attributes-devclass.
mi_mime_api->get_source(
IMPORTING
p_source = rs_internet_appl_comp_binary-source
p_datalength = rs_internet_appl_comp_binary-length
EXCEPTIONS
object_invalid = 1
mime_deleted = 2
error_occured = 3
OTHERS = 4 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from if_w3_api_mime~get_source| ).
ENDIF.
ENDMETHOD.
METHOD release_lock.
" As a side effect this method removes also existing locks
mi_mime_api->if_w3_api_object~set_changeable(
EXPORTING
p_changeable = abap_false
EXCEPTIONS
action_cancelled = 1
object_locked_by_other_user = 2
permission_failure = 3
object_already_changeable = 4
object_already_unlocked = 5
object_just_created = 6
object_deleted = 7
object_modified = 8
object_not_existing = 9
object_invalid = 10
error_occured = 11
OTHERS = 12 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from if_w3_api_mime~set_changeable| ).
ENDIF.
ENDMETHOD.
METHOD save.
cl_w3_api_mime=>if_w3_api_mime~create_new(
EXPORTING
p_mime_data = is_internet_appl_comp_binary-attributes
p_mime_content = is_internet_appl_comp_binary-source
p_datalength = is_internet_appl_comp_binary-length
IMPORTING
p_mime = mi_mime_api
EXCEPTIONS
object_already_existing = 1
object_just_created = 2
not_authorized = 3
undefined_name = 4
author_not_existing = 5
action_cancelled = 6
error_occured = 7
OTHERS = 8 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from if_w3_api_mime~create_new| ).
ENDIF.
mi_mime_api->if_w3_api_object~save(
EXCEPTIONS
object_invalid = 1
object_not_changeable = 2
action_cancelled = 3
permission_failure = 4
not_changed = 5
data_invalid = 6
error_occured = 7
OTHERS = 8 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from if_w3_api_mime~save| ).
ENDIF.
release_lock( ).
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
load_mime_api( ).
mi_mime_api->if_w3_api_object~set_changeable(
EXPORTING
p_changeable = abap_true
EXCEPTIONS
action_cancelled = 1
object_locked_by_other_user = 2
permission_failure = 3
object_already_changeable = 4
object_already_unlocked = 5
object_just_created = 6
object_deleted = 7
object_modified = 8
object_not_existing = 9
object_invalid = 10
error_occured = 11
OTHERS = 12 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from if_w3_api_mime~set_changeable| ).
ENDIF.
mi_mime_api->if_w3_api_object~delete(
EXCEPTIONS
object_not_empty = 1
object_not_changeable = 2
object_invalid = 3
error_occured = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from if_w3_api_mime~delete| ).
ENDIF.
mi_mime_api->if_w3_api_object~save(
EXCEPTIONS
object_invalid = 1
object_not_changeable = 2
action_cancelled = 3
permission_failure = 4
not_changed = 5
data_invalid = 6
error_occured = 7
OTHERS = 8 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from if_w3_api_mime~save| ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: ls_internet_appl_comp_binary TYPE ty_internet_appl_comp_binary.
io_xml->read(
EXPORTING
iv_name = 'IAMU'
CHANGING
cg_data = ls_internet_appl_comp_binary ).
ls_internet_appl_comp_binary-attributes-devclass = iv_package.
save( ls_internet_appl_comp_binary ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: ls_mime_name TYPE iacikeym.
ls_mime_name = ms_item-obj_name.
cl_w3_api_mime=>s_check_exist(
EXPORTING
p_mime_name = ls_mime_name
IMPORTING
p_exists = rv_bool ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
" Covered by ZCL_ABAPGIT_OBJECTS=>JUMP
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: ls_internet_appl_comp_binary TYPE ty_internet_appl_comp_binary.
ls_internet_appl_comp_binary = read( ).
io_xml->add( iv_name = 'IAMU'
ig_data = ls_internet_appl_comp_binary ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
1789,
84,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
37675,
62,
1324,
75,
62,
5589,
62,
39491,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12608,
41876,
266,
18,
76,
524,
35226,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2723,
220,
220,
220,
220,
41876,
266,
18,
76,
38813,
397,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4129,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
37675,
62,
1324,
75,
62,
5589,
62,
39491,
13,
628,
220,
220,
220,
42865,
25,
21504,
62,
76,
524,
62,
15042,
41876,
4526,
37,
5390,
611,
62,
86,
18,
62,
15042,
62,
76,
524,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
3440,
62,
76,
524,
62,
15042,
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,
1100,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
37675,
62,
1324,
75,
62,
5589,
62,
39491,
8,
41876,
1259,
62,
37675,
62,
1324,
75,
62,
5589,
62,
39491,
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,
3613,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
37675,
62,
1324,
75,
62,
5589,
62,
39491,
41876,
1259,
62,
37675,
62,
1324,
75,
62,
5589,
62,
39491,
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,
2650,
62,
5354,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
1789,
84,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
3440,
62,
76,
524,
62,
15042,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
76,
524,
62,
3672,
41876,
1312,
330,
522,
4948,
13,
628,
220,
220,
220,
43979,
62,
76,
524,
62,
3672,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
628,
220,
220,
220,
537,
62,
86,
18,
62,
15042,
62,
76,
524,
14804,
361,
62,
86,
18,
62,
15042,
62,
76,
524,
93,
2220,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
279,
62,
76,
524,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
796,
43979,
62,
76,
524,
62,
3672,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
279,
62,
76,
524,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
21504,
62,
76,
524,
62,
15042,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
62,
1662,
62,
25687,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
7170,
62,
32165,
495,
220,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
10215,
3622,
220,
220,
220,
220,
220,
220,
220,
796,
513,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
13966,
1522,
220,
220,
220,
220,
220,
220,
796,
604,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
718,
6739,
628,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
18224,
422,
611,
62,
86,
18,
62,
15042,
62,
76,
524,
93,
2220,
6,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1100,
13,
628,
220,
220,
220,
3440,
62,
76,
524,
62,
15042,
7,
6739,
628,
220,
220,
220,
21504,
62,
76,
524,
62,
15042,
3784,
1136,
62,
1078,
7657,
7,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
279,
62,
1078,
7657,
220,
220,
796,
44608,
62,
37675,
62,
1324,
75,
62,
5589,
62,
39491,
12,
1078,
7657,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
62,
259,
12102,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
285,
524,
62,
2934,
33342,
220,
220,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
13966,
1522,
220,
796,
513,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
796,
604,
6739,
628,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87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,
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_sap_package_mock DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PUBLIC SECTION.
INTERFACES:
zif_abapgit_sap_package.
CONSTANTS:
BEGIN OF c_package,
existing TYPE devclass VALUE '$EXISTING',
non_existing TYPE devclass VALUE '$NON_EXISTING',
user TYPE devclass VALUE '$USER',
END OF c_package.
METHODS:
constructor
IMPORTING
iv_package TYPE devclass,
was_create_called
RETURNING
VALUE(rv_create_called) TYPE abap_bool.
PRIVATE SECTION.
DATA:
mv_package TYPE devclass,
BEGIN OF ms_called,
create TYPE abap_bool,
END OF ms_called.
ENDCLASS.
CLASS ltcl_popups_mock DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PUBLIC SECTION.
TYPES:
ty_user_decision TYPE string.
CONSTANTS:
BEGIN OF c_user_decision,
cancel TYPE ty_user_decision VALUE 'cancel',
confirm TYPE ty_user_decision VALUE 'confirm',
END OF c_user_decision.
INTERFACES:
zif_abapgit_popups.
METHODS:
was_create_package_popup_shown
RETURNING
VALUE(rv_popup_shown) TYPE abap_bool,
set_user_decision
IMPORTING
iv_user_decision TYPE ty_user_decision,
set_package
IMPORTING
iv_package TYPE devclass.
PRIVATE SECTION.
DATA:
BEGIN OF ms_called,
popup_to_create_package TYPE abap_bool,
END OF ms_called,
mv_user_decision TYPE ty_user_decision,
mv_package TYPE devclass.
ENDCLASS.
CLASS ltcl_create_package DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PUBLIC SECTION.
PRIVATE SECTION.
DATA:
mv_package TYPE devclass,
mx_error TYPE REF TO zcx_abapgit_exception,
mo_popups_mock TYPE REF TO ltcl_popups_mock,
mo_sap_package_mock TYPE REF TO ltcl_sap_package_mock,
mv_created_package TYPE devclass.
METHODS:
setup,
raise_error_if_package_exists FOR TESTING RAISING cx_static_check,
package_given_in_popup FOR TESTING RAISING cx_static_check,
package_not_created_when_canc FOR TESTING RAISING cx_static_check,
package_created_when_confirm FOR TESTING RAISING cx_static_check,
given_existing_package,
given_non_existing_package,
given_user_cancels_popup,
given_user_confirms_popup,
given_no_package,
given_package_by_user,
when_create_package,
then_error_is_raised,
then_popup_is_shown,
then_no_package_is_created,
then_package_is_created,
then_no_error_is_raised.
ENDCLASS.
CLASS ltcl_create_package IMPLEMENTATION.
METHOD setup.
CREATE OBJECT mo_popups_mock TYPE ltcl_popups_mock.
zcl_abapgit_ui_injector=>set_popups( mo_popups_mock ).
ENDMETHOD.
METHOD raise_error_if_package_exists.
given_existing_package( ).
when_create_package( ).
then_error_is_raised( ).
ENDMETHOD.
METHOD package_given_in_popup.
given_no_package( ).
given_package_by_user( ).
given_user_confirms_popup( ).
when_create_package( ).
then_no_error_is_raised( ).
then_popup_is_shown( ).
then_package_is_created( ).
ENDMETHOD.
METHOD package_not_created_when_canc.
given_non_existing_package( ).
given_user_cancels_popup( ).
when_create_package( ).
then_popup_is_shown( ).
then_no_package_is_created( ).
ENDMETHOD.
METHOD package_created_when_confirm.
given_non_existing_package( ).
given_user_confirms_popup( ).
when_create_package( ).
then_popup_is_shown( ).
then_package_is_created( ).
ENDMETHOD.
METHOD when_create_package.
CREATE OBJECT mo_sap_package_mock EXPORTING iv_package = mv_package.
zcl_abapgit_injector=>set_sap_package(
iv_package = mv_package
ii_sap_package = mo_sap_package_mock ).
TRY.
mv_created_package = zcl_abapgit_services_basis=>create_package( mv_package ).
CATCH zcx_abapgit_exception INTO mx_error.
ENDTRY.
ENDMETHOD.
METHOD given_existing_package.
mv_package = ltcl_sap_package_mock=>c_package-existing.
ENDMETHOD.
METHOD given_non_existing_package.
mv_package = ltcl_sap_package_mock=>c_package-non_existing.
ENDMETHOD.
METHOD then_error_is_raised.
cl_abap_unit_assert=>assert_bound( mx_error ).
ENDMETHOD.
METHOD then_no_error_is_raised.
cl_abap_unit_assert=>assert_not_bound( mx_error ).
ENDMETHOD.
METHOD then_popup_is_shown.
cl_abap_unit_assert=>assert_true( mo_popups_mock->was_create_package_popup_shown( ) ).
ENDMETHOD.
METHOD given_user_cancels_popup.
mo_popups_mock->set_user_decision( ltcl_popups_mock=>c_user_decision-cancel ).
ENDMETHOD.
METHOD then_no_package_is_created.
cl_abap_unit_assert=>assert_false( mo_sap_package_mock->was_create_called( ) ).
ENDMETHOD.
METHOD given_user_confirms_popup.
mo_popups_mock->set_user_decision( ltcl_popups_mock=>c_user_decision-confirm ).
ENDMETHOD.
METHOD then_package_is_created.
cl_abap_unit_assert=>assert_true( mo_sap_package_mock->was_create_called( ) ).
cl_abap_unit_assert=>assert_equals(
exp = mv_package
act = mv_created_package ).
ENDMETHOD.
METHOD given_no_package.
CLEAR: mv_package.
ENDMETHOD.
METHOD given_package_by_user.
mo_popups_mock->set_package( ltcl_sap_package_mock=>c_package-user ).
ENDMETHOD.
ENDCLASS.
CLASS ltcl_sap_package_mock IMPLEMENTATION.
METHOD constructor.
mv_package = iv_package.
ENDMETHOD.
METHOD zif_abapgit_sap_package~are_changes_recorded_in_tr_req.
ENDMETHOD.
METHOD zif_abapgit_sap_package~create.
ms_called-create = abap_true.
ENDMETHOD.
METHOD zif_abapgit_sap_package~create_child.
ENDMETHOD.
METHOD zif_abapgit_sap_package~create_local.
ENDMETHOD.
METHOD zif_abapgit_sap_package~exists.
rv_bool = boolc( c_package-existing = mv_package ).
ENDMETHOD.
METHOD zif_abapgit_sap_package~get_transport_type.
ENDMETHOD.
METHOD zif_abapgit_sap_package~get_transport_layer.
ENDMETHOD.
METHOD zif_abapgit_sap_package~list_subpackages.
ENDMETHOD.
METHOD zif_abapgit_sap_package~list_superpackages.
ENDMETHOD.
METHOD zif_abapgit_sap_package~read_parent.
ENDMETHOD.
METHOD was_create_called.
rv_create_called = ms_called-create.
ENDMETHOD.
ENDCLASS.
CLASS ltcl_popups_mock IMPLEMENTATION.
METHOD zif_abapgit_popups~branch_list_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~branch_popup_callback.
ENDMETHOD.
METHOD zif_abapgit_popups~choose_pr_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~create_branch_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_folder_logic.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_search_help.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_confirm.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_create_package.
ms_called-popup_to_create_package = abap_true.
CASE mv_user_decision.
WHEN c_user_decision-cancel.
ev_create = abap_false.
WHEN c_user_decision-confirm.
ev_create = abap_true.
WHEN OTHERS.
cl_abap_unit_assert=>fail( ).
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_create_transp_branch.
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 was_create_package_popup_shown.
rv_popup_shown = ms_called-popup_to_create_package.
ENDMETHOD.
METHOD set_user_decision.
mv_user_decision = iv_user_decision.
ENDMETHOD.
METHOD set_package.
mv_package = iv_package.
ENDMETHOD.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
534,
9564,
2969,
4326,
1332,
6097,
198,
31631,
300,
83,
565,
62,
82,
499,
62,
26495,
62,
76,
735,
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,
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,
82,
499,
62,
26495,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
26495,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4683,
220,
220,
220,
220,
41876,
1614,
4871,
26173,
8924,
705,
3,
6369,
8808,
2751,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1729,
62,
25687,
41876,
1614,
4871,
26173,
8924,
705,
3,
45,
1340,
62,
6369,
8808,
2751,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
26173,
8924,
705,
3,
29904,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
26495,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
26495,
41876,
1614,
4871,
11,
628,
220,
220,
220,
220,
220,
373,
62,
17953,
62,
7174,
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,
17953,
62,
7174,
8,
41876,
450,
499,
62,
30388,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
26495,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
13845,
62,
7174,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2251,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
13845,
62,
7174,
13,
198,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
12924,
4739,
62,
76,
735,
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,
44731,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
7220,
62,
12501,
1166,
41876,
4731,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
7220,
62,
12501,
1166,
11,
198,
220,
220,
220,
220,
220,
220,
220,
14241,
220,
41876,
1259,
62,
7220,
62,
12501,
1166,
26173,
8924,
705,
66,
21130,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
6216,
41876,
1259,
62,
7220,
62,
12501,
1166,
26173,
8924,
705,
10414,
2533,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
7220,
62,
12501,
1166,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
373,
62,
17953,
62,
26495,
62,
12924,
929,
62,
42579,
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,
12924,
929,
62,
42579,
8,
41876,
450,
499,
62,
30388,
11,
628,
220,
220,
220,
220,
220,
900,
62,
7220,
62,
12501,
1166,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7220,
62,
12501,
1166,
41876,
1259,
62,
7220,
62,
12501,
1166,
11,
628,
220,
220,
220,
220,
220,
900,
62,
26495,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
26495,
41876,
1614,
4871,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
13845,
62,
7174,
11,
198,
220,
220,
220,
220,
220,
220,
220,
46207,
62,
1462,
62,
17953,
62,
26495,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
13845,
62,
7174,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
7220,
62,
12501,
1166,
41876,
1259,
62,
7220,
62,
12501,
1166,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
26495,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
13,
198,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
17953,
62,
26495,
5550,
20032,
17941,
25261,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
198,
220,
44731,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
26495,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
285,
87,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
6941,
62,
12924,
4739,
62,
76,
735,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
300,
83,
565,
62,
12924,
4739,
62,
76,
735,
11,
198,
220,
220,
220,
220,
220,
6941,
62,
82,
499,
62,
26495,
62,
76,
735,
41876,
4526,
37,
5390,
300,
83,
565,
62,
82,
499,
62,
26495,
62,
76,
735,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
25598,
62,
26495,
220,
41876,
1614,
4871,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
628,
220,
220,
220,
220,
220,
5298,
62,
18224,
62,
361,
62,
26495,
62,
1069,
1023,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
5301,
62,
35569,
62,
259,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: tty_dd26v TYPE STANDARD TABLE OF dd26v
WITH NON-UNIQUE DEFAULT KEY,
tty_dd27p TYPE STANDARD TABLE OF dd27p
WITH NON-UNIQUE DEFAULT KEY,
tty_dd28j TYPE STANDARD TABLE OF dd28j
WITH NON-UNIQUE DEFAULT KEY,
tty_dd28v TYPE STANDARD TABLE OF dd28v
WITH NON-UNIQUE DEFAULT KEY.
CONSTANTS: BEGIN OF co_viewclass,
help TYPE viewclass VALUE 'H',
database TYPE viewclass VALUE 'D',
projection TYPE viewclass VALUE 'P',
structure TYPE viewclass VALUE 'S',
maintenance TYPE viewclass VALUE 'C',
entity TYPE viewclass VALUE 'E',
view_variant TYPE viewclass VALUE 'V',
append TYPE viewclass VALUE 'A',
external TYPE viewclass VALUE 'X',
replication TYPE viewclass VALUE 'R',
END OF co_viewclass.
METHODS:
read_view
EXPORTING
es_dd25v TYPE dd25v
es_dd09l TYPE dd09l
et_dd26v TYPE tty_dd26v
et_dd27p TYPE tty_dd27p
et_dd28j TYPE tty_dd28j
et_dd28v TYPE tty_dd28v
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_VIEW IMPLEMENTATION.
METHOD read_view.
DATA: lv_name TYPE ddobjname.
lv_name = ms_item-obj_name.
CALL FUNCTION 'DDIF_VIEW_GET'
EXPORTING
name = lv_name
state = 'A'
langu = mv_language
IMPORTING
dd25v_wa = es_dd25v
dd09l_wa = es_dd09l
TABLES
dd26v_tab = et_dd26v
dd27p_tab = et_dd27p
dd28j_tab = et_dd28j
dd28v_tab = et_dd28v
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from DDIF_VIEW_GET' ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE as4user FROM dd25l INTO rv_user
WHERE viewname = ms_item-obj_name
AND as4local = 'A'
AND as4vers = '0000'.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
IF zif_abapgit_object~exists( ) = abap_false.
RETURN.
ENDIF.
delete_ddic( 'V' ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: lv_name TYPE ddobjname,
ls_dd25v TYPE dd25v,
ls_dd09l TYPE dd09l,
lt_dd26v TYPE TABLE OF dd26v,
lt_dd27p TYPE TABLE OF dd27p,
lt_dd28j TYPE TABLE OF dd28j,
lt_dd28v TYPE TABLE OF dd28v.
io_xml->read( EXPORTING iv_name = 'DD25V'
CHANGING cg_data = ls_dd25v ).
io_xml->read( EXPORTING iv_name = 'DD09L'
CHANGING cg_data = ls_dd09l ).
io_xml->read( EXPORTING iv_name = 'DD26V_TABLE'
CHANGING cg_data = lt_dd26v ).
io_xml->read( EXPORTING iv_name = 'DD27P_TABLE'
CHANGING cg_data = lt_dd27p ).
io_xml->read( EXPORTING iv_name = 'DD28J_TABLE'
CHANGING cg_data = lt_dd28j ).
io_xml->read( EXPORTING iv_name = 'DD28V_TABLE'
CHANGING cg_data = lt_dd28v ).
corr_insert( iv_package = iv_package
ig_object_class = 'DICT' ).
lv_name = ms_item-obj_name. " type conversion
CALL FUNCTION 'DDIF_VIEW_PUT'
EXPORTING
name = lv_name
dd25v_wa = ls_dd25v
dd09l_wa = ls_dd09l
TABLES
dd26v_tab = lt_dd26v
dd27p_tab = lt_dd27p
dd28j_tab = lt_dd28j
dd28v_tab = lt_dd28v
EXCEPTIONS
view_not_found = 1
name_inconsistent = 2
view_inconsistent = 3
put_failure = 4
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from DDIF_VIEW_PUT' ).
ENDIF.
zcl_abapgit_objects_activation=>add_item( ms_item ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_viewname TYPE dd25l-viewname,
lv_ddl_view TYPE abap_bool.
SELECT SINGLE viewname FROM dd25l INTO lv_viewname
WHERE viewname = ms_item-obj_name
AND as4local = 'A'
AND as4vers = '0000'.
rv_bool = boolc( sy-subrc = 0 ).
IF rv_bool = abap_true.
TRY.
CALL METHOD ('CL_DD_DDL_UTILITIES')=>('CHECK_FOR_DDL_VIEW')
EXPORTING
objname = lv_viewname
RECEIVING
is_ddl_view = lv_ddl_view.
IF lv_ddl_view = abap_true.
rv_bool = abap_false.
ENDIF.
CATCH cx_root ##NO_HANDLER.
ENDTRY.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~get_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.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
DATA: ls_dd25v TYPE dd25v.
read_view( IMPORTING es_dd25v = ls_dd25v ).
CASE ls_dd25v-viewclass.
WHEN co_viewclass-view_variant.
CALL FUNCTION 'RS_TOOL_ACCESS'
EXPORTING
operation = 'SHOW'
object_name = ms_item-obj_name
object_type = ms_item-obj_type
in_new_window = abap_true
EXCEPTIONS
not_executed = 1
invalid_object_type = 2
OTHERS = 3.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from RS_TOOL_ACCESS. Subrc={ sy-subrc }| ).
ENDIF.
WHEN OTHERS.
jump_se11( iv_radio = 'RSRD1-VIMA'
iv_field = 'RSRD1-VIMA_VAL' ).
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: ls_dd25v TYPE dd25v,
ls_dd09l TYPE dd09l,
lt_dd26v TYPE tty_dd26v,
lt_dd27p TYPE tty_dd27p,
lt_dd28j TYPE tty_dd28j,
lt_dd28v TYPE tty_dd28v.
FIELD-SYMBOLS: <ls_dd27p> LIKE LINE OF lt_dd27p.
read_view(
IMPORTING
es_dd25v = ls_dd25v
es_dd09l = ls_dd09l
et_dd26v = lt_dd26v
et_dd27p = lt_dd27p
et_dd28j = lt_dd28j
et_dd28v = lt_dd28v ).
IF ls_dd25v IS INITIAL.
RETURN. " does not exist in system
ENDIF.
CLEAR: ls_dd25v-as4user,
ls_dd25v-as4date,
ls_dd25v-as4time.
CLEAR: ls_dd09l-as4user,
ls_dd09l-as4date,
ls_dd09l-as4time.
LOOP AT lt_dd27p ASSIGNING <ls_dd27p>.
CLEAR: <ls_dd27p>-ddtext,
<ls_dd27p>-reptext,
<ls_dd27p>-scrtext_s,
<ls_dd27p>-scrtext_m,
<ls_dd27p>-scrtext_l,
<ls_dd27p>-outputlen,
<ls_dd27p>-decimals,
<ls_dd27p>-lowercase,
<ls_dd27p>-convexit,
<ls_dd27p>-signflag,
<ls_dd27p>-flength,
<ls_dd27p>-domname,
<ls_dd27p>-datatype,
<ls_dd27p>-entitytab,
<ls_dd27p>-inttype,
<ls_dd27p>-intlen,
<ls_dd27p>-headlen,
<ls_dd27p>-scrlen1,
<ls_dd27p>-scrlen2,
<ls_dd27p>-scrlen3,
<ls_dd27p>-memoryid.
ENDLOOP.
io_xml->add( iv_name = 'DD25V'
ig_data = ls_dd25v ).
io_xml->add( iv_name = 'DD09L'
ig_data = ls_dd09l ).
io_xml->add( ig_data = lt_dd26v
iv_name = 'DD26V_TABLE' ).
io_xml->add( ig_data = lt_dd27p
iv_name = 'DD27P_TABLE' ).
io_xml->add( ig_data = lt_dd28j
iv_name = 'DD28J_TABLE' ).
io_xml->add( ig_data = lt_dd28v
iv_name = 'DD28V_TABLE' ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
1177,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
256,
774,
62,
1860,
2075,
85,
41876,
49053,
9795,
43679,
3963,
49427,
2075,
85,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
774,
62,
1860,
1983,
79,
41876,
49053,
9795,
43679,
3963,
49427,
1983,
79,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
774,
62,
1860,
2078,
73,
41876,
49053,
9795,
43679,
3963,
49427,
2078,
73,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
774,
62,
1860,
2078,
85,
41876,
49053,
9795,
43679,
3963,
49427,
2078,
85,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
347,
43312,
3963,
763,
62,
1177,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1037,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1570,
4871,
26173,
8924,
705,
39,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6831,
220,
220,
220,
220,
41876,
1570,
4871,
26173,
8924,
705,
35,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20128,
220,
220,
41876,
1570,
4871,
26173,
8924,
705,
47,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4645,
220,
220,
220,
41876,
1570,
4871,
26173,
8924,
705,
50,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9262,
220,
41876,
1570,
4871,
26173,
8924,
705,
34,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9312,
220,
220,
220,
220,
220,
220,
41876,
1570,
4871,
26173,
8924,
705,
36,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1570,
62,
25641,
415,
41876,
1570,
4871,
26173,
8924,
705,
53,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24443,
220,
220,
220,
220,
220,
220,
41876,
1570,
4871,
26173,
8924,
705,
32,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7097,
220,
220,
220,
220,
41876,
1570,
4871,
26173,
8924,
705,
55,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30330,
220,
41876,
1570,
4871,
26173,
8924,
705,
49,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
763,
62,
1177,
4871,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
1100,
62,
1177,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1658,
62,
1860,
1495,
85,
41876,
49427,
1495,
85,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1658,
62,
1860,
2931,
75,
41876,
49427,
2931,
75,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
1860,
2075,
85,
41876,
256,
774,
62,
1860,
2075,
85,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
1860,
1983,
79,
41876,
256,
774,
62,
1860,
1983,
79,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
1860,
2078,
73,
41876,
256,
774,
62,
1860,
2078,
73,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
1860,
2078,
85,
41876,
256,
774,
62,
1860,
2078,
85,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
28206,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1100,
62,
1177,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
41876,
49427,
26801,
3672,
13,
628,
220,
220,
220,
300,
85,
62,
3672,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
16458,
5064,
62,
28206,
62,
18851,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
1181,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
32,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2786,
220,
220,
220,
220,
220,
220,
220,
220,
796,
285,
85,
62,
16129,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_ui_injector DEFINITION
PUBLIC
CREATE PRIVATE .
PUBLIC SECTION.
CLASS-METHODS set_popups
IMPORTING
!ii_popups TYPE REF TO zif_abapgit_popups .
CLASS-METHODS set_frontend_services
IMPORTING
!ii_fe_serv TYPE REF TO zif_abapgit_frontend_services .
CLASS-METHODS set_gui_services
IMPORTING
!ii_gui_services TYPE REF TO zif_abapgit_gui_services .
CLASS-METHODS get_dummy_gui_services
RETURNING
VALUE(ri_gui_services) TYPE REF TO zif_abapgit_gui_services .
CLASS-METHODS set_html_viewer
IMPORTING
!ii_html_viewer TYPE REF TO zif_abapgit_html_viewer .
CLASS-METHODS set_gui_jumper
IMPORTING
!ii_gui_jumper TYPE REF TO zif_abapgit_gui_jumper .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_abapgit_ui_injector IMPLEMENTATION.
METHOD get_dummy_gui_services.
ri_gui_services = lcl_gui_services_dummy=>create( ).
ENDMETHOD.
METHOD set_frontend_services.
zcl_abapgit_ui_factory=>gi_fe_services = ii_fe_serv.
ENDMETHOD.
METHOD set_gui_jumper.
zcl_abapgit_ui_factory=>gi_gui_jumper = ii_gui_jumper.
ENDMETHOD.
METHOD set_gui_services.
zcl_abapgit_ui_factory=>gi_gui_services = ii_gui_services.
ENDMETHOD.
METHOD set_html_viewer.
zcl_abapgit_ui_factory=>gi_html_viewer = ii_html_viewer.
ENDMETHOD.
METHOD set_popups.
zcl_abapgit_ui_factory=>gi_popups = ii_popups.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
259,
752,
273,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
900,
62,
12924,
4739,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
12924,
4739,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
900,
62,
8534,
437,
62,
30416,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
5036,
62,
3168,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
8534,
437,
62,
30416,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
900,
62,
48317,
62,
30416,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
48317,
62,
30416,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
30416,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
67,
13513,
62,
48317,
62,
30416,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
48317,
62,
30416,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
30416,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
900,
62,
6494,
62,
1177,
263,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
6494,
62,
1177,
263,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
62,
1177,
263,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
900,
62,
48317,
62,
73,
15829,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
48317,
62,
73,
15829,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
73,
15829,
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,
397,
499,
18300,
62,
9019,
62,
259,
752,
273,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
67,
13513,
62,
48317,
62,
30416,
13,
628,
220,
220,
220,
374,
72,
62,
48317,
62,
30416,
796,
300,
565,
62,
48317,
62,
30416,
62,
67,
13513,
14804,
17953,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
900,
62,
8534,
437,
62,
30416,
13,
628,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
14804,
12397,
62,
5036,
62,
30416,
796,
21065,
62,
5036,
62,
3168,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
900,
62,
48317,
62,
73,
15829,
13,
628,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
14804,
12397,
62,
48317,
62,
73,
15829,
796,
21065,
62,
48317,
62,
73,
15829,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
900,
62,
48317,
62,
30416,
13,
628,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
14804,
12397,
62,
48317,
62,
30416,
796,
21065,
62,
48317,
62,
30416,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
900,
62,
6494,
62,
1177,
263,
13,
628,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
14804,
12397,
62,
6494,
62,
1177,
263,
796,
21065,
62,
6494,
62,
1177,
263,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
900,
62,
12924,
4739,
13,
628,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
14804,
12397,
62,
12924,
4739,
796,
21065,
62,
12924,
4739,
13,
628,
220,
23578,
49273,
13,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ZAAP_CONFIGURE_ASSOC_LCL_DRAGD.
*----------------------------------------------------------------------*
CLASS lcl_annotation_drop DEFINITION.
PUBLIC SECTION.
TYPES:
gty_annotation_tab TYPE STANDARD TABLE OF abap_classname.
METHODS:
constructor IMPORTING it_annotations TYPE gty_annotation_tab.
DATA:
mt_annotations TYPE gty_annotation_tab READ-ONLY.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS lcl_annotation_drop IMPLEMENTATION.
METHOD constructor.
mt_annotations = it_annotations.
ENDMETHOD.
ENDCLASS.
| [
9,
10097,
23031,
9,
198,
8162,
1268,
5097,
52,
7206,
1168,
32,
2969,
62,
10943,
16254,
11335,
62,
10705,
4503,
62,
43,
5097,
62,
35,
33202,
35,
13,
198,
9,
10097,
23031,
9,
198,
198,
31631,
300,
565,
62,
1236,
14221,
62,
14781,
5550,
20032,
17941,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
308,
774,
62,
1236,
14221,
62,
8658,
41876,
49053,
9795,
43679,
3963,
450,
499,
62,
4871,
3672,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
30023,
9863,
2751,
340,
62,
34574,
602,
41876,
308,
774,
62,
1236,
14221,
62,
8658,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
45079,
62,
34574,
602,
41876,
308,
774,
62,
1236,
14221,
62,
8658,
20832,
12,
1340,
11319,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
565,
62,
1236,
14221,
62,
14781,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
45079,
62,
34574,
602,
796,
340,
62,
34574,
602,
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
] |
CLASS zcl_gtt_mia_tp_reader_shh DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_gtt_mia_tp_reader .
METHODS constructor
IMPORTING
!io_ef_parameters TYPE REF TO zif_gtt_mia_ef_parameters .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
tt_trobj_res_id TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_trobj_res_id WITH EMPTY KEY .
TYPES:
tt_trobj_res_val TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_trobj_res_val WITH EMPTY KEY .
TYPES:
tt_resrc_cnt TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_resrc_cnt WITH EMPTY KEY .
TYPES:
tt_resrc_tp_id TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_resrc_tp_id WITH EMPTY KEY .
TYPES:
tt_crdoc_ref_typ TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_crdoc_ref_typ WITH EMPTY KEY .
TYPES:
tt_crdoc_ref_val TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_crdoc_ref_val WITH EMPTY KEY .
TYPES:
BEGIN OF ts_sh_header,
tknum TYPE vttkvb-tknum,
bu_id_num TYPE /saptrx/paramval200,
cont_dg TYPE vttkvb-cont_dg,
tndr_trkid TYPE vttkvb-tndr_trkid,
ship_type TYPE zif_gtt_mia_app_types=>tv_ship_type,
trans_mode TYPE zif_gtt_mia_app_types=>tv_trans_mode,
ship_kind TYPE zif_gtt_mia_app_types=>tv_shipment_kind,
departure_dt TYPE zif_gtt_mia_app_types=>tv_departure_dt,
departure_tz TYPE zif_gtt_mia_app_types=>tv_departure_tz,
departure_locid TYPE zif_gtt_mia_app_types=>tv_locid,
departure_loctype TYPE zif_gtt_mia_app_types=>tv_loctype,
arrival_dt TYPE zif_gtt_mia_app_types=>tv_arrival_dt,
arrival_tz TYPE zif_gtt_mia_app_types=>tv_arrival_tz,
arrival_locid TYPE zif_gtt_mia_app_types=>tv_locid,
arrival_loctype TYPE zif_gtt_mia_app_types=>tv_loctype,
tdlnr TYPE vttkvb-tdlnr,
* deliv_cnt TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_deliv_cnt WITH EMPTY KEY,
* deliv_no TYPE STANDARD TABLE OF vbeln WITH EMPTY KEY,
trobj_res_id TYPE tt_trobj_res_id,
trobj_res_val TYPE tt_trobj_res_val,
resrc_cnt TYPE tt_resrc_cnt,
resrc_tp_id TYPE tt_resrc_tp_id,
crdoc_ref_typ TYPE tt_crdoc_ref_typ,
crdoc_ref_val TYPE tt_crdoc_ref_val,
stpid_stopid TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_stopid WITH EMPTY KEY,
stpid_stopcnt TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_stopcnt WITH EMPTY KEY,
stpid_loctype TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_loctype WITH EMPTY KEY,
stpid_locid TYPE STANDARD TABLE OF zif_gtt_mia_app_types=>tv_locid WITH EMPTY KEY,
shpdoc_ref_typ TYPE STANDARD TABLE OF /scmtms/btd_type_code WITH EMPTY KEY,
shpdoc_ref_val TYPE STANDARD TABLE OF vbeln WITH EMPTY KEY,
END OF ts_sh_header .
DATA mo_ef_parameters TYPE REF TO zif_gtt_mia_ef_parameters .
CONSTANTS:
BEGIN OF cs_mapping,
tknum TYPE /saptrx/paramname VALUE 'YN_SHP_NO',
bu_id_num TYPE /saptrx/paramname VALUE 'YN_SHP_SA_LBN_ID',
cont_dg TYPE /saptrx/paramname VALUE 'YN_SHP_CONTAIN_DGOODS',
tndr_trkid TYPE /saptrx/paramname VALUE 'YN_SHP_FA_TRACKING_ID',
ship_type TYPE /saptrx/paramname VALUE 'YN_SHP_SHIPPING_TYPE',
trans_mode TYPE /saptrx/paramname VALUE 'YN_SHP_TRANSPORTATION_MODE',
ship_kind TYPE /saptrx/paramname VALUE 'YN_SHP_SHIPMENT_TYPE',
departure_dt TYPE /saptrx/paramname VALUE 'YN_SHP_PLN_DEP_BUS_DATETIME',
departure_tz TYPE /saptrx/paramname VALUE 'YN_SHP_PLN_DEP_BUS_TIMEZONE',
departure_locid TYPE /saptrx/paramname VALUE 'YN_SHP_PLN_DEP_LOC_ID',
departure_loctype TYPE /saptrx/paramname VALUE 'YN_SHP_PLN_DEP_LOC_TYPE',
arrival_dt TYPE /saptrx/paramname VALUE 'YN_SHP_PLN_AR_BUS_DATETIME',
arrival_tz TYPE /saptrx/paramname VALUE 'YN_SHP_PLN_AR_BUS_TIMEZONE',
arrival_locid TYPE /saptrx/paramname VALUE 'YN_SHP_PLN_AR_LOC_ID',
arrival_loctype TYPE /saptrx/paramname VALUE 'YN_SHP_PLN_AR_LOC_TYPE',
tdlnr TYPE /saptrx/paramname VALUE 'YN_SHP_SA_ERP_ID',
* deliv_cnt TYPE /saptrx/paramname VALUE 'YN_SHP_HDR_DLV_LINE_COUNT',
* deliv_no TYPE /saptrx/paramname VALUE 'YN_SHP_HDR_DLV_NO',
trobj_res_id TYPE /saptrx/paramname VALUE 'YN_SHP_TRACKED_RESOURCE_ID',
trobj_res_val TYPE /saptrx/paramname VALUE 'YN_SHP_TRACKED_RESOURCE_VALUE',
resrc_cnt TYPE /saptrx/paramname VALUE 'YN_SHP_RESOURCE_TP_LINE_COUNT',
resrc_tp_id TYPE /saptrx/paramname VALUE 'YN_SHP_RESOURCE_TP_ID',
crdoc_ref_typ TYPE /saptrx/paramname VALUE 'YN_SHP_CARRIER_REF_TYPE',
crdoc_ref_val TYPE /saptrx/paramname VALUE 'YN_SHP_CARRIER_REF_VALUE',
stpid_stopid TYPE /saptrx/paramname VALUE 'YN_SHP_VP_STOP_ID',
stpid_stopcnt TYPE /saptrx/paramname VALUE 'YN_SHP_VP_STOP_ORD_NO',
stpid_loctype TYPE /saptrx/paramname VALUE 'YN_SHP_VP_STOP_LOC_TYPE',
stpid_locid TYPE /saptrx/paramname VALUE 'YN_SHP_VP_STOP_LOC_ID',
shpdoc_ref_typ TYPE /saptrx/paramname VALUE 'YN_SHP_SHIPPER_REF_TYPE',
shpdoc_ref_val TYPE /saptrx/paramname VALUE 'YN_SHP_SHIPPER_REF_VALUE',
END OF cs_mapping .
METHODS fill_header_from_vttk
IMPORTING
!ir_vttk TYPE REF TO data
!iv_vttp_cnt TYPE i
CHANGING
!cs_header TYPE ts_sh_header
RAISING
cx_udm_message .
METHODS fill_header_from_vttp
IMPORTING
!ir_vttk TYPE REF TO data
!ir_vttp TYPE REF TO data
CHANGING
!cs_header TYPE ts_sh_header
RAISING
cx_udm_message .
METHODS fill_header_from_vtts
IMPORTING
!ir_vttk TYPE REF TO data
!ir_vttp TYPE REF TO data
!ir_vtts TYPE REF TO data
!ir_vtsp TYPE REF TO data OPTIONAL
CHANGING
!cs_header TYPE ts_sh_header
RAISING
cx_udm_message .
METHODS fill_tracked_object_tables
IMPORTING
!is_vttk TYPE vttkvb
EXPORTING
!et_res_id TYPE tt_trobj_res_id
!et_res_val TYPE tt_trobj_res_val .
METHODS fill_resource_tables
IMPORTING
!is_vttk TYPE vttkvb
EXPORTING
!et_ref_cnt TYPE tt_resrc_cnt
!et_tp_id TYPE tt_resrc_tp_id .
METHODS fill_carrier_ref_doc_tables
IMPORTING
!is_vttk TYPE vttkvb
EXPORTING
!et_ref_typ TYPE tt_crdoc_ref_typ
!et_ref_val TYPE tt_crdoc_ref_val .
METHODS get_forwarding_agent_id_number
IMPORTING
!iv_tdlnr TYPE tdlnr
RETURNING
VALUE(rv_id_num) TYPE /saptrx/paramval200 .
METHODS get_resource_tracking_id
IMPORTING
!is_vttk TYPE vttkvb
RETURNING
VALUE(rv_tracking_id) TYPE /saptrx/trxid .
METHODS get_shippment_header
IMPORTING
!is_app_object TYPE trxas_appobj_ctab_wa
!ir_vttk TYPE REF TO data
RETURNING
VALUE(rr_vttk) TYPE REF TO data
RAISING
cx_udm_message .
METHODS get_shippment_item_count
IMPORTING
!ir_vttp TYPE REF TO data
RETURNING
VALUE(rv_count) TYPE i
RAISING
cx_udm_message .
METHODS get_shippment_type
IMPORTING
!iv_vsart TYPE clike
!iv_vttp_cnt TYPE i
RETURNING
VALUE(rv_ship_type) TYPE zif_gtt_mia_app_types=>tv_ship_type .
METHODS get_transportation_mode
IMPORTING
!iv_vsart TYPE clike
RETURNING
VALUE(rv_trans_mode) TYPE zif_gtt_mia_app_types=>tv_trans_mode .
METHODS is_object_changed
IMPORTING
!is_app_object TYPE trxas_appobj_ctab_wa
RETURNING
VALUE(rv_result) TYPE abap_bool
RAISING
cx_udm_message .
ENDCLASS.
CLASS ZCL_GTT_MIA_TP_READER_SHH IMPLEMENTATION.
METHOD constructor.
mo_ef_parameters = io_ef_parameters.
ENDMETHOD.
METHOD fill_carrier_ref_doc_tables.
zcl_gtt_mia_sh_tools=>get_carrier_reference_document(
EXPORTING
is_vttk = is_vttk
IMPORTING
ev_ref_typ = DATA(lv_ref_typ)
ev_ref_val = DATA(lv_ref_val) ).
IF lv_ref_typ IS NOT INITIAL AND lv_ref_val IS NOT INITIAL.
et_ref_typ = VALUE #( ( lv_ref_typ ) ).
et_ref_val = VALUE #( ( lv_ref_val ) ).
ELSE.
CLEAR: et_ref_typ[], et_ref_val[].
ENDIF.
ENDMETHOD.
METHOD fill_header_from_vttk.
FIELD-SYMBOLS: <ls_vttk> TYPE vttkvb.
ASSIGN ir_vttk->* TO <ls_vttk>.
IF sy-subrc = 0.
cs_header-tknum = zcl_gtt_mia_sh_tools=>get_formated_sh_number(
ir_vttk = ir_vttk ).
cs_header-bu_id_num = get_forwarding_agent_id_number(
iv_tdlnr = <ls_vttk>-tdlnr ).
cs_header-cont_dg = <ls_vttk>-cont_dg.
cs_header-tndr_trkid = <ls_vttk>-tndr_trkid.
cs_header-ship_type = get_shippment_type(
iv_vsart = <ls_vttk>-vsart
iv_vttp_cnt = iv_vttp_cnt ).
cs_header-trans_mode = get_transportation_mode(
iv_vsart = <ls_vttk>-vsart ) .
cs_header-ship_kind = zif_gtt_mia_app_constants=>cs_shipment_kind-shipment.
cs_header-tdlnr = <ls_vttk>-tdlnr.
fill_tracked_object_tables(
EXPORTING
is_vttk = <ls_vttk>
IMPORTING
et_res_id = cs_header-trobj_res_id
et_res_val = cs_header-trobj_res_val ).
fill_resource_tables(
EXPORTING
is_vttk = <ls_vttk>
IMPORTING
et_ref_cnt = cs_header-resrc_cnt
et_tp_id = cs_header-resrc_tp_id ).
fill_carrier_ref_doc_tables(
EXPORTING
is_vttk = <ls_vttk>
IMPORTING
et_ref_typ = cs_header-crdoc_ref_typ
et_ref_val = cs_header-crdoc_ref_val ).
ELSE.
MESSAGE e002(zgtt_mia) WITH 'VTTK' INTO DATA(lv_dummy).
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD fill_header_from_vttp.
TYPES: tt_vttp TYPE STANDARD TABLE OF vttpvb.
DATA: lv_count TYPE i VALUE 0,
lv_vbeln TYPE vbeln_vl.
FIELD-SYMBOLS: <ls_vttk> TYPE vttkvb,
<lt_vttp> TYPE tt_vttp.
ASSIGN ir_vttk->* TO <ls_vttk>.
ASSIGN ir_vttp->* TO <lt_vttp>.
IF sy-subrc = 0.
LOOP AT <lt_vttp> ASSIGNING FIELD-SYMBOL(<ls_vttp>)
WHERE tknum = <ls_vttk>-tknum.
lv_vbeln = zcl_gtt_mia_dl_tools=>get_formated_dlv_number(
ir_likp = REF #( <ls_vttp> ) ).
* For inbound Delivery,add shipper reference document
IF <ls_vttk>-abfer = zif_gtt_mia_app_constants=>cs_abfer-empty_inb_ship OR
<ls_vttk>-abfer = zif_gtt_mia_app_constants=>cs_abfer-loaded_inb_ship.
APPEND zif_gtt_mia_app_constants=>cs_base_btd_tco-inb_dlv TO cs_header-shpdoc_ref_typ.
APPEND lv_vbeln TO cs_header-shpdoc_ref_val.
* For outbound Delivery,add shipper reference document
ELSE.
APPEND zif_gtt_mia_app_constants=>cs_base_btd_tco-outb_dlv TO cs_header-shpdoc_ref_typ.
APPEND lv_vbeln TO cs_header-shpdoc_ref_val.
ENDIF.
ENDLOOP.
ELSEIF <ls_vttk> IS NOT ASSIGNED.
MESSAGE e002(zgtt_mia) WITH 'VTTK' INTO DATA(lv_dummy).
zcl_gtt_mia_tools=>throw_exception( ).
ELSE.
MESSAGE e002(zgtt_mia) WITH 'VTTP' INTO lv_dummy.
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD fill_header_from_vtts.
TYPES: BEGIN OF ts_stop_id,
stopid_txt TYPE zif_gtt_mia_app_types=>tv_stopid,
stopcnt TYPE zif_gtt_mia_app_types=>tv_stopcnt,
loctype TYPE zif_gtt_mia_app_types=>tv_loctype,
locid TYPE zif_gtt_mia_app_types=>tv_locid,
END OF ts_stop_id.
DATA(lv_tknum) = CONV tknum( zcl_gtt_mia_tools=>get_field_of_structure(
ir_struct_data = ir_vttk
iv_field_name = 'TKNUM' ) ).
DATA: lt_vtts TYPE vttsvb_tab,
lt_stops TYPE zif_gtt_mia_app_types=>tt_stops,
lt_stop_ids TYPE STANDARD TABLE OF ts_stop_id,
lv_datetime TYPE zif_gtt_mia_app_types=>tv_pln_evt_datetime,
lv_locid TYPE zif_gtt_mia_app_types=>tv_locid,
lv_stopid TYPE zif_gtt_mia_app_types=>tv_stopid,
lv_count TYPE i.
FIELD-SYMBOLS: <lt_vttp> TYPE vttpvb_tab,
<lt_vtts> TYPE vttsvb_tab,
<lt_vtsp> TYPE vtspvb_tab,
<ls_stops> TYPE zif_gtt_mia_app_types=>ts_stops.
ASSIGN ir_vtts->* TO <lt_vtts>.
ASSIGN ir_vttp->* TO <lt_vttp>.
ASSIGN ir_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 = lt_stops ).
CLEAR: lv_count.
SORT lt_stops BY stopid.
MOVE-CORRESPONDING lt_stops TO lt_stop_ids.
DELETE ADJACENT DUPLICATES FROM lt_stop_ids.
LOOP AT lt_stop_ids ASSIGNING FIELD-SYMBOL(<ls_stop_ids>).
lv_locid = zcl_gtt_mia_tools=>get_pretty_location_id(
iv_locid = <ls_stop_ids>-locid
iv_loctype = <ls_stop_ids>-loctype ).
APPEND <ls_stop_ids>-stopid_txt TO cs_header-stpid_stopid.
APPEND <ls_stop_ids>-stopcnt TO cs_header-stpid_stopcnt.
APPEND <ls_stop_ids>-loctype TO cs_header-stpid_loctype.
APPEND lv_locid TO cs_header-stpid_locid.
ENDLOOP.
READ TABLE lt_stops ASSIGNING <ls_stops> INDEX 1.
IF sy-subrc = 0.
cs_header-departure_dt = zcl_gtt_mia_tools=>convert_datetime_to_utc(
iv_datetime = <ls_stops>-pln_evt_datetime
iv_timezone = <ls_stops>-pln_evt_timezone ).
cs_header-departure_tz = <ls_stops>-pln_evt_timezone.
cs_header-departure_locid = zcl_gtt_mia_tools=>get_pretty_location_id(
iv_locid = <ls_stops>-locid
iv_loctype = <ls_stops>-loctype ).
cs_header-departure_loctype = <ls_stops>-loctype.
ENDIF.
READ TABLE lt_stops ASSIGNING <ls_stops> INDEX lines( lt_stops ).
IF sy-subrc = 0.
cs_header-arrival_dt = zcl_gtt_mia_tools=>convert_datetime_to_utc(
iv_datetime = <ls_stops>-pln_evt_datetime
iv_timezone = <ls_stops>-pln_evt_timezone ).
cs_header-arrival_tz = <ls_stops>-pln_evt_timezone.
cs_header-arrival_locid = zcl_gtt_mia_tools=>get_pretty_location_id(
iv_locid = <ls_stops>-locid
iv_loctype = <ls_stops>-loctype ).
cs_header-arrival_loctype = <ls_stops>-loctype.
ENDIF.
ELSE.
MESSAGE e002(zgtt_mia) WITH 'VTTS' INTO DATA(lv_dummy).
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD fill_resource_tables.
DATA(lv_res_tid) = get_resource_tracking_id(
is_vttk = is_vttk ).
IF lv_res_tid IS NOT INITIAL.
et_ref_cnt = VALUE #( ( 1 ) ).
et_tp_id = VALUE #( ( CONV #( lv_res_tid ) ) ).
ENDIF.
ENDMETHOD.
METHOD fill_tracked_object_tables.
IF is_vttk-exti1 IS NOT INITIAL AND
is_vttk-vsart = '01'.
et_res_id = VALUE #( ( 'NA' ) ).
et_res_val = VALUE #( ( is_vttk-exti1 ) ).
ELSEIF is_vttk-vsart = '04' AND
is_vttk-signi IS NOT INITIAL.
et_res_id = VALUE #( ( 'CONTAINER_ID' ) ).
et_res_val = VALUE #( ( is_vttk-signi ) ).
ELSEIF is_vttk-exti1 IS NOT INITIAL AND
( is_vttk-vsart = '05' OR
is_vttk-vsart = '15' ).
et_res_id = VALUE #( ( 'FLIGHT_NUMBER' ) ).
et_res_val = VALUE #( ( is_vttk-exti1 ) ).
ELSE.
CLEAR: et_res_id[], et_res_val[].
ENDIF.
ENDMETHOD.
METHOD get_forwarding_agent_id_number.
DATA: lv_forward_agt TYPE bu_partner,
lt_bpdetail TYPE STANDARD TABLE OF bapibus1006_id_details.
CALL METHOD cl_site_bp_assignment=>select_bp_via_cvi_link
EXPORTING
i_lifnr = iv_tdlnr
IMPORTING
e_bp = lv_forward_agt.
CALL FUNCTION 'BAPI_IDENTIFICATIONDETAILS_GET'
EXPORTING
businesspartner = lv_forward_agt
TABLES
identificationdetail = lt_bpdetail.
READ TABLE lt_bpdetail ASSIGNING FIELD-SYMBOL(<ls_bpdetail>)
WITH KEY identificationtype = zif_gtt_mia_app_constants=>cv_agent_id_type
BINARY SEARCH.
rv_id_num = COND #( WHEN sy-subrc = 0
THEN zif_gtt_mia_app_constants=>cv_agent_id_prefix &&
<ls_bpdetail>-identificationnumber ).
ENDMETHOD.
METHOD get_resource_tracking_id.
rv_tracking_id = COND #(
WHEN is_vttk-exti1 IS NOT INITIAL AND
( is_vttk-vsart = '01' OR
is_vttk-vsart = '05' OR
is_vttk-vsart = '15' )
THEN |{ is_vttk-tknum ALPHA = OUT }{ is_vttk-exti1 }|
WHEN is_vttk-signi IS NOT INITIAL AND
is_vttk-vsart = '04'
THEN |{ is_vttk-tknum ALPHA = OUT }{ is_vttk-signi }|
).
CONDENSE rv_tracking_id NO-GAPS.
ENDMETHOD.
METHOD get_shippment_header.
TYPES: tt_vttk TYPE STANDARD TABLE OF vttkvb.
FIELD-SYMBOLS: <lt_vttk> TYPE tt_vttk.
DATA(lv_tknum) = zcl_gtt_mia_tools=>get_field_of_structure(
ir_struct_data = is_app_object-maintabref
iv_field_name = 'TKNUM' ).
ASSIGN ir_vttk->* TO <lt_vttk>.
IF <lt_vttk> IS ASSIGNED.
READ TABLE <lt_vttk> ASSIGNING FIELD-SYMBOL(<ls_vttk>)
WITH KEY tknum = lv_tknum.
IF sy-subrc = 0.
rr_vttk = REF #( <ls_vttk> ).
ELSE.
MESSAGE e005(zgtt_mia) WITH 'VTTK OLD' lv_tknum
INTO DATA(lv_dummy).
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ELSE.
MESSAGE e002(zgtt_mia) WITH 'VTTK' INTO lv_dummy.
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD get_shippment_item_count.
FIELD-SYMBOLS: <lt_vttp> TYPE ANY TABLE.
ASSIGN ir_vttp->* TO <lt_vttp>.
rv_count = lines( <lt_vttp> ).
ENDMETHOD.
METHOD get_shippment_type.
rv_ship_type = COND #( WHEN iv_vttp_cnt <= 1
THEN SWITCH #( iv_vsart
WHEN '01' THEN '18'
WHEN '04' THEN '3' )
ELSE SWITCH #( iv_vsart
WHEN '01' THEN '17'
WHEN '04' THEN '2' ) ).
ENDMETHOD.
METHOD get_transportation_mode.
rv_trans_mode = SWITCH #( iv_vsart
WHEN '04' THEN '01' "Sea
WHEN '03' THEN '02' "Rail
WHEN '01' THEN '03' "Road
WHEN '05' THEN '04' "Air
WHEN '15' THEN '04' "Air
WHEN '02' THEN '05' "Mail
WHEN '' THEN '00' "Not specified
ELSE '09'). "Not applicable
ENDMETHOD.
METHOD is_object_changed.
rv_result = zcl_gtt_mia_tools=>is_object_changed(
is_app_object = is_app_object
io_ef_parameters = mo_ef_parameters
it_check_tables = VALUE #( ( zif_gtt_mia_app_constants=>cs_tabledef-sh_item_new )
( zif_gtt_mia_app_constants=>cs_tabledef-sh_item_new )
( zif_gtt_mia_app_constants=>cs_tabledef-sh_stage_new )
( zif_gtt_mia_app_constants=>cs_tabledef-sh_stage_old )
( zif_gtt_mia_app_constants=>cs_tabledef-sh_item_stage_new )
( zif_gtt_mia_app_constants=>cs_tabledef-sh_item_stage_old ) )
iv_key_field = 'TKNUM'
iv_upd_field = 'UPDKZ' ).
ENDMETHOD.
METHOD zif_gtt_mia_tp_reader~check_relevance.
DATA(lr_vttp) = mo_ef_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_item_new ).
rv_result = zif_gtt_mia_ef_constants=>cs_condition-false.
IF zcl_gtt_mia_sh_tools=>is_appropriate_type( ir_vttk = is_app_object-maintabref ) = abap_true AND
zcl_gtt_mia_sh_tools=>is_delivery_assigned( ir_vttp = lr_vttp ) = abap_true AND
is_object_changed( is_app_object = is_app_object ) = abap_true.
CASE is_app_object-update_indicator.
WHEN zif_gtt_mia_ef_constants=>cs_change_mode-insert.
rv_result = zif_gtt_mia_ef_constants=>cs_condition-true.
WHEN zif_gtt_mia_ef_constants=>cs_change_mode-update OR
zif_gtt_mia_ef_constants=>cs_change_mode-undefined.
rv_result = zcl_gtt_mia_tools=>are_structures_different(
ir_data1 = zif_gtt_mia_tp_reader~get_data(
is_app_object = is_app_object )
ir_data2 = zif_gtt_mia_tp_reader~get_data_old(
is_app_object = is_app_object ) ).
ENDCASE.
ENDIF.
ENDMETHOD.
METHOD zif_gtt_mia_tp_reader~get_app_obj_type_id.
rv_appobjid = zcl_gtt_mia_sh_tools=>get_tracking_id_sh_header(
ir_vttk = is_app_object-maintabref ).
ENDMETHOD.
METHOD zif_gtt_mia_tp_reader~get_data.
FIELD-SYMBOLS: <ls_header> TYPE ts_sh_header.
rr_data = NEW ts_sh_header( ).
ASSIGN rr_data->* TO <ls_header>.
DATA(lr_vttp) = mo_ef_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_item_new ).
fill_header_from_vttk(
EXPORTING
ir_vttk = is_app_object-maintabref
iv_vttp_cnt = get_shippment_item_count( ir_vttp = lr_vttp )
CHANGING
cs_header = <ls_header> ).
fill_header_from_vttp(
EXPORTING
ir_vttk = is_app_object-maintabref
ir_vttp = lr_vttp
CHANGING
cs_header = <ls_header> ).
fill_header_from_vtts(
EXPORTING
ir_vttk = is_app_object-maintabref
ir_vttp = lr_vttp
ir_vtts = mo_ef_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_stage_new )
ir_vtsp = mo_ef_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_item_stage_new )
CHANGING
cs_header = <ls_header> ).
ENDMETHOD.
METHOD zif_gtt_mia_tp_reader~get_data_old.
FIELD-SYMBOLS: <ls_header> TYPE ts_sh_header.
DATA(lo_sh_data) = NEW zcl_gtt_mia_sh_data_old(
io_ef_parameters = mo_ef_parameters ).
DATA(lr_vttk) = get_shippment_header(
is_app_object = is_app_object
ir_vttk = lo_sh_data->get_vttk( ) ).
rr_data = NEW ts_sh_header( ).
ASSIGN rr_data->* TO <ls_header>.
fill_header_from_vttk(
EXPORTING
ir_vttk = lr_vttk
iv_vttp_cnt = get_shippment_item_count(
ir_vttp = lo_sh_data->get_vttp( ) )
CHANGING
cs_header = <ls_header> ).
fill_header_from_vttp(
EXPORTING
ir_vttk = lr_vttk
ir_vttp = lo_sh_data->get_vttp( )
CHANGING
cs_header = <ls_header> ).
fill_header_from_vtts(
EXPORTING
ir_vttk = lr_vttk
ir_vttp = lo_sh_data->get_vttp( )
ir_vtts = lo_sh_data->get_vtts( )
ir_vtsp = lo_sh_data->get_vtsp( )
CHANGING
cs_header = <ls_header> ).
ENDMETHOD.
METHOD zif_gtt_mia_tp_reader~get_field_parameter.
CASE iv_parameter.
WHEN zif_gtt_mia_ef_constants=>cs_parameter_id-key_field.
rv_result = boolc( "iv_field_name = cs_mapping-deliv_cnt OR
iv_field_name = cs_mapping-trobj_res_val OR
iv_field_name = cs_mapping-resrc_cnt OR
iv_field_name = cs_mapping-crdoc_ref_val OR
iv_field_name = cs_mapping-stpid_stopcnt ).
WHEN zif_gtt_mia_ef_constants=>cs_parameter_id-no_empty_tag.
rv_result = boolc( iv_field_name = cs_mapping-departure_dt OR
iv_field_name = cs_mapping-departure_tz OR
iv_field_name = cs_mapping-departure_locid OR
iv_field_name = cs_mapping-departure_loctype OR
iv_field_name = cs_mapping-arrival_dt OR
iv_field_name = cs_mapping-arrival_tz OR
iv_field_name = cs_mapping-arrival_locid OR
iv_field_name = cs_mapping-arrival_loctype ).
WHEN OTHERS.
CLEAR: rv_result.
ENDCASE.
ENDMETHOD.
METHOD zif_gtt_mia_tp_reader~get_mapping_structure.
rr_data = REF #( cs_mapping ).
ENDMETHOD.
METHOD zif_gtt_mia_tp_reader~get_track_id_data.
"another tip is that: for tracking ID type 'SHIPMENT_ORDER' of delivery header,
"and for tracking ID type 'RESOURCE' of shipment header,
"DO NOT enable START DATE and END DATE
DATA:
lv_dummy TYPE string,
lv_tmp_shptrxcod TYPE /saptrx/trxcod,
lv_tmp_restrxcod TYPE /saptrx/trxcod,
lv_shptrxcod TYPE /saptrx/trxcod,
lv_restrxcod TYPE /saptrx/trxcod.
FIELD-SYMBOLS: <ls_vttk> TYPE vttkvb,
<ls_vttk_old> TYPE vttkvb.
lv_shptrxcod = zif_gtt_mia_app_constants=>cs_trxcod-sh_number.
lv_restrxcod = zif_gtt_mia_app_constants=>cs_trxcod-sh_resource.
CLEAR et_track_id_data.
TRY.
CALL FUNCTION 'ZGTT_SOF_GET_TRACKID'
EXPORTING
iv_type = is_app_object-appobjtype
iv_app = 'MIA'
IMPORTING
ev_shptrxcod = lv_tmp_shptrxcod
ev_restrxcod = lv_tmp_restrxcod.
IF lv_tmp_shptrxcod IS NOT INITIAL.
lv_shptrxcod = lv_tmp_shptrxcod.
ENDIF.
IF lv_tmp_restrxcod IS NOT INITIAL.
lv_restrxcod = lv_tmp_restrxcod.
ENDIF.
CATCH cx_sy_dyn_call_illegal_func.
ENDTRY.
ASSIGN is_app_object-maintabref->* TO <ls_vttk>.
IF <ls_vttk> IS ASSIGNED.
" SHIPMENT Tracking ID
et_track_id_data = VALUE #( (
appsys = mo_ef_parameters->get_appsys( )
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = lv_shptrxcod
trxid = zcl_gtt_mia_sh_tools=>get_tracking_id_sh_header(
ir_vttk = is_app_object-maintabref )
timzon = zcl_gtt_mia_tools=>get_system_time_zone( )
) ).
DATA(lv_res_tid_new) = get_resource_tracking_id(
is_vttk = <ls_vttk> ).
" is shipment created?
IF <ls_vttk>-updkz = zif_gtt_mia_ef_constants=>cs_change_mode-insert AND
lv_res_tid_new IS NOT INITIAL.
" add RESOURCE Tracking ID for the new Shipment
et_track_id_data = VALUE #( BASE et_track_id_data (
appsys = mo_ef_parameters->get_appsys( )
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = lv_restrxcod
trxid = lv_res_tid_new
) ).
" is shipment updated?
ELSEIF <ls_vttk>-updkz = zif_gtt_mia_ef_constants=>cs_change_mode-update.
DATA(lr_vttk_old) = get_shippment_header(
is_app_object = is_app_object
ir_vttk = mo_ef_parameters->get_appl_table(
iv_tabledef = zif_gtt_mia_app_constants=>cs_tabledef-sh_header_old ) ).
ASSIGN lr_vttk_old->* TO <ls_vttk_old>.
IF <ls_vttk_old> IS ASSIGNED.
DATA(lv_res_tid_old) = get_resource_tracking_id(
is_vttk = <ls_vttk_old> ).
" is RESOURCE Tracking ID changed?
IF lv_res_tid_old <> lv_res_tid_new.
" add new RESOURCE Tracking ID
IF lv_res_tid_new IS NOT INITIAL.
et_track_id_data = VALUE #( BASE et_track_id_data (
appsys = mo_ef_parameters->get_appsys( )
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = lv_restrxcod
trxid = lv_res_tid_new
) ).
ENDIF.
" delete old RESOURCE Tracking ID
IF lv_res_tid_old IS NOT INITIAL.
et_track_id_data = VALUE #( BASE et_track_id_data (
appsys = mo_ef_parameters->get_appsys( )
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = lv_restrxcod
trxid = lv_res_tid_old
action = zif_gtt_mia_ef_constants=>cs_change_mode-delete
) ).
ENDIF.
ENDIF.
ELSE.
MESSAGE e002(zgtt_mia) WITH 'VTTK' INTO lv_dummy.
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDIF.
ELSE.
MESSAGE e002(zgtt_mia) WITH 'VTTK' INTO lv_dummy.
zcl_gtt_mia_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
70,
926,
62,
20730,
62,
34788,
62,
46862,
62,
1477,
71,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
70,
926,
62,
20730,
62,
34788,
62,
46862,
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,
891,
62,
17143,
7307,
41876,
4526,
37,
5390,
1976,
361,
62,
70,
926,
62,
20730,
62,
891,
62,
17143,
7307,
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,
256,
83,
62,
83,
22609,
73,
62,
411,
62,
312,
220,
41876,
49053,
9795,
43679,
3963,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
83,
22609,
73,
62,
411,
62,
312,
13315,
38144,
9936,
35374,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
83,
62,
83,
22609,
73,
62,
411,
62,
2100,
41876,
49053,
9795,
43679,
3963,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
83,
22609,
73,
62,
411,
62,
2100,
13315,
38144,
9936,
35374,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
83,
62,
411,
6015,
62,
66,
429,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
411,
6015,
62,
66,
429,
13315,
38144,
9936,
35374,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
83,
62,
411,
6015,
62,
34788,
62,
312,
220,
220,
41876,
49053,
9795,
43679,
3963,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
411,
6015,
62,
34788,
62,
312,
13315,
38144,
9936,
35374,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
83,
62,
66,
4372,
420,
62,
5420,
62,
28004,
41876,
49053,
9795,
43679,
3963,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
66,
4372,
420,
62,
5420,
62,
28004,
13315,
38144,
9936,
35374,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
83,
62,
66,
4372,
420,
62,
5420,
62,
2100,
41876,
49053,
9795,
43679,
3963,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
66,
4372,
420,
62,
5420,
62,
2100,
13315,
38144,
9936,
35374,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
40379,
62,
1477,
62,
25677,
11,
198,
220,
220,
220,
220,
220,
220,
220,
256,
15418,
388,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
410,
926,
74,
85,
65,
12,
83,
15418,
388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
809,
62,
312,
62,
22510,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
82,
2373,
40914,
14,
17143,
2100,
2167,
11,
198,
220,
220,
220,
220,
220,
220,
220,
542,
62,
67,
70,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
410,
926,
74,
85,
65,
12,
3642,
62,
67,
70,
11,
198,
220,
220,
220,
220,
220,
220,
220,
256,
358,
81,
62,
2213,
38439,
220,
220,
220,
220,
220,
220,
220,
41876,
410,
926,
74,
85,
65,
12,
83,
358,
81,
62,
2213,
38439,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4074,
62,
4906,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
6720,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1007,
62,
14171,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
7645,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4074,
62,
11031,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
6720,
434,
62,
11031,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12928,
62,
28664,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
10378,
433,
495,
62,
28664,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12928,
62,
22877,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
10378,
433,
495,
62,
22877,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12928,
62,
17946,
312,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
17946,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
12928,
62,
5439,
310,
2981,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
5439,
310,
2981,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10325,
62,
28664,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
283,
43171,
62,
28664,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10325,
62,
22877,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
283,
43171,
62,
22877,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10325,
62,
17946,
312,
220,
220,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
17946,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10325,
62,
5439,
310,
2981,
220,
220,
41876,
1976,
361,
62,
70,
926,
62,
20730,
62,
1324,
62,
19199,
14804,
14981,
62,
5439,
310,
2981,
11,
198,
220,
220,
220,
220,
220,
220,
220,
41560,
18755,
81,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
410
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_aoc_check_69 DEFINITION
PUBLIC
INHERITING FROM zcl_aoc_super
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
METHODS check
REDEFINITION .
METHODS get_attributes
REDEFINITION .
METHODS get_message_text
REDEFINITION .
METHODS if_ci_test~query_attributes
REDEFINITION .
METHODS put_attributes
REDEFINITION .
PROTECTED SECTION.
METHODS is_parallel_method
IMPORTING
!it_tokens TYPE stokesx_tab
RETURNING
VALUE(rv_bool) TYPE abap_bool .
METHODS field_symbol
IMPORTING
!iv_name TYPE string .
METHODS data
IMPORTING
!iv_name TYPE string
!iv_scope TYPE string OPTIONAL .
METHODS is_global_exception_class
RETURNING
VALUE(rv_bool) TYPE abap_bool .
METHODS analyze_statements
IMPORTING
!it_statements TYPE sstmnt_tab .
METHODS check_at .
METHODS check_class .
METHODS check_constant .
METHODS check_data .
METHODS check_field_symbol .
METHODS check_fm_parameters
IMPORTING
!it_parameters TYPE rsfb_para
!iv_prefix TYPE string .
METHODS check_form .
METHODS check_function .
METHODS check_function_pool .
METHODS check_inline_defs .
METHODS check_interface .
METHODS check_method_definition .
METHODS check_method_implementation .
METHODS check_parameter .
METHODS check_report .
METHODS check_select_option .
METHODS check_type .
METHODS compare
IMPORTING
!iv_name TYPE string
!iv_regex TYPE string
!iv_relative TYPE i .
METHODS compiler_resolve
IMPORTING
!iv_name TYPE string
RETURNING
VALUE(ro_generic) TYPE REF TO cl_abap_comp_data_generic .
METHODS compiler_resolve_class
RETURNING
VALUE(ro_class) TYPE REF TO cl_abap_comp_class .
METHODS determine_scope_prefix
RETURNING
VALUE(rv_prefix) TYPE string .
METHODS determine_type_prefix
IMPORTING
!io_generic TYPE REF TO cl_abap_comp_data_generic
RETURNING
VALUE(rv_prefix) TYPE string .
METHODS get_statement
RETURNING
VALUE(rv_string) TYPE string .
METHODS qualify_tokens
RETURNING
VALUE(rt_tokens) TYPE stokesx_tab .
METHODS remove_value
IMPORTING
!iv_input TYPE string
RETURNING
VALUE(rv_output) TYPE string .
METHODS set_defaults .
METHODS skip_fm_parameters
IMPORTING
!iv_name TYPE eu_lname
!is_parameters TYPE rsfbintfv
RETURNING
VALUE(rv_skip) TYPE abap_bool .
METHODS skip_fm_parameters_check
IMPORTING
!is_parameters TYPE rsfbintfv
!is_check TYPE rsfbintfv
RETURNING
VALUE(rv_skip) TYPE abap_bool .
PRIVATE SECTION.
DATA ms_naming TYPE zaoc_naming .
DATA mo_compiler TYPE REF TO cl_abap_compiler .
DATA mo_stack TYPE REF TO lcl_stack .
DATA mv_begin TYPE abap_bool .
DATA mv_at TYPE string .
ENDCLASS.
CLASS ZCL_AOC_CHECK_69 IMPLEMENTATION.
METHOD analyze_statements.
DATA: lv_define TYPE abap_bool,
lv_keyword TYPE string.
LOOP AT it_statements INTO statement_wa.
CHECK statement_wa-from <= statement_wa-to.
lv_keyword = keyword( ).
IF lv_define = abap_true.
IF lv_keyword = 'END-OF-DEFINITION'.
lv_define = abap_false.
ENDIF.
CONTINUE.
ENDIF.
CASE lv_keyword.
WHEN 'DEFINE'.
lv_define = abap_true.
WHEN 'REPORT' OR 'PROGRAM'.
check_report( ).
WHEN 'FUNCTION-POOL'.
check_function_pool( ).
WHEN 'AT'.
check_at( ).
WHEN 'TYPES'.
check_type( ).
WHEN 'DATA' OR 'RANGES' OR 'STATICS' OR 'CLASS-DATA'.
check_data( ).
WHEN 'CONSTANTS'.
check_constant( ).
WHEN 'FIELD-SYMBOLS'.
check_field_symbol( ).
WHEN 'SELECT-OPTIONS'.
check_select_option( ).
WHEN 'PARAMETERS' OR 'PARAMETER'.
check_parameter( ).
WHEN 'CLASS'.
check_class( ).
WHEN 'INTERFACE'.
check_interface( ).
WHEN 'FORM'.
check_form( ).
WHEN 'FUNCTION'.
check_function( ).
WHEN 'METHODS' OR 'CLASS-METHODS'.
check_method_definition( ).
WHEN 'METHOD'.
check_method_implementation( ).
WHEN 'ENDCLASS' OR 'ENDMETHOD' OR 'ENDFORM' OR 'ENDINTERFACE'.
mo_stack->pop( ).
WHEN 'ENDFUNCTION'.
IF object_type = 'FUGR'.
mo_stack->set( '\PR:SAPL' && object_name ).
ELSE.
mo_stack->set( '\PR:' && object_name ).
ENDIF.
WHEN OTHERS.
check_inline_defs( ).
ENDCASE.
ENDLOOP.
ENDMETHOD.
METHOD check.
* abapOpenChecks
* https://github.com/larshp/abapOpenChecks
* MIT License
DATA: lv_subrc LIKE sy-subrc,
lv_subc TYPE reposrc-subc.
IF object_type = 'WDYN'.
RETURN. " todo, WDYN
ELSEIF object_type = 'PROG'.
SELECT SINGLE subc FROM reposrc INTO lv_subc
WHERE progname = object_name AND r3state = 'A'.
IF sy-subrc <> 0 OR lv_subc = 'I' OR lv_subc = 'S'.
RETURN.
ENDIF.
ENDIF.
CREATE OBJECT mo_stack.
mo_compiler = cl_abap_compiler=>create( program_name ).
mo_compiler->get_check_infos( IMPORTING p_subrc = lv_subrc ).
IF lv_subrc <> 0 AND ms_naming-set_syntax = abap_true.
inform( p_kind = mv_errty
p_test = myname
p_code = '005' ).
RETURN.
ENDIF.
analyze_statements( it_statements ).
ENDMETHOD.
METHOD check_at.
IF get_token_rel( 2 ) <> 'SELECTION-SCREEN'.
RETURN.
ENDIF.
CASE get_token_rel( 3 ).
WHEN 'OUTPUT'.
mv_at = cl_abap_compiler=>tag_at_selection_screen_output.
WHEN 'ON'.
CASE get_token_rel( 4 ).
WHEN 'END'.
mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_on_end }:{ get_token_rel( 6 ) }|.
WHEN 'BLOCK'.
mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_block }:{ get_token_rel( 5 ) }|.
WHEN 'RADIOBUTTON'.
mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_radio }:{ get_token_rel( 6 ) }|.
WHEN 'HELP-REQUEST'.
mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_help }:{ get_token_rel( 6 ) }|.
WHEN 'VALUE-REQUEST'.
mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_value }:{ get_token_rel( 6 ) }|.
WHEN 'EXIT-COMMAND'.
mv_at = cl_abap_compiler=>tag_at_selection_screen_exit.
WHEN OTHERS.
mv_at = |{ cl_abap_compiler=>tag_at_selection_screen_on }:{ get_token_rel( 4 ) }|.
ENDCASE.
WHEN OTHERS.
mv_at = cl_abap_compiler=>tag_at_selection_screen.
ENDCASE.
mv_at = '\' && mv_at.
ENDMETHOD.
METHOD check_class.
DATA: lv_name TYPE string,
lv_statement TYPE string,
lo_super TYPE REF TO cl_abap_comp_class,
lv_abstract TYPE abap_bool,
lv_regex TYPE string.
CASE get_token_rel( 4 ).
WHEN 'LOAD' OR 'DEFERRED'.
RETURN.
ENDCASE.
lv_name = get_token_rel( 2 ).
IF object_type = 'CLAS' AND lv_name = object_name.
mo_stack->set( '\TY:' && lv_name ).
ELSEIF object_type = 'CLAS'.
mo_stack->set( '\PR:' && program_name && '\TY:' && lv_name ).
ELSE.
mo_stack->push( '\TY:' && lv_name ).
ENDIF.
IF get_token_rel( 3 ) = 'IMPLEMENTATION'.
RETURN.
ENDIF.
lo_super = compiler_resolve_class( ).
IF lo_super IS INITIAL.
RETURN.
ENDIF.
lv_abstract = lo_super->is_abstract.
WHILE NOT lo_super->super_class IS INITIAL.
lo_super = lo_super->super_class.
ENDWHILE.
IF object_name = lv_name AND object_type = 'CLAS'.
IF lo_super->full_name = '\TY:CX_ROOT'.
lv_regex = ms_naming-globals_clasx.
ELSEIF lv_abstract = abap_true.
lv_regex = ms_naming-globals_clasa.
ELSE.
lv_regex = ms_naming-globals_clas.
ENDIF.
REPLACE FIRST OCCURRENCE OF '[:nspace:]' IN lv_regex WITH ms_naming-globals_nspace.
ELSE.
lv_regex = ms_naming-oo_oolcla.
lv_statement = get_statement( ).
IF lv_statement CS 'FOR TESTING'.
lv_regex = ms_naming-oo_ooltcl.
ELSEIF lo_super->full_name = '\TY:CX_ROOT'.
lv_regex = ms_naming-oo_oolxcl.
ENDIF.
ENDIF.
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD check_constant.
DATA: lv_regex TYPE string,
lv_name TYPE string.
lv_name = get_token_rel( 2 ).
IF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF' AND mv_begin = abap_false.
lv_name = get_token_rel( 4 ).
mv_begin = abap_true.
ELSEIF lv_name = 'END' AND get_token_rel( 3 ) = 'OF'.
mv_begin = abap_false.
RETURN.
ELSEIF mv_begin = abap_true.
RETURN.
ENDIF.
IF mo_stack->concatenate( ) CS '\ME:'
OR mo_stack->concatenate( ) CS '\FO:'
OR mo_stack->concatenate( ) CS '\FU:'.
lv_regex = ms_naming-locals_lconst.
ELSEIF mo_stack->concatenate( ) CS '\TY:'.
lv_regex = ms_naming-oo_oocons.
IF ms_naming-set_exccon = abap_true AND is_global_exception_class( ) = abap_true.
RETURN.
ENDIF.
ELSE.
lv_regex = ms_naming-proc_pgcons.
ENDIF.
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD check_data.
DATA: lv_offset TYPE string,
lv_name TYPE string.
lv_name = get_token_rel( 2 ).
IF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF' AND mv_begin = abap_false.
lv_name = get_token_rel( 4 ).
mv_begin = abap_true.
IF get_token_rel( 4 ) = 'COMMON' AND get_token_rel( 5 ) = 'PART'.
RETURN.
ENDIF.
ELSEIF lv_name = 'END' AND get_token_rel( 3 ) = 'OF'.
mv_begin = abap_false.
RETURN.
ELSEIF mv_begin = abap_true.
RETURN.
ENDIF.
* remove old style length definitions
FIND '(' IN lv_name MATCH OFFSET lv_offset.
IF sy-subrc = 0.
lv_name = lv_name(lv_offset).
ENDIF.
IF ms_naming-set_excatt = abap_true
AND mo_stack->concatenate( ) = |\\TY:{ object_name }|
AND is_global_exception_class( ) = abap_true.
RETURN.
ENDIF.
data( lv_name ).
ENDMETHOD.
METHOD check_field_symbol.
DATA: lo_generic TYPE REF TO cl_abap_comp_data_generic,
lv_regex TYPE string,
lv_name TYPE string.
lv_name = get_token_rel( 2 ).
lo_generic = compiler_resolve( '\DA:' && lv_name ).
IF lo_generic IS INITIAL.
RETURN.
ENDIF.
IF mo_stack->concatenate( ) CS '\ME:'
OR mo_stack->concatenate( ) CS '\FO:'
OR mo_stack->concatenate( ) CS '\FU:'.
lv_regex = ms_naming-locals_fsymbo.
ELSE.
lv_regex = ms_naming-proc_pgfisy.
ENDIF.
REPLACE FIRST OCCURRENCE OF '[:type:]'
IN lv_regex
WITH determine_type_prefix( lo_generic ).
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD check_fm_parameters.
DATA: lv_name TYPE string,
lv_regex TYPE string,
lo_generic TYPE REF TO cl_abap_comp_data_generic,
ls_parameter LIKE LINE OF it_parameters.
LOOP AT it_parameters INTO ls_parameter.
lv_regex = iv_prefix.
lv_name = ls_parameter-parameter.
lo_generic = compiler_resolve( '\DA:' && lv_name ).
IF lo_generic IS INITIAL.
CONTINUE.
ENDIF.
REPLACE FIRST OCCURRENCE OF '[:type:]'
IN lv_regex
WITH determine_type_prefix( lo_generic ).
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDLOOP.
ENDMETHOD.
METHOD check_form.
DATA: lt_tokens TYPE stokesx_tab,
lv_scope TYPE string,
lv_name TYPE string,
ls_token LIKE LINE OF lt_tokens.
CLEAR mv_at.
lv_name = get_token_rel( 2 ).
mo_stack->push( '\FO:' && lv_name ).
lt_tokens = qualify_tokens( ).
LOOP AT lt_tokens INTO ls_token.
CASE ls_token-type.
WHEN sana_tok_field_def.
lv_name = remove_value( ls_token-str ).
data( iv_name = lv_name
iv_scope = lv_scope ).
WHEN sana_tok_word.
CASE ls_token-str.
WHEN 'USING'.
lv_scope = ms_naming-proc_fousin.
WHEN 'CHANGING'.
lv_scope = ms_naming-proc_fochan.
WHEN 'TABLES'.
lv_scope = ms_naming-proc_fotabl.
ENDCASE.
ENDCASE.
ENDLOOP.
ENDMETHOD.
METHOD check_function.
DATA: lv_name TYPE eu_lname,
ls_interface TYPE rsfbintfv.
lv_name = get_token_rel( 2 ).
mo_stack->set( '\FU:' && lv_name ).
cl_fb_function_utility=>meth_get_interface(
EXPORTING
im_name = lv_name
IMPORTING
ex_interface = ls_interface
EXCEPTIONS
error_occured = 1
object_not_existing = 2
OTHERS = 3 ).
IF sy-subrc <> 0.
inform( p_kind = mv_errty
p_test = myname
p_code = '006' ).
RETURN.
ENDIF.
IF skip_fm_parameters(
iv_name = lv_name
is_parameters = ls_interface ) = abap_true.
RETURN.
ENDIF.
check_fm_parameters(
it_parameters = ls_interface-import
iv_prefix = ms_naming-proc_fimpor ).
check_fm_parameters(
it_parameters = ls_interface-export
iv_prefix = ms_naming-proc_fexpor ).
check_fm_parameters(
it_parameters = ls_interface-change
iv_prefix = ms_naming-proc_fchang ).
check_fm_parameters(
it_parameters = ls_interface-tables
iv_prefix = ms_naming-proc_ftable ).
ENDMETHOD.
METHOD check_function_pool.
DATA: lv_name TYPE string,
lv_regex TYPE string.
lv_name = get_token_rel( 2 ).
lv_regex = ms_naming-globals_fugr.
REPLACE FIRST OCCURRENCE OF '[:nspace:]' IN lv_regex WITH ms_naming-globals_nspace.
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
mo_stack->push( '\PR:' && 'SAPL' && lv_name ).
ENDMETHOD.
METHOD check_inline_defs.
DATA: ls_token LIKE LINE OF ref_scan->tokens,
lv_name TYPE string.
LOOP AT ref_scan->tokens FROM statement_wa-from TO statement_wa-to INTO ls_token.
FIND REGEX '^DATA\((\w+)\)$' IN ls_token-str SUBMATCHES lv_name.
IF sy-subrc = 0.
data( lv_name ).
ENDIF.
FIND REGEX '^FIELD-SYMBOL\((<\w+>)\)$' IN ls_token-str SUBMATCHES lv_name ##NO_TEXT.
IF sy-subrc = 0.
field_symbol( lv_name ).
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD check_interface.
DATA: lv_name TYPE string,
lv_regex TYPE string.
CASE get_token_rel( 3 ).
WHEN 'LOAD' OR 'DEFERRED'.
RETURN.
ENDCASE.
lv_name = get_token_rel( 2 ).
IF object_type = 'INTF' AND lv_name = object_name.
mo_stack->set( '\TY:' && lv_name ).
ELSEIF object_type = 'INTF' OR object_type = 'CLAS'.
mo_stack->set( '\PR:' && program_name && '\TY:' && lv_name ).
ELSE.
mo_stack->push( '\TY:' && lv_name ).
ENDIF.
IF object_type = 'INTF'.
lv_regex = ms_naming-globals_intf.
ELSE.
lv_regex = ms_naming-oo_oolint.
ENDIF.
REPLACE FIRST OCCURRENCE OF '[:nspace:]' IN lv_regex WITH ms_naming-globals_nspace.
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD check_method_definition.
DATA: lt_tokens TYPE stokesx_tab,
lv_scope TYPE string,
lv_name TYPE string,
ls_token LIKE LINE OF lt_tokens.
IF is_global_exception_class( ) = abap_true
AND ms_naming-set_excpar = abap_true
AND get_token_rel( 2 ) = 'CONSTRUCTOR'.
RETURN.
ENDIF.
mo_stack->push( '\ME:' && get_token_rel( 2 ) ).
lt_tokens = qualify_tokens( ).
LOOP AT lt_tokens INTO ls_token.
CASE ls_token-type.
WHEN sana_tok_field_def.
lv_name = remove_value( ls_token-str ).
IF ms_naming-set_pmeth = abap_true AND is_parallel_method( lt_tokens ) = abap_true.
CONTINUE.
ENDIF.
data( iv_name = lv_name
iv_scope = lv_scope ).
WHEN sana_tok_word.
CASE ls_token-str.
WHEN 'IMPORTING'.
lv_scope = ms_naming-oo_ooimpo.
WHEN 'EXPORTING'.
lv_scope = ms_naming-oo_ooexpo.
WHEN 'CHANGING'.
lv_scope = ms_naming-oo_oochan.
WHEN 'RETURNING'.
lv_scope = ms_naming-oo_ooretu.
ENDCASE.
ENDCASE.
ENDLOOP.
mo_stack->pop( ).
ENDMETHOD.
METHOD check_method_implementation.
DATA: lv_method TYPE string,
lv_interface TYPE string.
lv_method = get_token_rel( 2 ).
IF lv_method CS '~'.
SPLIT lv_method AT '~' INTO lv_interface lv_method.
mo_stack->push( '\IN:' && lv_interface && '\ME:' && lv_method ).
ELSE.
mo_stack->push( '\ME:' && lv_method ).
ENDIF.
ENDMETHOD.
METHOD check_parameter.
DATA: lv_name TYPE string,
lv_regex TYPE string.
lv_name = get_token_rel( 2 ).
lv_regex = ms_naming-proc_pgpara.
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD check_report.
DATA: lv_name TYPE string,
lv_regex TYPE string.
mo_stack->push( '\PR:' && program_name ).
lv_name = get_token_rel( 2 ).
lv_regex = ms_naming-globals_prog.
REPLACE FIRST OCCURRENCE OF '[:nspace:]' IN lv_regex WITH ms_naming-globals_nspace.
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD check_select_option.
DATA: lv_name TYPE string,
lv_regex TYPE string.
lv_name = get_token_rel( 2 ).
lv_regex = ms_naming-proc_pgselo.
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD check_type.
DATA: lv_regex TYPE string,
lv_name TYPE string.
lv_name = get_token_rel( 2 ).
IF lv_name = 'BEGIN' AND get_token_rel( 3 ) = 'OF' AND mv_begin = abap_false.
lv_name = get_token_rel( 4 ).
mv_begin = abap_true.
ELSEIF lv_name = 'END' AND get_token_rel( 3 ) = 'OF'.
mv_begin = abap_false.
RETURN.
ELSEIF mv_begin = abap_true.
RETURN.
ENDIF.
IF mo_stack->concatenate( ) CS '\ME:'
OR mo_stack->concatenate( ) CS '\FO:'
OR mo_stack->concatenate( ) CS '\FU:'.
lv_regex = ms_naming-locals_ltypes.
ELSEIF mo_stack->concatenate( ) CS '\TY:'.
lv_regex = ms_naming-oo_ootype.
ELSE.
lv_regex = ms_naming-proc_pgtype.
ENDIF.
compare( iv_name = lv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD compare.
DATA: lv_regex TYPE string,
lv_include TYPE sobj_name.
lv_regex = |^{ iv_regex }|.
FIND REGEX lv_regex IN iv_name IGNORING CASE.
IF sy-subrc <> 0.
lv_include = get_include( p_level = statement_wa-level ).
inform( p_sub_obj_type = c_type_include
p_sub_obj_name = lv_include
p_line = get_line_rel( iv_relative )
p_column = get_column_rel( iv_relative )
p_kind = mv_errty
p_test = myname
p_code = '001'
p_param_1 = iv_regex
p_param_2 = iv_name ).
ENDIF.
ENDMETHOD.
METHOD compiler_resolve.
DATA: lv_full TYPE string.
lv_full = mo_stack->concatenate( iv_name ).
ro_generic ?= mo_compiler->get_symbol_entry( lv_full ).
IF ro_generic IS INITIAL AND NOT mv_at IS INITIAL.
lv_full = mo_stack->concatenate( mv_at && iv_name ).
ro_generic ?= mo_compiler->get_symbol_entry( lv_full ).
ENDIF.
IF ro_generic IS INITIAL.
inform( p_sub_obj_type = c_type_include
p_sub_obj_name = get_include( p_level = statement_wa-level )
p_line = get_line_rel( 2 )
p_column = get_column_rel( 2 )
p_kind = mv_errty
p_test = myname
p_code = '002'
p_param_1 = lv_full ).
ENDIF.
ENDMETHOD.
METHOD compiler_resolve_class.
DATA: lv_full TYPE string.
lv_full = mo_stack->concatenate( ).
IF lv_full IS INITIAL.
RETURN.
ENDIF.
ro_class ?= mo_compiler->get_symbol_entry( lv_full ).
IF ro_class IS INITIAL.
inform( p_sub_obj_type = c_type_include
p_sub_obj_name = get_include( p_level = statement_wa-level )
p_line = get_line_rel( 2 )
p_column = get_column_rel( 2 )
p_kind = mv_errty
p_test = myname
p_code = '004'
p_param_1 = lv_full ).
ENDIF.
ENDMETHOD.
METHOD constructor.
super->constructor( ).
version = '002'.
position = '069'.
has_attributes = abap_true.
attributes_ok = abap_true.
mv_errty = c_error.
set_defaults( ).
ENDMETHOD. "CONSTRUCTOR
METHOD data.
DATA: lo_generic TYPE REF TO cl_abap_comp_data_generic,
lv_regex TYPE string.
lo_generic = compiler_resolve( '\DA:' && iv_name ).
IF lo_generic IS INITIAL.
RETURN.
ENDIF.
IF iv_scope IS INITIAL.
lv_regex = determine_scope_prefix( ).
ELSE.
lv_regex = iv_scope.
ENDIF.
REPLACE FIRST OCCURRENCE OF '[:type:]'
IN lv_regex
WITH determine_type_prefix( lo_generic ).
compare( iv_name = iv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD determine_scope_prefix.
DATA: lv_keyword TYPE string.
lv_keyword = keyword( ).
IF lv_keyword = 'STATICS'.
rv_prefix = ms_naming-locals_static.
ELSEIF mo_stack->concatenate( ) CS '\ME:'
OR mo_stack->concatenate( ) CS '\FO:'
OR mo_stack->concatenate( ) CS '\FU:'.
rv_prefix = ms_naming-locals_data.
ELSEIF mo_stack->concatenate( ) CS '\TY:'
AND lv_keyword = 'DATA'.
rv_prefix = ms_naming-oo_oodata.
ELSEIF mo_stack->concatenate( ) CS '\TY:'
AND lv_keyword = 'CLASS-DATA'.
rv_prefix = ms_naming-oo_oocdat.
ELSE.
rv_prefix = ms_naming-proc_pgdata.
ENDIF.
ENDMETHOD.
METHOD determine_type_prefix.
DATA: lo_table_symbol TYPE REF TO cl_abap_comp_table_type,
lo_symbol_simple TYPE REF TO cl_abap_comp_data,
lo_type_symbol TYPE REF TO cl_abap_comp_type,
lo_type_symbol_class TYPE REF TO cl_abap_comp_class,
lo_symbol_tab TYPE REF TO cl_abap_comp_table_with_head,
lo_type_symbol_ref TYPE REF TO cl_abap_comp_ref_type,
lo_type_alias_symbol TYPE REF TO cl_abap_comp_alias_type.
IF io_generic->node_kind = cl_abap_comp_data_generic=>data_node_kind_table_with_head.
lo_symbol_tab ?= io_generic.
lo_symbol_simple = lo_symbol_tab->table.
ELSE.
lo_symbol_simple ?= io_generic.
ENDIF.
lo_type_symbol = lo_symbol_simple->type.
WHILE lo_type_symbol->type_kind = cl_abap_comp_type=>type_kind_alias.
lo_type_alias_symbol ?= lo_type_symbol.
lo_type_symbol = lo_type_alias_symbol->alias_type.
ENDWHILE.
CASE lo_type_symbol->type_kind.
WHEN cl_abap_comp_type=>type_kind_elementary.
CASE lo_type_symbol->full_name.
WHEN '\PT:ANY' OR '\PT:DATA'.
rv_prefix = ms_naming-prefix_generi.
WHEN OTHERS.
rv_prefix = ms_naming-prefix_elemen.
ENDCASE.
WHEN cl_abap_comp_type=>type_kind_structure OR cl_abap_comp_type=>type_kind_ddic_dbtab.
rv_prefix = ms_naming-prefix_struct.
WHEN cl_abap_comp_type=>type_kind_table.
lo_table_symbol ?= lo_type_symbol.
CASE lo_table_symbol->index_kind.
WHEN cl_abap_comp_table_type=>index_kind_hashed.
rv_prefix = ms_naming-prefix_thash.
WHEN cl_abap_comp_table_type=>index_kind_sorted.
rv_prefix = ms_naming-prefix_tsort.
WHEN cl_abap_comp_table_type=>index_kind_index.
rv_prefix = ms_naming-prefix_tindex.
WHEN cl_abap_comp_table_type=>index_kind_standard.
rv_prefix = ms_naming-prefix_tstand.
WHEN cl_abap_comp_table_type=>index_kind_any.
rv_prefix = ms_naming-prefix_tany.
WHEN OTHERS.
ASSERT 0 = 1.
ENDCASE.
WHEN cl_abap_comp_type=>type_kind_reference.
lo_type_symbol_ref ?= lo_type_symbol.
CASE lo_type_symbol_ref->ref_type->type_kind.
WHEN cl_abap_comp_table_type=>type_kind_interface.
rv_prefix = ms_naming-prefix_rinter.
WHEN cl_abap_comp_table_type=>type_kind_class.
lo_type_symbol_class ?= lo_type_symbol_ref->ref_type.
WHILE lo_type_symbol_class->super_class IS BOUND.
lo_type_symbol_class = lo_type_symbol_class->super_class.
ENDWHILE.
CASE lo_type_symbol_class->full_name.
WHEN '\TY:CX_ROOT'.
rv_prefix = ms_naming-prefix_rexcep.
WHEN '\TY:CL_BADI_BASE'.
rv_prefix = ms_naming-prefix_rbadi.
WHEN OTHERS.
rv_prefix = ms_naming-prefix_rclass.
ENDCASE.
WHEN OTHERS.
rv_prefix = ms_naming-prefix_rdata.
ENDCASE.
WHEN OTHERS.
ASSERT 0 = 1.
ENDCASE.
ENDMETHOD.
METHOD field_symbol.
DATA: lo_generic TYPE REF TO cl_abap_comp_data_generic,
lv_regex TYPE string.
lo_generic = compiler_resolve( '\DA:' && iv_name ).
IF lo_generic IS INITIAL.
RETURN.
ENDIF.
IF mo_stack->concatenate( ) CS '\ME:'
OR mo_stack->concatenate( ) CS '\FO:'
OR mo_stack->concatenate( ) CS '\FU:'.
lv_regex = ms_naming-locals_fsymbo.
ELSE.
lv_regex = ms_naming-proc_pgfisy.
ENDIF.
REPLACE FIRST OCCURRENCE OF '[:type:]'
IN lv_regex
WITH determine_type_prefix( lo_generic ).
compare( iv_name = iv_name
iv_regex = lv_regex
iv_relative = 2 ).
ENDMETHOD.
METHOD get_attributes.
EXPORT
mv_errty = mv_errty
ms_naming = ms_naming
TO DATA BUFFER p_attributes.
ENDMETHOD.
METHOD get_message_text.
CLEAR p_text.
CASE p_code.
WHEN '001'.
p_text = 'Bad naming, expected &1, got &2'. "#EC NOTEXT
WHEN '002' OR '004'.
p_text = 'Unable to resolve &1'. "#EC NOTEXT
WHEN '003'.
p_text = 'Error qualifying tokens'. "#EC NOTEXT
WHEN '005'.
p_text = 'Syntax error'. "#EC NOTEXT
WHEN '006'.
p_text = 'Error reading FM parameters'. "#EC NOTEXT
WHEN OTHERS.
super->get_message_text( EXPORTING p_test = p_test
p_code = p_code
IMPORTING p_text = p_text ).
ENDCASE.
ENDMETHOD.
METHOD get_statement.
DATA: ls_token LIKE LINE OF ref_scan->tokens.
LOOP AT ref_scan->tokens INTO ls_token FROM statement_wa-from TO statement_wa-to.
rv_string = |{ rv_string }{ ls_token-str } |.
ENDLOOP.
ENDMETHOD.
METHOD if_ci_test~query_attributes.
ms_naming-set_errty = mv_errty.
CALL FUNCTION 'Z_AOC_NAMING'
EXPORTING
iv_read_only = p_display
CHANGING
cs_data = ms_naming.
mv_errty = ms_naming-set_errty.
attributes_ok = abap_true.
ENDMETHOD.
METHOD is_global_exception_class.
DATA: lo_super TYPE REF TO cl_abap_comp_class.
IF object_type <> 'CLAS'.
RETURN.
ENDIF.
lo_super = compiler_resolve_class( ).
IF lo_super IS INITIAL.
RETURN.
ENDIF.
WHILE NOT lo_super->super_class IS INITIAL.
lo_super = lo_super->super_class.
ENDWHILE.
rv_bool = boolc( lo_super->full_name = '\TY:CX_ROOT' ).
ENDMETHOD.
METHOD is_parallel_method.
DATA: ls_token LIKE LINE OF it_tokens.
IF lines( it_tokens ) <> 6.
RETURN.
ENDIF.
READ TABLE it_tokens INDEX 3 INTO ls_token.
IF sy-subrc <> 0 OR ls_token-str <> 'IMPORTING'.
RETURN.
ENDIF.
READ TABLE it_tokens INDEX 4 INTO ls_token.
IF sy-subrc <> 0 OR ls_token-str <> 'P_TASK'.
RETURN.
ENDIF.
READ TABLE it_tokens INDEX 5 INTO ls_token.
IF sy-subrc <> 0 OR ls_token-str <> 'TYPE'.
RETURN.
ENDIF.
READ TABLE it_tokens INDEX 6 INTO ls_token.
IF sy-subrc <> 0 OR ls_token-str <> 'CLIKE'.
RETURN.
ENDIF.
rv_bool = abap_true.
ENDMETHOD.
METHOD put_attributes.
IMPORT
mv_errty = mv_errty
ms_naming = ms_naming
FROM DATA BUFFER p_attributes. "#EC CI_USE_WANTED
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD qualify_tokens.
INSERT LINES OF ref_scan->tokens FROM statement_wa-from
TO statement_wa-to INTO TABLE rt_tokens.
CALL FUNCTION 'RS_QUALIFY_ABAP_TOKENS_STR'
EXPORTING
statement_type = statement_wa-type
index_from = 1
index_to = lines( rt_tokens )
CHANGING
stokesx_tab = rt_tokens
EXCEPTIONS
error_load_pattern = 1
unknown_keyword = 2
no_matching_statement = 3
meaningless_statement = 4
OTHERS = 5.
IF sy-subrc <> 0.
inform( p_sub_obj_type = c_type_include
p_sub_obj_name = get_include( p_level = statement_wa-level )
p_line = get_line_rel( 2 )
p_column = get_column_rel( 2 )
p_kind = mv_errty
p_test = myname
p_code = '003' ).
ENDIF.
ENDMETHOD.
METHOD remove_value.
rv_output = iv_input.
IF rv_output CP 'VALUE(*)'.
rv_output = rv_output+6.
TRANSLATE rv_output USING ') '.
rv_output = condense( rv_output ).
ENDIF.
ENDMETHOD.
METHOD set_defaults.
ms_naming-prefix_elemen = 'V'.
ms_naming-prefix_generi = 'G'.
ms_naming-prefix_struct = 'S'.
ms_naming-prefix_tany = 'T'.
ms_naming-prefix_thash = 'T'.
ms_naming-prefix_tindex = 'T'.
ms_naming-prefix_tstand = 'T'.
ms_naming-prefix_tsort = 'T'.
ms_naming-prefix_rdata = 'R'.
ms_naming-prefix_rclass = 'O'.
ms_naming-prefix_rbadi = 'B'.
ms_naming-prefix_rexcep = 'X'.
ms_naming-prefix_rinter = 'I'.
ms_naming-globals_nspace = 'Z'.
ms_naming-globals_fugr = '[:nspace:]'.
ms_naming-globals_prog = '[:nspace:]'.
ms_naming-globals_clas = '[:nspace:]CL_'.
ms_naming-globals_clasx = '[:nspace:]CX_'.
ms_naming-globals_clast = '[:nspace:]CL_'.
ms_naming-globals_clasa = '[:nspace:]CL_'.
ms_naming-globals_intf = '[:nspace:]IF_'.
ms_naming-locals_data = 'L[:type:]_' ##NO_TEXT.
ms_naming-locals_static = 'S[:type:]_' ##NO_TEXT.
ms_naming-locals_fsymbo = '<L[:type:]_'.
ms_naming-locals_lconst = 'LC_'.
ms_naming-locals_ltypes = ''.
ms_naming-proc_fimpor = 'I[:type:]_' ##NO_TEXT.
ms_naming-proc_fexpor = 'E[:type:]_' ##NO_TEXT.
ms_naming-proc_fchang = 'C[:type:]_' ##NO_TEXT.
ms_naming-proc_ftable = 'T[:type:]_' ##NO_TEXT.
ms_naming-proc_fousin = 'P[:type:]_' ##NO_TEXT.
ms_naming-proc_fochan = 'C[:type:]_' ##NO_TEXT.
ms_naming-proc_fotabl = 'T[:type:]_' ##NO_TEXT.
ms_naming-proc_pgdata = 'G[:type:]_' ##NO_TEXT.
ms_naming-proc_pgfisy = '<G[:type:]_'.
ms_naming-proc_pgcons = 'GC_'.
ms_naming-proc_pgtype = ''.
ms_naming-proc_pgselo = 'S_'.
ms_naming-proc_pgpara = 'P_'.
ms_naming-oo_oodata = 'M[:type:]_' ##NO_TEXT.
ms_naming-oo_oocdat = 'G[:type:]_' ##NO_TEXT.
ms_naming-oo_oocons = 'C_'.
ms_naming-oo_ootype = ''.
ms_naming-oo_ooimpo = 'I[:type:]_' ##NO_TEXT.
ms_naming-oo_ooexpo = 'E[:type:]_' ##NO_TEXT.
ms_naming-oo_oochan = 'C[:type:]_' ##NO_TEXT.
ms_naming-oo_ooretu = 'R[:type:]_' ##NO_TEXT.
ms_naming-oo_oolcla = 'LCL_'.
ms_naming-oo_ooltcl = 'LTCL_'.
ms_naming-oo_oolxcl = 'LCX_'.
ms_naming-oo_oolint = 'LIF_'.
ms_naming-set_excpar = abap_true.
ms_naming-set_excatt = abap_true.
ms_naming-set_exccon = abap_true.
ms_naming-set_cfunc = abap_true.
ms_naming-set_idocfm = abap_true.
ms_naming-set_bwext = abap_true.
ms_naming-set_syntax = abap_true.
ms_naming-set_pmeth = abap_true.
ms_naming-set_shlp = abap_true.
ENDMETHOD.
METHOD skip_fm_parameters.
DATA: ls_check TYPE rsfbintfv,
ls_parameter TYPE rsfbpara.
DEFINE _append.
ls_parameter-parameter = &2.
APPEND ls_parameter TO ls_check-&1.
END-OF-DEFINITION.
* idoc processing function module
IF ms_naming-set_idocfm = abap_true
AND rv_skip = abap_false.
_append import 'INPUT_METHOD'.
_append import 'MASS_PROCESSING'.
_append export 'WORKFLOW_RESULT'.
_append export 'APPLICATION_VARIABLE'.
_append export 'IN_UPDATE_TASK'.
_append export 'CALL_TRANSACTION_DONE'.
_append tables 'IDOC_CONTRL'.
_append tables 'IDOC_DATA'.
_append tables 'IDOC_STATUS'.
_append tables 'RETURN_VARIABLES'.
_append tables 'SERIALIZATION_INFO'.
rv_skip = skip_fm_parameters_check( is_parameters = is_parameters
is_check = ls_check ).
ENDIF.
* conversion exits
IF ms_naming-set_cfunc = abap_true
AND rv_skip = abap_false
AND ( iv_name CS 'CONVERSION_EXIT_*_INPUT'
OR iv_name CS 'CONVERSION_EXIT_*_OUTPUT' ).
CLEAR ls_check.
_append import 'INPUT'.
_append export 'OUTPUT'.
rv_skip = skip_fm_parameters_check( is_parameters = is_parameters
is_check = ls_check ).
ENDIF.
* BW extractors
IF ms_naming-set_bwext = abap_true
AND rv_skip = abap_false.
CLEAR ls_check.
_append import 'I_REQUNR'.
_append import 'I_DSOURCE'.
_append import 'I_ISOURCE'.
_append import 'I_MAXSIZE'.
_append import 'I_INITFLAG'.
_append import 'I_UPDMODE'.
_append import 'I_DATAPAKID'.
_append import 'I_PRIVATE_MODE'.
_append import 'I_CALLMODE'.
_append import 'I_REMOTE_CALL'.
_append tables 'I_T_SELECT'.
_append tables 'I_T_FIELDS'.
_append tables 'E_T_DATA'.
rv_skip = skip_fm_parameters_check( is_parameters = is_parameters
is_check = ls_check ).
IF rv_skip = abap_false.
CLEAR ls_check.
_append import 'I_REQUNR'.
_append import 'I_DSOURCE'.
_append import 'I_CHABASNM'.
_append import 'I_MAXSIZE'.
_append import 'I_INITFLAG'.
_append import 'I_UPDMODE'.
_append import 'I_DATAPAKID'.
_append import 'I_S_TIMEINT'.
_append import 'I_PRIVATE_MODE'.
_append tables 'I_T_SELECT'.
_append tables 'I_T_FIELDS'.
_append tables 'E_T_DATA'.
rv_skip = skip_fm_parameters_check( is_parameters = is_parameters
is_check = ls_check ).
ENDIF.
ENDIF.
* search help exits
IF ms_naming-set_shlp = abap_true
AND rv_skip = abap_false.
CLEAR ls_check.
_append tables 'SHLP_TAB'.
_append tables 'RECORD_TAB'.
_append change 'SHLP'.
_append change 'CALLCONTROL'.
rv_skip = skip_fm_parameters_check( is_parameters = is_parameters
is_check = ls_check ).
ENDIF.
ENDMETHOD.
METHOD skip_fm_parameters_check.
DATA ls_parameter LIKE LINE OF is_check-import.
IF lines( is_parameters-import ) <> lines( is_check-import )
OR lines( is_parameters-export ) <> lines( is_check-export )
OR lines( is_parameters-change ) <> lines( is_check-change )
OR lines( is_parameters-tables ) <> lines( is_check-tables ).
RETURN.
ENDIF.
LOOP AT is_check-import INTO ls_parameter.
READ TABLE is_parameters-import WITH KEY parameter = ls_parameter-parameter
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDLOOP.
LOOP AT is_check-export INTO ls_parameter.
READ TABLE is_parameters-export WITH KEY parameter = ls_parameter-parameter
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDLOOP.
LOOP AT is_check-change INTO ls_parameter.
READ TABLE is_parameters-change WITH KEY parameter = ls_parameter-parameter
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDLOOP.
LOOP AT is_check-tables INTO ls_parameter.
READ TABLE is_parameters-tables WITH KEY parameter = ls_parameter-parameter
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDLOOP.
rv_skip = abap_true.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
64,
420,
62,
9122,
62,
3388,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
64,
420,
62,
16668,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
628,
220,
220,
220,
337,
36252,
50,
2198,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
20500,
62,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
611,
62,
979,
62,
9288,
93,
22766,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1234,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
318,
62,
1845,
29363,
62,
24396,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
83,
482,
641,
220,
220,
220,
220,
41876,
336,
3369,
87,
62,
8658,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
30388,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
2214,
62,
1837,
23650,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
1366,
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,
29982,
41876,
4731,
39852,
2849,
1847,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
20541,
62,
1069,
4516,
62,
4871,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
30388,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
16602,
62,
14269,
3196,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
14269,
3196,
41876,
264,
301,
76,
429,
62,
8658,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
265,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
4871,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
9979,
415,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
7890,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
3245,
62,
1837,
23650,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
38353,
62,
17143,
7307,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
17143,
7307,
41876,
44608,
21855,
62,
1845,
64,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
40290,
220,
220,
220,
220,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
687,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
8818,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
8818,
62,
7742,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
45145,
62,
4299,
82,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
39994,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
24396,
62,
46758,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
24396,
62,
320,
32851,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
17143,
2357,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
13116,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
19738,
62,
18076,
764,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
4906,
764,
198,
220,
220,
220,
337,
36252,
50,
8996,
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,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
260,
25636,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
43762,
41876,
1312,
764,
198,
220,
220,
220,
337,
36252,
50,
17050,
62,
411,
6442,
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,
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,
41357,
8,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
5589,
62,
7890,
62,
41357,
764,
198,
220,
220,
220,
337,
36252,
50,
17050,
62,
411,
6442,
62,
4871,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
4871,
8,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
5589,
62,
4871,
764,
198,
220,
220,
220,
337,
36252,
50,
5004,
62,
29982,
62,
40290,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
40290,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
5004,
62,
4906,
62,
40290,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
41357,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
5589,
62,
7890,
62,
41357,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
40290,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
26090,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_debuginfo DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_component
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_event_handler .
INTERFACES zif_abapgit_gui_renderable .
CLASS-METHODS create
RETURNING
VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable
RAISING
zcx_abapgit_exception .
METHODS constructor
RAISING
zcx_abapgit_exception .
PROTECTED SECTION.
PRIVATE SECTION.
CONSTANTS c_exit_standalone TYPE progname VALUE 'ZABAPGIT_USER_EXIT' ##NO_TEXT.
CONSTANTS c_exit_class TYPE seoclsname VALUE 'ZCL_ABAPGIT_USER_EXIT' ##NO_TEXT.
CONSTANTS c_exit_interface TYPE seoclsname VALUE 'ZIF_ABAPGIT_EXIT' ##NO_TEXT.
CONSTANTS:
BEGIN OF c_action,
save TYPE string VALUE 'save',
back TYPE string VALUE 'back',
END OF c_action.
DATA mv_html TYPE string .
CLASS-METHODS build_toolbar
RETURNING
VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar.
METHODS render_debug_info
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_exit_info
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_exit_info_methods
IMPORTING
!it_source TYPE string_table
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_supported_object_types
RETURNING
VALUE(rv_html) TYPE string .
METHODS render_scripts
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS get_jump_object
IMPORTING
!iv_obj_type TYPE csequence DEFAULT 'CLAS'
!iv_obj_name TYPE csequence
RETURNING
VALUE(rv_html) TYPE string .
ENDCLASS.
CLASS zcl_abapgit_gui_page_debuginfo IMPLEMENTATION.
METHOD build_toolbar.
CREATE OBJECT ro_menu EXPORTING iv_id = 'toolbar-debug'.
ro_menu->add(
iv_txt = 'Save'
iv_act = c_action-save ).
ro_menu->add(
iv_txt = 'Back'
iv_act = c_action-back ).
ENDMETHOD.
METHOD constructor.
super->constructor( ).
ENDMETHOD.
METHOD create.
DATA lo_component TYPE REF TO zcl_abapgit_gui_page_debuginfo.
CREATE OBJECT lo_component.
ri_page = zcl_abapgit_gui_page_hoc=>create(
iv_page_title = 'Debug Info'
io_page_menu = build_toolbar( )
ii_child_component = lo_component ).
ENDMETHOD.
METHOD get_jump_object.
DATA lv_encode TYPE string.
DATA li_html TYPE REF TO zif_abapgit_html.
CREATE OBJECT li_html TYPE zcl_abapgit_html.
lv_encode = zcl_abapgit_html_action_utils=>jump_encode( iv_obj_type = |{ iv_obj_type }|
iv_obj_name = |{ iv_obj_name }| ).
rv_html = li_html->a(
iv_txt = |{ iv_obj_name }|
iv_act = |{ zif_abapgit_definitions=>c_action-jump }?{ lv_encode }| ).
ENDMETHOD.
METHOD render_debug_info.
DATA: lt_ver_tab TYPE filetable,
lv_rc TYPE i,
lv_gui_version TYPE string,
ls_version LIKE LINE OF lt_ver_tab,
lv_devclass TYPE devclass.
cl_gui_frontend_services=>get_gui_version(
CHANGING version_table = lt_ver_tab rc = lv_rc
EXCEPTIONS OTHERS = 1 ).
READ TABLE lt_ver_tab INTO ls_version INDEX 1. " gui release
lv_gui_version = ls_version-filename.
READ TABLE lt_ver_tab INTO ls_version INDEX 2. " gui sp
lv_gui_version = |{ lv_gui_version }.{ ls_version-filename }|.
READ TABLE lt_ver_tab INTO ls_version INDEX 3. " gui patch
lv_gui_version = |{ lv_gui_version }.{ ls_version-filename }|.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true.
ri_html->add( '<h2>abapGit - Standalone Version</h2>' ).
ri_html->add( '<div>To keep abapGit up-to-date (or also to contribute) you need to' ).
ri_html->add( |install it as a repository ({ ri_html->a(
iv_txt = 'Developer Version'
iv_act = 'https://github.com/abapGit/abapGit'
iv_typ = zif_abapgit_html=>c_action_type-url ) }).</div>| ).
ELSE.
lv_devclass = zcl_abapgit_services_abapgit=>is_installed( ).
ri_html->add( '<h2>abapGit - Developer Version</h2>' ).
ri_html->add( |<div>abapGit is installed in package { lv_devclass }</div>| ).
ENDIF.
ri_html->add( '<br><div>' ).
ri_html->add_a(
iv_txt = 'Contribution guidelines for abapGit'
iv_act = 'https://github.com/abapGit/abapGit/blob/main/CONTRIBUTING.md'
iv_typ = zif_abapgit_html=>c_action_type-url ).
ri_html->add( '</div>' ).
ri_html->add( '<h2>Environment</h2>' ).
ri_html->add( |<table>| ).
ri_html->add( |<tr><td>abapGit version:</td><td>{ zif_abapgit_version=>gc_abap_version }</td></tr>| ).
ri_html->add( |<tr><td>XML version: </td><td>{ zif_abapgit_version=>gc_xml_version }</td></tr>| ).
ri_html->add( |<tr><td>GUI version: </td><td>{ lv_gui_version }</td></tr>| ).
ri_html->add( |<tr><td>APACK version: </td><td>{
zcl_abapgit_apack_migration=>c_apack_interface_version }</td></tr>| ).
ri_html->add( |<tr><td>LCL_TIME: </td><td>{ zcl_abapgit_time=>get_unix( ) }</td></tr>| ).
ri_html->add( |<tr><td>SY time: </td><td>{ sy-datum } { sy-uzeit } { sy-tzone }</td></tr>| ).
ri_html->add( |<tr><td>SY release: </td><td>{ sy-saprl }</td></tr>| ).
ri_html->add( |</table>| ).
ri_html->add( |<br>| ).
ENDMETHOD.
METHOD render_exit_info.
DATA lt_source TYPE string_table.
DATA ls_class_key TYPE seoclskey.
DATA lo_oo_serializer TYPE REF TO zcl_abapgit_oo_serializer.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<h2>User Exits</h2>' ).
IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true.
" Standalone version
READ REPORT c_exit_standalone INTO lt_source.
IF sy-subrc = 0.
ri_html->add( |<div>User exits are active (include { get_jump_object(
iv_obj_type = 'PROG'
iv_obj_name = c_exit_standalone ) } found)</div><br>| ).
ri_html->add( render_exit_info_methods( lt_source ) ).
ELSE.
ri_html->add( |<div>No user exits implemented (include { c_exit_standalone } not found)</div><br>| ).
ENDIF.
ELSE.
" Developer version
TRY.
ls_class_key-clsname = c_exit_class.
CREATE OBJECT lo_oo_serializer.
lt_source = lo_oo_serializer->serialize_abap_clif_source( ls_class_key ).
ri_html->add( |<div>User exits are active (class { get_jump_object( c_exit_class ) } found)</div><br>| ).
ri_html->add( render_exit_info_methods( lt_source ) ).
CATCH cx_root.
ri_html->add( |<div>No user exits implemented (class { c_exit_class } not found)</div><br>| ).
ENDTRY.
ENDIF.
ENDMETHOD.
METHOD render_exit_info_methods.
DATA:
lo_scanner TYPE REF TO cl_oo_source_scanner_class,
lx_exc TYPE REF TO cx_root,
lt_methods TYPE cl_oo_source_scanner_class=>type_method_implementations,
lv_method LIKE LINE OF lt_methods,
lt_source TYPE seop_source_string,
lv_source TYPE string,
lv_rest TYPE string.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<table border="1px"><thead><tr>' ).
ri_html->add( '<td>Exit</td><td class="center">Implemented?</td>' ).
ri_html->add( '</tr></thead><tbody>' ).
TRY.
lo_scanner = cl_oo_source_scanner_class=>create_class_scanner(
clif_name = c_exit_class
source = it_source ).
lo_scanner->scan( ).
lt_methods = lo_scanner->get_method_implementations( ).
LOOP AT lt_methods INTO lv_method WHERE table_line CS c_exit_interface.
lt_source = lo_scanner->get_method_impl_source( lv_method ).
DELETE lt_source INDEX 1.
DELETE lt_source INDEX lines( lt_source ).
CONCATENATE LINES OF lt_source INTO lv_source.
lv_source = to_upper( condense(
val = lv_source
del = ` ` ) ).
SPLIT lv_method AT '~' INTO lv_rest lv_method.
ri_html->add( |<tr><td>{ lv_method }</td><td class="center">| ).
IF lv_source IS INITIAL OR lv_source = 'RETURN.' OR lv_source = 'EXIT.'.
ri_html->add( 'No' ).
ELSE.
ri_html->add( '<strong>Yes</strong>' ).
ENDIF.
ri_html->add( |</td></tr>| ).
ENDLOOP.
CATCH cx_root INTO lx_exc.
ri_html->add( |<tr><td colspan="2">{ lx_exc->get_text( ) }</td></tr>| ).
ENDTRY.
ri_html->add( '</tbody></table>' ).
ENDMETHOD.
METHOD render_scripts.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->set_title( cl_abap_typedescr=>describe_by_object_ref( me )->get_relative_name( ) ).
ri_html->add( 'debugOutput("<table><tr><td>Browser:</td><td>" + navigator.userAgent + ' &&
'"</td></tr><tr><td>Frontend time:</td><td>" + new Date() + "</td></tr></table>", "debug_info");' ).
ENDMETHOD.
METHOD render_supported_object_types.
DATA: lv_list TYPE string,
li_html TYPE REF TO zif_abapgit_html,
lt_types TYPE zcl_abapgit_objects=>ty_types_tt,
lv_type LIKE LINE OF lt_types,
lt_obj TYPE STANDARD TABLE OF ko100 WITH DEFAULT KEY,
lv_class TYPE seoclsname,
li_object TYPE REF TO zif_abapgit_object,
ls_item TYPE zif_abapgit_definitions=>ty_item,
ls_metadata TYPE zif_abapgit_definitions=>ty_metadata,
lv_step TYPE zif_abapgit_definitions=>ty_deserialization_step,
lt_steps TYPE zif_abapgit_definitions=>ty_deserialization_step_tt.
FIELD-SYMBOLS: <ls_obj> TYPE ko100.
CALL FUNCTION 'TR_OBJECT_TABLE'
TABLES
wt_object_text = lt_obj.
lt_types = zcl_abapgit_objects=>supported_list( ).
CREATE OBJECT li_html TYPE zcl_abapgit_html.
rv_html = '<h2>Object Types</h2>'.
rv_html = rv_html && li_html->a(
iv_txt = 'Complete list of object types supported by abapGit'
iv_act = 'https://docs.abapgit.org/ref-supported.html'
iv_typ = zif_abapgit_html=>c_action_type-url ).
rv_html = rv_html && |<br><br>Supported object types in <strong>this</strong> system:<br><br>|.
rv_html = rv_html && |<table border="1px"><thead><tr>|.
rv_html = rv_html && |<td>Object</td><td>Description</td><td>Class</td><td>Version</td>|.
rv_html = rv_html && |<td class="center">DDIC</td>|.
rv_html = rv_html && |<td class="center">Delete TADIR</td><td>Steps</td>|.
rv_html = rv_html && |</tr></thead><tbody>|.
LOOP AT lt_types INTO lv_type.
lv_class = 'ZCL_ABAPGIT_OBJECT_' && lv_type.
rv_html = rv_html && |<tr>|.
rv_html = rv_html && |<td>{ lv_type }</td>|.
READ TABLE lt_obj ASSIGNING <ls_obj> WITH KEY pgmid = 'R3TR' object = lv_type.
IF sy-subrc = 0.
rv_html = rv_html && |<td>{ <ls_obj>-text }</td>|.
ELSE.
rv_html = rv_html && |<td class="warning">No description</td>|.
ENDIF.
TRY.
ls_item-obj_type = lv_type.
ls_item-obj_name = 'TEST'.
CREATE OBJECT li_object TYPE (lv_class)
EXPORTING
is_item = ls_item
iv_language = sy-langu.
rv_html = rv_html && |<td>{ get_jump_object( lv_class ) }</td>|.
CATCH cx_sy_create_object_error.
TRY. " 2nd step, try looking for plugins
CREATE OBJECT li_object TYPE zcl_abapgit_objects_bridge
EXPORTING
is_item = ls_item.
CATCH cx_sy_create_object_error.
rv_html = rv_html && |<td class="error" colspan="5">{ lv_class } - error instantiating class</td>|.
CONTINUE.
ENDTRY.
rv_html = rv_html && |<td>{ get_jump_object( lv_class ) } (Plug-in)</td>|.
ENDTRY.
ls_metadata = li_object->get_metadata( ).
rv_html = rv_html && |<td>{ ls_metadata-version }</td>|.
rv_html = rv_html && |<td class="center">{ ls_metadata-ddic }</td>|.
rv_html = rv_html && |<td class="center">{ ls_metadata-delete_tadir }</td>|.
lt_steps = li_object->get_deserialize_steps( ).
CLEAR lv_list.
LOOP AT lt_steps INTO lv_step.
IF lv_list IS INITIAL.
lv_list = lv_step.
ELSE.
lv_list = lv_list && `, ` && lv_step.
ENDIF.
ENDLOOP.
rv_html = rv_html && |<td>{ lv_list }</td>|.
rv_html = rv_html && |</tr>|.
ENDLOOP.
rv_html = rv_html && |</tbody></table>|.
rv_html = rv_html && |<br>|.
ENDMETHOD.
METHOD zif_abapgit_gui_event_handler~on_event.
DATA:
lv_path TYPE string,
lv_filename TYPE string,
li_fe_serv TYPE REF TO zif_abapgit_frontend_services.
CASE ii_event->mv_action.
WHEN c_action-save.
CONCATENATE 'abapGit_Debug_Info_' sy-datlo '_' sy-timlo '.html' INTO lv_filename.
li_fe_serv = zcl_abapgit_ui_factory=>get_frontend_services( ).
lv_path = li_fe_serv->show_file_save_dialog(
iv_title = 'abapGit - Debug Info'
iv_extension = 'html'
iv_default_filename = lv_filename ).
li_fe_serv->file_download(
iv_path = lv_path
iv_xstr = zcl_abapgit_convert=>string_to_xstring_utf8( mv_html ) ).
MESSAGE 'abapGit Debug Info successfully saved' TYPE 'S'.
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN c_action-back.
rs_handled-state = zcl_abapgit_gui=>c_event_state-go_back.
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_gui_renderable~render.
gui_services( )->register_event_handler( me ).
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<div id="debug_info" class="debug_container">' ).
ri_html->add( render_debug_info( ) ).
ri_html->add( '</div>' ).
ri_html->add( '<div id="exit_info" class="debug_container">' ).
ri_html->add( render_exit_info( ) ).
ri_html->add( '</div>' ).
ri_html->add( '<div id="supported_objects" class="debug_container">' ).
ri_html->add( render_supported_object_types( ) ).
ri_html->add( '</div>' ).
mv_html = '<!DOCTYPE html><html lang="en"><title>abapGit Debug Info</title></head>'.
mv_html = |<body>{ ri_html->render( ) }</body></html>|.
register_deferred_script( render_scripts( ) ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
24442,
10951,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
42895,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
2251,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
7700,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
37023,
62,
1481,
17749,
41876,
1172,
3672,
26173,
8924,
705,
57,
6242,
2969,
38,
2043,
62,
29904,
62,
6369,
2043,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
37023,
62,
4871,
41876,
384,
420,
7278,
3672,
26173,
8924,
705,
57,
5097,
62,
6242,
2969,
38,
2043,
62,
29904,
62,
6369,
2043,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
37023,
62,
39994,
41876,
384,
420,
7278,
3672,
26173,
8924,
705,
57,
5064,
62,
6242,
2969,
38,
2043,
62,
6369,
2043,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
41876,
4731,
26173,
8924,
705,
21928,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
736,
41876,
4731,
26173,
8924,
705,
1891,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
2673,
13,
198,
220,
220,
220,
42865,
285,
85,
62,
6494,
41876,
4731,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
1382,
62,
25981,
5657,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
26272,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
62,
25981,
5657,
13,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
24442,
62,
10951,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
37023,
62,
10951,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
37023,
62,
10951,
62,
24396,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
10459,
220,
220,
220,
220,
41876,
4731,
62,
11487,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
15999,
62,
15252,
62,
19199,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6494,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
46521,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
43327,
62,
15252,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26801,
62,
4906,
220,
220,
41876,
269,
43167,
5550,
38865,
705,
5097,
1921,
6,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26801,
62,
3672,
220,
220,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6494,
8,
41876,
4731,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
24442,
10951,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1382,
62,
25981,
5657,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
26272,
7788,
15490,
2751,
21628,
62,
312,
796,
705,
25981,
5657,
12,
24442,
4458,
628,
220,
220,
220,
686,
62,
26272,
3784,
2860,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
14116,
796,
705,
16928,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
529,
796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE zif_abapgit_repo_listener
PUBLIC .
INTERFACE zif_abapgit_persistence LOAD .
METHODS on_meta_change
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
!is_meta TYPE zif_abapgit_persistence=>ty_repo_xml
!is_change_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask
RAISING
zcx_abapgit_exception .
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
4868,
877,
198,
220,
44731,
764,
628,
198,
220,
23255,
49836,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
17579,
2885,
764,
198,
220,
337,
36252,
50,
319,
62,
28961,
62,
3803,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
5145,
271,
62,
28961,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
62,
19875,
198,
220,
220,
220,
220,
220,
5145,
271,
62,
3803,
62,
27932,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
62,
28961,
62,
27932,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
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
] |
*"* use this source file for any type of declarations (class
*"* definitions, interfaces or type declarations) you need for
*"* components in the private section
CLASS lcl_helper DEFINITION FINAL.
PUBLIC SECTION.
CONSTANTS:
BEGIN OF mc_gen_type,
number TYPE string VALUE 'NUMBER',
date TYPE string VALUE 'DATA',
time TYPE string VALUE 'TIME',
skip TYPE string VALUE 'SKIP',
END OF mc_gen_type.
TYPES:
" For speed
BEGIN OF ts_col_ind,
col TYPE char3,
ind TYPE i,
END OF ts_col_ind.
CLASS-DATA:
" Backward compatibility (could be 1 table)
mt_col_ind TYPE SORTED TABLE OF ts_col_ind WITH UNIQUE KEY col,
mt_ind_col TYPE SORTED TABLE OF ts_col_ind WITH UNIQUE KEY ind.
CLASS-METHODS:
fill_mapping
IMPORTING
ir_table TYPE REF TO data
ir_excel_map TYPE REF TO zcl_eui_file_io=>tt_excel_map
EXPORTING
et_fieldcat TYPE lvc_t_fcat
er_excel_map TYPE REF TO zcl_eui_file_io=>tt_excel_map,
export_2_table
IMPORTING
ir_table TYPE REF TO data
io_handler TYPE REF TO object
ir_source TYPE REF TO data
iv_row_from TYPE sytabix
io_file TYPE REF TO zcl_eui_file_io " for messages only
ir_excel_map TYPE REF TO zcl_eui_file_io=>tt_excel_map
RAISING zcx_eui_exception.
ENDCLASS.
CLASS zcl_eui_file_io DEFINITION LOCAL FRIENDS lcl_helper.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
597,
2099,
286,
31713,
357,
4871,
198,
9,
1,
9,
17336,
11,
20314,
393,
2099,
31713,
8,
345,
761,
329,
198,
9,
1,
9,
6805,
287,
262,
2839,
2665,
198,
198,
31631,
300,
565,
62,
2978,
525,
5550,
20032,
17941,
25261,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
36650,
62,
5235,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1271,
41876,
4731,
26173,
8924,
705,
41359,
13246,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3128,
220,
220,
41876,
4731,
26173,
8924,
705,
26947,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
640,
220,
220,
41876,
4731,
26173,
8924,
705,
34694,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
14267,
220,
220,
41876,
4731,
26173,
8924,
705,
18831,
4061,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
36650,
62,
5235,
62,
4906,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
366,
1114,
2866,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
40379,
62,
4033,
62,
521,
11,
198,
220,
220,
220,
220,
220,
220,
220,
951,
41876,
1149,
18,
11,
198,
220,
220,
220,
220,
220,
220,
220,
773,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
40379,
62,
4033,
62,
521,
13,
628,
220,
220,
220,
42715,
12,
26947,
25,
198,
220,
220,
220,
220,
220,
366,
5157,
904,
17764,
357,
24089,
307,
352,
3084,
8,
198,
220,
220,
220,
220,
220,
45079,
62,
4033,
62,
521,
41876,
311,
9863,
1961,
43679,
3963,
40379,
62,
4033,
62,
521,
13315,
4725,
33866,
8924,
35374,
951,
11,
198,
220,
220,
220,
220,
220,
45079,
62,
521,
62,
4033,
41876,
311,
9863,
1961,
43679,
3963,
40379,
62,
4033,
62,
521,
13315,
4725,
33866,
8924,
35374,
773,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
6070,
62,
76,
5912,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
11487,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
1069,
5276,
62,
8899,
41876,
4526,
37,
5390,
1976,
565,
62,
68,
9019,
62,
7753,
62,
952,
14804,
926,
62,
1069,
5276,
62,
8899,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
3245,
9246,
220,
41876,
300,
28435,
62,
83,
62,
69,
9246,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1931,
62,
1069,
5276,
62,
8899,
41876,
4526,
37,
5390,
1976,
565,
62,
68,
9019,
62,
7753,
62,
952,
14804,
926,
62,
1069,
5276,
62,
8899,
11,
628,
220,
220,
220,
220,
220,
10784,
62,
17,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
11487,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
30281,
220,
220,
41876,
4526,
37,
5390,
2134,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
10459,
220,
220,
220,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
808,
62,
6738,
220,
41876,
827,
8658,
844,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
7753,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
68,
9019,
62,
7753,
62,
952,
366,
329,
6218,
691,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
1069,
5276,
62,
8899,
41876,
4526,
37,
5390,
1976,
565,
62,
68,
9019,
62,
7753,
62,
952,
14804,
926,
62,
1069,
5276,
62,
8899,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
68,
9019,
62,
1069,
4516,
13,
198,
10619,
31631,
13,
628,
198,
31631,
1976,
565,
62,
68,
9019,
62,
7753,
62,
952,
5550,
20032,
17941,
37347,
1847,
48167,
1677,
5258,
300,
565,
62,
2978,
525,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
protected section.
data mo_injection type ref to /IWBEP/IF_SB_GEN_DPC_INJECTION .
methods ZAS_EMPNOMSET_CREATE_ENTITY
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITY_C optional
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
!IO_DATA_PROVIDER type ref to /IWBEP/IF_MGW_ENTRY_PROVIDER optional
exporting
!ER_ENTITY type ZCL_ZAS_EMP_MPC=>TS_ZAS_EMPNOM
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPNOMSET_DELETE_ENTITY
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITY_D optional
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPNOMSET_GET_ENTITY
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IO_REQUEST_OBJECT type ref to /IWBEP/IF_MGW_REQ_ENTITY optional
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITY optional
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
exporting
!ER_ENTITY type ZCL_ZAS_EMP_MPC=>TS_ZAS_EMPNOM
!ES_RESPONSE_CONTEXT type /IWBEP/IF_MGW_APPL_SRV_RUNTIME=>TY_S_MGW_RESPONSE_ENTITY_CNTXT
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPNOMSET_GET_ENTITYSET
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_FILTER_SELECT_OPTIONS type /IWBEP/T_MGW_SELECT_OPTION
!IS_PAGING type /IWBEP/S_MGW_PAGING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
!IT_ORDER type /IWBEP/T_MGW_SORTING_ORDER
!IV_FILTER_STRING type STRING
!IV_SEARCH_STRING type STRING
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITYSET optional
exporting
!ET_ENTITYSET type ZCL_ZAS_EMP_MPC=>TT_ZAS_EMPNOM
!ES_RESPONSE_CONTEXT type /IWBEP/IF_MGW_APPL_SRV_RUNTIME=>TY_S_MGW_RESPONSE_CONTEXT
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPNOMSET_UPDATE_ENTITY
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITY_U optional
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
!IO_DATA_PROVIDER type ref to /IWBEP/IF_MGW_ENTRY_PROVIDER optional
exporting
!ER_ENTITY type ZCL_ZAS_EMP_MPC=>TS_ZAS_EMPNOM
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPSET_CREATE_ENTITY
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITY_C optional
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
!IO_DATA_PROVIDER type ref to /IWBEP/IF_MGW_ENTRY_PROVIDER optional
exporting
!ER_ENTITY type ZCL_ZAS_EMP_MPC=>TS_ZAS_EMP
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPSET_DELETE_ENTITY
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITY_D optional
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPSET_GET_ENTITY
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IO_REQUEST_OBJECT type ref to /IWBEP/IF_MGW_REQ_ENTITY optional
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITY optional
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
exporting
!ER_ENTITY type ZCL_ZAS_EMP_MPC=>TS_ZAS_EMP
!ES_RESPONSE_CONTEXT type /IWBEP/IF_MGW_APPL_SRV_RUNTIME=>TY_S_MGW_RESPONSE_ENTITY_CNTXT
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPSET_GET_ENTITYSET
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_FILTER_SELECT_OPTIONS type /IWBEP/T_MGW_SELECT_OPTION
!IS_PAGING type /IWBEP/S_MGW_PAGING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
!IT_ORDER type /IWBEP/T_MGW_SORTING_ORDER
!IV_FILTER_STRING type STRING
!IV_SEARCH_STRING type STRING
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITYSET optional
exporting
!ET_ENTITYSET type ZCL_ZAS_EMP_MPC=>TT_ZAS_EMP
!ES_RESPONSE_CONTEXT type /IWBEP/IF_MGW_APPL_SRV_RUNTIME=>TY_S_MGW_RESPONSE_CONTEXT
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods ZAS_EMPSET_UPDATE_ENTITY
importing
!IV_ENTITY_NAME type STRING
!IV_ENTITY_SET_NAME type STRING
!IV_SOURCE_NAME type STRING
!IT_KEY_TAB type /IWBEP/T_MGW_NAME_VALUE_PAIR
!IO_TECH_REQUEST_CONTEXT type ref to /IWBEP/IF_MGW_REQ_ENTITY_U optional
!IT_NAVIGATION_PATH type /IWBEP/T_MGW_NAVIGATION_PATH
!IO_DATA_PROVIDER type ref to /IWBEP/IF_MGW_ENTRY_PROVIDER optional
exporting
!ER_ENTITY type ZCL_ZAS_EMP_MPC=>TS_ZAS_EMP
raising
/IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_TECH_EXCEPTION .
methods CHECK_SUBSCRIPTION_AUTHORITY
redefinition . | [
24326,
2665,
13,
628,
220,
1366,
6941,
62,
259,
29192,
2099,
1006,
284,
1220,
40,
45607,
8905,
14,
5064,
62,
16811,
62,
35353,
62,
35,
5662,
62,
1268,
23680,
2849,
764,
628,
220,
5050,
1168,
1921,
62,
3620,
13137,
2662,
28480,
62,
43387,
6158,
62,
3525,
9050,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
3525,
9050,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
3525,
9050,
62,
28480,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
47690,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
20373,
62,
5603,
33,
2099,
1220,
40,
45607,
8905,
14,
51,
62,
20474,
54,
62,
20608,
62,
39488,
62,
4537,
4663,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
51,
25994,
62,
2200,
35780,
62,
10943,
32541,
2099,
1006,
284,
1220,
40,
45607,
8905,
14,
5064,
62,
20474,
54,
62,
2200,
48,
62,
3525,
9050,
62,
34,
11902,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
4535,
53,
3528,
6234,
62,
34219,
2099,
1220,
40,
45607,
8905,
14,
51,
62,
20474,
54,
62,
4535,
53,
3528,
6234,
62,
34219,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
26947,
62,
41283,
41237,
2099,
1006,
284,
1220,
40,
45607,
8905,
14,
5064,
62,
20474,
54,
62,
3525,
18276,
62,
41283,
41237,
11902,
198,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
5145,
1137,
62,
3525,
9050,
2099,
1168,
5097,
62,
57,
1921,
62,
39494,
62,
44,
5662,
14804,
4694,
62,
57,
1921,
62,
3620,
13137,
2662,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1220,
40,
45607,
8905,
14,
34,
55,
62,
20474,
54,
62,
45346,
40,
62,
6369,
42006,
2849,
198,
220,
220,
220,
220,
220,
1220,
40,
45607,
8905,
14,
34,
55,
62,
20474,
54,
62,
51,
25994,
62,
6369,
42006,
2849,
764,
198,
220,
5050,
1168,
1921,
62,
3620,
13137,
2662,
28480,
62,
7206,
2538,
9328,
62,
3525,
9050,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
3525,
9050,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
3525,
9050,
62,
28480,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
47690,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
20373,
62,
5603,
33,
2099,
1220,
40,
45607,
8905,
14,
51,
62,
20474,
54,
62,
20608,
62,
39488,
62,
4537,
4663,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
51,
25994,
62,
2200,
35780,
62,
10943,
32541,
2099,
1006,
284,
1220,
40,
45607,
8905,
14,
5064,
62,
20474,
54,
62,
2200,
48,
62,
3525,
9050,
62,
35,
11902,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
4535,
53,
3528,
6234,
62,
34219,
2099,
1220,
40,
45607,
8905,
14,
51,
62,
20474,
54,
62,
4535,
53,
3528,
6234,
62,
34219,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1220,
40,
45607,
8905,
14,
34,
55,
62,
20474,
54,
62,
45346,
40,
62,
6369,
42006,
2849,
198,
220,
220,
220,
220,
220,
1220,
40,
45607,
8905,
14,
34,
55,
62,
20474,
54,
62,
51,
25994,
62,
6369,
42006,
2849,
764,
198,
220,
5050,
1168,
1921,
62,
3620,
13137,
2662,
28480,
62,
18851,
62,
3525,
9050,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
3525,
9050,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
3525,
9050,
62,
28480,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
47690,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
20373,
62,
5603,
33,
2099,
1220,
40,
45607,
8905,
14,
51,
62,
20474,
54,
62,
20608,
62,
39488,
62,
4537,
4663,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
2200,
35780,
62,
9864,
23680,
2099,
1006,
284,
1220,
40,
45607,
8905,
14,
5064,
62,
20474,
54,
62,
2200,
48,
62,
3525,
9050,
11902,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
51,
25994,
62,
2200,
35780,
62,
10943,
32541,
2099,
1006,
284,
1220,
40,
45607,
8905,
14,
5064,
62,
20474,
54,
62,
2200,
48,
62,
3525,
9050,
11902,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
4535,
53,
3528,
6234,
62,
34219,
2099,
1220,
40,
45607,
8905,
14,
51,
62,
20474,
54,
62,
4535,
53,
3528,
6234,
62,
34219,
198,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
5145,
1137,
62,
3525,
9050,
2099,
1168,
5097,
62,
57,
1921,
62,
39494,
62,
44,
5662,
14804,
4694,
62,
57,
1921,
62,
3620,
13137,
2662,
198,
220,
220,
220,
220,
220,
5145,
1546,
62,
19535,
47,
1340,
5188,
62,
10943,
32541,
2099,
1220,
40,
45607,
8905,
14,
5064,
62,
20474,
54,
62,
2969,
6489,
62,
12562,
53,
62,
49,
4944,
34694,
14804,
9936,
62,
50,
62,
20474,
54,
62,
19535,
47,
1340,
5188,
62,
3525,
9050,
62,
34,
11251,
25010,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1220,
40,
45607,
8905,
14,
34,
55,
62,
20474,
54,
62,
45346,
40,
62,
6369,
42006,
2849,
198,
220,
220,
220,
220,
220,
1220,
40,
45607,
8905,
14,
34,
55,
62,
20474,
54,
62,
51,
25994,
62,
6369,
42006,
2849,
764,
198,
220,
5050,
1168,
1921,
62,
3620,
13137,
2662,
28480,
62,
18851,
62,
3525,
9050,
28480,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
3525,
9050,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
3525,
9050,
62,
28480,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
47690,
62,
20608,
2099,
19269,
2751,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
46700,
5781,
62,
46506,
62,
3185,
51,
11053,
2099,
1220,
40,
45607,
8905,
14,
51,
62,
20474,
54,
62,
46506,
62,
3185,
24131,
198,
220,
220,
220,
220,
220,
5145,
1797,
62,
4537,
38,
2751,
2099,
1220,
40,
45607,
8905,
14,
50,
62,
20474,
54,
62,
4537,
38,
2751,
198,
220,
220,
220,
220,
220,
5145,
2043,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! CTS status comment template
INTERFACE zif_cilib_bot_status_tmpl PUBLIC.
TYPES:
BEGIN OF gty_system,
id TYPE syst_sysid,
description TYPE string,
END OF gty_system,
gty_system_tab TYPE STANDARD TABLE OF gty_system WITH NON-UNIQUE KEY id
WITH UNIQUE HASHED KEY unique COMPONENTS id,
gty_import_status TYPE c LENGTH 1,
BEGIN OF gty_import_info,
system TYPE syst_sysid,
import_status TYPE gty_import_status,
icon TYPE string,
END OF gty_import_info,
gty_import_info_tab TYPE STANDARD TABLE OF gty_import_info WITH EMPTY KEY
WITH UNIQUE HASHED KEY unique COMPONENTS system,
BEGIN OF gty_transport,
transport TYPE trkorr,
text TYPE string,
released TYPE abap_bool,
import_info TYPE gty_import_info_tab,
cts_url TYPE string,
END OF gty_transport,
gty_transport_tab TYPE SORTED TABLE OF gty_transport WITH UNIQUE KEY transport.
CONSTANTS:
BEGIN OF gc_import_status,
released TYPE gty_import_status VALUE 'R',
not_imported TYPE gty_import_status VALUE 'N',
imported TYPE gty_import_status VALUE 'I',
error_on_import TYPE gty_import_status VALUE 'E',
warning_on_import TYPE gty_import_status VALUE 'W',
import_planned TYPE gty_import_status VALUE 'P',
no_info TYPE gty_import_status VALUE '?',
END OF gc_import_status.
CLASS-METHODS:
parse_comment IMPORTING iv_comment TYPE string
RETURNING VALUE(ri_instance) TYPE REF TO zif_cilib_bot_status_tmpl
RAISING zcx_cilib_illegal_argument,
is_comment_parsable IMPORTING iv_comment TYPE string
RETURNING VALUE(rv_parsable) TYPE abap_bool.
METHODS:
get_comment_as_string RETURNING VALUE(rv_comment) TYPE string,
set_systems IMPORTING it_systems TYPE gty_system_tab,
add_system IMPORTING iv_id TYPE syst_sysid
iv_description TYPE string,
remove_system IMPORTING iv_system TYPE syst_sysid
RAISING zcx_cilib_not_found,
get_systems RETURNING VALUE(rt_systems) TYPE gty_system_tab,
add_transport IMPORTING iv_transport TYPE trkorr
iv_text TYPE csequence OPTIONAL
iv_released TYPE abap_bool
iv_cts_url TYPE string OPTIONAL
it_import_info TYPE gty_import_info_tab,
get_transports RETURNING VALUE(rt_transports) TYPE gty_transport_tab,
set_transports IMPORTING it_transports TYPE gty_transport_tab,
add_history_entry IMPORTING iv_entry TYPE csequence.
ENDINTERFACE.
| [
40484,
327,
4694,
3722,
2912,
11055,
198,
41358,
49836,
1976,
361,
62,
2856,
571,
62,
13645,
62,
13376,
62,
17209,
489,
44731,
13,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
308,
774,
62,
10057,
11,
198,
220,
220,
220,
220,
220,
4686,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
827,
301,
62,
17597,
312,
11,
198,
220,
220,
220,
220,
220,
6764,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
308,
774,
62,
10057,
11,
198,
220,
220,
220,
308,
774,
62,
10057,
62,
8658,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
308,
774,
62,
10057,
13315,
44521,
12,
4944,
33866,
8924,
35374,
4686,
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,
4725,
33866,
8924,
367,
11211,
1961,
35374,
3748,
24301,
1340,
15365,
4686,
11,
198,
220,
220,
220,
308,
774,
62,
11748,
62,
13376,
41876,
269,
406,
49494,
352,
11,
198,
220,
220,
220,
347,
43312,
3963,
308,
774,
62,
11748,
62,
10951,
11,
198,
220,
220,
220,
220,
220,
1080,
220,
220,
220,
220,
220,
220,
220,
41876,
827,
301,
62,
17597,
312,
11,
198,
220,
220,
220,
220,
220,
1330,
62,
13376,
41876,
308,
774,
62,
11748,
62,
13376,
11,
198,
220,
220,
220,
220,
220,
7196,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
308,
774,
62,
11748,
62,
10951,
11,
198,
220,
220,
220,
308,
774,
62,
11748,
62,
10951,
62,
8658,
41876,
49053,
9795,
43679,
3963,
308,
774,
62,
11748,
62,
10951,
13315,
38144,
9936,
35374,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
367,
11211,
1961,
35374,
3748,
24301,
1340,
15365,
1080,
11,
198,
220,
220,
220,
347,
43312,
3963,
308,
774,
62,
7645,
634,
11,
198,
220,
220,
220,
220,
220,
4839,
220,
220,
41876,
491,
74,
38890,
11,
198,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2716,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
1330,
62,
10951,
41876,
308,
774,
62,
11748,
62,
10951,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
269,
912,
62,
6371,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
308,
774,
62,
7645,
634,
11,
198,
220,
220,
220,
308,
774,
62,
7645,
634,
62,
8658,
41876,
311,
9863,
1961,
43679,
3963,
308,
774,
62,
7645,
634,
13315,
4725,
33866,
8924,
35374,
4839,
13,
198,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
347,
43312,
3963,
308,
66,
62,
11748,
62,
13376,
11,
198,
220,
220,
220,
220,
220,
2716,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
308,
774,
62,
11748,
62,
13376,
26173,
8924,
705,
49,
3256,
198,
220,
220,
220,
220,
220,
407,
62,
320,
9213,
220,
220,
220,
220,
220,
41876,
308,
774,
62,
11748,
62,
13376,
26173,
8924,
705,
45,
3256,
198,
220,
220,
220,
220,
220,
17392,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
308,
774,
62,
11748,
62,
13376,
26173,
8924,
705,
40,
3256,
198,
220,
220,
220,
220,
220,
4049,
62,
261,
62,
11748,
220,
220,
41876,
308,
774,
62,
11748,
62,
13376,
26173,
8924,
705,
36,
3256,
198,
220,
220,
220,
220,
220,
6509,
62,
261,
62,
11748,
41876,
308,
774,
62,
11748,
62,
13376,
26173,
8924,
705,
54,
3256,
198,
220,
220,
220,
220,
220,
1330,
62,
36800,
220,
220,
220,
41876,
308,
774,
62,
11748,
62,
13376,
26173,
8924,
705,
47,
3256,
198,
220,
220,
220,
220,
220,
645,
62,
10951,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
308,
774,
62,
11748,
62,
13376,
26173,
8924,
705,
30,
3256,
198,
220,
220,
220,
23578,
3963,
308,
66,
62,
11748,
62,
13376,
13,
198,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
21136,
62,
23893,
30023,
9863,
2751,
21628,
62,
23893,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
39098,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
2856,
571,
62,
13645,
62,
13376,
62,
17209,
489,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
2856,
571,
62,
47749,
62,
49140,
11,
198,
220,
220,
220,
318,
62,
23893,
62,
79,
945,
540,
30023,
9863,
2751,
21628,
62,
23893,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
79,
945,
540,
8,
41876,
450,
499,
62,
30388,
13,
198,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
651,
62,
23893,
62,
292,
62,
8841,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
23893,
8,
41876,
4731,
11,
198,
220,
220,
220,
900,
62,
10057,
82,
30023,
9863,
2751,
340,
62,
10057,
82,
41876,
308,
774,
62,
10057,
62,
8658,
11,
198,
220,
220,
220,
751,
62,
10057,
30023,
9863,
2751,
21628,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
827,
301,
62,
17597,
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,
21628,
62,
11213,
41876,
4731,
11,
198,
220,
220,
220,
4781,
62,
10057,
30023,
9863,
2751,
21628,
62,
10057,
41876,
827,
301,
62,
17597,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
2856,
571,
62,
1662
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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PUBLIC SECTION.
INTERFACES:
zif_abapgit_ecatt_upload.
METHODS:
upload
REDEFINITION.
PROTECTED SECTION.
METHODS:
upload_data_from_stream REDEFINITION,
get_ecatt_sp
RAISING
cx_ecatt_apl .
PRIVATE SECTION.
DATA: mv_external_xml TYPE xstring.
ENDCLASS.
CLASS zcl_abapgit_ecatt_sp_upload IMPLEMENTATION.
METHOD get_ecatt_sp.
" downport
DATA: li_ixml TYPE REF TO if_ixml,
li_section TYPE REF TO if_ixml_element,
li_dom TYPE REF TO if_ixml_document,
li_root TYPE REF TO if_ixml_node,
lv_start_profile TYPE etxml_line_str,
lv_exception_occurred TYPE etonoff,
lo_ecatt_sp TYPE REF TO object.
FIELD-SYMBOLS: <lg_ecatt_object> TYPE any.
TRY.
li_section = template_over_all->find_from_name_ns( 'START_PROFILE' ).
IF NOT li_section IS INITIAL.
li_ixml = cl_ixml=>create( ).
li_dom = li_ixml->create_document( ).
li_root ?= li_section->clone( ).
li_dom->append_child( new_child = li_root ).
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
document = li_dom
IMPORTING
xml_as_string = lv_start_profile.
ASSIGN ('ECATT_OBJECT') TO <lg_ecatt_object>.
ASSERT sy-subrc = 0.
lo_ecatt_sp = <lg_ecatt_object>.
CALL METHOD lo_ecatt_sp->('SET_SP_ATTRIBUTES')
EXPORTING
i_sp_xml = lv_start_profile.
ENDIF.
CATCH cx_ecatt_apl.
lv_exception_occurred = 'X'.
ENDTRY.
IF lv_exception_occurred = 'X'.
raise_upload_exception( previous = exception_to_raise ).
ENDIF.
ENDMETHOD.
METHOD upload.
" We inherit from CL_APL_ECATT_UPLOAD because CL_APL_ECATT_SP_UPLOAD
" doesn't exist in 702
" Downport
"26.03.2013
DATA: lx_ecatt TYPE REF TO cx_ecatt_apl,
lv_exists TYPE etonoff,
lv_exc_occ TYPE etonoff,
ls_tadir TYPE tadir,
lo_ecatt_sp TYPE REF TO object.
FIELD-SYMBOLS: <lg_ecatt_sp> TYPE any,
<lv_d_akh> TYPE data,
<lv_i_akh> TYPE data.
TRY.
ch_object-i_devclass = ch_object-d_devclass.
ASSIGN COMPONENT 'D_AKH' OF STRUCTURE ch_object
TO <lv_d_akh>. " doesn't exist in 702
ASSIGN COMPONENT 'I_AKH' OF STRUCTURE ch_object
TO <lv_i_akh>. " doesn't exist in 702
IF <lv_d_akh> IS ASSIGNED AND <lv_i_akh> IS ASSIGNED.
<lv_i_akh> = <lv_d_akh>.
ENDIF.
super->upload(
CHANGING
ch_object = ch_object ).
upload_data_from_stream( ch_object-filename ).
CATCH cx_ecatt_apl INTO lx_ecatt.
IF template_over_all IS INITIAL.
RAISE EXCEPTION lx_ecatt.
ELSE.
lv_exc_occ = 'X'.
ENDIF.
ENDTRY.
TRY.
CALL METHOD ('GET_ATTRIBUTES_FROM_DOM_NEW') " doesn't exist in 720
CHANGING
ch_object = ch_object.
CATCH cx_ecatt_apl INTO lx_ecatt.
lv_exc_occ = 'X'.
ENDTRY.
ASSIGN me->ecatt_object TO <lg_ecatt_sp>.
ASSERT sy-subrc = 0.
lo_ecatt_sp = <lg_ecatt_sp>.
TRY.
get_ecatt_sp( ).
CATCH cx_ecatt_apl INTO lx_ecatt.
lv_exc_occ = 'X'.
ENDTRY.
TRY.
lv_exists = cl_apl_ecatt_object=>existence_check_object(
im_name = ch_object-d_obj_name
im_version = ch_object-d_obj_ver
im_obj_type = ch_object-s_obj_type
im_exists_any_version = 'X' ).
IF lv_exists = space.
CALL METHOD lo_ecatt_sp->('SET_TADIR_FOR_NEW_OBJECT')
EXPORTING
im_tadir_for_new_object = tadir_preset.
ENDIF.
CATCH cx_ecatt.
CLEAR lv_exists.
ENDTRY.
TRY.
CALL METHOD lo_ecatt_sp->('SAVE')
EXPORTING
im_do_commit = 'X'.
CATCH cx_ecatt_apl INTO lx_ecatt.
lv_exc_occ = 'X'.
ENDTRY.
* Devesh,C5129871 18.07.2011 Releasing enqueu after uploading
*begin
TRY.
ecatt_object->close_object( im_suppress_events = 'X' ).
CATCH cx_ecatt_apl INTO lx_ecatt.
ENDTRY.
*end
* get devclass from existing object
TRY.
cl_apl_ecatt_object=>get_tadir_entry(
EXPORTING im_obj_name = ch_object-d_obj_name
im_obj_type = ch_object-s_obj_type
IMPORTING ex_tadir = ls_tadir ).
ch_object-d_devclass = ls_tadir-devclass.
CATCH cx_ecatt.
CLEAR ls_tadir.
ENDTRY.
IF lv_exc_occ = 'X'.
raise_upload_exception( previous = lx_ecatt ).
ENDIF.
ENDMETHOD.
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_APL_ECATT_START_PROFIL SET_STREAM_FOR_UPLOAD
mv_external_xml = iv_xml.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
721,
1078,
62,
2777,
62,
25850,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
537,
62,
64,
489,
62,
721,
1078,
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,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9516,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9516,
62,
7890,
62,
6738,
62,
5532,
23848,
36,
20032,
17941,
11,
628,
220,
220,
220,
220,
220,
651,
62,
721,
1078,
62,
2777,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
721,
1078,
62,
64,
489,
764,
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,
1976,
565,
62,
397,
499,
18300,
62,
721,
1078,
62,
2777,
62,
25850,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
721,
1078,
62,
2777,
13,
628,
220,
220,
220,
366,
866,
634,
628,
220,
220,
220,
42865,
25,
7649,
62,
844,
4029,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
5458,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
3438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
15763,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
9688,
62,
13317,
220,
220,
220,
220,
220,
41876,
2123,
19875,
62,
1370,
62,
2536,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
1069,
4516,
62,
13966,
12808,
41876,
304,
1122,
2364,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
721,
1078,
62,
2777,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
2134,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
75,
70,
62,
721,
1078,
62,
15252,
29,
41876,
597,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
5458,
796,
11055,
62,
2502,
62,
439,
3784,
19796,
62,
6738,
62,
3672,
62,
5907,
7,
705,
2257,
7227,
62,
31190,
25664,
6,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
16876,
5626,
7649,
62,
5458,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
844,
4029,
796,
537,
62,
844,
4029,
14804,
17953,
7,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
3438,
220,
796,
7649,
62,
844,
4029,
3784,
17953,
62,
22897,
7,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
15763,
5633,
28,
7649,
62,
5458,
3784,
21018,
7,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
3438,
3784,
33295,
62,
9410,
7,
649,
62,
9410,
796,
7649,
62,
15763,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
10305,
10426,
5805,
62,
39170,
62,
10468,
62,
55,
5805,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3188,
220,
220,
220,
220,
220,
796,
7649,
62,
3438,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
35555,
62,
292,
62,
8841,
796,
300,
85,
62,
9688,
62,
13317,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24994,
16284,
19203,
2943,
17139,
62,
9864,
23680,
11537,
5390,
1279,
75,
70,
62,
721,
1078,
62,
15252,
28401,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
721,
1078,
62,
2777,
796,
1279,
75,
70,
62,
721,
1078,
62,
15252,
28401,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42815,
337,
36252,
2376,
62,
721,
1078,
62,
2777,
3784,
10786,
28480,
62,
4303,
62,
1404,
5446,
9865,
3843,
1546,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
2777,
62,
19875,
796,
300,
85,
62,
9688,
62,
13317,
13,
628,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
721,
1078,
62,
64,
489,
13,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
1069,
4516,
62,
13966,
12808,
796,
705,
55,
4458,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
220,
220,
16876,
300,
85,
62,
1069,
4516,
62,
13966,
12808,
796,
705,
55,
4458,
198,
220,
220,
220,
220,
220,
5298,
62,
25850,
62,
1069,
4516,
7,
2180,
796,
6631,
62,
1462,
62,
40225,
6739,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
9516,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*&---------------------------------------------------------------------*
*& Report ZMQBA_TEST_BROKER_MSG
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zmqba_broker_msg_list NO STANDARD PAGE HEADING
MESSAGE-ID zmqba.
* ------ interface
PARAMETERS: p_top TYPE zmqba_topic DEFAULT '*'.
PARAMETERS: p_ctx TYPE zmqba_context.
PARAMETERS: p_snd TYPE zmqba_sender.
PARAMETERS: p_sndr TYPE zmqba_sender_ref.
PARAMETERS: p_tsf TYPE zmqba_timestamp DEFAULT sy-datum.
SELECTION-SCREEN: ULINE.
PARAMETERS: p_rfsh TYPE zmqba_flag_auto_refresh AS CHECKBOX DEFAULT abap_true.
PARAMETERS: p_tint TYPE zmqba_timer_interval DEFAULT 5.
* ------ local classes
CLASS lcl_table_events DEFINITION.
PUBLIC SECTION.
METHODS:
on_added_function FOR EVENT added_function OF cl_salv_events_table
IMPORTING e_salv_function.
ENDCLASS. "lcl_table_events DEFINITION
CLASS lcl_timer_event DEFINITION.
PUBLIC SECTION.
METHODS m_timer_finished FOR EVENT finished OF cl_gui_timer.
ENDCLASS. "lcl_timer_event DEFINITION
* ------- global data
DATA: gr_table TYPE REF TO cl_salv_table.
DATA: gr_events TYPE REF TO lcl_table_events.
DATA: gr_timer TYPE REF TO cl_gui_timer.
DATA: gr_timer_event TYPE REF TO lcl_timer_event.
DATA: gs_result TYPE zmqba_api_s_brk_msg.
* ----------------------------------------------------- INIT
INITIALIZATION.
*
GET TIME STAMP FIELD p_tsf.
* ----------------------------------------------------- START
START-OF-SELECTION.
* --------- read broker memory
PERFORM get_messages_from_broker.
* ------- check for errors
IF gs_result-error IS NOT INITIAL.
cl_demo_output=>display( |Error: { gs_result-error }| ).
ELSE.
* -------- display list (empty table allowed
* create new alv table
cl_salv_table=>factory( IMPORTING r_salv_table = gr_table CHANGING t_table = gs_result-msg ).
* show toolbar with all functions
gr_table->get_functions( )->set_all( ). " ->set_default( abap_true )
* optimze col width
gr_table->get_columns( )->set_optimize( ).
* set layout
gr_table->get_layout( )->set_save_restriction( if_salv_c_layout=>restrict_none ).
gr_table->get_layout( )->set_key( VALUE salv_s_layout_key( report = sy-repid ) ).
* start timer
PERFORM timer_start.
* display now
gr_table->display( ).
* stop timer
PERFORM timer_stop.
ENDIF.
END-OF-SELECTION.
* ================================= END OF PROGRAM =================================
CLASS lcl_table_events IMPLEMENTATION.
METHOD on_added_function.
BREAK-POINT.
ENDMETHOD. "on_added_function
ENDCLASS. "lcl_table_events IMPLEMENTATION
CLASS lcl_timer_event IMPLEMENTATION.
METHOD m_timer_finished.
PERFORM timer_process.
ENDMETHOD. "handle_finished
ENDCLASS. "lcl_timer_event IMPLEMENTATION
*&---------------------------------------------------------------------*
*& Form GET_MESSAGES_FROM_BROKER
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM get_messages_from_broker .
* ------ get messages from memory with parameters
* get broker access
DATA(lr_broker) = zcl_mqba_factory=>get_broker( ).
* read memory with params
CLEAR gs_result.
gs_result = lr_broker->get_current_memory(
iv_filter_context = p_ctx
iv_filter_topic = p_top
iv_timestamp_from = p_tsf
iv_filter_sender = p_snd
iv_filter_sender_ref = p_sndr ).
* status message with count
IF gs_result-msg[] IS NOT INITIAL.
MESSAGE s002 WITH gs_result-msg_cnt_sel gs_result-msg_cnt_all.
ENDIF.
* sort: newest first
SORT gs_result-msg BY updated DESCENDING.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form TIMER_START
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM timer_start .
IF p_rfsh EQ abap_true.
* create the timer if wanted at first run
IF gr_timer IS INITIAL.
CREATE OBJECT gr_timer.
CREATE OBJECT gr_timer_event.
SET HANDLER gr_timer_event->m_timer_finished FOR gr_timer.
* set interval
DATA(lv_interval) = COND #( WHEN p_tint < 1
THEN 5
ELSE p_tint ).
MOVE lv_interval TO gr_timer->interval.
MESSAGE s001 WITH lv_interval.
ENDIF.
* (re)start timer
gr_timer->run( ).
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form TIMER_STOP
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM timer_stop .
IF gr_timer IS NOT INITIAL.
gr_timer->cancel( ).
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form TIMER_PROCESS
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM timer_process .
* stop timer
PERFORM timer_stop.
* remember the current data selection
DATA(lv_first) = gs_result-msg_ts_first.
DATA(lv_last) = gs_result-msg_ts_last.
DATA(lv_count) = gs_result-msg_cnt_sel.
* refresh selection
PERFORM get_messages_from_broker.
* check changes
IF lv_first NE gs_result-msg_ts_first
OR lv_last NE gs_result-msg_ts_last
OR lv_count NE gs_result-msg_cnt_sel.
* trigger refresh table
PERFORM table_refresh.
ENDIF.
* trigger time again
PERFORM timer_start.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form TABLE_REFRESH
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM table_refresh .
* set new data to table
gr_table->refresh(
refresh_mode = if_salv_c_refresh=>soft
s_stable = VALUE lvc_s_stbl( col = 'X' ) ).
* trigger gui update
cl_gui_cfw=>flush( ).
cl_gui_cfw=>set_new_ok_code( 'RFSH' ).
ENDFORM.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1168,
49215,
4339,
62,
51,
6465,
62,
11473,
11380,
1137,
62,
5653,
38,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1976,
76,
80,
7012,
62,
7957,
6122,
62,
19662,
62,
4868,
8005,
49053,
9795,
48488,
39837,
2751,
198,
220,
337,
1546,
4090,
8264,
12,
2389,
1976,
76,
80,
7012,
13,
198,
198,
9,
40103,
7071,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
4852,
220,
220,
41876,
1976,
76,
80,
7012,
62,
26652,
5550,
38865,
705,
9,
4458,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
49464,
220,
220,
41876,
1976,
76,
80,
7012,
62,
22866,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
82,
358,
220,
220,
41876,
1976,
76,
80,
7012,
62,
82,
2194,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
82,
358,
81,
220,
41876,
1976,
76,
80,
7012,
62,
82,
2194,
62,
5420,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
912,
69,
220,
220,
41876,
1976,
76,
80,
7012,
62,
16514,
27823,
5550,
38865,
827,
12,
19608,
388,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
25,
471,
24027,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
41871,
1477,
220,
41876,
1976,
76,
80,
7012,
62,
32109,
62,
23736,
62,
5420,
3447,
7054,
5870,
25171,
39758,
5550,
38865,
450,
499,
62,
7942,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
83,
600,
220,
41876,
1976,
76,
80,
7012,
62,
45016,
62,
3849,
2100,
5550,
38865,
642,
13,
198,
198,
9,
40103,
1957,
6097,
198,
31631,
300,
565,
62,
11487,
62,
31534,
5550,
20032,
17941,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
319,
62,
29373,
62,
8818,
7473,
49261,
2087,
62,
8818,
3963,
537,
62,
21680,
85,
62,
31534,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
304,
62,
21680,
85,
62,
8818,
13,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
75,
565,
62,
11487,
62,
31534,
5550,
20032,
17941,
198,
198,
31631,
300,
565,
62,
45016,
62,
15596,
5550,
20032,
17941,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
285,
62,
45016,
62,
43952,
7473,
49261,
5201,
3963,
537,
62,
48317,
62,
45016,
13,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
75,
565,
62,
45016,
62,
15596,
5550,
20032,
17941,
628,
198,
9,
35656,
3298,
1366,
198,
26947,
25,
1036,
62,
11487,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
21680,
85,
62,
11487,
13,
198,
26947,
25,
1036,
62,
31534,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
11487,
62,
31534,
13,
198,
26947,
25,
1036,
62,
45016,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
45016,
13,
198,
26947,
25,
1036,
62,
45016,
62,
15596,
41876,
4526,
37,
5390,
300,
565,
62,
45016,
62,
15596,
13,
198,
26947,
25,
308,
82,
62,
20274,
220,
220,
220,
220,
220,
41876,
1976,
76,
80,
7012,
62,
15042,
62,
82,
62,
1671,
74,
62,
19662,
13,
198,
198,
9,
20368,
19351,
12,
3268,
2043,
198,
1268,
2043,
12576,
14887,
6234,
13,
198,
198,
9,
198,
220,
17151,
20460,
3563,
23518,
18930,
24639,
279,
62,
912,
69,
13,
198,
198,
9,
20368,
19351,
12,
33303,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
198,
198,
9,
45337,
1100,
20426,
4088,
198,
220,
19878,
21389,
651,
62,
37348,
1095,
62,
6738,
62,
7957,
6122,
13,
198,
198,
9,
35656,
2198,
329,
8563,
198,
220,
16876,
308,
82,
62,
20274,
12,
18224,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
537,
62,
9536,
78,
62,
22915,
14804,
13812,
7,
930,
12331,
25,
1391,
308,
82,
62,
20274,
12,
18224,
1782,
91,
6739,
198,
220,
17852,
5188,
13,
198,
9,
24200,
3359,
1351,
357,
28920,
3084,
3142,
198,
9,
220,
220,
220,
220,
2251,
649,
435,
85,
3084,
198,
220,
220,
220,
537,
62,
21680,
85,
62,
11487,
14804,
69,
9548,
7,
30023,
9863,
2751,
374,
62,
21680,
85,
62,
11487,
796,
1036,
62,
11487,
5870,
15567,
2751,
256,
62,
11487,
796,
308,
82,
62,
20274,
12,
19662,
6739,
198,
9,
220,
220,
220,
220,
905,
50149,
351,
477,
5499,
198,
220,
220,
220,
1036,
62,
11487,
3784,
1136,
62,
12543,
2733,
7,
1267,
3784,
2617,
62,
439,
7,
6739,
220,
366,
4613,
2617,
62,
12286,
7,
450,
499,
62,
7942,
1267,
198,
9,
220,
220,
220,
220,
6436,
2736,
951,
9647,
198,
220,
220,
220,
1036,
62,
11487,
3784,
1136,
62,
28665,
82,
7,
1267,
3784,
2617,
62,
40085,
1096,
7,
6739,
198,
9,
220,
220,
220,
220,
900,
12461,
198,
220,
220,
220,
1036,
62,
11487,
3784,
1136,
62,
39786,
7,
1267,
3784,
2617,
62,
21928,
62,
2118,
46214,
7,
611,
62,
21680,
85,
62,
66,
62,
39786,
14804,
2118,
2012,
62,
23108,
6739,
198,
220,
220,
220,
1036,
62,
11487,
3784,
1136,
62,
39786,
7,
1267,
3784,
2617,
62,
2539,
7,
26173,
8924,
24143,
62,
82,
62,
39786,
62,
2539,
7,
989,
796,
827,
12,
7856,
312,
1267,
6739,
198,
9,
220,
220,
220,
220,
923,
19781,
198,
220,
220,
220,
19878,
21389,
19781,
62,
9688,
13,
198,
9,
220,
220,
220,
220,
3359,
783,
198,
220,
220,
220,
1036,
62,
11487,
3784,
13812,
7,
6739,
198,
9,
220,
220,
220,
220,
2245,
19781,
198,
220,
220,
220,
19878,
21389,
19781,
62,
11338,
13,
198,
220,
23578,
5064,
13,
198,
198,
10619,
12,
19238,
12,
46506,
2849,
13,
198,
9,
46111,
23578,
3963,
46805,
46111,
198,
31631,
300,
565,
62,
11487,
62,
31534,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
319,
62,
29373,
62,
8818,
13,
198,
220,
220,
220,
29377,
10206,
12,
16402,
12394,
13,
198,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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LIC SECTION.
TYPES:
BEGIN OF gty_result,
pgmid TYPE pgmid,
object TYPE trobjtype,
obj_name TYPE sobj_name,
devclass TYPE devclass,
counter TYPE i,
runtime TYPE i,
seconds TYPE p LENGTH 16 DECIMALS 6,
END OF gty_result,
gty_result_tab TYPE STANDARD TABLE OF gty_result WITH KEY pgmid object obj_name.
METHODS:
constructor IMPORTING iv_package TYPE devclass
iv_include_sub_packages TYPE abap_bool DEFAULT abap_true
iv_serialize_master_lang_only TYPE abap_bool DEFAULT abap_true,
set_object_type_filter IMPORTING it_object_type_range TYPE zif_abapgit_definitions=>ty_object_type_range,
set_object_name_filter IMPORTING it_object_name_range TYPE zif_abapgit_definitions=>ty_object_name_range,
get_object_type_filter RETURNING VALUE(rt_object_type_range) TYPE zif_abapgit_definitions=>ty_object_type_range,
get_object_name_filter RETURNING VALUE(rt_object_name_range) TYPE zif_abapgit_definitions=>ty_object_name_range,
run_measurement RAISING zcx_abapgit_exception,
get_result RETURNING VALUE(rt_result) TYPE gty_result_tab.
PROTECTED SECTION.
PRIVATE SECTION.
METHODS:
select_tadir_entries RETURNING VALUE(rt_tadir) TYPE zif_abapgit_definitions=>ty_tadir_tt
RAISING zcx_abapgit_exception.
DATA:
mv_package TYPE devclass,
mv_include_sub_packages TYPE abap_bool,
mv_serialize_master_lang_only TYPE abap_bool,
BEGIN OF ms_filter_parameters,
object_type_range TYPE zif_abapgit_definitions=>ty_object_type_range,
object_name_range TYPE zif_abapgit_definitions=>ty_object_name_range,
END OF ms_filter_parameters,
mt_result TYPE gty_result_tab.
ENDCLASS.
CLASS zcl_abapgit_performance_test IMPLEMENTATION.
METHOD constructor.
mv_package = iv_package.
mv_include_sub_packages = iv_include_sub_packages.
mv_serialize_master_lang_only = iv_serialize_master_lang_only.
ENDMETHOD.
METHOD get_object_name_filter.
rt_object_name_range = ms_filter_parameters-object_name_range.
ENDMETHOD.
METHOD get_object_type_filter.
rt_object_type_range = ms_filter_parameters-object_type_range.
ENDMETHOD.
METHOD set_object_name_filter.
ms_filter_parameters-object_name_range = it_object_name_range.
ENDMETHOD.
METHOD set_object_type_filter.
ms_filter_parameters-object_type_range = it_object_type_range.
ENDMETHOD.
METHOD run_measurement.
DATA: li_actual_progress TYPE REF TO zif_abapgit_progress,
lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt,
lt_tadir_single TYPE zif_abapgit_definitions=>ty_tadir_tt,
lo_serializer TYPE REF TO zcl_abapgit_serialize,
lv_start_runtime TYPE i,
lv_end_runtime TYPE i,
lx_exception TYPE REF TO zcx_abapgit_exception,
lo_dummy_progress TYPE REF TO lcl_dummy_progress.
FIELD-SYMBOLS: <ls_tadir> TYPE zif_abapgit_definitions=>ty_tadir,
<ls_result> TYPE gty_result.
CLEAR mt_result.
li_actual_progress = zcl_abapgit_progress=>get_instance( 1 ).
CREATE OBJECT lo_dummy_progress.
zcl_abapgit_progress=>set_instance( lo_dummy_progress ).
TRY.
lt_tadir = select_tadir_entries( ).
CREATE OBJECT lo_serializer
EXPORTING
iv_serialize_master_lang_only = mv_serialize_master_lang_only.
LOOP AT lt_tadir ASSIGNING <ls_tadir>.
INSERT <ls_tadir> INTO TABLE lt_tadir_single.
GET RUN TIME FIELD lv_start_runtime.
lo_serializer->serialize(
it_tadir = lt_tadir_single
iv_force_sequential = abap_true ).
GET RUN TIME FIELD lv_end_runtime.
APPEND INITIAL LINE TO mt_result ASSIGNING <ls_result>.
<ls_result>-pgmid = <ls_tadir>-pgmid.
<ls_result>-object = <ls_tadir>-object.
<ls_result>-obj_name = <ls_tadir>-obj_name.
<ls_result>-devclass = <ls_tadir>-devclass.
<ls_result>-runtime = lv_end_runtime - lv_start_runtime.
<ls_result>-seconds = <ls_result>-runtime / 1000000.
CLEAR lt_tadir_single.
ENDLOOP.
CATCH zcx_abapgit_exception INTO lx_exception.
zcl_abapgit_progress=>set_instance( li_actual_progress ).
RAISE EXCEPTION lx_exception.
ENDTRY.
ENDMETHOD.
METHOD select_tadir_entries.
rt_tadir = zcl_abapgit_factory=>get_tadir( )->read(
iv_package = mv_package
iv_ignore_subpackages = boolc( mv_include_sub_packages = abap_false ) ).
DELETE rt_tadir WHERE object NOT IN ms_filter_parameters-object_type_range
OR obj_name NOT IN ms_filter_parameters-object_name_range.
ENDMETHOD.
METHOD get_result.
rt_result = mt_result.
ENDMETHOD.
ENDCLASS.
| [
40484,
15193,
1332,
1057,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
26585,
62,
9288,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
308,
774,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
220,
220,
23241,
13602,
220,
220,
220,
41876,
23241,
13602,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
220,
220,
41876,
4161,
50007,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
3672,
41876,
27355,
73,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1614,
4871,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3753,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19124,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4201,
220,
41876,
279,
406,
49494,
1467,
27196,
3955,
23333,
718,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
308,
774,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
308,
774,
62,
20274,
62,
8658,
41876,
49053,
9795,
43679,
3963,
308,
774,
62,
20274,
13315,
35374,
23241,
13602,
2134,
26181,
62,
3672,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
30023,
9863,
2751,
21628,
62,
26495,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
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,
7266,
62,
43789,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
46911,
1096,
62,
9866,
62,
17204,
62,
8807,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
11,
198,
220,
220,
220,
220,
220,
900,
62,
15252,
62,
4906,
62,
24455,
30023,
9863,
2751,
340,
62,
15252,
62,
4906,
62,
9521,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
15252,
62,
4906,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
900,
62,
15252,
62,
3672,
62,
24455,
30023,
9863,
2751,
340,
62,
15252,
62,
3672,
62,
9521,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
15252,
62,
3672,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
651,
62,
15252,
62,
4906,
62,
24455,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
15252,
62,
4906,
62,
9521,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
15252,
62,
4906,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
651,
62,
15252,
62,
3672,
62,
24455,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
15252,
62,
3672,
62,
9521,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
15252,
62,
3672,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
1057,
62,
1326,
5015,
434,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
651,
62,
20274,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
20274,
8,
41876,
308,
774,
62,
20274,
62,
8658,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
2922,
62,
83,
324,
343,
62,
298,
1678,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
83,
324,
343,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
83,
324,
343,
62,
926,
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,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
26495,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
17256,
62,
7266,
62,
43789,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
46911,
1096,
62,
9866,
62,
17204,
62,
8807,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
13845,
62,
24455,
62,
17143,
7307,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
62,
4906,
62,
9521,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
15252,
62,
4906,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
62,
3672,
62,
9521,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
15252,
62,
3672,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
13845,
62,
24455,
62,
17143,
7307,
11,
198,
220,
220,
220,
220,
220,
45079,
62,
20274,
41876,
308,
774,
62,
20274,
62,
8658,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
26585,
62,
9288,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
285,
85,
62,
26495,
796,
21628,
62,
26495,
13,
198,
220,
220,
220,
285,
85,
62,
17256,
62,
7266,
62,
43789,
796,
21628,
62,
17256,
62,
7266,
62,
43789,
13,
198,
220,
220,
220,
285,
85,
62,
46911,
1096,
62,
9866,
62,
17204,
62,
8807,
796,
21628,
62,
46911,
1096,
62,
9866,
62,
17204,
62,
8807,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
15252,
62,
3672,
62,
24455,
13,
198,
220,
220,
220,
374,
83,
62,
15252,
62,
3672,
62,
9521,
796,
13845,
62,
24455,
62,
17143,
7307,
12,
15252,
62,
3672,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_abapgit_popups_mock DEFINITION FOR TESTING.
PUBLIC SECTION.
INTERFACES: zif_abapgit_popups.
ENDCLASS.
CLASS ltcl_no_dependency_injection DEFINITION FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
METHODS:
no_injection FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_simple_dependency_inject DEFINITION FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
METHODS:
setup,
simple_injection FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_abapgit_popups_mock IMPLEMENTATION.
METHOD zif_abapgit_popups~branch_list_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~branch_popup_callback.
ENDMETHOD.
METHOD zif_abapgit_popups~create_branch_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~package_popup_callback.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_folder_logic.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_object.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_package_export.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_confirm.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_create_package.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_create_transp_branch.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_inform.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_select_from_list.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_to_select_transports.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_transport_request.
ENDMETHOD.
METHOD zif_abapgit_popups~repo_new_offline.
ENDMETHOD.
METHOD zif_abapgit_popups~repo_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~run_page_class_popup.
ENDMETHOD.
METHOD zif_abapgit_popups~popup_proxy_bypass.
ENDMETHOD.
ENDCLASS.
CLASS ltcl_no_dependency_injection IMPLEMENTATION.
METHOD no_injection.
DATA: li_popups TYPE REF TO zif_abapgit_popups,
lo_class_descr TYPE REF TO cl_abap_classdescr.
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
lo_class_descr ?= cl_abap_classdescr=>describe_by_object_ref( li_popups ).
cl_abap_unit_assert=>assert_equals(
exp = '\CLASS=ZCL_ABAPGIT_POPUPS'
act = lo_class_descr->absolute_name ).
ENDMETHOD.
ENDCLASS.
CLASS ltcl_simple_dependency_inject IMPLEMENTATION.
METHOD setup.
DATA: lo_popups_mock TYPE REF TO ltcl_abapgit_popups_mock.
CREATE OBJECT lo_popups_mock.
zcl_abapgit_ui_injector=>set_popups( lo_popups_mock ).
ENDMETHOD.
METHOD simple_injection.
DATA: li_popups TYPE REF TO zif_abapgit_popups,
lo_class_descr TYPE REF TO cl_abap_classdescr.
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
lo_class_descr ?= cl_abap_classdescr=>describe_by_object_ref( li_popups ).
cl_abap_unit_assert=>assert_equals(
exp = '\CLASS-POOL=ZCL_ABAPGIT_UI_INJECTOR\CLASS=LTCL_ABAPGIT_POPUPS_MOCK'
act = lo_class_descr->absolute_name ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
397,
499,
18300,
62,
12924,
4739,
62,
76,
735,
5550,
20032,
17941,
7473,
43001,
2751,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
3919,
62,
45841,
1387,
62,
259,
29192,
5550,
20032,
17941,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
360,
4261,
6234,
6006,
9863,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
645,
62,
259,
29192,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
36439,
62,
45841,
1387,
62,
259,
752,
5550,
20032,
17941,
7473,
43001,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
360,
4261,
6234,
6006,
9863,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
198,
220,
220,
220,
220,
220,
2829,
62,
259,
29192,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
397,
499,
18300,
62,
12924,
4739,
62,
76,
735,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
1671,
3702,
62,
4868,
62,
12924,
929,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
1671,
3702,
62,
12924,
929,
62,
47423,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
17953,
62,
1671,
3702,
62,
12924,
929,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
26495,
62,
12924,
929,
62,
47423,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
43551,
62,
6404,
291,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
15252,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
26495,
62,
39344,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
10414,
2533,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
17953,
62,
26495,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
17953,
62,
7645,
79,
62,
1671,
3702,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
259,
687,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
19738,
62,
6738,
62,
4868,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
1462,
62,
19738,
62,
7645,
3742,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
7645,
634,
62,
25927,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
260,
7501,
62,
3605,
62,
2364,
1370,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
260,
7501,
62,
12924,
929,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
5143,
62,
7700,
62,
4871,
62,
12924,
929,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
93,
12924,
929,
62,
36436,
62,
1525,
6603,
13,
628,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
3919,
62,
45841,
1387,
62,
259,
29192,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
645,
62,
259,
29192,
13,
628,
220,
220,
220,
42865,
25,
7649,
62,
12924,
4739,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
4871,
62,
20147,
81,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
4871,
20147,
81,
13,
628,
220,
220,
220,
7649,
62,
12924,
4739,
796,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
14804,
1136,
62,
12924,
4739,
7,
6739,
628,
220,
220,
220,
2376,
62,
4871,
62,
20147,
81,
5633,
28,
537,
62,
397,
499,
62,
4871,
20147,
81,
14804,
20147,
4892,
62,
1525,
62,
15252,
62,
5420,
7,
7649,
62,
12924,
4739,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
1033
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_app_table_function DEFINITION
PUBLIC
FINAL
CREATE PUBLIC
GLOBAL FRIENDS zcl_app_table_functions
zcl_app_alv_table.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING
iv_function TYPE string
iv_text TYPE string
iv_tooltip TYPE string
iv_icon TYPE icon_d,
is_visible
RETURNING VALUE(rv_result) TYPE abap_bool,
is_invisible
RETURNING VALUE(rv_result) TYPE abap_bool,
is_enabled
RETURNING VALUE(rv_result) TYPE abap_bool,
is_disabled
RETURNING VALUE(rv_result) TYPE abap_bool,
get_group
RETURNING VALUE(rv_result) TYPE salv_de_function,
get_icon
RETURNING VALUE(rv_result) TYPE string,
get_name
RETURNING VALUE(rv_result) TYPE string,
get_text
RETURNING VALUE(rv_result) TYPE string,
get_tooltip
RETURNING VALUE(rv_result) TYPE string,
get_visible
RETURNING VALUE(rv_result) TYPE abap_bool,
set_enable
IMPORTING
iv_value TYPE abap_bool,
set_group
IMPORTING
iv_value TYPE salv_de_function,
set_icon
IMPORTING
iv_value TYPE string,
set_name
IMPORTING
iv_value TYPE string,
set_text
IMPORTING
iv_value TYPE string,
set_tooltip
IMPORTING
iv_value TYPE string,
set_visible
IMPORTING
iv_value TYPE abap_bool DEFAULT abap_true.
PROTECTED SECTION.
PRIVATE SECTION.
DATA: mv_enabled TYPE abap_bool,
mv_visible TYPE abap_bool,
mv_icon TYPE icon_d,
mv_text TYPE string,
mv_tooltip TYPE string,
mv_function TYPE string,
mv_group TYPE string.
ENDCLASS.
CLASS zcl_app_table_function IMPLEMENTATION.
METHOD constructor.
mv_function = iv_function.
mv_icon = iv_icon.
mv_text = iv_text.
mv_tooltip = iv_tooltip.
mv_enabled = abap_true.
mv_visible = abap_true.
ENDMETHOD.
METHOD get_group.
rv_result = mv_group.
ENDMETHOD.
METHOD get_icon.
rv_result = mv_icon.
ENDMETHOD.
METHOD get_name.
rv_result = mv_function.
ENDMETHOD.
METHOD get_text.
rv_result = mv_text.
ENDMETHOD.
METHOD get_tooltip.
rv_result = mv_tooltip.
ENDMETHOD.
METHOD get_visible.
rv_result = mv_visible.
ENDMETHOD.
METHOD is_disabled.
rv_result = SWITCH #( mv_enabled WHEN abap_true THEN abap_false
ELSE abap_true ).
ENDMETHOD.
METHOD is_enabled.
rv_result = SWITCH #( mv_enabled WHEN abap_true THEN abap_true
ELSE abap_false ).
ENDMETHOD.
METHOD is_invisible.
rv_result = SWITCH #( mv_visible WHEN abap_true THEN abap_false
ELSE abap_true ).
ENDMETHOD.
METHOD is_visible.
rv_result = SWITCH #( mv_visible WHEN abap_true THEN abap_true
ELSE abap_false ).
ENDMETHOD.
METHOD set_visible.
mv_visible = iv_value.
ENDMETHOD.
METHOD set_enable.
mv_enabled = iv_value.
ENDMETHOD.
METHOD set_group.
mv_group = iv_value.
ENDMETHOD.
METHOD set_icon.
mv_icon = iv_value.
ENDMETHOD.
METHOD set_name.
mv_function = iv_value.
ENDMETHOD.
METHOD set_text.
mv_text = iv_value.
ENDMETHOD.
METHOD set_tooltip.
mv_tooltip = iv_value.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
1324,
62,
11487,
62,
8818,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
198,
220,
10188,
9864,
1847,
48167,
1677,
5258,
1976,
565,
62,
1324,
62,
11487,
62,
12543,
2733,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
565,
62,
1324,
62,
282,
85,
62,
11487,
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,
21628,
62,
8818,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
25981,
22504,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
4749,
220,
220,
220,
220,
41876,
7196,
62,
67,
11,
198,
220,
220,
220,
220,
220,
318,
62,
23504,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
318,
62,
259,
23504,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
318,
62,
25616,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
318,
62,
47730,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
651,
62,
8094,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
24143,
62,
2934,
62,
8818,
11,
198,
220,
220,
220,
220,
220,
651,
62,
4749,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
651,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
651,
62,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
651,
62,
25981,
22504,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
651,
62,
23504,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
900,
62,
21633,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
900,
62,
8094,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
41876,
24143,
62,
2934,
62,
8818,
11,
198,
220,
220,
220,
220,
220,
900,
62,
4749,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
900,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
900,
62,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
900,
62,
25981,
22504,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
900,
62,
23504,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
285,
85,
62,
25616,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
23504,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
4749,
220,
220,
220,
220,
41876,
7196,
62,
67,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
5239,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
25981,
22504,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
8818,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
8094,
220,
220,
220,
41876,
4731,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
1324,
62,
11487,
62,
8818,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
285,
85,
62,
8818,
796,
21628,
62,
8818,
13,
198,
220,
220,
220,
285,
85,
62,
4749,
220,
220,
220,
220,
796,
21628,
62,
4749,
13,
198,
220,
220,
220,
285,
85,
62,
5239,
220,
220,
220,
220,
796,
21628,
62,
5239,
13,
198,
220,
220,
220,
285,
85,
62,
25981,
22504,
220,
796,
21628,
62,
25981,
22504,
13,
198,
220,
220,
220,
285,
85,
62,
25616,
220,
796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_check_number_attributes DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC.
PUBLIC SECTION.
METHODS constructor.
PROTECTED SECTION.
METHODS inspect_statements REDEFINITION.
METHODS inspect_tokens REDEFINITION.
PRIVATE SECTION.
CONSTANTS structure_depth_threshold TYPE i VALUE 0.
DATA attribute_counter TYPE i VALUE 0.
DATA structure_depth TYPE i VALUE 0.
METHODS checkif_attribute_in_structure IMPORTING second_token TYPE string
third_token TYPE string.
METHODS checkif_attribute_found IMPORTING first_token TYPE string.
METHODS check_result IMPORTING structure TYPE sstruc.
ENDCLASS.
CLASS y_check_number_attributes IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
settings-pseudo_comment = '"#EC NUMBER_ATTR' ##NO_TEXT.
settings-threshold = 12.
settings-documentation = |{ c_docs_path-checks }number-attributes.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 attributes must be lower than &2! (&1>=&2)' ).
ENDMETHOD.
METHOD inspect_statements.
attribute_counter = 0.
super->inspect_statements( structure ).
check_result( structure ).
ENDMETHOD.
METHOD inspect_tokens.
checkif_attribute_found( first_token = get_token_abs( statement-from ) ).
checkif_attribute_in_structure( second_token = get_token_abs( statement-from + 1 )
third_token = get_token_abs( statement-from + 2 ) ).
ENDMETHOD.
METHOD checkif_attribute_found.
CASE first_token.
WHEN 'DATA' OR 'CLASS-DATA'.
IF structure_depth <= structure_depth_threshold.
ADD 1 TO attribute_counter.
ENDIF.
ENDCASE.
ENDMETHOD.
METHOD checkif_attribute_in_structure.
IF ( second_token = 'BEGIN' AND third_token = 'OF' ).
ADD 1 TO structure_depth.
ELSEIF ( second_token = 'END' AND third_token = 'OF' ).
SUBTRACT 1 FROM structure_depth.
ENDIF.
ENDMETHOD.
METHOD check_result.
DATA(statement) = ref_scan_manager->statements[ structure-stmnt_from ].
DATA(check_configuration) = detect_check_configuration( error_count = attribute_counter
statement = statement ).
IF check_configuration IS INITIAL.
RETURN.
ENDIF.
raise_error( statement_level = statement-level
statement_index = structure-stmnt_from
statement_from = statement-from
error_priority = check_configuration-prio
parameter_01 = |{ attribute_counter }|
parameter_02 = |{ check_configuration-threshold }| ).
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9122,
62,
17618,
62,
1078,
7657,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
29244,
6158,
44731,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
14269,
3196,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
4645,
62,
18053,
62,
400,
10126,
41876,
1312,
26173,
8924,
657,
13,
628,
220,
220,
220,
42865,
11688,
62,
24588,
41876,
1312,
26173,
8924,
657,
13,
198,
220,
220,
220,
42865,
4645,
62,
18053,
41876,
1312,
26173,
8924,
657,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
361,
62,
42348,
62,
259,
62,
301,
5620,
30023,
9863,
2751,
1218,
62,
30001,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2368,
62,
30001,
220,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
361,
62,
42348,
62,
9275,
30023,
9863,
2751,
717,
62,
30001,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
62,
20274,
30023,
9863,
2751,
4645,
41876,
264,
19554,
66,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
62,
9122,
62,
17618,
62,
1078,
7657,
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,
13246,
62,
1404,
5446,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
6460,
12,
400,
10126,
796,
1105,
13,
198,
220,
220,
220,
6460,
12,
22897,
341,
796,
930,
90,
269,
62,
31628,
62,
6978,
12,
42116,
1782,
17618,
12,
1078,
7657,
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,
12608,
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,
14269,
3196,
13,
198,
220,
220,
220,
11688,
62,
24588,
796,
657,
13,
628,
220,
220,
220,
2208,
3784,
1040,
806,
62,
14269,
3196,
7,
4645,
6739,
628,
220,
220,
220,
2198,
62,
20274,
7,
4645,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
10104,
62,
83,
482,
641,
13,
198,
220,
220,
220,
2198,
361,
62,
42348,
62,
9275,
7,
717,
62,
30001,
796,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1267,
6739,
628,
220,
220,
220,
2198,
361,
62,
42348,
62,
259,
62,
301,
5620,
7,
1218,
62,
30001,
796,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1343,
352,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2368,
62,
30001,
796,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1343,
362,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2198,
361,
62,
42348,
62,
9275,
13,
198,
220,
220,
220,
42001,
717,
62,
30001,
13,
198,
220,
220,
220,
220,
220,
42099,
705,
26947,
6,
6375,
705,
31631,
12,
26947,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
4645,
62,
18053,
19841,
4645,
62,
18053,
62,
400,
10126,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27841,
352,
5390,
11688,
62,
24588,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
34,
11159,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2198,
361,
62,
42348,
62,
259,
62,
301,
5620,
13,
198,
220,
220,
220,
16876,
357,
1218,
62,
30001,
796,
705,
33,
43312,
6,
5357,
2368,
62,
30001,
796,
705,
19238,
6,
6739,
198,
220,
220,
220,
220,
220,
27841,
352,
5390,
4645,
62,
18053,
13,
198,
220,
220,
220,
17852,
5188,
5064,
357,
1218,
62,
30001,
796,
705,
10619,
6,
5357,
2368,
62,
30001,
796,
705,
19238,
6,
6739,
198,
220,
220,
220,
220,
220,
28932,
5446,
10659,
352,
16034,
4645,
62,
18053,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2198,
62,
20274,
13,
198,
220,
220,
220,
42865,
7,
26090,
8,
796,
1006,
62,
35836,
62,
37153,
3784,
14269,
3196,
58,
4645,
12,
301,
76,
429,
62,
6738,
20740,
628,
220,
220,
220,
42865,
7,
9122,
62,
11250,
3924,
8,
796,
4886,
62,
9122,
62,
11250,
3924,
7,
4049,
62,
9127,
796,
11688,
62,
24588,
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,
2643,
796,
2643,
6739,
198,
220,
220,
220,
16876,
2198,
62,
11250,
3924,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*---------------------------------------------------------------------*
* view related data declarations
* generation date: 25.04.2019 at 12:25:47
* view maintenance generator version: #001407#
*---------------------------------------------------------------------*
*...processing: ZEWM_V_TWCR.....................................*
TABLES: ZEWM_V_TWCR, *ZEWM_V_TWCR. "view work areas
CONTROLS: TCTRL_ZEWM_V_TWCR
TYPE TABLEVIEW USING SCREEN '0001'.
DATA: BEGIN OF STATUS_ZEWM_V_TWCR. "state vector
INCLUDE STRUCTURE VIMSTATUS.
DATA: END OF STATUS_ZEWM_V_TWCR.
* Table for entries selected to show on screen
DATA: BEGIN OF ZEWM_V_TWCR_EXTRACT OCCURS 0010.
INCLUDE STRUCTURE ZEWM_V_TWCR.
INCLUDE STRUCTURE VIMFLAGTAB.
DATA: END OF ZEWM_V_TWCR_EXTRACT.
* Table for all entries loaded from database
DATA: BEGIN OF ZEWM_V_TWCR_TOTAL OCCURS 0010.
INCLUDE STRUCTURE ZEWM_V_TWCR.
INCLUDE STRUCTURE VIMFLAGTAB.
DATA: END OF ZEWM_V_TWCR_TOTAL.
*.........table declarations:.................................*
TABLES: /SCWM/TWCR .
| [
9,
10097,
30934,
9,
198,
9,
220,
220,
220,
1570,
3519,
1366,
31713,
198,
9,
220,
220,
5270,
3128,
25,
1679,
13,
3023,
13,
23344,
379,
1105,
25,
1495,
25,
2857,
198,
9,
220,
220,
1570,
9262,
17301,
2196,
25,
1303,
405,
1415,
2998,
2,
198,
9,
10097,
30934,
9,
198,
9,
986,
36948,
25,
1168,
6217,
44,
62,
53,
62,
34551,
9419,
8864,
12359,
9,
198,
5603,
9148,
1546,
25,
1168,
6217,
44,
62,
53,
62,
34551,
9419,
11,
1635,
57,
6217,
44,
62,
53,
62,
34551,
9419,
13,
366,
1177,
670,
3006,
198,
10943,
5446,
3535,
50,
25,
309,
4177,
7836,
62,
57,
6217,
44,
62,
53,
62,
34551,
9419,
198,
25216,
43679,
28206,
1294,
2751,
6374,
2200,
1677,
705,
18005,
4458,
198,
26947,
25,
347,
43312,
3963,
15486,
2937,
62,
57,
6217,
44,
62,
53,
62,
34551,
9419,
13,
366,
5219,
15879,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3268,
5097,
52,
7206,
19269,
18415,
11335,
569,
3955,
35744,
2937,
13,
198,
26947,
25,
23578,
3963,
15486,
2937,
62,
57,
6217,
44,
62,
53,
62,
34551,
9419,
13,
198,
9,
8655,
329,
12784,
6163,
284,
905,
319,
3159,
198,
26947,
25,
347,
43312,
3963,
1168,
6217,
44,
62,
53,
62,
34551,
9419,
62,
6369,
5446,
10659,
440,
4093,
4261,
50,
3571,
940,
13,
198,
1268,
5097,
52,
7206,
19269,
18415,
11335,
1168,
6217,
44,
62,
53,
62,
34551,
9419,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3268,
5097,
52,
7206,
19269,
18415,
11335,
569,
3955,
38948,
5603,
33,
13,
198,
26947,
25,
23578,
3963,
1168,
6217,
44,
62,
53,
62,
34551,
9419,
62,
6369,
5446,
10659,
13,
198,
9,
8655,
329,
477,
12784,
9639,
422,
6831,
198,
26947,
25,
347,
43312,
3963,
1168,
6217,
44,
62,
53,
62,
34551,
9419,
62,
51,
27510,
440,
4093,
4261,
50,
3571,
940,
13,
198,
1268,
5097,
52,
7206,
19269,
18415,
11335,
1168,
6217,
44,
62,
53,
62,
34551,
9419,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3268,
5097,
52,
7206,
19269,
18415,
11335,
569,
3955,
38948,
5603,
33,
13,
198,
26947,
25,
23578,
3963,
1168,
6217,
44,
62,
53,
62,
34551,
9419,
62,
51,
27510,
13,
198,
198,
9,
34617,
11487,
31713,
25,
27754,
34617,
9,
198,
5603,
9148,
1546,
25,
1220,
6173,
22117,
14,
34551,
9419,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_EXCEL16
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zdemo_excel16.
DATA: lo_excel TYPE REF TO zcl_excel,
lo_worksheet TYPE REF TO zcl_excel_worksheet,
lo_drawing TYPE REF TO zcl_excel_drawing.
DATA: ls_io TYPE skwf_io.
CONSTANTS: gc_save_file_name TYPE string VALUE '16_Drawings.xlsx'.
INCLUDE zdemo_excel_outputopt_incl.
PARAMETERS: p_objid TYPE sdok_docid DEFAULT '456694429165174BE10000000A1550C0', " Question mark in standard Web Dynpro WDT_QUIZ
p_class TYPE sdok_class DEFAULT 'M_IMAGE_P',
pobjtype TYPE skwf_ioty DEFAULT 'P'.
START-OF-SELECTION.
" Creates active sheet
CREATE OBJECT lo_excel.
"Load samle image
DATA: lt_bin TYPE solix_tab,
lv_len TYPE i,
lv_content TYPE xstring,
ls_key TYPE wwwdatatab.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = 'c:\Program Files\SAP\FrontEnd\SAPgui\wwi\graphics\W_bio.bmp'
filetype = 'BIN'
IMPORTING
filelength = lv_len
CHANGING
data_tab = lt_bin
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_len
IMPORTING
buffer = lv_content
TABLES
binary_tab = lt_bin
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
" Get active sheet
lo_worksheet = lo_excel->get_active_worksheet( ).
lo_worksheet->set_title( 'Sheet1' ).
lo_worksheet->set_cell( ip_column = 'B' ip_row = 2 ip_value = 'Image from web repository (SMW0)' ).
" create global drawing, set position and media from web repository
lo_drawing = lo_excel->add_new_drawing( ).
lo_drawing->set_position( ip_from_row = 3
ip_from_col = 'B' ).
ls_key-relid = 'MI'.
ls_key-objid = 'SAPLOGO.GIF'.
lo_drawing->set_media_www( ip_key = ls_key
ip_width = 166
ip_height = 75 ).
" assign drawing to the worksheet
lo_worksheet->add_drawing( lo_drawing ).
" another drawing from a XSTRING read from a file
lo_worksheet->set_cell( ip_column = 'B' ip_row = 8 ip_value = 'Image from a file (c:\Program Files\SAP\FrontEnd\SAPgui\wwi\graphics\W_bio.bmp)' ).
lo_drawing = lo_excel->add_new_drawing( ).
lo_drawing->set_position( ip_from_row = 9
ip_from_col = 'B' ).
lo_drawing->set_media( ip_media = lv_content
ip_media_type = zcl_excel_drawing=>c_media_type_bmp
ip_width = 83
ip_height = 160 ).
lo_worksheet->add_drawing( lo_drawing ).
ls_io-objid = p_objid.
ls_io-class = p_class.
ls_io-objtype = pobjtype.
IF ls_io IS NOT INITIAL.
" another drawing from a XSTRING read from a file
lo_worksheet->set_cell( ip_column = 'B' ip_row = 18 ip_value = 'Mime repository (by default Question mark in standard Web Dynpro WDT_QUIZ)' ).
lo_drawing = lo_excel->add_new_drawing( ).
lo_drawing->set_position( ip_from_row = 19
ip_from_col = 'B' ).
lo_drawing->set_media_mime( ip_io = ls_io
ip_width = 126
ip_height = 145 ).
lo_worksheet->add_drawing( lo_drawing ).
ENDIF.
*** Create output
lcl_output=>output( lo_excel ).
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
39429,
46,
62,
6369,
34,
3698,
1433,
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,
1433,
13,
198,
198,
26947,
25,
2376,
62,
1069,
5276,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
5225,
25473,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
5225,
25473,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
19334,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
19334,
278,
13,
628,
198,
26947,
25,
43979,
62,
952,
41876,
1341,
86,
69,
62,
952,
13,
198,
198,
10943,
2257,
1565,
4694,
25,
308,
66,
62,
21928,
62,
7753,
62,
3672,
41876,
4731,
26173,
8924,
705,
1433,
62,
25302,
654,
13,
87,
7278,
87,
4458,
198,
1268,
5097,
52,
7206,
1976,
9536,
78,
62,
1069,
5276,
62,
22915,
8738,
62,
259,
565,
13,
198,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
26801,
312,
220,
220,
41876,
45647,
482,
62,
15390,
312,
5550,
38865,
705,
2231,
36657,
2598,
1959,
20986,
22985,
12473,
16,
24598,
32,
1314,
1120,
34,
15,
3256,
366,
18233,
1317,
287,
3210,
5313,
39530,
1676,
370,
24544,
62,
43702,
57,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
4871,
220,
220,
41876,
45647,
482,
62,
4871,
5550,
38865,
705,
44,
62,
3955,
11879,
62,
47,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
26801,
4906,
220,
41876,
1341,
86,
69,
62,
5151,
88,
220,
5550,
38865,
705,
47,
4458,
628,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
628,
220,
366,
7921,
274,
4075,
9629,
198,
220,
29244,
6158,
25334,
23680,
2376,
62,
1069,
5276,
13,
628,
220,
366,
8912,
6072,
293,
2939,
198,
220,
42865,
25,
300,
83,
62,
8800,
41876,
1540,
844,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
11925,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
11299,
41876,
2124,
8841,
11,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
2539,
41876,
7324,
19608,
265,
397,
13,
628,
220,
42815,
337,
36252,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
48317,
62,
25850,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
29472,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
66,
7479,
15167,
13283,
59,
50,
2969,
59,
25886,
12915,
59,
50,
2969,
48317,
59,
1383,
72,
59,
70,
11549,
59,
54,
62,
65,
952,
13,
65,
3149,
6,
198,
220,
220,
220,
220,
220,
2393,
4906,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
33,
1268,
6,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
2393,
13664,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
11925,
198,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
1366,
62,
8658,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
8800,
198,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
2393,
62,
9654,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
2393,
62,
961,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
198,
220,
220,
220,
220,
220,
645,
62,
43501,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
513,
198,
220,
220,
220,
220,
220,
11774,
62,
5420,
1904,
62,
7753,
39437,
796,
604,
198,
220,
220,
220,
220,
220,
12515,
62,
4906,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
642,
198,
220,
220,
220,
220,
220,
645,
62,
9800,
414,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
718,
198,
220,
220,
220,
220,
220,
6439,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
767,
198,
220,
220,
220,
220,
220,
2089,
62,
7890,
62,
18982,
220,
220,
220,
220,
220,
220,
220,
220,
796,
807,
198,
220,
220,
220,
220,
220,
13639,
62,
1662,
62,
40845,
220,
220,
220,
220,
220,
796,
860,
198,
220,
220,
220,
220,
220,
2880,
1352,
62,
1662,
62,
40845,
220,
220,
796,
838,
198,
220,
220,
220,
220,
220,
13639,
62,
18820,
62,
6511,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1367,
198,
220,
220,
220,
220,
220,
6439,
62,
26059,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
796,
1105,
198,
220,
220,
220,
220,
220,
1895,
62,
6559,
798,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1511,
198,
220,
220,
220,
220,
220,
288,
79,
62,
448,
62,
1659,
62,
31673,
220,
220,
220,
220,
220,
220,
220,
796,
1478,
198,
220,
220,
220,
220,
220,
11898,
62,
12853,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1315,
198,
220,
220,
220,
220,
220,
288,
79,
62,
48678,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1467,
198,
220,
220,
220,
220,
220,
407,
62,
15999,
62,
1525,
62,
48317,
220,
220,
220,
796,
1596,
198,
220,
220,
220,
220,
220,
4049,
62,
3919,
62,
48317,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1248,
198,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! Failure in annotation association modification
CLASS zcx_aap_annot_change_failure DEFINITION
PUBLIC
FINAL
INHERITING FROM zcx_aap_error
CREATE PUBLIC.
PUBLIC SECTION.
TYPES:
gty_operation TYPE char6.
CONSTANTS:
BEGIN OF gc_locked,
msgid TYPE symsgid VALUE 'ZAAP',
msgno TYPE symsgno VALUE '027',
attr1 TYPE scx_attrname VALUE 'MV_REASON',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF gc_locked,
BEGIN OF gc_operations,
insert TYPE gty_operation VALUE 'INSERT',
modify TYPE gty_operation VALUE 'MODIFY',
delete TYPE gty_operation VALUE 'DELETE',
END OF gc_operations.
METHODS:
"! @parameter ix_previous | Previous exception
"! @parameter iv_reason | Reason
constructor IMPORTING ix_previous LIKE previous OPTIONAL
iv_reason TYPE csequence OPTIONAL
iv_operation TYPE gty_operation OPTIONAL.
DATA:
mv_reason TYPE string READ-ONLY,
mv_operation TYPE gty_operation READ-ONLY.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcx_aap_annot_change_failure IMPLEMENTATION.
METHOD constructor ##ADT_SUPPRESS_GENERATION.
super->constructor( is_textid = gc_locked ix_previous = ix_previous ).
mv_reason = iv_reason.
mv_operation = iv_operation.
ENDMETHOD.
ENDCLASS.
| [
40484,
25743,
287,
23025,
8112,
17613,
198,
31631,
1976,
66,
87,
62,
64,
499,
62,
34574,
62,
3803,
62,
32165,
495,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
66,
87,
62,
64,
499,
62,
18224,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
308,
774,
62,
27184,
41876,
1149,
21,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
308,
66,
62,
24162,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
41876,
827,
19662,
312,
26173,
8924,
705,
34892,
2969,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
3919,
41876,
827,
19662,
3919,
26173,
8924,
705,
44698,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
16,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
44,
53,
62,
2200,
36033,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
17,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
18,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
19,
41876,
629,
87,
62,
35226,
3672,
26173,
8924,
705,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
308,
66,
62,
24162,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
308,
66,
62,
3575,
602,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7550,
41876,
308,
774,
62,
27184,
26173,
8924,
705,
20913,
17395,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
13096,
41876,
308,
774,
62,
27184,
26173,
8924,
705,
33365,
5064,
56,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
12233,
41876,
308,
774,
62,
27184,
26173,
8924,
705,
7206,
2538,
9328,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
308,
66,
62,
3575,
602,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
220,
844,
62,
3866,
1442,
930,
21801,
6631,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
41181,
930,
23219,
198,
220,
220,
220,
220,
220,
23772,
30023,
9863,
2751,
220,
844,
62,
3866,
1442,
220,
34178,
2180,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
41181,
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,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
27184,
41876,
308,
774,
62,
27184,
39852,
2849,
1847,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
41181,
220,
220,
220,
41876,
4731,
20832,
12,
1340,
11319,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
27184,
41876,
308,
774,
62,
27184,
20832,
12,
1340,
11319,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
66,
87,
62,
64,
499,
62,
34574,
62,
3803,
62,
32165,
495,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
23772,
22492,
2885,
51,
62,
40331,
32761,
62,
35353,
1137,
6234,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
318,
62,
5239,
312,
796,
308,
66,
62,
24162,
220,
844,
62,
3866,
1442,
796,
220,
844,
62,
3866,
1442,
6739,
628,
220,
220,
220,
285,
85,
62,
41181,
796,
21628,
62,
41181,
13,
198,
220,
220,
220,
285,
85,
62,
27184,
796,
21628,
62,
27184,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_abappgp_message_factory DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS create
IMPORTING
!iv_armor TYPE string
RETURNING
VALUE(ri_message) TYPE REF TO zif_abappgp_message .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ABAPPGP_MESSAGE_FACTORY IMPLEMENTATION.
METHOD create.
DATA: lv_header TYPE string,
lo_armor TYPE REF TO zcl_abappgp_armor.
lo_armor = zcl_abappgp_armor=>from_string( iv_armor ).
lv_header = lo_armor->get_armor_header( ).
IF lv_header = zcl_abappgp_armor=>c_header-message.
ri_message = zcl_abappgp_message_01=>from_armor( lo_armor ).
ELSEIF lv_header = zcl_abappgp_armor=>c_header-public.
ri_message = zcl_abappgp_message_02=>from_armor( lo_armor ).
ELSEIF lv_header = zcl_abappgp_armor=>c_header-private.
ri_message = zcl_abappgp_message_03=>from_armor( lo_armor ).
ELSEIF lv_header CP zcl_abappgp_armor=>c_header-messagexx.
* todo, 04
ASSERT 0 = 1.
ELSEIF lv_header CP zcl_abappgp_armor=>c_header-messagex.
* todo, 05
ASSERT 0 = 1.
ELSEIF lv_header = zcl_abappgp_armor=>c_header-signature.
ri_message = zcl_abappgp_message_06=>from_armor( lo_armor ).
ELSEIF lv_header = zcl_abappgp_armor=>c_header-signed.
* todo, 07
ASSERT 0 = 1.
ELSE.
* unknown message type
ASSERT 0 = 1.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
1324,
31197,
62,
20500,
62,
69,
9548,
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,
2251,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
40456,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
20500,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
1324,
31197,
62,
20500,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
6968,
47,
62,
44,
1546,
4090,
8264,
62,
37,
10659,
15513,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2251,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
25677,
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,
2376,
62,
40456,
796,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
6738,
62,
8841,
7,
21628,
62,
40456,
6739,
628,
220,
220,
220,
300,
85,
62,
25677,
796,
2376,
62,
40456,
3784,
1136,
62,
40456,
62,
25677,
7,
6739,
628,
220,
220,
220,
16876,
300,
85,
62,
25677,
796,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
66,
62,
25677,
12,
20500,
13,
198,
220,
220,
220,
220,
220,
374,
72,
62,
20500,
796,
1976,
565,
62,
397,
1324,
31197,
62,
20500,
62,
486,
14804,
6738,
62,
40456,
7,
2376,
62,
40456,
6739,
198,
220,
220,
220,
17852,
5188,
5064,
300,
85,
62,
25677,
796,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
66,
62,
25677,
12,
11377,
13,
198,
220,
220,
220,
220,
220,
374,
72,
62,
20500,
796,
1976,
565,
62,
397,
1324,
31197,
62,
20500,
62,
2999,
14804,
6738,
62,
40456,
7,
2376,
62,
40456,
6739,
198,
220,
220,
220,
17852,
5188,
5064,
300,
85,
62,
25677,
796,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
66,
62,
25677,
12,
19734,
13,
198,
220,
220,
220,
220,
220,
374,
72,
62,
20500,
796,
1976,
565,
62,
397,
1324,
31197,
62,
20500,
62,
3070,
14804,
6738,
62,
40456,
7,
2376,
62,
40456,
6739,
198,
220,
220,
220,
17852,
5188,
5064,
300,
85,
62,
25677,
16932,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
66,
62,
25677,
12,
20500,
5324,
13,
198,
9,
284,
4598,
11,
8702,
198,
220,
220,
220,
220,
220,
24994,
17395,
657,
796,
352,
13,
198,
220,
220,
220,
17852,
5188,
5064,
300,
85,
62,
25677,
16932,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
66,
62,
25677,
12,
20500,
87,
13,
198,
9,
284,
4598,
11,
8870,
198,
220,
220,
220,
220,
220,
24994,
17395,
657,
796,
352,
13,
198,
220,
220,
220,
17852,
5188,
5064,
300,
85,
62,
25677,
796,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
66,
62,
25677,
12,
12683,
1300,
13,
198,
220,
220,
220,
220,
220,
374,
72,
62,
20500,
796,
1976,
565,
62,
397,
1324,
31197,
62,
20500,
62,
3312,
14804,
6738,
62,
40456,
7,
2376,
62,
40456,
6739,
198,
220,
220,
220,
17852,
5188,
5064,
300,
85,
62,
25677,
796,
1976,
565,
62,
397,
1324,
31197,
62,
40456,
14804,
66,
62,
25677,
12,
32696,
13,
198,
9,
284,
4598,
11,
8753,
198,
220,
220,
220,
220,
220,
24994,
17395,
657,
796,
352,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
9,
6439,
3275,
2099,
198,
220,
220,
220,
220,
220,
24994,
17395,
657,
796,
352,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 READ-ONLY.
METHODS add
IMPORTING
iv_str TYPE string.
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.
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.
CONDENSE <n>-path.
CONDENSE <n>-name.
CONDENSE <n>-type.
CONDENSE <n>-value.
<n>-index = lv_index.
<n>-children = lv_children.
ENDMETHOD.
METHOD sorted.
rt_nodes = 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.
ENDCLASS.
CLASS ltcl_parser_test IMPLEMENTATION.
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.
ENDCLASS.
**********************************************************************
* JSON UTILITIES
**********************************************************************
CLASS ltcl_json_utils DEFINITION
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT
FINAL.
PRIVATE SECTION.
METHODS json_diff FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS json_diff_types FOR TESTING RAISING zcx_abapgit_ajson_error.
METHODS json_sort FOR TESTING RAISING zcx_abapgit_ajson_error.
ENDCLASS.
CLASS ltcl_json_utils IMPLEMENTATION.
METHOD json_diff.
DATA:
lv_json TYPE string,
lo_util TYPE REF TO zcl_abapgit_ajson_utilities,
lo_insert TYPE REF TO zif_abapgit_ajson,
lo_delete TYPE REF TO zif_abapgit_ajson,
lo_change TYPE REF TO zif_abapgit_ajson,
lo_insert_exp TYPE REF TO lcl_nodes_helper,
lo_delete_exp TYPE REF TO lcl_nodes_helper,
lo_change_exp TYPE REF TO lcl_nodes_helper.
lv_json =
'{\n' &&
' "string": "abc",\n' && " no changes
' "number": 789,\n' && " changed value
' "float": 123.45,\n' &&
' "boolean": "true",\n' && " changed type
' "true": true,\n' && " insert
* ' "false": false,\n' && " delete
' "null": null,\n' &&
' "date": "2020-03-15",\n' &&
' "issues": [\n' &&
' {\n' &&
' "message": "Indentation problem ...",\n' &&
' "key": "indentation",\n' &&
' "start": {\n' &&
' "row": 5,\n' && " array change
' "col": 3\n' &&
' },\n' &&
' "end": {\n' &&
' "new": 1,\n' && " array insert
* ' "row": 4,\n' && " array delete
' "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 lv_json WITH cl_abap_char_utilities=>newline.
lo_insert_exp = NEW #( ).
lo_insert_exp->add( ' | |object | |0|3' ).
lo_insert_exp->add( '/ |boolean |str |true |0|0' ). " changed type (insert new)
lo_insert_exp->add( '/ |issues |array | |0|1' ).
lo_insert_exp->add( '/ |true |bool |true |0|0' ). " insert
lo_insert_exp->add( '/issues/ |1 |object | |1|1' ).
lo_insert_exp->add( '/issues/1/ |end |object | |0|1' ).
lo_insert_exp->add( '/issues/1/end/ |new |num |1 |0|0' ). " array insert
lo_delete_exp = NEW #( ).
lo_delete_exp->add( ' | |object | |0|3' ).
lo_delete_exp->add( '/ |boolean |bool |true |0|0' ). " changed type (delete old)
lo_delete_exp->add( '/ |false |bool |false |0|0' ). " delete
lo_delete_exp->add( '/ |issues |array | |0|1' ).
lo_delete_exp->add( '/issues/ |1 |object | |1|1' ).
lo_delete_exp->add( '/issues/1/ |end |object | |0|1' ).
lo_delete_exp->add( '/issues/1/end/ |row |num |4 |0|0' ). " array delete
lo_change_exp = NEW #( ).
lo_change_exp->add( ' | |object | |0|2' ).
lo_change_exp->add( '/ |issues |array | |0|1' ).
lo_change_exp->add( '/ |number |num |789 |0|0' ). " changed value
lo_change_exp->add( '/issues/ |1 |object | |1|1' ).
lo_change_exp->add( '/issues/1/ |start |object | |0|1' ).
lo_change_exp->add( '/issues/1/start/|row |num |5 |0|0' ). " array change
lo_util = NEW #( ).
lo_util->diff(
EXPORTING
iv_json_a = ltcl_parser_test=>sample_json( )
iv_json_b = lv_json
IMPORTING
eo_insert = lo_insert
eo_delete = lo_delete
eo_change = lo_change ).
cl_abap_unit_assert=>assert_equals(
act = lo_insert->mt_json_tree
exp = lo_insert_exp->mt_nodes ).
cl_abap_unit_assert=>assert_equals(
act = lo_delete->mt_json_tree
exp = lo_delete_exp->mt_nodes ).
cl_abap_unit_assert=>assert_equals(
act = lo_change->mt_json_tree
exp = lo_change_exp->mt_nodes ).
ENDMETHOD.
METHOD json_diff_types.
DATA:
lv_json_a TYPE string,
lv_json_b TYPE string,
lo_util TYPE REF TO zcl_abapgit_ajson_utilities,
lo_insert TYPE REF TO zif_abapgit_ajson,
lo_delete TYPE REF TO zif_abapgit_ajson,
lo_change TYPE REF TO zif_abapgit_ajson,
lo_insert_exp TYPE REF TO lcl_nodes_helper,
lo_delete_exp TYPE REF TO lcl_nodes_helper.
" Change single value to array
lv_json_a =
'{\n' &&
' "string": "abc",\n' &&
' "number": 123\n' &&
'}'.
lv_json_b =
'{\n' &&
' "string": [\n' &&
' "a",\n' &&
' "b",\n' &&
' "c"\n' &&
' ],\n' &&
' "number": 123\n' &&
'}'.
REPLACE ALL OCCURRENCES OF '\n' IN lv_json_a WITH cl_abap_char_utilities=>newline.
REPLACE ALL OCCURRENCES OF '\n' IN lv_json_b WITH cl_abap_char_utilities=>newline.
lo_insert_exp = NEW #( ).
lo_insert_exp->add( ' | |object | |0|1' ).
lo_insert_exp->add( '/ |string |array | |0|3' ).
lo_insert_exp->add( '/string/ |1 |str |a |1|0' ).
lo_insert_exp->add( '/string/ |2 |str |b |2|0' ).
lo_insert_exp->add( '/string/ |3 |str |c |3|0' ).
lo_delete_exp = NEW #( ).
lo_delete_exp->add( ' | |object | |0|1' ).
lo_delete_exp->add( '/ |string |str |abc |0|0' ).
lo_util = NEW #( ).
lo_util->diff(
EXPORTING
iv_json_a = lv_json_a
iv_json_b = lv_json_b
IMPORTING
eo_insert = lo_insert
eo_delete = lo_delete
eo_change = lo_change ).
cl_abap_unit_assert=>assert_equals(
act = lo_insert->mt_json_tree
exp = lo_insert_exp->mt_nodes ).
cl_abap_unit_assert=>assert_equals(
act = lo_delete->mt_json_tree
exp = lo_delete_exp->mt_nodes ).
cl_abap_unit_assert=>assert_equals(
act = lines( lo_change->mt_json_tree )
exp = 0 ).
" Change array to single value
lo_util->diff(
EXPORTING
iv_json_a = lv_json_b
iv_json_b = lv_json_a
IMPORTING
eo_insert = lo_insert
eo_delete = lo_delete
eo_change = lo_change ).
cl_abap_unit_assert=>assert_equals(
act = lo_insert->mt_json_tree
exp = lo_delete_exp->mt_nodes ).
cl_abap_unit_assert=>assert_equals(
act = lo_delete->mt_json_tree
exp = lo_insert_exp->mt_nodes ).
cl_abap_unit_assert=>assert_equals(
act = lines( lo_change->mt_json_tree )
exp = 0 ).
ENDMETHOD.
METHOD json_sort.
DATA:
lv_json TYPE string,
lo_util TYPE REF TO zcl_abapgit_ajson_utilities,
lv_sorted TYPE string,
lv_sorted_exp TYPE string.
lv_json =
'{\n' &&
' "string": "abc",\n' &&
' "number": 789,\n' &&
' "float": 123.45,\n' &&
' "boolean": "true",\n' &&
' "true": true,\n' &&
' "false": false,\n' &&
' "null": null,\n' &&
' "date": "2020-03-15"\n' &&
'}'.
REPLACE ALL OCCURRENCES OF '\n' IN lv_json WITH cl_abap_char_utilities=>newline.
lv_sorted_exp =
'{\n' &&
' "boolean": "true",\n' &&
' "date": "2020-03-15",\n' &&
' "false": false,\n' &&
' "float": 123.45,\n' &&
' "null": null,\n' &&
' "number": 789,\n' &&
' "string": "abc",\n' &&
' "true": true\n' &&
'}'.
REPLACE ALL OCCURRENCES OF '\n' IN lv_sorted_exp WITH cl_abap_char_utilities=>newline.
lo_util = NEW #( ).
lv_sorted = lo_util->sort( iv_json = lv_json ).
cl_abap_unit_assert=>assert_equals(
act = lv_sorted
exp = lv_sorted_exp ).
ENDMETHOD.
ENDCLASS.
| [
17174,
17174,
2466,
1174,
198,
9,
19255,
4146,
198,
17174,
17174,
2466,
1174,
198,
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,
20832,
12,
1340,
11319,
13,
628,
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,
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,
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,
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,
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,
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,
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,
17752,
8,
41876,
4731,
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,
6291,
62,
17752,
13,
628,
220,
220,
220,
374,
85,
62,
17752,
796,
198,
220,
220,
220,
220,
220,
705,
31478,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
366,
8841,
1298,
366,
39305,
1600,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
366,
17618,
1298,
17031,
11,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
366,
22468,
1298,
17031,
13,
2231,
11,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
366,
2127,
21052,
1298,
2081,
11,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
366,
9562,
1298,
3991,
11,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
366,
8423,
1298,
9242,
11,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
366,
4475,
1298,
366,
42334,
12,
3070,
12,
1314,
1600,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
366,
37165,
1298,
685,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
43839,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
366,
20500,
1298,
366,
5497,
298,
341,
1917,
35713,
11,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
366,
2539,
1298,
366,
521,
298,
341,
1600,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
366,
9688,
1298,
43839,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
220,
220,
366,
808,
1298,
604,
11,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
220,
220,
366,
4033,
1298,
513,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
8964,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
366,
437,
1298,
43839,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
220,
220,
366,
808,
1298,
604,
11,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
220,
220,
366,
4033,
1298,
2608,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
8964,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
220,
220,
366,
34345,
1298,
366,
19571,
89,
31811,
13,
1676,
70,
13,
397,
499,
1,
59,
77,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
220,
220,
220,
8964,
59,
77,
6,
11405,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_AGIT_TEST
public .
endinterface.
| [
39994,
1168,
5064,
62,
4760,
2043,
62,
51,
6465,
198,
220,
1171,
764,
198,
198,
437,
39994,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_repo_online DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_repo
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_git_operations .
ALIASES create_branch
FOR zif_abapgit_git_operations~create_branch .
ALIASES push
FOR zif_abapgit_git_operations~push .
METHODS get_url
RETURNING
VALUE(rv_url) TYPE zif_abapgit_persistence=>ty_repo-url .
METHODS get_branch_name
RETURNING
VALUE(rv_name) TYPE zif_abapgit_persistence=>ty_repo-branch_name .
METHODS set_url
IMPORTING
!iv_url TYPE zif_abapgit_persistence=>ty_repo-url
RAISING
zcx_abapgit_exception .
METHODS set_branch_name
IMPORTING
!iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name
RAISING
zcx_abapgit_exception .
METHODS get_sha1_remote
RETURNING
VALUE(rv_sha1) TYPE zif_abapgit_definitions=>ty_sha1
RAISING
zcx_abapgit_exception .
METHODS get_objects
RETURNING
VALUE(rt_objects) TYPE zif_abapgit_definitions=>ty_objects_tt
RAISING
zcx_abapgit_exception .
METHODS get_files_remote
REDEFINITION .
METHODS get_name
REDEFINITION .
METHODS has_remote_source
REDEFINITION .
METHODS rebuild_local_checksums
REDEFINITION .
PROTECTED SECTION.
PRIVATE SECTION.
DATA mt_objects TYPE zif_abapgit_definitions=>ty_objects_tt .
DATA mv_branch TYPE zif_abapgit_definitions=>ty_sha1 .
METHODS handle_stage_ignore
IMPORTING
!io_stage TYPE REF TO zcl_abapgit_stage
RAISING
zcx_abapgit_exception .
METHODS set_objects
IMPORTING
!it_objects TYPE zif_abapgit_definitions=>ty_objects_tt
RAISING
zcx_abapgit_exception .
METHODS fetch_remote
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS ZCL_ABAPGIT_REPO_ONLINE IMPLEMENTATION.
METHOD fetch_remote.
DATA: li_progress TYPE REF TO zif_abapgit_progress,
ls_pull TYPE zcl_abapgit_git_porcelain=>ty_pull_result.
IF mv_request_remote_refresh = abap_false.
RETURN.
ENDIF.
li_progress = zcl_abapgit_progress=>get_instance( 1 ).
li_progress->show( iv_current = 1
iv_text = 'Fetch remote files' ) ##NO_TEXT.
ls_pull = zcl_abapgit_git_porcelain=>pull(
iv_url = get_url( )
iv_branch_name = get_branch_name( ) ).
set_files_remote( ls_pull-files ).
set_objects( ls_pull-objects ).
mv_branch = ls_pull-branch.
ENDMETHOD.
METHOD get_branch_name.
rv_name = ms_data-branch_name.
ENDMETHOD.
METHOD get_files_remote.
fetch_remote( ).
rt_files = super->get_files_remote( ).
ENDMETHOD.
METHOD get_name.
rv_name = zcl_abapgit_url=>name( ms_data-url ).
rv_name = super->get_name( ).
IF rv_name IS INITIAL.
rv_name = zcl_abapgit_url=>name( ms_data-url ).
rv_name = cl_http_utility=>if_http_utility~unescape_url( rv_name ).
ENDIF.
ENDMETHOD.
METHOD get_objects.
fetch_remote( ).
rt_objects = mt_objects.
ENDMETHOD.
METHOD get_sha1_remote.
fetch_remote( ).
rv_sha1 = mv_branch.
ENDMETHOD.
METHOD get_url.
rv_url = ms_data-url.
ENDMETHOD.
METHOD handle_stage_ignore.
DATA: lv_add TYPE abap_bool,
lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit,
lt_stage TYPE zcl_abapgit_stage=>ty_stage_tt.
FIELD-SYMBOLS: <ls_stage> LIKE LINE OF lt_stage.
lo_dot_abapgit = get_dot_abapgit( ).
lt_stage = io_stage->get_all( ).
LOOP AT lt_stage ASSIGNING <ls_stage> WHERE method = zcl_abapgit_stage=>c_method-ignore.
lo_dot_abapgit->add_ignore(
iv_path = <ls_stage>-file-path
iv_filename = <ls_stage>-file-filename ).
" remove it from the staging object, as the action is handled here
io_stage->reset( iv_path = <ls_stage>-file-path
iv_filename = <ls_stage>-file-filename ).
lv_add = abap_true.
ENDLOOP.
IF lv_add = abap_true.
io_stage->add(
iv_path = zif_abapgit_definitions=>c_root_dir
iv_filename = zif_abapgit_definitions=>c_dot_abapgit
iv_data = lo_dot_abapgit->serialize( ) ).
set_dot_abapgit( lo_dot_abapgit ).
ENDIF.
ENDMETHOD.
METHOD has_remote_source.
rv_yes = abap_true.
ENDMETHOD.
METHOD rebuild_local_checksums.
" TODO: method unify to base class !
DATA:
lt_remote TYPE zif_abapgit_definitions=>ty_files_tt,
lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt,
ls_last_item TYPE zif_abapgit_definitions=>ty_item,
lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt.
FIELD-SYMBOLS:
<ls_checksum> LIKE LINE OF lt_checksums,
<ls_file_sig> LIKE LINE OF <ls_checksum>-files,
<ls_remote> LIKE LINE OF lt_remote,
<ls_local> LIKE LINE OF lt_local.
lt_local = get_files_local( ).
DELETE lt_local " Remove non-code related files except .abapgit
WHERE item IS INITIAL
AND NOT ( file-path = zif_abapgit_definitions=>c_root_dir
AND file-filename = zif_abapgit_definitions=>c_dot_abapgit ).
SORT lt_local BY item.
lt_remote = get_files_remote( ).
SORT lt_remote BY path filename.
LOOP AT lt_local ASSIGNING <ls_local>.
IF ls_last_item <> <ls_local>-item OR sy-tabix = 1. " First or New item reached ?
APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>.
<ls_checksum>-item = <ls_local>-item.
ls_last_item = <ls_local>-item.
ENDIF.
READ TABLE lt_remote ASSIGNING <ls_remote>
WITH KEY path = <ls_local>-file-path filename = <ls_local>-file-filename
BINARY SEARCH.
CHECK sy-subrc = 0. " Ignore new local ones
APPEND INITIAL LINE TO <ls_checksum>-files ASSIGNING <ls_file_sig>.
MOVE-CORRESPONDING <ls_local>-file TO <ls_file_sig>.
" If hashes are equal -> local sha1 is OK
" Else if R-branch is ahead -> assume changes were remote, state - local sha1
" Else (branches equal) -> assume changes were local, state - remote sha1
IF <ls_local>-file-sha1 <> <ls_remote>-sha1.
<ls_file_sig>-sha1 = <ls_remote>-sha1.
ENDIF.
ENDLOOP.
set( it_checksums = lt_checksums ).
reset_status( ).
ENDMETHOD.
METHOD set_branch_name.
reset_remote( ).
set( iv_branch_name = iv_branch_name ).
ENDMETHOD.
METHOD set_objects.
mt_objects = it_objects.
ENDMETHOD.
METHOD set_url.
reset_remote( ).
set( iv_url = iv_url ).
ENDMETHOD.
METHOD zif_abapgit_git_operations~create_branch.
DATA: lv_sha1 TYPE zif_abapgit_definitions=>ty_sha1.
ASSERT iv_name CP 'refs/heads/+*'.
IF iv_from IS INITIAL.
lv_sha1 = get_sha1_remote( ).
ELSE.
lv_sha1 = iv_from.
ENDIF.
zcl_abapgit_git_porcelain=>create_branch(
iv_url = get_url( )
iv_name = iv_name
iv_from = lv_sha1 ).
" automatically switch to new branch
set_branch_name( iv_name ).
ENDMETHOD.
METHOD zif_abapgit_git_operations~push.
* assumption: PUSH is done on top of the currently selected branch
DATA: ls_push TYPE zcl_abapgit_git_porcelain=>ty_push_result,
lv_text TYPE string.
IF ms_data-branch_name CP 'refs/tags*'.
lv_text = |You're working on a tag. Currently it's not |
&& |possible to push on tags. Consider creating a branch instead|.
zcx_abapgit_exception=>raise( lv_text ).
ENDIF.
IF ms_data-local_settings-block_commit = abap_true
AND zcl_abapgit_factory=>get_code_inspector( get_package( )
)->is_successful( ) = abap_false.
zcx_abapgit_exception=>raise( |A successful code inspection is required| ).
ENDIF.
handle_stage_ignore( io_stage ).
ls_push = zcl_abapgit_git_porcelain=>push(
is_comment = is_comment
io_stage = io_stage
iv_branch_name = get_branch_name( )
iv_url = get_url( )
iv_parent = get_sha1_remote( )
it_old_objects = get_objects( ) ).
set_objects( ls_push-new_objects ).
set_files_remote( ls_push-new_files ).
mv_branch = ls_push-branch.
update_local_checksums( ls_push-updated_files ).
reset_status( ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
18300,
62,
3575,
602,
764,
628,
220,
220,
220,
8355,
43429,
1546,
2251,
62,
1671,
3702,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
18300,
62,
3575,
602,
93,
17953,
62,
1671,
3702,
764,
198,
220,
220,
220,
8355,
43429,
1546,
4574,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
18300,
62,
3575,
602,
93,
14689,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
6371,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6371,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
6371,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
1671,
3702,
62,
3672,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
3672,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
1671,
3702,
62,
3672,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
6371,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
6371,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
1671,
3702,
62,
3672,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
1671,
3702,
62,
3672,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
1671,
3702,
62,
3672,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
26270,
16,
62,
47960,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
26270,
16,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
48205,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
48205,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
48205,
62,
926,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
16624,
62,
47960,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
468,
62,
47960,
62,
10459,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
17884,
62,
12001,
62,
42116,
5700,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
45079,
62,
48205,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
48205,
62,
926,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
1671,
3702,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
764,
628,
220,
220,
220,
337,
36252,
50,
5412,
62,
14247,
62,
46430,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
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,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
48205,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
48205,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
48205,
62,
926,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
21207,
62,
47960,
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,
2200,
16402,
62,
1340,
24027,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
21207,
62,
47960,
13,
628,
220,
220,
220,
42865,
25,
7649,
62,
33723,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
33723,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
31216,
220,
220,
220,
220,
41876,
1976,
565,
62,
397,
499,
18300,
62,
18300,
62,
1819,
5276,
391,
14804,
774,
62,
31216,
62,
20274,
13,
628,
220,
220,
220,
16876,
285,
85,
62,
25927,
62,
47960,
62,
5420,
3447,
796
] | [
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|
*"* use this source file for any type of declarations (class
*"* definitions, interfaces or type declarations) you need for
*"* components in the private section
CLASS lcl_dummy_content_handler DEFINITION.
PUBLIC SECTION.
INTERFACES if_adt_rest_content_handler.
METHODS constructor
IMPORTING
iv_launcher_xml TYPE xstring.
PRIVATE SECTION.
DATA mv_launcher_xml TYPE xstring.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
597,
2099,
286,
31713,
357,
4871,
198,
9,
1,
9,
17336,
11,
20314,
393,
2099,
31713,
8,
345,
761,
329,
198,
9,
1,
9,
6805,
287,
262,
2839,
2665,
198,
31631,
300,
565,
62,
67,
13513,
62,
11299,
62,
30281,
5550,
20032,
17941,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
324,
83,
62,
2118,
62,
11299,
62,
30281,
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,
38722,
2044,
62,
19875,
41876,
2124,
8841,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
285,
85,
62,
38722,
2044,
62,
19875,
41876,
2124,
8841,
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
] |
"! <p class="shorttext synchronized" lang="en">Validates tokens of icon field with tooltip</p>
CLASS zcl_dbbr_fe_icon_tt_tv DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_dbbr_token_validator .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_dbbr_fe_icon_tt_tv IMPLEMENTATION.
METHOD zif_dbbr_token_validator~validate.
DATA: lv_error_string TYPE string.
CASE cs_token-id.
WHEN 2.
" has to be an identifier
IF cs_token-type <> 'I'.
lv_error_string = |{ text-pos } 2 { text-e02 }|.
ELSEIF strlen( cs_token-str ) > 28.
lv_error_string = |{ TEXT-e08 }|.
ELSE.
cs_token-is_formula_field = abap_true.
ENDIF.
WHEN 3.
IF cs_token-type <> 'S'.
lv_error_string = |{ TEXT-pos } 3 { text-e01 }|.
ELSEIF NOT matches( val = cs_token-str regex = |['`].\{1,30\}['`]| ).
" validate if the string length is correct
lv_error_string = |{ TEXT-pos } 3 { text-e06 }|.
ENDIF.
WHEN OTHERS.
ENDCASE.
IF lv_error_string IS NOT INITIAL.
zcl_sat_message_helper=>split_string_for_message(
EXPORTING iv_string = lv_error_string
IMPORTING ev_msgv1 = DATA(lv_msgv1)
ev_msgv2 = DATA(lv_msgv2)
ev_msgv3 = DATA(lv_msgv3)
ev_msgv4 = DATA(lv_msgv4)
).
RAISE EXCEPTION TYPE zcx_dbbr_fe_stmnt_valid_exc
EXPORTING
textid = zcx_dbbr_fe_stmnt_valid_exc=>icon_def_token_error
invalid_row = cs_token-row
msgv1 = lv_msgv1
msgv2 = lv_msgv2
msgv3 = lv_msgv3
msgv4 = lv_msgv4.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
7762,
37051,
16326,
286,
7196,
2214,
351,
49472,
3556,
79,
29,
198,
31631,
1976,
565,
62,
9945,
1671,
62,
5036,
62,
4749,
62,
926,
62,
14981,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
9945,
1671,
62,
30001,
62,
12102,
1352,
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,
9945,
1671,
62,
5036,
62,
4749,
62,
926,
62,
14981,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1976,
361,
62,
9945,
1671,
62,
30001,
62,
12102,
1352,
93,
12102,
378,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
18224,
62,
8841,
41876,
4731,
13,
628,
220,
220,
220,
42001,
50115,
62,
30001,
12,
312,
13,
628,
220,
220,
220,
220,
220,
42099,
362,
13,
198,
220,
220,
220,
220,
220,
220,
220,
366,
468,
284,
307,
281,
27421,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
50115,
62,
30001,
12,
4906,
1279,
29,
705,
40,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
18224,
62,
8841,
796,
930,
90,
2420,
12,
1930,
1782,
362,
1391,
2420,
12,
68,
2999,
1782,
91,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
5064,
965,
11925,
7,
50115,
62,
30001,
12,
2536,
1267,
1875,
2579,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
18224,
62,
8841,
796,
930,
90,
40383,
12,
68,
2919,
1782,
91,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
50115,
62,
30001,
12,
271,
62,
687,
4712,
62,
3245,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
42099,
513,
13,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
50115,
62,
30001,
12,
4906,
1279,
29,
705,
50,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
18224,
62,
8841,
796,
930,
90,
40383,
12,
1930,
1782,
513,
1391,
2420,
12,
68,
486,
1782,
91,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
5064,
5626,
7466,
7,
1188,
796,
50115,
62,
30001,
12,
2536,
40364,
796,
930,
17816,
63,
4083,
59,
90,
16,
11,
1270,
59,
92,
17816,
63,
60,
91,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
26571,
611,
262,
4731,
4129,
318,
3376,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
18224,
62,
8841,
796,
930,
90,
40383,
12,
1930,
1782,
513,
1391,
2420,
12,
68,
3312,
1782,
91,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
42099,
440,
4221,
4877,
13,
198,
220,
220,
220,
23578,
34,
11159,
13,
628,
220,
220,
220,
16876,
300,
85,
62,
18224,
62,
8841,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
1976,
565,
62,
49720,
62,
20500,
62,
2978,
525,
14804,
35312,
62,
8841,
62,
1640,
62,
20500,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
21628,
62,
8841,
796,
300,
85,
62,
18224,
62,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
819,
62,
19662,
85,
16,
220,
796,
42865,
7,
6780,
62,
19662,
85,
16,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
19662,
85,
17,
220,
796,
42865,
7,
6780,
62,
19662,
85,
17,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
19662,
85,
18,
220,
796,
42865,
7,
6780,
62,
19662,
85,
18,
8,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
19662,
85,
19,
220,
796,
42865,
7,
6780,
62,
19662,
85,
19,
8,
198,
220,
220,
220,
220,
220,
6739,
198,
220,
220,
220,
220,
220,
17926,
24352,
7788,
42006,
2849,
41876,
1976,
66,
87,
62,
9945,
1671,
62,
5036,
62,
301,
76,
429,
62,
12102,
62,
41194,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
312,
220,
220,
220,
220,
220,
796,
1976,
66,
87,
62,
9945,
1671,
62,
5036,
62,
301,
76,
429,
62,
12102,
62,
41194,
14804,
4749,
62,
4299,
62,
30001,
62,
18224,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12515,
62,
808,
796,
50115,
62,
30001,
12,
808,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
85,
16,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
19662,
85,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
85,
17,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
19662,
85,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
85,
18,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
19662,
85,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
85,
19,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
19662,
85,
19,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*"* use this source file for the definition and implementation of
*"* local helper classes, interface definitions and type
*"* declarations
CLASS ltd_clean_code_exemption DEFINITION.
PUBLIC SECTION.
INTERFACES y_if_exemption.
ENDCLASS.
CLASS ltd_clean_code_exemption IMPLEMENTATION.
METHOD y_if_exemption~is_object_exempted.
RETURN.
ENDMETHOD.
ENDCLASS.
CLASS ltd_check_base DEFINITION INHERITING FROM y_check_base.
PUBLIC SECTION.
METHODS constructor.
METHODS get_ref_scan RETURNING VALUE(result) TYPE REF TO cl_ci_scan.
METHODS set_ref_scan IMPORTING ref_scan TYPE REF TO cl_ci_scan.
METHODS get_is_test_code IMPORTING statement TYPE sstmnt
RETURNING VALUE(result) TYPE abap_bool.
PROTECTED SECTION.
METHODS inspect_tokens REDEFINITION.
ENDCLASS.
CLASS ltd_check_base IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
ref_scan = y_code_pal_ref_scan_double=>get( VALUE #( ( 'REPORT y_example. ' ) ) ).
clean_code_manager = NEW y_clean_code_manager_double( me ).
clean_code_exemption_handler = NEW ltd_clean_code_exemption( ).
ENDMETHOD.
METHOD get_ref_scan.
result = ref_scan.
ENDMETHOD.
METHOD set_ref_scan.
me->ref_scan = ref_scan.
ENDMETHOD.
METHOD get_is_test_code.
result = is_test_code( statement ).
ENDMETHOD.
METHOD inspect_tokens.
RETURN.
ENDMETHOD.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
262,
6770,
290,
7822,
286,
198,
9,
1,
9,
1957,
31904,
6097,
11,
7071,
17336,
290,
2099,
198,
9,
1,
9,
31713,
198,
31631,
300,
8671,
62,
27773,
62,
8189,
62,
1069,
11221,
5550,
20032,
17941,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
331,
62,
361,
62,
1069,
11221,
13,
198,
198,
10619,
31631,
13,
628,
198,
31631,
300,
8671,
62,
27773,
62,
8189,
62,
1069,
11221,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
331,
62,
361,
62,
1069,
11221,
93,
271,
62,
15252,
62,
42679,
276,
13,
198,
220,
220,
220,
30826,
27064,
13,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
628,
198,
31631,
300,
8671,
62,
9122,
62,
8692,
5550,
20032,
17941,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
5420,
62,
35836,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
537,
62,
979,
62,
35836,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
5420,
62,
35836,
30023,
9863,
2751,
1006,
62,
35836,
41876,
4526,
37,
5390,
537,
62,
979,
62,
35836,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
271,
62,
9288,
62,
8189,
30023,
9863,
2751,
2643,
41876,
264,
301,
76,
429,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
450,
499,
62,
30388,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
628,
198,
10619,
31631,
13,
628,
198,
31631,
300,
8671,
62,
9122,
62,
8692,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
628,
220,
220,
220,
1006,
62,
35836,
796,
331,
62,
8189,
62,
18596,
62,
5420,
62,
35836,
62,
23352,
14804,
1136,
7,
26173,
8924,
1303,
7,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
1267,
6739,
628,
220,
220,
220,
3424,
62,
8189,
62,
37153,
796,
12682,
331,
62,
27773,
62,
8189,
62,
37153,
62,
23352,
7,
502,
6739,
198,
220,
220,
220,
3424,
62,
8189,
62,
1069,
11221,
62,
30281,
796,
12682,
300,
8671,
62,
27773,
62,
8189,
62,
1069,
11221,
7,
220,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
5420,
62,
35836,
13,
198,
220,
220,
220,
1255,
796,
1006,
62,
35836,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
900,
62,
5420,
62,
35836,
13,
198,
220,
220,
220,
502,
3784,
5420,
62,
35836,
796,
1006,
62,
35836,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
271,
62,
9288,
62,
8189,
13,
198,
220,
220,
220,
1255,
796,
318,
62,
9288,
62,
8189,
7,
2643,
6739,
198,
220,
23578,
49273,
13,
628,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ycl_abapgit_object_dial DEFINITION PUBLIC INHERITING FROM ycl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES yif_abapgit_object.
PRIVATE SECTION.
TYPES: BEGIN OF ty_dialog_module,
tdct TYPE tdct,
dia_pars TYPE STANDARD TABLE OF diapar
WITH NON-UNIQUE DEFAULT KEY,
END OF ty_dialog_module.
METHODS:
_read_tdct
RETURNING
VALUE(rs_tdct) TYPE tdct.
ENDCLASS.
CLASS YCL_ABAPGIT_OBJECT_DIAL IMPLEMENTATION.
METHOD yif_abapgit_object~changed_by.
rv_user = c_user_unknown.
ENDMETHOD.
METHOD yif_abapgit_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE ycl_abapgit_comparison_null.
ENDMETHOD.
METHOD yif_abapgit_object~delete.
DATA: ls_bcdata TYPE bdcdata,
lt_bcdata TYPE STANDARD TABLE OF bdcdata.
ls_bcdata-program = 'SAPMSDIA'.
ls_bcdata-dynpro = '1010'.
ls_bcdata-dynbegin = 'X'.
APPEND ls_bcdata TO lt_bcdata.
CLEAR ls_bcdata.
ls_bcdata-fnam = 'DIAPAR-DNAM'.
ls_bcdata-fval = ms_item-obj_name.
APPEND ls_bcdata TO lt_bcdata.
CLEAR ls_bcdata.
ls_bcdata-fnam = 'RS38L-PARM'.
ls_bcdata-fval = abap_true.
APPEND ls_bcdata TO lt_bcdata.
CLEAR ls_bcdata.
ls_bcdata-fnam = 'BDC_OKCODE'.
ls_bcdata-fval = '=DELF'.
APPEND ls_bcdata TO lt_bcdata.
CLEAR ls_bcdata.
ls_bcdata-program = 'SAPLSPO1'.
ls_bcdata-dynpro = '0100'.
ls_bcdata-dynbegin = 'X'.
APPEND ls_bcdata TO lt_bcdata.
CLEAR ls_bcdata.
ls_bcdata-fnam = 'BDC_OKCODE'.
ls_bcdata-fval = '=YES'.
APPEND ls_bcdata TO lt_bcdata.
ls_bcdata-program = 'SAPMSDIA'.
ls_bcdata-dynpro = '1010'.
ls_bcdata-dynbegin = 'X'.
APPEND ls_bcdata TO lt_bcdata.
CLEAR ls_bcdata.
ls_bcdata-fnam = 'BDC_OKCODE'.
ls_bcdata-fval = '=BACK'.
APPEND ls_bcdata TO lt_bcdata.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
EXPORTING
tcode = 'SE35'
mode_val = 'E'
TABLES
using_tab = lt_bcdata
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
ycx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SE35' ).
ENDIF.
ENDMETHOD.
METHOD yif_abapgit_object~deserialize.
DATA: ls_dialog_module TYPE ty_dialog_module.
io_xml->read(
EXPORTING
iv_name = 'DIAL'
CHANGING
cg_data = ls_dialog_module ).
CALL FUNCTION 'RS_DIALOG_CREATE'
EXPORTING
dialogname = ls_dialog_module-tdct-dnam
dynpronumber = ls_dialog_module-tdct-dynr
programname = ls_dialog_module-tdct-prog
suppress_corr_check = abap_false
* It seems that dia_par parameter doesn't do anything, but we can't omit it
* Parameters are inserted below
TABLES
dia_par = ls_dialog_module-dia_pars
EXCEPTIONS
dialog_already_exists = 1
invalid_name = 2
OTHERS = 3.
IF sy-subrc <> 0.
ycx_abapgit_exception=>raise( |Error deserializing dialogmodule { ms_item-obj_name }| ).
ENDIF.
" It seems that there's no API for diapar, therefore we manipulate it directly
INSERT diapar FROM TABLE ls_dialog_module-dia_pars.
ENDMETHOD.
METHOD yif_abapgit_object~exists.
DATA: ls_tdct TYPE tdct.
ls_tdct = _read_tdct( ).
rv_bool = boolc( ls_tdct IS NOT INITIAL ).
ENDMETHOD.
METHOD yif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD yif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD yif_abapgit_object~jump.
DATA: lv_objectname TYPE tdct-dnam.
lv_objectname = ms_item-obj_name.
CALL FUNCTION 'RS_DIALOG_SHOW'
EXPORTING
objectname = lv_objectname
type = 'VW'
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
ycx_abapgit_exception=>raise( |Error from RS_DIALOG_SHOW, DIAL| ).
ENDIF.
ENDMETHOD.
METHOD yif_abapgit_object~serialize.
DATA: ls_dialog_module TYPE ty_dialog_module.
ls_dialog_module-tdct = _read_tdct( ).
SELECT * FROM diapar
INTO TABLE ls_dialog_module-dia_pars
WHERE dnam = ls_dialog_module-tdct-dnam.
io_xml->add( iv_name = 'DIAL'
ig_data = ls_dialog_module ).
ENDMETHOD.
METHOD _read_tdct.
DATA: lv_dnam TYPE tdct-dnam.
lv_dnam = ms_item-obj_name.
SELECT SINGLE * FROM tdct
INTO rs_tdct
WHERE dnam = lv_dnam.
ENDMETHOD.
METHOD yif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
565,
62,
397,
499,
18300,
62,
15252,
62,
38969,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
331,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
331,
361,
62,
397,
499,
18300,
62,
15252,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
38969,
519,
62,
21412,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41560,
310,
220,
220,
220,
220,
41876,
41560,
310,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
288,
544,
62,
79,
945,
41876,
49053,
9795,
43679,
3963,
2566,
499,
283,
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,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
38969,
519,
62,
21412,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
4808,
961,
62,
8671,
310,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
8671,
310,
8,
41876,
41560,
310,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
575,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
35,
12576,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
331,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
628,
220,
220,
220,
374,
85,
62,
7220,
796,
269,
62,
7220,
62,
34680,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
331,
361,
62,
397,
499,
18300,
62,
15252,
93,
5589,
533,
62,
1462,
62,
47960,
62,
9641,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
785,
1845,
1653,
62,
20274,
41876,
331,
565,
62,
397,
499,
18300,
62,
785,
1845,
1653,
62,
8423,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
331,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
15630,
7890,
41876,
275,
17896,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
15630,
7890,
41876,
49053,
9795,
43679,
3963,
275,
17896,
7890,
13,
628,
220,
220,
220,
43979,
62,
15630,
7890,
12,
23065,
220,
796,
705,
50,
2969,
5653,
35,
3539,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
67,
2047,
1676,
220,
220,
796,
705,
8784,
15,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
67,
2047,
27471,
796,
705,
55,
4458,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15630,
7890,
5390,
300,
83,
62,
15630,
7890,
13,
628,
220,
220,
220,
30301,
1503,
43979,
62,
15630,
7890,
13,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
7402,
220,
220,
220,
220,
796,
705,
17931,
2969,
1503,
12,
35504,
2390,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
2100,
220,
220,
220,
220,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15630,
7890,
5390,
300,
83,
62,
15630,
7890,
13,
628,
220,
220,
220,
30301,
1503,
43979,
62,
15630,
7890,
13,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
7402,
220,
220,
220,
220,
796,
705,
6998,
2548,
43,
12,
27082,
44,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
2100,
220,
220,
220,
220,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15630,
7890,
5390,
300,
83,
62,
15630,
7890,
13,
628,
220,
220,
220,
30301,
1503,
43979,
62,
15630,
7890,
13,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
7402,
796,
705,
33,
9697,
62,
11380,
34,
16820,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
2100,
796,
705,
28,
35,
37738,
4458,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15630,
7890,
5390,
300,
83,
62,
15630,
7890,
13,
628,
220,
220,
220,
30301,
1503,
43979,
62,
15630,
7890,
13,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
23065,
220,
796,
705,
50,
2969,
43,
4303,
46,
16,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
67,
2047,
1676,
220,
220,
796,
705,
39103,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
67,
2047,
27471,
796,
705,
55,
4458,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15630,
7890,
5390,
300,
83,
62,
15630,
7890,
13,
628,
220,
220,
220,
30301,
1503,
43979,
62,
15630,
7890,
13,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
7402,
796,
705,
33,
9697,
62,
11380,
34,
16820,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
2100,
796,
705,
28,
43335,
4458,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15630,
7890,
5390,
300,
83,
62,
15630,
7890,
13,
628,
220,
220,
220,
43979,
62,
15630,
7890,
12,
23065,
220,
796,
705,
50,
2969,
5653,
35,
3539,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
67,
2047,
1676,
220,
220,
796,
705,
8784,
15,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
67,
2047,
27471,
796,
705,
55,
4458,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15630,
7890,
5390,
300,
83,
62,
15630,
7890,
13,
628,
220,
220,
220,
30301,
1503,
43979,
62,
15630,
7890,
13,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
7402,
796,
705,
33,
9697,
62,
11380,
34,
16820,
4458,
198,
220,
220,
220,
43979,
62,
15630,
7890,
12,
69,
2100,
796,
705,
28,
31098,
4458,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15630,
7890,
5390,
300,
83,
62,
15630,
7890,
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,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
256,
8189,
220,
220,
220,
220,
796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCX_EUI_EXCEPTION definition
public
inheriting from CX_STATIC_CHECK
final
create public .
public section.
*"* public components of class ZCX_EUI_EXCEPTION
*"* do not include other source files here!!!
type-pools ABAP .
interfaces IF_T100_MESSAGE .
constants:
begin of ZCX_EUI_EXCEPTION,
msgid type symsgid value 'ZEUI_MESSAGE',
msgno type symsgno value '000',
attr1 type scx_attrname value 'MSGV1',
attr2 type scx_attrname value 'MSGV2',
attr3 type scx_attrname value 'MSGV3',
attr4 type scx_attrname value 'MSGV4',
end of ZCX_EUI_EXCEPTION .
data MSGV1 type MSGV1 .
data MSGV2 type MSGV2 .
data MSGV3 type MSGV3 .
data MSGV4 type MSGV4 .
methods CONSTRUCTOR
importing
!TEXTID like IF_T100_MESSAGE=>T100KEY optional
!PREVIOUS like PREVIOUS optional
!MSGV1 type MSGV1 optional
!MSGV2 type MSGV2 optional
!MSGV3 type MSGV3 optional
!MSGV4 type MSGV4 optional .
class-methods RAISE_SYS_ERROR
importing
!IV_MESSAGE type CSEQUENCE optional
value(IO_ERROR) type ref to CX_ROOT optional
raising
ZCX_EUI_EXCEPTION .
class-methods RAISE_DUMP
importing
!IV_MESSAGE type CSEQUENCE optional
!IO_ERROR type ref to CX_ROOT optional .
protected section.
private section.
ENDCLASS.
CLASS ZCX_EUI_EXCEPTION IMPLEMENTATION.
method CONSTRUCTOR.
CALL METHOD SUPER->CONSTRUCTOR
EXPORTING
PREVIOUS = PREVIOUS
.
me->MSGV1 = MSGV1 .
me->MSGV2 = MSGV2 .
me->MSGV3 = MSGV3 .
me->MSGV4 = MSGV4 .
clear me->textid.
if textid is initial.
IF_T100_MESSAGE~T100KEY = ZCX_EUI_EXCEPTION .
else.
IF_T100_MESSAGE~T100KEY = TEXTID.
endif.
endmethod.
METHOD raise_dump.
DATA:
lv_message TYPE string.
IF io_error IS SUPPLIED.
lv_message = io_error->get_text( ).
ELSE.
lv_message = iv_message.
ENDIF.
MESSAGE lv_message TYPE 'S' DISPLAY LIKE 'E'.
MESSAGE lv_message TYPE 'X'.
ENDMETHOD.
METHOD raise_sys_error.
DATA:
BEGIN OF ls_string,
part1 TYPE symsgv,
part2 TYPE symsgv,
part3 TYPE symsgv,
part4 TYPE symsgv,
END OF ls_string.
DATA lv_incl TYPE syrepid.
DATA lv_line TYPE i.
DATA lv_text TYPE string.
" From string
IF iv_message IS NOT INITIAL.
ls_string = iv_message.
ENDIF.
WHILE ls_string IS INITIAL AND io_error IS NOT INITIAL.
ls_string = io_error->get_text( ).
" For debug
io_error->get_source_position(
IMPORTING
include_name = lv_incl
source_line = lv_line ).
IF ls_string IS NOT INITIAL.
lv_text = lv_line.
CONCATENATE ls_string lv_incl INTO ls_string SEPARATED BY ` - `.
ENDIF.
io_error = io_error->previous.
ENDWHILE.
" Any error based on system message
IF ls_string IS INITIAL.
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO ls_string.
ENDIF.
" Devided to blocks
RAISE EXCEPTION TYPE zcx_eui_exception
EXPORTING
textid = zcx_eui_exception=>zcx_eui_exception
msgv1 = ls_string-part1
msgv2 = ls_string-part2
msgv3 = ls_string-part3
msgv4 = ls_string-part4.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
327,
55,
62,
35744,
2149,
62,
50084,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
198,
9,
1,
9,
1171,
6805,
286,
1398,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
220,
2099,
12,
7742,
82,
9564,
2969,
764,
628,
220,
20314,
16876,
62,
51,
3064,
62,
44,
1546,
4090,
8264,
764,
628,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
21211,
10080,
62,
44,
1546,
4090,
8264,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
830,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
5653,
37094,
16,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
5653,
37094,
17,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
5653,
37094,
18,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
5653,
37094,
19,
3256,
198,
220,
220,
220,
886,
286,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
764,
198,
220,
1366,
6579,
37094,
16,
2099,
6579,
37094,
16,
764,
198,
220,
1366,
6579,
37094,
17,
2099,
6579,
37094,
17,
764,
198,
220,
1366,
6579,
37094,
18,
2099,
6579,
37094,
18,
764,
198,
220,
1366,
6579,
37094,
19,
2099,
6579,
37094,
19,
764,
628,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
32541,
2389,
588,
16876,
62,
51,
3064,
62,
44,
1546,
4090,
8264,
14804,
51,
3064,
20373,
11902,
198,
220,
220,
220,
220,
220,
5145,
46437,
12861,
20958,
588,
22814,
12861,
20958,
11902,
198,
220,
220,
220,
220,
220,
5145,
5653,
37094,
16,
2099,
6579,
37094,
16,
11902,
198,
220,
220,
220,
220,
220,
5145,
5653,
37094,
17,
2099,
6579,
37094,
17,
11902,
198,
220,
220,
220,
220,
220,
5145,
5653,
37094,
18,
2099,
6579,
37094,
18,
11902,
198,
220,
220,
220,
220,
220,
5145,
5653,
37094,
19,
2099,
6579,
37094,
19,
11902,
764,
198,
220,
1398,
12,
24396,
82,
17926,
24352,
62,
50,
16309,
62,
24908,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
44,
1546,
4090,
8264,
2099,
327,
5188,
10917,
18310,
11902,
198,
220,
220,
220,
220,
220,
1988,
7,
9399,
62,
24908,
8,
2099,
1006,
284,
327,
55,
62,
13252,
2394,
11902,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
764,
198,
220,
1398,
12,
24396,
82,
17926,
24352,
62,
35,
20476,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
44,
1546,
4090,
8264,
2099,
327,
5188,
10917,
18310,
11902,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
24908,
2099,
1006,
284,
327,
55,
62,
13252,
2394,
11902,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
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,
46437,
12861,
20958,
796,
22814,
12861,
20958,
198,
13,
198,
1326,
3784,
5653,
37094,
16,
796,
6579,
37094,
16,
764,
198,
1326,
3784,
5653,
37094,
17,
796,
6579,
37094,
17,
764,
198,
1326,
3784,
5653,
37094,
18,
796,
6579,
37094,
18,
764,
198,
1326,
3784,
5653,
37094,
19,
796,
6579,
37094,
19,
764,
198,
20063,
502,
3784,
5239,
312,
13,
198,
361,
2420,
312,
318,
4238,
13,
198,
220,
16876,
62,
51,
3064,
62,
44,
1546,
4090,
8264,
93,
51,
3064,
20373,
796,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
764,
198,
17772,
13,
198,
220,
16876,
62,
51,
3064,
62,
44,
1546,
4090,
8264,
93,
51,
3064,
20373,
796,
40383,
2389,
13,
198,
32088,
13,
198,
220,
886,
24396,
13,
628,
198,
49273,
5298,
62,
39455,
13,
198,
220,
42865,
25,
198,
220,
220,
220,
300,
85,
62,
20500,
41876,
4731,
13,
628,
220,
16876,
33245,
62,
18224,
3180,
19549,
49094,
13,
198,
220,
220,
220,
300,
85,
62,
20500,
796,
33245,
62,
18224,
3784,
1136,
62,
5239,
7,
6739,
198,
220,
17852,
5188,
13,
198,
220,
220,
220,
300,
85,
62,
20500,
796,
21628,
62,
20500,
13,
198,
220,
23578,
5064,
13,
628,
220,
337,
1546,
4090,
8264,
300,
85,
62,
20500,
41876,
705,
50,
6,
13954,
31519,
34178,
705,
36,
4458,
198,
220,
337,
1546,
4090,
8264,
300,
85,
62,
20500,
41876,
705,
55,
4458,
198,
10619,
49273,
13,
628,
198,
49273,
5298,
62,
17597,
62,
18224,
13,
198,
220,
42865,
25,
198,
220,
220,
220,
347,
43312,
3963,
43979,
62,
8841,
11,
198,
220,
220,
220,
220,
220,
636,
16,
41876,
827,
19662,
85,
11,
198,
220,
220,
220,
220,
220,
636,
17,
41876,
827,
19662,
85,
11,
198,
220,
220,
220,
220,
220,
636,
18,
41876,
827,
19662,
85,
11,
198,
220,
220,
220,
220,
220,
636,
19,
41876,
827,
19662,
85,
11,
198,
220,
220,
220,
23578,
3963,
43979,
62,
8841,
13,
198,
220,
42865,
300,
85,
62,
259,
565,
41876,
827,
7856,
312,
13,
198,
220,
42865,
300,
85,
62,
1370,
41876,
1312,
13,
198,
220,
42865,
300,
85,
62,
5239,
41876,
4731,
13,
628,
220,
366,
3574,
4731,
198,
220,
16876,
21628,
62,
20500,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
43979,
62,
8841,
796,
21628,
62,
20500,
13,
198,
220,
23578,
5064,
13,
628,
220,
7655,
41119,
43979,
62,
8841,
3180,
3268,
2043,
12576,
5357,
33245,
62,
18224,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
43979,
62,
8841,
796,
33245,
62,
18224,
3784,
1136,
62,
5239,
7,
6739,
628,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ZBC_009REP_TRANSPORT_LIGHT
*&
*&---------------------------------------------------------------------*
*& Light version of calling ZCTS browser to check customizing
*&
*&---------------------------------------------------------------------*
REPORT zbc_009rep_transport_light.
" номер НЕДЕБЛОКИРОВАННОЙ задачи в запросе, а не номер запроса
PARAMETERS: p_trinit TYPE trkorr OBLIGATORY.
START-OF-SELECTION.
DATA lo_transport_of_copies TYPE REF TO zif_bc009_tr_of_copies.
DATA lv_clsname TYPE seoclsname VALUE 'ZCL_BC009_TR_OF_COPIES_B'.
DATA lx_bc009 TYPE REF TO zcx_bc009_request.
TRY.
CREATE OBJECT lo_transport_of_copies TYPE (lv_clsname).
lo_transport_of_copies->create_toc_n_move2target( iv_trkorr = p_trinit ).
CATCH zcx_bc009_request INTO lx_bc009.
ENDTRY.
END-OF-SELECTION.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
2749,
62,
28694,
35316,
62,
5446,
1565,
4303,
9863,
62,
43,
9947,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
4401,
2196,
286,
4585,
1168,
4177,
50,
6444,
284,
2198,
2183,
2890,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
198,
2200,
15490,
1976,
15630,
62,
28694,
7856,
62,
7645,
634,
62,
2971,
13,
628,
198,
1,
12466,
121,
25443,
120,
16843,
21169,
12466,
251,
140,
243,
140,
242,
140,
243,
140,
239,
140,
249,
140,
252,
140,
248,
140,
246,
140,
254,
140,
252,
140,
240,
140,
238,
140,
251,
140,
251,
140,
252,
140,
247,
12466,
115,
16142,
43666,
16142,
141,
229,
18849,
12466,
110,
12466,
115,
16142,
140,
123,
21169,
15166,
21727,
16843,
11,
12466,
108,
12466,
121,
16843,
12466,
121,
25443,
120,
16843,
21169,
12466,
115,
16142,
140,
123,
21169,
15166,
21727,
16142,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
2213,
15003,
41876,
491,
74,
38890,
440,
9148,
3528,
1404,
15513,
13,
198,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
198,
220,
42865,
2376,
62,
7645,
634,
62,
1659,
62,
22163,
444,
41876,
4526,
37,
5390,
1976,
361,
62,
15630,
28694,
62,
2213,
62,
1659,
62,
22163,
444,
13,
198,
220,
42865,
300,
85,
62,
565,
82,
3672,
41876,
384,
420,
7278,
3672,
26173,
8924,
705,
57,
5097,
62,
2749,
28694,
62,
5446,
62,
19238,
62,
34,
3185,
11015,
62,
33,
4458,
198,
220,
42865,
300,
87,
62,
15630,
28694,
41876,
4526,
37,
5390,
1976,
66,
87,
62,
15630,
28694,
62,
25927,
13,
628,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
29244,
6158,
25334,
23680,
2376,
62,
7645,
634,
62,
1659,
62,
22163,
444,
41876,
357,
6780,
62,
565,
82,
3672,
737,
198,
220,
220,
220,
220,
220,
2376,
62,
7645,
634,
62,
1659,
62,
22163,
444,
3784,
17953,
62,
40301,
62,
77,
62,
21084,
17,
16793,
7,
21628,
62,
2213,
74,
38890,
796,
279,
62,
2213,
15003,
6739,
628,
220,
220,
220,
327,
11417,
1976,
66,
87,
62,
15630,
28694,
62,
25927,
39319,
300,
87,
62,
15630,
28694,
13,
628,
220,
23578,
40405,
13,
198,
198,
10619,
12,
19238,
12,
46506,
2849,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class-pool .
*"* class pool for class ZCL_ZGWSO_MPC_EXT
*"* local type definitions
include ZCL_ZGWSO_MPC_EXT=============ccdef.
*"* class ZCL_ZGWSO_MPC_EXT definition
*"* public declarations
include ZCL_ZGWSO_MPC_EXT=============cu.
*"* protected declarations
include ZCL_ZGWSO_MPC_EXT=============co.
*"* private declarations
include ZCL_ZGWSO_MPC_EXT=============ci.
endclass. "ZCL_ZGWSO_MPC_EXT definition
*"* macro definitions
include ZCL_ZGWSO_MPC_EXT=============ccmac.
*"* local class implementation
include ZCL_ZGWSO_MPC_EXT=============ccimp.
class ZCL_ZGWSO_MPC_EXT implementation.
*"* method's implementations
include methods.
endclass. "ZCL_ZGWSO_MPC_EXT implementation
| [
4871,
12,
7742,
764,
198,
9,
1,
9,
1398,
5933,
329,
1398,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
198,
198,
9,
1,
9,
1957,
2099,
17336,
198,
17256,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
25609,
28,
535,
4299,
13,
198,
198,
9,
1,
9,
1398,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
6770,
198,
9,
1,
9,
1171,
31713,
198,
220,
2291,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
25609,
28,
27399,
13,
198,
9,
1,
9,
6861,
31713,
198,
220,
2291,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
25609,
28,
1073,
13,
198,
9,
1,
9,
2839,
31713,
198,
220,
2291,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
25609,
28,
979,
13,
198,
437,
4871,
13,
366,
57,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
6770,
198,
198,
9,
1,
9,
15021,
17336,
198,
17256,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
25609,
28,
535,
20285,
13,
198,
9,
1,
9,
1957,
1398,
7822,
198,
17256,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
25609,
28,
535,
11011,
13,
198,
198,
4871,
1168,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
7822,
13,
198,
9,
1,
9,
2446,
338,
25504,
198,
220,
2291,
5050,
13,
198,
437,
4871,
13,
366,
57,
5097,
62,
57,
33191,
15821,
62,
44,
5662,
62,
13918,
7822,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE zif_abapgit_lxe_texts
PUBLIC .
TYPES:
BEGIN OF ty_lxe_i18n,
source_lang TYPE lxeisolang,
target_lang TYPE lxeisolang,
custmnr TYPE lxecustmnr,
objtype TYPE trobjtype,
objname TYPE lxeobjname,
text_pairs TYPE STANDARD TABLE OF lxe_pcx_s1 WITH DEFAULT KEY,
END OF ty_lxe_i18n .
TYPES:
ty_tlxe_i18n TYPE STANDARD TABLE OF ty_lxe_i18n WITH DEFAULT KEY .
METHODS serialize
IMPORTING
!iv_lxe_text_name TYPE string DEFAULT 'LXE_TEXTS'
!iv_object_type TYPE trobjtype
!iv_object_name TYPE sobj_name
!ii_xml TYPE REF TO zif_abapgit_xml_output
RAISING
zcx_abapgit_exception .
METHODS deserialize
IMPORTING
!iv_lxe_text_name TYPE string DEFAULT 'LXE_TEXTS'
!iv_object_type TYPE trobjtype OPTIONAL
!iv_object_name TYPE sobj_name OPTIONAL
!ii_xml TYPE REF TO zif_abapgit_xml_input
RAISING
zcx_abapgit_exception .
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
75,
27705,
62,
5239,
82,
198,
220,
44731,
764,
628,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
75,
27705,
62,
72,
1507,
77,
11,
198,
220,
220,
220,
220,
220,
2723,
62,
17204,
41876,
300,
27705,
30152,
648,
11,
198,
220,
220,
220,
220,
220,
2496,
62,
17204,
41876,
300,
27705,
30152,
648,
11,
198,
220,
220,
220,
220,
220,
9378,
10295,
81,
220,
220,
220,
220,
41876,
300,
87,
721,
436,
10295,
81,
11,
198,
220,
220,
220,
220,
220,
26181,
4906,
220,
220,
220,
220,
41876,
4161,
50007,
4906,
11,
198,
220,
220,
220,
220,
220,
26181,
3672,
220,
220,
220,
220,
41876,
300,
27705,
26801,
3672,
11,
198,
220,
220,
220,
220,
220,
2420,
62,
79,
3468,
220,
41876,
49053,
9795,
43679,
3963,
300,
27705,
62,
14751,
87,
62,
82,
16,
13315,
5550,
38865,
35374,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
75,
27705,
62,
72,
1507,
77,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
28781,
27705,
62,
72,
1507,
77,
41876,
49053,
9795,
43679,
3963,
1259,
62,
75,
27705,
62,
72,
1507,
77,
13315,
5550,
38865,
35374,
764,
628,
220,
337,
36252,
50,
11389,
1096,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
75,
27705,
62,
5239,
62,
3672,
41876,
4731,
5550,
38865,
705,
43,
55,
36,
62,
51,
6369,
4694,
6,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
15252,
62,
4906,
220,
220,
41876,
4161,
50007,
4906,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
15252,
62,
3672,
220,
220,
41876,
27355,
73,
62,
3672,
198,
220,
220,
220,
220,
220,
5145,
4178,
62,
19875,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
748,
48499,
1096,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
75,
27705,
62,
5239,
62,
3672,
41876,
4731,
5550,
38865,
705,
43,
55,
36,
62,
51,
6369,
4694,
6,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
15252,
62,
4906,
220,
220,
41876,
4161,
50007,
4906,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
15252,
62,
3672,
220,
220,
41876,
27355,
73,
62,
3672,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
4178,
62,
19875,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
10619,
41358,
49836,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_STYLES definition
public
final
create public .
*"* public components of class ZCL_EXCEL_STYLES
*"* do not include other source files here!!!
public section.
methods ADD
importing
!IP_STYLE type ref to ZCL_EXCEL_STYLE .
methods CLEAR .
methods CONSTRUCTOR .
methods GET
importing
!IP_INDEX type I
returning
value(EO_STYLE) type ref to ZCL_EXCEL_STYLE .
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_STYLE type ref to ZCL_EXCEL_STYLE .
methods SIZE
returning
value(EP_SIZE) type I .
methods REGISTER_NEW_STYLE
importing
!IO_STYLE type ref to ZCL_EXCEL_STYLE
returning
value(EP_STYLE_CODE) type I .
*"* protected components of class ZABAP_EXCEL_WORKSHEETS
*"* do not include other source files here!!!
protected section.
*"* private components of class ZCL_EXCEL_STYLES
*"* do not include other source files here!!!
private section.
data STYLES type ref to CL_OBJECT_COLLECTION .
ENDCLASS.
CLASS ZCL_EXCEL_STYLES IMPLEMENTATION.
method ADD.
styles->add( ip_style ).
endmethod.
method CLEAR.
styles->clear( ).
endmethod.
method CONSTRUCTOR.
CREATE OBJECT styles.
endmethod.
method GET.
eo_style ?= styles->if_object_collection~get( ip_index ).
endmethod.
method GET_ITERATOR.
eo_iterator ?= styles->if_object_collection~get_iterator( ).
endmethod.
method IS_EMPTY.
is_empty = styles->if_object_collection~is_empty( ).
endmethod.
method REGISTER_NEW_STYLE.
me->add( io_style ).
ep_style_code = me->size( ) - 1. "style count starts from 0
endmethod.
method REMOVE.
styles->remove( ip_style ).
endmethod.
method SIZE.
ep_size = styles->if_object_collection~size( ).
endmethod.
ENDCLASS.
| [
4871,
1168,
5097,
62,
6369,
34,
3698,
62,
2257,
56,
28378,
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,
2257,
56,
28378,
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,
4061,
62,
2257,
56,
2538,
2099,
1006,
284,
1168,
5097,
62,
6369,
34,
3698,
62,
2257,
56,
2538,
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,
2257,
56,
2538,
8,
2099,
1006,
284,
1168,
5097,
62,
6369,
34,
3698,
62,
2257,
56,
2538,
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,
2257,
56,
2538,
2099,
1006,
284,
1168,
5097,
62,
6369,
34,
3698,
62,
2257,
56,
2538,
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,
23337,
41517,
62,
13965,
62,
2257,
56,
2538,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
2257,
56,
2538,
2099,
1006,
284,
1168,
5097,
62,
6369,
34,
3698,
62,
2257,
56,
2538,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
8905,
62,
2257,
56,
2538,
62,
34,
16820,
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,
5097,
62,
6369,
34,
3698,
62,
2257,
56,
28378,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
19734,
2665,
13,
628,
220,
1366,
3563,
56,
28378,
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,
2257,
56,
28378,
30023,
2538,
10979,
6234,
13,
628,
198,
24396,
27841,
13,
628,
198,
220,
12186,
3784,
2860,
7,
20966,
62,
7635,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
30301,
1503,
13,
628,
198,
220,
12186,
3784,
20063,
7,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
7102,
46126,
1581,
13,
628,
198,
220,
29244,
6158,
25334,
23680,
12186,
13,
198,
220,
886,
24396,
13,
628,
198,
24396,
17151,
13,
628,
198,
220,
304,
78,
62,
7635,
5633,
28,
12186,
3784,
361,
62,
15252,
62,
43681,
93,
1136,
7,
20966,
62,
9630,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
17151,
62,
2043,
1137,
25633,
13,
628,
198,
220,
304,
78,
62,
48727,
5633,
28,
12186,
3784,
361,
62,
15252,
62,
43681,
93,
1136,
62,
48727,
7,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
3180,
62,
39494,
9936,
13,
628,
198,
220,
318,
62,
28920,
796,
12186,
3784,
361,
62,
15252,
62,
43681,
93,
271,
62,
28920,
7,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
23337,
41517,
62,
13965,
62,
2257,
56,
2538,
13,
628,
198,
220,
502,
3784,
2860,
7,
33245,
62,
7635,
6739,
198,
220,
2462,
62,
7635,
62,
8189,
796,
502,
3784,
7857,
7,
1267,
532,
352,
13,
366,
7635,
954,
4940,
422,
657,
198,
220,
886,
24396,
13,
628,
198,
24396,
22657,
46,
6089,
13,
628,
198,
220,
12186,
3784,
28956,
7,
20966,
62,
7635,
6739,
198,
220,
886,
24396,
13,
628,
198,
24396,
311,
35400,
13,
628,
198,
220,
2462,
62,
7857,
796,
12186,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*&---------------------------------------------------------------------*
*& Include /USI/BAL_DEMO_02_I01
*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Module EXIT_COMMAND_0100 INPUT
*&---------------------------------------------------------------------*
*& PAI for screen 0100 (Popup 'Maintain task text')
*&---------------------------------------------------------------------*
MODULE exit_command_0100 INPUT.
lcl_popup_maintain_task=>singleton->on_exit_command( ).
ENDMODULE.
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0100 INPUT
*&---------------------------------------------------------------------*
*& PAI for screen 0100 (Popup 'Maintain task text')
*&---------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
lcl_popup_maintain_task=>singleton->on_user_command( ).
ENDMODULE.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1220,
2937,
40,
14,
33,
1847,
62,
39429,
46,
62,
2999,
62,
40,
486,
198,
9,
5,
10097,
30934,
9,
198,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
19937,
220,
7788,
2043,
62,
9858,
44,
6981,
62,
39103,
220,
3268,
30076,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
8147,
40,
329,
3159,
5534,
405,
357,
16979,
929,
705,
44,
32725,
4876,
2420,
11537,
198,
9,
5,
10097,
30934,
9,
198,
33365,
24212,
8420,
62,
21812,
62,
39103,
3268,
30076,
13,
198,
220,
300,
565,
62,
12924,
929,
62,
76,
32725,
62,
35943,
14804,
12215,
10565,
3784,
261,
62,
37023,
62,
21812,
7,
6739,
198,
10619,
33365,
24212,
13,
198,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
19937,
220,
1294,
1137,
62,
9858,
44,
6981,
62,
39103,
220,
3268,
30076,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
8147,
40,
329,
3159,
5534,
405,
357,
16979,
929,
705,
44,
32725,
4876,
2420,
11537,
198,
9,
5,
10097,
30934,
9,
198,
33365,
24212,
2836,
62,
21812,
62,
39103,
3268,
30076,
13,
198,
220,
300,
565,
62,
12924,
929,
62,
76,
32725,
62,
35943,
14804,
12215,
10565,
3784,
261,
62,
7220,
62,
21812,
7,
6739,
198,
10619,
33365,
24212,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 = 0 ) ).
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.
inject_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' METHODS meth1 IMPORTING param1 TYPE i. ' )
( ' METHODS meth2 IMPORTING param1 TYPE string. ' )
( ' METHODS meth3 IMPORTING param1 TYPE i ' )
( ' param2 TYPE string. ' )
( ' PROTECTED SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example IMPLEMENTATION. ' )
( ' METHOD meth1. ' )
( ' ENDMETHOD. ' )
( ' METHOD meth2. ' )
( ' ENDMETHOD. ' )
( ' METHOD meth3. ' )
( ' ENDMETHOD. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
METHOD set_data_for_error.
inject_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' METHODS meth1 IMPORTING param1 TYPE i ' )
( ' param2 TYPE string OPTIONAL. ' )
( ' METHODS meth2 IMPORTING param1 TYPE string OPTIONAL. ' )
( ' PROTECTED SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example IMPLEMENTATION. ' )
( ' METHOD meth1. ' )
( ' ENDMETHOD. ' )
( ' METHOD meth2. ' )
( ' ENDMETHOD. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
METHOD set_pseudo_comment_ok.
inject_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' METHODS meth1 IMPORTING param1 TYPE i ' )
( ' param2 TYPE string OPTIONAL. "#EC OPTL_PARAM ' )
( ' METHODS meth2 IMPORTING param1 TYPE string OPTIONAL. "#EC OPTL_PARAM ' )
( ' PROTECTED SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example IMPLEMENTATION. ' )
( ' METHOD meth1. ' )
( ' ENDMETHOD. ' )
( ' METHOD meth2. ' )
( ' 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_optional_parameters.
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_optional_parameters DEFINITION LOCAL FRIENDS local_test_class.
CLASS local_test_class IMPLEMENTATION.
METHOD setup.
cut = NEW y_check_optional_parameters( ).
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( 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( act = cut->statistics->get_number_errors( )
exp = err_cnt ).
ENDMETHOD.
METHOD assert_pseudo_comments.
cl_abap_unit_assert=>assert_equals( 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,
657,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
93,
9948,
3129,
378,
62,
26801,
62,
38793,
62,
4475,
13,
198,
220,
220,
220,
1255,
796,
705,
23344,
486,
486,
4458,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
5550,
20032,
17941,
3268,
16879,
2043,
2751,
16034,
331,
62,
35836,
62,
37153,
62,
23352,
7473,
43001,
2751,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7890,
62,
1640,
62,
482,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7890,
62,
1640,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7752,
12003,
62,
23893,
62,
482,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
482,
13,
198,
220,
220,
220,
8677,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
44731,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
337,
36252,
50,
11248,
16,
30023,
9863,
2751,
5772,
16,
41876,
1312,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
337,
36252,
50,
11248,
17,
30023,
9863,
2751,
5772,
16,
41876,
4731,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
337,
36252,
50,
11248,
18,
30023,
9863,
2751,
5772,
16,
41876,
1312,
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,
5772,
17,
41876,
4731,
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,
23578,
31631,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
30023,
2538,
10979,
6234,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
337,
36252,
11248,
16,
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,
11248,
17,
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,
11248,
18,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
23578,
49273,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
198,
220,
220,
220,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
18224,
13,
198,
220,
220,
220,
8677,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
44731,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
337,
36252,
50,
11248,
16,
30023,
9863,
2751,
5772,
16,
41876,
1312,
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,
5772,
17,
41876,
4731,
39852,
2849,
1847,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
337,
36252,
50,
11248,
17,
30023,
9863,
2751,
5772,
16,
41876,
4731,
39852,
2849,
1847,
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,
23578,
31631,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
30023,
2538,
10979,
6234,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
337,
36252,
11248,
16,
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,
11248,
17,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
23578,
49273,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
198,
220,
220,
220,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
900,
62,
7752,
12003,
62,
23893,
62,
482,
13,
198,
220,
220,
220,
8677,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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LIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES: if_apack_manifest.
METHODS: constructor.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_yy_apack_manifest IMPLEMENTATION.
METHOD constructor.
if_apack_manifest~descriptor-group_id = 'sap.com'.
if_apack_manifest~descriptor-artifact_id = 'abap-platform-yy'.
if_apack_manifest~descriptor-version = '0.2.1'.
if_apack_manifest~descriptor-git_url = 'https://github.com/SAP/abap-platform-yy.git'.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
22556,
62,
499,
441,
62,
805,
8409,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
611,
62,
499,
441,
62,
805,
8409,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
23772,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
22556,
62,
499,
441,
62,
805,
8409,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
611,
62,
499,
441,
62,
805,
8409,
93,
20147,
1968,
273,
12,
8094,
62,
312,
796,
705,
82,
499,
13,
785,
4458,
198,
220,
220,
220,
611,
62,
499,
441,
62,
805,
8409,
93,
20147,
1968,
273,
12,
433,
29660,
62,
312,
796,
705,
397,
499,
12,
24254,
12,
22556,
4458,
198,
220,
220,
220,
611,
62,
499,
441,
62,
805,
8409,
93,
20147,
1968,
273,
12,
9641,
796,
705,
15,
13,
17,
13,
16,
4458,
198,
220,
220,
220,
611,
62,
499,
441,
62,
805,
8409,
93,
20147,
1968,
273,
12,
18300,
62,
6371,
796,
705,
5450,
1378,
12567,
13,
785,
14,
50,
2969,
14,
397,
499,
12,
24254,
12,
22556,
13,
18300,
4458,
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
] |
class ZCL_GTT_STS_PE_FO_FILLER definition
public
inheriting from ZCL_GTT_STS_PE_FILLER
create public .
public section.
methods ZIF_GTT_STS_PE_FILLER~GET_PLANNED_EVENTS
redefinition .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_GTT_STS_PE_FO_FILLER IMPLEMENTATION.
METHOD zif_gtt_sts_pe_filler~get_planned_events.
DATA lv_counter TYPE /saptrx/seq_num.
get_data_for_planned_event(
EXPORTING
is_app_objects = is_app_objects
IMPORTING
ev_tor_id = DATA(lv_tor_id)
et_stop = DATA(lt_stop)
et_loc_address = DATA(lt_loc_address)
et_stop_points = DATA(lt_stop_points) ).
shp_arrival(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
decoupling(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
unload_start(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
unload_end(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
pod(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
load_start(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
load_end(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
coupling(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
shp_departure(
EXPORTING
iv_tor_id = lv_tor_id
it_stop = lt_stop
it_loc_addr = lt_loc_address
it_stop_points = lt_stop_points
is_app_objects = is_app_objects
CHANGING
ct_expeventdata = ct_expeventdata ).
SORT ct_expeventdata BY locid2 ASCENDING.
lv_counter = 1.
LOOP AT ct_expeventdata ASSIGNING FIELD-SYMBOL(<ls_expeventdata>).
<ls_expeventdata>-milestonenum = lv_counter.
lv_counter += 1.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
38,
15751,
62,
2257,
50,
62,
11401,
62,
6080,
62,
37,
8267,
1137,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
5097,
62,
38,
15751,
62,
2257,
50,
62,
11401,
62,
37,
8267,
1137,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
5050,
1168,
5064,
62,
38,
15751,
62,
2257,
50,
62,
11401,
62,
37,
8267,
1137,
93,
18851,
62,
6489,
22846,
1961,
62,
20114,
15365,
198,
220,
220,
220,
34087,
17750,
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,
38,
15751,
62,
2257,
50,
62,
11401,
62,
6080,
62,
37,
8267,
1137,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
70,
926,
62,
6448,
62,
431,
62,
69,
4665,
93,
1136,
62,
36800,
62,
31534,
13,
628,
220,
220,
220,
42865,
300,
85,
62,
24588,
41876,
1220,
82,
2373,
40914,
14,
41068,
62,
22510,
13,
628,
220,
220,
220,
651,
62,
7890,
62,
1640,
62,
36800,
62,
15596,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
1324,
62,
48205,
796,
318,
62,
1324,
62,
48205,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
819,
62,
13165,
62,
312,
220,
220,
220,
220,
220,
796,
42865,
7,
6780,
62,
13165,
62,
312,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
11338,
220,
220,
220,
220,
220,
220,
220,
796,
42865,
7,
2528,
62,
11338,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
17946,
62,
21975,
796,
42865,
7,
2528,
62,
17946,
62,
21975,
8,
198,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
11338,
62,
13033,
796,
42865,
7,
2528,
62,
11338,
62,
13033,
8,
6739,
628,
220,
220,
220,
427,
79,
62,
283,
43171,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
13165,
62,
312,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
13165,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
11338,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
11338,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
17946,
62,
29851,
220,
220,
220,
220,
796,
300,
83,
62,
17946,
62,
21975,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
11338,
62,
13033,
220,
796,
300,
83,
62,
11338,
62,
13033,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
1324,
62,
48205,
220,
796,
318,
62,
1324,
62,
48205,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
1069,
431,
1151,
7890,
796,
269,
83,
62,
1069,
431,
1151,
7890,
6739,
628,
220,
220,
220,
875,
280,
11347,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
13165,
62,
312,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
13165,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
11338,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
11338,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
17946,
62,
29851,
220,
220,
220,
220,
796,
300,
83,
62,
17946,
62,
21975,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
11338,
62,
13033,
220,
796,
300,
83,
62,
11338,
62,
13033,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
1324,
62,
48205,
220,
796,
318,
62,
1324,
62,
48205,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
1069,
431,
1151,
7890,
796,
269,
83,
62,
1069,
431,
1151,
7890,
6739,
628,
220,
220,
220,
555,
2220,
62,
9688,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
13165,
62,
312,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
13165,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
11338,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
11338,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
17946,
62,
29851,
220,
220,
220,
220,
796,
300,
83,
62,
17946,
62,
21975,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
11338,
62,
13033,
220,
796,
300,
83,
62,
11338,
62,
13033,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
1324,
62,
48205,
220,
796,
318,
62,
1324,
62,
48205,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
1069,
431,
1151,
7890,
796,
269,
83,
62,
1069,
431,
1151,
7890,
6739,
628,
220,
220,
220,
555,
2220,
62,
437,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
13165,
62,
312,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
13165,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
11338,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
11338,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
17946,
62,
29851,
220,
220,
220,
220,
796,
300,
83,
62,
17946,
62,
21975,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
11338,
62,
13033,
220,
796,
300,
83,
62,
11338,
62,
13033,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
1324,
62,
48205,
220,
796,
318,
62,
1324,
62,
48205,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
1069,
431,
1151,
7890,
796,
269,
83,
62,
1069,
431,
1151,
7890,
6739,
628,
220,
220,
220,
24573,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
13165,
62,
312,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
13165,
62,
312,
198,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 DEFINITION PUBLIC ABSTRACT CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES:
zif_abapgit_gui_page.
CONSTANTS:
BEGIN OF c_global_page_action,
showhotkeys TYPE string VALUE `showHotkeys` ##NO_TEXT,
END OF c_global_page_action.
CLASS-METHODS:
get_hotkey_actions
RETURNING
VALUE(rt_hotkey_actions) TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_action.
PROTECTED SECTION.
TYPES: BEGIN OF ty_control,
redirect_url TYPE string,
page_title TYPE string,
page_menu TYPE REF TO zcl_abapgit_html_toolbar,
END OF ty_control.
DATA: ms_control TYPE ty_control.
METHODS render_content ABSTRACT
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception.
METHODS scripts
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception.
PRIVATE SECTION.
METHODS html_head
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
METHODS title
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
METHODS footer
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
METHODS redirect
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
METHODS link_hints
IMPORTING
io_html TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception.
METHODS add_hotkeys
IMPORTING
io_html TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception.
METHODS render_hotkey_overview
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception.
METHODS call_browser
IMPORTING
iv_url TYPE csequence
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS zcl_abapgit_gui_page IMPLEMENTATION.
METHOD add_hotkeys.
DATA: lv_json TYPE string,
lt_hotkeys TYPE zif_abapgit_definitions=>tty_hotkey.
FIELD-SYMBOLS: <ls_hotkey> TYPE zif_abapgit_definitions=>ty_hotkey.
lt_hotkeys = zcl_abapgit_hotkeys=>get_relevant_hotkeys_for_page( me ).
lv_json = `{`.
LOOP AT lt_hotkeys ASSIGNING <ls_hotkey>.
IF sy-tabix > 1.
lv_json = lv_json && |,|.
ENDIF.
lv_json = lv_json && | "{ <ls_hotkey>-sequence }" : "{ <ls_hotkey>-action }" |.
ENDLOOP.
lv_json = lv_json && `}`.
io_html->add( |setKeyBindings({ lv_json });| ).
ENDMETHOD.
METHOD footer.
CREATE OBJECT ro_html.
ro_html->add( '<div id="footer">' ). "#EC NOTEXT
ro_html->add( '<img src="img/logo" alt="logo">' ). "#EC NOTEXT
ro_html->add( '<table class="w100"><tr>' ). "#EC NOTEXT
ro_html->add( '<td class="w40"></td>' ). "#EC NOTEXT
ro_html->add( |<td><span class="version">{ zif_abapgit_version=>gc_abap_version }</span></td>| ). "#EC NOTEXT
ro_html->add( '<td id="debug-output" class="w40"></td>' ). "#EC NOTEXT
ro_html->add( '</tr></table>' ). "#EC NOTEXT
ro_html->add( '</div>' ). "#EC NOTEXT
ENDMETHOD. "footer
METHOD get_hotkey_actions.
" these are the global shortcuts active on all pages
DATA: ls_hotkey_action LIKE LINE OF rt_hotkey_actions.
ls_hotkey_action-name = |Global: Show hotkeys|.
ls_hotkey_action-action = c_global_page_action-showhotkeys.
ls_hotkey_action-default_hotkey = |?|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ENDMETHOD.
METHOD html_head.
CREATE OBJECT ro_html.
ro_html->add( '<head>' ). "#EC NOTEXT
ro_html->add( '<meta http-equiv="content-type" content="text/html; charset=utf-8">' ). "#EC NOTEXT
ro_html->add( '<meta http-equiv="X-UA-Compatible" content="IE=11,10,9,8" />' ). "#EC NOTEXT
ro_html->add( '<title>abapGit</title>' ). "#EC NOTEXT
ro_html->add( '<link rel="stylesheet" type="text/css" href="css/common.css">' ).
ro_html->add( '<script type="text/javascript" src="js/common.js"></script>' ). "#EC NOTEXT
ro_html->add( zcl_abapgit_gui_asset_manager=>get_webfont_link( ) ). " Web fonts
ro_html->add( '</head>' ). "#EC NOTEXT
ENDMETHOD. "html_head
METHOD link_hints.
DATA: lo_settings TYPE REF TO zcl_abapgit_settings,
lv_link_hint_key TYPE char01,
lv_background_color TYPE string.
lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ).
lv_link_hint_key = lo_settings->get_link_hint_key( ).
lv_background_color = lo_settings->get_link_hint_background_color( ).
IF lo_settings->get_link_hints_enabled( ) = abap_true
AND lv_link_hint_key IS NOT INITIAL.
io_html->add( |setLinkHints("{ lv_link_hint_key }","{ lv_background_color }");| ).
io_html->add( |setInitialFocusWithQuerySelector('a span', true);| ).
io_html->add( |enableArrowListNavigation();| ).
ENDIF.
ENDMETHOD.
METHOD redirect.
CREATE OBJECT ro_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="refresh" content="0; url={
ms_control-redirect_url }">| ). "#EC NOTEXT
ro_html->add( '</head>' ). "#EC NOTEXT
ro_html->add( '</html>' ). "#EC NOTEXT
ENDMETHOD.
METHOD render_hotkey_overview.
CREATE OBJECT ro_html.
ro_html->add( zcl_abapgit_gui_chunk_lib=>render_hotkey_overview( ) ).
ENDMETHOD.
METHOD scripts.
CREATE OBJECT ro_html.
link_hints( ro_html ).
add_hotkeys( ro_html ).
ENDMETHOD. "scripts
METHOD title.
CREATE OBJECT ro_html.
ro_html->add( '<div id="header">' ). "#EC NOTEXT
ro_html->add( '<table class="w100"><tr>' ). "#EC NOTEXT
ro_html->add( |<td class="logo">{
zcl_abapgit_html=>a( iv_txt = '<img src="img/logo" alt="logo">'
iv_id = 'abapGitLogo'
iv_act = zif_abapgit_definitions=>c_action-abapgit_home )
}</td>| ). "#EC NOTEXT
ro_html->add( |<td><span class="page_title"> ► {
ms_control-page_title
}</span></td>| ). "#EC NOTEXT
IF ms_control-page_menu IS BOUND.
ro_html->add( '<td class="right">' ). "#EC NOTEXT
ro_html->add( ms_control-page_menu->render( iv_right = abap_true ) ).
ro_html->add( '</td>' ). "#EC NOTEXT
ENDIF.
ro_html->add( '</tr></table>' ). "#EC NOTEXT
ro_html->add( '</div>' ). "#EC NOTEXT
ENDMETHOD. "render page title
METHOD zif_abapgit_gui_page~on_event.
CASE iv_action.
WHEN zif_abapgit_definitions=>c_action-url.
call_browser( iv_getdata ).
ev_state = zif_abapgit_definitions=>c_event_state-no_more_act.
WHEN OTHERS.
ev_state = zif_abapgit_definitions=>c_event_state-not_handled.
ENDCASE.
ENDMETHOD. "lif_gui_page~on_event
METHOD zif_abapgit_gui_page~render.
DATA lo_script TYPE REF TO zcl_abapgit_html.
" Redirect
IF ms_control-redirect_url IS NOT INITIAL.
ro_html = redirect( ).
RETURN.
ENDIF.
" Real page
CREATE OBJECT ro_html.
ro_html->add( '<!DOCTYPE html>' ). "#EC NOTEXT
ro_html->add( '<html>' ). "#EC NOTEXT
ro_html->add( html_head( ) ).
ro_html->add( '<body>' ). "#EC NOTEXT
ro_html->add( title( ) ).
ro_html->add( render_hotkey_overview( ) ).
ro_html->add( render_content( ) ).
ro_html->add( footer( ) ).
ro_html->add( '</body>' ). "#EC NOTEXT
lo_script = scripts( ).
IF lo_script IS BOUND AND lo_script->is_empty( ) = abap_false.
ro_html->add( '<script type="text/javascript">' ).
ro_html->add( lo_script ).
ro_html->add( 'confirmInitialized();' ).
ro_html->add( '</script>' ).
ENDIF.
ro_html->add( '</html>' ). "#EC NOTEXT
ENDMETHOD. " lif_gui_page~render.
METHOD call_browser.
cl_gui_frontend_services=>execute(
EXPORTING
document = |{ iv_url }|
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed = 8
not_supported_by_gui = 9
OTHERS = 10 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
5550,
20032,
17941,
44731,
9564,
18601,
10659,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
20541,
62,
7700,
62,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
905,
8940,
13083,
41876,
4731,
26173,
8924,
4600,
12860,
21352,
13083,
63,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
20541,
62,
7700,
62,
2673,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
8940,
2539,
62,
4658,
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,
2673,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
13716,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18941,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2443,
62,
7839,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2443,
62,
26272,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
62,
25981,
5657,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
220,
1259,
62,
13716,
13,
628,
220,
220,
220,
42865,
25,
13845,
62,
13716,
41876,
1259,
62,
13716,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
11299,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
14750,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
27711,
62,
2256,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
13,
628,
220,
220,
220,
337,
36252,
50,
3670,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
13,
628,
220,
220,
220,
337,
36252,
50,
2366,
263,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
13,
628,
220,
220,
220,
337,
36252,
50,
18941,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
13,
628,
220,
220,
220,
337,
36252,
50,
2792,
62,
71,
29503,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
6494,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
751,
62,
8940,
13083,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
6494,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
8940,
2539,
62,
2502,
1177,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
869,
62,
40259,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
6371,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
751,
62,
8940,
13083,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
17752,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
8940,
13083,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
42852,
62,
8940,
2539,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
8940,
2539,
29,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
8940,
2539,
13,
628,
220,
220,
220,
300,
83,
62,
8940,
13083,
796,
1976,
565,
62,
397,
499,
18300,
62,
8940,
13083,
14804,
1136,
62,
49659,
62,
8940,
13083
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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62,
10943,
34,
1404,
1677,
6158,
59,
5188,
25,
10619,
59,
36,
40,
198,
1677,
39,
20940,
12529,
657,
1168,
35,
3185,
62,
5097,
50,
62,
1677,
39,
62,
34,
16820,
13,
198,
9,
198,
220,
39962,
1404,
1677,
6158,
8696,
62,
11782,
9598,
8363,
62,
18601,
2751,
18,
39319,
8696,
62,
11782,
9598,
7946,
27082,
11617,
11050,
37253,
13,
198,
10619,
1677,
39,
20940,
12529,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class zbp_i_khr_bid definition public abstract final for behavior of zi_khr_auction.
endclass.
class zbp_i_khr_bid implementation.
endclass.
| [
4871,
1976,
46583,
62,
72,
62,
74,
11840,
62,
14065,
6770,
1171,
12531,
2457,
329,
4069,
286,
1976,
72,
62,
74,
11840,
62,
559,
596,
13,
198,
437,
4871,
13,
198,
198,
4871,
1976,
46583,
62,
72,
62,
74,
11840,
62,
14065,
7822,
13,
198,
437,
4871,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_page_repo_over DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_component
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_renderable .
DATA mv_order_by TYPE string READ-ONLY .
METHODS constructor
RAISING
zcx_abapgit_exception .
METHODS set_order_by
IMPORTING
!iv_order_by TYPE string .
METHODS set_order_direction
IMPORTING
!iv_order_descending TYPE abap_bool .
METHODS set_filter
IMPORTING
!it_postdata TYPE zif_abapgit_html_viewer=>ty_post_data .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_overview,
favorite TYPE string,
"! True for offline, false for online repo
type TYPE string,
key TYPE zif_abapgit_persistence=>ty_value,
name TYPE string,
url TYPE string,
package TYPE devclass,
branch TYPE string,
created_by TYPE xubname,
created_at TYPE string,
deserialized_by TYPE xubname,
deserialized_at TYPE string,
write_protected TYPE abap_bool,
END OF ty_overview,
ty_overviews TYPE STANDARD TABLE OF ty_overview
WITH NON-UNIQUE DEFAULT KEY.
CONSTANTS:
BEGIN OF c_action,
select TYPE string VALUE 'select',
apply_filter TYPE string VALUE 'apply_filter',
END OF c_action .
DATA: mv_order_descending TYPE abap_bool,
mv_filter TYPE string,
mv_time_zone TYPE timezone,
mt_col_spec TYPE zif_abapgit_definitions=>ty_col_spec_tt,
mt_overview TYPE ty_overviews.
METHODS: render_text_input
IMPORTING iv_name TYPE string
iv_label TYPE string
iv_value TYPE string OPTIONAL
iv_max_length TYPE string OPTIONAL
RETURNING VALUE(ri_html) TYPE REF TO zif_abapgit_html,
apply_filter
CHANGING
ct_overview TYPE ty_overviews,
map_repo_list_to_overview
RETURNING
VALUE(rt_overview) TYPE ty_overviews
RAISING
zcx_abapgit_exception,
render_table_header
IMPORTING
ii_html TYPE REF TO zif_abapgit_html,
render_table
IMPORTING
ii_html TYPE REF TO zif_abapgit_html
it_overview TYPE ty_overviews
RAISING
zcx_abapgit_exception,
render_table_body
IMPORTING
ii_html TYPE REF TO zif_abapgit_html
it_overview TYPE ty_overviews
RAISING
zcx_abapgit_exception,
render_header_bar
IMPORTING
ii_html TYPE REF TO zif_abapgit_html,
apply_order_by
CHANGING ct_overview TYPE ty_overviews,
_add_column
IMPORTING
iv_tech_name TYPE string OPTIONAL
iv_display_name TYPE string OPTIONAL
iv_css_class TYPE string OPTIONAL
iv_add_tz TYPE abap_bool OPTIONAL
iv_title TYPE string OPTIONAL
iv_allow_order_by TYPE any OPTIONAL.
METHODS render_scripts
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_OVER IMPLEMENTATION.
METHOD apply_filter.
IF mv_filter IS NOT INITIAL.
DELETE ct_overview WHERE key NS mv_filter
AND name NS mv_filter
AND url NS mv_filter
AND package NS mv_filter
AND branch NS mv_filter
AND created_by NS mv_filter
AND created_at NS mv_filter
AND deserialized_by NS mv_filter
AND deserialized_at NS mv_filter.
ENDIF.
ENDMETHOD.
METHOD apply_order_by.
DATA:
lt_sort TYPE abap_sortorder_tab,
ls_sort LIKE LINE OF lt_sort.
ls_sort-name = 'FAVORITE'.
ls_sort-descending = abap_true.
ls_sort-astext = abap_true.
INSERT ls_sort INTO TABLE lt_sort.
IF mv_order_by IS NOT INITIAL.
ls_sort-name = mv_order_by.
ls_sort-descending = mv_order_descending.
ls_sort-astext = abap_true.
INSERT ls_sort INTO TABLE lt_sort.
ENDIF.
SORT ct_overview BY (lt_sort).
ENDMETHOD.
METHOD constructor.
super->constructor( ).
mv_order_by = |NAME|.
CALL FUNCTION 'GET_SYSTEM_TIMEZONE'
IMPORTING
timezone = mv_time_zone
EXCEPTIONS
customizing_missing = 1
OTHERS = 2.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD map_repo_list_to_overview.
DATA: ls_overview LIKE LINE OF rt_overview,
lv_date TYPE d,
lv_time TYPE t,
lt_repo_obj_list TYPE zif_abapgit_repo_srv=>ty_repo_list.
FIELD-SYMBOLS <ls_repo> LIKE LINE OF lt_repo_obj_list.
lt_repo_obj_list = zcl_abapgit_repo_srv=>get_instance( )->list( ).
LOOP AT lt_repo_obj_list ASSIGNING <ls_repo>.
CLEAR: ls_overview.
ls_overview-favorite = zcl_abapgit_persistence_user=>get_instance(
)->is_favorite_repo( <ls_repo>->ms_data-key ).
ls_overview-type = <ls_repo>->ms_data-offline.
ls_overview-key = <ls_repo>->ms_data-key.
ls_overview-name = <ls_repo>->get_name( ).
ls_overview-url = <ls_repo>->ms_data-url.
ls_overview-package = <ls_repo>->ms_data-package.
ls_overview-branch = <ls_repo>->ms_data-branch_name.
ls_overview-created_by = <ls_repo>->ms_data-created_by.
ls_overview-write_protected = <ls_repo>->ms_data-local_settings-write_protected.
IF <ls_repo>->ms_data-created_at IS NOT INITIAL.
CONVERT TIME STAMP <ls_repo>->ms_data-created_at
TIME ZONE mv_time_zone
INTO DATE lv_date
TIME lv_time.
ls_overview-created_at = |{ lv_date DATE = USER } { lv_time TIME = USER }|.
ENDIF.
ls_overview-deserialized_by = <ls_repo>->ms_data-deserialized_by.
IF <ls_repo>->ms_data-deserialized_at IS NOT INITIAL.
CONVERT TIME STAMP <ls_repo>->ms_data-deserialized_at
TIME ZONE mv_time_zone
INTO DATE lv_date
TIME lv_time.
ls_overview-deserialized_at = |{ lv_date DATE = USER } { lv_time TIME = USER }|.
ENDIF.
INSERT ls_overview INTO TABLE rt_overview.
ENDLOOP.
ENDMETHOD.
METHOD render_header_bar.
ii_html->add( |<div class="form-container">| ).
ii_html->add( |<form class="inline" method="post" action="sapevent:{ c_action-apply_filter }">| ).
ii_html->add( render_text_input(
iv_name = |filter|
iv_label = |Filter: |
iv_value = mv_filter ) ).
ii_html->add( |<input type="submit" class="hidden-submit">| ).
ii_html->add( |</form>| ).
ii_html->add( ii_html->a(
iv_txt = '<i id="icon-filter-favorite" class="icon icon-check"></i> Only Favorites'
iv_act = |gHelper.toggleRepoListFavorites()|
iv_typ = zif_abapgit_html=>c_action_type-onclick ) ).
ii_html->add( `<span class="separator">|</span>` ).
ii_html->add( ii_html->a(
iv_txt = '<i id="icon-filter-detail" class="icon icon-check"></i> Detail'
iv_act = |gHelper.toggleRepoListDetail()|
iv_typ = zif_abapgit_html=>c_action_type-onclick ) ).
ii_html->add( |</div>| ).
ENDMETHOD.
METHOD render_scripts.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->set_title( cl_abap_typedescr=>describe_by_object_ref( me )->get_relative_name( ) ).
ri_html->add( 'setInitialFocus("filter");' ).
ri_html->add( 'var gHelper = new RepoOverViewHelper();' ).
ENDMETHOD.
METHOD render_table.
ii_html->add( |<div class="db_list repo-overview">| ).
ii_html->add( |<table class="db_tab w100">| ).
render_table_header( ii_html ).
render_table_body( ii_html = ii_html
it_overview = it_overview ).
ii_html->add( |</table>| ).
ii_html->add( |</div>| ).
ENDMETHOD.
METHOD render_table_body.
CONSTANTS: lc_separator TYPE string VALUE `<span class="separator">|</span>`.
DATA:
lv_type_icon TYPE string,
lv_favorite_icon TYPE string,
lv_favorite_class TYPE string,
lv_stage_link TYPE string,
lv_patch_link TYPE string,
lv_zip_import_link TYPE string,
lv_zip_export_link TYPE string,
lv_check_link TYPE string,
lv_text TYPE string,
lv_lock TYPE string,
lv_settings_link TYPE string.
DATA lv_new_length TYPE i.
FIELD-SYMBOLS: <ls_overview> LIKE LINE OF it_overview.
ii_html->add( '<tbody>' ).
LOOP AT it_overview ASSIGNING <ls_overview>.
IF <ls_overview>-type = abap_true.
lv_type_icon = 'plug/darkgrey'.
ELSE.
lv_type_icon = 'cloud-upload-alt/darkgrey'.
ENDIF.
IF <ls_overview>-favorite = abap_true.
lv_favorite_icon = 'star/blue'.
lv_favorite_class = 'favorite'.
ELSE.
lv_favorite_icon = 'star/grey'.
lv_favorite_class = ''.
ENDIF.
ii_html->add( |<tr class="repo { lv_favorite_class }">| ).
ii_html->add( |<td class="wmin">| ).
ii_html->add_a( iv_act = |{ zif_abapgit_definitions=>c_action-repo_toggle_fav }?key={ <ls_overview>-key }|
iv_txt = ii_html->icon( iv_name = lv_favorite_icon
iv_class = 'pad-sides'
iv_hint = 'Click to toggle favorite' ) ).
ii_html->add( |</td>| ).
CLEAR lv_lock.
IF <ls_overview>-write_protected = abap_true.
lv_lock = ii_html->icon( iv_name = 'lock/grey70'
iv_class = 'm-em5-sides'
iv_hint = 'Locked from pulls' ).
ENDIF.
ii_html->add( |<td class="wmin">{ ii_html->icon( lv_type_icon ) }</td>| ).
ii_html->add( |<td>{ ii_html->a( iv_txt = <ls_overview>-name
iv_act = |{ c_action-select }?key={ <ls_overview>-key }| ) }{ lv_lock }</td>| ).
IF <ls_overview>-type = abap_false.
lv_text = <ls_overview>-url.
REPLACE FIRST OCCURRENCE OF 'https://' IN lv_text WITH ''.
REPLACE FIRST OCCURRENCE OF 'http://' IN lv_text WITH ''.
IF lv_text CP '*.git'.
lv_new_length = strlen( lv_text ) - 4.
lv_text = lv_text(lv_new_length).
ENDIF.
ii_html->add( |<td>{ ii_html->a(
iv_txt = lv_text
iv_title = <ls_overview>-url
iv_act = |{ zif_abapgit_definitions=>c_action-url }?url={ <ls_overview>-url }| ) }</td>| ).
ELSE.
ii_html->add( |<td></td>| ).
ENDIF.
ii_html->add( |<td>| ).
ii_html->add( zcl_abapgit_gui_chunk_lib=>render_package_name(
iv_package = <ls_overview>-package
iv_suppress_title = abap_true ) ).
ii_html->add( |</td>| ).
IF <ls_overview>-branch IS INITIAL.
ii_html->add( |<td> </td>| ).
ELSE.
ii_html->add( |<td>| ).
ii_html->add( zcl_abapgit_gui_chunk_lib=>render_branch_name(
iv_branch = <ls_overview>-branch
iv_repo_key = <ls_overview>-key ) ).
ii_html->add( |</td>| ).
ENDIF.
ii_html->add( |<td class="ro-detail">| ).
ii_html->add( zcl_abapgit_gui_chunk_lib=>render_user_name(
iv_username = <ls_overview>-deserialized_by
iv_suppress_title = abap_true ) ).
ii_html->add( |</td>| ).
ii_html->add( |<td class="ro-detail">{ <ls_overview>-deserialized_at }</td>| ).
ii_html->add( |<td class="ro-detail">| ).
ii_html->add( zcl_abapgit_gui_chunk_lib=>render_user_name(
iv_username = <ls_overview>-created_by
iv_suppress_title = abap_true ) ).
ii_html->add( |</td>| ).
ii_html->add( |<td class="ro-detail">{ <ls_overview>-created_at }</td>| ).
ii_html->add( |<td class="ro-detail">{ <ls_overview>-key }</td>| ).
ii_html->add( |<td class='ro-action'> | ).
lv_check_link = ii_html->a(
iv_txt = |Check|
iv_act = |{ zif_abapgit_definitions=>c_action-repo_code_inspector }?key={ <ls_overview>-key } | ).
ii_html->add( lv_check_link && lc_separator ).
IF <ls_overview>-type = abap_false. " online repo
lv_stage_link = ii_html->a(
iv_txt = |Stage|
iv_act = |{ zif_abapgit_definitions=>c_action-go_stage }?key={ <ls_overview>-key } | ).
ii_html->add( lv_stage_link && lc_separator ).
lv_patch_link = ii_html->a(
iv_txt = |Patch|
iv_act = |{ zif_abapgit_definitions=>c_action-go_patch }?key={ <ls_overview>-key } | ).
ii_html->add( lv_patch_link && lc_separator ).
ELSE. " offline repo
lv_zip_import_link = ii_html->a(
iv_txt = |Import|
iv_act = |{ zif_abapgit_definitions=>c_action-zip_import }?key={ <ls_overview>-key } | ).
ii_html->add( lv_zip_import_link && lc_separator ).
lv_zip_export_link = ii_html->a(
iv_txt = |Export|
iv_act = |{ zif_abapgit_definitions=>c_action-zip_export }?key={ <ls_overview>-key } | ).
ii_html->add( lv_zip_export_link && lc_separator ).
ENDIF.
lv_settings_link = ii_html->a(
iv_txt = |Settings|
iv_act = |{ zif_abapgit_definitions=>c_action-repo_settings }?key={ <ls_overview>-key } | ).
ii_html->add( lv_settings_link ).
ii_html->add( |</td>| ).
ii_html->add( |<td class='ro-go'><span>{
ii_html->a(
iv_txt = `›`
iv_act = |{ c_action-select }?key={ <ls_overview>-key }| ) }</span></td>| ).
ii_html->add( |</tr>| ).
ENDLOOP.
ii_html->add( |</tbody>| ).
ENDMETHOD.
METHOD render_table_header.
CLEAR mt_col_spec.
_add_column(
iv_tech_name = 'FAVORITE'
iv_css_class = 'wmin'
iv_allow_order_by = abap_false ).
_add_column(
iv_tech_name = 'TYPE'
iv_css_class = 'wmin'
iv_allow_order_by = abap_false ).
_add_column(
iv_tech_name = 'NAME'
iv_display_name = 'Name'
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'URL'
iv_display_name = 'Url'
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'PACKAGE'
iv_display_name = 'Package'
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'BRANCH'
iv_display_name = 'Branch'
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'DESERIALIZED_BY'
iv_display_name = 'Deserialized by'
iv_css_class = 'ro-detail'
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'DESERIALIZED_AT'
iv_display_name = 'Deserialized at'
iv_css_class = 'ro-detail'
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'CREATED_BY'
iv_display_name = 'Created by'
iv_css_class = 'ro-detail'
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'CREATED_AT'
iv_display_name = 'Created at'
iv_css_class = 'ro-detail'
iv_add_tz = abap_true
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'KEY'
iv_display_name = 'Key'
iv_css_class = 'ro-detail'
iv_allow_order_by = abap_true ).
_add_column(
iv_tech_name = 'ACTION'
iv_display_name = 'Action'
iv_css_class = 'ro-action'
iv_allow_order_by = abap_false ).
_add_column(
iv_tech_name = 'GO'
iv_css_class = 'ro-go'
iv_allow_order_by = abap_false ).
ii_html->add( |<thead>| ).
ii_html->add( |<tr>| ).
ii_html->add( zcl_abapgit_gui_chunk_lib=>render_order_by_header_cells(
it_col_spec = mt_col_spec
iv_order_by = mv_order_by
iv_order_descending = mv_order_descending ) ).
ii_html->add( '</tr>' ).
ii_html->add( '</thead>' ).
ENDMETHOD.
METHOD render_text_input.
DATA lv_attrs TYPE string.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
IF iv_value IS NOT INITIAL.
lv_attrs = | value="{ iv_value }"|.
ENDIF.
IF iv_max_length IS NOT INITIAL.
lv_attrs = | maxlength="{ iv_max_length }"|.
ENDIF.
ri_html->add( |<label for="{ iv_name }">{ iv_label }</label>| ).
ri_html->add( |<input id="{ iv_name }" name="{ iv_name }" type="text"{ lv_attrs }>| ).
ENDMETHOD.
METHOD set_filter.
FIELD-SYMBOLS: <lv_postdata> LIKE LINE OF it_postdata.
READ TABLE it_postdata ASSIGNING <lv_postdata>
INDEX 1.
IF sy-subrc = 0.
FIND FIRST OCCURRENCE OF REGEX `filter=(.*)`
IN <lv_postdata>
SUBMATCHES mv_filter.
ENDIF.
mv_filter = condense( mv_filter ).
ENDMETHOD.
METHOD set_order_by.
mv_order_by = iv_order_by.
ENDMETHOD.
METHOD set_order_direction.
mv_order_descending = iv_order_descending.
ENDMETHOD.
METHOD zif_abapgit_gui_renderable~render.
mt_overview = map_repo_list_to_overview( ).
apply_order_by( CHANGING ct_overview = mt_overview ).
apply_filter( CHANGING ct_overview = mt_overview ).
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
render_header_bar( ri_html ).
zcl_abapgit_exit=>get_instance( )->wall_message_list( ri_html ).
render_table( ii_html = ri_html
it_overview = mt_overview ).
register_deferred_script( render_scripts( ) ).
ENDMETHOD.
METHOD _add_column.
FIELD-SYMBOLS <ls_col> LIKE LINE OF mt_col_spec.
APPEND INITIAL LINE TO mt_col_spec ASSIGNING <ls_col>.
<ls_col>-display_name = iv_display_name.
<ls_col>-tech_name = iv_tech_name.
<ls_col>-title = iv_title.
<ls_col>-css_class = iv_css_class.
<ls_col>-add_tz = iv_add_tz.
<ls_col>-allow_order_by = iv_allow_order_by.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
260,
7501,
62,
2502,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
42895,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
764,
628,
220,
220,
220,
42865,
285,
85,
62,
2875,
62,
1525,
41876,
4731,
20832,
12,
1340,
11319,
764,
628,
220,
220,
220,
337,
36252,
50,
23772,
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,
2875,
62,
1525,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2875,
62,
1525,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
2875,
62,
37295,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2875,
62,
20147,
1571,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
24455,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
7353,
7890,
41876,
1976,
361,
62,
397,
499,
18300,
62,
6494,
62,
1177,
263,
14804,
774,
62,
7353,
62,
7890,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
2502,
1177,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4004,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
366,
0,
6407,
329,
18043,
11,
3991,
329,
2691,
29924,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
8367,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8478,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2727,
62,
1525,
220,
220,
220,
220,
220,
41876,
2124,
549,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2727,
62,
265,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
748,
48499,
1143,
62,
1525,
41876,
2124,
549,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
748,
48499,
1143,
62,
265,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3551,
62,
24326,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
2502,
1177,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
2502,
33571,
41876,
49053,
9795,
43679,
3963,
1259,
62,
2502,
1177,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2922,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
19738,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4174,
62,
24455,
41876,
4731,
26173,
8924,
705,
39014,
62,
24455,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
2673,
764,
628,
220,
220,
220,
42865,
25,
285,
85,
62,
2875,
62,
20147,
1571,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
24455,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
2435,
62,
11340,
220,
220,
220,
220,
220,
220,
220,
41876,
640,
11340,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45079,
62,
4033,
62,
16684,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
4033,
62,
16684,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45079,
62,
2502,
1177,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
2502,
33571,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
8543,
62,
5239,
62,
15414,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18242,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
9806,
62,
13664,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
11,
628,
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
] |
CLASS zcl_abapgit_repo_srv DEFINITION
PUBLIC
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
INTERFACES zif_abapgit_repo_srv .
INTERFACES zif_abapgit_repo_listener .
CLASS-METHODS get_instance
RETURNING
VALUE(ri_srv) TYPE REF TO zif_abapgit_repo_srv .
PROTECTED SECTION.
PRIVATE SECTION.
ALIASES delete
FOR zif_abapgit_repo_srv~delete .
ALIASES get
FOR zif_abapgit_repo_srv~get .
ALIASES list
FOR zif_abapgit_repo_srv~list .
ALIASES validate_package
FOR zif_abapgit_repo_srv~validate_package .
CLASS-DATA gi_ref TYPE REF TO zif_abapgit_repo_srv .
DATA mv_init TYPE abap_bool VALUE abap_false ##NO_TEXT.
DATA mt_list TYPE zif_abapgit_definitions=>ty_repo_ref_tt .
METHODS refresh
RAISING
zcx_abapgit_exception .
METHODS is_sap_object_allowed
RETURNING
VALUE(rv_allowed) TYPE abap_bool .
METHODS instantiate_and_add
IMPORTING
!is_repo_meta TYPE zif_abapgit_persistence=>ty_repo
RETURNING
VALUE(ro_repo) TYPE REF TO zcl_abapgit_repo
RAISING
zcx_abapgit_exception .
METHODS add
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo
RAISING
zcx_abapgit_exception .
METHODS reinstantiate_repo
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
!is_meta TYPE zif_abapgit_persistence=>ty_repo_xml
RAISING
zcx_abapgit_exception .
METHODS validate_sub_super_packages
IMPORTING
!iv_package TYPE devclass
!it_repos TYPE zif_abapgit_persistence=>tt_repo
!iv_ign_subpkg TYPE abap_bool DEFAULT abap_false
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS zcl_abapgit_repo_srv IMPLEMENTATION.
METHOD add.
DATA: lo_repo LIKE LINE OF mt_list.
LOOP AT mt_list INTO lo_repo.
IF lo_repo->get_key( ) = io_repo->get_key( ).
IF lo_repo = io_repo.
RETURN.
ENDIF.
zcx_abapgit_exception=>raise( 'identical keys' ).
ENDIF.
ENDLOOP.
io_repo->bind_listener( me ).
APPEND io_repo TO mt_list.
ENDMETHOD.
METHOD get_instance.
IF gi_ref IS INITIAL.
CREATE OBJECT gi_ref TYPE zcl_abapgit_repo_srv.
ENDIF.
ri_srv = gi_ref.
ENDMETHOD.
METHOD instantiate_and_add.
IF is_repo_meta-offline = abap_false.
CREATE OBJECT ro_repo TYPE zcl_abapgit_repo_online
EXPORTING
is_data = is_repo_meta.
ELSE.
CREATE OBJECT ro_repo TYPE zcl_abapgit_repo_offline
EXPORTING
is_data = is_repo_meta.
ENDIF.
add( ro_repo ).
ENDMETHOD.
METHOD is_sap_object_allowed.
rv_allowed = cl_enh_badi_def_utility=>is_sap_system( ).
IF rv_allowed = abap_true.
RETURN.
ENDIF.
rv_allowed = zcl_abapgit_exit=>get_instance( )->allow_sap_objects( ).
ENDMETHOD.
METHOD refresh.
DATA: lt_list TYPE zif_abapgit_persistence=>tt_repo.
FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list.
CLEAR mt_list.
lt_list = zcl_abapgit_persist_factory=>get_repo( )->list( ).
LOOP AT lt_list ASSIGNING <ls_list>.
instantiate_and_add( <ls_list> ).
ENDLOOP.
mv_init = abap_true.
ENDMETHOD.
METHOD reinstantiate_repo.
DATA lo_repo TYPE REF TO zcl_abapgit_repo.
DATA ls_full_meta TYPE zif_abapgit_persistence=>ty_repo.
lo_repo = get( iv_key ).
DELETE TABLE mt_list FROM lo_repo.
ASSERT sy-subrc IS INITIAL.
MOVE-CORRESPONDING is_meta TO ls_full_meta.
ls_full_meta-key = iv_key.
instantiate_and_add( ls_full_meta ).
ENDMETHOD.
METHOD validate_sub_super_packages.
DATA:
ls_repo LIKE LINE OF it_repos,
li_package TYPE REF TO zif_abapgit_sap_package,
lt_packages TYPE zif_abapgit_sap_package=>ty_devclass_tt,
lo_repo TYPE REF TO zcl_abapgit_repo.
LOOP AT it_repos INTO ls_repo.
lo_repo = get( ls_repo-key ).
li_package = zcl_abapgit_factory=>get_sap_package( ls_repo-package ).
IF li_package->exists( ) = abap_false.
" Skip dangling repository
CONTINUE.
ENDIF.
CLEAR lt_packages.
IF lo_repo->get_local_settings( )-ignore_subpackages = abap_false.
APPEND LINES OF li_package->list_subpackages( ) TO lt_packages.
READ TABLE lt_packages TRANSPORTING NO FIELDS
WITH KEY table_line = iv_package.
IF sy-subrc = 0.
zcx_abapgit_exception=>raise( |Repository { lo_repo->get_name( ) } already contains { iv_package } | ).
ENDIF.
ENDIF.
IF iv_ign_subpkg = abap_false.
APPEND LINES OF li_package->list_superpackages( ) TO lt_packages.
READ TABLE lt_packages TRANSPORTING NO FIELDS
WITH KEY table_line = iv_package.
IF sy-subrc = 0.
zcx_abapgit_exception=>raise( |Repository { lo_repo->get_name( ) } |
&& |already contains subpackage of { iv_package } | ).
ENDIF.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_repo_listener~on_meta_change.
DATA li_persistence TYPE REF TO zif_abapgit_persist_repo.
li_persistence = zcl_abapgit_persist_factory=>get_repo( ).
li_persistence->update_metadata(
iv_key = iv_key
is_meta = is_meta
is_change_mask = is_change_mask ).
" Recreate repo instance if type changed
" Instances in mt_list are of *_online and *_offline type
" If type is changed object should be recreated from the proper class
" TODO refactor, e.g. unify repo logic in one class
IF is_change_mask-offline = abap_true.
reinstantiate_repo(
iv_key = iv_key
is_meta = is_meta ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_repo_srv~delete.
zcl_abapgit_persist_factory=>get_repo( )->delete( io_repo->get_key( ) ).
DELETE TABLE mt_list FROM io_repo.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD zif_abapgit_repo_srv~get.
FIELD-SYMBOLS: <lo_list> LIKE LINE OF mt_list.
IF mv_init = abap_false.
refresh( ).
ENDIF.
LOOP AT mt_list ASSIGNING <lo_list>.
IF <lo_list>->get_key( ) = iv_key.
ro_repo = <lo_list>.
RETURN.
ENDIF.
ENDLOOP.
zcx_abapgit_exception=>raise( 'repo not found, get' ).
ENDMETHOD.
METHOD zif_abapgit_repo_srv~is_repo_installed.
DATA: lt_repo TYPE zif_abapgit_definitions=>ty_repo_ref_tt,
lo_repo TYPE REF TO zcl_abapgit_repo,
lv_url TYPE string,
lv_package TYPE devclass,
lo_repo_online TYPE REF TO zcl_abapgit_repo_online,
lv_err TYPE string.
lt_repo = list( ).
LOOP AT lt_repo INTO lo_repo.
CHECK lo_repo->is_offline( ) = abap_false.
lo_repo_online ?= lo_repo.
lv_url = lo_repo_online->get_url( ).
lv_package = lo_repo_online->get_package( ).
CHECK to_upper( lv_url ) = to_upper( iv_url ).
" Validate bindings
"TODO refactor: move this message out of this method
IF iv_target_package IS NOT INITIAL AND iv_target_package <> lv_package.
lv_err = |Installation to package { lv_package } detected. |
&& |Cancelling installation|.
zcx_abapgit_exception=>raise( lv_err ).
ENDIF.
rv_installed = abap_true.
EXIT.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_repo_srv~list.
IF mv_init = abap_false.
refresh( ).
ENDIF.
rt_list = mt_list.
ENDMETHOD.
METHOD zif_abapgit_repo_srv~new_offline.
DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo,
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit.
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-create_repo ) = abap_false.
zcx_abapgit_exception=>raise( 'Not authorized' ).
ENDIF.
validate_package( iv_package ).
lo_dot_abapgit = zcl_abapgit_dot_abapgit=>build_default( ).
lo_dot_abapgit->set_folder_logic( iv_folder_logic ).
lv_key = zcl_abapgit_persist_factory=>get_repo( )->add(
iv_url = iv_url
iv_branch_name = ''
iv_package = iv_package
iv_offline = abap_true
is_dot_abapgit = lo_dot_abapgit->get_data( ) ).
TRY.
ls_repo = zcl_abapgit_persist_factory=>get_repo( )->read( lv_key ).
CATCH zcx_abapgit_not_found.
zcx_abapgit_exception=>raise( 'new_offline not found' ).
ENDTRY.
ro_repo ?= instantiate_and_add( ls_repo ).
ENDMETHOD.
METHOD zif_abapgit_repo_srv~new_online.
DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo,
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
ls_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit.
ASSERT NOT iv_url IS INITIAL
AND NOT iv_branch_name IS INITIAL
AND NOT iv_package IS INITIAL.
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-create_repo ) = abap_false.
zcx_abapgit_exception=>raise( 'Not authorized' ).
ENDIF.
validate_package( iv_package = iv_package
iv_ign_subpkg = iv_ign_subpkg ).
zcl_abapgit_url=>validate( |{ iv_url }| ).
ls_dot_abapgit = zcl_abapgit_dot_abapgit=>build_default( )->get_data( ).
ls_dot_abapgit-folder_logic = iv_folder_logic.
lv_key = zcl_abapgit_persist_factory=>get_repo( )->add(
iv_url = iv_url
iv_branch_name = iv_branch_name
iv_display_name = iv_display_name
iv_package = iv_package
iv_offline = abap_false
is_dot_abapgit = ls_dot_abapgit ).
TRY.
ls_repo = zcl_abapgit_persist_factory=>get_repo( )->read( lv_key ).
CATCH zcx_abapgit_not_found.
zcx_abapgit_exception=>raise( 'new_online not found' ).
ENDTRY.
ro_repo ?= instantiate_and_add( ls_repo ).
IF ls_repo-local_settings-ignore_subpackages <> iv_ign_subpkg.
ls_repo-local_settings-ignore_subpackages = iv_ign_subpkg.
ro_repo->set_local_settings( ls_repo-local_settings ).
ENDIF.
ro_repo->refresh( ).
ro_repo->find_remote_dot_abapgit( ).
ENDMETHOD.
METHOD zif_abapgit_repo_srv~purge.
* todo, this should be a method on the repo instead
DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt.
IF io_repo->get_local_settings( )-write_protected = abap_true.
zcx_abapgit_exception=>raise( 'Cannot purge. Local code is write-protected by repo config' ).
ELSEIF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-uninstall ) = abap_false.
zcx_abapgit_exception=>raise( 'Not authorized' ).
ENDIF.
lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( io_repo->get_package( ) ).
zcl_abapgit_objects=>delete( it_tadir = lt_tadir
is_checks = is_checks ).
delete( io_repo ).
ENDMETHOD.
METHOD zif_abapgit_repo_srv~validate_package.
DATA: lv_as4user TYPE tdevc-as4user,
lt_repos TYPE zif_abapgit_persistence=>tt_repo,
lv_name TYPE zif_abapgit_persistence=>ty_local_settings-display_name,
lv_owner TYPE zif_abapgit_persistence=>ty_local_settings-display_name.
FIELD-SYMBOLS:
<ls_repo> LIKE LINE OF lt_repos.
IF iv_package IS INITIAL.
zcx_abapgit_exception=>raise( 'add, package empty' ).
ENDIF.
IF iv_package = '$TMP'.
zcx_abapgit_exception=>raise( 'not possible to use $TMP, create new (local) package' ).
ENDIF.
SELECT SINGLE as4user FROM tdevc
INTO lv_as4user
WHERE devclass = iv_package. "#EC CI_GENBUFF
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Package { iv_package } not found| ).
ENDIF.
IF is_sap_object_allowed( ) = abap_false AND lv_as4user = 'SAP'.
zcx_abapgit_exception=>raise( |Package { iv_package } not allowed, responsible user = 'SAP'| ).
ENDIF.
" make sure its not already in use for a different repository
lt_repos = zcl_abapgit_persist_factory=>get_repo( )->list( ).
READ TABLE lt_repos WITH KEY package = iv_package ASSIGNING <ls_repo>.
IF sy-subrc = 0.
lv_name = get_instance( )->get( <ls_repo>-key )->get_name( ).
lv_owner = <ls_repo>-created_by.
zcx_abapgit_exception=>raise( |Package { iv_package } already versioned as { lv_name } by { lv_owner }| ).
ENDIF.
validate_sub_super_packages(
iv_package = iv_package
it_repos = lt_repos
iv_ign_subpkg = iv_ign_subpkg ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
4868,
877,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
39098,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
27891,
85,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
764,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
8355,
43429,
1546,
12233,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
93,
33678,
764,
198,
220,
220,
220,
8355,
43429,
1546,
651,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
93,
1136,
764,
198,
220,
220,
220,
8355,
43429,
1546,
1351,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
93,
4868,
764,
198,
220,
220,
220,
8355,
43429,
1546,
26571,
62,
26495,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
93,
12102,
378,
62,
26495,
764,
628,
220,
220,
220,
42715,
12,
26947,
308,
72,
62,
5420,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
15003,
41876,
450,
499,
62,
30388,
26173,
8924,
450,
499,
62,
9562,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
42865,
45079,
62,
4868,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
260,
7501,
62,
5420,
62,
926,
764,
628,
220,
220,
220,
337,
36252,
50,
14976,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
82,
499,
62,
15252,
62,
40845,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
40845,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
9113,
9386,
62,
392,
62,
2860,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
260,
7501,
62,
28961,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
260,
7501,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
751,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
260,
7501,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
6865,
18797,
9386,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
28961,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
62,
19875,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
26571,
62,
7266,
62,
16668,
62,
43789,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
220,
220,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
260,
1930,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
926,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
570,
62,
7266,
35339,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
751,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
260,
7501,
34178,
48920,
3963,
45079,
62,
4868,
13,
628,
198,
220,
220,
220,
17579,
3185,
5161,
45079,
62,
4868,
39319,
2376,
62,
260,
7501,
13,
198,
220,
220,
220,
220,
220,
16876,
2376,
62,
260,
7501,
3784,
1136,
62,
2539,
7,
1267,
796,
33245,
62,
260,
7501,
3784,
1136,
62,
2539,
7,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
2376,
62,
260,
7501,
796,
33245,
62,
260,
7501,
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,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
738,
605,
8251,
6,
6739
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 for testing
duration short
risk level harmless.
private section.
data:
anon_log type ref to zif_logger,
named_log type ref to zif_logger,
reopened_log type ref to zif_logger.
class-methods:
class_setup.
methods:
setup,
teardown,
get_first_message
importing log_handle type balloghndl
returning value(msg) type char255,
get_messages
importing
log_handle type balloghndl
exporting
texts type table_of_strings
msg_details type bal_tt_msg,
format_message
importing id like sy-msgid default sy-msgid
lang type langu default '-'
no like sy-msgno default sy-msgno
v1 like sy-msgv1 default sy-msgv1
v2 like sy-msgv2 default sy-msgv2
v3 like sy-msgv3 default sy-msgv3
v4 like sy-msgv4 default sy-msgv4
returning value(msg) type string,
can_create_anon_log for testing,
can_create_named_log for testing,
can_reopen_log for testing,
can_create_expiring_log_days for testing,
can_create_expiring_log_date for testing,
can_open_or_create for testing,
can_add_log_context for testing,
can_add_to_log for testing,
can_add_to_named_log for testing,
auto_saves_named_log for testing,
auto_saves_reopened_log for testing,
can_log_string for testing,
can_log_char for testing,
can_log_bapiret1 for testing,
can_log_bapiret2 for testing,
can_log_bapi_coru_return for testing,
can_log_bapi_order_return for testing,
can_log_rcomp for testing,
can_log_bapirettab for testing,
can_log_err for testing,
can_log_chained_exceptions for testing,
can_log_batch_msgs for testing,
can_add_msg_context for testing,
can_add_callback_sub for testing,
can_add_callback_fm for testing,
must_use_factory for testing,
can_use_and_chain_aliases for testing,
return_proper_status for testing,
return_proper_length for testing.
endclass. "lcl_Test
class lcl_test implementation.
method class_setup.
zcl_logger=>new(
object = 'ABAPUNIT'
subobject = 'LOGGER'
desc = 'Log saved in database' )->add( 'This message is in the database' ).
endmethod.
method setup.
anon_log = zcl_logger=>new( ).
named_log = zcl_logger=>new( object = 'ABAPUNIT'
subobject = 'LOGGER'
desc = `Hey it's a log` ).
reopened_log = zcl_logger=>open( object = 'ABAPUNIT'
subobject = 'LOGGER'
desc = 'Log saved in database' ).
endmethod.
method can_create_anon_log.
cl_aunit_assert=>assert_bound(
act = anon_log
msg = 'Cannot Instantiate Anonymous Log' ).
endmethod.
method can_create_named_log.
cl_aunit_assert=>assert_bound(
act = named_log
msg = 'Cannot Instantiate Named Log' ).
endmethod.
method can_create_expiring_log_days.
data expiring_log type ref to zif_logger.
data act_header type bal_s_log.
constants days_until_log_can_be_deleted type i value 365.
expiring_log = zcl_logger_factory=>create_log(
object = 'ABAPUNIT'
subobject = 'LOGGER'
desc = 'Log that is not deletable and expiring'
settings = zcl_logger_factory=>create_settings(
)->set_expiry_in_days( days_until_log_can_be_deleted
)->set_must_be_kept_until_expiry( abap_true )
).
cl_aunit_assert=>assert_bound(
act = expiring_log
msg = 'Cannot Instantiate Expiring Log' ).
call function 'BAL_LOG_HDR_READ'
exporting
i_log_handle = expiring_log->handle
importing
e_s_log = act_header.
data lv_exp type d.
lv_exp = sy-datum + days_until_log_can_be_deleted.
cl_aunit_assert=>assert_equals(
exporting
exp = lv_exp
act = act_header-aldate_del
msg = 'Log is not expiring in correct amount of days'
).
cl_aunit_assert=>assert_equals(
exporting
exp = abap_true
act = act_header-del_before
msg = 'Log should not be deletable before expiry date'
).
endmethod.
method can_create_expiring_log_date.
data expiring_log type ref to zif_logger.
data act_header type bal_s_log.
constants days_until_log_can_be_deleted type i value 365.
data lv_expire type d.
lv_expire = sy-datum + days_until_log_can_be_deleted.
expiring_log = zcl_logger_factory=>create_log(
object = 'ABAPUNIT'
subobject = 'LOGGER'
desc = 'Log that is not deletable and expiring'
settings = zcl_logger_factory=>create_settings(
)->set_expiry_date( lv_expire
)->set_must_be_kept_until_expiry( abap_true )
).
cl_aunit_assert=>assert_bound(
act = expiring_log
msg = 'Cannot Instantiate Expiring Log' ).
call function 'BAL_LOG_HDR_READ'
exporting
i_log_handle = expiring_log->handle
importing
e_s_log = act_header.
cl_aunit_assert=>assert_equals(
exporting
exp = lv_expire
act = act_header-aldate_del
msg = 'Log is not expiring on correct date'
).
cl_aunit_assert=>assert_equals(
exporting
exp = abap_true
act = act_header-del_before
msg = 'Log should not be deletable before expiry date'
).
endmethod.
method can_reopen_log.
cl_aunit_assert=>assert_bound(
act = reopened_log
msg = 'Cannot Reopen Log from DB' ).
endmethod.
method can_open_or_create.
data: created_log type ref to zif_logger,
handles type bal_t_logh.
call function 'BAL_GLB_MEMORY_REFRESH'. "Close Logs
reopened_log = zcl_logger=>open( object = 'ABAPUNIT'
subobject = 'LOGGER'
desc = 'Log saved in database'
create_if_does_not_exist = abap_true ).
created_log = zcl_logger=>open( object = 'ABAPUNIT'
subobject = 'LOGGER'
desc = 'Log not in database'
create_if_does_not_exist = abap_true ).
call function 'BAL_GLB_SEARCH_LOG'
importing
e_t_log_handle = handles.
cl_aunit_assert=>assert_equals(
exp = 2
act = lines( handles )
msg = 'Did not create nonexistent log from OPEN' ).
endmethod.
method can_add_log_context.
data: log type ref to zif_logger,
random_country_data type t005t,
act_header type bal_s_log.
random_country_data-mandt = sy-mandt.
random_country_data-spras = 'D'.
random_country_data-land1 = 'DE'.
log = zcl_logger=>new( context = random_country_data ).
call function 'BAL_LOG_HDR_READ'
exporting
i_log_handle = log->handle
importing
e_s_log = act_header.
cl_aunit_assert=>assert_equals(
exp = 'T005T'
act = act_header-context-tabname
msg = 'Did not add context to log' ).
cl_aunit_assert=>assert_equals(
exp = random_country_data
act = act_header-context-value
msg = 'Did not add context to log' ).
endmethod.
method can_add_to_log.
data: dummy type c.
message s001(00) with 'I' 'test' 'the' 'logger.' into dummy.
anon_log->add( ).
cl_aunit_assert=>assert_equals(
exp = 'Itestthelogger.'
act = get_first_message( anon_log->handle )
msg = 'Did not log system message properly' ).
endmethod.
method can_add_to_named_log.
data: dummy type c.
message s001(00) with 'Testing' 'a' 'named' 'logger.' into dummy.
named_log->add( ).
cl_aunit_assert=>assert_equals(
exp = 'Testinganamedlogger.'
act = get_first_message( named_log->handle )
msg = 'Did not write to named log' ).
endmethod.
method auto_saves_named_log.
data: dummy type c,
log_numbers type bal_t_logn,
msg type string.
message s000(sabp_unit) with 'Testing' 'logger' 'that' 'saves.' into dummy.
named_log->add( ).
msg = format_message( ).
call function 'BAL_GLB_MEMORY_REFRESH'.
append named_log->db_number to log_numbers.
call function 'BAL_DB_LOAD'
exporting
i_t_lognumber = log_numbers.
cl_aunit_assert=>assert_equals(
exp = msg
act = get_first_message( named_log->handle )
msg = 'Did not write to named log' ).
endmethod.
method auto_saves_reopened_log.
data: log_numbers type bal_t_logn,
act_texts type table_of_strings,
act_text type string.
reopened_log->add( 'This is another message in the database' ).
call function 'BAL_GLB_MEMORY_REFRESH'.
append reopened_log->db_number to log_numbers.
call function 'BAL_DB_LOAD'
exporting
i_t_lognumber = log_numbers.
get_messages( exporting log_handle = reopened_log->handle
importing texts = act_texts ).
read table act_texts index 1 into act_text.
cl_aunit_assert=>assert_equals(
exp = 'This message is in the database'
act = act_text
msg = 'Did not autosave to reopened log' ).
read table act_texts index 2 into act_text.
cl_aunit_assert=>assert_equals(
exp = 'This is another message in the database'
act = act_text
msg = 'Did not autosave to reopened log' ).
endmethod.
method can_log_string.
data: stringmessage type string value `Logging a string, guys!`.
anon_log->add( stringmessage ).
cl_aunit_assert=>assert_equals(
exp = stringmessage
act = get_first_message( anon_log->handle )
msg = 'Did not log system message properly' ).
endmethod.
method can_log_char.
data: charmessage type char70 value 'Logging a char sequence!'.
anon_log->add( charmessage ).
cl_aunit_assert=>assert_equals(
exp = charmessage
act = get_first_message( anon_log->handle )
msg = 'Did not log system message properly' ).
endmethod.
method can_log_bapiret1.
data: bapi_msg type bapiret1,
msg_handle type balmsghndl,
expected_details type bal_s_msg,
actual_details type bal_s_msg,
actual_text type char200.
expected_details-msgty = bapi_msg-type = 'W'.
expected_details-msgid = bapi_msg-id = 'BL'.
expected_details-msgno = bapi_msg-number = '001'.
expected_details-msgv1 = bapi_msg-message_v1 = 'This'.
expected_details-msgv2 = bapi_msg-message_v2 = 'is'.
expected_details-msgv3 = bapi_msg-message_v3 = 'a'.
expected_details-msgv4 = bapi_msg-message_v4 = 'test'.
anon_log->add( bapi_msg ).
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = actual_details
e_txt_msg = actual_text.
cl_aunit_assert=>assert_not_initial(
act = actual_details-time_stmp
msg = 'Did not log system message properly' ).
expected_details-msg_count = 1.
clear actual_details-time_stmp.
cl_aunit_assert=>assert_equals(
exp = expected_details
act = actual_details
msg = 'Did not log system message properly' ).
cl_aunit_assert=>assert_equals(
exp = 'This is a test'
act = condense( actual_text )
msg = 'Did not log system message properly' ).
endmethod.
method can_log_bapiret2.
data: bapi_msg type bapiret2,
msg_handle type balmsghndl,
expected_details type bal_s_msg,
actual_details type bal_s_msg,
actual_text type char200.
expected_details-msgty = bapi_msg-type = 'W'.
expected_details-msgid = bapi_msg-id = 'BL'.
expected_details-msgno = bapi_msg-number = '001'.
expected_details-msgv1 = bapi_msg-message_v1 = 'This'.
expected_details-msgv2 = bapi_msg-message_v2 = 'is'.
expected_details-msgv3 = bapi_msg-message_v3 = 'a'.
expected_details-msgv4 = bapi_msg-message_v4 = 'test'.
anon_log->add( bapi_msg ).
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = actual_details
e_txt_msg = actual_text.
cl_aunit_assert=>assert_not_initial(
act = actual_details-time_stmp
msg = 'Did not log system message properly' ).
expected_details-msg_count = 1.
clear actual_details-time_stmp.
cl_aunit_assert=>assert_equals(
exp = expected_details
act = actual_details
msg = 'Did not log system message properly' ).
cl_aunit_assert=>assert_equals(
exp = 'This is a test'
act = condense( actual_text )
msg = 'Did not log system message properly' ).
endmethod.
method can_log_bapi_coru_return.
data: bapi_msg type bapi_coru_return,
msg_handle type balmsghndl,
expected_details type bal_s_msg,
actual_details type bal_s_msg,
actual_text type char200.
expected_details-msgty = bapi_msg-type = 'W'.
expected_details-msgid = bapi_msg-id = 'BL'.
expected_details-msgno = bapi_msg-number = '001'.
expected_details-msgv1 = bapi_msg-message_v1 = 'This'.
expected_details-msgv2 = bapi_msg-message_v2 = 'is'.
expected_details-msgv3 = bapi_msg-message_v3 = 'a'.
expected_details-msgv4 = bapi_msg-message_v4 = 'test'.
anon_log->add( bapi_msg ).
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = actual_details
e_txt_msg = actual_text.
cl_aunit_assert=>assert_not_initial(
act = actual_details-time_stmp
msg = 'Did not log system message properly' ).
expected_details-msg_count = 1.
clear actual_details-time_stmp.
cl_aunit_assert=>assert_equals(
exp = expected_details
act = actual_details
msg = 'Did not log system message properly' ).
cl_aunit_assert=>assert_equals(
exp = 'This is a test'
act = condense( actual_text )
msg = 'Did not log system message properly' ).
endmethod.
method can_log_bapi_order_return.
data: bapi_msg type bapi_order_return,
msg_handle type balmsghndl,
expected_details type bal_s_msg,
actual_details type bal_s_msg,
actual_text type char200.
expected_details-msgty = bapi_msg-type = 'W'.
expected_details-msgid = bapi_msg-id = 'BL'.
expected_details-msgno = bapi_msg-number = '001'.
expected_details-msgv1 = bapi_msg-message_v1 = 'This'.
expected_details-msgv2 = bapi_msg-message_v2 = 'is'.
expected_details-msgv3 = bapi_msg-message_v3 = 'a'.
expected_details-msgv4 = bapi_msg-message_v4 = 'test'.
anon_log->add( bapi_msg ).
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = actual_details
e_txt_msg = actual_text.
cl_aunit_assert=>assert_not_initial(
act = actual_details-time_stmp
msg = 'Did not log system message properly' ).
expected_details-msg_count = 1.
clear actual_details-time_stmp.
cl_aunit_assert=>assert_equals(
exp = expected_details
act = actual_details
msg = 'Did not log system message properly' ).
cl_aunit_assert=>assert_equals(
exp = 'This is a test'
act = condense( actual_text )
msg = 'Did not log system message properly' ).
endmethod.
method can_log_rcomp.
data: rcomp_msg type rcomp,
msg_handle type balmsghndl,
expected_details type bal_s_msg,
actual_details type bal_s_msg,
actual_text type char200.
expected_details-msgty = rcomp_msg-msgty = 'W'.
expected_details-msgid = rcomp_msg-msgid = 'BL'.
expected_details-msgno = rcomp_msg-msgno = '001'.
expected_details-msgv1 = rcomp_msg-msgv1 = 'This'.
expected_details-msgv2 = rcomp_msg-msgv2 = 'is'.
expected_details-msgv3 = rcomp_msg-msgv3 = 'a'.
expected_details-msgv4 = rcomp_msg-msgv4 = 'test'.
anon_log->add( rcomp_msg ).
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = actual_details
e_txt_msg = actual_text.
cl_aunit_assert=>assert_not_initial(
act = actual_details-time_stmp
msg = 'Did not log system message properly' ).
expected_details-msg_count = 1.
clear actual_details-time_stmp.
cl_aunit_assert=>assert_equals(
exp = expected_details
act = actual_details
msg = 'Did not log system message properly' ).
cl_aunit_assert=>assert_equals(
exp = 'This is a test'
act = condense( actual_text )
msg = 'Did not log system message properly' ).
endmethod.
method can_log_bapirettab.
data: bapi_messages type bapirettab,
bapi_msg type bapiret2,
exp_texts type table_of_strings,
exp_text type string,
exp_details type bal_tt_msg,
exp_detail type bal_s_msg,
act_texts type table_of_strings,
act_text type string,
act_details type bal_tt_msg,
act_detail type bal_s_msg.
define messages_are.
exp_detail-msgty = bapi_msg-type = &1.
exp_detail-msgid = bapi_msg-id = &2.
exp_detail-msgno = bapi_msg-number = &3.
exp_detail-msgv1 = bapi_msg-message_v1 = &4.
exp_detail-msgv2 = bapi_msg-message_v2 = &5.
exp_detail-msgv3 = bapi_msg-message_v3 = &6.
exp_detail-msgv4 = bapi_msg-message_v4 = &7.
exp_text = |{ exp_detail-msgv1 } { exp_detail-msgv2 } {
exp_detail-msgv3 } { exp_detail-msgv4 }|.
APPEND bapi_msg TO bapi_messages.
APPEND exp_detail TO exp_details.
APPEND exp_text TO exp_texts.
end-of-definition.
messages_are: 'S' 'BL' '001' 'This' 'is' 'happy' 'message',
'W' 'BL' '001' 'This' 'is' 'warning' 'message',
'E' 'BL' '001' 'This' 'is' 'angry' 'message'.
anon_log->add( bapi_messages ).
get_messages( exporting log_handle = anon_log->handle
importing texts = act_texts
msg_details = act_details ).
do 3 times.
read table act_details into act_detail index sy-index.
read table exp_details into exp_detail index sy-index.
cl_aunit_assert=>assert_not_initial(
act = act_detail-time_stmp
msg = 'Did not log system message properly' ).
exp_detail-msg_count = 1.
clear act_detail-time_stmp.
cl_aunit_assert=>assert_equals(
exp = exp_detail
act = act_detail
msg = 'Did not log bapirettab properly' ).
read table act_texts into act_text index sy-index.
read table exp_texts into exp_text index sy-index.
cl_aunit_assert=>assert_equals(
exp = exp_text
act = condense( act_text )
msg = 'Did not log bapirettab properly' ).
enddo.
endmethod.
method can_log_err.
data: impossible_int type i,
err type ref to cx_sy_zerodivide,
act_txt type char255,
exp_txt type char255,
long_text type string,
msg_handle type balmsghndl.
try.
impossible_int = 1 / 0. "Make an error!
catch cx_sy_zerodivide into err.
anon_log->add( err ).
exp_txt = err->if_message~get_text( ).
long_text = err->if_message~get_longtext( ).
endtry.
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_EXCEPTION_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_txt_msg = act_txt.
cl_aunit_assert=>assert_equals(
exp = exp_txt "'Division by zero'
act = act_txt
msg = 'Did not log throwable correctly' ).
endmethod.
method can_log_chained_exceptions.
data: main_exception type ref to lcx_t100,
previous_exception type ref to lcx_t100,
catched_exception type ref to lcx_t100,
msg_handle type balmsghndl,
act_texts type table_of_strings,
act_text type string.
define exceptions_are.
create object main_exception
exporting
previous = previous_exception
id = &1
no = &2
msgv1 = &3
msgv2 = &4
msgv3 = &5
msgv4 = &6.
previous_exception = main_exception.
end-of-definition.
"Given
exceptions_are:
'SABP_UNIT' '010' '' '' '' '',
'SABP_UNIT' '030' '' '' '' '',
'SABP_UNIT' '000' 'This' 'is' 'test' 'message'.
"When
try.
raise exception main_exception.
catch lcx_t100 into catched_exception.
anon_log->add( catched_exception ).
endtry.
"Then
get_messages( exporting log_handle = anon_log->handle
importing texts = act_texts ).
read table act_texts index 1 into act_text.
cl_aunit_assert=>assert_equals(
exp = format_message( id = 'SABP_UNIT' no = 010 ) " 'Message 1'
act = act_text
msg = 'Did not log chained exception correctly' ).
read table act_texts index 2 into act_text.
cl_aunit_assert=>assert_equals(
exp = format_message( id = 'SABP_UNIT' no = 030 ) " 'Message 2'
act = act_text
msg = 'Did not log chained exception correctly' ).
read table act_texts index 3 into act_text.
cl_aunit_assert=>assert_equals(
exp = format_message( id = 'SABP_UNIT' no = 000 v1 = 'This' v2 = 'is' v3 = 'test' v4 = 'message' ) " 'Message: This is test message'
act = act_text
msg = 'Did not log chained exception correctly' ).
endmethod.
method can_log_batch_msgs.
data: batch_msgs type table of bdcmsgcoll,
batch_msg type bdcmsgcoll,
act_texts type table_of_strings,
act_text type string.
define messages_are.
batch_msg-msgtyp = &1.
batch_msg-msgid = &2.
batch_msg-msgnr = &3.
batch_msg-msgv1 = &4.
batch_msg-msgv2 = &5.
batch_msg-msgv3 = &6.
batch_msg-msgv4 = &7.
APPEND batch_msg TO batch_msgs.
end-of-definition.
messages_are:
'S' 'SABP_UNIT' '010' '' '' '' '',
'S' 'SABP_UNIT' '030' '' '' '' '',
'S' 'SABP_UNIT' '000' 'This' 'is' 'test' 'message'.
anon_log->add( batch_msgs ).
get_messages( exporting log_handle = anon_log->handle
importing texts = act_texts ).
read table act_texts index 1 into act_text.
cl_aunit_assert=>assert_equals(
exp = format_message( id = 'SABP_UNIT' no = 010 ) " 'Message 1'
act = act_text
msg = 'Did not log BDC return messages correctly' ).
read table act_texts index 2 into act_text.
cl_aunit_assert=>assert_equals(
exp = format_message( id = 'SABP_UNIT' no = 030 ) " 'Message 2'
act = act_text
msg = 'Did not log BDC return messages correctly' ).
read table act_texts index 3 into act_text.
cl_aunit_assert=>assert_equals(
exp = format_message( id = 'SABP_UNIT' no = 000 v1 = 'This' v2 = 'is' v3 = 'test' v4 = 'message' ) " 'Message: This is test message'
act = act_text
msg = 'Did not log BDC return messages correctly' ).
endmethod.
method can_add_msg_context.
data: addl_context type bezei20 value 'Berlin', "data element from dictionary!
msg_handle type balmsghndl,
act_details type bal_s_msg.
anon_log->add( obj_to_log = 'Here is some text'
context = addl_context ).
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = act_details.
cl_aunit_assert=>assert_equals(
exp = addl_context
act = act_details-context-value
msg = 'Did not add context correctly' ).
cl_aunit_assert=>assert_equals(
exp = 'BEZEI20'
act = act_details-context-tabname
msg = 'Did not add context correctly' ).
endmethod.
method can_add_callback_sub.
data: msg_handle type balmsghndl,
msg_detail type bal_s_msg,
exp_callback type bal_s_clbk.
anon_log->add( obj_to_log = 'Message with Callback'
callback_form = 'FORM'
callback_prog = 'PROGRAM' ).
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = msg_detail.
exp_callback-userexitf = 'FORM'.
exp_callback-userexitp = 'PROGRAM'.
exp_callback-userexitt = ' '.
cl_aunit_assert=>assert_equals(
exp = exp_callback
act = msg_detail-params-callback
msg = 'Did not add callback correctly' ).
endmethod.
method can_add_callback_fm.
data: msg_handle type balmsghndl,
msg_detail type bal_s_msg,
exp_callback type bal_s_clbk.
anon_log->add( obj_to_log = 'Message with Callback'
callback_fm = 'FUNCTION' ).
msg_handle-log_handle = anon_log->handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = msg_detail.
exp_callback-userexitf = 'FUNCTION'.
exp_callback-userexitp = ' '.
exp_callback-userexitt = 'F'.
cl_aunit_assert=>assert_equals(
exp = exp_callback
act = msg_detail-params-callback
msg = 'Did not add callback correctly' ).
endmethod.
method must_use_factory.
data: log type ref to object.
try.
create object log type ('ZCL_LOGGER').
cl_aunit_assert=>fail( 'Did not force creation via factory' ).
catch cx_sy_create_object_error.
"PASSED
endtry.
endmethod.
method can_use_and_chain_aliases.
data: texts type table_of_strings,
text type string,
msg_details type bal_tt_msg,
msg_detail type bal_s_msg.
anon_log->a( 'Severe Abort Error!' )->e( |Here's an error!| ).
anon_log->w( 'This is a warning' )->i( `Helpful Information` ).
anon_log->s( 'Great' && 'Success' ).
get_messages( exporting log_handle = anon_log->handle
importing texts = texts
msg_details = msg_details ).
read table texts index 1 into text.
read table msg_details index 1 into msg_detail.
cl_aunit_assert=>assert_equals(
exp = 'A'
act = msg_detail-msgty
msg = 'Didn''t log by alias' ).
cl_aunit_assert=>assert_equals(
exp = 'Severe Abort Error!'
act = text
msg = 'Didn''t log by alias' ).
read table texts index 2 into text.
read table msg_details index 2 into msg_detail.
cl_aunit_assert=>assert_equals(
exp = 'E'
act = msg_detail-msgty
msg = 'Didn''t log by alias' ).
cl_aunit_assert=>assert_equals(
exp = 'Here''s an error!'
act = text
msg = 'Didn''t log by alias' ).
read table texts index 3 into text.
read table msg_details index 3 into msg_detail.
cl_aunit_assert=>assert_equals(
exp = 'W'
act = msg_detail-msgty
msg = 'Didn''t log by alias' ).
cl_aunit_assert=>assert_equals(
exp = 'This is a warning'
act = text
msg = 'Didn''t log by alias' ).
read table texts index 4 into text.
read table msg_details index 4 into msg_detail.
cl_aunit_assert=>assert_equals(
exp = 'I'
act = msg_detail-msgty
msg = 'Didn''t log by alias' ).
cl_aunit_assert=>assert_equals(
exp = 'Helpful Information'
act = text
msg = 'Didn''t log by alias' ).
read table texts index 5 into text.
read table msg_details index 5 into msg_detail.
cl_aunit_assert=>assert_equals(
exp = 'S'
act = msg_detail-msgty
msg = 'Didn''t log by alias' ).
cl_aunit_assert=>assert_equals(
exp = 'GreatSuccess'
act = text
msg = 'Didn''t log by alias' ).
endmethod.
method get_first_message.
data: msg_handle type balmsghndl.
msg_handle-log_handle = log_handle.
msg_handle-msgnumber = '000001'.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_txt_msg = msg.
endmethod.
method get_messages.
data: handle_as_table type bal_t_logh,
message_handles type bal_t_msgh,
msg_handle type balmsghndl,
msg_detail type bal_s_msg,
msg_text type char255.
append log_handle to handle_as_table.
call function 'BAL_GLB_SEARCH_MSG'
exporting
i_t_log_handle = handle_as_table
importing
e_t_msg_handle = message_handles.
loop at message_handles into msg_handle.
call function 'BAL_LOG_MSG_READ'
exporting
i_s_msg_handle = msg_handle
importing
e_s_msg = msg_detail
e_txt_msg = msg_text.
append msg_detail to msg_details.
append msg_text to texts.
endloop.
endmethod.
method format_message.
call function 'FORMAT_MESSAGE'
exporting
id = id
lang = 'E'
no = no
v1 = v1
v2 = v2
v3 = v3
v4 = v4
importing
msg = msg
exceptions
not_found = 1
others = 2.
* TODO: raise abap unit
endmethod.
method teardown.
call function 'BAL_GLB_MEMORY_REFRESH'.
endmethod.
method return_proper_status.
cl_aunit_assert=>assert_not_initial(
act = anon_log->is_empty( )
msg = 'Not empty at start' ).
anon_log->s( 'success' ).
anon_log->i( 'info' ).
cl_aunit_assert=>assert_initial(
act = anon_log->is_empty( )
msg = 'Empty after add' ).
cl_aunit_assert=>assert_initial(
act = anon_log->has_errors( )
msg = 'Has errors when there were no errors' ).
cl_aunit_assert=>assert_initial(
act = anon_log->has_warnings( )
msg = 'Has warnings when there were no warnings' ).
anon_log->e( 'error' ).
anon_log->w( 'warning' ).
cl_aunit_assert=>assert_not_initial(
act = anon_log->has_errors( )
msg = 'Has no errors when there were errors' ).
cl_aunit_assert=>assert_not_initial(
act = anon_log->has_warnings( )
msg = 'Has no warnings when there were warnings' ).
endmethod.
method return_proper_length.
cl_aunit_assert=>assert_equals(
exp = 0
act = anon_log->length( )
msg = 'Did not return 0 length at start' ).
anon_log->s( 'success' ).
anon_log->i( 'info' ).
anon_log->w( 'warning' ).
cl_aunit_assert=>assert_equals(
exp = 3
act = anon_log->length( )
msg = 'Did not return right length after add' ).
endmethod.
endclass. "lcl_Test
| [
4871,
300,
565,
62,
9288,
6770,
329,
4856,
198,
220,
9478,
1790,
198,
220,
2526,
1241,
23585,
13,
198,
220,
2839,
2665,
13,
628,
220,
220,
220,
1366,
25,
198,
220,
220,
220,
220,
220,
281,
261,
62,
6404,
220,
220,
220,
220,
2099,
1006,
284,
1976,
361,
62,
6404,
1362,
11,
198,
220,
220,
220,
220,
220,
3706,
62,
6404,
220,
220,
220,
2099,
1006,
284,
1976,
361,
62,
6404,
1362,
11,
198,
220,
220,
220,
220,
220,
37415,
62,
6404,
2099,
1006,
284,
1976,
361,
62,
6404,
1362,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
25,
198,
220,
220,
220,
220,
220,
1398,
62,
40406,
13,
628,
220,
220,
220,
5050,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
198,
220,
220,
220,
220,
220,
573,
446,
593,
11,
198,
220,
220,
220,
220,
220,
651,
62,
11085,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
2604,
62,
28144,
2099,
2613,
46664,
358,
75,
198,
220,
220,
220,
220,
220,
220,
220,
8024,
1988,
7,
19662,
8,
2099,
1149,
13381,
11,
198,
220,
220,
220,
220,
220,
651,
62,
37348,
1095,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2604,
62,
28144,
220,
2099,
2613,
46664,
358,
75,
198,
220,
220,
220,
220,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13399,
220,
220,
220,
220,
220,
220,
2099,
3084,
62,
1659,
62,
37336,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
62,
36604,
2099,
3652,
62,
926,
62,
19662,
11,
628,
220,
220,
220,
220,
220,
5794,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
4686,
220,
220,
220,
220,
220,
220,
220,
220,
588,
827,
12,
19662,
312,
4277,
827,
12,
19662,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42392,
220,
220,
220,
220,
220,
220,
2099,
2786,
4277,
705,
19355,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
645,
220,
220,
220,
220,
220,
220,
220,
220,
588,
827,
12,
19662,
3919,
4277,
827,
12,
19662,
3919,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
16,
220,
220,
220,
220,
220,
220,
220,
220,
588,
827,
12,
19662,
85,
16,
4277,
827,
12,
19662,
85,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
17,
220,
220,
220,
220,
220,
220,
220,
220,
588,
827,
12,
19662,
85,
17,
4277,
827,
12,
19662,
85,
17,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
18,
220,
220,
220,
220,
220,
220,
220,
220,
588,
827,
12,
19662,
85,
18,
4277,
827,
12,
19662,
85,
18,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
19,
220,
220,
220,
220,
220,
220,
220,
220,
588,
827,
12,
19662,
85,
19,
4277,
827,
12,
19662,
85,
19,
198,
220,
220,
220,
220,
220,
220,
220,
8024,
1988,
7,
19662,
8,
2099,
4731,
11,
628,
220,
220,
220,
220,
220,
460,
62,
17953,
62,
36902,
62,
6404,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
17953,
62,
13190,
62,
6404,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
260,
9654,
62,
6404,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
17953,
62,
11201,
3428,
62,
6404,
62,
12545,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
17953,
62,
11201,
3428,
62,
6404,
62,
4475,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
9654,
62,
273,
62,
17953,
329,
4856,
11,
628,
220,
220,
220,
220,
220,
460,
62,
2860,
62,
6404,
62,
22866,
329,
4856,
11,
628,
220,
220,
220,
220,
220,
460,
62,
2860,
62,
1462,
62,
6404,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
2860,
62,
1462,
62,
13190,
62,
6404,
329,
4856,
11,
628,
220,
220,
220,
220,
220,
8295,
62,
82,
3080,
62,
13190,
62,
6404,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
8295,
62,
82,
3080,
62,
260,
26350,
62,
6404,
329,
4856,
11,
628,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
8841,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
10641,
220,
220,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
65,
499,
557,
83,
16,
220,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
65,
499,
557,
83,
17,
220,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
65,
15042,
62,
10215,
84,
62,
7783,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
65,
15042,
62,
2875,
62,
7783,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
81,
5589,
220,
220,
220,
220,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
65,
499,
557,
926,
397,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
8056,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
354,
1328,
62,
1069,
11755,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
6404,
62,
43501,
62,
907,
14542,
329,
4856,
11,
628,
220,
220,
220,
220,
220,
460,
62,
2860,
62,
19662,
62,
22866,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
2860,
62,
47423,
62,
7266,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
460,
62,
2860,
62,
47423,
62,
38353,
220,
329,
4856,
11,
628,
220,
220,
220,
220,
220,
1276,
62,
1904,
62,
69,
9548,
329,
4856,
11,
628,
220,
220,
220,
220,
220,
460,
62,
1904,
62,
392,
62,
7983,
62,
7344,
1386,
329,
4856,
11,
628,
220,
220,
220,
220,
220,
1441,
62,
1676,
525,
62,
13376,
329
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*---------------------------------------------------------------------*
* view related PAI modules
* generation date: 19.10.2020 at 15:35:06
* view maintenance generator version: #001407#
*---------------------------------------------------------------------*
INCLUDE LSVIMITX . "base table related PAI modules
| [
9,
10097,
30934,
9,
198,
9,
220,
220,
220,
1570,
3519,
8147,
40,
13103,
198,
9,
220,
220,
5270,
3128,
25,
678,
13,
940,
13,
42334,
379,
1315,
25,
2327,
25,
3312,
198,
9,
220,
220,
1570,
9262,
17301,
2196,
25,
1303,
405,
1415,
2998,
2,
198,
9,
10097,
30934,
9,
198,
198,
1268,
5097,
52,
7206,
30948,
53,
3955,
2043,
55,
764,
366,
8692,
3084,
3519,
8147,
40,
13103,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
FUNCTION zgtt_sts_ee_fo_load_start_rel.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM
*" REFERENCE(I_EVENT_TYPES) TYPE /SAPTRX/EVTYPES
*" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER
*" REFERENCE(I_EVENTTYPE_TAB) TYPE TRXAS_EVENTTYPE_TABS_WA
*" REFERENCE(I_EVENT) TYPE TRXAS_EVT_CTAB_WA
*" EXPORTING
*" VALUE(E_RESULT) LIKE SY-BINPT
*" TABLES
*" C_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL
*" EXCEPTIONS
*" PARAMETER_ERROR
*" RELEVANCE_DETERM_ERROR
*" STOP_PROCESSING
*"----------------------------------------------------------------------
TRY.
zcl_gtt_sts_actual_event=>get_tor_actual_event_class( i_event )->check_event_relevance(
EXPORTING
it_all_appl_tables = i_all_appl_tables
iv_event_code = /scmtms/if_tor_const=>sc_tor_event-load_begin
is_event = i_event
IMPORTING
ev_result = e_result ).
CATCH cx_udm_message INTO DATA(lo_udm_message).
zcl_gtt_sts_tools=>get_errors_log(
EXPORTING
io_umd_message = lo_udm_message
iv_appsys = i_appsys
IMPORTING
es_bapiret = DATA(ls_bapiret) ).
APPEND ls_bapiret TO c_logtable.
RAISE stop_processing.
ENDTRY.
IF e_result = zif_gtt_sts_ef_constants=>cs_condition-false.
RETURN.
ENDIF.
CALL FUNCTION '/SCMTMS/REL_EVT_TOR_LB'
EXPORTING
i_appsys = i_appsys
i_event_types = i_event_types
i_all_appl_tables = i_all_appl_tables
i_eventtype_tab = i_eventtype_tab
i_event = i_event
IMPORTING
e_result = e_result
TABLES
c_logtable = c_logtable
EXCEPTIONS
parameter_error = 1
relevance_determ_error = 2
stop_processing = 3
OTHERS = 4.
CASE sy-subrc.
WHEN 1.
RAISE parameter_error.
WHEN 2.
RAISE relevance_determ_error.
WHEN 3.
RAISE stop_processing.
ENDCASE.
ENDFUNCTION.
| [
42296,
4177,
2849,
1976,
70,
926,
62,
6448,
62,
1453,
62,
6513,
62,
2220,
62,
9688,
62,
2411,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
14565,
26491,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
2969,
3705,
16309,
8,
41876,
220,
1220,
50,
2969,
5446,
55,
14,
2969,
6489,
23060,
25361,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
3525,
62,
9936,
47,
1546,
8,
41876,
220,
1220,
50,
2969,
5446,
55,
14,
20114,
9936,
47,
1546,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
7036,
62,
2969,
6489,
62,
5603,
9148,
1546,
8,
41876,
220,
7579,
55,
1921,
62,
5603,
2749,
1340,
30339,
1137,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
3525,
25216,
62,
5603,
33,
8,
41876,
220,
7579,
55,
1921,
62,
20114,
3525,
25216,
62,
5603,
4462,
62,
15543,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
3525,
8,
41876,
220,
7579,
55,
1921,
62,
20114,
51,
62,
4177,
6242,
62,
15543,
198,
9,
1,
220,
7788,
15490,
2751,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
36,
62,
19535,
16724,
8,
34178,
220,
19704,
12,
33,
1268,
11571,
198,
9,
1,
220,
309,
6242,
28378,
198,
9,
1,
220,
220,
220,
220,
220,
327,
62,
25294,
38148,
19269,
18415,
11335,
220,
347,
17614,
26087,
17,
39852,
2849,
1847,
198,
9,
1,
220,
7788,
42006,
11053,
198,
9,
1,
220,
220,
220,
220,
220,
29463,
2390,
2767,
1137,
62,
24908,
198,
9,
1,
220,
220,
220,
220,
220,
49968,
53,
19240,
62,
35,
2767,
1137,
44,
62,
24908,
198,
9,
1,
220,
220,
220,
220,
220,
44934,
62,
4805,
4503,
7597,
2751,
198,
9,
1,
10097,
23031,
198,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
1976,
565,
62,
70,
926,
62,
6448,
62,
50039,
62,
15596,
14804,
1136,
62,
13165,
62,
50039,
62,
15596,
62,
4871,
7,
1312,
62,
15596,
1267,
3784,
9122,
62,
15596,
62,
260,
2768,
590,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
439,
62,
1324,
75,
62,
83,
2977,
796,
1312,
62,
439,
62,
1324,
75,
62,
83,
2977,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
15596,
62,
8189,
220,
220,
220,
220,
796,
1220,
1416,
16762,
907,
14,
361,
62,
13165,
62,
9979,
14804,
1416,
62,
13165,
62,
15596,
12,
2220,
62,
27471,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
15596,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1312,
62,
15596,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
20274,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
304,
62,
20274,
6739,
198,
220,
220,
220,
327,
11417,
43213,
62,
463,
76,
62,
20500,
39319,
42865,
7,
5439,
62,
463,
76,
62,
20500,
737,
198,
220,
220,
220,
220,
220,
1976,
565,
62,
70,
926,
62,
6448,
62,
31391,
14804,
1136,
62,
48277,
62,
6404,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
388,
67,
62,
20500,
796,
2376,
62,
463,
76,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1324,
17597,
220,
220,
220,
220,
220,
796,
1312,
62,
1324,
17597,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1658,
62,
65,
499,
557,
83,
220,
220,
220,
220,
796,
42865,
7,
7278,
62,
65,
499,
557,
83,
8,
6739,
198,
220,
220,
220,
220,
220,
43504,
10619,
43979,
62,
65,
499,
557,
83,
5390,
269,
62,
6404,
11487,
13,
198,
220,
220,
220,
220,
220,
17926,
24352,
2245,
62,
36948,
13,
198,
220,
23578,
40405,
13,
628,
220,
16876,
304,
62,
20274,
796,
1976,
361,
62,
70,
926,
62,
6448,
62,
891,
62,
9979,
1187,
14804,
6359,
62,
31448,
12,
9562,
13,
198,
220,
220,
220,
30826,
27064,
13,
198,
220,
23578,
5064,
13,
628,
220,
42815,
29397,
4177,
2849,
31051,
6173,
13752,
5653,
14,
16448,
62,
20114,
51,
62,
32961,
62,
30501,
6,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
1312,
62,
1324,
17597,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1312,
62,
1324,
17597,
198,
220,
220,
220,
220,
220,
1312,
62,
15596,
62,
19199,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1312,
62,
15596,
62,
19199,
198,
220,
220,
220,
220,
220,
1312,
62,
439,
62,
1324,
75,
62,
83,
2977,
220,
220,
220,
220,
220,
796,
1312,
62,
439,
62,
1324,
75,
62,
83,
2977,
198,
220,
220,
220,
220,
220,
1312,
62,
15596,
4906,
62,
8658,
220,
220,
220,
220,
220,
220,
220,
796,
1312,
62,
15596,
4906,
62,
8658,
198,
220,
220,
220,
220,
220,
1312,
62,
15596,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1312,
62,
15596,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
304,
62,
20274,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
304,
62,
20274,
198,
220,
220,
220,
309,
6242,
28378,
198,
220,
220,
220,
220,
220,
269,
62,
6404,
11487,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
269,
62,
6404,
11487,
198,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
11507,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
23082,
62,
67,
2357,
76,
62,
18224,
796,
362,
198,
220,
220,
220,
220,
220,
2245,
62,
36948,
220,
220,
220,
220,
220,
220,
220,
796,
513,
198,
220,
220,
220,
220,
220,
440,
4221,
4877
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
"! <p class="shorttext synchronized" lang="en">Factory for retrieving code search providers</p>
CLASS zcl_adcoset_csp_factory DEFINITION
PUBLIC
FINAL
CREATE PRIVATE.
PUBLIC SECTION.
CLASS-METHODS:
"! <p class="shorttext synchronized" lang="en">Retrieves</p>
get_search_provider
IMPORTING
type TYPE trobjtype
search_settings TYPE zif_adcoset_ty_global=>ty_search_settings
custom_settings TYPE zif_adcoset_ty_global=>ty_custom_search_settings
matchers TYPE zif_adcoset_pattern_matcher=>ty_ref_tab
RETURNING
VALUE(result) TYPE REF TO zif_adcoset_code_search_prov
RAISING
zcx_adcoset_no_provider.
PROTECTED SECTION.
PRIVATE SECTION.
CONSTANTS:
c_def_reposrc_provider TYPE trobjtype VALUE '$REP',
c_def_string_src_provider TYPE trobjtype VALUE '$SRC'.
TYPES:
BEGIN OF ty_providers,
type TYPE trobjtype,
ref TYPE REF TO zif_adcoset_code_search_prov,
END OF ty_providers.
CLASS-DATA:
providers TYPE HASHED TABLE OF ty_providers WITH UNIQUE KEY type.
CLASS-METHODS:
map_type
IMPORTING
original TYPE trobjtype
RETURNING
VALUE(result) TYPE trobjtype,
create_provider
IMPORTING
type TYPE trobjtype
search_settings TYPE zif_adcoset_ty_global=>ty_search_settings
custom_settings TYPE zif_adcoset_ty_global=>ty_custom_search_settings
matchers TYPE zif_adcoset_pattern_matcher=>ty_ref_tab
RETURNING
VALUE(result) TYPE REF TO zif_adcoset_code_search_prov
RAISING
zcx_adcoset_no_provider.
ENDCLASS.
CLASS zcl_adcoset_csp_factory IMPLEMENTATION.
METHOD get_search_provider.
DATA(mapped_type) = map_type( type ).
TRY.
result = providers[ type = mapped_type ]-ref.
CATCH cx_sy_itab_line_not_found.
INSERT VALUE #(
type = mapped_type
ref = create_provider(
type = mapped_type
search_settings = search_settings
custom_settings = custom_settings
matchers = matchers ) ) INTO TABLE providers ASSIGNING FIELD-SYMBOL(<provider>).
result = <provider>-ref.
ENDTRY.
ENDMETHOD.
METHOD create_provider.
result = SWITCH #( type
WHEN zif_adcoset_c_global=>c_source_code_type-class THEN
NEW zcl_adcoset_csp_clas(
search_settings = search_settings
custom_settings = custom_settings-class
matchers = matchers )
WHEN zif_adcoset_c_global=>c_source_code_type-function_group THEN
NEW zcl_adcoset_csp_fugr(
search_settings = search_settings
matchers = matchers )
WHEN c_def_reposrc_provider THEN
NEW zcl_adcoset_csp_repsrc_default(
search_settings = search_settings
matchers = matchers )
when c_def_string_src_provider then
NEW zcl_adcoset_csp_strsrc_default(
search_settings = search_settings
matchers = matchers )
ELSE
THROW zcx_adcoset_no_provider( ) ).
ENDMETHOD.
METHOD map_type.
result = SWITCH #( original
WHEN zif_adcoset_c_global=>c_source_code_type-class OR
zif_adcoset_c_global=>c_source_code_type-function_group
THEN original
WHEN zif_adcoset_c_global=>c_source_code_type-program OR
zif_adcoset_c_global=>c_source_code_type-type_group OR
zif_adcoset_c_global=>c_source_code_type-simple_transformation OR
zif_adcoset_c_global=>c_source_code_type-interface OR
zif_adcoset_c_global=>c_source_code_type-behavior_definition
THEN c_def_reposrc_provider
WHEN zif_adcoset_c_global=>c_source_code_type-access_control OR
zif_adcoset_c_global=>c_source_code_type-data_definition OR
zif_adcoset_c_global=>c_source_code_type-metadata_extension OR
zif_adcoset_c_global=>c_source_code_type-access_control
THEN c_def_string_src_provider ).
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
22810,
329,
50122,
2438,
2989,
9549,
3556,
79,
29,
198,
31631,
1976,
565,
62,
324,
6966,
316,
62,
66,
2777,
62,
69,
9548,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
9781,
5034,
1158,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
651,
62,
12947,
62,
15234,
1304,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4161,
50007,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2989,
62,
33692,
41876,
1976,
361,
62,
324,
6966,
316,
62,
774,
62,
20541,
14804,
774,
62,
12947,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2183,
62,
33692,
41876,
1976,
361,
62,
324,
6966,
316,
62,
774,
62,
20541,
14804,
774,
62,
23144,
62,
12947,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2603,
3533,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
324,
6966,
316,
62,
33279,
62,
6759,
2044,
14804,
774,
62,
5420,
62,
8658,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
324,
6966,
316,
62,
8189,
62,
12947,
62,
15234,
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,
324,
6966,
316,
62,
3919,
62,
15234,
1304,
13,
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,
269,
62,
4299,
62,
260,
1930,
6015,
62,
15234,
1304,
220,
220,
220,
41876,
4161,
50007,
4906,
26173,
8924,
705,
3,
35316,
3256,
198,
220,
220,
220,
220,
220,
269,
62,
4299,
62,
8841,
62,
10677,
62,
15234,
1304,
41876,
4161,
50007,
4906,
26173,
8924,
705,
3,
50,
7397,
4458,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
15234,
4157,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
41876,
4161,
50007,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1006,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
324,
6966,
316,
62,
8189,
62,
12947,
62,
15234,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
15234,
4157,
13,
628,
220,
220,
220,
42715,
12,
26947,
25,
198,
220,
220,
220,
220,
220,
9549,
41876,
367,
11211,
1961,
43679,
3963,
1259,
62,
15234,
4157,
13315,
4725,
33866,
8924,
35374,
2099,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
3975,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2656,
220,
220,
220,
220,
220,
41876,
4161,
50007,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4161,
50007,
4906,
11,
198,
220,
220,
220,
220,
220,
2251,
62,
15234,
1304,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4161,
50007,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2989,
62,
33692,
41876,
1976,
361,
62,
324,
6966,
316,
62,
774,
62,
20541,
14804,
774,
62,
12947,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2183,
62,
33692,
41876,
1976,
361,
62,
324,
6966,
316,
62,
774,
62,
20541,
14804,
774,
62,
23144,
62,
12947,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2603,
3533,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
324,
6966,
316,
62,
33279,
62,
6759,
2044,
14804,
774,
62,
5420,
62,
8658,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
324,
6966,
316,
62,
8189,
62,
12947,
62,
15234,
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,
324,
6966,
316,
62,
3919,
62,
15234,
1304,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
324,
6966,
316,
62,
66,
2777,
62,
69,
9548,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
12947,
62,
15234,
1304,
13,
198,
220,
220,
220,
42865,
7,
76,
6320,
62,
4906,
8,
796,
3975,
62,
4906,
7,
2099,
6739,
198,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
9549,
58,
2099,
796,
27661,
62,
4906,
2361,
12,
5420,
13,
198,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
1837,
62,
270,
397,
62,
1370,
62,
1662,
62,
9275,
13,
198,
220,
220,
220,
220,
220,
220,
220,
29194,
17395,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
796,
27661,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1006,
220,
796,
2251,
62,
15234,
1304,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
27661,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2989,
62,
33692,
796,
2989,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2183,
62,
33692,
796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_persistence_repo DEFINITION
PUBLIC
CREATE PROTECTED
GLOBAL FRIENDS zcl_abapgit_persist_factory .
PUBLIC SECTION.
INTERFACES zif_abapgit_persist_repo .
INTERFACES zif_abapgit_persist_repo_cs .
METHODS constructor .
METHODS rewrite_repo_meta
IMPORTING
!iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING
zcx_abapgit_exception
zcx_abapgit_not_found.
PROTECTED SECTION.
PRIVATE SECTION.
DATA mt_meta_fields TYPE STANDARD TABLE OF abap_compname.
DATA mo_db TYPE REF TO zcl_abapgit_persistence_db .
METHODS from_xml
IMPORTING
!iv_repo_xml_string TYPE string
RETURNING
VALUE(rs_repo) TYPE zif_abapgit_persistence=>ty_repo_xml
RAISING
zcx_abapgit_exception .
METHODS to_xml
IMPORTING
!is_repo TYPE zif_abapgit_persistence=>ty_repo
RETURNING
VALUE(rv_repo_xml_string) TYPE string .
METHODS get_next_id
RETURNING
VALUE(rv_next_repo_id) TYPE zif_abapgit_persistence=>ty_content-value
RAISING
zcx_abapgit_exception .
METHODS get_repo_from_content
IMPORTING
is_content TYPE zif_abapgit_persistence=>ty_content
RETURNING
VALUE(rs_result) TYPE zif_abapgit_persistence=>ty_repo
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_PERSISTENCE_REPO IMPLEMENTATION.
METHOD constructor.
DATA ls_dummy_meta_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask.
DATA ls_dummy_meta TYPE zif_abapgit_persistence=>ty_repo_xml.
DATA lo_type_meta_mask TYPE REF TO cl_abap_structdescr.
DATA lo_type_meta TYPE REF TO cl_abap_structdescr.
FIELD-SYMBOLS <ls_comp> LIKE LINE OF lo_type_meta_mask->components.
" Collect actual list of fields in repo meta data (used in update_meta)
lo_type_meta_mask ?= cl_abap_structdescr=>describe_by_data( ls_dummy_meta_mask ).
lo_type_meta ?= cl_abap_structdescr=>describe_by_data( ls_dummy_meta ).
LOOP AT lo_type_meta_mask->components ASSIGNING <ls_comp>.
APPEND <ls_comp>-name TO mt_meta_fields.
ENDLOOP.
mo_db = zcl_abapgit_persistence_db=>get_instance( ).
ENDMETHOD.
METHOD from_xml.
DATA: lv_xml TYPE string.
lv_xml = iv_repo_xml_string.
* fix downward compatibility
REPLACE ALL OCCURRENCES OF '<_--28C_TYPE_REPO_--29>' IN lv_xml WITH '<REPO>'.
REPLACE ALL OCCURRENCES OF '</_--28C_TYPE_REPO_--29>' IN lv_xml WITH '</REPO>'.
CALL TRANSFORMATION id
OPTIONS value_handling = 'accept_data_loss'
SOURCE XML lv_xml
RESULT repo = rs_repo.
* automatic migration of old fields
* todo, keep for transition period until 2022-12-31, then remove all of these
FIND FIRST OCCURRENCE OF '</HEAD_BRANCH><WRITE_PROTECT>X</WRITE_PROTECT>' IN lv_xml.
IF sy-subrc = 0.
rs_repo-local_settings-write_protected = abap_true.
ENDIF.
FIND FIRST OCCURRENCE OF '<IGNORE_SUBPACKAGES>X</IGNORE_SUBPACKAGES></REPO>' IN lv_xml.
IF sy-subrc = 0.
rs_repo-local_settings-ignore_subpackages = abap_true.
ENDIF.
FIND FIRST OCCURRENCE OF '<SERIALIZE_MASTER_LANG_ONLY>X</SERIALIZE_MASTER_LANG_ONLY>' IN lv_xml.
IF sy-subrc = 0.
rs_repo-local_settings-main_language_only = abap_true.
ENDIF.
IF rs_repo IS INITIAL.
zcx_abapgit_exception=>raise( 'Inconsistent repo metadata' ).
ENDIF.
ENDMETHOD.
METHOD get_next_id.
* todo: Lock the complete persistence in order to prevent concurrent repo-creation
* however the current approach will most likely work in almost all cases
DATA: lt_content TYPE zif_abapgit_persistence=>ty_contents.
FIELD-SYMBOLS: <ls_content> LIKE LINE OF lt_content.
rv_next_repo_id = 1.
lt_content = mo_db->list_by_type( zcl_abapgit_persistence_db=>c_type_repo ).
LOOP AT lt_content ASSIGNING <ls_content>.
IF <ls_content>-value >= rv_next_repo_id.
rv_next_repo_id = <ls_content>-value + 1.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = rv_next_repo_id
IMPORTING
output = rv_next_repo_id.
ENDMETHOD.
METHOD get_repo_from_content.
MOVE-CORRESPONDING from_xml( is_content-data_str ) TO rs_result.
IF rs_result-local_settings-write_protected = abap_false AND
zcl_abapgit_factory=>get_environment( )->is_repo_object_changes_allowed( ) = abap_false.
rs_result-local_settings-write_protected = abap_true.
ENDIF.
rs_result-key = is_content-value.
ENDMETHOD.
METHOD rewrite_repo_meta.
DATA lv_old_blob TYPE string.
DATA lv_new_blob TYPE string.
DATA ls_repo_meta TYPE zif_abapgit_persistence=>ty_repo.
lv_old_blob = mo_db->read(
iv_type = zcl_abapgit_persistence_db=>c_type_repo
iv_value = iv_repo_key ).
MOVE-CORRESPONDING from_xml( lv_old_blob ) TO ls_repo_meta.
lv_new_blob = to_xml( ls_repo_meta ).
mo_db->update(
iv_type = zcl_abapgit_persistence_db=>c_type_repo
iv_value = iv_repo_key
iv_data = lv_new_blob ).
ENDMETHOD.
METHOD to_xml.
DATA: ls_xml TYPE zif_abapgit_persistence=>ty_repo_xml.
MOVE-CORRESPONDING is_repo TO ls_xml.
CALL TRANSFORMATION id
SOURCE repo = ls_xml
RESULT XML rv_repo_xml_string.
ENDMETHOD.
METHOD zif_abapgit_persist_repo_cs~delete.
mo_db->delete(
iv_type = zcl_abapgit_persistence_db=>c_type_repo_csum
iv_value = iv_key ).
ENDMETHOD.
METHOD zif_abapgit_persist_repo_cs~read.
rv_cs_blob = mo_db->read(
iv_type = zcl_abapgit_persistence_db=>c_type_repo_csum
iv_value = iv_key ).
ENDMETHOD.
METHOD zif_abapgit_persist_repo_cs~update.
mo_db->modify(
iv_type = zcl_abapgit_persistence_db=>c_type_repo_csum
iv_value = iv_key
iv_data = iv_cs_blob ).
ENDMETHOD.
METHOD zif_abapgit_persist_repo~add.
DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo,
lv_repo_as_xml TYPE string.
ls_repo-url = iv_url.
ls_repo-branch_name = iv_branch_name.
ls_repo-package = iv_package.
ls_repo-offline = iv_offline.
ls_repo-created_by = sy-uname.
GET TIME STAMP FIELD ls_repo-created_at.
ls_repo-dot_abapgit = is_dot_abapgit.
ls_repo-local_settings-display_name = iv_display_name.
lv_repo_as_xml = to_xml( ls_repo ).
rv_key = get_next_id( ).
mo_db->add( iv_type = zcl_abapgit_persistence_db=>c_type_repo
iv_value = rv_key
iv_data = lv_repo_as_xml ).
ENDMETHOD.
METHOD zif_abapgit_persist_repo~delete.
DATA: lo_background TYPE REF TO zcl_abapgit_persist_background.
CREATE OBJECT lo_background.
lo_background->delete( iv_key ).
mo_db->delete( iv_type = zcl_abapgit_persistence_db=>c_type_repo
iv_value = iv_key ).
ENDMETHOD.
METHOD zif_abapgit_persist_repo~exists.
DATA lt_keys TYPE zif_abapgit_persistence=>ty_repo_keys.
DATA lt_content TYPE zif_abapgit_persistence=>ty_contents.
APPEND iv_key TO lt_keys.
lt_content = mo_db->list_by_keys(
it_keys = lt_keys
iv_type = zcl_abapgit_persistence_db=>c_type_repo ).
rv_yes = boolc( lines( lt_content ) > 0 ).
ENDMETHOD.
METHOD zif_abapgit_persist_repo~list.
DATA: lt_content TYPE zif_abapgit_persistence=>ty_contents,
ls_content LIKE LINE OF lt_content,
ls_repo LIKE LINE OF rt_repos.
lt_content = mo_db->list_by_type( zcl_abapgit_persistence_db=>c_type_repo ).
LOOP AT lt_content INTO ls_content.
ls_repo = get_repo_from_content( ls_content ).
INSERT ls_repo INTO TABLE rt_repos.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_persist_repo~list_by_keys.
DATA: lt_content TYPE zif_abapgit_persistence=>ty_contents,
ls_content LIKE LINE OF lt_content,
ls_repo LIKE LINE OF rt_repos.
lt_content = mo_db->list_by_keys(
it_keys = it_keys
iv_type = zcl_abapgit_persistence_db=>c_type_repo ).
LOOP AT lt_content INTO ls_content.
ls_repo = get_repo_from_content( ls_content ).
INSERT ls_repo INTO TABLE rt_repos.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_persist_repo~lock.
mo_db->lock( iv_mode = iv_mode
iv_type = zcl_abapgit_persistence_db=>c_type_repo
iv_value = iv_key ).
ENDMETHOD.
METHOD zif_abapgit_persist_repo~read.
DATA lt_repo TYPE zif_abapgit_persistence=>ty_repos.
lt_repo = zif_abapgit_persist_repo~list( ).
READ TABLE lt_repo INTO rs_repo WITH KEY key = iv_key.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE zcx_abapgit_not_found.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_persist_repo~update_metadata.
DATA:
lv_blob TYPE zif_abapgit_persistence=>ty_content-data_str,
ls_persistent_meta TYPE zif_abapgit_persistence=>ty_repo.
FIELD-SYMBOLS <lv_field> LIKE LINE OF mt_meta_fields.
FIELD-SYMBOLS <lg_dst> TYPE any.
FIELD-SYMBOLS <lg_src> TYPE any.
FIELD-SYMBOLS <lv_changed> TYPE abap_bool.
ASSERT NOT iv_key IS INITIAL.
IF is_change_mask IS INITIAL.
RETURN.
ENDIF.
" Validations
IF is_change_mask-url = abap_true AND is_meta-url IS INITIAL.
zcx_abapgit_exception=>raise( 'update, url empty' ).
ENDIF.
ls_persistent_meta = zcl_abapgit_repo_srv=>get_instance( )->get( iv_key )->ms_data.
" Update
LOOP AT mt_meta_fields ASSIGNING <lv_field>.
ASSIGN COMPONENT <lv_field> OF STRUCTURE is_change_mask TO <lv_changed>.
ASSERT sy-subrc = 0.
CHECK <lv_changed> = abap_true.
ASSIGN COMPONENT <lv_field> OF STRUCTURE ls_persistent_meta TO <lg_dst>.
ASSERT sy-subrc = 0.
ASSIGN COMPONENT <lv_field> OF STRUCTURE is_meta TO <lg_src>.
ASSERT sy-subrc = 0.
<lg_dst> = <lg_src>.
ENDLOOP.
lv_blob = to_xml( ls_persistent_meta ).
mo_db->update( iv_type = zcl_abapgit_persistence_db=>c_type_repo
iv_value = iv_key
iv_data = lv_blob ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
19276,
13274,
62,
260,
7501,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
48006,
9782,
1961,
198,
220,
10188,
9864,
1847,
48167,
1677,
5258,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
69,
9548,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
19276,
396,
62,
260,
7501,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
19276,
396,
62,
260,
7501,
62,
6359,
764,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
198,
220,
220,
220,
337,
36252,
50,
28183,
62,
260,
7501,
62,
28961,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
260,
7501,
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,
1662,
62,
9275,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
45079,
62,
28961,
62,
25747,
41876,
49053,
9795,
43679,
3963,
450,
499,
62,
5589,
3672,
13,
198,
220,
220,
220,
42865,
6941,
62,
9945,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
19276,
13274,
62,
9945,
764,
628,
220,
220,
220,
337,
36252,
50,
422,
62,
19875,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
260,
7501,
62,
19875,
62,
8841,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
260,
7501,
8,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
62,
19875,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
284,
62,
19875,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
260,
7501,
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,
260,
7501,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
260,
7501,
62,
19875,
62,
8841,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
19545,
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,
19545,
62,
260,
7501,
62,
312,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
11299,
12,
8367,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
260,
7501,
62,
6738,
62,
11299,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
11299,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
11299,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
20274,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
47,
4877,
8808,
18310,
62,
2200,
16402,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
42865,
43979,
62,
67,
13513,
62,
28961,
62,
27932,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
62,
28961,
62,
27932,
13,
198,
220,
220,
220,
42865,
43979,
62,
67,
13513,
62,
28961,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
62,
19875,
13,
198,
220,
220,
220,
42865,
2376,
62,
4906,
62,
28961,
62,
27932,
220,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
7249,
20147,
81,
13,
198,
220,
220,
220,
42865,
2376,
62,
4906,
62,
28961,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
7249,
20147,
81,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1279,
7278,
62,
5589,
29,
34178,
48920,
3963,
2376,
62,
4906,
62,
28961,
62,
27932,
3784,
5589,
3906,
13,
628,
220,
220,
220,
366,
9745,
4036,
1351,
286,
7032,
287,
29924,
13634,
1366,
357,
1484,
287,
4296,
62,
28961,
8,
198,
220,
220,
220,
2376,
62,
4906,
62,
28961,
62,
27932,
5633,
28,
537,
62,
397,
499,
62,
7249,
20147,
81,
14804,
20147,
4892,
62,
1525,
62,
7890,
7,
43979,
62,
67,
13513,
62,
28961,
62,
27932,
6739,
198,
220,
220,
220,
2376,
62,
4906,
62,
28961,
220,
220,
220,
220,
220,
5633,
28,
537,
62,
397,
499,
62,
7249,
20147,
81,
14804,
20147,
4892,
62,
1525,
62,
7890,
7,
43979,
62,
67,
13513,
62,
28961,
6739,
198,
220,
220,
220,
17579,
3185,
5161,
2376,
62,
4906,
62,
28961,
62,
27932,
3784,
5589,
3906,
24994,
3528,
15871,
1279,
7278,
62,
5589,
28401,
198,
220,
220,
220,
220,
220,
43504,
10619,
1279,
7278,
62,
5589,
29,
12,
3672,
5390,
45079,
62,
28961,
62,
25747,
13,
198,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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N 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_page~on_event
REDEFINITION .
PROTECTED SECTION.
CLASS-METHODS parse_commit_request
IMPORTING
!it_postdata TYPE cnht_post_data_tab
EXPORTING
!eg_fields TYPE any .
METHODS render_content
REDEFINITION .
METHODS scripts
REDEFINITION .
PRIVATE SECTION.
DATA: mo_repo TYPE REF TO zcl_abapgit_repo_online,
mo_stage TYPE REF TO zcl_abapgit_stage.
METHODS:
render_menu
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html,
render_stage
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception,
render_form
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception,
render_text_input
IMPORTING iv_name TYPE string
iv_label TYPE string
iv_value TYPE string OPTIONAL
iv_max_length TYPE string OPTIONAL
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
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=>gc_crlf IN lv_string WITH lc_replace.
REPLACE ALL OCCURRENCES OF zif_abapgit_definitions=>gc_newline IN lv_string WITH lc_replace.
lt_fields = zcl_abapgit_html_action_utils=>parse_fields_upper_case_name( lv_string ).
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
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=>gc_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: lo_user TYPE REF TO zcl_abapgit_persistence_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.
* see https://git-scm.com/book/ch5-2.html
* commit messages should be max 50 characters
* body should wrap at 72 characters
lo_user = zcl_abapgit_persistence_user=>get_instance( ).
lv_user = lo_user->get_repo_git_user_name( mo_repo->get_url( ) ).
IF lv_user IS INITIAL.
lv_user = lo_user->get_default_git_user_name( ).
ENDIF.
IF lv_user IS INITIAL.
" get default from user master record
lv_user = zcl_abapgit_user_master_record=>get_instance( sy-uname )->get_name( ).
ENDIF.
lv_email = lo_user->get_repo_git_user_email( mo_repo->get_url( ) ).
IF lv_email IS INITIAL.
lv_email = lo_user->get_default_git_user_email( ).
ENDIF.
IF lv_email IS INITIAL.
" get default from user master record
lv_email = zcl_abapgit_user_master_record=>get_instance( sy-uname )->get_email( ).
ENDIF.
CREATE OBJECT ro_html.
ro_html->add( '<div class="form-container">' ).
ro_html->add( '<form id="commit_form" class="aligned-form"'
&& ' 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_max_length = lv_s_param ) ).
ro_html->add( '<div class="row">' ).
ro_html->add( '<label for="c-body">body</label>' ).
lv_body_size = lo_settings->get_commitmsg_body_size( ).
IF lv_body_size > lc_body_col_max.
lv_body_size = lc_body_col_max.
ENDIF.
ro_html->add( |<textarea id="c-body" name="body" rows="10" cols="| &&
|{ lv_body_size }"></textarea>| ).
ro_html->add( '<input type="submit" class="hidden-submit">' ).
ro_html->add( '</div>' ).
ro_html->add( '<div class="row">' ).
ro_html->add( '<span class="cell"></span>' ).
ro_html->add( '<span class="cell sub-title">Optionally,'
&& ' specify author (same as committer by default)</span>' ).
ro_html->add( '</div>' ).
ro_html->add( render_text_input( iv_name = 'author_name'
iv_label = 'author name' ) ).
ro_html->add( render_text_input( iv_name = 'author_email'
iv_label = 'author e-mail' ) ).
ro_html->add( '</form>' ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD render_menu.
DATA lo_toolbar TYPE REF TO 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_definitions=>gc_action_type-onclick
iv_opt = zif_abapgit_definitions=>gc_html_opt-strong ) ##NO_TEXT.
lo_toolbar->add( iv_act = c_action-commit_cancel
iv_txt = 'Cancel'
iv_opt = zif_abapgit_definitions=>gc_html_opt-cancel ) ##NO_TEXT.
ro_html->add( '<div class="paddings">' ).
ro_html->add( lo_toolbar->render( ) ).
ro_html->add( '</div>' ).
ENDMETHOD.
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="2">Staged files</th>').
ro_html->add( '</tr>' ).
ro_html->add( '</thead>' ).
ro_html->add( '<tbody>' ).
LOOP AT lt_stage ASSIGNING <ls_stage>.
ro_html->add( '<tr>' ).
ro_html->add( '<td class="method">' ).
ro_html->add( zcl_abapgit_stage=>method_description( <ls_stage>-method ) ).
ro_html->add( '</td>' ).
ro_html->add( '<td>' ).
ro_html->add( <ls_stage>-file-path && <ls_stage>-file-filename ).
ro_html->add( '</td>' ).
ro_html->add( '</tr>' ).
ENDLOOP.
ro_html->add( '</tbody>' ).
ro_html->add( '</table>' ).
ENDMETHOD.
METHOD render_text_input.
DATA lv_attrs TYPE string.
CREATE OBJECT ro_html.
IF iv_value IS NOT INITIAL.
lv_attrs = | value="{ iv_value }"|.
ENDIF.
IF iv_max_length IS NOT INITIAL.
lv_attrs = | maxlength="{ iv_max_length }"|.
ENDIF.
ro_html->add( '<div class="row">' ).
ro_html->add( |<label for="{ iv_name }">{ iv_label }</label>| ).
ro_html->add( |<input id="{ iv_name }" name="{ iv_name }" type="text"{ lv_attrs }>| ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD scripts.
ro_html = super->scripts( ).
ro_html->add( 'setInitialFocus("comment");' ).
ENDMETHOD.
METHOD zif_abapgit_gui_page~on_event.
DATA: ls_commit TYPE zcl_abapgit_services_git=>ty_commit_fields.
CASE iv_action.
WHEN c_action-commit_post.
parse_commit_request(
EXPORTING it_postdata = it_postdata
IMPORTING eg_fields = ls_commit ).
ls_commit-repo_key = mo_repo->get_key( ).
zcl_abapgit_services_git=>commit( is_commit = ls_commit
io_repo = mo_repo
io_stage = mo_stage ).
ev_state = zif_abapgit_definitions=>gc_event_state-go_back_to_bookmark.
WHEN c_action-commit_cancel.
ev_state = zif_abapgit_definitions=>gc_event_state-go_back.
ENDCASE.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
41509,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4589,
62,
7353,
220,
220,
41876,
4731,
26173,
8924,
705,
41509,
62,
7353,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4589,
62,
66,
21130,
41876,
4731,
26173,
8924,
705,
41509,
62,
66,
21130,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
2673,
764,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
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,
5145,
952,
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,
764,
628,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
93,
261,
62,
15596,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
21136,
62,
41509,
62,
25927,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
7353,
7890,
41876,
269,
77,
4352,
62,
7353,
62,
7890,
62,
8658,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1533,
62,
25747,
220,
220,
41876,
597,
764,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
11299,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
14750,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
6941,
62,
260,
7501,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6941,
62,
14247,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
14247,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
8543,
62,
26272,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
11,
198,
220,
220,
220,
220,
220,
8543,
62,
14247,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
8543,
62,
687,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
8543,
62,
5239,
62,
15414,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18242,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
9806,
62,
13664,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
13,
198,
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,
85,
62,
8841,
13,
198,
220,
220,
220,
45285,
11598,
11096,
440,
4093,
31302,
24181,
1546,
3963,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
36484,
62,
6098,
1652,
220,
220,
220,
3268,
300,
85,
62,
8841,
13315,
300,
66,
62,
33491,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_YDK44_INPUT .
*"--------------------------------------------------------------------
*"*"Локальный интерфейс:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
*"--------------------------------------------------------------------
* see FM YDK_CONVERSION_EXIT_REGISTER
PERFORM input USING '44' input CHANGING output.
ENDFUNCTION.
| [
42296,
4177,
2849,
7102,
43717,
62,
6369,
2043,
62,
35755,
42,
2598,
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,
2598,
6,
5128,
5870,
15567,
2751,
5072,
13,
198,
1677,
8068,
4944,
4177,
2849,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_UT_PG_ACCESSOR_FACTORY definition
public
final
create public .
public section.
class-methods get_data_accessor
returning
value(ri_da) type ref to zif_ut_pg_data_accessor.
class-methods inject_data_accessor
importing
ii_da type ref to zif_ut_pg_data_accessor optional.
protected section.
private section.
class-data gi_da type ref to zif_ut_pg_data_accessor.
ENDCLASS.
CLASS ZCL_UT_PG_ACCESSOR_FACTORY IMPLEMENTATION.
method get_data_accessor.
if gi_da is not bound.
create object gi_da type zcl_ut_pg_data_accessor.
endif.
ri_da = gi_da.
endmethod.
method inject_data_accessor.
gi_da = ii_da.
endmethod.
ENDCLASS.
| [
4871,
1168,
5097,
62,
3843,
62,
6968,
62,
26861,
7597,
1581,
62,
37,
10659,
15513,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
628,
220,
1171,
2665,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
7890,
62,
15526,
273,
198,
220,
220,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
7,
380,
62,
6814,
8,
2099,
1006,
284,
1976,
361,
62,
315,
62,
6024,
62,
7890,
62,
15526,
273,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
8677,
62,
7890,
62,
15526,
273,
198,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
6814,
2099,
1006,
284,
1976,
361,
62,
315,
62,
6024,
62,
7890,
62,
15526,
273,
11902,
13,
628,
220,
6861,
2665,
13,
198,
220,
2839,
2665,
13,
198,
220,
220,
220,
1398,
12,
7890,
308,
72,
62,
6814,
2099,
1006,
284,
1976,
361,
62,
315,
62,
6024,
62,
7890,
62,
15526,
273,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
3843,
62,
6968,
62,
26861,
7597,
1581,
62,
37,
10659,
15513,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
651,
62,
7890,
62,
15526,
273,
13,
198,
220,
220,
220,
611,
308,
72,
62,
6814,
318,
407,
5421,
13,
198,
220,
220,
220,
220,
220,
2251,
2134,
308,
72,
62,
6814,
2099,
1976,
565,
62,
315,
62,
6024,
62,
7890,
62,
15526,
273,
13,
198,
220,
220,
220,
45762,
13,
198,
220,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_XTT_FILE_SMW0 definition
public
final
create public .
public section.
interfaces ZIF_XTT_FILE .
methods CONSTRUCTOR
importing
!IV_OBJID type CSEQUENCE default SY-CPROG .
protected section.
private section.
types:
tyt_wwwparams TYPE SORTED TABLE OF wwwparams WITH UNIQUE KEY name .
data MS_KEY type WWWDATATAB .
data MT_WWWPARAMS type tyt_wwwparams .
methods GET_PARAM
importing
!IV_NAME type WWWPARAMS-NAME
returning
value(RV_VALUE) type STRING .
ENDCLASS.
CLASS ZCL_XTT_FILE_SMW0 IMPLEMENTATION.
method CONSTRUCTOR.
" Save key into
ms_key-relid = 'MI'.
ms_key-objid = iv_objid.
" Tech info
SELECT * INTO TABLE mt_wwwparams
FROM wwwparams
WHERE relid = ms_key-relid
AND objid = ms_key-objid.
endmethod.
method GET_PARAM.
FIELD-SYMBOLS:
<ls_param> LIKE LINE OF mt_wwwparams.
" Just for optimisation
READ TABLE mt_wwwparams ASSIGNING <ls_param>
WITH TABLE KEY name = iv_name.
" @see wwwparams db table
IF sy-subrc = 0.
rv_value = <ls_param>-value.
ENDIF.
endmethod.
METHOD zif_xtt_file~get_content.
DATA:
lt_text TYPE w3htmltabtype,
lt_bin TYPE w3mimetabtype,
lv_file_size TYPE i.
FIELD-SYMBOLS:
<lt_table> TYPE STANDARD TABLE.
CLEAR:
ev_as_string,
ev_as_xstring.
" Read by key
CALL FUNCTION 'WWWDATA_IMPORT'
EXPORTING
key = ms_key
TABLES
html = lt_text
mime = lt_bin
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
zcx_xtt_exception=>raise_dump( iv_message = 'Could not load file'(001) ).
ENDIF.
" Text or binary
IF ms_key-relid = 'HT'.
ASSIGN lt_text TO <lt_table>.
ELSE.
ASSIGN lt_bin TO <lt_table>.
ENDIF.
" Detect file size
lv_file_size = me->get_param( 'filesize' ).
" Result as a xstring
IF ev_as_xstring IS REQUESTED.
ev_as_xstring = zcl_eui_conv=>binary_to_xstring(
it_table = <lt_table>
iv_length = lv_file_size ).
RETURN.
ENDIF.
" Result as a string. if ev_as_STRING Is Requested
ev_as_string = zcl_eui_conv=>binary_to_string(
it_table = <lt_table>
iv_length = lv_file_size ).
ENDMETHOD.
METHOD zif_xtt_file~get_name.
DATA:
lv_ext TYPE string.
" Read from parameters
rv_name = me->get_param( 'filename' ).
lv_ext = me->get_param( 'fileextension' ).
" Return only file name
zcl_eui_file=>split_file_path(
EXPORTING
iv_fullpath = rv_name
IMPORTING
ev_file_noext = rv_name ).
" Sometimes path too long for extension
CONCATENATE rv_name lv_ext INTO rv_name.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
55,
15751,
62,
25664,
62,
12310,
54,
15,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
5064,
62,
55,
15751,
62,
25664,
764,
628,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
9864,
41,
2389,
2099,
327,
5188,
10917,
18310,
4277,
19704,
12,
34,
4805,
7730,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
628,
220,
3858,
25,
198,
220,
220,
220,
1259,
83,
62,
2503,
37266,
41876,
311,
9863,
1961,
43679,
3963,
7324,
37266,
13315,
4725,
33866,
8924,
35374,
1438,
764,
628,
220,
1366,
6579,
62,
20373,
2099,
13505,
22332,
1404,
1404,
6242,
764,
198,
220,
1366,
19308,
62,
17947,
25527,
1503,
40834,
2099,
1259,
83,
62,
2503,
37266,
764,
628,
220,
5050,
17151,
62,
27082,
2390,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
20608,
2099,
13505,
25527,
1503,
40834,
12,
20608,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
49,
53,
62,
39488,
8,
2099,
19269,
2751,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
55,
15751,
62,
25664,
62,
12310,
54,
15,
30023,
2538,
10979,
6234,
13,
628,
198,
24396,
7102,
46126,
1581,
13,
198,
220,
366,
12793,
1994,
656,
198,
220,
13845,
62,
2539,
12,
2411,
312,
796,
705,
8895,
4458,
198,
220,
13845,
62,
2539,
12,
26801,
312,
796,
21628,
62,
26801,
312,
13,
628,
220,
366,
9634,
7508,
198,
220,
33493,
1635,
39319,
43679,
45079,
62,
2503,
37266,
198,
220,
16034,
7324,
37266,
198,
220,
33411,
823,
312,
796,
13845,
62,
2539,
12,
2411,
312,
198,
220,
220,
220,
5357,
26181,
312,
796,
13845,
62,
2539,
12,
26801,
312,
13,
198,
437,
24396,
13,
628,
198,
24396,
17151,
62,
27082,
2390,
13,
198,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
198,
220,
220,
1279,
7278,
62,
17143,
29,
220,
220,
34178,
48920,
3963,
45079,
62,
2503,
37266,
13,
198,
220,
366,
2329,
329,
6436,
5612,
198,
220,
20832,
43679,
45079,
62,
2503,
37266,
24994,
3528,
15871,
1279,
7278,
62,
17143,
29,
198,
220,
220,
13315,
43679,
35374,
1438,
796,
21628,
62,
3672,
13,
198,
220,
366,
2488,
3826,
7324,
37266,
20613,
3084,
198,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
374,
85,
62,
8367,
796,
1279,
7278,
62,
17143,
29,
12,
8367,
13,
198,
220,
23578,
5064,
13,
198,
437,
24396,
13,
628,
198,
49273,
1976,
361,
62,
742,
83,
62,
7753,
93,
1136,
62,
11299,
13,
198,
220,
42865,
25,
198,
220,
220,
220,
300,
83,
62,
5239,
220,
220,
220,
220,
220,
41876,
266,
18,
19211,
2528,
397,
4906,
11,
198,
220,
220,
220,
300,
83,
62,
8800,
220,
220,
220,
220,
220,
220,
41876,
266,
18,
76,
38813,
397,
4906,
11,
198,
220,
220,
220,
300,
85,
62,
7753,
62,
7857,
41876,
1312,
13,
198,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
198,
220,
220,
1279,
2528,
62,
11487,
29,
220,
220,
41876,
49053,
9795,
43679,
13,
628,
220,
30301,
1503,
25,
198,
220,
220,
819,
62,
292,
62,
8841,
11,
198,
220,
220,
819,
62,
292,
62,
87,
8841,
13,
628,
220,
366,
4149,
416,
1994,
198,
220,
42815,
29397,
4177,
2849,
705,
17947,
22332,
13563,
62,
3955,
15490,
6,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
1994,
220,
220,
220,
796,
13845,
62,
2539,
198,
220,
220,
220,
309,
6242,
28378,
198,
220,
220,
220,
220,
220,
27711,
220,
220,
796,
300,
83,
62,
5239,
198,
220,
220,
220,
220,
220,
285,
524,
220,
220,
796,
300,
83,
62,
8800,
198,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
440,
4221,
4877,
796,
352,
13,
198,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
1976,
66,
87,
62,
742,
83,
62,
1069,
4516,
14804,
40225,
62,
39455,
7,
21628,
62,
20500,
796,
705,
23722,
407,
3440,
2393,
6,
7,
8298,
8,
6739,
198,
220,
23578,
5064,
13,
628,
220,
366,
8255,
393,
13934,
198,
220,
16876,
13845,
62,
2539,
12,
2411,
312,
796,
705,
6535,
4458,
198,
220,
220,
220,
24994,
16284,
300,
83,
62,
5239,
5390,
1279,
2528,
62,
11487,
28401,
198,
220,
17852,
5188,
13,
198,
220,
220,
220,
24994,
16284,
300,
83,
62,
8800,
220,
5390,
1279,
2528,
62,
11487,
28401,
198,
220,
23578,
5064,
13,
628,
220,
366,
35874,
2393,
2546,
198,
220,
300,
85,
62,
7753,
62,
7857,
796,
502,
3784,
1136,
62,
17143,
7,
705,
16624,
1096,
6,
6739,
628,
220,
366,
25414,
355,
257,
2124,
8841,
198,
220,
16876,
819,
62,
292,
62,
87,
8841,
3180,
4526,
35780,
1961,
13,
198,
220,
220,
220,
819,
62,
292,
62,
87,
8841,
796,
1976,
565,
62,
68,
9019,
62,
42946,
14804,
39491,
62,
1462,
62,
87,
8841,
7,
198,
220,
220,
220,
220,
340,
62,
11487,
220,
796,
1279,
2528,
62,
11487,
29,
198,
220,
220,
220,
220,
21628,
62,
13664,
796,
300,
85,
62,
7753,
62,
7857,
6739,
198,
220,
220,
220,
30826,
27064,
13,
198,
220,
23578,
5064,
13,
628,
220,
366,
25414,
355,
257,
4731,
13,
611,
819,
62,
292,
62,
18601,
2751,
1148,
19390,
276,
198,
220,
819,
62,
292,
62,
8841,
796,
1976,
565,
62,
68,
9019,
62,
42946,
14804,
39491,
62,
1462,
62,
8841,
7,
198,
220,
220,
340,
62,
11487,
220,
796,
1279,
2528,
62,
11487,
29,
198,
220,
220,
21628,
62,
13664,
796,
300,
85,
62,
7753,
62,
7857,
6739,
198,
10619,
49273,
13,
628,
198,
49273,
1976,
361,
62,
742,
83,
62,
7753,
93,
1136,
62,
3672,
13,
198,
220,
42865,
25,
198,
220,
220,
300,
85,
62,
2302,
41876,
4731,
13,
628,
220,
366,
4149,
422,
10007,
198,
220,
374,
85,
62,
3672,
796,
502,
3784,
1136,
62,
17143,
7,
705,
34345,
6,
6739,
198,
220,
300,
85,
62,
2302,
220,
796,
502,
3784,
1136,
62,
17143,
7,
705,
7753,
2302,
3004,
6,
6739,
628,
220,
366,
8229,
691,
2393,
1438,
198,
220,
1976,
565,
62,
68
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_abapgit_gui_router DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS on_event
IMPORTING iv_action TYPE clike
iv_prev_page TYPE clike
iv_getdata TYPE clike OPTIONAL
it_postdata TYPE cnht_post_data_tab OPTIONAL
EXPORTING ei_page TYPE REF TO zif_abapgit_gui_page
ev_state TYPE i
RAISING zcx_abapgit_exception zcx_abapgit_cancel.
PRIVATE SECTION.
METHODS get_page_diff
IMPORTING iv_getdata TYPE clike
iv_prev_page TYPE clike
RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_page
RAISING zcx_abapgit_exception.
METHODS get_page_branch_overview
IMPORTING iv_getdata TYPE clike
RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_page
RAISING zcx_abapgit_exception.
METHODS get_page_stage
IMPORTING iv_getdata TYPE clike
RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_page
RAISING zcx_abapgit_exception.
METHODS get_page_background
IMPORTING iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_page
RAISING zcx_abapgit_exception.
METHODS get_page_playground
RETURNING VALUE(ri_page) TYPE REF TO zif_abapgit_gui_page
RAISING zcx_abapgit_exception zcx_abapgit_cancel.
ENDCLASS.
CLASS zcl_abapgit_gui_router IMPLEMENTATION.
METHOD get_page_background.
CREATE OBJECT ri_page TYPE zcl_abapgit_gui_page_bkg
EXPORTING
iv_key = iv_key.
ENDMETHOD.
METHOD get_page_branch_overview.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
lo_page TYPE REF TO zcl_abapgit_gui_page_boverview,
lv_key TYPE zif_abapgit_persistence=>ty_repo-key.
lv_key = iv_getdata.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( lv_key ).
CREATE OBJECT lo_page
EXPORTING
io_repo = lo_repo.
ri_page = lo_page.
ENDMETHOD.
METHOD get_page_diff.
DATA: ls_file TYPE zif_abapgit_definitions=>ty_file,
ls_object TYPE zif_abapgit_definitions=>ty_item,
lo_page TYPE REF TO zcl_abapgit_gui_page_diff,
lv_key TYPE zif_abapgit_persistence=>ty_repo-key.
zcl_abapgit_html_action_utils=>file_obj_decode(
EXPORTING
iv_string = iv_getdata
IMPORTING
ev_key = lv_key
eg_file = ls_file
eg_object = ls_object ).
CREATE OBJECT lo_page
EXPORTING
iv_key = lv_key
is_file = ls_file
is_object = ls_object.
ri_page = lo_page.
ENDMETHOD.
METHOD get_page_playground.
DATA: lv_class_name TYPE string,
lv_cancel TYPE abap_bool,
li_popups TYPE REF TO zif_abapgit_popups.
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
li_popups->run_page_class_popup(
IMPORTING
ev_name = lv_class_name
ev_cancel = lv_cancel ).
IF lv_cancel = abap_true.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
TRY.
CREATE OBJECT ri_page TYPE (lv_class_name).
CATCH cx_sy_create_object_error.
zcx_abapgit_exception=>raise( |Cannot create page class { lv_class_name }| ).
ENDTRY.
ENDMETHOD.
METHOD get_page_stage.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
lv_seed TYPE string,
lo_stage_page TYPE REF TO zcl_abapgit_gui_page_stage,
lo_code_inspector_page TYPE REF TO zcl_abapgit_gui_page_code_insp.
FIND FIRST OCCURRENCE OF '=' IN iv_getdata.
IF sy-subrc <> 0. " Not found ? -> just repo key in params
lv_key = iv_getdata.
ELSE.
zcl_abapgit_html_action_utils=>stage_decode(
EXPORTING iv_getdata = iv_getdata
IMPORTING ev_key = lv_key
ev_seed = lv_seed ).
ENDIF.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( lv_key ).
IF lo_repo->get_local_settings( )-code_inspector_check_variant IS NOT INITIAL.
CREATE OBJECT lo_code_inspector_page
EXPORTING
io_repo = lo_repo.
ri_page = lo_code_inspector_page.
ELSE.
" force refresh on stage, to make sure the latest local and remote files are used
lo_repo->refresh( ).
CREATE OBJECT lo_stage_page
EXPORTING
io_repo = lo_repo
iv_seed = lv_seed.
ri_page = lo_stage_page.
ENDIF.
ENDMETHOD.
METHOD on_event.
DATA: lv_url TYPE string,
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
ls_item TYPE zif_abapgit_definitions=>ty_item.
lv_key = iv_getdata. " TODO refactor
lv_url = iv_getdata. " TODO refactor
CASE iv_action.
" General PAGE routing
WHEN zif_abapgit_definitions=>c_action-go_main. " Go Main page
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_main.
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_explore. " Go Explore page
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_explore.
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_repo_overview. " Go Repository overview
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_repo_over.
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_db. " Go DB util page
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_db.
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_debuginfo.
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_debuginfo.
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_settings.
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_settings.
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_background_run. " Go background run page
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_bkg_run.
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_background. " Go Background page
ei_page = get_page_background( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_diff. " Go Diff page
ei_page = get_page_diff(
iv_getdata = iv_getdata
iv_prev_page = iv_prev_page ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page_w_bookmark.
WHEN zif_abapgit_definitions=>c_action-go_stage. " Go Staging page
ei_page = get_page_stage( iv_getdata ).
IF iv_prev_page = 'PAGE_DIFF'.
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
ELSE.
ev_state = zif_abapgit_definitions=>c_event_state-new_page_w_bookmark.
ENDIF.
WHEN zif_abapgit_definitions=>c_action-go_branch_overview. " Go repo branch overview
ei_page = get_page_branch_overview( iv_getdata ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_playground. " Create playground page
ei_page = get_page_playground( ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-go_tutorial. " Go to tutorial
zcl_abapgit_persistence_user=>get_instance( )->set_repo_show( '' ). " Clear show_id
ev_state = zif_abapgit_definitions=>c_event_state-re_render. " Assume we are on main page
" SAP GUI actions
WHEN zif_abapgit_definitions=>c_action-jump. " Open object editor
zcl_abapgit_html_action_utils=>jump_decode(
EXPORTING iv_string = iv_getdata
IMPORTING ev_obj_type = ls_item-obj_type
ev_obj_name = ls_item-obj_name ).
zcl_abapgit_objects=>jump( ls_item ).
ev_state = zif_abapgit_definitions=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-jump_pkg. " Open SE80
zcl_abapgit_services_repo=>open_se80( |{ iv_getdata }| ).
ev_state = zif_abapgit_definitions=>c_event_state-no_more_act.
" DB actions
WHEN zif_abapgit_definitions=>c_action-db_edit.
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_db_edit
EXPORTING
is_key = zcl_abapgit_html_action_utils=>dbkey_decode( iv_getdata ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
IF iv_prev_page = 'PAGE_DB_DIS'.
ev_state = zif_abapgit_definitions=>c_event_state-new_page_replacing.
ENDIF.
WHEN zif_abapgit_definitions=>c_action-db_display.
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_db_dis
EXPORTING
is_key = zcl_abapgit_html_action_utils=>dbkey_decode( iv_getdata ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
" ABAPGIT services actions
WHEN zif_abapgit_definitions=>c_action-abapgit_home. " Go abapGit homepage
zcl_abapgit_services_abapgit=>open_abapgit_homepage( ).
ev_state = zif_abapgit_definitions=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-abapgit_install. " Install abapGit
zcl_abapgit_services_abapgit=>install_abapgit( ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
" REPOSITORY services actions
WHEN zif_abapgit_definitions=>c_action-repo_newoffline. " New offline repo
zcl_abapgit_services_repo=>new_offline( ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_refresh. " Repo refresh
zcl_abapgit_services_repo=>refresh( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_syntax_check.
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_syntax
EXPORTING
io_repo = zcl_abapgit_repo_srv=>get_instance( )->get( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-repo_code_inspector.
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_code_insp
EXPORTING
io_repo = zcl_abapgit_repo_srv=>get_instance( )->get( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-repo_purge. " Repo remove & purge all objects
zcl_abapgit_services_repo=>purge( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_remove. " Repo remove
zcl_abapgit_services_repo=>remove( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_newonline.
zcl_abapgit_services_repo=>new_online( lv_url ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN 'install'. " 'install' is for explore page
zcl_abapgit_services_repo=>new_online( lv_url ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_refresh_checksums. " Rebuil local checksums
zcl_abapgit_services_repo=>refresh_local_checksums( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_toggle_fav. " Toggle repo as favorite
zcl_abapgit_services_repo=>toggle_favorite( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_transport_to_branch.
zcl_abapgit_services_repo=>transport_to_branch( iv_repository_key = lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_settings.
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_repo_sett
EXPORTING
io_repo = zcl_abapgit_repo_srv=>get_instance( )->get( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
" ZIP services actions
WHEN zif_abapgit_definitions=>c_action-zip_import. " Import repo from ZIP
zcl_abapgit_zip=>import( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-zip_export. " Export repo as ZIP
zcl_abapgit_zip=>export( zcl_abapgit_repo_srv=>get_instance( )->get( lv_key ) ).
ev_state = zif_abapgit_definitions=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-zip_package. " Export package as ZIP
zcl_abapgit_zip=>export_package( ).
ev_state = zif_abapgit_definitions=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-zip_transport. " Export transport as ZIP
zcl_abapgit_transport=>zip( ).
ev_state = zif_abapgit_definitions=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-zip_object. " Export object as ZIP
zcl_abapgit_zip=>export_object( ).
ev_state = zif_abapgit_definitions=>c_event_state-no_more_act.
" Remote ORIGIN manipulations
WHEN zif_abapgit_definitions=>c_action-repo_remote_attach. " Remote attach
zcl_abapgit_services_repo=>remote_attach( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_remote_detach. " Remote detach
zcl_abapgit_services_repo=>remote_detach( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-repo_remote_change. " Remote change
zcl_abapgit_services_repo=>remote_change( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
" GIT actions
WHEN zif_abapgit_definitions=>c_action-git_pull. " GIT Pull
zcl_abapgit_services_git=>pull( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-git_reset. " GIT Reset
zcl_abapgit_services_git=>reset( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-git_branch_create. " GIT Create new branch
zcl_abapgit_services_git=>create_branch( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-git_branch_delete. " GIT Delete remote branch
zcl_abapgit_services_git=>delete_branch( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-git_branch_switch. " GIT Switch branch
zcl_abapgit_services_git=>switch_branch( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-go_tag_overview. " GIT Tag overview
zcl_abapgit_services_git=>tag_overview( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-git_tag_create. " GIT Tag create
CREATE OBJECT ei_page TYPE zcl_abapgit_gui_page_tag
EXPORTING
io_repo = zcl_abapgit_repo_srv=>get_instance( )->get( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-new_page.
WHEN zif_abapgit_definitions=>c_action-git_tag_delete. " GIT Tag create
zcl_abapgit_services_git=>delete_tag( lv_key ).
zcl_abapgit_services_repo=>refresh( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
WHEN zif_abapgit_definitions=>c_action-git_tag_switch. " GIT Switch Tag
zcl_abapgit_services_git=>switch_tag( lv_key ).
ev_state = zif_abapgit_definitions=>c_event_state-re_render.
"Others
WHEN OTHERS.
ev_state = zif_abapgit_definitions=>c_event_state-not_handled.
ENDCASE.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
472,
353,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
319,
62,
15596,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
2673,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
47050,
62,
7700,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1136,
7890,
220,
220,
41876,
537,
522,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
7353,
7890,
220,
41876,
269,
77,
4352,
62,
7353,
62,
7890,
62,
8658,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
304,
72,
62,
7700,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
5219,
220,
220,
220,
220,
41876,
1312,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
7700,
62,
26069,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1136,
7890,
220,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
47050,
62,
7700,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
7700,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
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,
651,
62,
7700,
62,
1671,
3702,
62,
2502,
1177,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1136,
7890,
220,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
7700,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
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,
651,
62,
7700,
62,
14247,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
1136,
7890,
220,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
7700,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
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,
651,
62,
7700,
62,
25249,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
7700,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
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,
651,
62,
7700,
62,
1759,
2833,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
7700,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
1976,
66,
87,
62,
397,
499,
18300,
62,
66,
21130,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
472,
353,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
7700,
62,
25249,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
374,
72,
62,
7700,
41876,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
65,
10025,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2539,
796,
21628,
62,
2539,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
7700,
62,
1671,
3702,
62,
2502,
1177,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
260,
7501,
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,
2376,
62,
7700,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
2127,
332,
1177,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
2539,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
13,
628,
198,
220,
220,
220,
300,
85,
62,
2539,
796,
21628,
62,
1136,
7890,
13,
628,
220,
220,
220,
2376,
62,
260,
7501,
5633,
28,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
14804,
1136,
62,
39098,
7,
1267,
3784,
1136,
7,
300,
85,
62,
2539,
6739,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
2376,
62,
7700,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
260,
7501,
796,
2376,
62,
260,
7501,
13,
628,
220,
220,
220,
374,
72,
62,
7700,
796,
2376,
62,
7700,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
7700,
62,
26069,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
7753
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*----------------------------------------------------------------------*
* 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_42.
METHODS:
setup,
export_import FOR TESTING,
test001_01 FOR TESTING,
test001_02 FOR TESTING.
ENDCLASS. "lcl_Test
*----------------------------------------------------------------------*
* 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 test001_01.
* ===========
_code 'CASE lv_foo.'.
_code ' WHEN 1.'.
_code ' WRITE lv_bar.'.
_code ' WHEN 2.'.
_code ' WRITE lv_moo.'.
_code 'ENDCASE.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result ).
ENDMETHOD. "test1
METHOD test001_02.
* ===========
_code 'CASE lv_foo.'.
_code ' WHEN 1.'.
_code ' WRITE lv_bar.'.
_code ' WHEN 2.'.
_code ' WRITE lv_bar.'.
_code 'ENDCASE.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals( exp = '001'
act = ms_result-code ).
ENDMETHOD. "test001_02
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,
41876,
4731,
62,
11487,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13845,
62,
20274,
41876,
629,
557,
301,
62,
324,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6941,
62,
9122,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
64,
420,
62,
9122,
62,
3682,
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,
1332,
8298,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
8298,
62,
2999,
7473,
43001,
2751,
13,
198,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
75,
565,
62,
14402,
198,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
300,
565,
62,
14402,
30023,
2538,
10979,
6234,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
300,
83,
565,
62,
9288,
30023,
2538,
10979,
6234,
13,
198,
9,
36658,
25609,
28,
628,
220,
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,
1332,
8298,
62,
486,
13,
198,
9,
796,
2559,
855,
628,
220,
220,
220,
4808,
8189,
705,
34,
11159,
300,
85,
62,
21943,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
42099,
352,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
220,
220,
44423,
300,
85,
62,
5657,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
42099,
362,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
220,
220,
44423,
300,
85,
62,
76,
2238,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
1677,
9697,
11159,
2637,
13,
628,
220,
220,
220,
13845,
62,
20274,
796,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
9122,
7,
45079,
62,
8189,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
36733,
7,
13845,
62,
20274,
6739,
628,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9288,
16,
628,
220,
337,
36252,
1332,
8298,
62,
2999,
13,
198,
9,
796,
2559,
855,
628,
220,
220,
220,
4808,
8189,
705,
34,
11159,
300,
85,
62,
21943,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
42099,
352,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
220,
220,
44423,
300,
85,
62,
5657,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
42099,
362,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
220,
220,
220,
44423,
300,
85,
62,
5657,
2637,
13,
198,
220,
220,
220,
4808,
8189,
705,
1677,
9697,
11159,
2637,
13,
628,
220,
220,
220,
13845,
62,
20274,
796,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
9122,
7,
45079,
62,
8189,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
1033,
796,
705,
8298,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
719,
796,
13845,
62,
20274,
12,
8189,
6739,
628,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9288,
8298,
62,
2999,
198,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
75,
565,
62,
14402,
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,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_AUTEX_SELECTIONS definition
public
final
create public .
" https://answers.sap.com/articles/13361225/unit-tests-in-an-sap-customer-environment.html?childToView=13388132#comment-13388132
public section.
interfaces ZIF_AUTEX_SELECTIONS .
PROTECTED SECTION.
PRIVATE SECTION.
DATA
parameters TYPE zif_autex_selections~ty_parameters.
ENDCLASS.
CLASS ZCL_AUTEX_SELECTIONS IMPLEMENTATION.
METHOD zif_autex_selections~add_modify_parameter.
FIELD-SYMBOLS <parameter> TYPE zif_autex_selections~ty_parameter.
IF line_exists( parameters[ name = i_parameter-name ] ).
ASSIGN parameters[ name = i_parameter-name ] TO <parameter>.
ELSE.
INSERT INITIAL LINE INTO TABLE parameters ASSIGNING <parameter>.
ENDIF.
MOVE-CORRESPONDING i_parameter TO <parameter>.
ENDMETHOD.
METHOD zif_autex_selections~get_parameter.
IF line_exists( parameters[ name = i_name ] ).
DATA(parameter) = parameters[ name = i_name ].
ASSIGN parameter-value->* TO FIELD-SYMBOL(<parameter>).
ASSIGN i_ref_to_parameter->* TO FIELD-SYMBOL(<report_parameter>).
<report_parameter> = <parameter>.
ENDIF.
ENDMETHOD.
METHOD zif_autex_selections~get_parameters.
r_result = parameters.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
39371,
6369,
62,
46506,
11053,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
628,
220,
366,
3740,
1378,
504,
86,
364,
13,
82,
499,
13,
785,
14,
26845,
14,
1485,
2623,
1065,
1495,
14,
20850,
12,
41989,
12,
259,
12,
272,
12,
82,
499,
12,
23144,
263,
12,
38986,
13,
6494,
30,
9410,
2514,
7680,
28,
1485,
30460,
19924,
2,
23893,
12,
1485,
30460,
19924,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
5064,
62,
39371,
6369,
62,
46506,
11053,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
198,
220,
220,
220,
220,
220,
10007,
41876,
1976,
361,
62,
2306,
1069,
62,
19738,
507,
93,
774,
62,
17143,
7307,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
39371,
6369,
62,
46506,
11053,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
2306,
1069,
62,
19738,
507,
93,
2860,
62,
4666,
1958,
62,
17143,
2357,
13,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1279,
17143,
2357,
29,
41876,
1976,
361,
62,
2306,
1069,
62,
19738,
507,
93,
774,
62,
17143,
2357,
13,
198,
220,
220,
220,
16876,
1627,
62,
1069,
1023,
7,
10007,
58,
1438,
796,
1312,
62,
17143,
2357,
12,
3672,
2361,
6739,
198,
220,
220,
220,
220,
220,
24994,
16284,
10007,
58,
1438,
796,
1312,
62,
17143,
2357,
12,
3672,
2361,
5390,
1279,
17143,
2357,
28401,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
29194,
17395,
3268,
2043,
12576,
48920,
39319,
43679,
10007,
24994,
3528,
15871,
1279,
17143,
2357,
28401,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
13070,
6089,
12,
44879,
19535,
47,
18672,
2751,
1312,
62,
17143,
2357,
5390,
1279,
17143,
2357,
28401,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
2306,
1069,
62,
19738,
507,
93,
1136,
62,
17143,
2357,
13,
198,
220,
220,
220,
16876,
1627,
62,
1069,
1023,
7,
10007,
58,
1438,
796,
1312,
62,
3672,
2361,
6739,
198,
220,
220,
220,
220,
220,
42865,
7,
17143,
2357,
8,
796,
10007,
58,
1438,
796,
1312,
62,
3672,
20740,
198,
220,
220,
220,
220,
220,
24994,
16284,
11507,
12,
8367,
3784,
9,
5390,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
17143,
2357,
29,
737,
198,
220,
220,
220,
220,
220,
24994,
16284,
1312,
62,
5420,
62,
1462,
62,
17143,
2357,
3784,
9,
5390,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
13116,
62,
17143,
2357,
29,
737,
198,
220,
220,
220,
220,
220,
1279,
13116,
62,
17143,
2357,
29,
796,
1279,
17143,
2357,
28401,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
2306,
1069,
62,
19738,
507,
93,
1136,
62,
17143,
7307,
13,
198,
220,
220,
220,
374,
62,
20274,
796,
10007,
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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
1
] |
INTERFACE zif_abapgit_persistence PUBLIC.
TYPES:
ty_type TYPE c LENGTH 12 .
TYPES:
ty_value TYPE c LENGTH 12 .
TYPES:
BEGIN OF ty_content,
type TYPE ty_type,
value TYPE ty_value,
data_str TYPE string,
END OF ty_content .
TYPES:
tt_content TYPE SORTED TABLE OF ty_content WITH UNIQUE KEY type value .
TYPES: BEGIN OF ty_local_checksum,
item TYPE zif_abapgit_definitions=>ty_item,
files TYPE zif_abapgit_definitions=>ty_file_signatures_tt,
END OF ty_local_checksum.
TYPES:
BEGIN OF ty_local_settings,
ignore_subpackages TYPE abap_bool,
write_protected TYPE abap_bool,
only_local_objects TYPE abap_bool,
END OF ty_local_settings.
TYPES: ty_local_checksum_tt TYPE STANDARD TABLE OF ty_local_checksum WITH DEFAULT KEY.
TYPES: BEGIN OF ty_repo_xml,
url TYPE string,
branch_name TYPE string,
sha1 TYPE zif_abapgit_definitions=>ty_sha1,
package TYPE devclass,
offline TYPE sap_bool,
local_checksums TYPE ty_local_checksum_tt,
dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit,
head_branch TYPE string, " HEAD symref of the repo, master branch
local_settings TYPE ty_local_settings,
END OF ty_repo_xml.
TYPES: BEGIN OF ty_repo,
key TYPE zif_abapgit_persistence=>ty_value.
INCLUDE TYPE ty_repo_xml.
TYPES: END OF ty_repo.
TYPES: tt_repo TYPE STANDARD TABLE OF ty_repo WITH DEFAULT KEY.
TYPES: tt_repo_keys TYPE STANDARD TABLE OF ty_repo-key WITH DEFAULT KEY.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
44731,
13,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
4906,
220,
41876,
269,
406,
49494,
1105,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
8367,
41876,
269,
406,
49494,
1105,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
11299,
11,
198,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
41876,
1259,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
1988,
220,
220,
220,
41876,
1259,
62,
8367,
11,
198,
220,
220,
220,
220,
220,
1366,
62,
2536,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
11299,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
256,
83,
62,
11299,
41876,
311,
9863,
1961,
43679,
3963,
1259,
62,
11299,
13315,
4725,
33866,
8924,
35374,
2099,
1988,
764,
628,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
12001,
62,
42116,
388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2378,
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,
220,
3696,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
62,
12683,
6691,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
12001,
62,
42116,
388,
13,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
12001,
62,
33692,
11,
198,
220,
220,
220,
220,
220,
8856,
62,
7266,
43789,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
3551,
62,
24326,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
691,
62,
12001,
62,
48205,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
12001,
62,
33692,
13,
628,
220,
24412,
47,
1546,
25,
1259,
62,
12001,
62,
42116,
388,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
12001,
62,
42116,
388,
13315,
5550,
38865,
35374,
13,
628,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
260,
7501,
62,
19875,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19016,
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,
220,
8478,
62,
3672,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
427,
64,
16,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5301,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18043,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
31841,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
42116,
5700,
41876,
1259,
62,
12001,
62,
42116,
388,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16605,
62,
397,
499,
18300,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
14804,
774,
62,
26518,
62,
397,
499,
18300,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1182,
62,
1671,
3702,
220,
220,
220,
220,
41876,
4731,
11,
220,
220,
366,
39837,
5659,
5420,
286,
262,
29924,
11,
4958,
8478,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1957,
62,
33692,
220,
41876,
1259,
62,
12001,
62,
33692,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
260,
7501,
62,
19875,
13,
628,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
260,
7501,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
8367,
13,
198,
220,
220,
220,
220,
220,
3268,
5097,
52,
7206,
41876,
1259,
62,
260,
7501,
62,
19875,
13,
198,
220,
24412,
47,
1546,
25,
23578,
3963,
1259,
62,
260,
7501,
13,
198,
220,
24412,
47,
1546,
25,
256,
83,
62,
260,
7501,
41876,
49053,
9795,
43679,
3963,
1259,
62,
260,
7501,
13315,
5550,
38865,
35374,
13,
198,
220,
24412,
47,
1546,
25,
256,
83,
62,
260,
7501,
62,
13083,
41876,
49053,
9795,
43679,
3963,
1259,
62,
260,
7501,
12,
2539,
13315,
5550,
38865,
35374,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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>Flight Price Engine</h1>
"!
"! If no parameters are applied, the price of every flight will be recalculated.
"!
"! @parameter it_flight | Set of Flights which should be recalculate prices
FUNCTION flight_travel_calc_price.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IT_FLIGHT) TYPE T_FLIGHT OPTIONAL
*"----------------------------------------------------------------------
TYPES BEGIN OF ty_seats_occupied.
INCLUDE TYPE flight.
TYPES distance TYPE connection-distance.
TYPES distance_unit TYPE connection-distance_unit.
TYPES END OF ty_seats_occupied.
TYPES: tt_flight TYPE STANDARD TABLE OF flight WITH KEY client carrier_id connection_id flight_date.
DATA: lt_seats_occupied TYPE TABLE OF ty_seats_occupied.
IF it_flight IS SUPPLIED.
SELECT FROM booking AS booking
JOIN connection AS connection
ON booking~carrier_id = connection~carrier_id
AND booking~connection_id = connection~connection_id
JOIN flight AS flight
ON booking~carrier_id = flight~carrier_id
AND booking~connection_id = flight~connection_id
AND booking~flight_date = flight~flight_date
JOIN @it_flight AS t
ON booking~carrier_id = t~carrier_id
AND booking~connection_id = t~connection_id
FIELDS booking~carrier_id, booking~connection_id, booking~flight_date, COUNT(*) AS seats_occupied,
connection~distance, connection~distance_unit,
flight~currency_code, flight~plane_type_id, flight~seats_max, flight~seats_occupied
GROUP BY booking~carrier_id, booking~connection_id, booking~flight_date,
connection~distance, connection~distance_unit,
flight~currency_code, flight~plane_type_id, flight~seats_max, flight~seats_occupied
INTO CORRESPONDING FIELDS OF TABLE @lt_seats_occupied.
ELSE.
SELECT FROM booking AS booking
JOIN connection AS connection
ON booking~carrier_id = connection~carrier_id
AND booking~connection_id = connection~connection_id
JOIN flight AS flight
ON booking~carrier_id = flight~carrier_id
AND booking~connection_id = flight~connection_id
AND booking~flight_date = flight~flight_date
FIELDS booking~carrier_id, booking~connection_id, booking~flight_date, COUNT(*) AS seats_occupied,
connection~distance, connection~distance_unit,
flight~currency_code, flight~plane_type_id, flight~seats_max, flight~seats_occupied
GROUP BY booking~carrier_id, booking~connection_id, booking~flight_date,
connection~distance, connection~distance_unit,
flight~currency_code, flight~plane_type_id, flight~seats_max, flight~seats_occupied
INTO CORRESPONDING FIELDS OF TABLE @lt_seats_occupied.
ENDIF.
LOOP AT lt_seats_occupied ASSIGNING FIELD-SYMBOL(<seats_occupied>).
<seats_occupied>-price = ( ( 3 * ( <seats_occupied>-seats_occupied * 100 DIV <seats_occupied>-seats_max ) ** 2 DIV 400 ) + 25 ) * <seats_occupied>-distance DIV 100.
ENDLOOP.
UPDATE flight
FROM TABLE @(
CORRESPONDING tt_flight(
lt_seats_occupied MAPPING
carrier_id = carrier_id
connection_id = connection_id
flight_date = flight_date
price = price
currency_code = currency_code
plane_type_id = plane_type_id
seats_max = seats_max
seats_occupied = seats_occupied
)
).
ENDFUNCTION.
| [
40484,
1279,
71,
16,
29,
43069,
7886,
7117,
3556,
71,
16,
29,
198,
40484,
198,
40484,
1002,
645,
10007,
389,
5625,
11,
262,
2756,
286,
790,
5474,
481,
307,
42653,
49262,
13,
198,
40484,
198,
40484,
2488,
17143,
2357,
340,
62,
22560,
930,
5345,
286,
1610,
2337,
543,
815,
307,
42653,
3129,
378,
4536,
198,
42296,
4177,
2849,
5474,
62,
35927,
62,
9948,
66,
62,
20888,
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,
3697,
9947,
8,
41876,
220,
309,
62,
3697,
9947,
39852,
2849,
1847,
198,
9,
1,
10097,
23031,
628,
220,
24412,
47,
1546,
347,
43312,
3963,
1259,
62,
325,
1381,
62,
28756,
13,
198,
220,
3268,
5097,
52,
7206,
41876,
5474,
13,
198,
220,
24412,
47,
1546,
220,
220,
5253,
220,
220,
220,
220,
220,
220,
41876,
4637,
12,
30246,
13,
198,
220,
24412,
47,
1546,
220,
220,
5253,
62,
20850,
220,
41876,
4637,
12,
30246,
62,
20850,
13,
198,
220,
24412,
47,
1546,
23578,
3963,
1259,
62,
325,
1381,
62,
28756,
13,
628,
220,
24412,
47,
1546,
25,
256,
83,
62,
22560,
41876,
49053,
9795,
43679,
3963,
5474,
13315,
35374,
5456,
11920,
62,
312,
4637,
62,
312,
5474,
62,
4475,
13,
628,
220,
42865,
25,
300,
83,
62,
325,
1381,
62,
28756,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
3963,
1259,
62,
325,
1381,
62,
28756,
13,
628,
220,
16876,
340,
62,
22560,
3180,
19549,
49094,
13,
198,
220,
220,
220,
33493,
16034,
25452,
7054,
25452,
198,
220,
220,
220,
220,
220,
32357,
1268,
220,
220,
220,
220,
4637,
7054,
4637,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6177,
220,
25452,
93,
7718,
5277,
62,
312,
220,
220,
220,
796,
4637,
93,
7718,
5277,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
25452,
93,
38659,
62,
312,
796,
4637,
93,
38659,
62,
312,
198,
220,
220,
220,
220,
220,
32357,
1268,
220,
220,
220,
220,
5474,
7054,
5474,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6177,
220,
25452,
93,
7718,
5277,
62,
312,
220,
220,
220,
796,
5474,
93,
7718,
5277,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
25452,
93,
38659,
62,
312,
796,
5474,
93,
38659,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
25452,
93,
22560,
62,
4475,
220,
220,
796,
5474,
93,
22560,
62,
4475,
198,
220,
220,
220,
220,
220,
32357,
1268,
220,
220,
220,
220,
2488,
270,
62,
22560,
7054,
256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6177,
220,
25452,
93,
7718,
5277,
62,
312,
220,
220,
220,
796,
256,
93,
7718,
5277,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
25452,
93,
38659,
62,
312,
796,
256,
93,
38659,
62,
312,
198,
220,
220,
220,
220,
220,
18930,
3698,
5258,
220,
220,
25452,
93,
7718,
5277,
62,
312,
11,
25452,
93,
38659,
62,
312,
11,
25452,
93,
22560,
62,
4475,
11,
327,
28270,
7,
28104,
7054,
8632,
62,
28756,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4637,
93,
30246,
11,
4637,
93,
30246,
62,
20850,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5474,
93,
34415,
62,
8189,
11,
5474,
93,
14382,
62,
4906,
62,
312,
11,
5474,
93,
325,
1381,
62,
9806,
11,
5474,
93,
325,
1381,
62,
28756,
198,
220,
220,
220,
220,
220,
44441,
11050,
25452,
93,
7718,
5277,
62,
312,
11,
25452,
93,
38659,
62,
312,
11,
25452,
93,
22560,
62,
4475,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4637,
93,
30246,
11,
4637,
93,
30246,
62,
20850,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5474,
93,
34415,
62,
8189,
11,
5474,
93,
14382,
62,
4906,
62,
312,
11,
5474,
93,
325,
1381,
62,
9806,
11,
5474,
93,
325,
1381,
62,
28756,
198,
220,
220,
220,
220,
220,
39319,
23929,
19535,
47,
18672,
2751,
18930,
3698,
5258,
3963,
43679,
2488,
2528,
62,
325,
1381,
62,
28756,
13,
198,
220,
17852,
5188,
13,
198,
220,
220,
220,
33493,
16034,
25452,
7054,
25452,
198,
220,
220,
220,
220,
220,
32357,
1268,
220,
220,
220,
220,
4637,
7054,
4637,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6177,
220,
25452,
93,
7718,
5277,
62,
312,
220,
220,
220,
796,
4637,
93,
7718,
5277,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
25452,
93,
38659,
62,
312,
796,
4637,
93,
38659,
62,
312,
198,
220,
220,
220,
220,
220,
32357,
1268,
220,
220,
220,
220,
5474,
7054,
5474,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6177,
220,
25452,
93,
7718,
5277,
62,
312,
220,
220,
220,
796,
5474,
93,
7718,
5277,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
25452,
93,
38659,
62,
312,
796,
5474,
93,
38659,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
25452,
93,
22560,
62,
4475,
220,
220,
796,
5474,
93,
22560,
62,
4475,
198,
220,
220,
220,
220,
220,
18930,
3698,
5258,
220,
220,
25452,
93,
7718,
5277,
62,
312,
11,
25452,
93,
38659,
62,
312,
11,
25452,
93,
22560,
62,
4475,
11,
327,
28270,
7,
28104,
7054,
8632,
62,
28756,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4637
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*---------------------------------------------------------------------*
* view related FORM routines
* generation date: 29.04.2021 at 15:33:13
* 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,
2808,
13,
3023,
13,
1238,
2481,
379,
1315,
25,
2091,
25,
1485,
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 zcl_abapgit_object_susc DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
ENDCLASS.
CLASS zcl_abapgit_object_susc IMPLEMENTATION.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown. " todo
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_oclss TYPE tobc-oclss.
SELECT SINGLE oclss FROM tobc INTO lv_oclss
WHERE oclss = ms_item-obj_name.
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: ls_tobc TYPE tobc,
ls_tobct TYPE tobct.
SELECT SINGLE * FROM tobc INTO ls_tobc
WHERE oclss = ms_item-obj_name.
IF sy-subrc <> 0.
RETURN.
ENDIF.
SELECT SINGLE * FROM tobct INTO ls_tobct
WHERE oclss = ms_item-obj_name
AND langu = mv_language.
io_xml->add( iv_name = 'TOBC'
ig_data = ls_tobc ).
io_xml->add( iv_name = 'TOBCT'
ig_data = ls_tobct ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
* see function group SUSA
DATA: ls_tobc TYPE tobc,
lv_objectname TYPE e071-obj_name,
ls_tobct TYPE tobct.
io_xml->read( EXPORTING iv_name = 'TOBC'
CHANGING cg_data = ls_tobc ).
io_xml->read( EXPORTING iv_name = 'TOBCT'
CHANGING cg_data = ls_tobct ).
tadir_insert( iv_package ).
lv_objectname = ms_item-obj_name.
CALL FUNCTION 'SUSR_COMMEDITCHECK'
EXPORTING
objectname = lv_objectname
transobjecttype = 'C'.
INSERT tobc FROM ls_tobc. "#EC CI_SUBRC
* ignore sy-subrc as all fields are key fields
MODIFY tobct FROM ls_tobct. "#EC CI_SUBRC
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lv_objclass TYPE tobc-oclss.
lv_objclass = ms_item-obj_name.
CALL FUNCTION 'SUSR_DELETE_OBJECT_CLASS'
EXPORTING
objclass = lv_objclass.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
DATA: lv_objclass TYPE tobc-oclss.
lv_objclass = ms_item-obj_name.
CALL FUNCTION 'SUSR_SHOW_OBJECT_CLASS'
EXPORTING
objclass = lv_objclass.
ENDMETHOD.
METHOD zif_abapgit_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null.
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
82,
16241,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
82,
16241,
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,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
198,
220,
220,
220,
374,
85,
62,
7220,
796,
269,
62,
7220,
62,
34680,
13,
366,
284,
4598,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
38993,
13,
198,
220,
220,
220,
44608,
62,
38993,
796,
651,
62,
38993,
7,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1069,
1023,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
38679,
824,
41876,
10773,
66,
12,
38679,
824,
13,
628,
198,
220,
220,
220,
33493,
311,
2751,
2538,
267,
565,
824,
16034,
10773,
66,
39319,
300,
85,
62,
38679,
824,
198,
220,
220,
220,
220,
220,
33411,
267,
565,
824,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
220,
220,
374,
85,
62,
30388,
796,
20512,
66,
7,
827,
12,
7266,
6015,
796,
657,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
46911,
1096,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
83,
672,
66,
220,
41876,
10773,
66,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
83,
672,
310,
41876,
10773,
310,
13,
628,
198,
220,
220,
220,
33493,
311,
2751,
2538,
1635,
16034,
10773,
66,
39319,
43979,
62,
83,
672,
66,
198,
220,
220,
220,
220,
220,
33411,
267,
565,
824,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
33493,
311,
2751,
2538,
1635,
16034,
10773,
310,
39319,
43979,
62,
83,
672,
310,
198,
220,
220,
220,
220,
220,
33411,
267,
565,
824,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
5357,
2786,
796,
285,
85,
62,
16129,
13,
628,
220,
220,
220,
33245,
62,
19875,
3784,
2860,
7,
21628,
62,
3672,
796,
705,
10468,
2749,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45329,
62,
7890,
796,
43979,
62,
83,
672,
66,
6739,
198,
220,
220,
220,
33245,
62,
19875,
3784,
2860,
7,
21628,
62,
3672,
796,
705,
10468,
2749,
51,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45329,
62,
7890,
796,
43979,
62,
83,
672,
310,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
8906,
48499,
1096,
13,
198,
9,
766,
2163,
1448,
311,
14053,
628,
220,
220,
220,
42865,
25,
43979,
62,
83,
672,
66,
220,
220,
220,
220,
220,
220,
41876,
10773,
66,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
15252,
3672,
41876,
304,
2998,
16,
12,
26801,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
83,
672,
310,
220,
220,
220,
220,
220,
41876,
10773,
310,
13,
628,
198,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
10468,
2749,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
269,
70,
62,
7890,
796,
43979,
62,
83,
672,
66,
6739,
198,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
10468,
2749,
51,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
269,
70,
62,
7890,
796,
43979,
62,
83,
672,
310,
6739,
628,
220,
220,
220,
36264,
343,
62,
28463,
7,
21628,
62,
26495,
6739,
628,
220,
220,
220,
300,
85,
62,
15252,
3672,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
50,
2937,
49,
62,
9858,
44,
24706,
50084,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
3672,
220,
220,
220,
220,
220,
796,
300,
85,
62,
15252,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
1007,
15252,
4906,
796,
705,
34,
4458,
628,
220,
220,
220,
29194,
17395,
10773,
66,
16034,
43979,
62,
83,
672,
66,
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,
25113,
2943,
14514,
62,
50,
10526,
7397,
198,
9,
8856,
827,
12,
7266,
6015,
355,
477,
7032,
389,
1994,
7032,
628,
220,
220,
220,
19164,
5064,
56,
10773,
310,
16034,
43979,
62,
83,
672,
310,
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,
25113,
2943,
14514,
62,
50,
10526,
7397,
198,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
42865,
25
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_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
ORDER BY PRIMARY KEY.
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.
zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input(
iv_tcode = 'SD11'
it_bdcdata = lt_bdcdata ).
rv_exit = abap_true.
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_59.
METHODS:
setup,
export_import FOR TESTING,
test001_01 FOR TESTING,
test001_02 FOR TESTING,
test001_03 FOR TESTING,
test002_01 FOR TESTING,
test002_02 FOR TESTING,
test002_03 FOR TESTING,
test002_04 FOR TESTING,
test002_05 FOR TESTING,
test002_06 FOR TESTING,
test002_07 FOR TESTING,
test003_01 FOR TESTING,
test003_02 FOR TESTING,
test004_01 FOR TESTING,
test004_02 FOR TESTING.
ENDCLASS. "lcl_Test
*----------------------------------------------------------------------*
* 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 ).
zcl_aoc_unit_test=>set_object_type( 'CLAS' ).
ENDMETHOD.
METHOD export_import.
zcl_aoc_unit_test=>export_import( mo_check ).
ENDMETHOD.
METHOD test001_01.
_code 'IF foo = bar.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result-code ).
ENDMETHOD.
METHOD test001_02.
_code 'WRITE foobar.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result-code ).
ENDMETHOD.
METHOD test001_03.
_code 'IF moo boo.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals(
act = ms_result-code
exp = '001' ).
ENDMETHOD.
METHOD test002_01.
_code 'IF 2 = 3.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result-code ).
ENDMETHOD.
METHOD test002_02.
_code 'IF ( 2 = 3 ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals(
act = ms_result-code
exp = '002' ).
ENDMETHOD.
METHOD test002_03.
_code 'IF 2 = 3 AND ( a = b ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals(
act = ms_result-code
exp = '002' ).
ENDMETHOD.
METHOD test002_04.
_code 'IF ( 2 = 3 AND a = b ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals(
act = ms_result-code
exp = '002' ).
ENDMETHOD.
METHOD test002_05.
_code 'IF 2 = 3 AND foo = boo.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result-code ).
ENDMETHOD.
METHOD test002_06.
_code 'IF ( 2 = 3 ) AND a = b.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals(
act = ms_result-code
exp = '002' ).
ENDMETHOD.
METHOD test002_07.
_code 'IF foo = bar AND ( moo = boo OR baa = laa ).'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result-code ).
ENDMETHOD.
METHOD test003_01.
_code 'IF foo = bar AND moo = boo OR baa = laa.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_equals(
act = ms_result-code
exp = '003' ).
ENDMETHOD.
METHOD test003_02.
_code 'IF ( foo = bar AND moo = boo ) OR baa = laa.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result-code ).
ENDMETHOD.
METHOD test004_01.
_code 'IF SY-DATUM + 1 > + SY-DATUM.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result-code ).
ENDMETHOD.
METHOD test004_02.
_code 'IF SY-DATUM + 1 > - SY-DATUM.'.
ms_result = zcl_aoc_unit_test=>check( mt_code ).
cl_abap_unit_assert=>assert_initial( ms_result-code ).
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,
360,
4261,
6234,
6006,
9863,
45698,
42,
49277,
43638,
5805,
7597,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
9,
796,
25609,
18604,
628,
220,
220,
220,
42865,
25,
45079,
62,
8189,
220,
220,
41876,
4731,
62,
11487,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13845,
62,
20274,
41876,
629,
557,
301,
62,
324,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6941,
62,
9122,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
64,
420,
62,
9122,
62,
3270,
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,
1332,
8298,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
8298,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
8298,
62,
3070,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
21601,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
21601,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
21601,
62,
3070,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
21601,
62,
3023,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
21601,
62,
2713,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
21601,
62,
3312,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
21601,
62,
2998,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
11245,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
11245,
62,
2999,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
22914,
62,
486,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
1332,
22914,
62,
2999,
7473,
43001,
2751,
13,
198,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
75,
565,
62,
14402,
198,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
300,
565,
62,
14402,
30023,
2538,
10979,
6234,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
300,
83,
565,
62,
9288,
30023,
2538,
10979,
6234,
13,
198,
9,
36658,
25609,
28,
628,
220,
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,
220,
220,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
2617,
62,
15252,
62,
4906,
7,
705,
5097,
1921,
6,
6739,
198,
220,
23578,
49273,
13,
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,
1332,
8298,
62,
486,
13,
628,
220,
220,
220,
4808,
8189,
705,
5064,
22944,
796,
2318,
2637,
13,
198,
220,
220,
220,
13845,
62,
20274,
796,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
9122,
7,
45079,
62,
8189,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
36733,
7,
13845,
62,
20274,
12,
8189,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
8298,
62,
2999,
13,
628,
220,
220,
220,
4808,
8189,
705,
18564,
12709,
11511,
30973,
2637,
13,
198,
220,
220,
220,
13845,
62,
20274,
796,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
9122,
7,
45079,
62,
8189,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
36733,
7,
13845,
62,
20274,
12,
8189,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
8298,
62,
3070,
13,
628,
220,
220,
220,
4808,
8189,
705,
5064,
285,
2238,
22513,
2637,
13,
628,
220,
220,
220,
13845,
62,
20274,
796,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
9122,
7,
45079,
62,
8189,
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,
13845,
62,
20274,
12,
8189,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
8298,
6,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
21601,
62,
486,
13,
628,
220,
220,
220,
4808,
8189,
705,
5064,
362,
796,
513,
2637,
13,
628,
220,
220,
220,
13845,
62,
20274,
796,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
9122,
7,
45079,
62,
8189,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
36733,
7,
13845,
62,
20274,
12,
8189,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
21601,
62,
2999,
13,
628,
220,
220,
220,
4808,
8189,
705,
5064,
357,
362,
796,
513,
6739,
4458,
628,
220,
220,
220,
13845,
62,
20274,
796,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
9122,
7,
45079,
62,
8189,
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,
13845,
62,
20274,
12,
8189,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
21601,
6,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
21601,
62,
3070,
13,
628,
220,
220,
220,
4808,
8189,
705,
5064,
362,
796,
513,
5357,
357,
257,
796,
275,
6739,
4458,
628,
220,
220,
220,
13845,
62,
20274,
796,
1976,
565,
62,
64,
420,
62,
20850,
62,
9288,
14804,
9122,
7,
45079,
62,
8189,
6739
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_O01 .
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Module STATUS_9000 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE status_9000 OUTPUT.
DATA lt_fcode TYPE TABLE OF sy-ucomm.
* El boton de grabar solo se habilita cuando se esta
* actualizando
IF mv_mode = zif_al30_data=>cv_mode_change.
SET PF-STATUS 'P9000'.
ELSE.
APPEND 'SAVE' TO lt_fcode.
SET PF-STATUS 'P9000' EXCLUDING lt_fcode.
ENDIF.
SET TITLEBAR 'T9000'.
ENDMODULE. " STATUS_9000 OUTPUT
*&---------------------------------------------------------------------*
*& Module FIELD_DYNPRO_9000 OUTPUT
*&---------------------------------------------------------------------*
MODULE field_dynpro_9000 OUTPUT.
LOOP AT SCREEN.
* Si no hay modo de edición desactivo todos los
* elementos del grupo1 que sea igual a 'EDI' (campo de edicion).
* En el caso de los campos de texto de la aplicación lo dejo ináctivo
* para evitar que salga con "*" típico de campos de password.
* Los campos principal (group3 = 'APL') activo la entrada de datos.
IF mv_mode IS INITIAL.
IF screen-group1 = 'EDI' AND
( screen-name = 'ZAL30_T_VIEW-EXIT_CLASS' OR screen-name = 'ZAL30_T_VIEW-TEXTTABLE' ).
screen-active = 0.
ELSEIF screen-group1 = 'EDI'.
screen-invisible = 1.
ELSEIF screen-group3 = 'APL'.
screen-input = 1.
ENDIF.
* Si es el de creacion:
* Los campos del grupo3 = 'APL' (campos principal de aplicacion) los
* habilito/activo.
* Los campos del grupo2 = 'CRE' (botones de creacion) los activo.
* Los campos del grupo2 = 'BOE' (botones cuando existe la aplicación) los oculto.
* Los del grupo2 'FFI' (frame de campos de la vista) se ocultan
* Los del grupo2 'FFH' (frame de cabecera de la vista) se ocultan
ELSEIF mv_mode = zif_al30_data=>cv_mode_insert.
IF screen-group3 = 'APL'.
* screen-active = 1.
screen-input = 0.
ELSEIF screen-group2 = 'CRE'.
screen-invisible = 0.
ELSEIF screen-group2 = 'BOE'.
screen-invisible = 1.
ELSEIF screen-group2 = 'FFI'.
screen-invisible = 1.
ELSEIF screen-group2 = 'FFH' AND
( screen-name = 'ZAL30_T_VIEW-EXIT_CLASS' OR screen-name = 'ZAL30_T_VIEW-TEXTTABLE' ).
screen-active = 0.
ELSEIF screen-group2 = 'FFH'.
screen-invisible = 1.
ENDIF.
* Si se esta modificando
* Los del grupo3 'APL'(campo principal de aplicacion) se desactiva su entrada de datos
* Los del grupo2 'ENT' (campo de entrada) se habilitan.
* Los del grupo2 'BOE' (botones si existe aplicacion) se habilitan
* Los del grupo2 'CRE' (botones de creacion) se ocultan.
* Los del grupo2 'FFI' (frame de campos de la vista) se habilitan según el
* valor de la variable d_expand_fields.
* Los del grupo2 'FFH' (frame de opciones de la vista) se habilitan según el
* valor de la variable d_expand_header.
* El campo del nombre de aplicacion se deshabilita.
ELSEIF mv_mode = zif_al30_data=>cv_mode_change.
IF screen-group2 = 'BOE'.
screen-invisible = 0.
ELSEIF screen-group2 = 'CRE'.
screen-invisible = 1.
ELSEIF screen-group3 = 'APL'.
screen-input = 0.
ELSEIF screen-group2 = 'ENT'.
screen-input = 1.
* screen-output = 0.
ELSEIF screen-group2 = 'FFI'.
IF mv_expand_fields = abap_true.
screen-invisible = 0.
ELSE.
screen-invisible = 1.
ENDIF.
ELSEIF screen-group2 = 'FFH'.
IF mv_expand_header = abap_true.
screen-invisible = 0.
ELSE.
screen-invisible = 1.
ENDIF.
ENDIF.
* Si se esta visualizando..
* Los del grupo3 'APL' (campo de aplicacion) se deshabilitan.
* Los del grupo2 'BOE' (botones si existe aplicacion) se habilitan
* Los del grupo2 'CRE' (botones de creacion) se ocultan.
* Los del grupo4 'DAT' (botones que depende si el mandante se puede modificar) dependen
* de las variables globales que indidican como esta el sistema.
* Los del grupo4 'TRK' (botones que depende si el mandante se puede transportar) dependen
* de las variables globales que indidican como esta el sistema.
ELSEIF mv_mode = zif_al30_data=>cv_mode_view.
IF screen-group2 = 'BOE'.
screen-invisible = 0.
ELSEIF screen-group2 = 'CRE'.
screen-invisible = 1.
ELSEIF screen-group3 = 'APL'.
screen-input = 0.
* screen-output = 1.
ELSEIF screen-group4 = 'TRK'.
IF mv_pedir_orden = abap_true.
screen-invisible = 0.
ELSE.
screen-invisible = 1.
ENDIF.
ELSEIF screen-group4 = 'DAT'.
IF mv_perm_modif_datos = abap_true.
screen-invisible = 0.
ELSE.
screen-invisible = 1.
ENDIF.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
CLEAR d_okcode_9000.
ENDMODULE. " FIELD_DYNPRO_9000 OUTPUT
*&SPWIZARD: OUTPUT MODULE FOR TS 'TAB_FIELDS'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: SETS ACTIVE TAB
MODULE tab_fields_active_tab_set OUTPUT.
tab_fields-activetab = g_tab_fields-pressed_tab.
CASE g_tab_fields-pressed_tab.
WHEN c_tab_fields-tab1.
g_tab_fields-subscreen = '9001'.
WHEN c_tab_fields-tab2.
g_tab_fields-subscreen = '9002'.
WHEN c_tab_fields-tab3.
g_tab_fields-subscreen = '9003'.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE. "TAB_FIELDS_ACTIVE_TAB_SET OUTPUT
*&---------------------------------------------------------------------*
*& Module ALV_GEN OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE alv_gen OUTPUT.
IF mv_mode = zif_al30_data=>cv_mode_change OR
mv_mode = zif_al30_data=>cv_mode_view.
IF mo_container_gen IS NOT BOUND.
CREATE OBJECT mo_container_gen
EXPORTING
container_name = 'ALV_GEN'.
* Creo el objeto de atributos genericos
CREATE OBJECT mo_alv_gen
EXPORTING
i_parent = mo_container_gen.
* Catalogo de campos
PERFORM alv_fieldcat_gen.
* Layout
ms_layout_gen-stylefname = 'CELLTAB'.
ms_layout_gen-cwidth_opt = abap_true.
* Campos con dropdown
mo_alv_gen->set_drop_down_table(
it_drop_down_alias = mt_dropdown_gen ).
* Mostrar campos
CALL METHOD mo_alv_gen->set_table_for_first_display
EXPORTING
i_bypassing_buffer = 'X'
is_layout = ms_layout_gen
it_toolbar_excluding = mt_excluding
CHANGING
it_fieldcatalog = mt_fieldcat_gen
it_outtab = mt_fields[].
* La verificación cuando se cambie el valor
CALL METHOD mo_alv_gen->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
* Activo el evento de validación de datos
CREATE OBJECT mo_event_receiver_gen.
SET HANDLER mo_event_receiver_gen->handle_data_changed FOR mo_alv_gen.
SET HANDLER mo_event_receiver_gen->handle_toolbar FOR mo_alv_gen.
" Se lanza el evento para que pinta la barra de herramientas
mo_alv_gen->set_toolbar_interactive( ).
ELSE.
" Se vuelve a indicar que tenga en cuenta las columnas optimizadas. Hay que ponerlo antes del refresh para que funcione
mo_alv_gen->set_frontend_layout( EXPORTING is_layout = VALUE #( cwidth_opt = abap_true ) ).
CALL METHOD mo_alv_gen->refresh_table_display( EXPORTING is_stable = ms_stable ).
ENDIF.
ENDIF.
* El ALV se activa/desactiva la entrada de datos segun el modo de visualización
IF mo_alv_gen IS BOUND.
CASE mv_mode.
WHEN zif_al30_data=>cv_mode_change.
CALL METHOD mo_alv_gen->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
WHEN zif_al30_data=>cv_mode_view.
CALL METHOD mo_alv_gen->set_ready_for_input
EXPORTING
i_ready_for_input = 0.
ENDCASE.
ENDIF.
ENDMODULE. " ALV_GEN OUTPUT
*&---------------------------------------------------------------------*
*& Module ALV_TEXT OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE alv_text OUTPUT.
IF mv_mode = zif_al30_data=>cv_mode_change OR
mv_mode = zif_al30_data=>cv_mode_view.
IF mo_container_text IS NOT BOUND.
CREATE OBJECT mo_container_text
EXPORTING
container_name = 'ALV_TEXT'.
* Creo el ALV de atributos genericos
CREATE OBJECT mo_alv_text
EXPORTING
i_parent = mo_container_text.
* Catalogo de campos
PERFORM alv_fieldcat_text.
* Layout
ms_layout_text-stylefname = 'CELLTAB'.
* Mostrar campos
CALL METHOD mo_alv_text->set_table_for_first_display
EXPORTING
i_bypassing_buffer = 'X'
is_layout = ms_layout_text
it_toolbar_excluding = mt_excluding
CHANGING
it_fieldcatalog = mt_fieldcat_text
it_outtab = mt_fields_text[]
it_filter = mt_filter.
* Activo el evento de validación de datos
CREATE OBJECT mo_event_receiver_text.
SET HANDLER mo_event_receiver_text->handle_data_changed FOR mo_alv_text.
* La verificación cuando se haga enter
CALL METHOD mo_alv_text->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter. " mc_evt_modified
ELSE.
" Se vuelve a indicar que tenga en cuenta las columnas optimizadas. Hay que ponerlo antes del refresh para que funcione
mo_alv_text->set_frontend_layout( EXPORTING is_layout = VALUE #( cwidth_opt = abap_true ) ).
CALL METHOD mo_alv_text->refresh_table_display( EXPORTING is_stable = ms_stable ).
ENDIF.
ENDIF.
* El ALV se activa/desactiva la entrada de datos segun el modo de visualización
IF mo_alv_text IS BOUND.
CASE mv_mode.
WHEN zif_al30_data=>cv_mode_change.
CALL METHOD mo_alv_text->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
WHEN zif_al30_data=>cv_mode_view.
CALL METHOD mo_alv_text->set_ready_for_input
EXPORTING
i_ready_for_input = 0.
ENDCASE.
ENDIF.
ENDMODULE. " ALV_TEXT OUTPUT
*&---------------------------------------------------------------------*
*& Module TOOLBAR_FIELDS OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE toolbar_fields OUTPUT.
DATA ls_events_toolbar TYPE cntl_simple_event.
* La barra de herramientas solo se muestra en modo modificacion.
IF mv_mode = zif_al30_data=>cv_mode_change.
IF mo_cont_toolbar_fields IS NOT BOUND.
CREATE OBJECT mo_cont_toolbar_fields
EXPORTING
container_name = 'TOOLBAR_FIELDS'.
CREATE OBJECT mo_toolbar_fields
EXPORTING
parent = mo_cont_toolbar_fields.
* Añado los eventos que quiero capturar
ls_events_toolbar-eventid = cl_gui_toolbar=>m_id_function_selected.
ls_events_toolbar-appl_event = 'X'.
APPEND ls_events_toolbar TO mt_evts_toolbar_fields.
CLEAR ls_events_toolbar.
ls_events_toolbar-eventid = cl_gui_toolbar=>m_id_dropdown_clicked.
ls_events_toolbar-appl_event = 'X'.
APPEND ls_events_toolbar TO mt_evts_toolbar_fields.
CLEAR ls_events_toolbar.
* Creo el objeto que gestionara los eventos
CREATE OBJECT mo_event_toolbar_fields.
* Paso los eventos que quiero contralar a la barra de herramientas
CALL METHOD mo_toolbar_fields->set_registered_events
EXPORTING
events = mt_evts_toolbar_fields.
* Asocio los eventos a los metodos de la clase que gestiona los eventos.
SET HANDLER mo_event_toolbar_fields->on_function_selected
FOR mo_toolbar_fields.
SET HANDLER mo_event_toolbar_fields->on_dropdown_clicked
FOR mo_toolbar_fields.
* Creo un grupo de botones que asociaré a la barra de herramientas
CLEAR mt_buttongroup.
* Parametros: Codigo, icono, tipo, texto, tooltip
" Verificación de integridad de datos
PERFORM fill_button_table USING cs_toolbar_functions-check_dict icon_check cntb_btype_button space TEXT-b02.
" Sincronización de datos
PERFORM fill_button_table USING cs_toolbar_functions-sync_dict icon_generate cntb_btype_button space TEXT-b01.
" Selección de idioma
PERFORM fill_button_table USING cs_toolbar_functions-lang_menu space cntb_btype_dropdown TEXT-b03 TEXT-b03.
" Añadir campos virtuales
PERFORM fill_button_table USING cs_toolbar_functions-virtual_field icon_virtual_phio_class cntb_btype_button TEXT-b04 TEXT-b04.
" Borrar campos
PERFORM fill_button_table USING cs_toolbar_functions-delete_field icon_delete_row cntb_btype_button TEXT-b05 TEXT-b05.
* Paso los botones a la barra de herramientras
CALL METHOD mo_toolbar_fields->add_button_group
EXPORTING
data_table = mt_buttongroup
EXCEPTIONS
cntb_error_fcode = 1.
ELSE.
* Si el container de la barra esta creada lo que me aseguro que este visible.
mo_toolbar_fields->set_visible( abap_true ).
ENDIF.
ELSE.
* Si el modo no es el de modificar y ya he creado la barra entonces la oculta.
IF mo_toolbar_fields IS BOUND.
mo_toolbar_fields->set_visible( abap_false ).
ENDIF.
ENDIF.
ENDMODULE. " TOOLBAR_FIELDS OUTPUT
*&---------------------------------------------------------------------*
*& Module STATUS_9004 OUTPUT
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
MODULE status_9004 OUTPUT.
SET PF-STATUS 'P9004'.
SET TITLEBAR 'T9004'.
ENDMODULE.
| [
9,
10097,
23031,
9,
198,
8162,
1268,
5097,
52,
7206,
1168,
1847,
1270,
62,
5673,
1268,
62,
10943,
37,
62,
46,
486,
764,
198,
9,
10097,
23031,
9,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
220,
220,
19937,
220,
15486,
2937,
62,
24,
830,
220,
16289,
30076,
198,
9,
5,
10097,
30934,
9,
198,
9,
220,
220,
220,
220,
220,
220,
2420,
198,
9,
10097,
23031,
9,
198,
33365,
24212,
3722,
62,
24,
830,
16289,
30076,
13,
198,
220,
42865,
300,
83,
62,
69,
8189,
41876,
43679,
3963,
827,
12,
84,
9503,
13,
198,
198,
9,
2574,
10214,
261,
390,
5552,
283,
12199,
384,
387,
33473,
5350,
18912,
25440,
384,
1556,
64,
198,
9,
4036,
528,
25440,
198,
220,
16876,
285,
85,
62,
14171,
796,
1976,
361,
62,
282,
1270,
62,
7890,
14804,
33967,
62,
14171,
62,
3803,
13,
198,
220,
220,
220,
25823,
28223,
12,
35744,
2937,
705,
47,
24,
830,
4458,
198,
220,
17852,
5188,
13,
198,
220,
220,
220,
43504,
10619,
705,
4090,
6089,
6,
5390,
300,
83,
62,
69,
8189,
13,
198,
220,
220,
220,
25823,
28223,
12,
35744,
2937,
705,
47,
24,
830,
6,
7788,
39149,
2751,
300,
83,
62,
69,
8189,
13,
198,
220,
23578,
5064,
13,
628,
198,
220,
25823,
37977,
2538,
33,
1503,
705,
51,
24,
830,
4458,
198,
198,
10619,
33365,
24212,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15486,
2937,
62,
24,
830,
220,
16289,
30076,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
220,
220,
19937,
220,
18930,
24639,
62,
35,
40760,
31190,
62,
24,
830,
220,
16289,
30076,
198,
9,
5,
10097,
30934,
9,
198,
33365,
24212,
2214,
62,
67,
2047,
1676,
62,
24,
830,
16289,
30076,
13,
198,
220,
17579,
3185,
5161,
6374,
2200,
1677,
13,
198,
198,
9,
15638,
645,
27678,
953,
78,
390,
1225,
44070,
18840,
748,
15791,
78,
284,
37427,
22346,
198,
9,
5002,
418,
1619,
22848,
7501,
16,
8358,
5417,
45329,
723,
257,
705,
1961,
40,
6,
357,
16544,
78,
390,
1225,
47430,
737,
198,
9,
2039,
1288,
6124,
78,
390,
22346,
1413,
418,
390,
2420,
78,
390,
8591,
257,
489,
291,
32009,
18840,
2376,
390,
7639,
287,
6557,
310,
23593,
198,
9,
31215,
819,
7940,
8358,
3664,
4908,
369,
366,
9,
1,
256,
8836,
79,
3713,
390,
1413,
418,
390,
9206,
13,
198,
9,
5401,
1413,
418,
10033,
357,
8094,
18,
796,
705,
2969,
43,
11537,
1753,
78,
8591,
24481,
4763,
390,
4818,
418,
13,
198,
220,
220,
220,
16876,
285,
85,
62,
14171,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
16876,
3159,
12,
8094,
16,
796,
705,
1961,
40,
6,
5357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
357,
3159,
12,
3672,
796,
705,
57,
1847,
1270,
62,
51,
62,
28206,
12,
6369,
2043,
62,
31631,
6,
6375,
3159,
12,
3672,
796,
705,
57,
1847,
1270,
62,
51,
62,
28206,
12,
32541,
38148,
6,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
5275,
796,
657,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
5064,
3159,
12,
8094,
16,
796,
705,
1961,
40,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
259,
23504,
796,
352,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
5064,
3159,
12,
8094,
18,
796,
705,
2969,
43,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
15414,
796,
352,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
198,
9,
15638,
1658,
1288,
390,
1126,
49443,
25,
198,
9,
5401,
1413,
418,
1619,
22848,
7501,
18,
796,
705,
2969,
43,
6,
357,
16544,
418,
10033,
390,
257,
489,
291,
49443,
8,
22346,
198,
9,
387,
65,
6392,
78,
14,
15791,
78,
13,
198,
9,
5401,
1413,
418,
1619,
22848,
7501,
17,
796,
705,
43387,
6,
357,
13645,
1952,
390,
1126,
49443,
8,
22346,
1753,
78,
13,
198,
9,
5401,
1413,
418,
1619,
22848,
7501,
17,
796,
705,
8202,
36,
6,
357,
13645,
1952,
18912,
25440,
2152,
68,
8591,
257,
489,
291,
32009,
18840,
8,
22346,
267,
40820,
78,
13,
198,
9,
5401,
1619,
22848,
7501,
17,
705,
5777,
40,
6,
357,
14535,
390,
1413,
418,
390,
8591,
410,
12523,
8,
384,
267,
66,
30454,
198,
9,
5401,
1619,
22848,
7501,
17,
705,
5777,
39,
6,
357,
14535,
390,
16212,
721,
8607,
390,
8591,
410,
12523,
8,
384,
267,
66,
30454,
198,
220,
220,
220,
17852,
5188,
5064,
285,
85,
62,
14171,
796,
1976,
361,
62,
282,
1270,
62,
7890,
14804,
33967,
62,
14171,
62,
28463,
13,
628,
220,
220,
220,
220,
220,
16876,
3159,
12,
8094,
18,
796,
705,
2969,
43,
4458,
198,
9,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
5275,
796,
352,
13,
198,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
15414,
796,
657,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
5064,
3159,
12,
8094,
17,
796,
705,
43387,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
259,
23504,
796,
657,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
5064,
3159,
12,
8094,
17,
796,
705,
8202,
36,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
259,
23504,
796,
352,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
5064,
3159,
12,
8094,
17,
796,
705,
5777,
40,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
259,
23504,
796,
352,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
5064,
3159,
12,
8094,
17,
796,
705,
5777,
39,
6,
5357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
3159,
12,
3672,
796,
705,
57,
1847,
1270,
62,
51,
62,
28206,
12,
6369,
2043,
62,
31631,
6,
6375,
3159,
12,
3672,
796,
705,
57,
1847,
1270,
62,
51,
62,
28206,
12,
32541,
38148,
6,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
3159,
12,
5275,
796,
657,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
5064,
3159,
12,
8094,
17,
796,
705,
5777,
39,
4458,
198,
220,
220,
220,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class zcl_mustache_test definition
public
final
create public
for testing .
public section.
constants c_nl type c value cl_abap_char_utilities=>newline.
types:
begin of ty_dummy,
name type string,
am type abap_bool,
pm type abap_bool,
html type string,
tab type string_table,
obj type ref to zcl_mustache_utils,
begin of attr,
age type i,
male type abap_bool,
female type abap_bool,
end of attr,
end of ty_dummy,
begin of ty_size,
size type char4,
qty type i,
end of ty_size,
ty_size_tt type standard table of ty_size with default key,
begin of ty_item,
name type string,
price type string,
sizes type ty_size_tt,
end of ty_item,
ty_item_tt type standard table of ty_item with default key,
begin of ty_tag_rc,
val type string,
rc type char4,
end of ty_tag_rc,
ty_tag_rc_tt type standard table of ty_tag_rc with default key,
begin of ty_test_case,
template type string,
tokens type zif_mustache=>ty_token_tt,
output type string,
complex_test type abap_bool,
end of ty_test_case,
ty_test_case_tt type standard table of ty_test_case with default key.
class-methods get_test_case
importing iv_index type i optional
exporting ev_count type i
ev_complex_test type abap_bool
ev_template type string
et_tokens type zif_mustache=>ty_token_tt
ev_output type string.
class-methods get_test_data
exporting es_simple type ty_dummy
et_complex type zif_mustache=>ty_struc_tt.
class-methods class_constructor.
protected section.
private section.
class-data gt_test_case_stash type ty_test_case_tt.
ENDCLASS.
CLASS ZCL_MUSTACHE_TEST IMPLEMENTATION.
method class_constructor.
field-symbols: <t> like line of gt_test_case_stash,
<token> like line of <t>-tokens.
" Case 1
append initial line to gt_test_case_stash assigning <t>.
<t>-template = 'Hello {{name}}!'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `Hello `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'name'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 '!'.
<t>-output = 'Hello Anonymous network user!'.
" Case 2
append initial line to gt_test_case_stash assigning <t>.
<t>-template = 'Hello {{name}}'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `Hello `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'name'.
<t>-output = 'Hello Anonymous network user'.
" Case 3
append initial line to gt_test_case_stash assigning <t>.
<t>-template = '{{name}} Hello'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'name'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 ` Hello`.
<t>-output = 'Anonymous network user Hello'.
" Case 4
append initial line to gt_test_case_stash assigning <t>.
<t>-template = 'Good {{#pm}}afternoon{{/pm}}{{^pm}}morning{{/pm}}, {{name}}'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `Good `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-section '=' 1 'pm'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 `afternoon`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-section '!' 1 'pm'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 `morning`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `, `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'name'.
<t>-output = 'Good afternoon, Anonymous network user'.
" Case 5
append initial line to gt_test_case_stash assigning <t>.
<t>-template = 'Good {{^am}}afternoon{{/am}}{{#am}}morning{{/am}}, {{name}}'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `Good `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-section '!' 1 'am'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 `afternoon`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-section '=' 1 'am'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 `morning`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `, `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'name'.
<t>-output = 'Good afternoon, Anonymous network user'.
" Case 6
append initial line to gt_test_case_stash assigning <t>.
<t>-template = '{{!comment}}{{html}} {{{html}}} {{&html}}'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'html'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 ` `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-utag '' 1 'html'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 ` `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-utag '' 1 'html'.
<t>-output = '<tag>& <tag>& <tag>&'.
" Case 7
append initial line to gt_test_case_stash assigning <t>.
<t>-template = '{{pm}}{{=<* *>=}}<*pm*>{{xx}}<*={{ }}=*>{{pm}}'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'pm'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'pm'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `{{xx}}`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'pm'.
<t>-output = 'XX{{xx}}X'.
" Case 8
append initial line to gt_test_case_stash assigning <t>.
<t>-complex_test = abap_true.
<t>-template = 'Welcome to {{shop}}' && "c_nl &&
'Our sales:' && "c_nl &&
'{{#items}}' && "c_nl &&
'* {{name}} - ${{price}}' && "c_nl &&
' sizes: {{#sizes}}{{size}},{{/sizes}}' && "c_nl &&
'{{/items}}'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `Welcome to `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 1 'shop'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `Our sales:`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-section '=' 1 'items'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 `* `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 2 'name'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 ` - $`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 2 'price'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 ` sizes: `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-section '=' 2 'sizes'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 3 'size'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 3 `,`.
<t>-output = 'Welcome to Shopsky' && "c_nl &&
'Our sales:' && "c_nl &&
'* Boots - $99.00' && "c_nl &&
' sizes: 40,41,42,' && "c_nl &&
'* T-short - $49.00' && "c_nl &&
' sizes: S,M,L,'.
" Case 9 - newlines and lonely section
append initial line to gt_test_case_stash assigning <t>.
<t>-complex_test = abap_true.
<t>-template = 'Our sales:' && c_nl &&
` {{#items}} ` && c_nl &&
'* {{name}} - ${{price}}' && c_nl &&
` {{/items}} `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 `Our sales:`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 1 c_nl.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-section '=' 1 'items'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 `* `.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 2 'name'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 ` - $`.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 2 'price'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 c_nl.
<t>-output = 'Our sales:' && c_nl &&
'* Boots - $99.00' && c_nl &&
'* T-short - $49.00' && c_nl.
" Case 10
append initial line to gt_test_case_stash assigning <t>.
<t>-template = '{{#tab}}{{@tabline}},{{/tab}}'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-section '=' 1 'tab'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-etag '' 2 '@tabline'.
_add_mu_token <t>-tokens zif_mustache=>c_token_type-static '' 2 `,`.
<t>-output = 'line1,line2,'.
endmethod. " class_setup.
method get_test_case.
field-symbols: <t> like line of gt_test_case_stash.
if ev_count is requested.
ev_count = lines( gt_test_case_stash ).
endif.
if iv_index is initial.
return. " Nothing else requested
endif.
read table gt_test_case_stash index iv_index assigning <t>.
ev_complex_test = <t>-complex_test.
ev_template = <t>-template.
et_tokens = <t>-tokens.
ev_output = <t>-output.
endmethod. "get_test_case
method get_test_data.
field-symbols: <data> like line of et_complex,
<tab> type ty_item_tt,
<item> like line of <tab>,
<size> type ty_size.
" Simple data
es_simple-name = 'Anonymous network user'.
es_simple-am = abap_false.
es_simple-pm = abap_true.
es_simple-html = '<tag>&'.
create object es_simple-obj.
append 'line1' to es_simple-tab.
append 'line2' to es_simple-tab.
" Complex data
clear et_complex.
append initial line to et_complex assigning <data>.
<data>-name = 'shop'.
<data>-val = 'Shopsky'.
append initial line to et_complex assigning <data>.
<data>-name = 'items'.
create data <data>-dref type ty_item_tt.
assign <data>-dref->* to <tab>.
" Boots
append initial line to <tab> assigning <item>.
<item>-name = 'Boots'.
<item>-price = '99.00'.
append initial line to <item>-sizes assigning <size>.
<size>-size = '40'.
<size>-qty = 8.
append initial line to <item>-sizes assigning <size>.
<size>-size = '41'.
<size>-qty = 12.
append initial line to <item>-sizes assigning <size>.
<size>-size = '42'.
<size>-qty = 3.
"T-short
append initial line to <tab> assigning <item>.
<item>-name = 'T-short'.
<item>-price = '49.00'.
append initial line to <item>-sizes assigning <size>.
<size>-size = 'S'.
<size>-qty = 15.
append initial line to <item>-sizes assigning <size>.
<size>-size = 'M'.
<size>-qty = 23.
append initial line to <item>-sizes assigning <size>.
<size>-size = 'L'.
<size>-qty = 18.
endmethod. "get_test_data
ENDCLASS.
| [
4871,
1976,
565,
62,
27238,
4891,
62,
9288,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
198,
220,
329,
4856,
764,
628,
220,
1171,
2665,
13,
628,
220,
220,
220,
38491,
269,
62,
21283,
2099,
269,
1988,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
3605,
1370,
13,
628,
220,
220,
220,
3858,
25,
198,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
67,
13513,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
716,
220,
220,
2099,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
9114,
220,
220,
2099,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
27711,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7400,
220,
2099,
4731,
62,
11487,
11,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
220,
2099,
1006,
284,
1976,
565,
62,
27238,
4891,
62,
26791,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2221,
286,
708,
81,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2479,
220,
220,
220,
2099,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4257,
220,
220,
2099,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4048,
2099,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
886,
286,
708,
81,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
67,
13513,
11,
628,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
7857,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
2099,
1149,
19,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10662,
774,
220,
2099,
1312,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
7857,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
7857,
62,
926,
2099,
3210,
3084,
286,
1259,
62,
7857,
351,
4277,
1994,
11,
628,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
9186,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2756,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
10620,
2099,
1259,
62,
7857,
62,
926,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
9186,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
9186,
62,
926,
2099,
3210,
3084,
286,
1259,
62,
9186,
351,
4277,
1994,
11,
628,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
12985,
62,
6015,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1188,
220,
220,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
48321,
220,
220,
220,
2099,
1149,
19,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
12985,
62,
6015,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
12985,
62,
6015,
62,
926,
2099,
3210,
3084,
286,
1259,
62,
12985,
62,
6015,
351,
4277,
1994,
11,
628,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
9288,
62,
7442,
11,
198,
220,
220,
220,
220,
220,
220,
220,
11055,
220,
220,
220,
220,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
16326,
220,
220,
220,
220,
220,
220,
2099,
1976,
361,
62,
27238,
4891,
14804,
774,
62,
30001,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5072,
220,
220,
220,
220,
220,
220,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3716,
62,
9288,
2099,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
9288,
62,
7442,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
9288,
62,
7442,
62,
926,
2099,
3210,
3084,
286,
1259,
62,
9288,
62,
7442,
351,
4277,
1994,
13,
628,
198,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
9288,
62,
7442,
198,
220,
220,
220,
220,
220,
33332,
21628,
62,
9630,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
39133,
819,
62,
9127,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
41887,
62,
9288,
2099,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
28243,
220,
220,
220,
220,
2099,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
83,
482,
641,
220,
220,
220,
220,
220,
220,
2099,
1976,
361,
62,
27238,
4891,
14804,
774,
62,
30001,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
22915,
220,
220,
220,
220,
220,
220,
2099,
4731,
13,
198,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
9288,
62,
7890,
198,
220,
220,
220,
220,
220,
39133,
1658,
62,
36439,
220,
220,
2099,
1259,
62,
67,
13513,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
41887,
220,
2099,
1976,
361,
62,
27238,
4891,
14804,
774,
62,
19554,
66,
62,
926,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
1398,
62,
41571,
273,
13,
628,
198,
220,
6861,
2665,
13,
198,
220,
2839,
2665,
13,
198,
220,
220,
220,
1398,
12,
7890,
308,
83,
62,
9288,
62,
7442,
62,
301,
1077,
2099,
1259,
62,
9288,
62,
7442,
62,
926,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
44,
7759,
2246,
13909,
62,
51,
6465,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
1398,
62,
41571,
273,
13,
628,
220,
220,
220,
2214,
12,
1837,
2022,
10220,
25,
1279,
83,
29,
220,
220,
220,
220,
588,
1627,
286,
308,
83,
62,
9288,
62,
7442,
62,
301,
1077,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
30001,
29,
588,
1627,
286,
1279,
83,
29,
12,
83,
482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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_ecatt_super DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super
ABSTRACT
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_object .
ALIASES mo_files
FOR zif_abapgit_object~mo_files .
METHODS:
constructor
IMPORTING
!is_item TYPE zif_abapgit_definitions=>ty_item
!iv_language TYPE spras .
PROTECTED SECTION.
METHODS:
get_object_type ABSTRACT
RETURNING VALUE(rv_object_type) TYPE etobj_type,
get_upload ABSTRACT
RETURNING
VALUE(ro_upload) TYPE REF TO cl_apl_ecatt_upload,
get_download ABSTRACT
RETURNING
VALUE(ro_download) TYPE REF TO cl_apl_ecatt_download,
get_lock_object ABSTRACT
RETURNING
VALUE(rv_lock_object) TYPE eqeobj.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_last_changed,
luser TYPE xubname,
ldate TYPE d,
ltime TYPE t,
END OF ty_last_changed.
CONSTANTS:
BEGIN OF co_name,
version TYPE string VALUE 'VERSION' ##NO_TEXT,
versions TYPE string VALUE 'VERSIONS' ##NO_TEXT,
END OF co_name,
co_default_version TYPE etobj_ver VALUE '1' ##NO_TEXT.
CLASS-METHODS:
is_change_more_recent_than
IMPORTING
is_currently_changed TYPE ty_last_changed
is_last_changed TYPE ty_last_changed
RETURNING
VALUE(rv_is_change_more_recent) TYPE abap_bool.
DATA:
mv_object_name TYPE etobj_name.
METHODS:
get_changed_date
IMPORTING
ii_document TYPE REF TO if_ixml_document
RETURNING
VALUE(rv_changed_date) TYPE d,
get_changed_time
IMPORTING
ii_document TYPE REF TO if_ixml_document
RETURNING
VALUE(rv_changed_time) TYPE t,
get_changed_by_user
IMPORTING
ii_document TYPE REF TO if_ixml_document
RETURNING
VALUE(rv_changed_by_user) TYPE xubname,
get_change_information
IMPORTING
is_version_info TYPE etversinfo
RETURNING
VALUE(rs_change_information) TYPE ty_last_changed
RAISING
cx_ecatt_apl
zcx_abapgit_exception,
clear_attributes
CHANGING
ci_document TYPE REF TO if_ixml_document,
clear_elements
CHANGING
ci_document TYPE REF TO if_ixml_document,
get_version_from_node
IMPORTING
ii_node TYPE REF TO if_ixml_node
RETURNING
VALUE(rv_version) TYPE string,
deserialize_version
IMPORTING
ii_version_node TYPE REF TO if_ixml_node
iv_package TYPE devclass
RAISING
zcx_abapgit_exception,
serialize_version
IMPORTING
iv_version TYPE etversinfo-version
CHANGING
ci_node TYPE REF TO if_ixml_element
RAISING
cx_ecatt
zcx_abapgit_exception,
clear_element
IMPORTING
iv_name TYPE csequence
CHANGING
ci_document TYPE REF TO if_ixml_document,
serialize_versions
IMPORTING
it_version_info TYPE etversinfo_tabtype
CHANGING
ci_document TYPE REF TO if_ixml_document
RAISING
cx_ecatt
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_ECATT_SUPER IMPLEMENTATION.
METHOD clear_attributes.
DATA: lo_element TYPE REF TO if_ixml_element,
lv_object_type TYPE etobj_type.
lv_object_type = get_object_type( ).
lo_element = ci_document->find_from_name( |{ lv_object_type }| ).
lo_element->remove_attribute( |SAPRL| ).
lo_element->remove_attribute( |DOWNLOADDATE| ).
lo_element->remove_attribute( |DOWNLOADTIME| ).
ENDMETHOD.
METHOD clear_element.
DATA: lo_element TYPE REF TO if_ixml_element.
lo_element = ci_document->find_from_name( iv_name ).
IF lo_element IS BOUND.
lo_element->set_value( || ).
ENDIF.
ENDMETHOD.
METHOD clear_elements.
clear_element( EXPORTING iv_name = |FUSER|
CHANGING ci_document = ci_document ).
clear_element( EXPORTING iv_name = |FDATE|
CHANGING ci_document = ci_document ).
clear_element( EXPORTING iv_name = |LUSER|
CHANGING ci_document = ci_document ).
clear_element( EXPORTING iv_name = |LDATE|
CHANGING ci_document = ci_document ).
clear_element( EXPORTING iv_name = |LTIME|
CHANGING ci_document = ci_document ).
clear_element( EXPORTING iv_name = |TWB_RESP|
CHANGING ci_document = ci_document ).
clear_element( EXPORTING iv_name = |DEVCLASS|
CHANGING ci_document = ci_document ).
clear_element( EXPORTING iv_name = |TADIR_RESP|
CHANGING ci_document = ci_document ).
clear_element( EXPORTING iv_name = |VAR_EXT_PATH|
CHANGING ci_document = ci_document ).
ENDMETHOD.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_object_name = ms_item-obj_name.
ENDMETHOD.
METHOD deserialize_version.
DATA: ls_object TYPE etmobjects,
lo_upload TYPE REF TO cl_apl_ecatt_upload,
li_upload TYPE REF TO zif_abapgit_ecatt_upload,
lv_xml TYPE xstring,
lv_text TYPE string,
li_document TYPE REF TO if_ixml_document,
lv_version TYPE string,
lx_error TYPE REF TO cx_ecatt.
lv_version = get_version_from_node( ii_version_node ).
IF lv_version IS INITIAL.
RETURN.
ENDIF.
lo_upload = get_upload( ).
li_upload ?= lo_upload.
li_document = cl_ixml=>create( )->create_document( ).
li_document->append_child( ii_version_node->get_first_child( ) ).
lv_xml = cl_ixml_80_20=>render_to_xstring( li_document ).
li_upload->set_stream_for_upload( lv_xml ).
ls_object-d_obj_name = mv_object_name.
ls_object-s_obj_type = get_object_type( ).
ls_object-d_devclass = iv_package.
ls_object-d_obj_ver = lv_version.
ls_object-d_overwrite = abap_true.
TRY.
lo_upload->upload(
CHANGING
ch_object = ls_object ).
CATCH cx_ecatt INTO lx_error.
lv_text = lx_error->get_text( ).
zcx_abapgit_exception=>raise( lv_text ).
ENDTRY.
ENDMETHOD.
METHOD get_changed_by_user.
rv_changed_by_user = ii_document->find_from_name( 'LUSER' )->get_value( ).
ENDMETHOD.
METHOD get_changed_date.
DATA: lv_changed_date_external TYPE string.
lv_changed_date_external = ii_document->find_from_name( 'LDATE' )->get_value( ).
REPLACE ALL OCCURRENCES OF '-' IN lv_changed_date_external WITH ''.
rv_changed_date = lv_changed_date_external.
ENDMETHOD.
METHOD get_changed_time.
DATA: lv_changed_time_external TYPE string.
lv_changed_time_external = ii_document->find_from_name( 'LTIME' )->get_value( ).
REPLACE ALL OCCURRENCES OF ':' IN lv_changed_time_external WITH ''.
rv_changed_time = lv_changed_time_external.
ENDMETHOD.
METHOD get_change_information.
DATA: li_document TYPE REF TO if_ixml_document,
lv_xml TYPE xstring,
lo_download TYPE REF TO cl_apl_ecatt_download,
lv_object_type TYPE etobj_type.
lo_download = get_download( ).
lv_object_type = get_object_type( ).
lv_xml = zcl_abapgit_ecatt_helper=>build_xml_of_object(
im_object_name = mv_object_name
im_object_version = is_version_info-version
im_object_type = lv_object_type
io_download = lo_download ).
li_document = cl_ixml_80_20=>parse_to_document( stream_xstring = lv_xml ).
rs_change_information-ldate = get_changed_date( li_document ).
rs_change_information-ltime = get_changed_time( li_document ).
rs_change_information-luser = get_changed_by_user( li_document ).
ENDMETHOD.
METHOD get_version_from_node.
TRY.
rv_version = ii_node->get_first_child(
)->get_first_child(
)->get_first_child(
)->get_first_child(
)->get_value( ).
CATCH cx_sy_ref_is_initial.
RETURN.
ENDTRY.
ENDMETHOD.
METHOD is_change_more_recent_than.
IF ( is_currently_changed-ldate > is_last_changed-ldate )
OR ( is_currently_changed-ldate = is_last_changed-ldate
AND is_currently_changed-ltime > is_last_changed-ltime ).
rv_is_change_more_recent = abap_true.
ENDIF.
ENDMETHOD.
METHOD serialize_version.
DATA: li_document TYPE REF TO if_ixml_document,
lv_xml TYPE xstring,
lo_node TYPE REF TO if_ixml_element,
lo_download TYPE REF TO cl_apl_ecatt_download,
lv_object_type TYPE etobj_type.
lo_download = get_download( ).
lv_object_type = get_object_type( ).
lv_xml = zcl_abapgit_ecatt_helper=>build_xml_of_object(
im_object_name = mv_object_name
im_object_version = iv_version
im_object_type = lv_object_type
io_download = lo_download ).
IF lv_xml IS INITIAL.
zcx_abapgit_exception=>raise( |ECATT, empty xml, { mv_object_name }| ).
ENDIF.
li_document = cl_ixml_80_20=>parse_to_document( stream_xstring = lv_xml ).
clear_attributes(
CHANGING
ci_document = li_document ).
clear_elements(
CHANGING
ci_document = li_document ).
lo_node = li_document->create_element( co_name-version ).
lo_node->append_child( li_document->get_root_element( ) ).
ci_node->append_child( lo_node ).
ENDMETHOD.
METHOD serialize_versions.
DATA: li_versions_node TYPE REF TO if_ixml_element.
FIELD-SYMBOLS: <ls_version_info> LIKE LINE OF it_version_info.
li_versions_node = ci_document->create_element( co_name-versions ).
IF lines( it_version_info ) > 0.
LOOP AT it_version_info ASSIGNING <ls_version_info>.
serialize_version(
EXPORTING
iv_version = <ls_version_info>-version
CHANGING
ci_node = li_versions_node ).
ENDLOOP.
ELSE.
serialize_version(
EXPORTING
iv_version = co_default_version
CHANGING
ci_node = li_versions_node ).
ENDIF.
ci_document->append_child( li_versions_node ).
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
DATA: ls_last_changed TYPE ty_last_changed,
ls_currently_changed TYPE ty_last_changed,
lt_version_info TYPE etversinfo_tabtype,
lx_error TYPE REF TO cx_ecatt,
lv_text TYPE string,
lv_object_type TYPE etobj_type.
FIELD-SYMBOLS: <ls_version_info> LIKE LINE OF lt_version_info.
TRY.
lv_object_type = get_object_type( ).
cl_apl_ecatt_object=>get_version_info_object(
EXPORTING
im_name = mv_object_name
im_obj_type = lv_object_type
IMPORTING
ex_version_info = lt_version_info ).
LOOP AT lt_version_info ASSIGNING <ls_version_info>.
ls_currently_changed = get_change_information( <ls_version_info> ).
IF is_change_more_recent_than( is_currently_changed = ls_currently_changed
is_last_changed = ls_last_changed ) = abap_true.
ls_last_changed = ls_currently_changed.
ENDIF.
ENDLOOP.
CATCH cx_ecatt INTO lx_error.
lv_text = lx_error->get_text( ).
MESSAGE lv_text TYPE 'S' DISPLAY LIKE 'E'.
ENDTRY.
IF ls_last_changed-luser IS NOT INITIAL.
rv_user = ls_last_changed-luser.
ELSE.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lx_error TYPE REF TO cx_ecatt_apl,
lv_text TYPE string,
lv_object_type TYPE etobj_type.
lv_object_type = get_object_type( ).
TRY.
cl_apl_ecatt_object=>delete_object( im_obj_type = lv_object_type
im_name = mv_object_name
" we have to supply a version, so let's use the default version
" and delete them all
im_version = co_default_version
im_delete_all_versions = abap_true ).
CATCH cx_ecatt_apl INTO lx_error.
lv_text = lx_error->get_text( ).
zcx_abapgit_exception=>raise( lv_text ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: li_document TYPE REF TO if_ixml_document,
li_versions TYPE REF TO if_ixml_node_collection,
li_version_iterator TYPE REF TO if_ixml_node_iterator,
lo_version_node TYPE REF TO if_ixml_node.
li_document = io_xml->get_raw( ).
li_versions = li_document->get_elements_by_tag_name( depth = 0
name = co_name-version ).
li_version_iterator = li_versions->create_iterator( ).
DO.
lo_version_node = li_version_iterator->get_next( ).
IF lo_version_node IS NOT BOUND.
EXIT.
ENDIF.
deserialize_version( ii_version_node = lo_version_node
iv_package = iv_package ).
ENDDO.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_object_type TYPE etobj_type.
lv_object_type = get_object_type( ).
TRY.
rv_bool = cl_apl_ecatt_object=>existence_check_object( im_name = mv_object_name
im_version = co_default_version
im_obj_type = lv_object_type
im_exists_any_version = abap_true ).
CATCH cx_ecatt.
RETURN.
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
DATA: lv_object TYPE seqg3-garg.
lv_object = ms_item-obj_name.
OVERLAY lv_object WITH ' '.
lv_object = lv_object && '*'.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = get_lock_object( )
iv_argument = lv_object ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
CALL FUNCTION 'RS_TOOL_ACCESS'
EXPORTING
operation = 'SHOW'
object_name = ms_item-obj_name
object_type = ms_item-obj_type
in_new_window = abap_true
EXCEPTIONS
not_executed = 1
invalid_object_type = 2
OTHERS = 3.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error { sy-subrc } from RS_TOOL_ACCESS | ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA:
lt_version_info TYPE etversinfo_tabtype,
li_document TYPE REF TO if_ixml_document,
lx_error TYPE REF TO cx_ecatt,
lv_text TYPE string,
lv_object_type TYPE etobj_type.
lv_object_type = get_object_type( ).
TRY.
cl_apl_ecatt_object=>get_version_info_object(
EXPORTING
im_name = mv_object_name
im_obj_type = lv_object_type
IMPORTING
ex_version_info = lt_version_info ).
li_document = cl_ixml=>create( )->create_document( ).
serialize_versions(
EXPORTING
it_version_info = lt_version_info
CHANGING
ci_document = li_document ).
io_xml->set_raw( li_document->get_root_element( ) ).
CATCH cx_ecatt INTO lx_error.
lv_text = lx_error->get_text( ).
MESSAGE lv_text TYPE 'S' DISPLAY LIKE 'E'.
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
721,
1078,
62,
16668,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
198,
220,
9564,
18601,
10659,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
764,
628,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
764,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
9186,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
16129,
41876,
7500,
292,
764,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
15252,
62,
4906,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
15252,
62,
4906,
8,
41876,
2123,
26801,
62,
4906,
11,
628,
220,
220,
220,
220,
220,
651,
62,
25850,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
25850,
8,
41876,
4526,
37,
5390,
537,
62,
64,
489,
62,
721,
1078,
62,
25850,
11,
628,
220,
220,
220,
220,
220,
651,
62,
15002,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
15002,
8,
41876,
4526,
37,
5390,
537,
62,
64,
489,
62,
721,
1078,
62,
15002,
11,
628,
220,
220,
220,
220,
220,
651,
62,
5354,
62,
15252,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
5354,
62,
15252,
8,
41876,
37430,
68,
26801,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
12957,
62,
40985,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
7220,
41876,
2124,
549,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
4475,
41876,
288,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
2435,
41876,
256,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
12957,
62,
40985,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
763,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2196,
220,
41876,
4731,
26173,
8924,
705,
43717,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6300,
41876,
4731,
26173,
8924,
705,
28884,
11053,
6,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
763,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
763,
62,
12286,
62,
9641,
41876,
2123,
26801,
62,
332,
26173,
8924,
705,
16,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
318,
62,
3803,
62,
3549,
62,
49921,
62,
14813,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
41745,
62,
40985,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
12957,
62,
40985,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
12957,
62,
40985,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
12957,
62,
40985,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
271,
62,
3803,
62,
3549,
62,
49921,
8,
41876,
450,
499,
62,
30388,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
15252,
62,
3672,
41876,
2123,
26801,
62,
3672,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
40985,
62,
4475,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
22897,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
40985,
62,
4475,
8,
41876,
288,
11,
628,
220,
220,
220,
220,
220,
651,
62,
40985,
62,
2435,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
22897,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
40985,
62,
2435,
8,
41876,
256,
11,
628,
220,
220,
220,
220,
220,
651,
62,
40985,
62,
1525,
62,
7220,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
22897,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_EXCEL23
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zdemo_excel24.
TYPE-POOLS: abap.
DATA: lo_excel TYPE REF TO zcl_excel,
lo_worksheet TYPE REF TO zcl_excel_worksheet,
lo_column TYPE REF TO zcl_excel_column,
lo_hyperlink TYPE REF TO zcl_excel_hyperlink.
DATA: lv_file TYPE xstring,
lv_bytecount TYPE i,
lt_file_tab TYPE solix_tab.
DATA: lv_full_path TYPE string,
lv_workdir TYPE string,
lv_file_separator TYPE c.
DATA: lv_value TYPE string.
CONSTANTS: gc_save_file_name TYPE string VALUE '24_Sheets_with_different_default_date_formats.xlsx'.
INCLUDE zdemo_excel_outputopt_incl.
START-OF-SELECTION.
" Creates active sheet
CREATE OBJECT lo_excel.
" Get active sheet
lo_worksheet = lo_excel->get_active_worksheet( ).
lo_worksheet->set_title( ip_title = 'Sheet1' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 1 ip_value = 'Default Date Format' ).
" Insert current date
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Current Date:' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = sy-datum ).
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet2!A1' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 6 ip_value = 'This is a link to the second sheet' ip_hyperlink = lo_hyperlink ).
lo_column = lo_worksheet->get_column( ip_column = 'A' ).
lo_column->set_auto_size( ip_auto_size = abap_true ).
" Second sheet
lo_worksheet = lo_excel->add_new_worksheet( ).
lo_worksheet->set_default_excel_date_format( zcl_excel_style_number_format=>c_format_date_yyyymmdd ).
lo_worksheet->set_title( ip_title = 'Sheet2' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 1 ip_value = 'Date Format set to YYYYMMDD' ).
" Insert current date
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Current Date:' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = sy-datum ).
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet3!B2' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 6 ip_value = 'This is link to the third sheet' ip_hyperlink = lo_hyperlink ).
" Third sheet
lo_worksheet = lo_excel->add_new_worksheet( ).
" TODO: It seems that the zcl_excel_style_number_format=>c_format_date_yyyymmddslash
" does not produce a valid output
lo_worksheet->set_default_excel_date_format( zcl_excel_style_number_format=>c_format_date_yyyymmddslash ).
lo_worksheet->set_title( ip_title = 'Sheet3' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 1 ip_value = 'Date Format set to YYYY/MM/DD' ).
" Insert current date
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Current Date:' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = sy-datum ).
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet4!B2' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = 6 ip_value = 'This is link to the 4th sheet' ip_hyperlink = lo_hyperlink ).
" 4th sheet
lo_worksheet = lo_excel->add_new_worksheet( ).
" Illustrate the Problem caused by:
" Excel 2000 incorrectly assumes that the year 1900 is a leap year.
" http://support.microsoft.com/kb/214326/en-us
lo_worksheet->set_title( ip_title = 'Sheet4' ).
" Loop from Start Date to the Max Date current data in daily steps
CONSTANTS: lv_max type d VALUE '19000302'.
DATA: lv_date TYPE d VALUE '19000226',
lv_row TYPE i.
lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = 'Formated date' ).
lo_worksheet->set_cell( ip_column = 'C' ip_row = 3 ip_value = 'Integer value for this date' ).
lo_worksheet->set_cell( ip_column = 'D' ip_row = 3 ip_value = 'Date as string' ).
lv_row = 4.
WHILE lv_date < lv_max.
lo_worksheet->set_cell( ip_column = 'B' ip_row = lv_row ip_value = lv_date ).
lv_value = zcl_excel_common=>date_to_excel_string( lv_date ).
lo_worksheet->set_cell( ip_column = 'C' ip_row = lv_row ip_value = lv_value ).
lv_value = lv_date.
lo_worksheet->set_cell( ip_column = 'D' ip_row = lv_row ip_value = lv_value ).
lv_date = lv_date + 1.
lv_row = lv_row + 1.
ENDWHILE.
lv_row = lv_row + 1.
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet1!B2' ).
lo_worksheet->set_cell( ip_column = 'A' ip_row = lv_row ip_value = 'This is link to the first sheet' ip_hyperlink = lo_hyperlink ).
lo_excel->set_active_sheet_index_by_name( 'Sheet1' ).
*** Create output
lcl_output=>output( lo_excel ).
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
39429,
46,
62,
6369,
34,
3698,
1954,
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,
1731,
13,
198,
198,
25216,
12,
16402,
3535,
50,
25,
450,
499,
13,
198,
198,
26947,
25,
2376,
62,
1069,
5276,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
5225,
25473,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
5225,
25473,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
28665,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
28665,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
49229,
8726,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
49229,
8726,
13,
198,
198,
26947,
25,
300,
85,
62,
7753,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
2124,
8841,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
26327,
9127,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
300,
83,
62,
7753,
62,
8658,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1540,
844,
62,
8658,
13,
198,
198,
26947,
25,
300,
85,
62,
12853,
62,
6978,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
1818,
15908,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
7753,
62,
25512,
1352,
41876,
269,
13,
198,
198,
26947,
25,
300,
85,
62,
8367,
41876,
4731,
13,
198,
198,
10943,
2257,
1565,
4694,
25,
308,
66,
62,
21928,
62,
7753,
62,
3672,
41876,
4731,
26173,
8924,
705,
1731,
62,
3347,
1039,
62,
4480,
62,
39799,
62,
12286,
62,
4475,
62,
687,
1381,
13,
87,
7278,
87,
4458,
198,
1268,
5097,
52,
7206,
1976,
9536,
78,
62,
1069,
5276,
62,
22915,
8738,
62,
259,
565,
13,
628,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
628,
220,
366,
7921,
274,
4075,
9629,
198,
220,
29244,
6158,
25334,
23680,
2376,
62,
1069,
5276,
13,
628,
220,
366,
3497,
4075,
9629,
198,
220,
2376,
62,
5225,
25473,
796,
2376,
62,
1069,
5276,
3784,
1136,
62,
5275,
62,
5225,
25473,
7,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
7839,
7,
20966,
62,
7839,
796,
705,
3347,
316,
16,
6,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
32,
6,
20966,
62,
808,
796,
352,
20966,
62,
8367,
796,
705,
19463,
7536,
18980,
6,
6739,
198,
220,
366,
35835,
1459,
3128,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
32,
6,
20966,
62,
808,
796,
513,
20966,
62,
8367,
796,
705,
11297,
7536,
32105,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
32,
6,
20966,
62,
808,
796,
604,
20966,
62,
8367,
796,
827,
12,
19608,
388,
6739,
628,
220,
2376,
62,
49229,
8726,
796,
1976,
565,
62,
1069,
5276,
62,
49229,
8726,
14804,
17953,
62,
32538,
62,
8726,
7,
21628,
62,
24886,
796,
705,
3347,
316,
17,
0,
32,
16,
6,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
32,
6,
20966,
62,
808,
796,
718,
20966,
62,
8367,
796,
705,
1212,
318,
257,
2792,
284,
262,
1218,
9629,
6,
20966,
62,
49229,
8726,
796,
2376,
62,
49229,
8726,
6739,
198,
220,
2376,
62,
28665,
796,
2376,
62,
5225,
25473,
3784,
1136,
62,
28665,
7,
20966,
62,
28665,
796,
705,
32,
6,
6739,
198,
220,
2376,
62,
28665,
3784,
2617,
62,
23736,
62,
7857,
7,
20966,
62,
23736,
62,
7857,
796,
450,
499,
62,
7942,
6739,
628,
198,
220,
366,
5498,
9629,
198,
220,
2376,
62,
5225,
25473,
796,
2376,
62,
1069,
5276,
3784,
2860,
62,
3605,
62,
5225,
25473,
7,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
12286,
62,
1069,
5276,
62,
4475,
62,
18982,
7,
1976,
565,
62,
1069,
5276,
62,
7635,
62,
17618,
62,
18982,
14804,
66,
62,
18982,
62,
4475,
62,
22556,
22556,
3020,
1860,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
7839,
7,
20966,
62,
7839,
796,
705,
3347,
316,
17,
6,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
32,
6,
20966,
62,
808,
796,
352,
20966,
62,
8367,
796,
705,
10430,
18980,
900,
284,
575,
26314,
56,
12038,
16458,
6,
6739,
198,
220,
366,
35835,
1459,
3128,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
32,
6,
20966,
62,
808,
796,
513,
20966,
62,
8367,
796,
705,
11297,
7536,
32105,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
32,
6,
20966,
62,
808,
796,
604,
20966,
62,
8367,
796,
827,
12,
19608,
388,
6739,
628,
220,
2376,
62,
49229,
8726,
796,
1976,
565,
62,
1069,
5276,
62,
49229,
8726,
14804,
17953,
62,
32538,
62,
8726,
7,
21628,
62,
24886,
796,
705,
3347,
316,
18,
0,
33,
17,
6,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
32,
6,
20966,
62,
808,
796,
718,
20966,
62,
8367,
796,
705,
1212,
318,
2792,
284,
262,
2368,
9629,
6,
20966,
62,
49229,
8726,
796,
2376,
62,
49229,
8726,
6739,
628,
220,
366,
10467,
9629,
198,
220,
2376,
62,
5225,
25473,
796,
2376,
62,
1069,
5276,
3784,
2860,
62,
3605,
62,
5225,
25473,
7,
6739,
198,
220,
366,
16926,
46,
25,
632,
2331,
326
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class ZCX_ADF_SERVICE_GRAPH definition
public
inheriting from ZCX_ADF_SERVICE
final
create public .
public section.
constants GENERAL_EXCEPTION type SOTR_CONC value '6805CA2480681EDAA1C7B394C05580BC' ##NO_TEXT.
data ERROR_RESPONSE type STRING .
methods CONSTRUCTOR
importing
!TEXTID like TEXTID optional
!PREVIOUS like PREVIOUS optional
!FORMAT_TYPE type ZADF_FORMAT_TYPE optional
!INTERFACE_ID type ZINTERFACE_ID optional
!ERROR_RESPONSE type STRING optional .
protected section.
private section.
ENDCLASS.
CLASS ZCX_ADF_SERVICE_GRAPH IMPLEMENTATION.
method CONSTRUCTOR.
CALL METHOD SUPER->CONSTRUCTOR
EXPORTING
TEXTID = TEXTID
PREVIOUS = PREVIOUS
FORMAT_TYPE = FORMAT_TYPE
INTERFACE_ID = INTERFACE_ID
.
me->ERROR_RESPONSE = ERROR_RESPONSE .
endmethod.
ENDCLASS.
| [
4871,
1168,
34,
55,
62,
2885,
37,
62,
35009,
27389,
62,
10761,
31300,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
34,
55,
62,
2885,
37,
62,
35009,
27389,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
38491,
41877,
62,
6369,
42006,
2849,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
21,
28256,
8141,
1731,
1795,
48564,
1961,
3838,
16,
34,
22,
33,
34626,
34,
2713,
39322,
2749,
6,
22492,
15285,
62,
32541,
13,
198,
220,
1366,
33854,
62,
19535,
47,
1340,
5188,
2099,
19269,
2751,
764,
628,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
32541,
2389,
588,
40383,
2389,
11902,
198,
220,
220,
220,
220,
220,
5145,
46437,
12861,
20958,
588,
22814,
12861,
20958,
11902,
198,
220,
220,
220,
220,
220,
5145,
21389,
1404,
62,
25216,
2099,
1168,
2885,
37,
62,
21389,
1404,
62,
25216,
11902,
198,
220,
220,
220,
220,
220,
5145,
41358,
49836,
62,
2389,
2099,
1168,
41358,
49836,
62,
2389,
11902,
198,
220,
220,
220,
220,
220,
5145,
24908,
62,
19535,
47,
1340,
5188,
2099,
19269,
2751,
11902,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
34,
55,
62,
2885,
37,
62,
35009,
27389,
62,
10761,
31300,
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,
21389,
1404,
62,
25216,
796,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Include ZMIME_EDITOR_SMIM
*&---------------------------------------------------------------------*
CLASS lcl_smim DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS:
get_content
IMPORTING is_smim TYPE ty_smim
RETURNING VALUE(rv_content) TYPE string,
get_url
IMPORTING is_smim TYPE ty_smim
RETURNING VALUE(rv_url) TYPE string,
save
IMPORTING is_smim TYPE ty_smim
iv_string TYPE string.
ENDCLASS.
CLASS lcl_tree_content DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS:
init,
get_by_key
IMPORTING iv_key TYPE tv_nodekey
RETURNING VALUE(rs_smim) TYPE ty_smim.
PRIVATE SECTION.
TYPES: BEGIN OF ty_smim,
key TYPE tv_nodekey,
text TYPE string,
lo_class TYPE smimloio-lo_class,
loio_id TYPE smimloio-loio_id,
END OF ty_smim.
CLASS-DATA mt_smim TYPE STANDARD TABLE OF ty_smim WITH KEY key.
CLASS-METHODS:
build
RETURNING VALUE(rt_nodes) TYPE ty_nodes,
find_smim.
ENDCLASS.
CLASS lcl_tree_content IMPLEMENTATION.
METHOD get_by_key.
DATA ls_smim LIKE LINE OF mt_smim.
READ TABLE mt_smim INTO ls_smim WITH KEY key = iv_key.
ASSERT sy-subrc = 0.
rs_smim = CORRESPONDING #( ls_smim ).
ENDMETHOD.
METHOD init.
DATA: lt_events TYPE cntl_simple_events,
lt_nodes TYPE ty_nodes,
ls_event LIKE LINE OF lt_events.
ls_event-eventid = cl_gui_simple_tree=>eventid_node_double_click.
ls_event-appl_event = abap_true.
APPEND ls_event TO lt_events.
go_tree->set_registered_events(
EXPORTING
events = lt_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3 ).
ASSERT sy-subrc = 0.
lt_nodes = build( ).
go_tree->add_nodes(
EXPORTING
table_structure_name = 'MTREESNODE'
node_table = lt_nodes
EXCEPTIONS
failed = 1
error_in_node_table = 2
dp_error = 3
table_structure_name_not_found = 4
OTHERS = 5 ).
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD build.
DATA ls_node LIKE LINE OF rt_nodes.
find_smim( ).
LOOP AT mt_smim INTO DATA(ls_smim).
ls_node-node_key = ls_smim-key.
ls_node-text = ls_smim-text.
APPEND ls_node TO rt_nodes.
ENDLOOP.
ENDMETHOD.
METHOD find_smim.
TYPES: BEGIN OF ty_tadir,
obj_name TYPE tadir-obj_name,
END OF ty_tadir.
DATA: lv_index TYPE i,
lt_tadir TYPE STANDARD TABLE OF ty_tadir WITH KEY obj_name,
ls_smim LIKE gs_smim.
SELECT obj_name FROM tadir INTO TABLE @lt_tadir
WHERE devclass = @p_devc
AND object = 'SMIM' ORDER BY obj_name. "#EC CI_GENBUFF
IF sy-subrc <> 0.
RETURN.
ENDIF.
LOOP AT lt_tadir INTO DATA(ls_tadir).
lv_index = sy-tabix.
SELECT SINGLE * FROM smimloio
INTO CORRESPONDING FIELDS OF @ls_smim
WHERE loio_id = @ls_tadir-obj_name. "#EC CI_GENBUFF
IF sy-subrc <> 0 OR ls_smim-lo_class = wbmr_c_skwf_folder_class.
* ignore folders
CONTINUE.
ENDIF.
DATA(lv_url) = lcl_smim=>get_url( ls_smim ).
IF lv_url CP '*.png'.
CONTINUE.
ENDIF.
APPEND VALUE #(
key = |KEY{ lv_index }|
text = lv_url
lo_class = ls_smim-lo_class
loio_id = ls_smim-loio_id ) TO mt_smim.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
CLASS lcl_smim IMPLEMENTATION.
METHOD get_content.
DATA: li_api TYPE REF TO if_mr_api,
lv_content TYPE xstring,
lv_url TYPE string,
lv_len TYPE i,
lo_obj TYPE REF TO cl_abap_conv_in_ce.
lv_url = get_url( is_smim ).
li_api = cl_mime_repository_api=>if_mr_api~get_api( ).
li_api->get(
EXPORTING
i_url = lv_url
IMPORTING
e_content = lv_content
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
BREAK-POINT.
ENDIF.
TRY.
lo_obj = cl_abap_conv_in_ce=>create(
input = lv_content
encoding = 'UTF-8' ).
lv_len = xstrlen( lv_content ).
lo_obj->read( EXPORTING n = lv_len
IMPORTING data = rv_content ).
CATCH cx_parameter_invalid_range
cx_sy_codepage_converter_init
cx_sy_conversion_codepage
cx_parameter_invalid_type.
BREAK-POINT.
ENDTRY.
ENDMETHOD.
METHOD get_url.
DATA: lv_url TYPE skwf_url,
ls_io TYPE skwf_io.
ls_io-objtype = skwfc_obtype_loio.
ls_io-class = is_smim-lo_class.
ls_io-objid = is_smim-loio_id.
CALL FUNCTION 'SKWF_NMSPC_IO_ADDRESS_GET'
EXPORTING
io = ls_io
IMPORTING
url = lv_url.
rv_url = lv_url.
ENDMETHOD.
METHOD save.
DATA: lv_content TYPE xstring,
lv_lines TYPE i,
lv_filename TYPE skwf_filnm,
li_api TYPE REF TO if_mr_api,
lv_url TYPE string,
ls_skwf_io TYPE skwf_io,
lt_strings TYPE TABLE OF string,
lo_obj TYPE REF TO cl_abap_conv_out_ce.
TRY.
lo_obj = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ).
lo_obj->convert( EXPORTING data = iv_string
IMPORTING buffer = lv_content ).
CATCH cx_parameter_invalid_range
cx_sy_codepage_converter_init
cx_sy_conversion_codepage
cx_parameter_invalid_type.
BREAK-POINT.
ENDTRY.
lv_url = get_url( is_smim ).
SPLIT lv_url AT '/' INTO TABLE lt_strings.
lv_lines = lines( lt_strings ).
ASSERT lv_lines > 0.
READ TABLE lt_strings INDEX lv_lines INTO lv_filename.
ASSERT sy-subrc = 0.
ls_skwf_io-objid = gs_smim-loio_id.
cl_wb_mime_repository=>determine_io_class(
EXPORTING
filename = lv_filename
IMPORTING
io_class = ls_skwf_io-class ).
CONCATENATE ls_skwf_io-class '_L' INTO ls_skwf_io-class.
li_api = cl_mime_repository_api=>if_mr_api~get_api( ).
li_api->put(
EXPORTING
i_url = lv_url
i_content = lv_content
i_new_loio = ls_skwf_io
EXCEPTIONS
parameter_missing = 1
error_occured = 2
cancelled = 3
permission_failure = 4
data_inconsistency = 5
new_loio_already_exists = 6
is_folder = 7
OTHERS = 8 ).
IF sy-subrc <> 0.
BREAK-POINT.
ENDIF.
ENDMETHOD.
ENDCLASS.
CLASS lcl_editor DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS:
save,
is_dirty RETURNING VALUE(rv_dirty) TYPE abap_bool,
switch IMPORTING is_smim TYPE ty_smim.
PRIVATE SECTION.
CLASS-DATA
ms_smim TYPE ty_smim.
ENDCLASS.
CLASS lcl_editor IMPLEMENTATION.
METHOD is_dirty.
DATA lv_status TYPE i.
IF ms_smim IS INITIAL.
rv_dirty = abap_false.
RETURN.
ENDIF.
go_editor->get_textmodified_status( IMPORTING status = lv_status ).
cl_gui_cfw=>flush( ).
rv_dirty = xsdbool( lv_status <> 0 ).
ENDMETHOD.
METHOD save.
DATA lv_string TYPE string.
IF is_dirty( ) = abap_false.
MESSAGE 'Nothing changed'(005) TYPE 'S'.
RETURN.
ENDIF.
go_editor->get_textstream( IMPORTING text = lv_string ).
cl_gui_cfw=>flush( ).
lcl_smim=>save( is_smim = ms_smim
iv_string = lv_string ).
MESSAGE 'Saved'(003) TYPE 'S'.
go_editor->set_textmodified_status( 0 ).
ENDMETHOD.
METHOD switch.
DATA lv_content TYPE string.
IF is_dirty( ) = abap_true.
MESSAGE 'Not saved'(004) TYPE 'W'.
RETURN.
ENDIF.
ms_smim = is_smim.
go_editor->set_enable( abap_true ).
go_editor->set_readonly_mode( 0 ).
lv_content = lcl_smim=>get_content( ms_smim ).
go_editor->set_textstream( lv_content ).
go_editor->set_focus( go_editor ).
ENDMETHOD.
ENDCLASS.
CLASS lcl_handler DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS
double_click FOR EVENT node_double_click OF cl_gui_simple_tree
IMPORTING node_key.
ENDCLASS.
CLASS lcl_handler IMPLEMENTATION.
METHOD double_click.
DATA ls_smim LIKE gs_smim.
ls_smim = lcl_tree_content=>get_by_key( node_key ).
lcl_editor=>switch( ls_smim ).
ENDMETHOD.
ENDCLASS.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
44,
12789,
62,
24706,
1581,
62,
12310,
3955,
198,
9,
5,
10097,
30934,
9,
198,
198,
31631,
300,
565,
62,
5796,
320,
5550,
20032,
17941,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
11299,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
318,
62,
5796,
320,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
5796,
320,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
11299,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
651,
62,
6371,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
318,
62,
5796,
320,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
5796,
320,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
6371,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
3613,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
318,
62,
5796,
320,
220,
220,
41876,
1259,
62,
5796,
320,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8841,
41876,
4731,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
565,
62,
21048,
62,
11299,
5550,
20032,
17941,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
2315,
11,
198,
220,
220,
220,
220,
220,
651,
62,
1525,
62,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
31557,
62,
17440,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
5796,
320,
8,
41876,
1259,
62,
5796,
320,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
5796,
320,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
220,
220,
220,
220,
220,
41876,
31557,
62,
17440,
2539,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
4871,
41876,
895,
320,
5439,
952,
12,
5439,
62,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
952,
62,
312,
220,
41876,
895,
320,
5439,
952,
12,
5439,
952,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
5796,
320,
13,
628,
220,
220,
220,
42715,
12,
26947,
45079,
62,
5796,
320,
41876,
49053,
9795,
43679,
3963,
1259,
62,
5796,
320,
13315,
35374,
1994,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
1382,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
77,
4147,
8,
41876,
1259,
62,
77,
4147,
11,
198,
220,
220,
220,
220,
220,
1064,
62,
5796,
320,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
565,
62,
21048,
62,
11299,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
651,
62,
1525,
62,
2539,
13,
628,
220,
220,
220,
42865,
43979,
62,
5796,
320,
34178,
48920,
3963,
45079,
62,
5796,
320,
13,
628,
220,
220,
220,
20832,
43679,
45079,
62,
5796,
320,
39319,
43979,
62,
5796,
320,
13315,
35374,
1994,
796,
21628,
62,
2539,
13,
198,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
220,
220,
44608,
62,
5796,
320,
796,
23929,
19535,
47,
18672,
2751,
1303,
7,
43979,
62,
5796,
320,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2315,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
31534,
41876,
269,
429,
75,
62,
36439,
62,
31534,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
77,
4147,
220,
41876,
1259,
62,
77,
4147,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
15596,
220,
34178,
48920,
3963,
300,
83,
62,
31534,
13,
628,
198,
220,
220,
220,
43979,
62,
15596,
12,
15596,
312,
796,
537,
62,
48317,
62,
36439,
62,
21048,
14804,
15596,
312,
62,
17440,
62,
23352,
62,
12976,
13,
198,
220,
220,
220,
43979,
62,
15596,
12,
1324,
75,
62,
15596,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
43504,
10619,
43979,
62,
15596,
5390,
300,
83,
62,
31534,
13,
628,
220,
220,
220,
467,
62,
21048,
3784,
2617,
62,
33736,
62,
31534,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2995,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
31534,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
269,
429,
75,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
269,
429,
75,
62,
10057,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
5293,
62,
15596,
62,
24011,
1883,
796,
513,
6739,
198,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
220,
220,
300,
83,
62,
77,
4147,
796,
1382,
7,
6739,
628,
220,
220,
220,
467,
62,
21048,
3784,
2860,
62,
77,
4147,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3084,
62,
301,
5620,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
13752,
2200,
1546,
45,
16820,
6,
198,
220,
220,
220,
220,
220,
220,
220,
10139,
62,
11487,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_updownci DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
TYPES:
ty_class_range TYPE RANGE OF seoclsname .
TYPES:
BEGIN OF ty_wdy_ci_test_conventions ##needed, " used dynamically
init_done TYPE abap_bool,
db_access TYPE abap_bool,
file_access TYPE abap_bool,
obsolete_screen TYPE abap_bool,
program_flow TYPE abap_bool,
system_call TYPE abap_bool,
param_check TYPE abap_bool,
include_source TYPE abap_bool,
call_me TYPE abap_bool,
END OF ty_wdy_ci_test_conventions .
CLASS-METHODS build_xml
IMPORTING
!iv_user TYPE sci_user
!iv_name TYPE sci_chkv
!it_class TYPE ty_class_range OPTIONAL
RETURNING
VALUE(rv_xml) TYPE string
RAISING
cx_static_check .
CLASS-METHODS create_from_xml
IMPORTING
!iv_xml TYPE string
!iv_user TYPE sci_user
!iv_name TYPE sci_chkv
!iv_test TYPE abap_bool
RAISING
cx_static_check .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_parameter,
name TYPE string,
value TYPE string,
END OF ty_parameter.
TYPES: ty_parameter_tt TYPE STANDARD TABLE OF ty_parameter WITH DEFAULT KEY.
TYPES:
BEGIN OF ty_type,
parameter TYPE string,
name TYPE string,
type TYPE string,
field TYPE string,
END OF ty_type.
TYPES: ty_type_tt TYPE STANDARD TABLE OF ty_type WITH DEFAULT KEY.
CLASS-DATA:
go_xml TYPE REF TO zcl_updownci_xml.
CLASS-METHODS:
download_attributes
IMPORTING iv_class TYPE seoclsname
iv_attributes TYPE xstring
iv_version TYPE sci_tstval-version
RAISING cx_static_check,
build_memory
IMPORTING iv_class TYPE seoclsname
EXPORTING er_data TYPE REF TO data
et_memory TYPE ty_parameter_tt
RAISING cx_static_check,
upload_attributes
IMPORTING
iv_testname TYPE sci_tstval-testname
ii_attributes TYPE REF TO if_ixml_node
CHANGING
cv_attributes TYPE xstring
RAISING cx_static_check,
update_variant
IMPORTING
iv_testname TYPE sci_tstval-testname
ii_attributes TYPE REF TO if_ixml_node
CHANGING
ct_variant TYPE sci_tstvar
RAISING cx_static_check,
read_source
IMPORTING iv_include TYPE program
RETURNING VALUE(rt_source) TYPE abaptxt255_tab,
parse
IMPORTING it_source TYPE abaptxt255_tab
RETURNING VALUE(rt_parameters) TYPE ty_parameter_tt
RAISING zcx_updownci_exception,
find_types
IMPORTING iv_class TYPE seoclsname
it_parameters TYPE ty_parameter_tt
RETURNING VALUE(rt_types) TYPE ty_type_tt
RAISING cx_static_check,
show_progress
IMPORTING iv_current TYPE i
iv_total TYPE i
iv_class TYPE seoclsname,
create_structure
IMPORTING it_types TYPE ty_type_tt
RETURNING VALUE(rr_data) TYPE REF TO data
RAISING zcx_updownci_exception.
ENDCLASS.
CLASS ZCL_UPDOWNCI IMPLEMENTATION.
METHOD build_memory.
DATA: lv_include TYPE program,
lt_parameters TYPE ty_parameter_tt,
lt_types TYPE ty_type_tt,
lt_source TYPE abaptxt255_tab.
FIELD-SYMBOLS: <ls_type> LIKE LINE OF lt_types,
<ls_memory> LIKE LINE OF et_memory.
CLEAR et_memory.
lv_include = zcl_updownci_class=>find_include( iv_class ).
lt_source = read_source( lv_include ).
lt_parameters = parse( lt_source ).
lt_types = find_types( iv_class = iv_class
it_parameters = lt_parameters ).
er_data = create_structure( lt_types ).
LOOP AT lt_types ASSIGNING <ls_type>.
APPEND INITIAL LINE TO et_memory ASSIGNING <ls_memory>.
<ls_memory>-name = <ls_type>-parameter.
IF <ls_type>-field IS INITIAL.
CONCATENATE '<LG_DATA>' <ls_type>-name
INTO <ls_memory>-value SEPARATED BY '-'.
ELSE.
CONCATENATE '<LG_DATA>' <ls_type>-name <ls_type>-field
INTO <ls_memory>-value SEPARATED BY '-'.
ENDIF.
ENDLOOP.
ENDMETHOD. "build_memory
METHOD build_xml.
DATA: lv_count TYPE i,
lo_variant TYPE REF TO cl_ci_checkvariant.
FIELD-SYMBOLS: <ls_variant> LIKE LINE OF lo_variant->variant.
lo_variant = zcl_updownci_variant=>read(
iv_user = iv_user
iv_name = iv_name ).
CREATE OBJECT go_xml.
LOOP AT lo_variant->variant ASSIGNING <ls_variant>
WHERE testname IN it_class. "#EC CI_HASHSEQ
lv_count = lv_count + 1.
show_progress( iv_current = lv_count
iv_total = lines( lo_variant->variant )
iv_class = <ls_variant>-testname ).
download_attributes( iv_class = <ls_variant>-testname
iv_attributes = <ls_variant>-attributes
iv_version = <ls_variant>-version ).
ENDLOOP.
rv_xml = go_xml->render( ).
ENDMETHOD.
METHOD create_from_xml.
DATA: lt_variant TYPE sci_tstvar,
lo_variant TYPE REF TO cl_ci_checkvariant,
li_attributes TYPE REF TO if_ixml_node,
lv_testname TYPE sci_tstval-testname,
lv_version TYPE sci_tstval-version.
lo_variant = zcl_updownci_variant=>read(
iv_user = iv_user
iv_name = iv_name
iv_create = abap_true ).
lo_variant->enter_change( ).
lt_variant = lo_variant->variant.
CREATE OBJECT go_xml
EXPORTING
iv_xml = iv_xml.
go_xml->read_variant(
IMPORTING
ei_attributes = li_attributes
ev_testname = lv_testname
ev_version = lv_version ).
WHILE NOT lv_testname IS INITIAL.
show_progress( iv_current = 1
iv_total = 100
iv_class = lv_testname ).
WRITE: / lv_testname, lv_version.
TRY.
IF zcl_updownci_variant=>version( lv_testname ) <> lv_version.
WRITE: / 'Version mismatch' COLOR 6. "#EC NOTEXT
ELSE.
WRITE: / 'Version match'. "#EC NOTEXT
update_variant(
EXPORTING
iv_testname = lv_testname
ii_attributes = li_attributes
CHANGING
ct_variant = lt_variant ).
ENDIF.
CATCH zcx_updownci_test_not_found.
WRITE: / 'Test not found, skip'. "#EC NOTEXT
ENDTRY.
WRITE: /.
go_xml->read_variant(
IMPORTING
ei_attributes = li_attributes
ev_testname = lv_testname
ev_version = lv_version ).
ENDWHILE.
IF iv_test = abap_false.
lo_variant->save( lt_variant ).
ELSE.
lo_variant->leave_change( ).
ENDIF.
ENDMETHOD. "upload
METHOD create_structure.
DATA: lt_components TYPE cl_abap_structdescr=>component_table,
lo_structdescr TYPE REF TO cl_abap_structdescr.
FIELD-SYMBOLS: <ls_component> LIKE LINE OF lt_components,
<ls_type> LIKE LINE OF it_types.
IF it_types IS INITIAL.
RETURN.
ENDIF.
LOOP AT it_types ASSIGNING <ls_type>.
APPEND INITIAL LINE TO lt_components ASSIGNING <ls_component>.
<ls_component>-name = <ls_type>-name.
<ls_component>-type ?= cl_abap_typedescr=>describe_by_name( <ls_type>-type ).
ENDLOOP.
SORT lt_components BY name ASCENDING.
DELETE ADJACENT DUPLICATES FROM lt_components COMPARING name.
TRY.
lo_structdescr = cl_abap_structdescr=>create( lt_components ).
CREATE DATA rr_data TYPE HANDLE lo_structdescr.
CATCH cx_sy_struct_comp_name.
RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = 'error creating structure'.
ENDTRY.
ENDMETHOD. "create_structure
METHOD download_attributes.
DATA: lt_import TYPE ty_parameter_tt,
lr_data TYPE REF TO data.
FIELD-SYMBOLS: <lg_data> TYPE data.
IF iv_attributes IS INITIAL.
go_xml->write_variant( iv_testname = iv_class
iv_version = iv_version ).
ELSE.
build_memory(
EXPORTING
iv_class = iv_class
IMPORTING
er_data = lr_data
et_memory = lt_import ).
ASSIGN lr_data->* TO <lg_data>.
IMPORT (lt_import) FROM DATA BUFFER iv_attributes.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = 'IMPORT error'.
ENDIF.
go_xml->write_variant( iv_testname = iv_class
iv_version = iv_version
ig_data = <lg_data> ).
ENDIF.
ENDMETHOD.
METHOD find_types.
DATA: lv_name TYPE seocmpname,
lv_field TYPE string,
lv_type TYPE string,
lt_attr TYPE seo_attributes.
FIELD-SYMBOLS: <ls_type> LIKE LINE OF rt_types,
<ls_attr> LIKE LINE OF lt_attr,
<ls_parameter> LIKE LINE OF it_parameters.
lt_attr = zcl_updownci_class=>attributes( iv_class ).
LOOP AT it_parameters ASSIGNING <ls_parameter>.
IF <ls_parameter>-value CA '-'.
SPLIT <ls_parameter>-value AT '-' INTO lv_name lv_field.
ELSE.
lv_name = <ls_parameter>-value.
CLEAR lv_field.
ENDIF.
READ TABLE lt_attr ASSIGNING <ls_attr> WITH KEY cmpname = lv_name.
IF sy-subrc = 0.
lv_type = <ls_attr>-type.
ENDIF.
IF lv_type IS INITIAL.
IF iv_class = 'CL_WDY_CI_TEST_CONVENTIONS'.
lv_type = 'TY_WDY_CI_TEST_CONVENTIONS'.
ELSE.
lv_type = 'ABAP_BOOL'.
ENDIF.
ENDIF.
IF lv_name = 'M_OPTION' AND lv_field = 'SCAN_WEB_DYNPRO'.
* special handling for CL_CI_TEST_ABAP_NAMING_NEW
lv_type = 'ABAP_BOOL'.
ENDIF.
APPEND INITIAL LINE TO rt_types ASSIGNING <ls_type>.
<ls_type>-parameter = <ls_parameter>-name.
<ls_type>-name = lv_name.
<ls_type>-type = lv_type.
<ls_type>-field = lv_field.
ENDLOOP.
ENDMETHOD. "find_types
METHOD parse.
DATA: lv_offset TYPE i,
lt_split TYPE TABLE OF string,
lv_source TYPE string.
FIELD-SYMBOLS: <ls_parameter> LIKE LINE OF rt_parameters.
CONCATENATE LINES OF it_source INTO lv_source.
FIND FIRST OCCURRENCE OF 'import' IN lv_source
IGNORING CASE MATCH OFFSET lv_offset. "#EC NOTEXT
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = '"import" not found'.
ENDIF.
lv_offset = lv_offset + 6.
lv_source = lv_source+lv_offset.
FIND FIRST OCCURRENCE OF 'from data buffer p_attributes' IN lv_source
IGNORING CASE MATCH OFFSET lv_offset. "#EC NOTEXT
IF sy-subrc <> 0.
FIND FIRST OCCURRENCE OF 'from data buffer p_attributes' IN lv_source
IGNORING CASE MATCH OFFSET lv_offset. "#EC NOTEXT
ENDIF.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = '"from data buffer" not found'.
ENDIF.
lv_source = lv_source(lv_offset).
SPLIT lv_source AT space INTO TABLE lt_split.
LOOP AT lt_split INTO lv_source.
IF lv_source IS INITIAL OR lv_source = '='.
CONTINUE.
ENDIF.
* special handling for CL_SAUNIT_LEGACY_CI_CHECK
REPLACE FIRST OCCURRENCE OF 'me->' IN lv_source WITH ''.
IF NOT <ls_parameter> IS ASSIGNED.
APPEND INITIAL LINE TO rt_parameters ASSIGNING <ls_parameter>.
ENDIF.
IF <ls_parameter>-name IS INITIAL.
<ls_parameter>-name = lv_source.
TRANSLATE <ls_parameter>-name TO UPPER CASE.
ELSE.
<ls_parameter>-value = lv_source.
TRANSLATE <ls_parameter>-value TO UPPER CASE.
UNASSIGN <ls_parameter>.
ENDIF.
ENDLOOP.
ENDMETHOD. "parse
METHOD read_source.
DATA: lv_source LIKE LINE OF rt_source.
CALL FUNCTION 'RPY_PROGRAM_READ'
EXPORTING
program_name = iv_include
with_lowercase = abap_true
TABLES
source_extended = rt_source
EXCEPTIONS
cancelled = 1
not_found = 2
permission_error = 3
OTHERS = 4. "#EC CI_SUBRC
ASSERT sy-subrc = 0.
LOOP AT rt_source INTO lv_source.
IF lv_source(1) = '*'.
DELETE rt_source INDEX sy-tabix.
ENDIF.
ENDLOOP.
ENDMETHOD. "read_source
METHOD show_progress.
DATA: lv_f TYPE f,
lv_pct TYPE i.
lv_f = ( iv_current / iv_total ) * 100.
lv_pct = lv_f.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = lv_pct
text = iv_class.
ENDMETHOD. "show_progress
METHOD update_variant.
DATA: ls_variant LIKE LINE OF ct_variant.
FIELD-SYMBOLS: <ls_variant> LIKE LINE OF ct_variant.
READ TABLE ct_variant ASSIGNING <ls_variant> WITH KEY testname = iv_testname.
IF sy-subrc = 0.
WRITE: / 'Found'. "#EC NOTEXT
ELSE.
WRITE: / 'Not found, creating' COLOR 6. "#EC NOTEXT
CLEAR ls_variant.
ls_variant-testname = iv_testname.
ls_variant-version = zcl_updownci_variant=>version( iv_testname ).
INSERT ls_variant INTO TABLE ct_variant.
READ TABLE ct_variant ASSIGNING <ls_variant> WITH KEY testname = iv_testname.
ASSERT sy-subrc = 0.
ENDIF.
IF zcl_updownci_variant=>has_attributes( iv_testname ) = abap_true.
upload_attributes(
EXPORTING
iv_testname = iv_testname
ii_attributes = ii_attributes
CHANGING
cv_attributes = <ls_variant>-attributes ).
ELSE.
WRITE: / 'No attributes'. "#EC NOTEXT
ENDIF.
ENDMETHOD. "update_variant
METHOD upload_attributes.
DATA: lt_export TYPE ty_parameter_tt,
lv_attributes TYPE xstring,
lr_data TYPE REF TO data.
FIELD-SYMBOLS: <lg_data> TYPE data,
<lg_data_old> TYPE data.
build_memory( EXPORTING iv_class = iv_testname
IMPORTING er_data = lr_data
et_memory = lt_export ).
ASSIGN lr_data->* TO <lg_data>.
ASSERT sy-subrc = 0.
build_memory( EXPORTING iv_class = iv_testname
IMPORTING er_data = lr_data ).
ASSIGN lr_data->* TO <lg_data_old>.
ASSERT sy-subrc = 0.
IF NOT cv_attributes IS INITIAL.
IMPORT (lt_export) FROM DATA BUFFER cv_attributes.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = 'IMPORT error'.
ENDIF.
<lg_data_old> = <lg_data>.
ENDIF.
CLEAR <lg_data>.
go_xml->read_attributes(
EXPORTING
ii_attributes = ii_attributes
CHANGING
cg_data = <lg_data> ).
EXPORT (lt_export) TO DATA BUFFER lv_attributes.
IF <lg_data> <> <lg_data_old>.
WRITE: / 'Attributes mismatch' COLOR 6. "#EC NOTEXT
cv_attributes = lv_attributes.
ELSE.
WRITE: / 'Attributes match'. "#EC NOTEXT
ENDIF.
ENDMETHOD. "upload_attributes
ENDCLASS.
| [
31631,
1976,
565,
62,
929,
2902,
979,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
4871,
62,
9521,
41876,
371,
27746,
3963,
384,
420,
7278,
3672,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
86,
9892,
62,
979,
62,
9288,
62,
1102,
16593,
22492,
27938,
11,
366,
973,
32366,
198,
220,
220,
220,
220,
220,
220,
220,
2315,
62,
28060,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
20613,
62,
15526,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2393,
62,
15526,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
26533,
62,
9612,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1430,
62,
11125,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1080,
62,
13345,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5772,
62,
9122,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2291,
62,
10459,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
869,
62,
1326,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
86,
9892,
62,
979,
62,
9288,
62,
1102,
16593,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
1382,
62,
19875,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
7220,
220,
220,
220,
220,
220,
41876,
20681,
62,
7220,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
220,
220,
220,
41876,
20681,
62,
354,
74,
85,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
4871,
220,
220,
220,
220,
41876,
1259,
62,
4871,
62,
9521,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
19875,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
12708,
62,
9122,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
2251,
62,
6738,
62,
19875,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
19875,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
7220,
41876,
20681,
62,
7220,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
41876,
20681,
62,
354,
74,
85,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
9288,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
12708,
62,
9122,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
17143,
2357,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
17143,
2357,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
17143,
2357,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
17143,
2357,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
11507,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2214,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
4906,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
4906,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
4906,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
42715,
12,
26947,
25,
198,
220,
220,
220,
220,
220,
467,
62,
19875,
41876,
4526,
37,
5390,
1976,
565,
62,
929,
2902,
979,
62,
19875,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
4321,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
4871,
220,
220,
220,
220,
220,
41876,
384,
420,
7278,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1078,
7657,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
9641,
220,
220,
220,
41876,
20681,
62,
83,
301,
2100,
12,
9641,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1382,
62,
31673,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
4871,
220,
41876,
384,
420,
7278,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
1931,
62,
7890,
220,
220,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
31673,
41876,
1259,
62,
17143,
2357,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
9516,
62,
1078,
7657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_abapgit_repo DEFINITION
PUBLIC
ABSTRACT
CREATE PUBLIC .
PUBLIC SECTION.
METHODS bind_listener
IMPORTING
!ii_listener TYPE REF TO zif_abapgit_repo_listener .
METHODS deserialize_checks
RETURNING
VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_deserialize_checks
RAISING
zcx_abapgit_exception .
METHODS delete_checks
RETURNING
VALUE(rs_checks) TYPE zif_abapgit_definitions=>ty_delete_checks
RAISING
zcx_abapgit_exception .
METHODS constructor
IMPORTING
!is_data TYPE zif_abapgit_persistence=>ty_repo .
METHODS get_key
RETURNING
VALUE(rv_key) TYPE zif_abapgit_persistence=>ty_value .
METHODS get_name
RETURNING
VALUE(rv_name) TYPE string
RAISING
zcx_abapgit_exception .
METHODS get_files_local
IMPORTING
!ii_log TYPE REF TO zif_abapgit_log OPTIONAL
!it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt OPTIONAL
RETURNING
VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_item_tt
RAISING
zcx_abapgit_exception .
METHODS get_local_checksums_per_file
RETURNING
VALUE(rt_checksums) TYPE zif_abapgit_definitions=>ty_file_signatures_tt .
METHODS get_files_remote
RETURNING
VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt
RAISING
zcx_abapgit_exception .
METHODS get_package
RETURNING
VALUE(rv_package) TYPE zif_abapgit_persistence=>ty_repo-package .
METHODS get_dot_abapgit
RETURNING
VALUE(ro_dot_abapgit) TYPE REF TO zcl_abapgit_dot_abapgit .
METHODS set_dot_abapgit
IMPORTING
!io_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit
RAISING
zcx_abapgit_exception .
METHODS get_dot_apack
RETURNING
VALUE(ro_dot_apack) TYPE REF TO zcl_abapgit_apack_reader .
METHODS deserialize
IMPORTING
!is_checks TYPE zif_abapgit_definitions=>ty_deserialize_checks
!ii_log TYPE REF TO zif_abapgit_log
RAISING
zcx_abapgit_exception .
METHODS refresh
IMPORTING
!iv_drop_cache TYPE abap_bool DEFAULT abap_false
RAISING
zcx_abapgit_exception .
METHODS update_local_checksums
IMPORTING
!it_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt
RAISING
zcx_abapgit_exception .
METHODS rebuild_local_checksums
RAISING
zcx_abapgit_exception .
METHODS find_remote_dot_abapgit
RETURNING
VALUE(ro_dot) TYPE REF TO zcl_abapgit_dot_abapgit
RAISING
zcx_abapgit_exception .
METHODS find_remote_dot_apack
RETURNING
VALUE(ro_dot) TYPE REF TO zcl_abapgit_apack_reader
RAISING
zcx_abapgit_exception .
METHODS is_offline
RETURNING
VALUE(rv_offline) TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS set_files_remote
IMPORTING
!it_files TYPE zif_abapgit_definitions=>ty_files_tt .
METHODS get_local_settings
RETURNING
VALUE(rs_settings) TYPE zif_abapgit_persistence=>ty_repo-local_settings .
METHODS set_local_settings
IMPORTING
!is_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings
RAISING
zcx_abapgit_exception .
METHODS has_remote_source
ABSTRACT
RETURNING
VALUE(rv_yes) TYPE abap_bool .
METHODS status
IMPORTING
!ii_log TYPE REF TO zif_abapgit_log OPTIONAL
RETURNING
VALUE(rt_results) TYPE zif_abapgit_definitions=>ty_results_tt
RAISING
zcx_abapgit_exception .
METHODS switch_repo_type
IMPORTING
!iv_offline TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS create_new_log
IMPORTING
!iv_title TYPE string OPTIONAL
RETURNING
VALUE(ri_log) TYPE REF TO zif_abapgit_log .
METHODS get_log
RETURNING
VALUE(ri_log) TYPE REF TO zif_abapgit_log .
METHODS reset_log .
METHODS refresh_local_object
IMPORTING
!iv_obj_type TYPE tadir-object
!iv_obj_name TYPE tadir-obj_name
RAISING
zcx_abapgit_exception .
METHODS refresh_local_objects
RAISING
zcx_abapgit_exception .
METHODS reset_status .
PROTECTED SECTION.
DATA mt_local TYPE zif_abapgit_definitions=>ty_files_item_tt .
DATA mt_remote TYPE zif_abapgit_definitions=>ty_files_tt .
DATA mv_request_local_refresh TYPE abap_bool .
DATA ms_data TYPE zif_abapgit_persistence=>ty_repo .
DATA mv_request_remote_refresh TYPE abap_bool .
DATA mt_status TYPE zif_abapgit_definitions=>ty_results_tt .
DATA mi_log TYPE REF TO zif_abapgit_log .
METHODS set_dot_apack
IMPORTING
!io_dot_apack TYPE REF TO zcl_abapgit_apack_reader
RAISING
zcx_abapgit_exception .
METHODS set
IMPORTING
!it_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt OPTIONAL
!iv_url TYPE zif_abapgit_persistence=>ty_repo-url OPTIONAL
!iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name OPTIONAL
!iv_head_branch TYPE zif_abapgit_persistence=>ty_repo-head_branch OPTIONAL
!iv_offline TYPE zif_abapgit_persistence=>ty_repo-offline OPTIONAL
!is_dot_abapgit TYPE zif_abapgit_persistence=>ty_repo-dot_abapgit OPTIONAL
!is_local_settings TYPE zif_abapgit_persistence=>ty_repo-local_settings OPTIONAL
!iv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at OPTIONAL
!iv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by OPTIONAL
RAISING
zcx_abapgit_exception .
METHODS reset_remote .
PRIVATE SECTION.
DATA mi_listener TYPE REF TO zif_abapgit_repo_listener.
DATA mo_apack_reader TYPE REF TO zcl_abapgit_apack_reader.
METHODS get_local_checksums
RETURNING
VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt .
METHODS notify_listener
IMPORTING
!is_change_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask
RAISING
zcx_abapgit_exception .
METHODS build_dotabapgit_file
RETURNING
VALUE(rs_file) TYPE zif_abapgit_definitions=>ty_file
RAISING
zcx_abapgit_exception .
METHODS build_apack_manifest_file
RETURNING
VALUE(rs_file) TYPE zif_abapgit_definitions=>ty_file
RAISING
zcx_abapgit_exception .
METHODS update_last_deserialize
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION.
METHOD bind_listener.
mi_listener = ii_listener.
ENDMETHOD.
METHOD build_apack_manifest_file.
DATA: lo_manifest_reader TYPE REF TO zcl_abapgit_apack_reader,
ls_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor,
lo_manifest_writer TYPE REF TO zcl_abapgit_apack_writer.
lo_manifest_reader = zcl_abapgit_apack_reader=>create_instance( ms_data-package ).
IF lo_manifest_reader->has_manifest( ) = abap_true.
ls_descriptor = lo_manifest_reader->get_manifest_descriptor( ).
lo_manifest_writer = zcl_abapgit_apack_writer=>create_instance( ls_descriptor ).
rs_file-path = zif_abapgit_definitions=>c_root_dir.
rs_file-filename = zif_abapgit_apack_definitions=>c_dot_apack_manifest.
rs_file-data = zcl_abapgit_convert=>string_to_xstring_utf8( lo_manifest_writer->serialize( ) ).
rs_file-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob
iv_data = rs_file-data ).
ENDIF.
ENDMETHOD.
METHOD build_dotabapgit_file.
rs_file-path = zif_abapgit_definitions=>c_root_dir.
rs_file-filename = zif_abapgit_definitions=>c_dot_abapgit.
rs_file-data = get_dot_abapgit( )->serialize( ).
rs_file-sha1 = zcl_abapgit_hash=>sha1( iv_type = zif_abapgit_definitions=>c_type-blob
iv_data = rs_file-data ).
ENDMETHOD.
METHOD constructor.
ASSERT NOT is_data-key IS INITIAL.
ms_data = is_data.
mv_request_remote_refresh = abap_true.
ENDMETHOD.
METHOD create_new_log.
CREATE OBJECT mi_log TYPE zcl_abapgit_log.
mi_log->set_title( iv_title ).
ri_log = mi_log.
ENDMETHOD.
METHOD delete_checks.
DATA: li_package TYPE REF TO zif_abapgit_sap_package.
li_package = zcl_abapgit_factory=>get_sap_package( get_package( ) ).
rs_checks-transport-required = li_package->are_changes_recorded_in_tr_req( ).
ENDMETHOD.
METHOD deserialize.
DATA: lt_updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt,
lx_error TYPE REF TO zcx_abapgit_exception.
deserialize_checks( ).
IF is_checks-requirements-met = zif_abapgit_definitions=>gc_no AND is_checks-requirements-decision IS INITIAL.
zcx_abapgit_exception=>raise( 'Requirements not met and undecided' ).
ENDIF.
IF is_checks-dependencies-met = zif_abapgit_definitions=>gc_no.
zcx_abapgit_exception=>raise( 'APACK dependencies not met' ).
ENDIF.
IF is_checks-transport-required = abap_true AND is_checks-transport-transport IS INITIAL.
zcx_abapgit_exception=>raise( |No transport request was supplied| ).
ENDIF.
TRY.
lt_updated_files = zcl_abapgit_objects=>deserialize(
io_repo = me
is_checks = is_checks
ii_log = ii_log ).
CATCH zcx_abapgit_exception INTO lx_error.
* ensure to reset default transport request task
zcl_abapgit_default_transport=>get_instance( )->reset( ).
RAISE EXCEPTION lx_error.
ENDTRY.
APPEND get_dot_abapgit( )->get_signature( ) TO lt_updated_files.
CLEAR: mt_local.
update_local_checksums( lt_updated_files ).
update_last_deserialize( ).
reset_status( ).
COMMIT WORK AND WAIT.
ENDMETHOD.
METHOD deserialize_checks.
DATA: lt_requirements TYPE zif_abapgit_dot_abapgit=>ty_requirement_tt,
lt_dependencies TYPE zif_abapgit_apack_definitions=>tt_dependencies,
lv_master_language TYPE spras,
lv_logon_language TYPE spras.
find_remote_dot_abapgit( ).
find_remote_dot_apack( ).
lv_master_language = get_dot_abapgit( )->get_master_language( ).
lv_logon_language = sy-langu.
IF get_local_settings( )-write_protected = abap_true.
zcx_abapgit_exception=>raise( 'Cannot deserialize. Local code is write-protected by repo config' ).
ELSEIF lv_master_language <> lv_logon_language.
zcx_abapgit_exception=>raise( |Current login language |
&& |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_logon_language ) }'|
&& | does not match master language |
&& |'{ zcl_abapgit_convert=>conversion_exit_isola_output( lv_master_language ) }'.|
&& | Run 'Advanced' > 'Open in master language'| ).
ENDIF.
rs_checks = zcl_abapgit_objects=>deserialize_checks( me ).
lt_requirements = get_dot_abapgit( )->get_data( )-requirements.
rs_checks-requirements-met = zcl_abapgit_requirement_helper=>is_requirements_met( lt_requirements ).
lt_dependencies = get_dot_apack( )->get_manifest_descriptor( )-dependencies.
rs_checks-dependencies-met = zcl_abapgit_apack_helper=>are_dependencies_met( lt_dependencies ).
ENDMETHOD.
METHOD find_remote_dot_abapgit.
FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote.
get_files_remote( ).
READ TABLE mt_remote ASSIGNING <ls_remote>
WITH KEY path = zif_abapgit_definitions=>c_root_dir
filename = zif_abapgit_definitions=>c_dot_abapgit.
IF sy-subrc = 0.
ro_dot = zcl_abapgit_dot_abapgit=>deserialize( <ls_remote>-data ).
set_dot_abapgit( ro_dot ).
COMMIT WORK AND WAIT. " to release lock
ELSEIF lines( mt_remote ) > 3.
" Less files means it's a new repo (with just readme and license, for example) which is ok
zcx_abapgit_exception=>raise( |Cannot find .abapgit.xml - Is this an abapGit repo?| ).
ENDIF.
ENDMETHOD.
METHOD find_remote_dot_apack.
FIELD-SYMBOLS: <ls_remote> LIKE LINE OF mt_remote.
get_files_remote( ).
READ TABLE mt_remote ASSIGNING <ls_remote>
WITH KEY path = zif_abapgit_definitions=>c_root_dir
filename = zif_abapgit_apack_definitions=>c_dot_apack_manifest.
IF sy-subrc = 0.
ro_dot = zcl_abapgit_apack_reader=>deserialize( iv_package_name = ms_data-package
iv_xstr = <ls_remote>-data ).
set_dot_apack( ro_dot ).
ENDIF.
ENDMETHOD.
METHOD get_dot_abapgit.
CREATE OBJECT ro_dot_abapgit
EXPORTING
is_data = ms_data-dot_abapgit.
ENDMETHOD.
METHOD get_dot_apack.
IF mo_apack_reader IS NOT BOUND.
mo_apack_reader = zcl_abapgit_apack_reader=>create_instance( ms_data-package ).
ENDIF.
ro_dot_apack = mo_apack_reader.
ENDMETHOD.
METHOD get_files_local.
DATA: lo_filter TYPE REF TO zcl_abapgit_repo_filter,
lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt,
lo_serialize TYPE REF TO zcl_abapgit_serialize,
lt_found LIKE rt_files,
lv_force TYPE abap_bool,
ls_apack_file TYPE zif_abapgit_definitions=>ty_file.
FIELD-SYMBOLS: <ls_return> LIKE LINE OF rt_files.
" Serialization happened before and no refresh request
IF lines( mt_local ) > 0 AND mv_request_local_refresh = abap_false.
rt_files = mt_local.
RETURN.
ENDIF.
APPEND INITIAL LINE TO rt_files ASSIGNING <ls_return>.
<ls_return>-file = build_dotabapgit_file( ).
ls_apack_file = build_apack_manifest_file( ).
IF ls_apack_file IS NOT INITIAL.
APPEND INITIAL LINE TO rt_files ASSIGNING <ls_return>.
<ls_return>-file = ls_apack_file.
ENDIF.
lt_tadir = zcl_abapgit_factory=>get_tadir( )->read(
iv_package = get_package( )
iv_ignore_subpackages = get_local_settings( )-ignore_subpackages
iv_only_local_objects = get_local_settings( )-only_local_objects
io_dot = get_dot_abapgit( )
ii_log = ii_log ).
CREATE OBJECT lo_filter
EXPORTING
iv_package = get_package( ).
lo_filter->apply( EXPORTING it_filter = it_filter
CHANGING ct_tadir = lt_tadir ).
CREATE OBJECT lo_serialize
EXPORTING
iv_serialize_master_lang_only = ms_data-local_settings-serialize_master_lang_only.
* if there are less than 10 objects run in single thread
* this helps a lot when debugging, plus performance gain
* with low number of objects does not matter much
lv_force = boolc( lines( lt_tadir ) < 10 ).
lt_found = lo_serialize->serialize(
it_tadir = lt_tadir
iv_language = get_dot_abapgit( )->get_master_language( )
ii_log = ii_log
iv_force_sequential = lv_force ).
APPEND LINES OF lt_found TO rt_files.
mt_local = rt_files.
mv_request_local_refresh = abap_false. " Fulfill refresh
ENDMETHOD.
METHOD get_files_remote.
rt_files = mt_remote.
ENDMETHOD.
METHOD get_key.
rv_key = ms_data-key.
ENDMETHOD.
METHOD get_local_checksums.
rt_checksums = ms_data-local_checksums.
ENDMETHOD.
METHOD get_local_checksums_per_file.
FIELD-SYMBOLS <ls_object> LIKE LINE OF ms_data-local_checksums.
LOOP AT ms_data-local_checksums ASSIGNING <ls_object>.
" Check if item exists
READ TABLE mt_local TRANSPORTING NO FIELDS
WITH KEY item = <ls_object>-item.
IF sy-subrc = 0.
APPEND LINES OF <ls_object>-files TO rt_checksums.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD get_local_settings.
rs_settings = ms_data-local_settings.
ENDMETHOD.
METHOD get_log.
ri_log = mi_log.
ENDMETHOD.
METHOD get_name.
rv_name = ms_data-local_settings-display_name.
ENDMETHOD.
METHOD get_package.
rv_package = ms_data-package.
ENDMETHOD.
METHOD is_offline.
rv_offline = ms_data-offline.
ENDMETHOD.
METHOD notify_listener.
DATA ls_meta_slug TYPE zif_abapgit_persistence=>ty_repo_xml.
IF mi_listener IS BOUND.
MOVE-CORRESPONDING ms_data TO ls_meta_slug.
mi_listener->on_meta_change(
iv_key = ms_data-key
is_meta = ls_meta_slug
is_change_mask = is_change_mask ).
ENDIF.
ENDMETHOD.
METHOD rebuild_local_checksums.
DATA:
lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt,
ls_last_item TYPE zif_abapgit_definitions=>ty_item,
lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt.
FIELD-SYMBOLS:
<ls_checksum> LIKE LINE OF lt_checksums,
<ls_file_sig> LIKE LINE OF <ls_checksum>-files,
<ls_local> LIKE LINE OF lt_local.
lt_local = get_files_local( ).
DELETE lt_local " Remove non-code related files except .abapgit
WHERE item IS INITIAL
AND NOT ( file-path = zif_abapgit_definitions=>c_root_dir
AND file-filename = zif_abapgit_definitions=>c_dot_abapgit ).
SORT lt_local BY item.
LOOP AT lt_local ASSIGNING <ls_local>.
IF ls_last_item <> <ls_local>-item OR sy-tabix = 1. " First or New item reached ?
APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>.
<ls_checksum>-item = <ls_local>-item.
ls_last_item = <ls_local>-item.
ENDIF.
APPEND INITIAL LINE TO <ls_checksum>-files ASSIGNING <ls_file_sig>.
MOVE-CORRESPONDING <ls_local>-file TO <ls_file_sig>.
ENDLOOP.
set( it_checksums = lt_checksums ).
reset_status( ).
ENDMETHOD.
METHOD refresh.
mv_request_local_refresh = abap_true.
reset_remote( ).
CLEAR mi_log.
IF iv_drop_cache = abap_true.
CLEAR: mt_local.
ENDIF.
ENDMETHOD.
METHOD refresh_local_object.
DATA:
ls_tadir TYPE zif_abapgit_definitions=>ty_tadir,
lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt,
lt_new_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt,
lo_serialize TYPE REF TO zcl_abapgit_serialize.
lt_tadir = zcl_abapgit_factory=>get_tadir( )->read(
iv_package = ms_data-package
io_dot = get_dot_abapgit( ) ).
DELETE mt_local WHERE item-obj_type = iv_obj_type
AND item-obj_name = iv_obj_name.
READ TABLE lt_tadir INTO ls_tadir
WITH KEY object = iv_obj_type
obj_name = iv_obj_name.
IF sy-subrc <> 0 OR ls_tadir-delflag = abap_true.
" object doesn't exist anymore, nothing todo here
RETURN.
ENDIF.
CLEAR lt_tadir.
INSERT ls_tadir INTO TABLE lt_tadir.
CREATE OBJECT lo_serialize.
lt_new_local_files = lo_serialize->serialize( lt_tadir ).
INSERT LINES OF lt_new_local_files INTO TABLE mt_local.
ENDMETHOD.
METHOD refresh_local_objects.
mv_request_local_refresh = abap_true.
get_files_local( ).
ENDMETHOD.
METHOD reset_log.
CLEAR mi_log.
ENDMETHOD.
METHOD reset_remote.
CLEAR mt_remote.
mv_request_remote_refresh = abap_true.
reset_status( ).
ENDMETHOD.
METHOD reset_status.
CLEAR mt_status.
ENDMETHOD.
METHOD set.
* TODO: refactor
DATA: ls_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask.
ASSERT it_checksums IS SUPPLIED
OR iv_url IS SUPPLIED
OR iv_branch_name IS SUPPLIED
OR iv_head_branch IS SUPPLIED
OR iv_offline IS SUPPLIED
OR is_dot_abapgit IS SUPPLIED
OR is_local_settings IS SUPPLIED
OR iv_deserialized_by IS SUPPLIED
OR iv_deserialized_at IS SUPPLIED.
IF it_checksums IS SUPPLIED.
ms_data-local_checksums = it_checksums.
ls_mask-local_checksums = abap_true.
ENDIF.
IF iv_url IS SUPPLIED.
ms_data-url = iv_url.
ls_mask-url = abap_true.
ENDIF.
IF iv_branch_name IS SUPPLIED.
ms_data-branch_name = iv_branch_name.
ls_mask-branch_name = abap_true.
ENDIF.
IF iv_head_branch IS SUPPLIED.
ms_data-head_branch = iv_head_branch.
ls_mask-head_branch = abap_true.
ENDIF.
IF iv_offline IS SUPPLIED.
ms_data-offline = iv_offline.
ls_mask-offline = abap_true.
ENDIF.
IF is_dot_abapgit IS SUPPLIED.
ms_data-dot_abapgit = is_dot_abapgit.
ls_mask-dot_abapgit = abap_true.
ENDIF.
IF is_local_settings IS SUPPLIED.
ms_data-local_settings = is_local_settings.
ls_mask-local_settings = abap_true.
ENDIF.
IF iv_deserialized_at IS SUPPLIED OR iv_deserialized_by IS SUPPLIED.
ms_data-deserialized_at = iv_deserialized_at.
ms_data-deserialized_by = iv_deserialized_by.
ls_mask-deserialized_at = abap_true.
ls_mask-deserialized_by = abap_true.
ENDIF.
notify_listener( ls_mask ).
ENDMETHOD.
METHOD set_dot_abapgit.
set( is_dot_abapgit = io_dot_abapgit->get_data( ) ).
ENDMETHOD.
METHOD set_dot_apack.
get_dot_apack( ).
mo_apack_reader->set_manifest_descriptor( io_dot_apack->get_manifest_descriptor( ) ).
ENDMETHOD.
METHOD set_files_remote.
mt_remote = it_files.
mv_request_remote_refresh = abap_false.
ENDMETHOD.
METHOD set_local_settings.
set( is_local_settings = is_settings ).
ENDMETHOD.
METHOD status.
IF lines( mt_status ) = 0.
mt_status = zcl_abapgit_file_status=>status(
io_repo = me
ii_log = ii_log ).
ENDIF.
rt_results = mt_status.
ENDMETHOD.
METHOD switch_repo_type.
IF iv_offline = ms_data-offline.
zcx_abapgit_exception=>raise( |Cannot switch_repo_type, offline already = "{ ms_data-offline }"| ).
ENDIF.
IF iv_offline = abap_true. " On-line -> OFFline
set(
iv_url = zcl_abapgit_url=>name( ms_data-url )
iv_branch_name = ''
iv_head_branch = ''
iv_offline = abap_true ).
ELSE. " OFFline -> On-line
set( iv_offline = abap_false ).
ENDIF.
ENDMETHOD.
METHOD update_last_deserialize.
DATA: lv_deserialized_at TYPE zif_abapgit_persistence=>ty_repo-deserialized_at,
lv_deserialized_by TYPE zif_abapgit_persistence=>ty_repo-deserialized_by.
GET TIME STAMP FIELD lv_deserialized_at.
lv_deserialized_by = sy-uname.
set( iv_deserialized_at = lv_deserialized_at
iv_deserialized_by = lv_deserialized_by ).
ENDMETHOD.
METHOD update_local_checksums.
" ASSUMTION: SHA1 in param is actual and correct.
" Push fills it from local files before pushing, deserialize from remote
" If this is not true that there is an error somewhere but not here
DATA: lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt,
lt_files_idx TYPE zif_abapgit_definitions=>ty_file_signatures_tt,
lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt,
lv_chks_row TYPE i,
lv_file_row TYPE i.
FIELD-SYMBOLS: <ls_checksum> LIKE LINE OF lt_checksums,
<ls_file> LIKE LINE OF <ls_checksum>-files,
<ls_local> LIKE LINE OF lt_local,
<ls_new_state> LIKE LINE OF it_files.
lt_checksums = get_local_checksums( ).
lt_files_idx = it_files.
SORT lt_files_idx BY path filename. " Sort for binary search
" Loop through current chacksum state, update sha1 for common files
LOOP AT lt_checksums ASSIGNING <ls_checksum>.
lv_chks_row = sy-tabix.
LOOP AT <ls_checksum>-files ASSIGNING <ls_file>.
lv_file_row = sy-tabix.
READ TABLE lt_files_idx ASSIGNING <ls_new_state>
WITH KEY path = <ls_file>-path filename = <ls_file>-filename
BINARY SEARCH.
CHECK sy-subrc = 0. " Missing in param table, skip
IF <ls_new_state>-sha1 IS INITIAL. " Empty input sha1 is a deletion marker
DELETE <ls_checksum>-files INDEX lv_file_row.
ELSE.
<ls_file>-sha1 = <ls_new_state>-sha1. " Update sha1
CLEAR <ls_new_state>-sha1. " Mark as processed
ENDIF.
ENDLOOP.
IF lines( <ls_checksum>-files ) = 0. " Remove empty objects
DELETE lt_checksums INDEX lv_chks_row.
ENDIF.
ENDLOOP.
DELETE lt_files_idx WHERE sha1 IS INITIAL. " Remove processed
IF lines( lt_files_idx ) > 0.
lt_local = get_files_local( ).
SORT lt_local BY file-path file-filename. " Sort for binary search
ENDIF.
" Add new files - not deleted and not marked as processed above
LOOP AT lt_files_idx ASSIGNING <ls_new_state>.
READ TABLE lt_local ASSIGNING <ls_local>
WITH KEY file-path = <ls_new_state>-path file-filename = <ls_new_state>-filename
BINARY SEARCH.
IF sy-subrc <> 0.
* if the deserialization fails, the local file might not be there
CONTINUE.
ENDIF.
READ TABLE lt_checksums ASSIGNING <ls_checksum> " TODO Optimize
WITH KEY item = <ls_local>-item.
IF sy-subrc > 0.
APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_checksum>.
<ls_checksum>-item = <ls_local>-item.
ENDIF.
APPEND <ls_new_state> TO <ls_checksum>-files.
ENDLOOP.
SORT lt_checksums BY item.
set( it_checksums = lt_checksums ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
9564,
18601,
10659,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
11007,
62,
4868,
877,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
4868,
877,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
4868,
877,
764,
198,
220,
220,
220,
337,
36252,
50,
748,
48499,
1096,
62,
42116,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
42116,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
8906,
48499,
1096,
62,
42116,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
12233,
62,
42116,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
42116,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
33678,
62,
42116,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
7890,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
2539,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
2539,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
8367,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
3672,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
3672,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
16624,
62,
12001,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
6404,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6404,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
24455,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
83,
324,
343,
62,
926,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
16624,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
16624,
62,
9186,
62,
926,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
12001,
62,
42116,
5700,
62,
525,
62,
7753,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
42116,
5700,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
62,
12683,
6691,
62,
926,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
16624,
62,
47960,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
16624,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
16624,
62,
926,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
26495,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
26495,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
26495,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
26518,
62,
397,
499,
18300,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
26518,
62,
397,
499,
18300,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
764,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
26518,
62,
397,
499,
18300,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
26518,
62,
397,
499,
18300,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
26518,
62,
397,
499,
18300,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
26518,
62,
499,
441,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
26518,
62,
499,
441,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
499,
441,
62,
46862,
764,
198,
220,
220,
220,
337,
36252,
50,
748,
48499,
1096,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
42116,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
8906,
48499,
1096,
62,
42116,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
6404,
220,
220,
220,
41876
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE zif_abapgit_popups
PUBLIC .
TYPES:
BEGIN OF ty_popup,
url TYPE string,
package TYPE devclass,
branch_name TYPE string,
cancel TYPE abap_bool,
END OF ty_popup .
CONSTANTS:
c_new_branch_label TYPE string VALUE '+ create new ...' ##NO_TEXT.
METHODS:
popup_package_export
EXPORTING
ev_package TYPE devclass
ev_folder_logic TYPE string
RAISING
zcx_abapgit_exception,
popup_folder_logic
RETURNING
VALUE(rv_folder_logic) TYPE string
RAISING
zcx_abapgit_exception,
popup_object
RETURNING
VALUE(rs_tadir) TYPE tadir
RAISING
zcx_abapgit_exception,
create_branch_popup
EXPORTING
ev_name TYPE string
ev_cancel TYPE abap_bool
RAISING
zcx_abapgit_exception,
run_page_class_popup
EXPORTING
ev_name TYPE string
ev_cancel TYPE abap_bool
RAISING
zcx_abapgit_exception,
repo_new_offline
RETURNING
VALUE(rs_popup) TYPE zif_abapgit_popups=>ty_popup
RAISING
zcx_abapgit_exception,
branch_list_popup
IMPORTING
iv_url TYPE string
iv_default_branch TYPE string OPTIONAL
iv_show_new_option TYPE abap_bool OPTIONAL
RETURNING
VALUE(rs_branch) TYPE zif_abapgit_definitions=>ty_git_branch
RAISING
zcx_abapgit_exception,
repo_popup
IMPORTING
iv_url TYPE string
iv_package TYPE devclass OPTIONAL
iv_branch TYPE string DEFAULT 'refs/heads/master'
iv_freeze_package TYPE abap_bool OPTIONAL
iv_freeze_url TYPE abap_bool OPTIONAL
iv_title TYPE clike DEFAULT 'Clone repository ...'
RETURNING
VALUE(rs_popup) TYPE zif_abapgit_popups=>ty_popup
RAISING
zcx_abapgit_exception ##NO_TEXT,
popup_to_confirm
IMPORTING
titlebar TYPE clike
text_question TYPE clike
text_button_1 TYPE clike DEFAULT 'Yes'
icon_button_1 TYPE icon-name DEFAULT space
text_button_2 TYPE clike DEFAULT 'No'
icon_button_2 TYPE icon-name DEFAULT space
default_button TYPE char1 DEFAULT '1'
display_cancel_button TYPE char1 DEFAULT abap_true
RETURNING
VALUE(rv_answer) TYPE char1
RAISING
zcx_abapgit_exception,
popup_to_inform
IMPORTING
titlebar TYPE clike
text_message TYPE clike
RAISING
zcx_abapgit_exception,
popup_to_create_package
EXPORTING
es_package_data TYPE scompkdtln
ev_create TYPE boolean
RAISING
zcx_abapgit_exception,
popup_to_create_transp_branch
IMPORTING
it_transport_headers TYPE trwbo_request_headers
RETURNING
VALUE(rs_transport_branch) TYPE zif_abapgit_definitions=>ty_transport_to_branch
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel,
popup_to_select_transports
RETURNING
VALUE(rt_trkorr) TYPE trwbo_request_headers,
popup_to_select_from_list
IMPORTING
it_list TYPE STANDARD TABLE
i_header_text TYPE csequence
i_select_column_text TYPE csequence
it_columns_to_display TYPE stringtab
EXPORTING
VALUE(et_list) TYPE STANDARD TABLE
RAISING
zcx_abapgit_cancel
zcx_abapgit_exception,
branch_popup_callback
IMPORTING
iv_code TYPE clike
CHANGING
ct_fields TYPE zif_abapgit_definitions=>ty_sval_tt
cs_error TYPE svale
cv_show_popup TYPE char01
RAISING
zcx_abapgit_exception,
package_popup_callback
IMPORTING
iv_code TYPE clike
CHANGING
ct_fields TYPE zif_abapgit_definitions=>ty_sval_tt
cs_error TYPE svale
cv_show_popup TYPE char01
RAISING
zcx_abapgit_exception,
popup_transport_request
IMPORTING
is_transport_type TYPE zif_abapgit_definitions=>ty_transport_type
RETURNING
VALUE(rv_transport) TYPE trkorr
RAISING
zcx_abapgit_exception
zcx_abapgit_cancel.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
198,
220,
44731,
764,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
12924,
929,
11,
198,
220,
220,
220,
220,
220,
19016,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
5301,
220,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
8478,
62,
3672,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
14241,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
12924,
929,
764,
628,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
269,
62,
3605,
62,
1671,
3702,
62,
18242,
41876,
4731,
26173,
8924,
705,
10,
2251,
649,
2644,
6,
22492,
15285,
62,
32541,
13,
628,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
46207,
62,
26495,
62,
39344,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
819,
62,
26495,
220,
220,
220,
220,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
220,
220,
819,
62,
43551,
62,
6404,
291,
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,
11,
628,
220,
220,
220,
46207,
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,
43551,
62,
6404,
291,
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,
11,
628,
220,
220,
220,
46207,
62,
15252,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
83,
324,
343,
8,
41876,
36264,
343,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
2251,
62,
1671,
3702,
62,
12924,
929,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
819,
62,
3672,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
819,
62,
66,
21130,
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,
11,
628,
220,
220,
220,
1057,
62,
7700,
62,
4871,
62,
12924,
929,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
819,
62,
3672,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
819,
62,
66,
21130,
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,
11,
628,
220,
220,
220,
29924,
62,
3605,
62,
2364,
1370,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
12924,
929,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
14804,
774,
62,
12924,
929,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
8478,
62,
4868,
62,
12924,
929,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
12286,
62,
1671,
3702,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
12860,
62,
3605,
62,
18076,
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,
3808,
62,
1671,
3702,
8,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
18300,
62,
1671,
3702,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
29924,
62,
12924,
929,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
26495,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1671,
3702,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
5550,
38865,
705,
5420,
82,
14,
16600,
14,
9866,
6,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5787,
2736,
62,
26495,
41876,
450,
499,
62,
30388,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5787,
2736,
62,
6371,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
537,
522,
5550,
38865,
705,
2601,
505,
16099,
2644,
6,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
12924,
929,
8,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
14804,
774,
62,
12924,
929,
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,
22492,
15285,
62,
32541,
11,
628,
220,
220,
220,
46207,
62,
1462,
62,
10414,
2533,
198,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
DATA version TYPE c LENGTH 1.
DATA url TYPE string.
DATA text TYPE string.
DATA texts TYPE TABLE OF string.
GET PARAMETER ID 'ZHACK_ST22_MEMES' FIELD version.
IF version IS INITIAL.
RETURN.
ELSEIF version <> '1' AND version <> '2'.
version = '2'.
ENDIF.
url = |https://mbtools.github.io/ABAP-Dump-Memes/index.html?version={ version }|.
IF cerrid IS NOT INITIAL.
url = url && |&error={ to_upper( cerrid ) }|.
SELECT tline FROM snapt INTO TABLE texts WHERE langu = 'E' AND errid = cerrid AND ttype = 'K' ORDER BY PRIMARY KEY.
CONCATENATE LINES OF texts INTO text SEPARATED BY space.
REPLACE ALL OCCURRENCES OF REGEX '&[A-Z][A-Z0-9]' IN text WITH ''.
ENDIF.
IF exc_name IS NOT INITIAL.
url = url && |&exception={ to_upper( exc_name ) }|.
SELECT SINGLE descript FROM seoclasstx INTO text WHERE langu = 'E' AND clsname = exc_name.
ENDIF.
IF text IS NOT INITIAL.
url = url && |&text={ text }|.
ENDIF.
TRY.
CALL METHOD ('CL_ABAP_BROWSER')=>show_url
EXPORTING
title = 'Crash, Boom, Bang!'
size = cl_abap_browser=>xlarge
url = escape( val = url format = cl_abap_format=>e_url )
dialog = abap_false " does not exist in lower releases
context_menu = abap_true.
CATCH cx_root.
cl_abap_browser=>show_url(
title = 'Crash, Boom, Bang!'
size = cl_abap_browser=>xlarge
url = escape( val = url format = cl_abap_format=>e_url )
context_menu = abap_true ).
ENDTRY.
| [
26947,
2196,
41876,
269,
406,
49494,
352,
13,
198,
26947,
19016,
41876,
4731,
13,
198,
26947,
2420,
41876,
4731,
13,
198,
26947,
13399,
41876,
43679,
3963,
4731,
13,
198,
198,
18851,
29463,
2390,
2767,
1137,
4522,
705,
57,
39,
8120,
62,
2257,
1828,
62,
44,
3620,
1546,
6,
18930,
24639,
2196,
13,
198,
198,
5064,
2196,
3180,
3268,
2043,
12576,
13,
198,
220,
30826,
27064,
13,
198,
3698,
5188,
5064,
2196,
1279,
29,
705,
16,
6,
5357,
2196,
1279,
29,
705,
17,
4458,
198,
220,
2196,
796,
705,
17,
4458,
198,
10619,
5064,
13,
198,
198,
6371,
796,
930,
5450,
1378,
2022,
31391,
13,
12567,
13,
952,
14,
6242,
2969,
12,
35,
931,
12,
13579,
274,
14,
9630,
13,
6494,
30,
9641,
34758,
2196,
1782,
91,
13,
198,
198,
5064,
26074,
6058,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
19016,
796,
19016,
11405,
930,
5,
18224,
34758,
284,
62,
45828,
7,
26074,
6058,
1267,
1782,
91,
13,
198,
220,
33493,
256,
1370,
16034,
3013,
2373,
39319,
43679,
13399,
33411,
2786,
796,
705,
36,
6,
5357,
1931,
6058,
796,
26074,
6058,
5357,
256,
4906,
796,
705,
42,
6,
38678,
11050,
4810,
3955,
13153,
35374,
13,
198,
220,
39962,
1404,
1677,
6158,
43277,
1546,
3963,
13399,
39319,
2420,
7946,
27082,
11617,
11050,
2272,
13,
198,
220,
45285,
11598,
11096,
440,
4093,
31302,
24181,
1546,
3963,
23337,
6369,
705,
5,
58,
32,
12,
57,
7131,
32,
12,
57,
15,
12,
24,
49946,
3268,
2420,
13315,
705,
4458,
198,
10619,
5064,
13,
198,
5064,
2859,
62,
3672,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
19016,
796,
19016,
11405,
930,
5,
1069,
4516,
34758,
284,
62,
45828,
7,
2859,
62,
3672,
1267,
1782,
91,
13,
198,
220,
33493,
311,
2751,
2538,
12145,
16034,
384,
420,
21921,
301,
87,
39319,
2420,
33411,
2786,
796,
705,
36,
6,
5357,
537,
82,
3672,
796,
2859,
62,
3672,
13,
198,
10619,
5064,
13,
198,
5064,
2420,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
19016,
796,
19016,
11405,
930,
5,
5239,
34758,
2420,
1782,
91,
13,
198,
10619,
5064,
13,
198,
198,
40405,
13,
198,
220,
220,
220,
42815,
337,
36252,
19203,
5097,
62,
6242,
2969,
62,
11473,
22845,
1137,
11537,
14804,
12860,
62,
6371,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3670,
220,
220,
220,
220,
220,
220,
220,
796,
705,
47598,
11,
31824,
11,
9801,
13679,
198,
220,
220,
220,
220,
220,
220,
220,
2546,
220,
220,
220,
220,
220,
220,
220,
220,
796,
537,
62,
397,
499,
62,
40259,
14804,
87,
11664,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
6654,
7,
1188,
796,
19016,
5794,
796,
537,
62,
397,
499,
62,
18982,
14804,
68,
62,
6371,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
17310,
220,
220,
220,
220,
220,
220,
796,
450,
499,
62,
9562,
366,
857,
407,
2152,
287,
2793,
10050,
198,
220,
220,
220,
220,
220,
220,
220,
4732,
62,
26272,
796,
450,
499,
62,
7942,
13,
198,
220,
327,
11417,
43213,
62,
15763,
13,
198,
220,
220,
220,
537,
62,
397,
499,
62,
40259,
14804,
12860,
62,
6371,
7,
198,
220,
220,
220,
220,
220,
3670,
220,
220,
220,
220,
220,
220,
220,
796,
705,
47598,
11,
31824,
11,
9801,
13679,
198,
220,
220,
220,
220,
220,
2546,
220,
220,
220,
220,
220,
220,
220,
220,
796,
537,
62,
397,
499,
62,
40259,
14804,
87,
11664,
198,
220,
220,
220,
220,
220,
19016,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
6654,
7,
1188,
796,
19016,
5794,
796,
537,
62,
397,
499,
62,
18982,
14804,
68,
62,
6371,
1267,
198,
220,
220,
220,
220,
220,
4732,
62,
26272,
796,
450,
499,
62,
7942,
6739,
198,
10619,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_githubae 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: 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: 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,
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,
expires_at TYPE string,
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: 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: webhook-config, object
TYPES: BEGIN OF webhook_config,
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 webhook_config.
* Component schema: hook-delivery-item, object
TYPES: BEGIN OF hook_delivery_item,
id TYPE i,
guid TYPE string,
delivered_at TYPE string,
redelivery TYPE abap_bool,
duration TYPE f,
status TYPE string,
status_code TYPE i,
event TYPE string,
action TYPE string,
installation_id TYPE i,
repository_id TYPE i,
END OF hook_delivery_item.
* 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: 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: hook-delivery, object
TYPES: BEGIN OF subsubhook_delivery_response_h,
dummy_workaround TYPE i,
END OF subsubhook_delivery_response_h.
TYPES: BEGIN OF subhook_delivery_response,
headers TYPE subsubhook_delivery_response_h,
payload TYPE string,
END OF subhook_delivery_response.
TYPES: BEGIN OF subsubhook_delivery_request_pa,
dummy_workaround TYPE i,
END OF subsubhook_delivery_request_pa.
TYPES: BEGIN OF subsubhook_delivery_request_he,
dummy_workaround TYPE i,
END OF subsubhook_delivery_request_he.
TYPES: BEGIN OF subhook_delivery_request,
headers TYPE subsubhook_delivery_request_he,
payload TYPE subsubhook_delivery_request_pa,
END OF subhook_delivery_request.
TYPES: BEGIN OF hook_delivery,
id TYPE i,
guid TYPE string,
delivered_at TYPE string,
redelivery TYPE abap_bool,
duration TYPE f,
status TYPE string,
status_code TYPE i,
event TYPE string,
action TYPE string,
installation_id TYPE i,
repository_id TYPE i,
url TYPE string,
request TYPE subhook_delivery_request,
response TYPE subhook_delivery_response,
END OF hook_delivery.
* 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, object
TYPES: BEGIN OF installation,
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 app_permissions,
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,
has_multiple_single_files TYPE abap_bool,
single_file_paths TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
app_slug TYPE string,
suspended_by TYPE nullable_simple_user,
suspended_at TYPE string,
contact_email TYPE string,
END OF installation.
* 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,
temp_clone_token TYPE string,
allow_squash_merge TYPE abap_bool,
allow_auto_merge TYPE abap_bool,
delete_branch_on_merge TYPE abap_bool,
allow_update_branch TYPE abap_bool,
allow_merge_commit TYPE abap_bool,
subscribers_count TYPE i,
network_count TYPE i,
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,
temp_clone_token TYPE string,
allow_squash_merge TYPE abap_bool,
allow_auto_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,
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: 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: announcement-message, string
TYPES announcement_message TYPE string.
* Component schema: announcement-expiration, string
TYPES announcement_expiration TYPE string.
* Component schema: announcement, object
TYPES: BEGIN OF announcement,
announcement TYPE announcement_message,
expires_at TYPE announcement_expiration,
END OF announcement.
* 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: enabled-organizations, string
TYPES enabled_organizations TYPE string.
* Component schema: allowed-actions, string
TYPES allowed_actions TYPE string.
* Component schema: selected-actions-url, string
TYPES selected_actions_url TYPE string.
* Component schema: actions-enterprise-permissions, object
TYPES: BEGIN OF actions_enterprise_permissions,
enabled_organizations TYPE enabled_organizations,
selected_organizations_url TYPE string,
allowed_actions TYPE allowed_actions,
selected_actions_url TYPE selected_actions_url,
END OF actions_enterprise_permissions.
* Component schema: selected-actions, object
TYPES: BEGIN OF selected_actions,
github_owned_allowed TYPE abap_bool,
verified_allowed TYPE abap_bool,
patterns_allowed TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF selected_actions.
* Component schema: runner-groups-enterprise, object
TYPES: BEGIN OF runner_groups_enterprise,
id TYPE f,
name TYPE string,
visibility TYPE string,
default TYPE abap_bool,
selected_organizations_url TYPE string,
runners_url TYPE string,
allows_public_repositories TYPE abap_bool,
END OF runner_groups_enterprise.
* Component schema: runner-label, object
TYPES: BEGIN OF runner_label,
id TYPE i,
name TYPE string,
type TYPE string,
END OF runner_label.
* Component schema: runner, object
TYPES: BEGIN OF runner,
id TYPE i,
name TYPE string,
os TYPE string,
status TYPE string,
busy TYPE abap_bool,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF runner.
* 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
security_advisories_url TYPE string,
_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,
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,
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: author_association, string
TYPES author_association TYPE string.
* 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: 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: 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: 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, 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,
draft TYPE abap_bool,
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 subapi_overview_ssh_key_finger,
sha256_rsa TYPE string,
sha256_dsa TYPE string,
sha256_ecdsa TYPE string,
sha256_ed25519 TYPE string,
END OF subapi_overview_ssh_key_finger.
TYPES: BEGIN OF api_overview,
verifiable_password_authentica TYPE abap_bool,
ssh_key_fingerprints TYPE subapi_overview_ssh_key_finger,
hooks TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
web TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
api TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
git TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
packages TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
pages TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
importer TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
actions TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
dependabot TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
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,
temp_clone_token TYPE string,
allow_squash_merge TYPE abap_bool,
allow_auto_merge TYPE abap_bool,
delete_branch_on_merge TYPE abap_bool,
allow_update_branch TYPE abap_bool,
allow_merge_commit TYPE abap_bool,
subscribers_count TYPE i,
network_count TYPE i,
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,
temp_clone_token TYPE string,
allow_squash_merge TYPE abap_bool,
allow_auto_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,
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,
temp_clone_token TYPE string,
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,
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,
twitter_username TYPE string,
is_verified TYPE abap_bool,
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,
members_can_fork_private_repos TYPE abap_bool,
updated_at TYPE string,
END OF organization_full.
* Component schema: enabled-repositories, string
TYPES enabled_repositories TYPE string.
* Component schema: actions-organization-permissions, object
TYPES: BEGIN OF actions_organization_permissio,
enabled_repositories TYPE enabled_repositories,
selected_repositories_url TYPE string,
allowed_actions TYPE allowed_actions,
selected_actions_url TYPE selected_actions_url,
END OF actions_organization_permissio.
* Component schema: runner-groups-org, object
TYPES: BEGIN OF runner_groups_org,
id TYPE f,
name TYPE string,
visibility TYPE string,
default TYPE abap_bool,
selected_repositories_url TYPE string,
runners_url TYPE string,
inherited TYPE abap_bool,
inherited_allows_public_reposi TYPE abap_bool,
allows_public_repositories TYPE abap_bool,
END OF runner_groups_org.
* Component schema: organization-actions-secret, object
TYPES: BEGIN OF organization_actions_secret,
name TYPE string,
created_at TYPE string,
updated_at TYPE string,
visibility TYPE string,
selected_repositories_url TYPE string,
END OF organization_actions_secret.
* Component schema: actions-public-key, object
TYPES: BEGIN OF actions_public_key,
key_id TYPE string,
key TYPE string,
id TYPE i,
url TYPE string,
title TYPE string,
created_at TYPE string,
END OF actions_public_key.
* Component schema: empty-object, object
TYPES: BEGIN OF empty_object,
dummy_workaround TYPE i,
END OF empty_object.
* Component schema: external-group, object
TYPES: BEGIN OF external_group,
group_id TYPE i,
group_name TYPE string,
updated_at TYPE string,
teams TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
members TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF external_group.
* Component schema: external-groups, object
TYPES: BEGIN OF external_groups,
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF external_groups.
* 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,
deliveries_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: 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: 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,
temp_clone_token TYPE string,
allow_squash_merge TYPE abap_bool,
allow_auto_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,
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: project-collaborator-permission, object
TYPES: BEGIN OF project_collaborator_permissio,
permission TYPE string,
user TYPE nullable_simple_user,
END OF project_collaborator_permissio.
* 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,
actions_runner_registration TYPE rate_limit,
scim 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 subsubfull_repository_securi01,
status TYPE string,
END OF subsubfull_repository_securi01.
TYPES: BEGIN OF subsubfull_repository_security,
status TYPE string,
END OF subsubfull_repository_security.
TYPES: BEGIN OF subfull_repository_security_an,
advanced_security TYPE subsubfull_repository_security,
secret_scanning TYPE subsubfull_repository_securi01,
END OF subfull_repository_security_an.
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,
temp_clone_token TYPE string,
allow_squash_merge TYPE abap_bool,
allow_auto_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,
security_and_analysis TYPE subfull_repository_security_an,
END OF full_repository.
* Component schema: artifact, object
TYPES: BEGIN OF artifact,
id TYPE i,
node_id TYPE string,
name TYPE string,
size_in_bytes TYPE i,
url TYPE string,
archive_download_url TYPE string,
expired TYPE abap_bool,
created_at TYPE string,
expires_at TYPE string,
updated_at TYPE string,
END OF artifact.
* Component schema: job, object
TYPES: BEGIN OF job,
id TYPE i,
run_id TYPE i,
run_url TYPE string,
run_attempt TYPE i,
node_id TYPE string,
head_sha TYPE string,
url TYPE string,
html_url TYPE string,
status TYPE string,
conclusion TYPE string,
started_at TYPE string,
completed_at TYPE string,
name TYPE string,
steps TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
check_run_url TYPE string,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
runner_id TYPE i,
runner_name TYPE string,
runner_group_id TYPE i,
runner_group_name TYPE string,
END OF job.
* Component schema: actions-enabled, boolean
TYPES actions_enabled TYPE abap_bool.
* Component schema: actions-repository-permissions, object
TYPES: BEGIN OF actions_repository_permissions,
enabled TYPE actions_enabled,
allowed_actions TYPE allowed_actions,
selected_actions_url TYPE selected_actions_url,
END OF actions_repository_permissions.
* 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: nullable-simple-commit, object
TYPES: BEGIN OF subnullable_simple_commit_comm,
name TYPE string,
email TYPE string,
END OF subnullable_simple_commit_comm.
TYPES: BEGIN OF subnullable_simple_commit_auth,
name TYPE string,
email TYPE string,
END OF subnullable_simple_commit_auth.
TYPES: BEGIN OF nullable_simple_commit,
id TYPE string,
tree_id TYPE string,
message TYPE string,
timestamp TYPE string,
author TYPE subnullable_simple_commit_auth,
committer TYPE subnullable_simple_commit_comm,
END OF nullable_simple_commit.
* Component schema: workflow-run, object
TYPES: BEGIN OF workflow_run,
id TYPE i,
name TYPE string,
node_id TYPE string,
check_suite_id TYPE i,
check_suite_node_id TYPE string,
head_branch TYPE string,
head_sha TYPE string,
run_number TYPE i,
run_attempt TYPE i,
event TYPE string,
status TYPE string,
conclusion TYPE string,
workflow_id TYPE i,
url TYPE string,
html_url TYPE string,
pull_requests TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
created_at TYPE string,
updated_at TYPE string,
run_started_at TYPE string,
jobs_url TYPE string,
logs_url TYPE string,
check_suite_url TYPE string,
artifacts_url TYPE string,
cancel_url TYPE string,
rerun_url TYPE string,
previous_attempt_url TYPE string,
workflow_url TYPE string,
head_commit TYPE nullable_simple_commit,
repository TYPE minimal_repository,
head_repository TYPE minimal_repository,
head_repository_id TYPE i,
END OF workflow_run.
* Component schema: workflow-run-usage, object
TYPES: BEGIN OF subsubworkflow_run_usage_bil02,
total_ms TYPE i,
jobs TYPE i,
job_runs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF subsubworkflow_run_usage_bil02.
TYPES: BEGIN OF subsubworkflow_run_usage_bil01,
total_ms TYPE i,
jobs TYPE i,
job_runs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF subsubworkflow_run_usage_bil01.
TYPES: BEGIN OF subsubworkflow_run_usage_billa,
total_ms TYPE i,
jobs TYPE i,
job_runs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF subsubworkflow_run_usage_billa.
TYPES: BEGIN OF subworkflow_run_usage_billable,
ubuntu TYPE subsubworkflow_run_usage_billa,
macos TYPE subsubworkflow_run_usage_bil01,
windows TYPE subsubworkflow_run_usage_bil02,
END OF subworkflow_run_usage_billable.
TYPES: BEGIN OF workflow_run_usage,
billable TYPE subworkflow_run_usage_billable,
run_duration_ms TYPE i,
END OF workflow_run_usage.
* Component schema: actions-secret, object
TYPES: BEGIN OF actions_secret,
name TYPE string,
created_at TYPE string,
updated_at TYPE string,
END OF actions_secret.
* Component schema: workflow, object
TYPES: BEGIN OF workflow,
id TYPE i,
node_id TYPE string,
name TYPE string,
path TYPE string,
state TYPE string,
created_at TYPE string,
updated_at TYPE string,
url TYPE string,
html_url TYPE string,
badge_url TYPE string,
deleted_at TYPE string,
END OF workflow.
* Component schema: workflow-usage, object
TYPES: BEGIN OF subsubworkflow_usage_billabl02,
total_ms TYPE i,
END OF subsubworkflow_usage_billabl02.
TYPES: BEGIN OF subsubworkflow_usage_billabl01,
total_ms TYPE i,
END OF subsubworkflow_usage_billabl01.
TYPES: BEGIN OF subsubworkflow_usage_billable_,
total_ms TYPE i,
END OF subsubworkflow_usage_billable_.
TYPES: BEGIN OF subworkflow_usage_billable,
ubuntu TYPE subsubworkflow_usage_billable_,
macos TYPE subsubworkflow_usage_billabl01,
windows TYPE subsubworkflow_usage_billabl02,
END OF subworkflow_usage_billable.
TYPES: BEGIN OF workflow_usage,
billable TYPE subworkflow_usage_billable,
END OF workflow_usage.
* Component schema: autolink, object
TYPES: BEGIN OF autolink,
id TYPE i,
key_prefix TYPE string,
url_template TYPE string,
END OF autolink.
* Component schema: protected-branch-required-status-check, object
TYPES: BEGIN OF protected_branch_required_stat,
url TYPE string,
enforcement_level TYPE string,
contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
checks TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
contexts_url TYPE string,
strict TYPE abap_bool,
END OF protected_branch_required_stat.
* 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_req01,
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 subprotected_branch_pull_req01.
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,
bypass_pull_request_allowances TYPE subprotected_branch_pull_req01,
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_require02,
url TYPE string,
enabled TYPE abap_bool,
END OF subbranch_protection_require02.
TYPES: BEGIN OF subbranch_protection_require01,
enabled TYPE abap_bool,
END OF subbranch_protection_require01.
TYPES: BEGIN OF subbranch_protection_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_required_,
enabled TYPE abap_bool,
END OF subbranch_protection_required_.
TYPES: BEGIN OF branch_protection,
url TYPE string,
enabled TYPE abap_bool,
required_status_checks TYPE protected_branch_required_stat,
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_required_,
allow_force_pushes TYPE subbranch_protection_allow_for,
allow_deletions TYPE subbranch_protection_allow_del,
required_conversation_resoluti TYPE subbranch_protection_require01,
name TYPE string,
protection_url TYPE string,
required_signatures TYPE subbranch_protection_require02,
END OF branch_protection.
* Component schema: short-branch, object
TYPES: BEGIN OF subshort_branch_commit,
sha TYPE string,
url TYPE string,
END OF subshort_branch_commit.
TYPES: BEGIN OF short_branch,
name TYPE string,
commit TYPE subshort_branch_commit,
protected TYPE abap_bool,
protection TYPE branch_protection,
protection_url TYPE string,
END OF short_branch.
* Component schema: nullable-git-user, object
TYPES: BEGIN OF nullable_git_user,
name TYPE string,
email TYPE string,
date TYPE string,
END OF nullable_git_user.
* Component schema: verification, object
TYPES: BEGIN OF verification,
verified TYPE abap_bool,
reason TYPE string,
payload TYPE string,
signature TYPE string,
END OF verification.
* Component schema: 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, 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
checks 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_requi01,
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_requi01.
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,
bypass_pull_request_allowances TYPE subsubprotected_branch_requi01,
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: 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 STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
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,
rerequestable TYPE abap_bool,
runs_rerequestable TYPE abap_bool,
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: code-scanning-analysis-tool-name, string
TYPES code_scanning_analysis_tool_na TYPE string.
* Component schema: code-scanning-analysis-tool-guid, string
TYPES code_scanning_analysis_tool_gu TYPE string.
* Component schema: code-scanning-ref, string
TYPES code_scanning_ref TYPE string.
* Component schema: code-scanning-alert-state, string
TYPES code_scanning_alert_state TYPE string.
* Component schema: alert-number, integer
TYPES alert_number TYPE i.
* Component schema: alert-created-at, string
TYPES alert_created_at TYPE string.
* Component schema: alert-url, string
TYPES alert_url TYPE string.
* Component schema: alert-html-url, string
TYPES alert_html_url TYPE string.
* Component schema: alert-instances-url, string
TYPES alert_instances_url TYPE string.
* Component schema: code-scanning-alert-dismissed-at, string
TYPES code_scanning_alert_dismissed_ TYPE string.
* Component schema: code-scanning-alert-dismissed-reason, string
TYPES code_scanning_alert_dismisse01 TYPE string.
* Component schema: code-scanning-alert-rule-summary, object
TYPES: BEGIN OF code_scanning_alert_rule_summa,
id TYPE string,
name TYPE string,
severity TYPE string,
description TYPE string,
END OF code_scanning_alert_rule_summa.
* Component schema: code-scanning-analysis-tool-version, string
TYPES code_scanning_analysis_tool_ve TYPE string.
* Component schema: code-scanning-analysis-tool, object
TYPES: BEGIN OF code_scanning_analysis_tool,
name TYPE code_scanning_analysis_tool_na,
version TYPE code_scanning_analysis_tool_ve,
guid TYPE code_scanning_analysis_tool_gu,
END OF code_scanning_analysis_tool.
* Component schema: code-scanning-analysis-analysis-key, string
TYPES code_scanning_analysis_analysi TYPE string.
* Component schema: code-scanning-alert-environment, string
TYPES code_scanning_alert_environmen TYPE string.
* Component schema: code-scanning-analysis-category, string
TYPES code_scanning_analysis_categor TYPE string.
* Component schema: code-scanning-alert-location, object
TYPES: BEGIN OF code_scanning_alert_location,
path TYPE string,
start_line TYPE i,
end_line TYPE i,
start_column TYPE i,
end_column TYPE i,
END OF code_scanning_alert_location.
* Component schema: code-scanning-alert-classification, string
TYPES code_scanning_alert_classifica TYPE string.
* Component schema: code-scanning-alert-instance, object
TYPES: BEGIN OF subcode_scanning_alert_instanc,
text TYPE string,
END OF subcode_scanning_alert_instanc.
TYPES: BEGIN OF code_scanning_alert_instance,
ref TYPE code_scanning_ref,
analysis_key TYPE code_scanning_analysis_analysi,
environment TYPE code_scanning_alert_environmen,
category TYPE code_scanning_analysis_categor,
state TYPE code_scanning_alert_state,
commit_sha TYPE string,
message TYPE subcode_scanning_alert_instanc,
location TYPE code_scanning_alert_location,
html_url TYPE string,
classifications TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF code_scanning_alert_instance.
* Component schema: code-scanning-alert-items, object
TYPES: BEGIN OF code_scanning_alert_items,
number TYPE alert_number,
created_at TYPE alert_created_at,
url TYPE alert_url,
html_url TYPE alert_html_url,
instances_url TYPE alert_instances_url,
state TYPE code_scanning_alert_state,
dismissed_by TYPE nullable_simple_user,
dismissed_at TYPE code_scanning_alert_dismissed_,
dismissed_reason TYPE code_scanning_alert_dismisse01,
rule TYPE code_scanning_alert_rule_summa,
tool TYPE code_scanning_analysis_tool,
most_recent_instance TYPE code_scanning_alert_instance,
END OF code_scanning_alert_items.
* Component schema: code-scanning-alert-rule, object
TYPES: BEGIN OF code_scanning_alert_rule,
id TYPE string,
name TYPE string,
severity TYPE string,
security_severity_level TYPE string,
description TYPE string,
full_description TYPE string,
tags TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
help TYPE string,
END OF code_scanning_alert_rule.
* Component schema: code-scanning-alert, object
TYPES: BEGIN OF code_scanning_alert,
number TYPE alert_number,
created_at TYPE alert_created_at,
url TYPE alert_url,
html_url TYPE alert_html_url,
instances_url TYPE alert_instances_url,
state TYPE code_scanning_alert_state,
dismissed_by TYPE nullable_simple_user,
dismissed_at TYPE code_scanning_alert_dismissed_,
dismissed_reason TYPE code_scanning_alert_dismisse01,
rule TYPE code_scanning_alert_rule,
tool TYPE code_scanning_analysis_tool,
most_recent_instance TYPE code_scanning_alert_instance,
END OF code_scanning_alert.
* Component schema: code-scanning-alert-set-state, string
TYPES code_scanning_alert_set_state TYPE string.
* Component schema: code-scanning-analysis-sarif-id, string
TYPES code_scanning_analysis_sarif_i TYPE string.
* Component schema: code-scanning-analysis-commit-sha, string
TYPES code_scanning_analysis_commit_ TYPE string.
* Component schema: code-scanning-analysis-environment, string
TYPES code_scanning_analysis_environ TYPE string.
* Component schema: code-scanning-analysis-created-at, string
TYPES code_scanning_analysis_created TYPE string.
* Component schema: code-scanning-analysis-url, string
TYPES code_scanning_analysis_url TYPE string.
* Component schema: code-scanning-analysis, object
TYPES: BEGIN OF code_scanning_analysis,
ref TYPE code_scanning_ref,
commit_sha TYPE code_scanning_analysis_commit_,
analysis_key TYPE code_scanning_analysis_analysi,
environment TYPE code_scanning_analysis_environ,
category TYPE code_scanning_analysis_categor,
error TYPE string,
created_at TYPE code_scanning_analysis_created,
results_count TYPE i,
rules_count TYPE i,
id TYPE i,
url TYPE code_scanning_analysis_url,
sarif_id TYPE code_scanning_analysis_sarif_i,
tool TYPE code_scanning_analysis_tool,
deletable TYPE abap_bool,
warning TYPE string,
END OF code_scanning_analysis.
* Component schema: code-scanning-analysis-deletion, object
TYPES: BEGIN OF code_scanning_analysis_deletio,
next_analysis_url TYPE string,
confirm_delete_url TYPE string,
END OF code_scanning_analysis_deletio.
* Component schema: code-scanning-analysis-sarif-file, string
TYPES code_scanning_analysis_sarif_f TYPE string.
* Component schema: code-scanning-sarifs-receipt, object
TYPES: BEGIN OF code_scanning_sarifs_receipt,
id TYPE code_scanning_analysis_sarif_i,
url TYPE string,
END OF code_scanning_sarifs_receipt.
* Component schema: code-scanning-sarifs-status, object
TYPES: BEGIN OF code_scanning_sarifs_status,
processing_status TYPE string,
analyses_url TYPE string,
errors TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF code_scanning_sarifs_status.
* 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: nullable-collaborator, object
TYPES: BEGIN OF subnullable_collaborator_permi,
pull TYPE abap_bool,
triage TYPE abap_bool,
push TYPE abap_bool,
maintain TYPE abap_bool,
admin TYPE abap_bool,
END OF subnullable_collaborator_permi.
TYPES: BEGIN OF nullable_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 subnullable_collaborator_permi,
END OF nullable_collaborator.
* Component schema: repository-collaborator-permission, object
TYPES: BEGIN OF repository_collaborator_permis,
permission TYPE string,
user TYPE nullable_collaborator,
END OF repository_collaborator_permis.
* 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: 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: auto_merge, object
TYPES: BEGIN OF auto_merge,
enabled_by TYPE simple_user,
merge_method TYPE string,
commit_title TYPE string,
commit_message TYPE string,
END OF auto_merge.
* 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,
auto_merge TYPE auto_merge,
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: 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-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: 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: 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,
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: 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,
deliveries_url TYPE string,
last_response TYPE hook_response,
END OF hook.
* Component schema: nullable-issue, object
TYPES: BEGIN OF subnullable_issue_pull_request,
merged_at TYPE string,
diff_url TYPE string,
html_url TYPE string,
patch_url TYPE string,
url TYPE string,
END OF subnullable_issue_pull_request.
TYPES: BEGIN OF nullable_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 subnullable_issue_pull_request,
closed_at TYPE string,
created_at TYPE string,
updated_at TYPE string,
draft TYPE abap_bool,
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 nullable_issue.
* 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 nullable_issue,
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: 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: 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,
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: merged-upstream, object
TYPES: BEGIN OF merged_upstream,
message TYPE string,
merge_type TYPE string,
base_branch TYPE string,
END OF merged_upstream.
* 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,
protected_domain_state TYPE string,
pending_domain_unverified_at 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: 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,
is_template TYPE abap_bool,
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,
visibility TYPE string,
mirror_url TYPE string,
open_issues TYPE i,
open_issues_count TYPE i,
permissions TYPE subsubsubpull_request_base_r01,
temp_clone_token TYPE string,
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,
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,
visibility TYPE string,
mirror_url TYPE string,
open_issues TYPE i,
open_issues_count TYPE i,
permissions TYPE subsubsubpull_request_head_r01,
temp_clone_token TYPE string,
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,
is_template 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,
auto_merge TYPE auto_merge,
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,
mentions_count TYPE i,
discussion_url TYPE string,
reactions TYPE reaction_rollup,
END OF release.
* Component schema: secret-scanning-alert-state, string
TYPES secret_scanning_alert_state TYPE string.
* Component schema: secret-scanning-alert-resolution, string
TYPES secret_scanning_alert_resoluti TYPE string.
* Component schema: secret-scanning-alert, object
TYPES: BEGIN OF secret_scanning_alert,
number TYPE alert_number,
created_at TYPE alert_created_at,
url TYPE alert_url,
html_url TYPE alert_html_url,
locations_url TYPE string,
state TYPE secret_scanning_alert_state,
resolution TYPE secret_scanning_alert_resoluti,
resolved_at TYPE string,
resolved_by TYPE nullable_simple_user,
secret_type TYPE string,
secret TYPE string,
END OF secret_scanning_alert.
* 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: scim-group-list-enterprise, object
TYPES: BEGIN OF scim_group_list_enterprise,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
totalresults TYPE f,
itemsperpage TYPE f,
startindex TYPE f,
resources TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF scim_group_list_enterprise.
* Component schema: scim-enterprise-group, object
TYPES: BEGIN OF subscim_enterprise_group_meta,
resourcetype TYPE string,
created TYPE string,
lastmodified TYPE string,
location TYPE string,
END OF subscim_enterprise_group_meta.
TYPES: BEGIN OF scim_enterprise_group,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
id TYPE string,
externalid TYPE string,
displayname TYPE string,
members TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
meta TYPE subscim_enterprise_group_meta,
END OF scim_enterprise_group.
* 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,
reactions TYPE reaction_rollup,
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,
visibility TYPE string,
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,
allow_auto_merge TYPE abap_bool,
delete_branch_on_merge TYPE abap_bool,
allow_forking TYPE abap_bool,
is_template 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: 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,
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 subprivate_user_plan,
suspended_at TYPE string,
business_plus TYPE abap_bool,
ldap_dn TYPE string,
END OF private_user.
* 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_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_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_update_webhook_config, object
TYPES: BEGIN OF bodyapps_update_webhook_config,
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 bodyapps_update_webhook_config.
* 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: bodyenterprise_admin_set_githu, object
TYPES: BEGIN OF bodyenterprise_admin_set_githu,
enabled_organizations TYPE enabled_organizations,
allowed_actions TYPE allowed_actions,
END OF bodyenterprise_admin_set_githu.
* Component schema: bodyenterprise_admin_set_selec, object
TYPES: BEGIN OF bodyenterprise_admin_set_selec,
selected_organization_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_set_selec.
* Component schema: bodyenterprise_admin_create_se, object
TYPES: BEGIN OF bodyenterprise_admin_create_se,
name TYPE string,
visibility TYPE string,
selected_organization_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
allows_public_repositories TYPE abap_bool,
END OF bodyenterprise_admin_create_se.
* Component schema: bodyenterprise_admin_update_se, object
TYPES: BEGIN OF bodyenterprise_admin_update_se,
name TYPE string,
visibility TYPE string,
allows_public_repositories TYPE abap_bool,
END OF bodyenterprise_admin_update_se.
* Component schema: bodyenterprise_admin_delete_se, object
TYPES: BEGIN OF bodyenterprise_admin_delete_se,
name TYPE string,
visibility TYPE string,
allows_public_repositories TYPE abap_bool,
END OF bodyenterprise_admin_delete_se.
* Component schema: bodyenterprise_admin_set_self_, object
TYPES: BEGIN OF bodyenterprise_admin_set_self_,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_set_self_.
* 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,
members_can_create_pages TYPE abap_bool,
members_can_create_public_page TYPE abap_bool,
members_can_create_private_pag TYPE abap_bool,
members_can_fork_private_repos TYPE abap_bool,
blog TYPE string,
END OF bodyorgs_update.
* Component schema: bodyactions_set_github_actions, object
TYPES: BEGIN OF bodyactions_set_github_actions,
enabled_repositories TYPE enabled_repositories,
allowed_actions TYPE allowed_actions,
END OF bodyactions_set_github_actions.
* Component schema: bodyactions_set_selected_repos, object
TYPES: BEGIN OF bodyactions_set_selected_repos,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_set_selected_repos.
* Component schema: bodyactions_create_self_hosted, object
TYPES: BEGIN OF bodyactions_create_self_hosted,
name TYPE string,
visibility TYPE string,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
allows_public_repositories TYPE abap_bool,
END OF bodyactions_create_self_hosted.
* Component schema: bodyactions_update_self_hosted, object
TYPES: BEGIN OF bodyactions_update_self_hosted,
name TYPE string,
visibility TYPE string,
allows_public_repositories TYPE abap_bool,
END OF bodyactions_update_self_hosted.
* Component schema: bodyactions_delete_self_hosted, object
TYPES: BEGIN OF bodyactions_delete_self_hosted,
name TYPE string,
visibility TYPE string,
allows_public_repositories TYPE abap_bool,
END OF bodyactions_delete_self_hosted.
* Component schema: bodyactions_create_or_update_o, object
TYPES: BEGIN OF bodyactions_create_or_update_o,
encrypted_value TYPE string,
key_id TYPE string,
visibility TYPE string,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_create_or_update_o.
* Component schema: bodyactions_delete_org_secret, object
TYPES: BEGIN OF bodyactions_delete_org_secret,
encrypted_value TYPE string,
key_id TYPE string,
visibility TYPE string,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_delete_org_secret.
* Component schema: bodyactions_set_selected_rep01, object
TYPES: BEGIN OF bodyactions_set_selected_rep01,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_set_selected_rep01.
* 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_update_webhook_config, object
TYPES: BEGIN OF bodyorgs_update_webhook_config,
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 bodyorgs_update_webhook_config.
* 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: 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,
allow_auto_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_link_external_idp_gr, object
TYPES: BEGIN OF bodyteams_link_external_idp_gr,
group_id TYPE i,
END OF bodyteams_link_external_idp_gr.
* Component schema: bodyteams_unlink_external_idp_, object
TYPES: BEGIN OF bodyteams_unlink_external_idp_,
group_id TYPE i,
END OF bodyteams_unlink_external_idp_.
* 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 subsubbodyrepos_update_secur01,
status TYPE string,
END OF subsubbodyrepos_update_secur01.
TYPES: BEGIN OF subsubbodyrepos_update_securit,
status TYPE string,
END OF subsubbodyrepos_update_securit.
TYPES: BEGIN OF subbodyrepos_update_security_a,
advanced_security TYPE subsubbodyrepos_update_securit,
secret_scanning TYPE subsubbodyrepos_update_secur01,
END OF subbodyrepos_update_security_a.
TYPES: BEGIN OF bodyrepos_update,
name TYPE string,
description TYPE string,
homepage TYPE string,
private TYPE abap_bool,
visibility TYPE string,
security_and_analysis TYPE subbodyrepos_update_security_a,
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,
allow_auto_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 subsubbodyrepos_delete_secur01,
status TYPE string,
END OF subsubbodyrepos_delete_secur01.
TYPES: BEGIN OF subsubbodyrepos_delete_securit,
status TYPE string,
END OF subsubbodyrepos_delete_securit.
TYPES: BEGIN OF subbodyrepos_delete_security_a,
advanced_security TYPE subsubbodyrepos_delete_securit,
secret_scanning TYPE subsubbodyrepos_delete_secur01,
END OF subbodyrepos_delete_security_a.
TYPES: BEGIN OF bodyrepos_delete,
name TYPE string,
description TYPE string,
homepage TYPE string,
private TYPE abap_bool,
visibility TYPE string,
security_and_analysis TYPE subbodyrepos_delete_security_a,
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,
allow_auto_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: bodyactions_set_github_actio01, object
TYPES: BEGIN OF bodyactions_set_github_actio01,
enabled TYPE actions_enabled,
allowed_actions TYPE allowed_actions,
END OF bodyactions_set_github_actio01.
* Component schema: bodyactions_create_or_update_r, object
TYPES: BEGIN OF bodyactions_create_or_update_r,
encrypted_value TYPE string,
key_id TYPE string,
END OF bodyactions_create_or_update_r.
* Component schema: bodyactions_delete_repo_secret, object
TYPES: BEGIN OF bodyactions_delete_repo_secret,
encrypted_value TYPE string,
key_id TYPE string,
END OF bodyactions_delete_repo_secret.
* Component schema: bodyactions_create_workflow_di, object
TYPES: BEGIN OF subbodyactions_create_workflow,
dummy_workaround TYPE i,
END OF subbodyactions_create_workflow.
TYPES: BEGIN OF bodyactions_create_workflow_di,
ref TYPE string,
inputs TYPE subbodyactions_create_workflow,
END OF bodyactions_create_workflow_di.
* Component schema: bodyrepos_create_autolink, object
TYPES: BEGIN OF bodyrepos_create_autolink,
key_prefix TYPE string,
url_template TYPE string,
END OF bodyrepos_create_autolink.
* 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_branc01,
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_branc01.
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,
bypass_pull_request_allowances TYPE subsubbodyrepos_update_branc01,
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
checks 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_branc01,
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_branc01.
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,
bypass_pull_request_allowances TYPE subsubbodyrepos_delete_branc01,
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
checks 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_req01,
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_req01.
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,
bypass_pull_request_allowances TYPE subbodyrepos_update_pull_req01,
END OF bodyrepos_update_pull_request_.
* Component schema: bodyrepos_delete_pull_request_, object
TYPES: BEGIN OF subbodyrepos_delete_pull_req01,
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_req01.
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,
bypass_pull_request_allowances TYPE subbodyrepos_delete_pull_req01,
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
checks 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
checks 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: bodycode_scanning_update_alert, object
TYPES: BEGIN OF bodycode_scanning_update_alert,
state TYPE code_scanning_alert_set_state,
dismissed_reason TYPE code_scanning_alert_dismisse01,
END OF bodycode_scanning_update_alert.
* Component schema: bodycode_scanning_upload_sarif, object
TYPES: BEGIN OF bodycode_scanning_upload_sarif,
commit_sha TYPE code_scanning_analysis_commit_,
ref TYPE code_scanning_ref,
sarif TYPE code_scanning_analysis_sarif_f,
checkout_uri TYPE string,
started_at TYPE string,
tool_name TYPE string,
END OF bodycode_scanning_upload_sarif.
* 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: bodyrepos_create_or_update_fil, object
TYPES: BEGIN OF subbodyrepos_create_or_updat01,
name TYPE string,
email TYPE string,
date TYPE string,
END OF subbodyrepos_create_or_updat01.
TYPES: BEGIN OF subbodyrepos_create_or_update_,
name TYPE string,
email TYPE string,
date TYPE string,
END OF subbodyrepos_create_or_update_.
TYPES: BEGIN OF bodyrepos_create_or_update_fil,
message TYPE string,
content TYPE string,
sha TYPE string,
branch TYPE string,
committer TYPE subbodyrepos_create_or_update_,
author TYPE subbodyrepos_create_or_updat01,
END OF bodyrepos_create_or_update_fil.
* Component schema: bodyrepos_delete_file, object
TYPES: BEGIN OF subbodyrepos_delete_file_autho,
name TYPE string,
email TYPE string,
END OF subbodyrepos_delete_file_autho.
TYPES: BEGIN OF subbodyrepos_delete_file_commi,
name TYPE string,
email TYPE string,
END OF subbodyrepos_delete_file_commi.
TYPES: BEGIN OF bodyrepos_delete_file,
message TYPE string,
sha TYPE string,
branch TYPE string,
committer TYPE subbodyrepos_delete_file_commi,
author TYPE subbodyrepos_delete_file_autho,
END OF bodyrepos_delete_file.
* Component schema: bodyrepos_create_deployment, object
TYPES: BEGIN OF bodyrepos_create_deployment,
ref TYPE string,
task TYPE string,
auto_merge TYPE abap_bool,
required_contexts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
payload TYPE string,
environment TYPE string,
description TYPE string,
transient_environment TYPE abap_bool,
production_environment TYPE abap_bool,
END OF bodyrepos_create_deployment.
* Component schema: bodyrepos_create_deployment_st, object
TYPES: BEGIN OF bodyrepos_create_deployment_st,
state TYPE string,
target_url TYPE string,
log_url TYPE string,
description TYPE string,
environment TYPE string,
environment_url TYPE string,
auto_inactive TYPE abap_bool,
END OF bodyrepos_create_deployment_st.
* Component schema: bodyrepos_create_fork, object
TYPES: BEGIN OF bodyrepos_create_fork,
organization TYPE string,
END OF bodyrepos_create_fork.
* Component schema: bodygit_create_blob, object
TYPES: BEGIN OF bodygit_create_blob,
content TYPE string,
encoding TYPE string,
END OF bodygit_create_blob.
* Component schema: bodygit_create_commit, object
TYPES: BEGIN OF subbodygit_create_commit_commi,
name TYPE string,
email TYPE string,
date TYPE string,
END OF subbodygit_create_commit_commi.
TYPES: BEGIN OF subbodygit_create_commit_autho,
name TYPE string,
email TYPE string,
date TYPE string,
END OF subbodygit_create_commit_autho.
TYPES: BEGIN OF bodygit_create_commit,
message TYPE string,
tree TYPE string,
parents TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
author TYPE subbodygit_create_commit_autho,
committer TYPE subbodygit_create_commit_commi,
signature TYPE string,
END OF bodygit_create_commit.
* Component schema: bodygit_create_ref, object
TYPES: BEGIN OF bodygit_create_ref,
ref TYPE string,
sha TYPE string,
key TYPE string,
END OF bodygit_create_ref.
* Component schema: bodygit_update_ref, object
TYPES: BEGIN OF bodygit_update_ref,
sha TYPE string,
force TYPE abap_bool,
END OF bodygit_update_ref.
* Component schema: bodygit_delete_ref, object
TYPES: BEGIN OF bodygit_delete_ref,
sha TYPE string,
force TYPE abap_bool,
END OF bodygit_delete_ref.
* Component schema: bodygit_create_tag, object
TYPES: BEGIN OF subbodygit_create_tag_tagger,
name TYPE string,
email TYPE string,
date TYPE string,
END OF subbodygit_create_tag_tagger.
TYPES: BEGIN OF bodygit_create_tag,
tag TYPE string,
message TYPE string,
object TYPE string,
type TYPE string,
tagger TYPE subbodygit_create_tag_tagger,
END OF bodygit_create_tag.
* Component schema: bodygit_create_tree, object
TYPES: BEGIN OF bodygit_create_tree,
tree TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
base_tree TYPE string,
END OF bodygit_create_tree.
* Component schema: bodyrepos_create_webhook, object
TYPES: BEGIN OF subbodyrepos_create_webhook_co,
url TYPE webhook_config_url,
content_type TYPE webhook_config_content_type,
secret TYPE webhook_config_secret,
insecure_ssl TYPE webhook_config_insecure_ssl,
token TYPE string,
digest TYPE string,
END OF subbodyrepos_create_webhook_co.
TYPES: BEGIN OF bodyrepos_create_webhook,
name TYPE string,
config TYPE subbodyrepos_create_webhook_co,
events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
active TYPE abap_bool,
END OF bodyrepos_create_webhook.
* Component schema: bodyrepos_update_webhook, object
TYPES: BEGIN OF subbodyrepos_update_webhook_co,
url TYPE webhook_config_url,
content_type TYPE webhook_config_content_type,
secret TYPE webhook_config_secret,
insecure_ssl TYPE webhook_config_insecure_ssl,
address TYPE string,
room TYPE string,
END OF subbodyrepos_update_webhook_co.
TYPES: BEGIN OF bodyrepos_update_webhook,
config TYPE subbodyrepos_update_webhook_co,
events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
add_events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
remove_events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
active TYPE abap_bool,
END OF bodyrepos_update_webhook.
* Component schema: bodyrepos_delete_webhook, object
TYPES: BEGIN OF subbodyrepos_delete_webhook_co,
url TYPE webhook_config_url,
content_type TYPE webhook_config_content_type,
secret TYPE webhook_config_secret,
insecure_ssl TYPE webhook_config_insecure_ssl,
address TYPE string,
room TYPE string,
END OF subbodyrepos_delete_webhook_co.
TYPES: BEGIN OF bodyrepos_delete_webhook,
config TYPE subbodyrepos_delete_webhook_co,
events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
add_events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
remove_events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
active TYPE abap_bool,
END OF bodyrepos_delete_webhook.
* Component schema: bodyrepos_update_webhook_confi, object
TYPES: BEGIN OF bodyrepos_update_webhook_confi,
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 bodyrepos_update_webhook_confi.
* 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_upstream, object
TYPES: BEGIN OF bodyrepos_merge_upstream,
branch TYPE string,
END OF bodyrepos_merge_upstream.
* 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,
cname TYPE string,
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,
cname TYPE string,
https_enforced TYPE abap_bool,
public TYPE abap_bool,
source TYPE string,
END OF bodyrepos_delete_pages_site.
* 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: bodyreactions_create_for_relea, object
TYPES: BEGIN OF bodyreactions_create_for_relea,
content TYPE string,
END OF bodyreactions_create_for_relea.
* Component schema: bodysecret_scanning_update_ale, object
TYPES: BEGIN OF bodysecret_scanning_update_ale,
state TYPE secret_scanning_alert_state,
resolution TYPE secret_scanning_alert_resoluti,
END OF bodysecret_scanning_update_ale.
* 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: bodyenterprise_admin_provision, object
TYPES: BEGIN OF bodyenterprise_admin_provision,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
displayname TYPE string,
members TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_provision.
* Component schema: bodyenterprise_admin_set_infor, object
TYPES: BEGIN OF bodyenterprise_admin_set_infor,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
displayname TYPE string,
members TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_set_infor.
* Component schema: bodyenterprise_admin_update_at, object
TYPES: BEGIN OF bodyenterprise_admin_update_at,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
operations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_update_at.
* Component schema: bodyenterprise_admin_delete_sc, object
TYPES: BEGIN OF bodyenterprise_admin_delete_sc,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
operations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_delete_sc.
* 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,
allow_auto_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_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_personal, array
TYPES response_enterprise_admin_li03 TYPE STANDARD TABLE OF authorization WITH DEFAULT KEY.
* Component schema: response_apps_list_webhook_deliveries, array
TYPES response_apps_list_webhook_del TYPE STANDARD TABLE OF hook_delivery_item WITH DEFAULT KEY.
* Component schema: response_apps_list_installations, array
TYPES response_apps_list_installatio TYPE STANDARD TABLE OF installation 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_enterprise_admin_list_selected, object
TYPES: BEGIN OF response_enterprise_admin_li04,
total_count TYPE f,
organizations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_li04.
* Component schema: response_enterprise_admin_list_self_hos, object
TYPES: BEGIN OF response_enterprise_admin_li05,
total_count TYPE f,
runner_groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_li05.
* Component schema: response_enterprise_admin_list_self_h01, object
TYPES: BEGIN OF response_enterprise_admin_li06,
total_count TYPE f,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_li06.
* Component schema: response_enterprise_admin_list_self_h02, object
TYPES: BEGIN OF response_enterprise_admin_li07,
total_count TYPE f,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_li07.
* 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_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_actions_list_selected_reposito, object
TYPES: BEGIN OF response_actions_list_selected,
total_count TYPE f,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_selected.
* Component schema: response_actions_list_org_secrets, object
TYPES: BEGIN OF response_actions_list_org_secr,
total_count TYPE i,
secrets TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_org_secr.
* Component schema: response_actions_list_selected_repos_fo, object
TYPES: BEGIN OF response_actions_list_select01,
total_count TYPE i,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_select01.
* 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_projects_list_for_org, array
TYPES response_projects_list_for_org TYPE STANDARD TABLE OF project 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_actions_list_artifacts_for_rep, object
TYPES: BEGIN OF response_actions_list_artifact,
total_count TYPE i,
artifacts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_artifact.
* Component schema: response_actions_list_self_hosted_runne, object
TYPES: BEGIN OF response_actions_list_self_hos,
total_count TYPE i,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_self_hos.
* Component schema: response_actions_list_workflow_runs_for, object
TYPES: BEGIN OF response_actions_list_workflow,
total_count TYPE i,
workflow_runs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_workflow.
* Component schema: response_actions_list_workflow_run_arti, object
TYPES: BEGIN OF response_actions_list_workfl01,
total_count TYPE i,
artifacts TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_workfl01.
* Component schema: response_actions_list_jobs_for_workflow, object
TYPES: BEGIN OF response_actions_list_jobs_for,
total_count TYPE i,
jobs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_jobs_for.
* Component schema: response_actions_cancel_workflow_run, object
TYPES: BEGIN OF response_actions_cancel_workfl,
dummy_workaround TYPE i,
END OF response_actions_cancel_workfl.
* Component schema: response_actions_list_jobs_for_workfl01, object
TYPES: BEGIN OF response_actions_list_jobs_f01,
total_count TYPE i,
jobs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_jobs_f01.
* Component schema: response_actions_list_repo_secrets, object
TYPES: BEGIN OF response_actions_list_repo_sec,
total_count TYPE i,
secrets TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_repo_sec.
* Component schema: response_actions_create_or_update_repo_, object
TYPES: BEGIN OF response_actions_create_or_upd,
dummy_workaround TYPE i,
END OF response_actions_create_or_upd.
* Component schema: response_actions_list_repo_workflows, object
TYPES: BEGIN OF response_actions_list_repo_wor,
total_count TYPE i,
workflows TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_repo_wor.
* Component schema: response_actions_list_workflow_runs, object
TYPES: BEGIN OF response_actions_list_workfl02,
total_count TYPE i,
workflow_runs TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_workfl02.
* 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_autolinks, array
TYPES response_repos_list_autolinks TYPE STANDARD TABLE OF autolink 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_rerequest_run, object
TYPES: BEGIN OF response_checks_rerequest_run,
dummy_workaround TYPE i,
END OF response_checks_rerequest_run.
* 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_code_scanning_list_alerts_for_, array
TYPES response_code_scanning_list_al TYPE STANDARD TABLE OF code_scanning_alert_items WITH DEFAULT KEY.
* Component schema: response_code_scanning_list_alert_insta, array
TYPES response_code_scanning_list_01 TYPE STANDARD TABLE OF code_scanning_alert_instance WITH DEFAULT KEY.
* Component schema: response_code_scanning_list_recent_anal, array
TYPES response_code_scanning_list_re TYPE STANDARD TABLE OF code_scanning_analysis WITH DEFAULT KEY.
* 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_webhook_deliveries, array
TYPES response_repos_list_webhook_de TYPE STANDARD TABLE OF hook_delivery_item 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 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_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_secret_scanning_list_alerts_fo, array
TYPES response_secret_scanning_list_ TYPE STANDARD TABLE OF secret_scanning_alert 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_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_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_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_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_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
* Response: 201
* application/json, #/components/schemas/global-hook
* Body ref: #/components/schemas/bodyenterprise_admin_create_gl
METHODS enterprise_admin_create_global
IMPORTING
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: hook_id, required, path
* Response: 200
* application/json, #/components/schemas/global-hook
METHODS enterprise_admin_get_global_we
IMPORTING
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: 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
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.
* 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 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_li03
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.
* DELETE - "Delete a user"
* Operation id: enterprise-admin/delete-user
* Parameter: username, required, path
* Response: 204
METHODS enterprise_admin_delete_user
IMPORTING
username TYPE string
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 - "Get a webhook configuration for an app"
* Operation id: apps/get-webhook-config-for-app
* Response: 200
* application/json, #/components/schemas/webhook-config
METHODS apps_get_webhook_config_for_ap
RETURNING
VALUE(return_data) TYPE webhook_config
RAISING cx_static_check.
* PATCH - "Update a webhook configuration for an app"
* Operation id: apps/update-webhook-config-for-app
* Response: 200
* application/json, #/components/schemas/webhook-config
* Body ref: #/components/schemas/bodyapps_update_webhook_config
METHODS apps_update_webhook_config_for
IMPORTING
body TYPE bodyapps_update_webhook_config
RETURNING
VALUE(return_data) TYPE webhook_config
RAISING cx_static_check.
* GET - "List deliveries for an app webhook"
* Operation id: apps/list-webhook-deliveries
* Parameter: per_page, optional, query
* Parameter: cursor, optional, query
* Response: 200
* application/json, #/components/schemas/response_apps_list_webhook_deliveries
* Response: 400
* Response: 422
METHODS apps_list_webhook_deliveries
IMPORTING
per_page TYPE i DEFAULT 30
cursor TYPE string OPTIONAL
RETURNING
VALUE(return_data) TYPE response_apps_list_webhook_del
RAISING cx_static_check.
* GET - "Get a delivery for an app webhook"
* Operation id: apps/get-webhook-delivery
* Parameter: delivery_id, required, path
* Response: 200
* application/json, #/components/schemas/hook-delivery
* Response: 400
* Response: 422
METHODS apps_get_webhook_delivery
IMPORTING
delivery_id TYPE i
RETURNING
VALUE(return_data) TYPE hook_delivery
RAISING cx_static_check.
* POST - "Redeliver a delivery for an app webhook"
* Operation id: apps/redeliver-webhook-delivery
* Parameter: delivery_id, required, path
* Response: 202
* Response: 400
* Response: 422
METHODS apps_redeliver_webhook_deliver
IMPORTING
delivery_id TYPE i
RAISING cx_static_check.
* GET - "List installations for the authenticated app"
* Operation id: apps/list-installations
* Parameter: outdated, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Parameter: since, optional, query
* Response: 200
* application/json, #/components/schemas/response_apps_list_installations
METHODS apps_list_installations
IMPORTING
outdated TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
since TYPE string OPTIONAL
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: installation_id, required, path
* Response: 200
* application/json, #/components/schemas/installation
* Response: 404
* Response: 415
METHODS apps_get_installation
IMPORTING
installation_id TYPE i
RETURNING
VALUE(return_data) TYPE installation
RAISING cx_static_check.
* DELETE - "Delete an installation for the authenticated app"
* Operation id: apps/delete-installation
* Parameter: installation_id, required, path
* Response: 204
* Response: 404
METHODS apps_delete_installation
IMPORTING
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: 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
installation_id TYPE i
body TYPE bodyapps_create_installation_a
RETURNING
VALUE(return_data) TYPE installation_token
RAISING cx_static_check.
* PUT - "Suspend an app installation"
* Operation id: apps/suspend-installation
* Parameter: installation_id, required, path
* Response: 204
* Response: 404
METHODS apps_suspend_installation
IMPORTING
installation_id TYPE i
RAISING cx_static_check.
* DELETE - "Unsuspend an app installation"
* Operation id: apps/unsuspend-installation
* Parameter: installation_id, required, path
* Response: 204
* Response: 404
METHODS apps_unsuspend_installation
IMPORTING
installation_id TYPE i
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 the global announcement banner"
* Operation id: enterprise-admin/get-announcement
* Response: 200
* application/json, #/components/schemas/announcement
METHODS enterprise_admin_get_announcem
RETURNING
VALUE(return_data) TYPE announcement
RAISING cx_static_check.
* PATCH - "Set the global announcement banner"
* Operation id: enterprise-admin/set-announcement
* Response: 200
* application/json, #/components/schemas/announcement
* Body ref: #/components/schemas/announcement
METHODS enterprise_admin_set_announcem
IMPORTING
body TYPE announcement
RETURNING
VALUE(return_data) TYPE announcement
RAISING cx_static_check.
* DELETE - "Remove the global announcement banner"
* Operation id: enterprise-admin/remove-announcement
* Response: 204
METHODS enterprise_admin_remove_announ
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-gist-stats
* Response: 200
* application/json, #/components/schemas/enterprise-gist-overview
METHODS enterprise_admin_get_gist_stat
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 - "Get GitHub Actions permissions for an enterprise"
* Operation id: enterprise-admin/get-github-actions-permissions-enterprise
* Parameter: enterprise, required, path
* Response: 200
* application/json, #/components/schemas/actions-enterprise-permissions
METHODS enterprise_admin_get_github_ac
IMPORTING
enterprise TYPE string
RETURNING
VALUE(return_data) TYPE actions_enterprise_permissions
RAISING cx_static_check.
* PUT - "Set GitHub Actions permissions for an enterprise"
* Operation id: enterprise-admin/set-github-actions-permissions-enterprise
* Parameter: enterprise, required, path
* Response: 204
* Body ref: #/components/schemas/bodyenterprise_admin_set_githu
METHODS enterprise_admin_set_github_ac
IMPORTING
enterprise TYPE string
body TYPE bodyenterprise_admin_set_githu
RAISING cx_static_check.
* GET - "List selected organizations enabled for GitHub Actions in an enterprise"
* Operation id: enterprise-admin/list-selected-organizations-enabled-github-actions-enterprise
* Parameter: enterprise, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_enterprise_admin_list_selected
METHODS enterprise_admin_list_selected
IMPORTING
enterprise TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_enterprise_admin_li04
RAISING cx_static_check.
* PUT - "Set selected organizations enabled for GitHub Actions in an enterprise"
* Operation id: enterprise-admin/set-selected-organizations-enabled-github-actions-enterprise
* Parameter: enterprise, required, path
* Response: 204
* Body ref: #/components/schemas/bodyenterprise_admin_set_selec
METHODS enterprise_admin_set_selected_
IMPORTING
enterprise TYPE string
body TYPE bodyenterprise_admin_set_selec
RAISING cx_static_check.
* PUT - "Enable a selected organization for GitHub Actions in an enterprise"
* Operation id: enterprise-admin/enable-selected-organization-github-actions-enterprise
* Parameter: enterprise, required, path
* Parameter: org_id, required, path
* Response: 204
METHODS enterprise_admin_enable_select
IMPORTING
enterprise TYPE string
org_id TYPE i
RAISING cx_static_check.
* DELETE - "Disable a selected organization for GitHub Actions in an enterprise"
* Operation id: enterprise-admin/disable-selected-organization-github-actions-enterprise
* Parameter: enterprise, required, path
* Parameter: org_id, required, path
* Response: 204
METHODS enterprise_admin_disable_selec
IMPORTING
enterprise TYPE string
org_id TYPE i
RAISING cx_static_check.
* GET - "Get allowed actions for an enterprise"
* Operation id: enterprise-admin/get-allowed-actions-enterprise
* Parameter: enterprise, required, path
* Response: 200
* application/json, #/components/schemas/selected-actions
METHODS enterprise_admin_get_allowed_a
IMPORTING
enterprise TYPE string
RETURNING
VALUE(return_data) TYPE selected_actions
RAISING cx_static_check.
* PUT - "Set allowed actions for an enterprise"
* Operation id: enterprise-admin/set-allowed-actions-enterprise
* Parameter: enterprise, required, path
* Response: 204
* Body ref: #/components/schemas/selected-actions
METHODS enterprise_admin_set_allowed_a
IMPORTING
enterprise TYPE string
body TYPE selected_actions
RAISING cx_static_check.
* GET - "List self-hosted runner groups for an enterprise"
* Operation id: enterprise-admin/list-self-hosted-runner-groups-for-enterprise
* Parameter: enterprise, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_enterprise_admin_list_self_hos
METHODS enterprise_admin_list_self_hos
IMPORTING
enterprise TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_enterprise_admin_li05
RAISING cx_static_check.
* POST - "Create a self-hosted runner group for an enterprise"
* Operation id: enterprise-admin/create-self-hosted-runner-group-for-enterprise
* Parameter: enterprise, required, path
* Response: 201
* application/json, #/components/schemas/runner-groups-enterprise
* Body ref: #/components/schemas/bodyenterprise_admin_create_se
METHODS enterprise_admin_create_self_h
IMPORTING
enterprise TYPE string
body TYPE bodyenterprise_admin_create_se
RETURNING
VALUE(return_data) TYPE runner_groups_enterprise
RAISING cx_static_check.
* GET - "Get a self-hosted runner group for an enterprise"
* Operation id: enterprise-admin/get-self-hosted-runner-group-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Response: 200
* application/json, #/components/schemas/runner-groups-enterprise
METHODS enterprise_admin_get_self_host
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
RETURNING
VALUE(return_data) TYPE runner_groups_enterprise
RAISING cx_static_check.
* PATCH - "Update a self-hosted runner group for an enterprise"
* Operation id: enterprise-admin/update-self-hosted-runner-group-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Response: 200
* application/json, #/components/schemas/runner-groups-enterprise
* Body ref: #/components/schemas/bodyenterprise_admin_update_se
METHODS enterprise_admin_update_self_h
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
body TYPE bodyenterprise_admin_update_se
RETURNING
VALUE(return_data) TYPE runner_groups_enterprise
RAISING cx_static_check.
* DELETE - "Delete a self-hosted runner group from an enterprise"
* Operation id: enterprise-admin/delete-self-hosted-runner-group-from-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyenterprise_admin_delete_se
METHODS enterprise_admin_delete_self_h
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
body TYPE bodyenterprise_admin_delete_se
RAISING cx_static_check.
* GET - "List self-hosted runners in a group for an enterprise"
* Operation id: enterprise-admin/list-self-hosted-runners-in-group-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_enterprise_admin_list_self_h01
METHODS enterprise_admin_list_self_h01
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_enterprise_admin_li06
RAISING cx_static_check.
* PUT - "Set self-hosted runners in a group for an enterprise"
* Operation id: enterprise-admin/set-self-hosted-runners-in-group-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyenterprise_admin_set_self_
METHODS enterprise_admin_set_self_host
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
body TYPE bodyenterprise_admin_set_self_
RAISING cx_static_check.
* PUT - "Add a self-hosted runner to a group for an enterprise"
* Operation id: enterprise-admin/add-self-hosted-runner-to-group-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Parameter: runner_id, required, path
* Response: 204
METHODS enterprise_admin_add_self_host
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
runner_id TYPE i
RAISING cx_static_check.
* DELETE - "Remove a self-hosted runner from a group for an enterprise"
* Operation id: enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Parameter: runner_id, required, path
* Response: 204
METHODS enterprise_admin_remove_self_h
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
runner_id TYPE i
RAISING cx_static_check.
* GET - "List self-hosted runners for an enterprise"
* Operation id: enterprise-admin/list-self-hosted-runners-for-enterprise
* Parameter: enterprise, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_enterprise_admin_list_self_h02
METHODS enterprise_admin_list_self_h02
IMPORTING
enterprise TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_enterprise_admin_li07
RAISING cx_static_check.
* GET - "Get a self-hosted runner for an enterprise"
* Operation id: enterprise-admin/get-self-hosted-runner-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_id, required, path
* Response: 200
* application/json, #/components/schemas/runner
METHODS enterprise_admin_get_self_ho01
IMPORTING
enterprise TYPE string
runner_id TYPE i
RETURNING
VALUE(return_data) TYPE runner
RAISING cx_static_check.
* DELETE - "Delete a self-hosted runner from an enterprise"
* Operation id: enterprise-admin/delete-self-hosted-runner-from-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_id, required, path
* Response: 204
METHODS enterprise_admin_delete_self01
IMPORTING
enterprise TYPE string
runner_id TYPE i
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: 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
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 AE 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 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: 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 - "Get GitHub Actions permissions for an organization"
* Operation id: actions/get-github-actions-permissions-organization
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/actions-organization-permissions
METHODS actions_get_github_actions_per
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE actions_organization_permissio
RAISING cx_static_check.
* PUT - "Set GitHub Actions permissions for an organization"
* Operation id: actions/set-github-actions-permissions-organization
* Parameter: org, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_set_github_actions
METHODS actions_set_github_actions_per
IMPORTING
org TYPE string
body TYPE bodyactions_set_github_actions
RAISING cx_static_check.
* GET - "List selected repositories enabled for GitHub Actions in an organization"
* Operation id: actions/list-selected-repositories-enabled-github-actions-organization
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_selected_reposito
METHODS actions_list_selected_reposito
IMPORTING
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_selected
RAISING cx_static_check.
* PUT - "Set selected repositories enabled for GitHub Actions in an organization"
* Operation id: actions/set-selected-repositories-enabled-github-actions-organization
* Parameter: org, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_set_selected_repos
METHODS actions_set_selected_repositor
IMPORTING
org TYPE string
body TYPE bodyactions_set_selected_repos
RAISING cx_static_check.
* PUT - "Enable a selected repository for GitHub Actions in an organization"
* Operation id: actions/enable-selected-repository-github-actions-organization
* Parameter: org, required, path
* Parameter: repository_id, required, path
* Response: 204
METHODS actions_enable_selected_reposi
IMPORTING
org TYPE string
repository_id TYPE i
RAISING cx_static_check.
* DELETE - "Disable a selected repository for GitHub Actions in an organization"
* Operation id: actions/disable-selected-repository-github-actions-organization
* Parameter: org, required, path
* Parameter: repository_id, required, path
* Response: 204
METHODS actions_disable_selected_repos
IMPORTING
org TYPE string
repository_id TYPE i
RAISING cx_static_check.
* GET - "Get allowed actions for an organization"
* Operation id: actions/get-allowed-actions-organization
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/selected-actions
METHODS actions_get_allowed_actions_or
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE selected_actions
RAISING cx_static_check.
* PUT - "Set allowed actions for an organization"
* Operation id: actions/set-allowed-actions-organization
* Parameter: org, required, path
* Response: 204
* Body ref: #/components/schemas/selected-actions
METHODS actions_set_allowed_actions_or
IMPORTING
org TYPE string
body TYPE selected_actions
RAISING cx_static_check.
* POST - "Create a self-hosted runner group for an organization"
* Operation id: actions/create-self-hosted-runner-group-for-org
* Parameter: org, required, path
* Response: 201
* application/json, #/components/schemas/runner-groups-org
* Body ref: #/components/schemas/bodyactions_create_self_hosted
METHODS actions_create_self_hosted_run
IMPORTING
org TYPE string
body TYPE bodyactions_create_self_hosted
RETURNING
VALUE(return_data) TYPE runner_groups_org
RAISING cx_static_check.
* PATCH - "Update a self-hosted runner group for an organization"
* Operation id: actions/update-self-hosted-runner-group-for-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Response: 200
* application/json, #/components/schemas/runner-groups-org
* Body ref: #/components/schemas/bodyactions_update_self_hosted
METHODS actions_update_self_hosted_run
IMPORTING
org TYPE string
runner_group_id TYPE i
body TYPE bodyactions_update_self_hosted
RETURNING
VALUE(return_data) TYPE runner_groups_org
RAISING cx_static_check.
* DELETE - "Delete a self-hosted runner group from an organization"
* Operation id: actions/delete-self-hosted-runner-group-from-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_delete_self_hosted
METHODS actions_delete_self_hosted_run
IMPORTING
org TYPE string
runner_group_id TYPE i
body TYPE bodyactions_delete_self_hosted
RAISING cx_static_check.
* DELETE - "Delete a self-hosted runner from an organization"
* Operation id: actions/delete-self-hosted-runner-from-org
* Parameter: org, required, path
* Parameter: runner_id, required, path
* Response: 204
METHODS actions_delete_self_hosted_r01
IMPORTING
org TYPE string
runner_id TYPE i
RAISING cx_static_check.
* GET - "List organization secrets"
* Operation id: actions/list-org-secrets
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_org_secrets
METHODS actions_list_org_secrets
IMPORTING
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_org_secr
RAISING cx_static_check.
* GET - "Get an organization public key"
* Operation id: actions/get-org-public-key
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/actions-public-key
METHODS actions_get_org_public_key
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE actions_public_key
RAISING cx_static_check.
* GET - "Get an organization secret"
* Operation id: actions/get-org-secret
* Parameter: org, required, path
* Parameter: secret_name, required, path
* Response: 200
* application/json, #/components/schemas/organization-actions-secret
METHODS actions_get_org_secret
IMPORTING
org TYPE string
secret_name TYPE string
RETURNING
VALUE(return_data) TYPE organization_actions_secret
RAISING cx_static_check.
* PUT - "Create or update an organization secret"
* Operation id: actions/create-or-update-org-secret
* Parameter: org, required, path
* Parameter: secret_name, required, path
* Response: 201
* application/json, #/components/schemas/empty-object
* Response: 204
* Body ref: #/components/schemas/bodyactions_create_or_update_o
METHODS actions_create_or_update_org_s
IMPORTING
org TYPE string
secret_name TYPE string
body TYPE bodyactions_create_or_update_o
RETURNING
VALUE(return_data) TYPE empty_object
RAISING cx_static_check.
* DELETE - "Delete an organization secret"
* Operation id: actions/delete-org-secret
* Parameter: org, required, path
* Parameter: secret_name, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_delete_org_secret
METHODS actions_delete_org_secret
IMPORTING
org TYPE string
secret_name TYPE string
body TYPE bodyactions_delete_org_secret
RAISING cx_static_check.
* GET - "List selected repositories for an organization secret"
* Operation id: actions/list-selected-repos-for-org-secret
* Parameter: org, required, path
* Parameter: secret_name, required, path
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_selected_repos_fo
METHODS actions_list_selected_repos_fo
IMPORTING
org TYPE string
secret_name TYPE string
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_actions_list_select01
RAISING cx_static_check.
* PUT - "Set selected repositories for an organization secret"
* Operation id: actions/set-selected-repos-for-org-secret
* Parameter: org, required, path
* Parameter: secret_name, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_set_selected_rep01
METHODS actions_set_selected_repos_for
IMPORTING
org TYPE string
secret_name TYPE string
body TYPE bodyactions_set_selected_rep01
RAISING cx_static_check.
* PUT - "Add selected repository to an organization secret"
* Operation id: actions/add-selected-repo-to-org-secret
* Parameter: repository_id, required, path
* Parameter: org, required, path
* Parameter: secret_name, required, path
* Response: 204
* Response: 409
METHODS actions_add_selected_repo_to_o
IMPORTING
repository_id TYPE i
org TYPE string
secret_name TYPE string
RAISING cx_static_check.
* DELETE - "Remove selected repository from an organization secret"
* Operation id: actions/remove-selected-repo-from-org-secret
* Parameter: repository_id, required, path
* Parameter: org, required, path
* Parameter: secret_name, required, path
* Response: 204
* Response: 409
METHODS actions_remove_selected_repo_f
IMPORTING
repository_id TYPE i
org TYPE string
secret_name TYPE string
RAISING cx_static_check.
* GET - "Get an external group"
* Operation id: teams/external-idp-group-info-for-org
* Parameter: org, required, path
* Parameter: group_id, required, path
* Response: 200
* application/json, #/components/schemas/external-group
METHODS teams_external_idp_group_info_
IMPORTING
org TYPE string
group_id TYPE i
RETURNING
VALUE(return_data) TYPE external_group
RAISING cx_static_check.
* GET - "List external groups in an organization"
* Operation id: teams/list-external-idp-groups-for-org
* Parameter: page, optional, query
* Parameter: display_name, optional, query
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/external-groups
METHODS teams_list_external_idp_groups
IMPORTING
page TYPE i OPTIONAL
display_name TYPE string OPTIONAL
org TYPE string
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE external_groups
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.
* GET - "Get a webhook configuration for an organization"
* Operation id: orgs/get-webhook-config-for-org
* Parameter: org, required, path
* Parameter: hook_id, required, path
* Response: 200
* application/json, #/components/schemas/webhook-config
METHODS orgs_get_webhook_config_for_or
IMPORTING
org TYPE string
hook_id TYPE i
RETURNING
VALUE(return_data) TYPE webhook_config
RAISING cx_static_check.
* PATCH - "Update a webhook configuration for an organization"
* Operation id: orgs/update-webhook-config-for-org
* Parameter: org, required, path
* Parameter: hook_id, required, path
* Response: 200
* application/json, #/components/schemas/webhook-config
* Body ref: #/components/schemas/bodyorgs_update_webhook_config
METHODS orgs_update_webhook_config_for
IMPORTING
org TYPE string
hook_id TYPE i
body TYPE bodyorgs_update_webhook_config
RETURNING
VALUE(return_data) TYPE webhook_config
RAISING cx_static_check.
* GET - "Get a webhook delivery for an organization webhook"
* Operation id: orgs/get-webhook-delivery
* Parameter: org, required, path
* Parameter: hook_id, required, path
* Parameter: delivery_id, required, path
* Response: 200
* application/json, #/components/schemas/hook-delivery
* Response: 400
* Response: 422
METHODS orgs_get_webhook_delivery
IMPORTING
org TYPE string
hook_id TYPE i
delivery_id TYPE i
RETURNING
VALUE(return_data) TYPE hook_delivery
RAISING cx_static_check.
* POST - "Redeliver a delivery for an organization webhook"
* Operation id: orgs/redeliver-webhook-delivery
* Parameter: org, required, path
* Parameter: hook_id, required, path
* Parameter: delivery_id, required, path
* Response: 202
* Response: 400
* Response: 422
METHODS orgs_redeliver_webhook_deliver
IMPORTING
org TYPE string
hook_id TYPE i
delivery_id TYPE i
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: org, required, path
* Response: 200
* application/json, #/components/schemas/installation
METHODS apps_get_org_installation
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE installation
RAISING cx_static_check.
* GET - "List app installations for an organization"
* Operation id: orgs/list-app-installations
* 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
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 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 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.
* PATCH - "Update the connection between an external group and a team"
* Operation id: teams/link-external-idp-group-to-team-for-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Response: 200
* application/json, #/components/schemas/external-group
* Body ref: #/components/schemas/bodyteams_link_external_idp_gr
METHODS teams_link_external_idp_group_
IMPORTING
org TYPE string
team_slug TYPE string
body TYPE bodyteams_link_external_idp_gr
RETURNING
VALUE(return_data) TYPE external_group
RAISING cx_static_check.
* DELETE - "Remove the connection between an external group and a team"
* Operation id: teams/unlink-external-idp-group-from-team-for-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Response: 204
* Body ref: #/components/schemas/bodyteams_unlink_external_idp_
METHODS teams_unlink_external_idp_grou
IMPORTING
org TYPE string
team_slug TYPE string
body TYPE bodyteams_unlink_external_idp_
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: 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: 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: 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/project-collaborator-permission
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 422
METHODS projects_get_permission_for_us
IMPORTING
project_id TYPE i
username TYPE string
RETURNING
VALUE(return_data) TYPE project_collaborator_permissio
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 artifacts for a repository"
* Operation id: actions/list-artifacts-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_actions_list_artifacts_for_rep
METHODS actions_list_artifacts_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_actions_list_artifact
RAISING cx_static_check.
* GET - "Get an artifact"
* Operation id: actions/get-artifact
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: artifact_id, required, path
* Response: 200
* application/json, #/components/schemas/artifact
METHODS actions_get_artifact
IMPORTING
owner TYPE string
repo TYPE string
artifact_id TYPE i
RETURNING
VALUE(return_data) TYPE artifact
RAISING cx_static_check.
* DELETE - "Delete an artifact"
* Operation id: actions/delete-artifact
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: artifact_id, required, path
* Response: 204
METHODS actions_delete_artifact
IMPORTING
owner TYPE string
repo TYPE string
artifact_id TYPE i
RAISING cx_static_check.
* GET - "Download an artifact"
* Operation id: actions/download-artifact
* Parameter: archive_format, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: artifact_id, required, path
* Response: 302
METHODS actions_download_artifact
IMPORTING
archive_format TYPE string
owner TYPE string
repo TYPE string
artifact_id TYPE i
RAISING cx_static_check.
* GET - "Get a job for a workflow run"
* Operation id: actions/get-job-for-workflow-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: job_id, required, path
* Response: 200
* application/json, #/components/schemas/job
METHODS actions_get_job_for_workflow_r
IMPORTING
owner TYPE string
repo TYPE string
job_id TYPE i
RETURNING
VALUE(return_data) TYPE job
RAISING cx_static_check.
* GET - "Download job logs for a workflow run"
* Operation id: actions/download-job-logs-for-workflow-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: job_id, required, path
* Response: 302
METHODS actions_download_job_logs_for_
IMPORTING
owner TYPE string
repo TYPE string
job_id TYPE i
RAISING cx_static_check.
* GET - "Get GitHub Actions permissions for a repository"
* Operation id: actions/get-github-actions-permissions-repository
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/actions-repository-permissions
METHODS actions_get_github_actions_p01
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE actions_repository_permissions
RAISING cx_static_check.
* PUT - "Set GitHub Actions permissions for a repository"
* Operation id: actions/set-github-actions-permissions-repository
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_set_github_actio01
METHODS actions_set_github_actions_p01
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyactions_set_github_actio01
RAISING cx_static_check.
* GET - "Get allowed actions for a repository"
* Operation id: actions/get-allowed-actions-repository
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/selected-actions
METHODS actions_get_allowed_actions_re
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE selected_actions
RAISING cx_static_check.
* PUT - "Set allowed actions for a repository"
* Operation id: actions/set-allowed-actions-repository
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Body ref: #/components/schemas/selected-actions
METHODS actions_set_allowed_actions_re
IMPORTING
owner TYPE string
repo TYPE string
body TYPE selected_actions
RAISING cx_static_check.
* GET - "List self-hosted runners for a repository"
* Operation id: actions/list-self-hosted-runners-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_actions_list_self_hosted_runne
METHODS actions_list_self_hosted_runne
IMPORTING
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_self_hos
RAISING cx_static_check.
* DELETE - "Delete a self-hosted runner from a repository"
* Operation id: actions/delete-self-hosted-runner-from-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: runner_id, required, path
* Response: 204
METHODS actions_delete_self_hosted_r02
IMPORTING
owner TYPE string
repo TYPE string
runner_id TYPE i
RAISING cx_static_check.
* GET - "List workflow runs for a repository"
* Operation id: actions/list-workflow-runs-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: actor, optional, query
* Parameter: branch, optional, query
* Parameter: event, optional, query
* Parameter: status, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Parameter: created, optional, query
* Parameter: exclude_pull_requests, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_workflow_runs_for
METHODS actions_list_workflow_runs_for
IMPORTING
owner TYPE string
repo TYPE string
actor TYPE string OPTIONAL
branch TYPE string OPTIONAL
event TYPE string OPTIONAL
status TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
created TYPE string OPTIONAL
exclude_pull_requests TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(return_data) TYPE response_actions_list_workflow
RAISING cx_static_check.
* GET - "Get a workflow run"
* Operation id: actions/get-workflow-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Parameter: exclude_pull_requests, optional, query
* Response: 200
* application/json, #/components/schemas/workflow-run
METHODS actions_get_workflow_run
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
exclude_pull_requests TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(return_data) TYPE workflow_run
RAISING cx_static_check.
* DELETE - "Delete a workflow run"
* Operation id: actions/delete-workflow-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 204
METHODS actions_delete_workflow_run
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
RAISING cx_static_check.
* GET - "List workflow run artifacts"
* Operation id: actions/list-workflow-run-artifacts
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_workflow_run_arti
METHODS actions_list_workflow_run_arti
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_workfl01
RAISING cx_static_check.
* GET - "Get a workflow run attempt"
* Operation id: actions/get-workflow-run-attempt
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Parameter: attempt_number, required, path
* Parameter: exclude_pull_requests, optional, query
* Response: 200
* application/json, #/components/schemas/workflow-run
METHODS actions_get_workflow_run_attem
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
attempt_number TYPE i
exclude_pull_requests TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(return_data) TYPE workflow_run
RAISING cx_static_check.
* GET - "List jobs for a workflow run attempt"
* Operation id: actions/list-jobs-for-workflow-run-attempt
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Parameter: attempt_number, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_jobs_for_workflow
* Response: 404
METHODS actions_list_jobs_for_workflow
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
attempt_number TYPE i
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_jobs_for
RAISING cx_static_check.
* GET - "Download workflow run attempt logs"
* Operation id: actions/download-workflow-run-attempt-logs
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Parameter: attempt_number, required, path
* Response: 302
METHODS actions_download_workflow_run_
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
attempt_number TYPE i
RAISING cx_static_check.
* POST - "Cancel a workflow run"
* Operation id: actions/cancel-workflow-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 202
* application/json, #/components/schemas/response_actions_cancel_workflow_run
METHODS actions_cancel_workflow_run
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
RAISING cx_static_check.
* GET - "List jobs for a workflow run"
* Operation id: actions/list-jobs-for-workflow-run
* Parameter: filter, optional, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_jobs_for_workfl01
METHODS actions_list_jobs_for_workfl01
IMPORTING
filter TYPE string DEFAULT 'latest'
owner TYPE string
repo TYPE string
run_id TYPE i
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_jobs_f01
RAISING cx_static_check.
* GET - "Download workflow run logs"
* Operation id: actions/download-workflow-run-logs
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 302
METHODS actions_download_workflow_ru01
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
RAISING cx_static_check.
* DELETE - "Delete workflow run logs"
* Operation id: actions/delete-workflow-run-logs
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 204
METHODS actions_delete_workflow_run_lo
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
RAISING cx_static_check.
* GET - "Get workflow run usage"
* Operation id: actions/get-workflow-run-usage
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 200
* application/json, #/components/schemas/workflow-run-usage
METHODS actions_get_workflow_run_usage
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
RETURNING
VALUE(return_data) TYPE workflow_run_usage
RAISING cx_static_check.
* GET - "List repository secrets"
* Operation id: actions/list-repo-secrets
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_repo_secrets
METHODS actions_list_repo_secrets
IMPORTING
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_repo_sec
RAISING cx_static_check.
* GET - "Get a repository public key"
* Operation id: actions/get-repo-public-key
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/actions-public-key
METHODS actions_get_repo_public_key
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE actions_public_key
RAISING cx_static_check.
* GET - "Get a repository secret"
* Operation id: actions/get-repo-secret
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: secret_name, required, path
* Response: 200
* application/json, #/components/schemas/actions-secret
METHODS actions_get_repo_secret
IMPORTING
owner TYPE string
repo TYPE string
secret_name TYPE string
RETURNING
VALUE(return_data) TYPE actions_secret
RAISING cx_static_check.
* PUT - "Create or update a repository secret"
* Operation id: actions/create-or-update-repo-secret
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: secret_name, required, path
* Response: 201
* application/json, #/components/schemas/response_actions_create_or_update_repo_
* Response: 204
* Body ref: #/components/schemas/bodyactions_create_or_update_r
METHODS actions_create_or_update_repo_
IMPORTING
owner TYPE string
repo TYPE string
secret_name TYPE string
body TYPE bodyactions_create_or_update_r
RETURNING
VALUE(return_data) TYPE response_actions_create_or_upd
RAISING cx_static_check.
* DELETE - "Delete a repository secret"
* Operation id: actions/delete-repo-secret
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: secret_name, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_delete_repo_secret
METHODS actions_delete_repo_secret
IMPORTING
owner TYPE string
repo TYPE string
secret_name TYPE string
body TYPE bodyactions_delete_repo_secret
RAISING cx_static_check.
* GET - "List repository workflows"
* Operation id: actions/list-repo-workflows
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_repo_workflows
METHODS actions_list_repo_workflows
IMPORTING
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_repo_wor
RAISING cx_static_check.
* GET - "Get a workflow"
* Operation id: actions/get-workflow
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: workflow_id, required, path
* Response: 200
* application/json, #/components/schemas/workflow
METHODS actions_get_workflow
IMPORTING
owner TYPE string
repo TYPE string
workflow_id TYPE string
RETURNING
VALUE(return_data) TYPE workflow
RAISING cx_static_check.
* PUT - "Disable a workflow"
* Operation id: actions/disable-workflow
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: workflow_id, required, path
* Response: 204
METHODS actions_disable_workflow
IMPORTING
owner TYPE string
repo TYPE string
workflow_id TYPE string
RAISING cx_static_check.
* POST - "Create a workflow dispatch event"
* Operation id: actions/create-workflow-dispatch
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: workflow_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_create_workflow_di
METHODS actions_create_workflow_dispat
IMPORTING
owner TYPE string
repo TYPE string
workflow_id TYPE string
body TYPE bodyactions_create_workflow_di
RAISING cx_static_check.
* PUT - "Enable a workflow"
* Operation id: actions/enable-workflow
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: workflow_id, required, path
* Response: 204
METHODS actions_enable_workflow
IMPORTING
owner TYPE string
repo TYPE string
workflow_id TYPE string
RAISING cx_static_check.
* GET - "List workflow runs"
* Operation id: actions/list-workflow-runs
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: workflow_id, required, path
* Parameter: actor, optional, query
* Parameter: branch, optional, query
* Parameter: event, optional, query
* Parameter: status, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Parameter: created, optional, query
* Parameter: exclude_pull_requests, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_workflow_runs
METHODS actions_list_workflow_runs
IMPORTING
owner TYPE string
repo TYPE string
workflow_id TYPE string
actor TYPE string OPTIONAL
branch TYPE string OPTIONAL
event TYPE string OPTIONAL
status TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
created TYPE string OPTIONAL
exclude_pull_requests TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(return_data) TYPE response_actions_list_workfl02
RAISING cx_static_check.
* GET - "Get workflow usage"
* Operation id: actions/get-workflow-usage
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: workflow_id, required, path
* Response: 200
* application/json, #/components/schemas/workflow-usage
METHODS actions_get_workflow_usage
IMPORTING
owner TYPE string
repo TYPE string
workflow_id TYPE string
RETURNING
VALUE(return_data) TYPE workflow_usage
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 all autolinks of a repository"
* Operation id: repos/list-autolinks
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_autolinks
METHODS repos_list_autolinks
IMPORTING
owner TYPE string
repo TYPE string
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_repos_list_autolinks
RAISING cx_static_check.
* POST - "Create an autolink reference for a repository"
* Operation id: repos/create-autolink
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/autolink
* Response: 422
* Body ref: #/components/schemas/bodyrepos_create_autolink
METHODS repos_create_autolink
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_create_autolink
RETURNING
VALUE(return_data) TYPE autolink
RAISING cx_static_check.
* GET - "Get an autolink reference of a repository"
* Operation id: repos/get-autolink
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: autolink_id, required, path
* Response: 200
* application/json, #/components/schemas/autolink
* Response: 404
METHODS repos_get_autolink
IMPORTING
owner TYPE string
repo TYPE string
autolink_id TYPE i
RETURNING
VALUE(return_data) TYPE autolink
RAISING cx_static_check.
* DELETE - "Delete an autolink reference from a repository"
* Operation id: repos/delete-autolink
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: autolink_id, required, path
* Response: 204
* Response: 404
METHODS repos_delete_autolink
IMPORTING
owner TYPE string
repo TYPE string
autolink_id TYPE i
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: 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 - "Rerequest a check run"
* Operation id: checks/rerequest-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: check_run_id, required, path
* Response: 201
* application/json, #/components/schemas/response_checks_rerequest_run
* Response: 403
* application/json, #/components/schemas/basic-error
* Response: 404
* Response: 422
* application/json, #/components/schemas/basic-error
METHODS checks_rerequest_run
IMPORTING
owner TYPE string
repo TYPE string
check_run_id TYPE i
RETURNING
VALUE(return_data) TYPE response_checks_rerequest_run
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 code scanning alerts for a repository"
* Operation id: code-scanning/list-alerts-for-repo
* Parameter: state, optional, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: tool_name, optional, query
* Parameter: tool_guid, optional, query
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Parameter: ref, optional, query
* Response: 200
* application/json, #/components/schemas/response_code_scanning_list_alerts_for_
* Response: 403
* Response: 404
* Response: 503
METHODS code_scanning_list_alerts_for_
IMPORTING
state TYPE code_scanning_alert_state OPTIONAL
owner TYPE string
repo TYPE string
tool_name TYPE code_scanning_analysis_tool_na OPTIONAL
tool_guid TYPE code_scanning_analysis_tool_gu OPTIONAL
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
ref TYPE code_scanning_ref OPTIONAL
RETURNING
VALUE(return_data) TYPE response_code_scanning_list_al
RAISING cx_static_check.
* GET - "Get a code scanning alert"
* Operation id: code-scanning/get-alert
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: alert_number, required, path
* Response: 200
* application/json, #/components/schemas/code-scanning-alert
* Response: 403
* Response: 404
* Response: 503
METHODS code_scanning_get_alert
IMPORTING
owner TYPE string
repo TYPE string
alert_number TYPE alert_number
RETURNING
VALUE(return_data) TYPE code_scanning_alert
RAISING cx_static_check.
* PATCH - "Update a code scanning alert"
* Operation id: code-scanning/update-alert
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: alert_number, required, path
* Response: 200
* application/json, #/components/schemas/code-scanning-alert
* Response: 403
* Response: 404
* Response: 503
* Body ref: #/components/schemas/bodycode_scanning_update_alert
METHODS code_scanning_update_alert
IMPORTING
owner TYPE string
repo TYPE string
alert_number TYPE alert_number
body TYPE bodycode_scanning_update_alert
RETURNING
VALUE(return_data) TYPE code_scanning_alert
RAISING cx_static_check.
* GET - "List instances of a code scanning alert"
* Operation id: code-scanning/list-alert-instances
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: alert_number, required, path
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Parameter: ref, optional, query
* Response: 200
* application/json, #/components/schemas/response_code_scanning_list_alert_insta
* Response: 403
* Response: 404
* Response: 503
METHODS code_scanning_list_alert_insta
IMPORTING
owner TYPE string
repo TYPE string
alert_number TYPE alert_number
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
ref TYPE code_scanning_ref OPTIONAL
RETURNING
VALUE(return_data) TYPE response_code_scanning_list_01
RAISING cx_static_check.
* GET - "List code scanning analyses for a repository"
* Operation id: code-scanning/list-recent-analyses
* Parameter: ref, optional, query
* Parameter: sarif_id, optional, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: tool_name, optional, query
* Parameter: tool_guid, optional, query
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_code_scanning_list_recent_anal
* Response: 403
* Response: 404
* Response: 503
METHODS code_scanning_list_recent_anal
IMPORTING
ref TYPE code_scanning_ref OPTIONAL
sarif_id TYPE code_scanning_analysis_sarif_i OPTIONAL
owner TYPE string
repo TYPE string
tool_name TYPE code_scanning_analysis_tool_na OPTIONAL
tool_guid TYPE code_scanning_analysis_tool_gu OPTIONAL
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_code_scanning_list_re
RAISING cx_static_check.
* GET - "Get a code scanning analysis for a repository"
* Operation id: code-scanning/get-analysis
* Parameter: analysis_id, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json+sarif, string
* application/json, #/components/schemas/code-scanning-analysis
* Response: 403
* Response: 404
* Response: 503
METHODS code_scanning_get_analysis
IMPORTING
analysis_id TYPE i
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE code_scanning_analysis
RAISING cx_static_check.
* DELETE - "Delete a code scanning analysis from a repository"
* Operation id: code-scanning/delete-analysis
* Parameter: analysis_id, required, path
* Parameter: confirm_delete, optional, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/code-scanning-analysis-deletion
* Response: 400
* Response: 403
* Response: 404
* Response: 503
METHODS code_scanning_delete_analysis
IMPORTING
analysis_id TYPE i
confirm_delete TYPE string OPTIONAL
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE code_scanning_analysis_deletio
RAISING cx_static_check.
* POST - "Upload an analysis as SARIF data"
* Operation id: code-scanning/upload-sarif
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 202
* application/json, #/components/schemas/code-scanning-sarifs-receipt
* Response: 400
* Response: 403
* Response: 404
* Response: 413
* Response: 503
* Body ref: #/components/schemas/bodycode_scanning_upload_sarif
METHODS code_scanning_upload_sarif
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodycode_scanning_upload_sarif
RAISING cx_static_check.
* GET - "Get information about a SARIF upload"
* Operation id: code-scanning/get-sarif
* Parameter: sarif_id, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/code-scanning-sarifs-status
* Response: 403
* Response: 404
* Response: 503
METHODS code_scanning_get_sarif
IMPORTING
sarif_id TYPE string
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE code_scanning_sarifs_status
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
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: 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
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
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* 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
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE commit_comparison
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
METHODS repos_get_deployment_status
IMPORTING
status_id TYPE i
owner TYPE string
repo TYPE string
deployment_id TYPE i
RETURNING
VALUE(return_data) TYPE deployment_status
RAISING cx_static_check.
* GET - "List repository events"
* Operation id: activity/list-repo-events
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_activity_list_repo_events
METHODS activity_list_repo_events
IMPORTING
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_activity_list_repo_ev
RAISING cx_static_check.
* GET - "List forks"
* Operation id: repos/list-forks
* Parameter: sort, optional, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_forks
* Response: 400
METHODS repos_list_forks
IMPORTING
sort TYPE string DEFAULT 'newest'
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_repos_list_forks
RAISING cx_static_check.
* POST - "Create a fork"
* Operation id: repos/create-fork
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 202
* application/json, #/components/schemas/full-repository
* Response: 400
* Response: 403
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyrepos_create_fork
METHODS repos_create_fork
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_create_fork
RAISING cx_static_check.
* POST - "Create a blob"
* Operation id: git/create-blob
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/short-blob
* Response: 403
* Response: 404
* Response: 409
* Response: 422
* Body ref: #/components/schemas/bodygit_create_blob
METHODS git_create_blob
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodygit_create_blob
RETURNING
VALUE(return_data) TYPE short_blob
RAISING cx_static_check.
* GET - "Get a blob"
* Operation id: git/get-blob
* Parameter: file_sha, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/blob
* Response: 403
* Response: 404
* Response: 422
METHODS git_get_blob
IMPORTING
file_sha TYPE string
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE blob
RAISING cx_static_check.
* POST - "Create a commit"
* Operation id: git/create-commit
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/git-commit
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodygit_create_commit
METHODS git_create_commit
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodygit_create_commit
RETURNING
VALUE(return_data) TYPE git_commit
RAISING cx_static_check.
* GET - "Get a commit"
* Operation id: git/get-commit
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: commit_sha, required, path
* Response: 200
* application/json, #/components/schemas/git-commit
* Response: 404
METHODS git_get_commit
IMPORTING
owner TYPE string
repo TYPE string
commit_sha TYPE string
RETURNING
VALUE(return_data) TYPE git_commit
RAISING cx_static_check.
* GET - "List matching references"
* Operation id: git/list-matching-refs
* Parameter: ref, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_git_list_matching_refs
METHODS git_list_matching_refs
IMPORTING
ref TYPE string
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_git_list_matching_ref
RAISING cx_static_check.
* GET - "Get a reference"
* Operation id: git/get-ref
* Parameter: ref, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/git-ref
* Response: 404
METHODS git_get_ref
IMPORTING
ref TYPE string
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE git_ref
RAISING cx_static_check.
* POST - "Create a reference"
* Operation id: git/create-ref
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/git-ref
* Response: 422
* Body ref: #/components/schemas/bodygit_create_ref
METHODS git_create_ref
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodygit_create_ref
RETURNING
VALUE(return_data) TYPE git_ref
RAISING cx_static_check.
* PATCH - "Update a reference"
* Operation id: git/update-ref
* Parameter: ref, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/git-ref
* Response: 422
* Body ref: #/components/schemas/bodygit_update_ref
METHODS git_update_ref
IMPORTING
ref TYPE string
owner TYPE string
repo TYPE string
body TYPE bodygit_update_ref
RETURNING
VALUE(return_data) TYPE git_ref
RAISING cx_static_check.
* DELETE - "Delete a reference"
* Operation id: git/delete-ref
* Parameter: ref, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Response: 422
* Body ref: #/components/schemas/bodygit_delete_ref
METHODS git_delete_ref
IMPORTING
ref TYPE string
owner TYPE string
repo TYPE string
body TYPE bodygit_delete_ref
RAISING cx_static_check.
* POST - "Create a tag object"
* Operation id: git/create-tag
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/git-tag
* Response: 422
* Body ref: #/components/schemas/bodygit_create_tag
METHODS git_create_tag
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodygit_create_tag
RETURNING
VALUE(return_data) TYPE git_tag
RAISING cx_static_check.
* GET - "Get a tag"
* Operation id: git/get-tag
* Parameter: tag_sha, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/git-tag
* Response: 404
METHODS git_get_tag
IMPORTING
tag_sha TYPE string
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE git_tag
RAISING cx_static_check.
* POST - "Create a tree"
* Operation id: git/create-tree
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/git-tree
* Response: 403
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodygit_create_tree
METHODS git_create_tree
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodygit_create_tree
RETURNING
VALUE(return_data) TYPE git_tree
RAISING cx_static_check.
* GET - "Get a tree"
* Operation id: git/get-tree
* Parameter: tree_sha, required, path
* Parameter: recursive, optional, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/git-tree
* Response: 404
* Response: 422
METHODS git_get_tree
IMPORTING
tree_sha TYPE string
recursive TYPE string OPTIONAL
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE git_tree
RAISING cx_static_check.
* GET - "List repository webhooks"
* Operation id: repos/list-webhooks
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_webhooks
* Response: 404
METHODS repos_list_webhooks
IMPORTING
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_repos_list_webhooks
RAISING cx_static_check.
* POST - "Create a repository webhook"
* Operation id: repos/create-webhook
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/hook
* Response: 403
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyrepos_create_webhook
METHODS repos_create_webhook
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_create_webhook
RETURNING
VALUE(return_data) TYPE hook
RAISING cx_static_check.
* GET - "Get a repository webhook"
* Operation id: repos/get-webhook
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: hook_id, required, path
* Response: 200
* application/json, #/components/schemas/hook
* Response: 404
METHODS repos_get_webhook
IMPORTING
owner TYPE string
repo TYPE string
hook_id TYPE i
RETURNING
VALUE(return_data) TYPE hook
RAISING cx_static_check.
* PATCH - "Update a repository webhook"
* Operation id: repos/update-webhook
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: hook_id, required, path
* Response: 200
* application/json, #/components/schemas/hook
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyrepos_update_webhook
METHODS repos_update_webhook
IMPORTING
owner TYPE string
repo TYPE string
hook_id TYPE i
body TYPE bodyrepos_update_webhook
RETURNING
VALUE(return_data) TYPE hook
RAISING cx_static_check.
* DELETE - "Delete a repository webhook"
* Operation id: repos/delete-webhook
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: hook_id, required, path
* Response: 204
* Response: 404
* Body ref: #/components/schemas/bodyrepos_delete_webhook
METHODS repos_delete_webhook
IMPORTING
owner TYPE string
repo TYPE string
hook_id TYPE i
body TYPE bodyrepos_delete_webhook
RAISING cx_static_check.
* GET - "Get a webhook configuration for a repository"
* Operation id: repos/get-webhook-config-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: hook_id, required, path
* Response: 200
* application/json, #/components/schemas/webhook-config
METHODS repos_get_webhook_config_for_r
IMPORTING
owner TYPE string
repo TYPE string
hook_id TYPE i
RETURNING
VALUE(return_data) TYPE webhook_config
RAISING cx_static_check.
* PATCH - "Update a webhook configuration for a repository"
* Operation id: repos/update-webhook-config-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: hook_id, required, path
* Response: 200
* application/json, #/components/schemas/webhook-config
* Body ref: #/components/schemas/bodyrepos_update_webhook_confi
METHODS repos_update_webhook_config_fo
IMPORTING
owner TYPE string
repo TYPE string
hook_id TYPE i
body TYPE bodyrepos_update_webhook_confi
RETURNING
VALUE(return_data) TYPE webhook_config
RAISING cx_static_check.
* GET - "List deliveries for a repository webhook"
* Operation id: repos/list-webhook-deliveries
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: hook_id, required, path
* Parameter: per_page, optional, query
* Parameter: cursor, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_webhook_deliveries
* Response: 400
* Response: 422
METHODS repos_list_webhook_deliveries
IMPORTING
owner TYPE string
repo TYPE string
hook_id TYPE i
per_page TYPE i DEFAULT 30
cursor TYPE string OPTIONAL
RETURNING
VALUE(return_data) TYPE response_repos_list_webhook_de
RAISING cx_static_check.
* GET - "Get a delivery for a repository webhook"
* Operation id: repos/get-webhook-delivery
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: hook_id, required, path
* Parameter: delivery_id, required, path
* Response: 200
* application/json, #/components/schemas/hook-delivery
* Response: 400
* Response: 422
METHODS repos_get_webhook_delivery
IMPORTING
owner TYPE string
repo TYPE string
hook_id TYPE i
delivery_id TYPE i
RETURNING
VALUE(return_data) TYPE hook_delivery
RAISING cx_static_check.
* POST - "Redeliver a delivery for a repository webhook"
* Operation id: repos/redeliver-webhook-delivery
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: hook_id, required, path
* Parameter: delivery_id, required, path
* Response: 202
* Response: 400
* Response: 422
METHODS repos_redeliver_webhook_delive
IMPORTING
owner TYPE string
repo TYPE string
hook_id TYPE i
delivery_id TYPE i
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: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/installation
* Response: 301
* Response: 404
METHODS apps_get_repo_installation
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE installation
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
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: 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
* 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
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
* 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
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
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: 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.
* PUT - "Enable Git LFS for a repository"
* Operation id: repos/enable-lfs-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 202
* Response: 403
METHODS repos_enable_lfs_for_repo
IMPORTING
owner TYPE string
repo TYPE string
RAISING cx_static_check.
* DELETE - "Disable Git LFS for a repository"
* Operation id: repos/disable-lfs-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
METHODS repos_disable_lfs_for_repo
IMPORTING
owner TYPE string
repo TYPE string
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 - "Sync a fork branch with the upstream repository"
* Operation id: repos/merge-upstream
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/merged-upstream
* Response: 409
* Response: 422
* Body ref: #/components/schemas/bodyrepos_merge_upstream
METHODS repos_merge_upstream
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_merge_upstream
RETURNING
VALUE(return_data) TYPE merged_upstream
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 AE 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 AE 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: 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 AE 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 AE Pages site"
* Operation id: repos/delete-pages-site
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Response: 404
* 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 AE 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 AE 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 AE 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 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
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: 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: 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
* Response: 422
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.
* POST - "Create reaction for a release"
* Operation id: reactions/create-for-release
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: release_id, required, path
* Response: 200
* application/json, #/components/schemas/reaction
* Response: 201
* application/json, #/components/schemas/reaction
* Response: 422
* Body ref: #/components/schemas/bodyreactions_create_for_relea
METHODS reactions_create_for_release
IMPORTING
owner TYPE string
repo TYPE string
release_id TYPE i
body TYPE bodyreactions_create_for_relea
RETURNING
VALUE(return_data) TYPE reaction
RAISING cx_static_check.
* GET - "List secret scanning alerts for a repository"
* Operation id: secret-scanning/list-alerts-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: state, optional, query
* Parameter: secret_type, optional, query
* Parameter: resolution, optional, query
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_secret_scanning_list_alerts_fo
* Response: 404
* Response: 503
METHODS secret_scanning_list_alerts_fo
IMPORTING
owner TYPE string
repo TYPE string
state TYPE string OPTIONAL
secret_type TYPE string OPTIONAL
resolution TYPE string OPTIONAL
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_secret_scanning_list_
RAISING cx_static_check.
* GET - "Get a secret scanning alert"
* Operation id: secret-scanning/get-alert
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: alert_number, required, path
* Response: 200
* application/json, #/components/schemas/secret-scanning-alert
* Response: 304
* Response: 404
* Response: 503
METHODS secret_scanning_get_alert
IMPORTING
owner TYPE string
repo TYPE string
alert_number TYPE alert_number
RETURNING
VALUE(return_data) TYPE secret_scanning_alert
RAISING cx_static_check.
* PATCH - "Update a secret scanning alert"
* Operation id: secret-scanning/update-alert
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: alert_number, required, path
* Response: 200
* application/json, #/components/schemas/secret-scanning-alert
* Response: 404
* Response: 422
* Response: 503
* Body ref: #/components/schemas/bodysecret_scanning_update_ale
METHODS secret_scanning_update_alert
IMPORTING
owner TYPE string
repo TYPE string
alert_number TYPE alert_number
body TYPE bodysecret_scanning_update_ale
RETURNING
VALUE(return_data) TYPE secret_scanning_alert
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
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: 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 provisioned SCIM groups for an enterprise"
* Operation id: enterprise-admin/list-provisioned-groups-enterprise
* Parameter: filter, optional, query
* Parameter: excludedAttributes, optional, query
* Parameter: enterprise, required, path
* Parameter: startIndex, optional, query
* Parameter: count, optional, query
* Response: 200
* application/json, #/components/schemas/scim-group-list-enterprise
METHODS enterprise_admin_list_provisio
IMPORTING
filter TYPE string OPTIONAL
excludedattributes TYPE string OPTIONAL
enterprise TYPE string
startindex TYPE i OPTIONAL
count TYPE i OPTIONAL
RETURNING
VALUE(return_data) TYPE scim_group_list_enterprise
RAISING cx_static_check.
* POST - "Provision a SCIM enterprise group and invite users"
* Operation id: enterprise-admin/provision-and-invite-enterprise-group
* Parameter: enterprise, required, path
* Response: 201
* application/json, #/components/schemas/scim-enterprise-group
* Body ref: #/components/schemas/bodyenterprise_admin_provision
METHODS enterprise_admin_provision_and
IMPORTING
enterprise TYPE string
body TYPE bodyenterprise_admin_provision
RETURNING
VALUE(return_data) TYPE scim_enterprise_group
RAISING cx_static_check.
* GET - "Get SCIM provisioning information for an enterprise group"
* Operation id: enterprise-admin/get-provisioning-information-for-enterprise-group
* Parameter: excludedAttributes, optional, query
* Parameter: enterprise, required, path
* Parameter: scim_group_id, required, path
* Response: 200
* application/json, #/components/schemas/scim-enterprise-group
METHODS enterprise_admin_get_provision
IMPORTING
excludedattributes TYPE string OPTIONAL
enterprise TYPE string
scim_group_id TYPE string
RETURNING
VALUE(return_data) TYPE scim_enterprise_group
RAISING cx_static_check.
* PUT - "Set SCIM information for a provisioned enterprise group"
* Operation id: enterprise-admin/set-information-for-provisioned-enterprise-group
* Parameter: enterprise, required, path
* Parameter: scim_group_id, required, path
* Response: 200
* application/json, #/components/schemas/scim-enterprise-group
* Body ref: #/components/schemas/bodyenterprise_admin_set_infor
METHODS enterprise_admin_set_informati
IMPORTING
enterprise TYPE string
scim_group_id TYPE string
body TYPE bodyenterprise_admin_set_infor
RETURNING
VALUE(return_data) TYPE scim_enterprise_group
RAISING cx_static_check.
* PATCH - "Update an attribute for a SCIM enterprise group"
* Operation id: enterprise-admin/update-attribute-for-enterprise-group
* Parameter: enterprise, required, path
* Parameter: scim_group_id, required, path
* Response: 200
* application/json, #/components/schemas/scim-enterprise-group
* Body ref: #/components/schemas/bodyenterprise_admin_update_at
METHODS enterprise_admin_update_attrib
IMPORTING
enterprise TYPE string
scim_group_id TYPE string
body TYPE bodyenterprise_admin_update_at
RETURNING
VALUE(return_data) TYPE scim_enterprise_group
RAISING cx_static_check.
* DELETE - "Delete a SCIM group from an enterprise"
* Operation id: enterprise-admin/delete-scim-group-from-enterprise
* Parameter: enterprise, required, path
* Parameter: scim_group_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyenterprise_admin_delete_sc
METHODS enterprise_admin_delete_scim_g
IMPORTING
enterprise TYPE string
scim_group_id TYPE string
body TYPE bodyenterprise_admin_delete_sc
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
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
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 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 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-user
* 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-user
* 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-user
* 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-user
* 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-user
* 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: 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
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: 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
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-for-authenticated-user
* 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-for-authenticated-user
* 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-user
* 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-user
* 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-user
* 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-user
* 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 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-for-authenticated-user
* Parameter: invitation_id, required, path
* Response: 204
* Response: 304
* Response: 403
* Response: 404
* Response: 409
METHODS repos_accept_invitation_for_au
IMPORTING
invitation_id TYPE i
RAISING cx_static_check.
* DELETE - "Decline a repository invitation"
* Operation id: repos/decline-invitation-for-authenticated-user
* Parameter: invitation_id, required, path
* Response: 204
* Response: 304
* Response: 403
* Response: 404
* Response: 409
METHODS repos_decline_invitation_for_a
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: 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 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: username, required, path
* Response: 200
* application/json, #/components/schemas/installation
METHODS apps_get_user_installation
IMPORTING
username TYPE string
RETURNING
VALUE(return_data) TYPE installation
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: 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 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.
* 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,
12567,
3609,
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,
4009,
12,
36439,
11,
2134,
198,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
4009,
62,
36439,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17594,
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,
1128,
418,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2995,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26569,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2428,
62,
6371
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
FUNCTION CONVERSION_EXIT_YDK48_OUTPUT .
*"--------------------------------------------------------------------
*"*"Локальный интерфейс:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
*"--------------------------------------------------------------------
* see FM YDK_CONVERSION_EXIT_REGISTER
PERFORM output USING '48' input CHANGING output.
ENDFUNCTION.
| [
42296,
4177,
2849,
7102,
43717,
62,
6369,
2043,
62,
35755,
42,
2780,
62,
2606,
7250,
3843,
764,
198,
9,
1,
10097,
650,
198,
9,
1,
9,
1,
140,
249,
25443,
118,
16142,
30143,
45367,
22177,
45035,
140,
117,
12466,
116,
22177,
20375,
16843,
21169,
141,
226,
16843,
140,
117,
21727,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
1268,
30076,
8,
198,
9,
1,
220,
7788,
15490,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2606,
7250,
3843,
8,
198,
9,
1,
10097,
650,
198,
9,
766,
18695,
575,
48510,
62,
10943,
43717,
62,
6369,
2043,
62,
31553,
41517,
198,
220,
19878,
21389,
5072,
1294,
2751,
705,
2780,
6,
5128,
5870,
15567,
2751,
5072,
13,
198,
1677,
8068,
4944,
4177,
2849,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_ctxfreegram2 DEFINITION
PUBLIC
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
CLASS-METHODS factory
RETURNING
VALUE(instance) TYPE REF TO zcl_ctxfreegram2.
CLASS-METHODS class_constructor.
METHODS constructor.
PRIVATE SECTION.
TYPES ty_rules TYPE STANDARD TABLE OF REF TO lcl_rule WITH EMPTY KEY.
TYPES ty_symbols TYPE STANDARD TABLE OF REF TO lcl_symbol WITH EMPTY KEY.
METHODS load_rules
IMPORTING
rules TYPE ty_rules
RAISING
zcx_ctxfreegram.
METHODS create_first_and_follow_sets.
TYPES ty_ut_symbol TYPE STANDARD TABLE OF REF TO lcl_symbol WITH EMPTY KEY.
METHODS create_first_set
IMPORTING
non_terminal TYPE REF TO lcl_non_terminal
process_once TYPE REF TO lcl_ffs_process_once
RETURNING
VALUE(symbols) TYPE REF TO lcl_symbols.
"! NB: works only if create_first_set is called first.
METHODS create_follow_set
IMPORTING
symbol TYPE REF TO lcl_symbol
process_once TYPE REF TO lcl_ffs_process_once
RETURNING
VALUE(symbols) TYPE REF TO lcl_symbols.
METHODS create_item_set_transit_tables.
METHODS render_item_sets
RETURNING
VALUE(result) TYPE string.
METHODS render_transitions
RETURNING
VALUE(result) TYPE string.
METHODS render_table
IMPORTING
table TYPE ANY TABLE
RETURNING
VALUE(result) TYPE string.
METHODS create_render_table
IMPORTING
terminals TYPE abap_bool DEFAULT abap_true
nonterminals TYPE abap_bool DEFAULT abap_true
RETURNING
VALUE(result) TYPE REF TO data.
METHODS create_first_sets
RAISING
zcx_ctxfreegram.
METHODS create_follow_sets
RAISING
zcx_ctxfreegram.
METHODS render_first_sets
RETURNING
VALUE(result) TYPE string.
METHODS render_follow_sets
RETURNING
VALUE(result) TYPE string.
DATA: start_rule TYPE REF TO lcl_rule,
end_of_input TYPE REF TO lcl_terminal,
rules TYPE ty_rules,
item_sets TYPE REF TO lcl_item_sets,
transitions TYPE REF TO lcl_transitions,
first_sets TYPE REF TO lcl_first_sets,
follow_sets TYPE REF TO lcl_follow_sets,
non_terminals TYPE TABLE OF REF TO lcl_non_terminal,
terminals TYPE TABLE OF REF TO lcl_terminal,
symbols TYPE ty_symbols.
TYPES: ty_u_symbol_type TYPE c LENGTH 1,
BEGIN OF ty_us_symbol,
type TYPE ty_u_symbol_type,
index TYPE sytabix,
value TYPE string,
object TYPE REF TO zif_ctxfreegram_rule_elem,
END OF ty_us_symbol,
BEGIN OF ty_us_first_set,
non_terminal TYPE REF TO lcl_non_terminal,
first_set TYPE REF TO lcl_symbols,
END OF ty_us_first_set,
BEGIN OF ty_us_follow_set,
symbol TYPE REF TO lcl_symbol,
follow_set TYPE REF TO lcl_symbols,
END OF ty_us_follow_set,
ty_ut_follow_set TYPE TABLE OF ty_us_follow_set WITH NON-UNIQUE KEY symbol, "lhs rhs_terminal_index rhs_follow_set,.
ty_ut_first_set TYPE STANDARD TABLE OF ty_us_first_set WITH EMPTY KEY. "NON-UNIQUE KEY lhs_nonterm_index s_rhs.
DATA: aut_first_set TYPE ty_ut_first_set, "REF TO lcl_first_sets,
aut_follow_set TYPE ty_ut_follow_set. "REF TO lcl_follow_sets,
ENDCLASS.
CLASS zcl_ctxfreegram2 IMPLEMENTATION.
METHOD constructor.
end_of_input = NEW lcl_terminal( 'EOF' ).
ENDMETHOD.
METHOD load_rules.
me->start_rule = rules[ 1 ].
IF start_rule IS NOT BOUND.
RAISE EXCEPTION TYPE zcx_ctxfreegram EXPORTING error = zcx_ctxfreegram=>c_error-start_rule_not_bound.
ENDIF.
me->rules = rules.
DATA(symbols_temp) = VALUE ty_symbols(
FOR rule IN rules
( rule->lhs )
( LINES OF VALUE #( FOR elem IN rule->rhs ( elem ) ) ) ).
symbols = VALUE #( FOR GROUPS group_symbols OF symbol IN symbols_temp GROUP BY ( symbol = symbol ) ( group_symbols-symbol ) ).
terminals = VALUE #( FOR symbol IN symbols WHERE ( table_line->type = lcl_symbol=>c_type-terminal ) ( CAST #( symbol ) ) ).
non_terminals = VALUE #( FOR symbol IN symbols WHERE ( table_line->type = lcl_symbol=>c_type-non_terminal ) ( CAST #( symbol ) ) ).
ENDMETHOD.
METHOD create_item_set_transit_tables.
transitions = NEW lcl_transitions( ).
item_sets = NEW lcl_item_sets( )->append( NEW lcl_item_set( NEW lcl_items( VALUE #( ( NEW lcl_item(
type = lcl_item=>c_type-kernel
rule = start_rule
cursor_index = 1 ) ) ) ) ) ).
LOOP AT item_sets->table INTO DATA(item_set).
" add CLOSURE ITEMS
DATA(non_terminals) = item_set->kernel_items->non_terminals_at_cursor_pos( ).
LOOP AT non_terminals->table INTO DATA(non_terminal).
DATA(new_closure_items) = NEW lcl_items( VALUE #(
FOR rule IN rules WHERE ( table_line->lhs = non_terminal )
( NEW #( type = lcl_item=>c_type-closure
rule = rule
cursor_index = 1 ) ) ) ).
item_set->add_closure_items( new_closure_items ).
DATA(new_non_terminals) = new_closure_items->non_terminals_at_cursor_pos( ).
DATA(new_non_terminals_2) = FILTER #( new_non_terminals->table EXCEPT IN non_terminals->table_by USING KEY by_object WHERE table_line = object ).
non_terminals->append( new_non_terminals_2 ).
ENDLOOP.
" produce new item sets and transitions
LOOP AT item_set->all_items->table INTO DATA(aux_item) WHERE table_line->symbol_at_cursor IS BOUND
GROUP BY ( symbol_at_cursor = aux_item->symbol_at_cursor ) INTO DATA(group_of_items).
DATA(kernel_items_of_next_item_set) = NEW lcl_items( VALUE lcl_items=>ty_items(
FOR item IN GROUP group_of_items
( NEW lcl_item( type = lcl_item=>c_type-kernel
rule = item->rule
cursor_index = item->cursor_index + 1 ) ) ) ).
DATA(next_item_set) = NEW lcl_item_set( kernel_items_of_next_item_set ).
IF line_exists( item_sets->table_by[ KEY by_kernel_items COMPONENTS kernel_items_key = next_item_set->kernel_items_key ] ).
next_item_set = item_sets->table_by[ KEY by_kernel_items COMPONENTS kernel_items_key = next_item_set->kernel_items_key ]-object.
ELSE.
item_sets->append( next_item_set ).
ENDIF.
transitions->append( VALUE #( item_set = item_set
symbol = group_of_items-symbol_at_cursor
next_item_set = next_item_set ) ).
ENDLOOP.
ENDLOOP.
ENDMETHOD.
METHOD create_first_sets.
" create temporary first sets = one line per non terminal, and contains the rules where LHS = this non terminal and first element of RHS <> this non terminal
" loop until temporary first sets is empty
" - mark there is no change
" - loop at temporary first sets
" - loop at rules of current temporary first set
" - if first RHS symbol is a terminal, append it to first set of current LHS, delete the rule from current temporary first set, and mark there was a change
" - if first RHS symbol is a non terminal, and it exists as a final first set, transfer all its terminals to current temporary first set, delete the rule from current temporary first set, and mark there was a change
" - if the current temporary first set has no more rule to analyze, append the current temporary first set to the final first sets, and delete the current temporary first set
" - if there wasn't any change, it means that there is an "endless loop" -> raise error
TYPES: BEGIN OF ty_temp_first_set,
non_terminal TYPE REF TO lcl_non_terminal,
rules TYPE STANDARD TABLE OF REF TO lcl_rule WITH EMPTY KEY,
terminals TYPE lcl_first_set=>ty_terminals,
END OF ty_temp_first_set,
ty_temp_first_sets TYPE STANDARD TABLE OF ty_temp_first_set WITH EMPTY KEY.
first_sets = NEW lcl_first_sets( ).
DATA(temp_first_sets) = VALUE ty_temp_first_sets(
FOR non_terminal IN non_terminals
( non_terminal = non_terminal
rules = VALUE #( FOR aux_rule IN rules WHERE ( table_line->lhs = non_terminal ) ( aux_rule ) )
terminals = VALUE #( ) ) ).
LOOP AT temp_first_sets REFERENCE INTO DATA(temp_first_set).
LOOP AT temp_first_set->rules INTO DATA(rule) WHERE table_line->rhs IS NOT INITIAL.
IF rule->rhs[ 1 ] = rule->lhs.
DELETE temp_first_set->rules USING KEY loop_key.
ENDIF.
ENDLOOP.
IF temp_first_set->rules IS INITIAL.
RAISE EXCEPTION TYPE zcx_ctxfreegram EXPORTING error = zcx_ctxfreegram=>c_error-rules_circular_reference.
ENDIF.
ENDLOOP.
WHILE temp_first_sets IS NOT INITIAL.
DATA(change_done) = abap_false.
LOOP AT temp_first_sets REFERENCE INTO temp_first_set.
LOOP AT temp_first_set->rules INTO rule WHERE table_line->rhs IS NOT INITIAL.
IF rule->rhs[ 1 ]->type = lcl_symbol=>c_type-terminal.
COLLECT CAST lcl_terminal( rule->rhs[ 1 ] ) INTO temp_first_set->terminals.
DELETE temp_first_set->rules USING KEY loop_key.
change_done = abap_true.
ELSE.
DATA(first_set) = VALUE #( first_sets->table[ table_line->non_terminal = CAST lcl_non_terminal( rule->rhs[ 1 ] ) ] OPTIONAL ).
IF first_set IS BOUND.
LOOP AT first_set->terminals INTO DATA(terminal).
COLLECT terminal INTO temp_first_set->terminals.
ENDLOOP.
DELETE temp_first_set->rules USING KEY loop_key.
change_done = abap_true.
ENDIF.
ENDIF.
ENDLOOP.
IF temp_first_set->rules IS INITIAL.
first_set = NEW lcl_first_set( non_terminal = temp_first_set->non_terminal terminals = temp_first_set->terminals ).
first_sets->append( first_set ).
DELETE temp_first_sets USING KEY loop_key.
ENDIF.
ENDLOOP.
IF change_done = abap_false.
RAISE EXCEPTION TYPE zcx_ctxfreegram EXPORTING error = zcx_ctxfreegram=>c_error-rules_circular_reference.
ENDIF.
ENDWHILE.
ENDMETHOD.
METHOD create_follow_sets.
DATA: current_follow_set TYPE REF TO lcl_follow_set.
" table 2 (table for processing last RHS elements) = []
" temporary follow sets = []
" loop at rules
" - loop at RHS elements
" - if it's not the last RHS element
" - if the next RHS element is a terminal, COLLECT it into the temporary follow set of current RHS element
" - else if the next RHS element is a non terminal, get its first set and COLLECT all terminals of this first set into the temporary follow set of current RHS element
" - else if it's the last RHS element
" - collect { target_follow_set = last RHS element , source_follow_set = LHS } into table 2
"
" final follow sets = { symbol = start , terminals = ["end of input"] }
"
" loop until table 2 is empty
" - mark as not changed
" - loop at table 2
" - if the source follow set of table 2 exists in symbol of final follow sets, then COLLECT all terminals of this follow set into the follow set of current RHS element, mark as changed, and delete the current line of table 2
" - if nothing has changed then raise error
"
" loop at temporary follow sets
" - COLLECT all terminals of this follow set into the corresponding final follow set, create it if needed
TYPES : BEGIN OF ty_set_merge,
key_source_follow_set TYPE REF TO lcl_non_terminal,
key_target_follow_set TYPE REF TO lcl_symbol,
END OF ty_set_merge,
ty_set_merge_table TYPE STANDARD TABLE OF ty_set_merge WITH NON-UNIQUE KEY table_line.
ASSERT first_sets IS BOUND.
follow_sets = NEW lcl_follow_sets( ).
DATA(temp_follow_sets) = NEW lcl_follow_sets( ).
DATA(set_merge_table) = VALUE ty_set_merge_table( ).
LOOP AT rules INTO DATA(rule).
LOOP AT rule->rhs INTO DATA(current_rhs_element).
DATA(tabix) = sy-tabix.
current_follow_set = VALUE #( temp_follow_sets->table[ table_line->symbol = current_rhs_element ] OPTIONAL ).
IF current_follow_set IS NOT BOUND.
current_follow_set = NEW lcl_follow_set( symbol = current_rhs_element ).
temp_follow_sets->append( current_follow_set ).
ENDIF.
IF tabix < lines( rule->rhs ).
DATA(next_rhs_element) = rule->rhs[ tabix + 1 ].
IF next_rhs_element->type = lcl_symbol=>c_type-terminal.
current_follow_set->collect( CAST #( next_rhs_element ) ).
ELSE.
DATA(first_set) = first_sets->table[ table_line->non_terminal = CAST #( next_rhs_element ) ].
LOOP AT first_set->terminals INTO DATA(terminal).
current_follow_set->collect( terminal ).
ENDLOOP.
ENDIF.
ELSE.
COLLECT VALUE ty_set_merge( key_source_follow_set = rule->lhs key_target_follow_set = current_rhs_element ) INTO set_merge_table.
ENDIF.
ENDLOOP.
ENDLOOP.
DATA(start_follow_set) = NEW lcl_follow_set( symbol = start_rule->lhs ).
start_follow_set->collect( terminal = end_of_input ).
follow_sets->append( start_follow_set ).
WHILE set_merge_table IS NOT INITIAL.
DATA(change_done) = abap_false.
LOOP AT set_merge_table REFERENCE INTO DATA(set_merge).
DATA(source_follow_set) = VALUE #( follow_sets->table[ table_line->symbol = set_merge->key_source_follow_set ] OPTIONAL ).
IF source_follow_set IS BOUND.
DATA(target_follow_set) = VALUE #( follow_sets->table[ table_line->symbol = set_merge->key_target_follow_set ] OPTIONAL ).
IF target_follow_set IS NOT BOUND.
target_follow_set = NEW lcl_follow_set( symbol = set_merge->key_target_follow_set ).
follow_sets->append( target_follow_set ).
ENDIF.
LOOP AT source_follow_set->terminals INTO terminal.
target_follow_set->collect( terminal ).
ENDLOOP.
DATA(temp_follow_set) = VALUE #( temp_follow_sets->table[ table_line->symbol = set_merge->key_target_follow_set ] OPTIONAL ).
IF temp_follow_set IS BOUND.
LOOP AT temp_follow_set->terminals INTO terminal.
target_follow_set->collect( terminal ).
ENDLOOP.
ENDIF.
temp_follow_sets->remove( temp_follow_set ).
change_done = abap_true.
DELETE set_merge_table USING KEY loop_key.
ENDIF.
ENDLOOP.
IF change_done = abap_false.
RAISE EXCEPTION TYPE zcx_ctxfreegram EXPORTING error = zcx_ctxfreegram=>c_error-rules_circular_reference.
ENDIF.
ENDWHILE.
LOOP AT temp_follow_sets->table INTO temp_follow_set.
* DATA(follow_set) = VALUE #( follow_sets->table[ table_line->symbol = temp_follow_set->symbol ] OPTIONAL ).
* IF follow_set IS NOT BOUND.
follow_sets->append( temp_follow_set ).
* ELSE.
* LOOP AT temp_follow_set->terminals INTO terminal.
* follow_set->collect( terminal ).
* ENDLOOP.
* ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD create_first_and_follow_sets.
* first_sets = NEW lcl_first_sets( ).
* follow_sets = NEW lcl_follow_sets( ).
DATA(process_once) = NEW lcl_ffs_process_once( ).
REFRESH aut_first_set.
REFRESH aut_follow_set.
LOOP AT symbols INTO DATA(symbol) "ASSIGNING <ls_symbol2>
WHERE table_line->type = lcl_symbol=>c_type-terminal
OR table_line->type = lcl_symbol=>c_type-non_terminal.
IF symbol->type = lcl_symbol=>c_type-non_terminal.
create_first_set( non_terminal = CAST #( symbol ) process_once = process_once ).
* aut_first_set = VALUE #(
* BASE aut_first_set
* ( non_terminal = CAST #( symbol )
* first_set = create_first_set( non_terminal = CAST #( symbol ) process_once = process_once ) ) ).
ENDIF.
create_follow_set( symbol = symbol process_once = process_once ).
* aut_follow_set = VALUE #(
* BASE aut_follow_set
* ( symbol = symbol
* follow_set = create_follow_set( symbol = symbol process_once = process_once ) ) ).
ENDLOOP.
ENDMETHOD.
METHOD create_first_set.
DATA: only_epsilons TYPE abap_bool.
ASSIGN aut_first_set[ non_terminal = non_terminal ] TO FIELD-SYMBOL(<first_set>).
IF sy-subrc = 0.
symbols = <first_set>-first_set.
RETURN.
ENDIF.
INSERT VALUE #( non_terminal = non_terminal first_set = NEW #( ) ) INTO TABLE aut_first_set ASSIGNING <first_set>.
symbols = <first_set>-first_set.
DATA(at_least_one_rule_epsilon) = abap_false.
LOOP AT rules INTO DATA(rule)
WHERE table_line->lhs = non_terminal.
only_epsilons = abap_true.
LOOP AT rule->rhs INTO DATA(symbol).
IF symbol->type = lcl_symbol=>c_type-non_terminal.
symbols->collect_many( create_first_set( non_terminal = CAST #( symbol ) process_once = process_once ) ).
ELSEIF symbol = end_of_input.
" Process next symbol in the RHS, its First Set will make the First Set of I_NONTERMINAL
CONTINUE.
ELSE. "terminal
symbols->collect_one( symbol ).
ENDIF.
only_epsilons = abap_false.
EXIT.
ENDLOOP.
IF abap_true = only_epsilons.
at_least_one_rule_epsilon = abap_true.
ENDIF.
ENDLOOP.
IF abap_true = at_least_one_rule_epsilon.
" Add to the First set of requested NONTERMINAL the follow set of NONTERMINAL
symbols->collect_many( create_follow_set( symbol = symbol process_once = process_once ) ).
ENDIF.
ENDMETHOD.
METHOD create_follow_set.
DATA: l_tabix TYPE sytabix.
ASSIGN aut_follow_set[ symbol = symbol ] TO FIELD-SYMBOL(<follow_set>).
IF sy-subrc = 0.
symbols = <follow_set>-follow_set.
RETURN.
ENDIF.
INSERT VALUE #( symbol = symbol follow_set = NEW #( ) ) INTO TABLE aut_follow_set ASSIGNING <follow_set>.
symbols = <follow_set>-follow_set.
IF symbol->type = lcl_symbol=>c_type-non_terminal
AND CAST lcl_non_terminal( symbol ) = start_rule->lhs.
symbols->collect_one( end_of_input ).
ELSE.
LOOP AT rules INTO DATA(rule).
" for all terminals and nonterminals of RHS, the FOLLOW SET must be determined
" except for symbol "end of input".
LOOP AT rule->rhs INTO DATA(rhs_symbol)
WHERE table_line = symbol.
IF sy-tabix = lines( rule->rhs ).
" if symbol is at the end of RHS, then take the follow-set of LHS of the production rule
symbols->collect_many( create_follow_set( symbol = rule->lhs process_once = process_once ) ).
ELSE.
" if symbol is NOT at the end of RHS, then based on the type of the next symbol:
" - if it's a terminal, add it to the follow-set
" - if it's a nonterminal, add its whole first-set to the follow-set
l_tabix = sy-tabix + 1.
READ TABLE rule->rhs INDEX l_tabix INTO DATA(symbol2).
ASSERT sy-subrc = 0.
IF symbol2->type = lcl_symbol=>c_type-terminal.
symbols->collect_one( symbol2 ).
ELSE.
symbols->collect_many( create_first_set( non_terminal = CAST #( symbol2 ) process_once = process_once ) ).
ENDIF.
ENDIF.
ENDLOOP.
ENDLOOP.
ENDIF.
ENDMETHOD.
METHOD render_item_sets.
result = concat_lines_of( table = VALUE string_table(
FOR item_set IN item_sets->table INDEX INTO i
( |* Item set { i }:\n| )
( LINES OF VALUE #(
FOR item IN item_set->all_items->table
WHERE ( table_line->rule->rhs IS NOT INITIAL )
( |** Item { COND #( WHEN item->type = item->c_type-kernel THEN `kernel` ELSE `closure` ) }: { item->rule->lhs->get_text( ) } = {
COND #( WHEN item->rule->rhs IS NOT INITIAL THEN
concat_lines_of( sep = ` ` table = VALUE string_table(
FOR elem IN item->rule->rhs INDEX INTO j
( COND #( WHEN j = item->cursor_index THEN `◆ ` ) && elem->get_text( )
&& COND #( WHEN item->cursor_index > lines( item->rule->rhs ) AND j = lines( item->rule->rhs ) THEN ` ◆` ) ) ) ) ) }\n| ) ) ) ) ).
ENDMETHOD.
METHOD render_transitions.
" Transitions are the list of next item sets for each couple { current item set , current symbol }. "1" is the starting item set (start rule):
" (all numbers are item sets)
" ┌─ start item set
" ↓
" '*' '+' '0' '1' E B \n
" 1 4 5 2 3 \n
" 2 6 7 \n
" 3 \n
" 4 \n
" 5 \n
" 6 4 5 8 \n
" 7 4 5 9 \n
" 8 \n
" 9 \n
"
" Example:
" - start rule (item set 1) can be '0' or '1'.
" - item sets 4 and 5 are reduced to rule B (cannot be seen)
" - start rule then continues with B -> item set 3
" - item set 3 is reduced to rule E (cannot be seen)
" - start rule then continues with E -> item set 2
" - item set 2 can be '*' or '+'.
" - ...
DATA ref_table TYPE REF TO data.
FIELD-SYMBOLS <transitions> TYPE STANDARD TABLE.
ref_table = create_render_table( ).
ASSIGN ref_table->* TO <transitions>.
" HEADING
APPEND INITIAL LINE TO <transitions> ASSIGNING FIELD-SYMBOL(<transition>).
LOOP AT symbols INTO DATA(symbol) WHERE table_line <> start_rule->lhs.
DATA(compname) = |{ COND #( WHEN symbol->type = symbol->c_type-terminal THEN 'T' ELSE 'N' ) }{ sy-tabix }|.
ASSIGN COMPONENT compname OF STRUCTURE <transition> TO FIELD-SYMBOL(<comp>).
<comp> = symbol->get_text( ).
ENDLOOP.
" TRANSITIONS
LOOP AT item_sets->table INTO DATA(item_set).
DATA(item_set_index) = sy-tabix.
APPEND INITIAL LINE TO <transitions> ASSIGNING <transition>.
ASSIGN COMPONENT 'ITEMSET' OF STRUCTURE <transition> TO <comp>.
ASSERT sy-subrc = 0.
<comp> = |{ item_set_index }|.
LOOP AT transitions->table REFERENCE INTO DATA(transition)
WHERE item_set = item_set
AND symbol IS BOUND.
compname = |{ COND #( WHEN transition->symbol->type = transition->symbol->c_type-terminal THEN 'T' ELSE 'N' ) }{ line_index( symbols[ table_line = transition->symbol ] ) }|.
ASSIGN COMPONENT compname OF STRUCTURE <transition> TO <comp>.
ASSERT sy-subrc = 0.
<comp> = |{ line_index( item_sets->table[ table_line = transition->next_item_set ] ) }|.
ENDLOOP.
ENDLOOP.
result = render_table( <transitions> ).
ENDMETHOD.
METHOD render_first_sets.
DATA ref_table TYPE REF TO data.
FIELD-SYMBOLS <first_sets> TYPE STANDARD TABLE.
DATA(components) = VALUE abap_component_tab(
LET type_string = cl_abap_elemdescr=>get_string( )
max_terminals = REDUCE i( INIT max = 0 FOR aux_first_set IN first_sets->table NEXT max = nmax( val1 = max val2 = lines( aux_first_set->terminals ) ) )
IN
( name = 'NON_TERMINAL' type = type_string )
( LINES OF VALUE #(
FOR i = 1 WHILE i <= max_terminals
( name = |T_{ i }|
type = type_string ) ) ) ).
DATA(rtti_table) = cl_abap_tabledescr=>get( p_line_type = cl_abap_structdescr=>get( components ) ).
CREATE DATA ref_table TYPE HANDLE rtti_table.
ASSIGN ref_table->* TO <first_sets>.
" HEADING
APPEND INITIAL LINE TO <first_sets> ASSIGNING FIELD-SYMBOL(<first_set>).
LOOP AT components ASSIGNING FIELD-SYMBOL(<component>).
ASSIGN COMPONENT sy-tabix OF STRUCTURE <first_set> TO FIELD-SYMBOL(<comp>).
ASSERT sy-subrc = 0.
<comp> = <component>-name.
ENDLOOP.
" LINES
LOOP AT first_sets->table INTO DATA(first_set).
APPEND INITIAL LINE TO <first_sets> ASSIGNING <first_set>.
ASSIGN COMPONENT 'NON_TERMINAL' OF STRUCTURE <first_set> TO <comp>.
ASSERT sy-subrc = 0.
<comp> = first_set->non_terminal->get_text( ).
LOOP AT first_set->terminals INTO DATA(terminal).
ASSIGN COMPONENT sy-tabix + 1 OF STRUCTURE <first_set> TO <comp>.
ASSERT sy-subrc = 0.
<comp> = terminal->get_text( ).
ENDLOOP.
ENDLOOP.
result = render_table( <first_sets> ).
ENDMETHOD.
METHOD render_follow_sets.
DATA ref_table TYPE REF TO data.
FIELD-SYMBOLS <follow_sets> TYPE STANDARD TABLE.
DATA(components) = VALUE abap_component_tab(
LET type_string = cl_abap_elemdescr=>get_string( )
max_terminals = REDUCE i( INIT max = 0 FOR aux_follow_set IN follow_sets->table NEXT max = nmax( val1 = max val2 = lines( aux_follow_set->terminals ) ) )
IN
( name = 'SYMBOL' type = type_string )
( LINES OF VALUE #(
FOR i = 1 WHILE i <= max_terminals
( name = |T_{ i }|
type = type_string ) ) ) ).
DATA(rtti_table) = cl_abap_tabledescr=>get( p_line_type = cl_abap_structdescr=>get( components ) ).
CREATE DATA ref_table TYPE HANDLE rtti_table.
ASSIGN ref_table->* TO <follow_sets>.
" HEADING
APPEND INITIAL LINE TO <follow_sets> ASSIGNING FIELD-SYMBOL(<follow_set>).
LOOP AT components ASSIGNING FIELD-SYMBOL(<component>).
ASSIGN COMPONENT sy-tabix OF STRUCTURE <follow_set> TO FIELD-SYMBOL(<comp>).
ASSERT sy-subrc = 0.
<comp> = <component>-name.
ENDLOOP.
" LINES
LOOP AT follow_sets->table INTO DATA(follow_set).
APPEND INITIAL LINE TO <follow_sets> ASSIGNING <follow_set>.
ASSIGN COMPONENT 'SYMBOL' OF STRUCTURE <follow_set> TO <comp>.
ASSERT sy-subrc = 0.
<comp> = follow_set->symbol->get_text( ).
LOOP AT follow_set->terminals INTO DATA(terminal).
ASSIGN COMPONENT sy-tabix + 1 OF STRUCTURE <follow_set> TO <comp>.
ASSERT sy-subrc = 0.
<comp> = terminal->get_text( ).
ENDLOOP.
ENDLOOP.
result = render_table( <follow_sets> ).
ENDMETHOD.
METHOD create_render_table.
DATA(components) = VALUE abap_component_tab(
LET type = cl_abap_elemdescr=>get_string( ) IN
( name = 'ITEMSET' type = cl_abap_elemdescr=>get_string( ) )
( LINES OF COND #( WHEN terminals = abap_true THEN VALUE #(
FOR terminal IN symbols
WHERE ( table_line->type = lcl_symbol=>c_type-terminal )
( name = |T{ line_index( symbols[ table_line = terminal ] ) }|
type = type ) ) ) )
( LINES OF COND #( WHEN nonterminals = abap_true THEN VALUE #(
FOR non_terminal IN symbols
WHERE ( table_line <> start_rule->lhs
AND table_line->type = lcl_symbol=>c_type-non_terminal )
( name = |N{ line_index( symbols[ table_line = non_terminal ] ) }|
type = type ) ) ) ) ).
DATA(rtti_table) = cl_abap_tabledescr=>get( p_line_type = cl_abap_structdescr=>get( components ) ).
CREATE DATA result TYPE HANDLE rtti_table.
ENDMETHOD.
METHOD render_table.
TYPES ty_column_widths TYPE STANDARD TABLE OF i WITH EMPTY KEY.
DATA(components) = CAST cl_abap_structdescr( CAST cl_abap_tabledescr( cl_abap_typedescr=>describe_by_data( table ) )->get_table_line_type( ) )->get_components( ).
DATA(column_widths) = VALUE ty_column_widths( ).
DO lines( components ) TIMES.
DATA(max_width) = 0.
LOOP AT table ASSIGNING FIELD-SYMBOL(<line>).
ASSIGN COMPONENT sy-index OF STRUCTURE <line> TO FIELD-SYMBOL(<comp>).
max_width = nmax( val1 = max_width val2 = strlen( |{ <comp> }| ) ).
ENDLOOP.
max_width = max_width + 2. " number of blanks between columns
APPEND max_width TO column_widths.
ENDDO.
LOOP AT table ASSIGNING <line>.
DATA(line) = ``.
DO lines( column_widths ) TIMES.
ASSIGN COMPONENT sy-index OF STRUCTURE <line> TO <comp>.
line = line && |{ <comp> WIDTH = column_widths[ sy-index ] }|.
ENDDO.
result = result && line && |\n|.
ENDLOOP.
ENDMETHOD.
METHOD factory.
instance = NEW zcl_ctxfreegram2( ).
ENDMETHOD.
METHOD class_constructor.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
49464,
5787,
4546,
17,
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,
8860,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
39098,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
49464,
5787,
4546,
17,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
1398,
62,
41571,
273,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
1259,
62,
38785,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
300,
565,
62,
25135,
13315,
38144,
9936,
35374,
13,
198,
220,
220,
220,
24412,
47,
1546,
1259,
62,
1837,
2022,
10220,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
300,
565,
62,
1837,
23650,
13315,
38144,
9936,
35374,
13,
628,
220,
220,
220,
337,
36252,
50,
3440,
62,
38785,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3173,
41876,
1259,
62,
38785,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
49464,
5787,
4546,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
11085,
62,
392,
62,
27780,
62,
28709,
13,
628,
220,
220,
220,
24412,
47,
1546,
1259,
62,
315,
62,
1837,
23650,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
300,
565,
62,
1837,
23650,
13315,
38144,
9936,
35374,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
11085,
62,
2617,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1729,
62,
23705,
282,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
13159,
62,
23705,
282,
198,
220,
220,
220,
220,
220,
220,
220,
1429,
62,
27078,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
487,
82,
62,
14681,
62,
27078,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
1837,
2022,
10220,
8,
41876,
4526,
37,
5390,
300,
565,
62,
1837,
2022,
10220,
13,
628,
220,
220,
220,
366,
0,
41354,
25,
2499,
691,
611,
2251,
62,
11085,
62,
2617,
318,
1444,
717,
13,
198,
220,
220,
220,
337,
36252,
50,
2251,
62,
27780,
62,
2617,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
6194,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
1837,
23650,
198,
220,
220,
220,
220,
220,
220,
220,
1429,
62,
27078,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
487,
82,
62,
14681,
62,
27078,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
1837,
2022,
10220,
8,
41876,
4526,
37,
5390,
300,
565,
62,
1837,
2022,
10220,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
9186,
62,
2617,
62,
7645,
270,
62,
83,
2977,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
9186,
62,
28709,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
7645,
1756,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
11487,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3084,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
15529,
43679,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
13287,
62,
11487,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
30237,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
1729,
23705,
874,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
1366,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
11085,
62,
28709,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
49464,
5787,
4546,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
27780,
62,
28709,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
49464,
5787,
4546,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
11085,
62,
28709,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
27780,
62,
28709,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
13,
628,
220,
220,
220,
42865,
25,
923,
62,
25135,
220,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
25135,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
62,
1659,
62,
15414,
220,
41876,
4526,
37,
5390,
300,
565,
62,
23705,
282,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3173,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
38785,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2378,
62,
28709,
220,
220,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
9186,
62,
28709,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27188,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
7645,
1756,
11,
198,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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', "#EC NOTEXT
text TYPE string VALUE 'text', "#EC NOTEXT
comment TYPE string VALUE 'comment', "#EC NOTEXT
END OF c_css,
BEGIN OF c_token,
keyword TYPE c VALUE 'K', "#EC NOTEXT
text TYPE c VALUE 'T', "#EC NOTEXT
comment TYPE c VALUE 'C', "#EC NOTEXT
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.
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|ACCESSPOLICY' &&
'|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|BINDING|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|CNT|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|E|EACH' &&
'|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|ENDAT|ENDCASE' &&
'|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|END-ENHANCEMENT-SECTION' &&
'|ENDEXEC|ENDFOR|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|EQUAL|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|GREATER' &&
'|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|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND' &&
'|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS' &&
'|LEFTSPACE|LEGACY|LENGTH|LESS|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|PF|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|RTTI|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|SELECTOR|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|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE'.
SPLIT lv_keywords AT '|' INTO TABLE 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 = boolc( 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,
628,
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,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
5239,
3256,
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,
220,
220,
220,
220,
2912,
41876,
4731,
26173,
8924,
705,
23893,
3256,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
220,
220,
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,
220,
220,
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,
220,
220,
220,
220,
2420,
220,
220,
220,
41876,
269,
26173,
8924,
705,
51,
3256,
220,
220,
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,
220,
220,
220,
220,
2912,
41876,
269,
26173,
8924,
705,
34,
3256,
220,
220,
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,
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,
198,
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,
628,
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,
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,
91,
26861,
1546,
4303,
3535,
2149,
56,
6,
11405,
198,
220,
220,
220,
220,
220,
705,
91,
26861
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
"! <h1>API for Creating a Travel</h1>
"!
"! <p>
"! Function module to create a single Travel instance with the possibility to create related Bookings and
"! Booking Supplements in the same call (so called deep-create).
"! </p>
"!
"! <p>
"! The <em>travel_id</em> will be provided be the API but the IDs of Booking <em>booking_id</em> as well
"! of Booking Supplements <em>booking_id</em> and <em>booking_supplement_id</em>.
"! </p>
"!
"!
"! @parameter is_travel | Travel Data
"! @parameter it_booking | Table of predefined Booking Key <em>booking_id</em> and Booking Data
"! @parameter it_booking_supplement | Table of predefined Booking Supplement Key <em>booking_id</em>, <em>booking_supplement_id</em> and Booking Supplement Data
"! @parameter es_travel | Evaluated Travel Data like /DMO/TRAVEL28
"! @parameter et_booking | Table of evaluated Bookings like /DMO/BOOKING28
"! @parameter et_booking_supplement | Table of evaluated Booking Supplements like /DMO/BOOK_SUP_28
"! @parameter et_messages | Table of occurred messages
"!
FUNCTION /DMO/FLIGHT_TRAVEL_CREATE28.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IS_TRAVEL) TYPE /DMO/IF_FLIGHT_LEGACY28=>TS_TRAVEL_IN
*" REFERENCE(IT_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY28=>TT_BOOKING_IN
*" OPTIONAL
*" REFERENCE(IT_BOOKING_SUPPLEMENT) TYPE
*" /DMO/IF_FLIGHT_LEGACY28=>TT_BOOKING_SUPPLEMENT_IN OPTIONAL
*" EXPORTING
*" REFERENCE(ES_TRAVEL) TYPE /DMO/TRAVEL28
*" REFERENCE(ET_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY28=>TT_BOOKING
*" REFERENCE(ET_BOOKING_SUPPLEMENT) TYPE
*" /DMO/IF_FLIGHT_LEGACY28=>TT_BOOKING_SUPPLEMENT
*" REFERENCE(ET_MESSAGES) TYPE /DMO/IF_FLIGHT_LEGACY28=>TT_MESSAGE
*"----------------------------------------------------------------------
CLEAR es_travel.
CLEAR et_booking.
CLEAR et_booking_supplement.
CLEAR et_messages.
/dmo/cl_flight_legacy28=>get_instance( )->create_travel( EXPORTING is_travel = is_travel
it_booking = it_booking
it_booking_supplement = it_booking_supplement
IMPORTING es_travel = es_travel
et_booking = et_booking
et_booking_supplement = et_booking_supplement
et_messages = DATA(lt_messages) ).
/dmo/cl_flight_legacy28=>get_instance( )->convert_messages( EXPORTING it_messages = lt_messages
IMPORTING et_messages = et_messages ).
ENDFUNCTION.
| [
40484,
1279,
71,
16,
29,
17614,
329,
30481,
257,
13524,
3556,
71,
16,
29,
198,
40484,
198,
40484,
1279,
79,
29,
198,
40484,
15553,
8265,
284,
2251,
257,
2060,
13524,
4554,
351,
262,
5885,
284,
2251,
3519,
4897,
654,
290,
198,
40484,
4897,
278,
8105,
3639,
287,
262,
976,
869,
357,
568,
1444,
2769,
12,
17953,
737,
198,
40484,
7359,
79,
29,
198,
40484,
198,
40484,
1279,
79,
29,
198,
40484,
383,
1279,
368,
29,
35927,
62,
312,
3556,
368,
29,
481,
307,
2810,
307,
262,
7824,
475,
262,
32373,
286,
4897,
278,
1279,
368,
29,
2070,
278,
62,
312,
3556,
368,
29,
355,
880,
198,
40484,
286,
4897,
278,
8105,
3639,
1279,
368,
29,
2070,
278,
62,
312,
3556,
368,
29,
290,
1279,
368,
29,
2070,
278,
62,
18608,
1732,
62,
312,
3556,
368,
28401,
198,
40484,
7359,
79,
29,
198,
40484,
198,
40484,
198,
40484,
2488,
17143,
2357,
318,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
13524,
6060,
198,
40484,
2488,
17143,
2357,
340,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
8655,
286,
2747,
18156,
4897,
278,
7383,
1279,
368,
29,
2070,
278,
62,
312,
3556,
368,
29,
290,
4897,
278,
6060,
198,
40484,
2488,
17143,
2357,
340,
62,
2070,
278,
62,
18608,
1732,
930,
8655,
286,
2747,
18156,
4897,
278,
23150,
7383,
1279,
368,
29,
2070,
278,
62,
312,
3556,
368,
22330,
1279,
368,
29,
2070,
278,
62,
18608,
1732,
62,
312,
3556,
368,
29,
290,
4897,
278,
23150,
6060,
198,
40484,
2488,
17143,
2357,
1658,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
26439,
6605,
13524,
6060,
588,
1220,
35,
11770,
14,
51,
3861,
18697,
2078,
198,
40484,
2488,
17143,
2357,
2123,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
8655,
286,
16726,
4897,
654,
588,
1220,
35,
11770,
14,
39453,
2751,
2078,
198,
40484,
2488,
17143,
2357,
2123,
62,
2070,
278,
62,
18608,
1732,
930,
8655,
286,
16726,
4897,
278,
8105,
3639,
588,
1220,
35,
11770,
14,
39453,
62,
40331,
62,
2078,
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,
43387,
6158,
2078,
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,
1797,
62,
51,
3861,
18697,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
2078,
14804,
4694,
62,
51,
3861,
18697,
62,
1268,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
62,
39453,
2751,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
2078,
14804,
15751,
62,
39453,
2751,
62,
1268,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
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,
2078,
14804,
15751,
62,
39453,
2751,
62,
40331,
16437,
10979,
62,
1268,
39852,
2849,
1847,
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,
2078,
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,
2078,
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,
2078,
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,
2078,
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,
2078,
14804,
1136,
62,
39098,
7,
1267,
3784,
17953,
62,
35927,
7,
7788,
15490,
2751,
318,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
318,
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,
220,
220,
220,
340,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
340,
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,
220,
220,
220,
340,
62,
2070,
278,
62,
18608,
1732,
796,
340,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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ENDCLASS.
CLASS /dmo/bp_travel_u15 IMPLEMENTATION.
ENDCLASS.
| [
31631,
1220,
67,
5908,
14,
46583,
62,
35927,
62,
84,
1314,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
9564,
18601,
10659,
198,
220,
25261,
198,
220,
7473,
9348,
7801,
12861,
1581,
3963,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
1314,
764,
628,
220,
44731,
44513,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1220,
67,
5908,
14,
46583,
62,
35927,
62,
84,
1314,
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
] |
FUNCTION-POOL /DMO/FLIGHT_TRAVEL_API21. "MESSAGE-ID ..
* INCLUDE /DMO/LFLIGHT_TRAVEL_API21D... " Local class definition
| [
42296,
4177,
2849,
12,
16402,
3535,
1220,
35,
11770,
14,
3697,
9947,
62,
51,
3861,
18697,
62,
17614,
2481,
13,
220,
220,
220,
220,
220,
220,
366,
44,
1546,
4090,
8264,
12,
2389,
11485,
198,
198,
9,
3268,
5097,
52,
7206,
1220,
35,
11770,
14,
43,
3697,
9947,
62,
51,
3861,
18697,
62,
17614,
2481,
35,
986,
220,
220,
220,
220,
220,
220,
220,
366,
10714,
1398,
6770,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
FUNCTION zpof_gtt_ee_dl_hdr_gr_rel.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM
*" REFERENCE(I_EVENT_TYPES) TYPE /SAPTRX/EVTYPES
*" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER
*" REFERENCE(I_EVENTTYPE_TAB) TYPE TRXAS_EVENTTYPE_TABS_WA
*" REFERENCE(I_EVENT) TYPE TRXAS_EVT_CTAB_WA
*" EXPORTING
*" VALUE(E_RESULT) LIKE SY-BINPT
*" TABLES
*" C_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL
*" EXCEPTIONS
*" PARAMETER_ERROR
*" RELEVANCE_DETERM_ERROR
*" STOP_PROCESSING
*"----------------------------------------------------------------------
DATA: lo_udm_message TYPE REF TO cx_udm_message,
ls_bapiret TYPE bapiret2.
TRY.
e_result = lcl_ae_performer=>check_relevance(
EXPORTING
is_definition = VALUE #( maintab = lif_app_constants=>cs_tabledef-md_material_header )
io_ae_factory = NEW lcl_ae_factory_dl_header_gr( )
iv_appsys = i_appsys
is_event_type = i_event_types
it_all_appl_tables = i_all_appl_tables
is_events = i_event ).
CATCH cx_udm_message INTO lo_udm_message.
lcl_tools=>get_errors_log(
EXPORTING
io_umd_message = lo_udm_message
iv_appsys = i_appsys
IMPORTING
es_bapiret = ls_bapiret ).
" add error message
APPEND ls_bapiret TO c_logtable.
" throw corresponding exception
CASE lo_udm_message->textid.
WHEN lif_ef_constants=>cs_errors-stop_processing.
RAISE stop_processing.
WHEN lif_ef_constants=>cs_errors-table_determination.
RAISE relevance_determ_error.
ENDCASE.
ENDTRY.
ENDFUNCTION.
| [
42296,
4177,
2849,
1976,
79,
1659,
62,
70,
926,
62,
1453,
62,
25404,
62,
71,
7109,
62,
2164,
62,
2411,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
14565,
26491,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
2969,
3705,
16309,
8,
41876,
220,
1220,
50,
2969,
5446,
55,
14,
2969,
6489,
23060,
25361,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
3525,
62,
9936,
47,
1546,
8,
41876,
220,
1220,
50,
2969,
5446,
55,
14,
20114,
9936,
47,
1546,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
7036,
62,
2969,
6489,
62,
5603,
9148,
1546,
8,
41876,
220,
7579,
55,
1921,
62,
5603,
2749,
1340,
30339,
1137,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
3525,
25216,
62,
5603,
33,
8,
41876,
220,
7579,
55,
1921,
62,
20114,
3525,
25216,
62,
5603,
4462,
62,
15543,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
3525,
8,
41876,
220,
7579,
55,
1921,
62,
20114,
51,
62,
4177,
6242,
62,
15543,
198,
9,
1,
220,
7788,
15490,
2751,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
36,
62,
19535,
16724,
8,
34178,
220,
19704,
12,
33,
1268,
11571,
198,
9,
1,
220,
309,
6242,
28378,
198,
9,
1,
220,
220,
220,
220,
220,
327,
62,
25294,
38148,
19269,
18415,
11335,
220,
347,
17614,
26087,
17,
39852,
2849,
1847,
198,
9,
1,
220,
7788,
42006,
11053,
198,
9,
1,
220,
220,
220,
220,
220,
29463,
2390,
2767,
1137,
62,
24908,
198,
9,
1,
220,
220,
220,
220,
220,
49968,
53,
19240,
62,
35,
2767,
1137,
44,
62,
24908,
198,
9,
1,
220,
220,
220,
220,
220,
44934,
62,
4805,
4503,
7597,
2751,
198,
9,
1,
10097,
23031,
628,
220,
42865,
25,
2376,
62,
463,
76,
62,
20500,
41876,
4526,
37,
5390,
43213,
62,
463,
76,
62,
20500,
11,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
65,
499,
557,
83,
220,
220,
220,
220,
41876,
275,
499,
557,
83,
17,
13,
628,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
304,
62,
20274,
220,
796,
300,
565,
62,
3609,
62,
525,
16354,
14804,
9122,
62,
260,
2768,
590,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
46758,
220,
220,
220,
220,
220,
220,
796,
26173,
8924,
1303,
7,
1388,
8658,
220,
220,
796,
3868,
62,
1324,
62,
9979,
1187,
14804,
6359,
62,
83,
4510,
891,
12,
9132,
62,
33665,
62,
25677,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
3609,
62,
69,
9548,
220,
220,
220,
220,
220,
220,
796,
12682,
300,
565,
62,
3609,
62,
69,
9548,
62,
25404,
62,
25677,
62,
2164,
7,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1324,
17597,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1312,
62,
1324,
17597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
15596,
62,
4906,
220,
220,
220,
220,
220,
220,
796,
1312,
62,
15596,
62,
19199,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
439,
62,
1324,
75,
62,
83,
2977,
220,
796,
1312,
62,
439,
62,
1324,
75,
62,
83,
2977,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
31534,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1312,
62,
15596,
6739,
628,
220,
220,
220,
327,
11417,
43213,
62,
463,
76,
62,
20500,
39319,
2376,
62,
463,
76,
62,
20500,
13,
198,
220,
220,
220,
220,
220,
300,
565,
62,
31391,
14804,
1136,
62,
48277,
62,
6404,
7,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
388,
67,
62,
20500,
796,
2376,
62,
463,
76,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1324,
17597,
220,
220,
220,
220,
220,
796,
1312,
62,
1324,
17597,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1658,
62,
65,
499,
557,
83,
220,
220,
220,
220,
796,
43979,
62,
65,
499,
557,
83,
6739,
628,
220,
220,
220,
220,
220,
366,
751,
4049,
3275,
198,
220,
220,
220,
220,
220,
43504,
10619,
43979,
62,
65,
499,
557,
83,
5390,
269,
62,
6404,
11487,
13,
628,
220,
220,
220,
220,
220,
366,
3714,
11188,
6631,
198,
220,
220,
220,
220,
220,
42001,
2376,
62,
463,
76,
62,
20500,
3784,
5239,
312,
13,
198,
220,
220,
220,
220,
220,
220,
220,
42099,
3868,
62,
891,
62,
9979,
1187,
14804,
6359,
62,
48277,
12,
11338,
62,
36948,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
24352,
2245,
62,
36948,
13,
198,
220,
220,
220,
220,
220,
220,
220,
42099,
3868,
62,
891,
62,
9979,
1187,
14804,
6359,
62,
48277,
12,
11487,
62,
40869,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17926,
24352,
23082,
62,
67,
2357,
76,
62,
18224,
13,
198,
220,
220,
220,
220,
220,
23578,
34,
11159,
13,
198,
220,
23578,
40405,
13,
628,
198,
1677,
8068,
4944,
4177,
2849,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_ZMQBA_GW definition
public
inheriting from CL_APC_WSP_EXT_STATELESS_BASE
final
create public .
public section.
methods IF_APC_WSP_EXTENSION~ON_CLOSE
redefinition .
methods IF_APC_WSP_EXTENSION~ON_MESSAGE
redefinition .
methods IF_APC_WSP_EXTENSION~ON_START
redefinition .
methods IF_APC_WSP_EXTENSION~ON_ERROR
redefinition .
protected section.
methods GET_REQUEST_FROM_MESSAGE
importing
!IR_MSG type ref to IF_APC_WSP_MESSAGE
returning
value(RR_MSG) type ref to ZCL_MQBA_APC_MESSAGE .
methods PROCESS_MESSAGE
importing
!IR_MSG type ref to ZCL_MQBA_APC_MESSAGE
returning
value(RV_ANSWER) type STRING .
private section.
ENDCLASS.
CLASS ZCL_APC_WSP_EXT_ZMQBA_GW IMPLEMENTATION.
METHOD get_request_from_message.
* ----- local data
DATA: lt_lines TYPE TABLE OF string.
DATA: lv_topic TYPE string.
DATA: lv_id TYPE string.
DATA: lv_payload TYPE string.
DATA: lv_sender TYPE string VALUE 'unknown'.
DATA: lv_context TYPE string VALUE '*'.
DATA: lv_qos TYPE string VALUE '0'.
DATA: lv_retain TYPE string VALUE '0'.
* ----- check incoming
DATA(lv_msg) = ir_msg->get_text( ).
IF lv_msg IS NOT INITIAL AND lv_msg CP 't:*'.
* split at new line
SPLIT lv_msg AT cl_abap_char_utilities=>newline INTO TABLE lt_lines.
IF lt_lines[] IS NOT INITIAL.
* loop over lines and set fields
LOOP AT lt_lines ASSIGNING FIELD-SYMBOL(<lfs_line>).
IF <lfs_line> IS NOT INITIAL.
* check line
DATA(lv_len) = strlen( <lfs_line> ).
IF lv_len > 2 AND <lfs_line>+1(1) = ':'.
* prepare line
DATA(lv_prefix) = <lfs_line>(1).
DATA(lv_value) = <lfs_line>+2.
* process line
CASE lv_prefix.
WHEN 't'. lv_topic = lv_value.
WHEN 'p'. lv_payload = lv_value.
WHEN 'i'. lv_id = lv_value.
WHEN 'q'. lv_qos = lv_value.
WHEN 'r'. lv_retain = lv_value.
WHEN 'c'. lv_context = lv_value.
WHEN 's'. lv_sender = lv_value.
WHEN OTHERS.
ENDCASE.
ENDIF.
ENDIF.
ENDLOOP.
* create an apc message object and set data
DATA(lr_msg) = zcl_mqba_apc_factory=>create_message( ir_msg ).
lr_msg->set_main_data(
iv_topic = lv_topic
iv_payload = lv_payload
iv_id = lv_id
iv_context = lv_context
iv_sender = lv_sender
iv_scope = zif_mqba_broker=>c_scope_external
).
* return
rr_msg = lr_msg.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD if_apc_wsp_extension~on_close.
*CALL METHOD SUPER->IF_APC_WSP_EXTENSION~ON_CLOSE
* EXPORTING
* I_REASON =
* I_CODE =
* I_CONTEXT_BASE =
* .
ENDMETHOD.
METHOD if_apc_wsp_extension~on_error.
*CALL METHOD SUPER->IF_APC_WSP_EXTENSION~ON_ERROR
* EXPORTING
* I_REASON =
* I_CODE =
* I_CONTEXT_BASE =
* .
ENDMETHOD.
METHOD if_apc_wsp_extension~on_message.
* ---- local data
DATA: lv_answer TYPE string.
* ----- PROCESS MESSAGE
TRY.
* ----- testing issues
BREAK-POINT ID zmqba_gw.
DATA(lv_msg_text) = i_message->get_text( ).
* ----- quick check (performance issues)
DATA(lv_len) = strlen( lv_msg_text ).
CHECK lv_len GT 2
AND lv_msg_text(2) EQ 't:'.
* ----- retrieve the text message
DATA(lr_request) = get_request_from_message( i_message ).
IF lr_request IS INITIAL
OR lr_request->zif_mqba_request~is_valid( ) EQ abap_false.
lv_answer = |500 - INVALID MESSAGE|.
LOG-POINT ID zmqba_gw SUBKEY 'invalid_message_in' FIELDS lv_msg_text.
BREAK-POINT ID zmqba_gw.
ELSE.
* ----- process now
* create own apc context
DATA(lr_context) = zcl_mqba_apc_factory=>create_context( i_context ).
DATA(lr_response) = zcl_mqba_apc_factory=>create_response( i_message_manager ).
ASSERT ID zmqba_gw
SUBKEY 'apc_context'
CONDITION lr_context IS BOUND
AND lr_response IS BOUND.
* set context information
lr_request->set_msg_context( lr_context ).
lr_request->set_msg_response( lr_response ).
* forward message
lv_answer = process_message( lr_request ).
ENDIF.
* ----- create the answer
IF lv_answer IS NOT INITIAL.
lr_response->zif_mqba_response~post_answer( lv_answer ).
LOG-POINT ID zmqba_gw SUBKEY 'send_answer' FIELDS lv_answer.
ENDIF.
CATCH cx_apc_error
INTO DATA(lx_apc_error).
LOG-POINT ID zmqba_gw SUBKEY 'errors_occured' FIELDS lx_apc_error->get_text( ).
MESSAGE lx_apc_error->get_text( ) TYPE 'E'.
ENDTRY.
ENDMETHOD.
METHOD if_apc_wsp_extension~on_start.
* ------ testing issues
BREAK-POINT ID zmqba_apc.
* ------ create greeting answer
TRY.
* prepare answer text
DATA(lv_text) = |connected to Message Queue Broker ABAP (MQBA) - Gateway for { sy-sysid }/{ sy-mandt }|.
* append my consumer id
DATA(lv_session_id) = cl_amc_channel_manager=>get_consumer_session_id( ).
IF lv_session_id IS NOT INITIAL.
lv_text = lv_text
&& zif_mqba_broker=>c_char_newline
&& |session_id:{ lv_session_id }|.
ENDIF.
LOG-POINT ID zmqba_apc SUBKEY 'connected' FIELDS lv_session_id lv_text.
* send answer
DATA(lo_message) = i_message_manager->create_message( ).
lo_message->set_text( lv_text ).
i_message_manager->send( lo_message ).
* error handling
CATCH cx_apc_error
cx_amc_error
INTO DATA(lx_apc_error).
DATA(lv_error) = lx_apc_error->get_text( ).
LOG-POINT ID zmqba_apc SUBKEY 'error_connect' FIELDS lv_session_id lv_error.
ASSERT ID zmqba_apc
SUBKEY 'connect_error'
FIELDS lv_error
CONDITION lv_error IS INITIAL.
MESSAGE lv_error TYPE 'e'.
ENDTRY.
* ------- bind to amc channel for outbound messaging
TRY.
" bind the default AMC channel to APC WebSocket connection
DATA(lo_binding) = i_context->get_binding_manager( ).
lo_binding->bind_amc_message_consumer( i_application_id = zif_mqba_broker=>c_gw_amc_app
i_channel_id = zif_mqba_broker=>c_gw_amc_chn_messages ).
CATCH cx_apc_error
INTO DATA(lo_apc_error).
lv_error = lx_apc_error->get_text( ).
LOG-POINT ID zmqba_apc SUBKEY 'error_amc_bind' FIELDS lv_session_id lv_error.
ASSERT ID zmqba_apc
SUBKEY 'amc_bind'
FIELDS lv_error
CONDITION lv_error IS INITIAL.
MESSAGE lv_error TYPE 'e'.
ENDTRY.
ENDMETHOD.
METHOD process_message.
* ----- forward message to abap message broker
DATA(lr_broker) = zcl_mqba_factory=>get_broker( ir_msg->zif_mqba_request~get_context( ) ).
IF lr_broker->external_message_arrived( ir_msg ) EQ abap_false.
rv_answer = |500 - ERROR WHILE FORWARDING TO BROKER|.
DATA(lv_err_msg) = lr_broker->get_last_error( ).
LOG-POINT ID zmqba_gw
SUBKEY 'invalid_message_forwarding'
FIELDS lv_err_msg.
BREAK-POINT ID zmqba_gw.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
2969,
34,
62,
54,
4303,
62,
13918,
62,
57,
49215,
4339,
62,
33191,
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,
32737,
198,
220,
220,
220,
34087,
17750,
764,
198,
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,
220,
5050,
16876,
62,
2969,
34,
62,
54,
4303,
62,
13918,
16938,
2849,
93,
1340,
62,
24908,
198,
220,
220,
220,
34087,
17750,
764,
198,
24326,
2665,
13,
628,
220,
5050,
17151,
62,
2200,
35780,
62,
10913,
2662,
62,
44,
1546,
4090,
8264,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
4663,
62,
5653,
38,
2099,
1006,
284,
16876,
62,
2969,
34,
62,
54,
4303,
62,
44,
1546,
4090,
8264,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
21095,
62,
5653,
38,
8,
2099,
1006,
284,
1168,
5097,
62,
49215,
4339,
62,
2969,
34,
62,
44,
1546,
4090,
8264,
764,
198,
220,
5050,
41755,
7597,
62,
44,
1546,
4090,
8264,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
4663,
62,
5653,
38,
2099,
1006,
284,
1168,
5097,
62,
49215,
4339,
62,
2969,
34,
62,
44,
1546,
4090,
8264,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
49,
53,
62,
15037,
45532,
8,
2099,
19269,
2751,
764,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
2969,
34,
62,
54,
4303,
62,
13918,
62,
57,
49215,
4339,
62,
33191,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
25927,
62,
6738,
62,
20500,
13,
198,
198,
9,
37404,
1957,
1366,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
6615,
220,
220,
41876,
43679,
3963,
4731,
13,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
26652,
220,
220,
41876,
4731,
13,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
312,
220,
220,
220,
220,
220,
41876,
4731,
13,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
15577,
2220,
41876,
4731,
13,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
82,
2194,
220,
41876,
4731,
26173,
8924,
705,
34680,
4458,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
22866,
41876,
4731,
26173,
8924,
705,
9,
4458,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
80,
418,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
15,
4458,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
1186,
391,
220,
41876,
4731,
26173,
8924,
705,
15,
4458,
628,
198,
198,
9,
37404,
2198,
15619,
198,
220,
220,
220,
42865,
7,
6780,
62,
19662,
8,
796,
4173,
62,
19662,
3784,
1136,
62,
5239,
7,
6739,
198,
220,
220,
220,
16876,
300,
85,
62,
19662,
3180,
5626,
3268,
2043,
12576,
5357,
300,
85,
62,
19662,
16932,
705,
83,
25,
9,
4458,
198,
198,
9,
220,
220,
220,
220,
6626,
379,
649,
1627,
198,
220,
220,
220,
220,
220,
46341,
2043,
300,
85,
62,
19662,
5161,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
3605,
1370,
39319,
43679,
300,
83,
62,
6615,
13,
198,
220,
220,
220,
220,
220,
16876,
300,
83,
62,
6615,
21737,
3180,
5626,
3268,
2043,
12576,
13,
198,
198,
9,
220,
220,
220,
220,
9052,
625,
3951,
290,
900,
7032,
198,
220,
220,
220,
220,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
6615,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
1652,
82,
62,
1370,
29,
737,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16876,
1279,
1652,
82,
62,
1370,
29,
3180,
5626,
3268,
2043,
12576,
13,
198,
9,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2198,
1627,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
6780,
62,
11925,
8,
796,
965,
11925,
7,
1279,
1652,
82,
62,
1370,
29,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16876,
300,
85,
62,
11925,
1875,
362,
5357,
1279,
1652,
82,
62,
1370,
29,
10,
16,
7,
16,
8,
796,
705,
25,
4458,
198,
9,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8335,
1627,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
6780,
62,
40290,
8,
796,
1279,
1652,
82,
62,
1370,
33994,
16,
737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
6780,
62,
8367,
8,
220,
796,
1279,
1652,
82,
62,
1370,
29,
10,
17,
13,
198,
9,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1429,
1627,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42001,
300,
85,
62,
40290,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42099,
705,
83,
4458,
300,
85,
62,
26652,
220,
220,
796,
300,
85,
62,
8367,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42099,
705,
79,
4458,
300,
85,
62,
15577,
2220,
796,
300,
85,
62,
8367,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42099,
705,
72,
4458,
300,
85,
62,
312,
220,
220,
220,
220,
220,
796,
300,
85,
62,
8367,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42099,
705,
80,
4458,
300,
85,
62,
80,
418,
220,
220,
220,
220,
796,
300,
85,
62,
8367,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42099,
705
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*----------------------------------------------------------------------*
* CLASS ZUI2_JSON DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS zui2_json DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
TYPE-POOLS abap .
CLASS cl_abap_tstmp DEFINITION LOAD .
CLASS cx_sy_conversion_error DEFINITION LOAD .
TYPES json TYPE string .
TYPES:
BEGIN OF name_mapping,
abap TYPE abap_compname,
json TYPE string,
END OF name_mapping .
TYPES:
name_mappings TYPE HASHED TABLE OF name_mapping WITH UNIQUE KEY abap .
TYPES bool TYPE char1 .
TYPES tribool TYPE char1 .
TYPES pretty_name_mode TYPE char1 .
CONSTANTS:
BEGIN OF pretty_mode,
none TYPE char1 VALUE ``,
low_case TYPE char1 VALUE `L`,
camel_case TYPE char1 VALUE `X`,
extended TYPE char1 VALUE `Y`,
user TYPE char1 VALUE `U`,
user_low_case TYPE char1 VALUE `C`,
case_sensitive TYPE char1 VALUE 'S',
END OF pretty_mode .
CONSTANTS:
BEGIN OF c_bool,
true TYPE bool VALUE `X`,
false TYPE bool VALUE ``,
END OF c_bool .
CONSTANTS:
BEGIN OF c_tribool,
true TYPE tribool VALUE c_bool-true,
false TYPE tribool VALUE `-`,
undefined TYPE tribool VALUE ``,
END OF c_tribool .
CLASS-DATA sv_white_space TYPE string READ-ONLY .
CONSTANTS mc_key_separator TYPE string VALUE `-` ##NO_TEXT.
CLASS-DATA mc_bool_types TYPE string READ-ONLY VALUE `\TYPE-POOL=ABAP\TYPE=ABAP_BOOL\TYPE=BOOLEAN\TYPE=BOOLE_D\TYPE=XFELD` ##NO_TEXT.
CLASS-DATA mc_bool_3state TYPE string READ-ONLY VALUE `\TYPE=BOOLEAN` ##NO_TEXT.
CONSTANTS version TYPE i VALUE 6 ##NO_TEXT.
CLASS-DATA mc_json_type TYPE string READ-ONLY .
CLASS-METHODS class_constructor .
CLASS-METHODS string_to_xstring
IMPORTING
!in TYPE string
CHANGING
VALUE(out) TYPE any .
CLASS-METHODS xstring_to_string
IMPORTING
!in TYPE any
RETURNING
VALUE(out) TYPE string .
CLASS-METHODS raw_to_string
IMPORTING
!iv_xstring TYPE xstring
!iv_encoding TYPE abap_encoding OPTIONAL
RETURNING
VALUE(rv_string) TYPE string .
CLASS-METHODS string_to_raw
IMPORTING
!iv_string TYPE string
!iv_encoding TYPE abap_encoding OPTIONAL
RETURNING
VALUE(rv_xstring) TYPE xstring .
CLASS-METHODS dump
IMPORTING
!data TYPE data
!compress TYPE bool DEFAULT c_bool-false
!type_descr TYPE REF TO cl_abap_typedescr OPTIONAL
!pretty_name TYPE pretty_name_mode DEFAULT pretty_mode-none
!assoc_arrays TYPE bool DEFAULT c_bool-false
!ts_as_iso8601 TYPE bool DEFAULT c_bool-false
RETURNING
VALUE(r_json) TYPE json .
CLASS-METHODS deserialize
IMPORTING
!json TYPE json OPTIONAL
!jsonx TYPE xstring OPTIONAL
!pretty_name TYPE pretty_name_mode DEFAULT pretty_mode-none
!assoc_arrays TYPE bool DEFAULT c_bool-false
!assoc_arrays_opt TYPE bool DEFAULT c_bool-false
!name_mappings TYPE name_mappings OPTIONAL
CHANGING
!data TYPE data .
CLASS-METHODS serialize
IMPORTING
!data TYPE data
!compress TYPE bool DEFAULT c_bool-false
!name TYPE string OPTIONAL
!pretty_name TYPE pretty_name_mode DEFAULT pretty_mode-none
!type_descr TYPE REF TO cl_abap_typedescr OPTIONAL
!assoc_arrays TYPE bool DEFAULT c_bool-false
!ts_as_iso8601 TYPE bool DEFAULT c_bool-false
!expand_includes TYPE bool DEFAULT c_bool-true
!assoc_arrays_opt TYPE bool DEFAULT c_bool-false
!numc_as_string TYPE bool DEFAULT c_bool-false
!name_mappings TYPE name_mappings OPTIONAL
RETURNING
VALUE(r_json) TYPE json .
METHODS deserialize_int
IMPORTING
!json TYPE json OPTIONAL
!jsonx TYPE xstring OPTIONAL
CHANGING
!data TYPE data
RAISING
cx_sy_move_cast_error .
CLASS-METHODS generate
IMPORTING
!json TYPE json
!pretty_name TYPE pretty_name_mode DEFAULT pretty_mode-none
!name_mappings TYPE name_mappings OPTIONAL
RETURNING
VALUE(rr_data) TYPE REF TO data .
METHODS serialize_int
IMPORTING
!data TYPE data
!name TYPE string OPTIONAL
!type_descr TYPE REF TO cl_abap_typedescr OPTIONAL
RETURNING
VALUE(r_json) TYPE json .
METHODS generate_int
IMPORTING
!json TYPE json
RETURNING
VALUE(rr_data) TYPE REF TO data .
METHODS constructor
IMPORTING
!compress TYPE bool DEFAULT c_bool-false
!pretty_name TYPE pretty_name_mode DEFAULT pretty_mode-none
!assoc_arrays TYPE bool DEFAULT c_bool-false
!ts_as_iso8601 TYPE bool DEFAULT c_bool-false
!expand_includes TYPE bool DEFAULT c_bool-true
!assoc_arrays_opt TYPE bool DEFAULT c_bool-false
!strict_mode TYPE bool DEFAULT c_bool-false
!numc_as_string TYPE bool DEFAULT c_bool-false
!name_mappings TYPE name_mappings OPTIONAL .
CLASS-METHODS bool_to_tribool
IMPORTING
!iv_bool TYPE bool
RETURNING
VALUE(rv_tribool) TYPE tribool .
CLASS-METHODS tribool_to_bool
IMPORTING
!iv_tribool TYPE tribool
RETURNING
VALUE(rv_bool) TYPE bool .
protected section.
types:
BEGIN OF t_s_symbol,
header TYPE string,
name TYPE string,
type TYPE REF TO cl_abap_datadescr,
value TYPE REF TO data,
compressable TYPE abap_bool,
read_only TYPE abap_bool,
END OF t_s_symbol .
types:
t_t_symbol TYPE STANDARD TABLE OF t_s_symbol WITH DEFAULT KEY .
types:
BEGIN OF t_s_field_cache,
name TYPE string,
type TYPE REF TO cl_abap_datadescr,
value TYPE REF TO data,
END OF t_s_field_cache .
types:
t_t_field_cache TYPE HASHED TABLE OF t_s_field_cache WITH UNIQUE KEY name .
types:
name_mappings_ex TYPE HASHED TABLE OF name_mapping WITH UNIQUE KEY json .
data MV_COMPRESS type BOOL .
data MV_PRETTY_NAME type PRETTY_NAME_MODE .
data MV_ASSOC_ARRAYS type BOOL .
data MV_TS_AS_ISO8601 type BOOL .
data MT_NAME_MAPPINGS type NAME_MAPPINGS .
data MT_NAME_MAPPINGS_EX type NAME_MAPPINGS_EX .
data MV_EXPAND_INCLUDES type BOOL .
data MV_ASSOC_ARRAYS_OPT type BOOL .
data MV_STRICT_MODE type BOOL .
data MV_NUMC_AS_STRING type BOOL .
methods GET_SYMBOLS
final
importing
!TYPE_DESCR type ref to CL_ABAP_TYPEDESCR
!DATA type ref to DATA optional
!OBJECT type ref to OBJECT optional
!INCLUDE_ALIASES type ABAP_BOOL default ABAP_FALSE
returning
value(RESULT) type T_T_SYMBOL .
methods DUMP_SYMBOLS
final
importing
!IT_SYMBOLS type T_T_SYMBOL
returning
value(R_JSON) type JSON .
methods GET_FIELDS
final
importing
!TYPE_DESCR type ref to CL_ABAP_TYPEDESCR
!DATA type ref to DATA optional
!OBJECT type ref to OBJECT optional
returning
value(RT_FIELDS) type T_T_FIELD_CACHE .
methods DUMP_INT
importing
!DATA type DATA
!TYPE_DESCR type ref to CL_ABAP_TYPEDESCR optional
returning
value(R_JSON) type JSON .
methods IS_COMPRESSABLE
importing
!TYPE_DESCR type ref to CL_ABAP_TYPEDESCR
!NAME type CSEQUENCE
returning
value(RV_COMPRESS) type ABAP_BOOL .
methods RESTORE
importing
!JSON type JSON
!LENGTH type I
value(TYPE_DESCR) type ref to CL_ABAP_TYPEDESCR optional
!FIELD_CACHE type T_T_FIELD_CACHE optional
changing
!DATA type DATA optional
!OFFSET type I default 0
raising
CX_SY_MOVE_CAST_ERROR .
methods RESTORE_TYPE
importing
!JSON type JSON
!LENGTH type I
value(TYPE_DESCR) type ref to CL_ABAP_TYPEDESCR optional
!FIELD_CACHE type T_T_FIELD_CACHE optional
changing
!DATA type DATA optional
!OFFSET type I default 0
raising
CX_SY_MOVE_CAST_ERROR .
methods DUMP_TYPE
importing
!DATA type DATA
!TYPE_DESCR type ref to CL_ABAP_ELEMDESCR
returning
value(R_JSON) type JSON .
methods DUMP_TYPE_EX
importing
!DATA type DATA
returning
value(R_JSON) type JSON .
methods PRETTY_NAME_EX
importing
!IN type CSEQUENCE
returning
value(OUT) type STRING .
methods GENERATE_INT_EX
final
importing
!JSON type JSON
!LENGTH type I
changing
!DATA type DATA
!OFFSET type I .
methods PRETTY_NAME
importing
!IN type CSEQUENCE
returning
value(OUT) type STRING .
class-methods ESCAPE
importing
!IN type ANY
returning
value(OUT) type STRING .
class-methods EDM_DATETIME_TO_TS
importing
!TICKS type STRING
!OFFSET type STRING optional
!TYPEKIND type ABAP_TYPEKIND
returning
value(R_DATA) type STRING .
private section.
data MV_EXTENDED type BOOL .
class-data MC_ME_TYPE type STRING .
*"* private components of class ZUI2_JSON
*"* do not include other source files here!!!
ENDCLASS.
CLASS ZUI2_JSON IMPLEMENTATION.
METHOD BOOL_TO_TRIBOOL.
IF iv_bool EQ c_bool-true.
rv_tribool = c_tribool-true.
ELSEIF iv_bool EQ abap_undefined. " fall back for abap _bool
rv_tribool = c_tribool-undefined.
ELSE.
rv_tribool = c_tribool-false.
ENDIF.
ENDMETHOD. "bool_to_tribool
METHOD CLASS_CONSTRUCTOR.
DATA: lo_bool_type_descr TYPE REF TO cl_abap_typedescr,
lo_tribool_type_descr TYPE REF TO cl_abap_typedescr,
lo_json_type_descr TYPE REF TO cl_abap_typedescr,
lv_pos LIKE sy-fdpos,
lv_json_string TYPE json.
lo_bool_type_descr = cl_abap_typedescr=>describe_by_data( c_bool-true ).
lo_tribool_type_descr = cl_abap_typedescr=>describe_by_data( c_tribool-true ).
lo_json_type_descr = cl_abap_typedescr=>describe_by_data( lv_json_string ).
CONCATENATE mc_bool_types lo_bool_type_descr->absolute_name lo_tribool_type_descr->absolute_name INTO mc_bool_types.
CONCATENATE mc_bool_3state lo_tribool_type_descr->absolute_name INTO mc_bool_3state.
CONCATENATE mc_json_type lo_json_type_descr->absolute_name INTO mc_json_type.
FIND FIRST OCCURRENCE OF `\TYPE=` IN lo_json_type_descr->absolute_name MATCH OFFSET lv_pos.
IF sy-subrc IS INITIAL.
mc_me_type = lo_json_type_descr->absolute_name(lv_pos).
ENDIF.
sv_white_space = cl_abap_char_utilities=>get_simple_spaces_for_cur_cp( ).
ENDMETHOD. "class_constructor
METHOD CONSTRUCTOR.
DATA: rtti TYPE REF TO cl_abap_classdescr,
pair LIKE LINE OF name_mappings.
mv_compress = compress.
mv_pretty_name = pretty_name.
mv_assoc_arrays = assoc_arrays.
mv_ts_as_iso8601 = ts_as_iso8601.
mv_expand_includes = expand_includes.
mv_assoc_arrays_opt = assoc_arrays_opt.
mv_strict_mode = strict_mode.
mv_numc_as_string = numc_as_string.
LOOP AT name_mappings INTO pair.
TRANSLATE pair-abap TO UPPER CASE.
INSERT pair INTO TABLE mt_name_mappings.
ENDLOOP.
INSERT LINES OF mt_name_mappings INTO TABLE mt_name_mappings_ex.
IF mt_name_mappings IS NOT INITIAL.
IF mv_pretty_name EQ pretty_mode-none.
mv_pretty_name = pretty_mode-user.
ELSEIF pretty_name EQ pretty_mode-low_case.
mv_pretty_name = pretty_mode-user_low_case.
ENDIF.
ENDIF.
rtti ?= cl_abap_classdescr=>describe_by_object_ref( me ).
IF rtti->absolute_name NE mc_me_type.
mv_extended = c_bool-true.
ENDIF.
ENDMETHOD.
METHOD DESERIALIZE.
DATA: lo_json TYPE REF TO ZUI2_JSON.
" **********************************************************************
"! Usage examples and documentation can be found on SCN:
" http://wiki.scn.sap.com/wiki/display/Snippets/One+more+ABAP+to+JSON+Serializer+and+Deserializer
" ********************************************************************** "
IF json IS NOT INITIAL OR jsonx IS NOT INITIAL.
CREATE OBJECT lo_json
EXPORTING
pretty_name = pretty_name
name_mappings = name_mappings
assoc_arrays = assoc_arrays
assoc_arrays_opt = assoc_arrays_opt.
TRY .
lo_json->deserialize_int( EXPORTING json = json jsonx = jsonx CHANGING data = data ).
CATCH cx_sy_move_cast_error.
ENDTRY.
ENDIF.
ENDMETHOD. "deserialize
METHOD DESERIALIZE_INT.
DATA: length TYPE i,
unescaped LIKE json.
" **********************************************************************
"! Usage examples and documentation can be found on SCN:
" http://wiki.scn.sap.com/wiki/display/Snippets/One+more+ABAP+to+JSON+Serializer+and+Deserializer
" ********************************************************************** "
IF json IS NOT INITIAL OR jsonx IS NOT INITIAL.
IF jsonx IS NOT INITIAL.
unescaped = raw_to_string( jsonx ).
ELSE.
unescaped = json.
ENDIF.
" to eliminate numeric replacement calls for every single sting value, we do
" replacement over all JSON text, while this shall not destroy JSON structure
REPLACE ALL OCCURRENCES OF `\r\n` IN unescaped WITH cl_abap_char_utilities=>cr_lf.
REPLACE ALL OCCURRENCES OF `\n` IN unescaped WITH cl_abap_char_utilities=>newline.
REPLACE ALL OCCURRENCES OF `\t` IN unescaped WITH cl_abap_char_utilities=>horizontal_tab.
" REPLACE ALL OCCURRENCES OF `\f` IN r_json WITH cl_abap_char_utilities=>form_feed.
" REPLACE ALL OCCURRENCES OF `\b` IN r_json WITH cl_abap_char_utilities=>backspace.
length = NUMOFCHAR( unescaped ).
restore_type( EXPORTING json = unescaped length = length CHANGING data = data ).
ENDIF.
ENDMETHOD. "deserialize
METHOD DUMP.
DATA: lo_json TYPE REF TO ZUI2_JSON.
CREATE OBJECT lo_json
EXPORTING
compress = compress
pretty_name = pretty_name
assoc_arrays = assoc_arrays
ts_as_iso8601 = ts_as_iso8601.
r_json = lo_json->dump_int( data = data type_descr = type_descr ).
ENDMETHOD. "dump
METHOD DUMP_INT.
DATA: lo_typedesc TYPE REF TO cl_abap_typedescr,
lo_elem_descr TYPE REF TO cl_abap_elemdescr,
lo_classdesc TYPE REF TO cl_abap_classdescr,
lo_structdesc TYPE REF TO cl_abap_structdescr,
lo_tabledescr TYPE REF TO cl_abap_tabledescr,
lt_symbols TYPE t_t_symbol,
lt_keys LIKE lt_symbols,
lt_properties TYPE STANDARD TABLE OF string,
lt_fields TYPE STANDARD TABLE OF string,
lo_obj_ref TYPE REF TO object,
lo_data_ref TYPE REF TO data,
ls_skip_key TYPE LINE OF abap_keydescr_tab,
lv_array_opt TYPE abap_bool,
lv_prop_name TYPE string,
lv_keyval TYPE string,
lv_itemval TYPE string.
FIELD-SYMBOLS: <line> TYPE ANY,
<value> TYPE ANY,
<data> TYPE data,
<key> TYPE LINE OF abap_keydescr_tab,
<symbol> LIKE LINE OF lt_symbols,
<table> TYPE ANY TABLE.
" we need here macro instead of method calls because of the performance reasons.
" based on SAT measurements.
CASE type_descr->kind.
WHEN cl_abap_typedescr=>kind_ref.
IF data IS INITIAL.
r_json = `null`. "#EC NOTEXT
ELSEIF type_descr->type_kind EQ cl_abap_typedescr=>typekind_dref.
lo_data_ref ?= data.
lo_typedesc = cl_abap_typedescr=>describe_by_data_ref( lo_data_ref ).
ASSIGN lo_data_ref->* TO <data>.
r_json = dump_int( data = <data> type_descr = lo_typedesc ).
ELSE.
lo_obj_ref ?= data.
lo_classdesc ?= cl_abap_typedescr=>describe_by_object_ref( lo_obj_ref ).
lt_symbols = get_symbols( type_descr = lo_classdesc object = lo_obj_ref ).
r_json = dump_symbols( lt_symbols ).
ENDIF.
WHEN cl_abap_typedescr=>kind_elem.
lo_elem_descr ?= type_descr.
dump_type data lo_elem_descr r_json.
WHEN cl_abap_typedescr=>kind_struct.
lo_structdesc ?= type_descr.
GET REFERENCE OF data INTO lo_data_ref.
lt_symbols = get_symbols( type_descr = lo_structdesc data = lo_data_ref ).
r_json = dump_symbols( lt_symbols ).
WHEN cl_abap_typedescr=>kind_table.
lo_tabledescr ?= type_descr.
lo_typedesc = lo_tabledescr->get_table_line_type( ).
ASSIGN data TO <table>.
" optimization for structured tables
IF lo_typedesc->kind EQ cl_abap_typedescr=>kind_struct.
lo_structdesc ?= lo_typedesc.
CREATE DATA lo_data_ref LIKE LINE OF <table>.
ASSIGN lo_data_ref->* TO <line>.
lt_symbols = get_symbols( type_descr = lo_structdesc data = lo_data_ref ).
" here we have differentiation of output of simple table to JSON array
" and sorted or hashed table with unique key into JSON associative array
IF lo_tabledescr->has_unique_key IS NOT INITIAL AND mv_assoc_arrays IS NOT INITIAL.
IF lo_tabledescr->key_defkind EQ lo_tabledescr->keydefkind_user.
LOOP AT lo_tabledescr->key ASSIGNING <key>.
READ TABLE lt_symbols WITH KEY name = <key>-name ASSIGNING <symbol>.
APPEND <symbol> TO lt_keys.
ENDLOOP.
ENDIF.
IF LINES( lo_tabledescr->key ) EQ 1.
READ TABLE lo_tabledescr->key INDEX 1 INTO ls_skip_key.
DELETE lt_symbols WHERE name EQ ls_skip_key-name.
" remove object wrapping for simple name-value tables
IF mv_assoc_arrays_opt EQ abap_true AND LINES( lt_symbols ) EQ 1.
lv_array_opt = abap_true.
ENDIF.
ENDIF.
LOOP AT <table> INTO <line>.
CLEAR: lt_fields, lv_prop_name.
LOOP AT lt_symbols ASSIGNING <symbol>.
ASSIGN <symbol>-value->* TO <value>.
IF mv_compress IS INITIAL OR <value> IS NOT INITIAL OR <symbol>-compressable EQ abap_false.
IF <symbol>-type->kind EQ cl_abap_typedescr=>kind_elem.
lo_elem_descr ?= <symbol>-type.
dump_type <value> lo_elem_descr lv_itemval.
ELSE.
lv_itemval = dump_int( data = <value> type_descr = <symbol>-type ).
ENDIF.
IF lv_array_opt EQ abap_false.
CONCATENATE <symbol>-header lv_itemval INTO lv_itemval.
ENDIF.
APPEND lv_itemval TO lt_fields.
ENDIF.
ENDLOOP.
IF lo_tabledescr->key_defkind EQ lo_tabledescr->keydefkind_user.
LOOP AT lt_keys ASSIGNING <symbol>.
ASSIGN <symbol>-value->* TO <value>.
MOVE <value> TO lv_keyval.
CONDENSE lv_keyval.
IF lv_prop_name IS NOT INITIAL.
CONCATENATE lv_prop_name mc_key_separator lv_keyval INTO lv_prop_name.
ELSE.
lv_prop_name = lv_keyval.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT lt_symbols ASSIGNING <symbol>.
ASSIGN <symbol>-value->* TO <value>.
MOVE <value> TO lv_keyval.
CONDENSE lv_keyval.
IF lv_prop_name IS NOT INITIAL.
CONCATENATE lv_prop_name mc_key_separator lv_keyval INTO lv_prop_name.
ELSE.
lv_prop_name = lv_keyval.
ENDIF.
ENDLOOP.
ENDIF.
CONCATENATE LINES OF lt_fields INTO lv_itemval SEPARATED BY `,`.
IF lv_array_opt EQ abap_false.
CONCATENATE `"` lv_prop_name `":{` lv_itemval `}` INTO lv_itemval.
ELSE.
CONCATENATE `"` lv_prop_name `":` lv_itemval `` INTO lv_itemval.
ENDIF.
APPEND lv_itemval TO lt_properties.
ENDLOOP.
CONCATENATE LINES OF lt_properties INTO r_json SEPARATED BY `,`.
CONCATENATE `{` r_json `}` INTO r_json.
ELSE.
LOOP AT <table> INTO <line>.
CLEAR lt_fields.
LOOP AT lt_symbols ASSIGNING <symbol>.
ASSIGN <symbol>-value->* TO <value>.
IF mv_compress IS INITIAL OR <value> IS NOT INITIAL OR <symbol>-compressable EQ abap_false.
IF <symbol>-type->kind EQ cl_abap_typedescr=>kind_elem.
lo_elem_descr ?= <symbol>-type.
dump_type <value> lo_elem_descr lv_itemval.
ELSE.
lv_itemval = dump_int( data = <value> type_descr = <symbol>-type ).
ENDIF.
CONCATENATE <symbol>-header lv_itemval INTO lv_itemval.
APPEND lv_itemval TO lt_fields.
ENDIF.
ENDLOOP.
CONCATENATE LINES OF lt_fields INTO lv_itemval SEPARATED BY `,`.
CONCATENATE `{` lv_itemval `}` INTO lv_itemval.
APPEND lv_itemval TO lt_properties.
ENDLOOP.
CONCATENATE LINES OF lt_properties INTO r_json SEPARATED BY `,`.
CONCATENATE `[` r_json `]` INTO r_json.
ENDIF.
ELSE.
LOOP AT <table> ASSIGNING <value>.
lv_itemval = dump_int( data = <value> type_descr = lo_typedesc ).
APPEND lv_itemval TO lt_properties.
ENDLOOP.
CONCATENATE LINES OF lt_properties INTO r_json SEPARATED BY `,`.
CONCATENATE `[` r_json `]` INTO r_json.
ENDIF.
ENDCASE.
ENDMETHOD. "dump
METHOD DUMP_SYMBOLS.
DATA: lv_properties TYPE STANDARD TABLE OF string,
lv_itemval TYPE string.
FIELD-SYMBOLS: <value> TYPE ANY,
<symbol> LIKE LINE OF it_symbols.
LOOP AT it_symbols ASSIGNING <symbol>.
ASSIGN <symbol>-value->* TO <value>.
IF mv_compress IS INITIAL OR <value> IS NOT INITIAL OR <symbol>-compressable EQ abap_false.
lv_itemval = dump_int( data = <value> type_descr = <symbol>-type ).
CONCATENATE <symbol>-header lv_itemval INTO lv_itemval.
APPEND lv_itemval TO lv_properties.
ENDIF.
ENDLOOP.
CONCATENATE LINES OF lv_properties INTO r_json SEPARATED BY `,`.
CONCATENATE `{` r_json `}` INTO r_json.
ENDMETHOD.
METHOD DUMP_TYPE.
CASE type_descr->type_kind.
WHEN cl_abap_typedescr=>typekind_float OR cl_abap_typedescr=>typekind_int OR cl_abap_typedescr=>typekind_int1 OR
cl_abap_typedescr=>typekind_int2 OR cl_abap_typedescr=>typekind_packed OR `8`. " TYPEKIND_INT8 -> '8' only from 7.40
IF type_descr->type_kind EQ cl_abap_typedescr=>typekind_packed AND mv_ts_as_iso8601 EQ c_bool-true AND type_descr->absolute_name CP `\TYPE=TIMESTAMP*`.
IF data IS INITIAL.
r_json = `""`.
ELSE.
MOVE data TO r_json.
IF type_descr->absolute_name EQ `\TYPE=TIMESTAMP`.
CONCATENATE `"` r_json(4) `-` r_json+4(2) `-` r_json+6(2) `T` r_json+8(2) `:` r_json+10(2) `:` r_json+12(2) `.0000000Z"` INTO r_json.
ELSEIF type_descr->absolute_name EQ `\TYPE=TIMESTAMPL`.
CONCATENATE `"` r_json(4) `-` r_json+4(2) `-` r_json+6(2) `T` r_json+8(2) `:` r_json+10(2) `:` r_json+12(2) `.` r_json+15(7) `Z"` INTO r_json.
ENDIF.
ENDIF.
ELSEIF data IS INITIAL.
r_json = `0`.
ELSE.
MOVE data TO r_json.
IF data LT 0.
IF type_descr->type_kind <> cl_abap_typedescr=>typekind_float. "float: sign is already at the beginning
SHIFT r_json RIGHT CIRCULAR.
ENDIF.
ELSE.
CONDENSE r_json.
ENDIF.
ENDIF.
WHEN cl_abap_typedescr=>typekind_num.
IF mv_numc_as_string EQ abap_true.
IF data IS INITIAL.
r_json = `""`.
ELSE.
CONCATENATE `"` data `"` INTO r_json.
ENDIF.
ELSE.
IF data IS INITIAL.
r_json = `0`.
ELSE.
MOVE data TO r_json.
SHIFT r_json LEFT DELETING LEADING ` 0`.
ENDIF.
ENDIF.
WHEN cl_abap_typedescr=>typekind_string OR cl_abap_typedescr=>typekind_csequence OR cl_abap_typedescr=>typekind_clike.
IF data IS INITIAL.
r_json = `""`.
ELSEIF type_descr->absolute_name EQ mc_json_type.
r_json = data.
ELSE.
r_json = escape( data ).
CONCATENATE `"` r_json `"` INTO r_json.
ENDIF.
WHEN cl_abap_typedescr=>typekind_xstring OR cl_abap_typedescr=>typekind_hex.
IF data IS INITIAL.
r_json = `""`.
ELSE.
r_json = xstring_to_string( data ).
r_json = escape( r_json ).
CONCATENATE `"` r_json `"` INTO r_json.
ENDIF.
WHEN cl_abap_typedescr=>typekind_char.
IF type_descr->output_length EQ 1 AND mc_bool_types CS type_descr->absolute_name.
IF data EQ c_bool-true.
r_json = `true`. "#EC NOTEXT
ELSEIF mc_bool_3state CS type_descr->absolute_name AND data IS INITIAL.
r_json = `null`. "#EC NOTEXT
ELSE.
r_json = `false`. "#EC NOTEXT
ENDIF.
ELSE.
r_json = escape( data ).
CONCATENATE `"` r_json `"` INTO r_json.
ENDIF.
WHEN cl_abap_typedescr=>typekind_date.
CONCATENATE `"` data(4) `-` data+4(2) `-` data+6(2) `"` INTO r_json.
WHEN cl_abap_typedescr=>typekind_time.
CONCATENATE `"` data(2) `:` data+2(2) `:` data+4(2) `"` INTO r_json.
WHEN OTHERS.
IF data IS INITIAL.
r_json = `null`. "#EC NOTEXT
ELSE.
MOVE data TO r_json.
ENDIF.
ENDCASE.
ENDMETHOD. "dump_type
METHOD DUMP_TYPE_EX.
DATA: lo_descr TYPE REF TO cl_abap_elemdescr.
lo_descr ?= cl_abap_typedescr=>describe_by_data( data ).
r_json = dump_type( data = data type_descr = lo_descr ).
ENDMETHOD. "DUMP_TYPE_EX
METHOD EDM_DATETIME_TO_TS.
DATA: lv_ticks TYPE p,
lv_timestamp TYPE timestamp VALUE `19700101000000`.
lv_ticks = ticks.
lv_ticks = lv_ticks / 1000. " in seconds
lv_timestamp = cl_abap_tstmp=>add( tstmp = lv_timestamp secs = lv_ticks ).
IF offset IS NOT INITIAL.
lv_ticks = offset+1.
lv_ticks = lv_ticks * 60. "offset is in minutes
IF offset(1) = '+'.
lv_timestamp = cl_abap_tstmp=>subtractsecs( tstmp = lv_timestamp secs = lv_ticks ).
ELSE.
lv_timestamp = cl_abap_tstmp=>add( tstmp = lv_timestamp secs = lv_ticks ).
ENDIF.
ENDIF.
CASE typekind.
WHEN cl_abap_typedescr=>typekind_time.
r_data = lv_timestamp.
r_data = r_data+8(6).
WHEN cl_abap_typedescr=>typekind_date.
r_data = lv_timestamp.
r_data = r_data(8).
WHEN cl_abap_typedescr=>typekind_packed.
r_data = lv_timestamp.
ENDCASE.
ENDMETHOD.
METHOD ESCAPE.
MOVE in TO out.
REPLACE ALL OCCURRENCES OF `\` IN out WITH `\\`.
REPLACE ALL OCCURRENCES OF `"` IN out WITH `\"`.
ENDMETHOD. "escape
METHOD GENERATE.
DATA: lo_json TYPE REF TO ZUI2_JSON,
lv_json LIKE json.
lv_json = json.
REPLACE ALL OCCURRENCES OF `\r\n` IN lv_json WITH cl_abap_char_utilities=>cr_lf.
REPLACE ALL OCCURRENCES OF `\n` IN lv_json WITH cl_abap_char_utilities=>newline.
REPLACE ALL OCCURRENCES OF `\t` IN lv_json WITH cl_abap_char_utilities=>horizontal_tab.
CREATE OBJECT lo_json
EXPORTING
pretty_name = pretty_name
name_mappings = name_mappings
assoc_arrays = c_bool-true
assoc_arrays_opt = c_bool-true.
TRY .
rr_data = lo_json->generate_int( lv_json ).
CATCH cx_sy_move_cast_error.
ENDTRY.
ENDMETHOD.
METHOD generate_int.
TYPES: BEGIN OF ts_field,
name TYPE string,
value TYPE json,
END OF ts_field.
DATA: length TYPE i,
offset TYPE i.
DATA: lt_json TYPE STANDARD TABLE OF json WITH DEFAULT KEY,
lv_json LIKE LINE OF lt_json,
lv_comp_name TYPE abap_compname,
lt_fields TYPE HASHED TABLE OF ts_field WITH UNIQUE KEY name,
lo_type TYPE REF TO cl_abap_datadescr,
lt_comp TYPE abap_component_tab,
lt_names TYPE HASHED TABLE OF string WITH UNIQUE KEY table_line,
cache LIKE LINE OF mt_name_mappings_ex,
ls_comp LIKE LINE OF lt_comp.
FIELD-SYMBOLS: <data> TYPE any,
<struct> TYPE any,
<field> LIKE LINE OF lt_fields,
<table> TYPE STANDARD TABLE,
<cache> LIKE LINE OF mt_name_mappings_ex.
length = numofchar( json ).
eat_white.
CASE json+offset(1).
WHEN `{`."result must be a structure
restore_type( EXPORTING json = json length = length CHANGING data = lt_fields ).
IF lt_fields IS NOT INITIAL.
ls_comp-type = cl_abap_refdescr=>get_ref_to_data( ).
LOOP AT lt_fields ASSIGNING <field>.
READ TABLE mt_name_mappings_ex WITH TABLE KEY json = <field>-name ASSIGNING <cache>.
IF sy-subrc IS INITIAL.
ls_comp-name = <cache>-abap.
ELSE.
cache-json = ls_comp-name = <field>-name.
TRANSLATE ls_comp-name USING `/_:_~_._-_`. " remove characters not allowed in component names
CASE mv_pretty_name.
WHEN pretty_mode-camel_case OR pretty_mode-extended.
REPLACE ALL OCCURRENCES OF REGEX `([a-z])([A-Z])` IN ls_comp-name WITH `$1_$2`. "#EC NOTEXT
WHEN pretty_mode-case_sensitive.
REPLACE ALL OCCURRENCES OF REGEX `([A-Z])` IN ls_comp-name WITH `_$1`. "#EC NOTEXT
ENDCASE.
TRANSLATE ls_comp-name TO UPPER CASE.
cache-abap = ls_comp-name = lv_comp_name = ls_comp-name. " truncate by allowed field name length
INSERT cache INTO TABLE mt_name_mappings_ex.
ENDIF.
INSERT ls_comp-name INTO TABLE lt_names.
IF sy-subrc IS INITIAL.
APPEND ls_comp TO lt_comp.
ELSE.
DELETE lt_fields WHERE name = <field>-name.
ENDIF.
ENDLOOP.
TRY.
lo_type = cl_abap_structdescr=>create( p_components = lt_comp p_strict = c_bool-false ).
CREATE DATA rr_data TYPE HANDLE lo_type.
ASSIGN rr_data->* TO <struct>.
DATA: l_index TYPE i.
l_index = 0.
LOOP AT lt_fields ASSIGNING <field>.
l_index = l_index + 1.
ASSIGN COMPONENT l_index OF STRUCTURE <struct> TO <data>.
<data> = generate_int( <field>-value ).
ENDLOOP.
CATCH cx_sy_create_data_error cx_sy_struct_creation.
ENDTRY.
ENDIF.
WHEN `[`."result must be a table of ref
restore_type( EXPORTING json = json length = length CHANGING data = lt_json ).
CREATE DATA rr_data TYPE TABLE OF REF TO data.
ASSIGN rr_data->* TO <table>.
LOOP AT lt_json INTO lv_json.
APPEND INITIAL LINE TO <table> ASSIGNING <data>.
<data> = generate_int( lv_json ).
ENDLOOP.
WHEN OTHERS.
IF json+offset(1) EQ `"`.
CREATE DATA rr_data TYPE string.
ELSEIF json+offset(1) CA `-0123456789.`.
IF json+offset CS '.'.
CREATE DATA rr_data TYPE f.
ELSEIF length GT 9.
CREATE DATA rr_data TYPE p LENGTH 16.
ELSE.
CREATE DATA rr_data TYPE i.
ENDIF.
ELSEIF json+offset EQ `true` OR json+offset EQ `false`.
CREATE DATA rr_data TYPE abap_bool.
ENDIF.
IF rr_data IS BOUND.
ASSIGN rr_data->* TO <data>.
restore_type( EXPORTING json = json length = length CHANGING data = <data> ).
ENDIF.
ENDCASE.
ENDMETHOD.
METHOD GENERATE_INT_EX.
DATA: lv_assoc_arrays LIKE mv_assoc_arrays,
lv_assoc_arrays_opt LIKE mv_assoc_arrays_opt,
lv_mark LIKE offset,
lv_match LIKE lv_mark,
lv_json TYPE ZUI2_JSON=>json.
lv_mark = offset.
restore_type( EXPORTING json = json length = length CHANGING offset = offset ).
lv_match = offset - lv_mark.
lv_json = json+lv_mark(lv_match).
lv_assoc_arrays = mv_assoc_arrays.
lv_assoc_arrays_opt = mv_assoc_arrays_opt.
mv_assoc_arrays = abap_true.
mv_assoc_arrays_opt = abap_true.
data = generate_int( lv_json ).
mv_assoc_arrays = lv_assoc_arrays.
mv_assoc_arrays_opt = lv_assoc_arrays_opt.
ENDMETHOD.
METHOD GET_FIELDS.
DATA: lt_symbols TYPE t_t_symbol,
lv_name TYPE char128,
ls_field LIKE LINE OF rt_fields.
FIELD-SYMBOLS: <sym> LIKE LINE OF lt_symbols,
<cache> LIKE LINE OF mt_name_mappings.
lt_symbols = get_symbols( type_descr = type_descr data = data object = object include_aliases = abap_true ).
LOOP AT lt_symbols ASSIGNING <sym> WHERE read_only EQ abap_false.
ls_field-name = <sym>-name.
ls_field-type = <sym>-type.
ls_field-value = <sym>-value.
" insert as UPPER CASE
INSERT ls_field INTO TABLE rt_fields.
" insert as lower case
TRANSLATE ls_field-name TO LOWER CASE.
INSERT ls_field INTO TABLE rt_fields.
" as pretty printed
IF mv_pretty_name NE pretty_mode-none AND mv_pretty_name NE pretty_mode-low_case.
format_name <sym>-name mv_pretty_name ls_field-name.
INSERT ls_field INTO TABLE rt_fields.
" let us check for not well formed canelCase to be compatible with old logic
lv_name = ls_field-name.
TRANSLATE lv_name(1) TO UPPER CASE.
ls_field-name = lv_name.
INSERT ls_field INTO TABLE rt_fields.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD GET_SYMBOLS.
DATA: comp_tab TYPE cl_abap_structdescr=>component_table,
symb_tab LIKE result,
symb LIKE LINE OF symb_tab,
class_descr TYPE REF TO cl_abap_classdescr,
struct_descr TYPE REF TO cl_abap_structdescr.
FIELD-SYMBOLS: <comp> LIKE LINE OF comp_tab,
<attr> LIKE LINE OF cl_abap_objectdescr=>attributes,
<cache> LIKE LINE OF mt_name_mappings,
<field> TYPE any.
IF type_descr->kind EQ cl_abap_typedescr=>kind_struct.
struct_descr ?= type_descr.
comp_tab = struct_descr->get_components( ).
LOOP AT comp_tab ASSIGNING <comp>.
IF <comp>-name IS NOT INITIAL AND
( <comp>-as_include EQ abap_false OR include_aliases EQ abap_true OR mv_expand_includes EQ abap_false ).
symb-name = <comp>-name.
symb-type = <comp>-type.
IF data IS BOUND.
is_compressable symb-type symb-name symb-compressable.
ASSIGN data->(symb-name) TO <field>.
GET REFERENCE OF <field> INTO symb-value.
format_name symb-name mv_pretty_name symb-header.
CONCATENATE `"` symb-header `":` INTO symb-header.
ENDIF.
APPEND symb TO result.
ENDIF.
IF <comp>-as_include EQ abap_true AND mv_expand_includes EQ abap_true.
struct_descr ?= <comp>-type.
symb_tab = get_symbols( type_descr = struct_descr include_aliases = include_aliases ).
LOOP AT symb_tab INTO symb.
CONCATENATE symb-name <comp>-suffix INTO symb-name.
IF data IS BOUND.
is_compressable symb-type symb-name symb-compressable.
ASSIGN data->(symb-name) TO <field>.
GET REFERENCE OF <field> INTO symb-value.
format_name symb-name mv_pretty_name symb-header.
CONCATENATE `"` symb-header `":` INTO symb-header.
ENDIF.
APPEND symb TO result.
ENDLOOP.
ENDIF.
ENDLOOP.
ELSEIF type_descr->type_kind EQ cl_abap_typedescr=>typekind_class.
class_descr ?= type_descr.
LOOP AT class_descr->attributes ASSIGNING <attr> WHERE is_constant IS INITIAL AND alias_for IS INITIAL AND
( is_interface IS INITIAL OR type_kind NE cl_abap_typedescr=>typekind_oref ).
ASSIGN object->(<attr>-name) TO <field>.
CHECK sy-subrc IS INITIAL. " we can only assign to public attributes
symb-name = <attr>-name.
symb-read_only = <attr>-is_read_only.
symb-type = class_descr->get_attribute_type( <attr>-name ).
is_compressable symb-type symb-name symb-compressable.
GET REFERENCE OF <field> INTO symb-value.
format_name symb-name mv_pretty_name symb-header.
CONCATENATE `"` symb-header `":` INTO symb-header.
APPEND symb TO result.
ENDLOOP.
ENDIF.
ENDMETHOD. "GET_SYMBOLS
METHOD IS_COMPRESSABLE.
rv_compress = abap_true.
ENDMETHOD.
METHOD PRETTY_NAME.
DATA: tokens TYPE TABLE OF char128,
cache LIKE LINE OF mt_name_mappings.
FIELD-SYMBOLS: <token> LIKE LINE OF tokens,
<cache> LIKE LINE OF mt_name_mappings.
READ TABLE mt_name_mappings WITH TABLE KEY abap = in ASSIGNING <cache>.
IF sy-subrc IS INITIAL.
out = <cache>-json.
ELSE.
out = in.
REPLACE ALL OCCURRENCES OF `__` IN out WITH `*`.
TRANSLATE out TO LOWER CASE.
TRANSLATE out USING `/_:_~_`.
SPLIT out AT `_` INTO TABLE tokens.
LOOP AT tokens ASSIGNING <token> FROM 2.
TRANSLATE <token>(1) TO UPPER CASE.
ENDLOOP.
CONCATENATE LINES OF tokens INTO out.
REPLACE ALL OCCURRENCES OF `*` IN out WITH `_`.
cache-abap = in.
cache-json = out.
INSERT cache INTO TABLE mt_name_mappings.
INSERT cache INTO TABLE mt_name_mappings_ex.
ENDIF.
ENDMETHOD. "pretty_name
METHOD PRETTY_NAME_EX.
DATA: tokens TYPE TABLE OF char128,
cache LIKE LINE OF mt_name_mappings,
lt_match TYPE match_result_tab.
FIELD-SYMBOLS: <token> LIKE LINE OF tokens,
<cache> LIKE LINE OF mt_name_mappings,
<match> LIKE LINE OF lt_match,
<sub_match> TYPE LINE OF submatch_result_tab.
READ TABLE mt_name_mappings WITH TABLE KEY abap = in ASSIGNING <cache>.
IF sy-subrc IS INITIAL.
out = <cache>-json.
ELSE.
out = in.
TRANSLATE out TO LOWER CASE.
TRANSLATE out USING `/_:_~_`.
REPLACE ALL OCCURRENCES OF `__e__` IN out WITH `!`.
REPLACE ALL OCCURRENCES OF `__n__` IN out WITH `#`.
REPLACE ALL OCCURRENCES OF `__d__` IN out WITH `$`.
REPLACE ALL OCCURRENCES OF `__p__` IN out WITH `%`.
REPLACE ALL OCCURRENCES OF `__m__` IN out WITH `&`.
REPLACE ALL OCCURRENCES OF `__s__` IN out WITH `*`.
REPLACE ALL OCCURRENCES OF `__h__` IN out WITH `-`.
REPLACE ALL OCCURRENCES OF `__t__` IN out WITH `~`.
REPLACE ALL OCCURRENCES OF `__l__` IN out WITH `/`.
REPLACE ALL OCCURRENCES OF `__c__` IN out WITH `:`.
REPLACE ALL OCCURRENCES OF `__v__` IN out WITH `|`.
REPLACE ALL OCCURRENCES OF `__a__` IN out WITH `@`.
REPLACE ALL OCCURRENCES OF `__o__` IN out WITH `.`.
REPLACE ALL OCCURRENCES OF `___` IN out WITH `.`.
REPLACE ALL OCCURRENCES OF `__` IN out WITH `"`.
SPLIT out AT `_` INTO TABLE tokens.
LOOP AT tokens ASSIGNING <token> FROM 2.
TRANSLATE <token>(1) TO UPPER CASE.
ENDLOOP.
CONCATENATE LINES OF tokens INTO out.
REPLACE ALL OCCURRENCES OF `"` IN out WITH `_`.
cache-abap = in.
cache-json = out.
INSERT cache INTO TABLE mt_name_mappings.
INSERT cache INTO TABLE mt_name_mappings_ex.
ENDIF.
ENDMETHOD. "pretty_name_ex
METHOD RAW_TO_STRING.
DATA: lv_output_length TYPE i,
lt_binary_tab TYPE STANDARD TABLE OF sdokcntbin.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = iv_xstring
IMPORTING
output_length = lv_output_length
TABLES
binary_tab = lt_binary_tab.
CALL FUNCTION 'SCMS_BINARY_TO_STRING'
EXPORTING
input_length = lv_output_length
encoding = iv_encoding
IMPORTING
text_buffer = rv_string
output_length = lv_output_length
TABLES
binary_tab = lt_binary_tab.
ENDMETHOD.
METHOD RESTORE.
DATA: mark LIKE offset,
match LIKE offset,
pos LIKE offset,
unescape TYPE abap_bool,
ref_descr TYPE REF TO cl_abap_refdescr,
data_descr TYPE REF TO cl_abap_datadescr,
data_ref TYPE REF TO data,
object_ref TYPE REF TO object,
fields LIKE field_cache,
name_json TYPE string.
FIELD-SYMBOLS: <value> TYPE ANY,
<field_cache> LIKE LINE OF field_cache.
fields = field_cache.
IF type_descr IS NOT INITIAL AND type_descr->kind EQ type_descr->kind_ref.
ref_descr ?= type_descr.
type_descr = ref_descr->get_referenced_type( ).
IF ref_descr->type_kind EQ ref_descr->typekind_oref.
IF data IS INITIAL.
" can fire an exception, if type is abstract or constructor protected
CREATE OBJECT data TYPE (type_descr->absolute_name).
ENDIF.
object_ref ?= data.
fields = get_fields( type_descr = type_descr object = object_ref ).
ELSEIF ref_descr->type_kind EQ ref_descr->typekind_dref.
IF data IS INITIAL.
data_descr ?= type_descr.
CREATE DATA data TYPE HANDLE data_descr.
ENDIF.
data_ref ?= data.
ASSIGN data_ref->* TO <value>.
fields = get_fields( type_descr = type_descr data = data_ref ).
restore( EXPORTING json = json length = length type_descr = type_descr field_cache = fields
CHANGING data = <value> offset = offset ).
RETURN.
ENDIF.
ENDIF.
IF fields IS INITIAL AND type_descr IS NOT INITIAL AND type_descr->kind EQ type_descr->kind_struct.
GET REFERENCE OF data INTO data_ref.
fields = get_fields( type_descr = type_descr data = data_ref ).
ENDIF.
eat_white.
eat_char `{`.
eat_white.
WHILE offset < length AND json+offset(1) NE `}`.
eat_white.
eat_string name_json.
eat_white.
eat_char `:`.
eat_white.
READ TABLE fields WITH TABLE KEY name = name_json ASSIGNING <field_cache>.
IF sy-subrc IS NOT INITIAL.
TRANSLATE name_json TO UPPER CASE.
READ TABLE fields WITH TABLE KEY name = name_json ASSIGNING <field_cache>.
ENDIF.
IF sy-subrc IS INITIAL.
ASSIGN <field_cache>-value->* TO <value>.
restore_type( EXPORTING json = json length = length type_descr = <field_cache>-type CHANGING data = <value> offset = offset ).
ELSE.
restore_type( EXPORTING json = json length = length CHANGING offset = offset ).
ENDIF.
eat_white.
IF offset < length AND json+offset(1) NE `}`.
eat_char `,`.
ELSE.
EXIT.
ENDIF.
ENDWHILE.
eat_char `}`.
ENDMETHOD. "restore
METHOD RESTORE_TYPE.
DATA: mark LIKE offset,
match LIKE offset,
unescape TYPE abap_bool,
sdummy TYPE string, "#EC NEEDED
lr_idummy TYPE REF TO i, "#EC NEEDED
lr_bdummy TYPE REF TO bool, "#EC NEEDED
lr_sdummy TYPE REF TO string, "#EC NEEDED
pos LIKE offset,
line TYPE REF TO data,
key_ref TYPE REF TO data,
data_ref TYPE REF TO data,
key_name TYPE string,
key_value TYPE string,
lt_fields LIKE field_cache,
lt_symbols TYPE t_t_symbol,
lv_ticks TYPE string,
lv_offset TYPE string,
lo_exp TYPE REF TO cx_root,
elem_descr TYPE REF TO cl_abap_elemdescr,
table_descr TYPE REF TO cl_abap_tabledescr,
data_descr TYPE REF TO cl_abap_datadescr.
FIELD-SYMBOLS: <line> TYPE any,
<value> TYPE any,
<data> TYPE data,
<field> LIKE LINE OF lt_fields,
<table> TYPE ANY TABLE,
<value_sym> LIKE LINE OF lt_symbols.
IF type_descr IS INITIAL AND data IS SUPPLIED.
type_descr = cl_abap_typedescr=>describe_by_data( data ).
ENDIF.
eat_white.
TRY .
IF type_descr IS NOT INITIAL AND type_descr->absolute_name EQ mc_json_type.
" skip deserialization
mark = offset.
restore_type( EXPORTING json = json length = length CHANGING offset = offset ).
match = offset - mark.
data = json+mark(match).
ENDIF.
CASE json+offset(1).
WHEN `{`. " object
IF type_descr IS NOT INITIAL.
IF mv_assoc_arrays EQ c_bool-true AND type_descr->kind EQ cl_abap_typedescr=>kind_table.
table_descr ?= type_descr.
data_descr = table_descr->get_table_line_type( ).
IF table_descr->has_unique_key IS NOT INITIAL.
eat_char `{`.
eat_white.
IF json+offset(1) NE `}`.
ASSIGN data TO <table>.
CLEAR <table>.
CREATE DATA line LIKE LINE OF <table>.
ASSIGN line->* TO <line>.
lt_fields = get_fields( type_descr = data_descr data = line ).
IF table_descr->key_defkind EQ table_descr->keydefkind_user AND LINES( table_descr->key ) EQ 1.
READ TABLE table_descr->key INDEX 1 INTO key_name.
READ TABLE lt_fields WITH TABLE KEY name = key_name ASSIGNING <field>.
key_ref = <field>-value.
IF mv_assoc_arrays_opt EQ c_bool-true.
lt_symbols = get_symbols( type_descr = data_descr data = line ).
DELETE lt_symbols WHERE name EQ key_name.
IF LINES( lt_symbols ) EQ 1.
READ TABLE lt_symbols INDEX 1 ASSIGNING <value_sym>.
ENDIF.
ENDIF.
ENDIF.
WHILE offset < length AND json+offset(1) NE `}`.
CLEAR <line>.
eat_white.
eat_string key_value.
eat_white.
eat_char `:`.
eat_white.
IF <value_sym> IS ASSIGNED.
ASSIGN <value_sym>-value->* TO <value>.
restore_type( EXPORTING json = json length = length type_descr = <value_sym>-type
CHANGING data = <value> offset = offset ).
ELSE.
restore_type( EXPORTING json = json length = length type_descr = data_descr field_cache = lt_fields
CHANGING data = <line> offset = offset ).
ENDIF.
IF table_descr->key_defkind EQ table_descr->keydefkind_user.
IF key_ref IS BOUND.
ASSIGN key_ref->* TO <value>.
IF <value> IS INITIAL.
MOVE key_value TO <value>.
ENDIF.
ENDIF.
ELSEIF <line> IS INITIAL.
MOVE key_value TO <line>.
ENDIF.
INSERT <line> INTO TABLE <table>.
eat_white.
IF offset < length AND json+offset(1) NE `}`.
eat_char `,`.
ELSE.
EXIT.
ENDIF.
ENDWHILE.
ELSE.
CLEAR data.
ENDIF.
eat_char `}`.
ELSE.
restore( EXPORTING json = json length = length CHANGING offset = offset ).
ENDIF.
ELSEIF type_descr->type_kind EQ cl_abap_typedescr=>typekind_dref.
IF data IS INITIAL.
generate_int_ex( EXPORTING json = json length = length CHANGING offset = offset data = data ).
ELSE.
data_ref ?= data.
type_descr = cl_abap_typedescr=>describe_by_data_ref( data_ref ).
ASSIGN data_ref->* TO <data>.
restore_type( EXPORTING json = json length = length type_descr = type_descr CHANGING data = <data> offset = offset ).
ENDIF.
ELSE.
restore( EXPORTING json = json length = length type_descr = type_descr field_cache = field_cache
CHANGING data = data offset = offset ).
ENDIF.
ELSE.
restore( EXPORTING json = json length = length CHANGING offset = offset ).
ENDIF.
WHEN `[`. " array
IF type_descr IS NOT INITIAL AND type_descr->type_kind EQ cl_abap_typedescr=>typekind_dref.
IF data IS INITIAL.
generate_int_ex( EXPORTING json = json length = length CHANGING offset = offset data = data ).
ELSE.
data_ref ?= data.
type_descr = cl_abap_typedescr=>describe_by_data_ref( data_ref ).
ASSIGN data_ref->* TO <data>.
restore_type( EXPORTING json = json length = length type_descr = type_descr CHANGING data = <data> offset = offset ).
ENDIF.
ELSE.
eat_char `[`.
eat_white.
IF json+offset(1) NE `]`.
IF type_descr IS NOT INITIAL AND type_descr->kind EQ cl_abap_typedescr=>kind_table.
table_descr ?= type_descr.
data_descr = table_descr->get_table_line_type( ).
ASSIGN data TO <table>.
CLEAR <table>.
CREATE DATA line LIKE LINE OF <table>.
ASSIGN line->* TO <line>.
lt_fields = get_fields( type_descr = data_descr data = line ).
WHILE offset < length AND json+offset(1) NE `]`.
CLEAR <line>.
restore_type( EXPORTING json = json length = length type_descr = data_descr field_cache = lt_fields
CHANGING data = <line> offset = offset ).
INSERT <line> INTO TABLE <table>.
eat_white.
IF offset < length AND json+offset(1) NE `]`.
eat_char `,`.
ELSE.
EXIT.
ENDIF.
ENDWHILE.
ELSE.
" skip array
WHILE offset < length AND json+offset(1) NE `}`.
eat_white.
restore_type( EXPORTING json = json length = length CHANGING offset = offset ).
eat_white.
IF offset < length AND json+offset(1) NE `]`.
eat_char `,`.
ELSE.
EXIT.
ENDIF.
ENDWHILE.
IF type_descr IS NOT INITIAL.
eat_char `]`.
throw_error.
ENDIF.
ENDIF.
ELSE.
CLEAR data.
ENDIF.
eat_char `]`.
ENDIF.
WHEN `"`. " string
eat_string sdummy.
IF type_descr IS NOT INITIAL.
" unescape string
IF sdummy IS NOT INITIAL.
IF type_descr->kind EQ cl_abap_typedescr=>kind_elem.
elem_descr ?= type_descr.
CASE elem_descr->type_kind.
WHEN cl_abap_typedescr=>typekind_char.
IF elem_descr->output_length EQ 1 AND mc_bool_types CS elem_descr->absolute_name.
IF sdummy(1) CA `XxTt1`.
data = c_bool-true.
ELSE.
data = c_bool-false.
ENDIF.
RETURN.
ENDIF.
WHEN cl_abap_typedescr=>typekind_xstring OR cl_abap_typedescr=>typekind_hex.
string_to_xstring( EXPORTING in = sdummy CHANGING out = data ).
RETURN.
WHEN cl_abap_typedescr=>typekind_date.
" support for ISO8601 => https://en.wikipedia.org/wiki/ISO_8601
REPLACE FIRST OCCURRENCE OF REGEX `^(\d{4})-(\d{2})-(\d{2})` IN sdummy WITH `$1$2$3`
REPLACEMENT LENGTH match. "#EC NOTEXT
IF sy-subrc EQ 0.
sdummy = sdummy(match).
ELSE.
" support for Edm.DateTime => http://www.odata.org/documentation/odata-version-2-0/json-format/
FIND FIRST OCCURRENCE OF REGEX `^\/Date\((-?\d+)([+-]\d{1,4})?\)\/` IN sdummy SUBMATCHES lv_ticks lv_offset IGNORING CASE.
IF sy-subrc EQ 0.
sdummy = edm_datetime_to_ts( ticks = lv_ticks offset = lv_offset typekind = elem_descr->type_kind ).
ELSE.
" support for Edm.Time => https://www.w3.org/TR/xmlschema11-2/#nt-durationRep
REPLACE FIRST OCCURRENCE OF REGEX `^-?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:\.(\d+))?S)?)?` IN sdummy WITH `$1$2$3`
REPLACEMENT LENGTH match. "#EC NOTEXT
IF sy-subrc EQ 0.
sdummy = sdummy(match).
ENDIF.
ENDIF.
ENDIF.
WHEN cl_abap_typedescr=>typekind_time.
" support for ISO8601 => https://en.wikipedia.org/wiki/ISO_8601
REPLACE FIRST OCCURRENCE OF REGEX `^(\d{2}):(\d{2}):(\d{2})` IN sdummy WITH `$1$2$3`
REPLACEMENT LENGTH match. "#EC NOTEXT
IF sy-subrc EQ 0.
sdummy = sdummy(match).
ELSE.
" support for Edm.DateTime => http://www.odata.org/documentation/odata-version-2-0/json-format/
FIND FIRST OCCURRENCE OF REGEX '^\/Date\((-?\d+)([+-]\d{1,4})?\)\/' IN sdummy SUBMATCHES lv_ticks lv_offset IGNORING CASE.
IF sy-subrc EQ 0.
sdummy = edm_datetime_to_ts( ticks = lv_ticks offset = lv_offset typekind = elem_descr->type_kind ).
ELSE.
" support for Edm.Time => https://www.w3.org/TR/xmlschema11-2/#nt-durationRep
REPLACE FIRST OCCURRENCE OF REGEX `^-?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:\.(\d+))?S)?)?` IN sdummy WITH `$4$5$6`
REPLACEMENT LENGTH match. "#EC NOTEXT
IF sy-subrc EQ 0.
sdummy = sdummy(match).
ENDIF.
ENDIF.
ENDIF.
WHEN cl_abap_typedescr=>typekind_packed.
REPLACE FIRST OCCURRENCE OF REGEX `^(\d{4})-?(\d{2})-?(\d{2})T(\d{2}):?(\d{2}):?(\d{2})(?:[\.,](\d{0,7}))?Z?` IN sdummy WITH `$1$2$3$4$5$6.$7`
REPLACEMENT LENGTH match. "#EC NOTEXT
IF sy-subrc EQ 0.
sdummy = sdummy(match).
ELSE.
FIND FIRST OCCURRENCE OF REGEX '^\/Date\((-?\d+)([+-]\d{1,4})?\)\/' IN sdummy SUBMATCHES lv_ticks lv_offset IGNORING CASE.
IF sy-subrc EQ 0.
sdummy = edm_datetime_to_ts( ticks = lv_ticks offset = lv_offset typekind = elem_descr->type_kind ).
ELSE.
" support for Edm.Time => https://www.w3.org/TR/xmlschema11-2/#nt-durationRep
REPLACE FIRST OCCURRENCE OF REGEX `^-?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:\.(\d+))?S)?)?` IN sdummy WITH `$1$2$3$4$5$6.$7`
REPLACEMENT LENGTH match. "#EC NOTEXT
IF sy-subrc EQ 0.
sdummy = sdummy(match).
ENDIF.
ENDIF.
ENDIF.
ENDCASE.
ELSEIF type_descr->type_kind EQ cl_abap_typedescr=>typekind_dref.
CREATE DATA lr_sdummy TYPE string.
MOVE sdummy TO lr_sdummy->*.
data ?= lr_sdummy.
RETURN.
ELSE.
throw_error. " Other wise dumps with OBJECTS_MOVE_NOT_SUPPORTED
ENDIF.
MOVE sdummy TO data.
ELSEIF type_descr->kind EQ cl_abap_typedescr=>kind_elem.
CLEAR data.
ELSE.
throw_error. " Other wise dumps with OBJECTS_MOVE_NOT_SUPPORTED
ENDIF.
ENDIF.
WHEN `-`. " number
IF type_descr IS NOT INITIAL.
IF type_descr->kind EQ type_descr->kind_ref AND type_descr->type_kind EQ cl_abap_typedescr=>typekind_dref.
CREATE DATA lr_idummy TYPE i.
eat_number lr_idummy->*. "#EC NOTEXT
data ?= lr_idummy.
ELSEIF type_descr->kind EQ type_descr->kind_elem.
eat_number data. "#EC NOTEXT
ELSE.
eat_number sdummy. "#EC NOTEXT
throw_error.
ENDIF.
ELSE.
eat_number sdummy. "#EC NOTEXT
ENDIF.
WHEN OTHERS.
FIND FIRST OCCURRENCE OF json+offset(1) IN `0123456789`.
IF sy-subrc IS INITIAL. " number
IF type_descr IS NOT INITIAL.
IF type_descr->kind EQ type_descr->kind_ref AND type_descr->type_kind EQ cl_abap_typedescr=>typekind_dref.
CREATE DATA lr_idummy TYPE i.
eat_number lr_idummy->*. "#EC NOTEXT
data ?= lr_idummy.
ELSEIF type_descr->kind EQ type_descr->kind_elem.
eat_number data. "#EC NOTEXT
ELSE.
eat_number sdummy. "#EC NOTEXT
throw_error.
ENDIF.
ELSE.
eat_number sdummy. "#EC NOTEXT
ENDIF.
ELSE. " true/false/null
IF type_descr IS NOT INITIAL.
IF type_descr->kind EQ type_descr->kind_ref AND type_descr->type_kind EQ cl_abap_typedescr=>typekind_dref.
CREATE DATA lr_bdummy TYPE bool.
eat_bool lr_bdummy->*. "#EC NOTEXT
data ?= lr_bdummy.
ELSEIF type_descr->kind EQ type_descr->kind_elem.
eat_bool data. "#EC NOTEXT
ELSE.
eat_bool sdummy. "#EC NOTEXT
throw_error.
ENDIF.
ELSE.
eat_bool sdummy. "#EC NOTEXT
ENDIF.
ENDIF.
ENDCASE.
CATCH cx_sy_move_cast_error cx_sy_conversion_no_number cx_sy_conversion_overflow INTO lo_exp.
CLEAR data.
IF mv_strict_mode EQ abap_true.
RAISE EXCEPTION TYPE cx_sy_move_cast_error EXPORTING previous = lo_exp.
ENDIF.
ENDTRY.
ENDMETHOD. "restore_type
METHOD SERIALIZE.
" **********************************************************************
"! Usage examples and documentation can be found on SCN:
" http://wiki.scn.sap.com/wiki/display/Snippets/One+more+ABAP+to+JSON+Serializer+and+Deserializer
" ********************************************************************** "
DATA: lo_json TYPE REF TO ZUI2_JSON.
CREATE OBJECT lo_json
EXPORTING
compress = compress
pretty_name = pretty_name
name_mappings = name_mappings
assoc_arrays = assoc_arrays
assoc_arrays_opt = assoc_arrays_opt
expand_includes = expand_includes
numc_as_string = numc_as_string
ts_as_iso8601 = ts_as_iso8601.
r_json = lo_json->serialize_int( name = name data = data type_descr = type_descr ).
ENDMETHOD. "serialize
METHOD SERIALIZE_INT.
" **********************************************************************
"! Usage examples and documentation can be found on SCN:
" http://wiki.scn.sap.com/wiki/display/Snippets/One+more+ABAP+to+JSON+Serializer+and+Deserializer
" ********************************************************************** "
DATA: lo_descr TYPE REF TO cl_abap_typedescr.
IF type_descr IS INITIAL.
lo_descr = cl_abap_typedescr=>describe_by_data( data ).
ELSE.
lo_descr = type_descr.
ENDIF.
r_json = dump_int( data = data type_descr = lo_descr ).
" we do not do escaping of every single string value for white space characters,
" but we do it on top, to replace multiple calls by 3 only, while we do not serialize
" outlined/formatted JSON this shall not produce any harm
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf IN r_json WITH `\r\n`.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN r_json WITH `\n`.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN r_json WITH `\t`.
* REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>form_feed IN r_json WITH `\f`.
* REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>backspace IN r_json WITH `\b`.
IF name IS NOT INITIAL AND ( mv_compress IS INITIAL OR r_json IS NOT INITIAL ).
CONCATENATE `"` name `":` r_json INTO r_json.
ENDIF.
ENDMETHOD. "serialize
METHOD STRING_TO_RAW.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = iv_string
encoding = iv_encoding
IMPORTING
buffer = rv_xstring
EXCEPTIONS
OTHERS = 1.
IF sy-subrc IS NOT INITIAL.
CLEAR rv_xstring.
ENDIF.
ENDMETHOD.
METHOD STRING_TO_XSTRING.
DATA: lv_xstring TYPE xstring.
CALL FUNCTION 'SSFC_BASE64_DECODE'
EXPORTING
b64data = in
IMPORTING
bindata = lv_xstring
EXCEPTIONS
OTHERS = 1.
IF sy-subrc IS INITIAL.
MOVE lv_xstring TO out.
ELSE.
MOVE in TO out.
ENDIF.
ENDMETHOD. "string_to_xstring
METHOD TRIBOOL_TO_BOOL.
IF iv_tribool EQ c_tribool-true.
rv_bool = c_bool-true.
ELSEIF iv_tribool EQ c_tribool-undefined.
rv_bool = abap_undefined. " fall back to abap_undefined
ENDIF.
ENDMETHOD. "TRIBOOL_TO_BOOL
METHOD XSTRING_TO_STRING.
DATA: lv_xstring TYPE xstring.
" let us fix data conversion issues here
lv_xstring = in.
CALL FUNCTION 'SSFC_BASE64_ENCODE'
EXPORTING
bindata = lv_xstring
IMPORTING
b64data = out
EXCEPTIONS
OTHERS = 1.
IF sy-subrc IS NOT INITIAL.
MOVE in TO out.
ENDIF.
ENDMETHOD. "xstring_to_string
ENDCLASS.
| [
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
1168,
10080,
17,
62,
40386,
5550,
20032,
17941,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
1976,
9019,
17,
62,
17752,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
41876,
12,
16402,
3535,
50,
450,
499,
764,
198,
220,
220,
220,
42715,
537,
62,
397,
499,
62,
83,
301,
3149,
5550,
20032,
17941,
17579,
2885,
764,
198,
220,
220,
220,
42715,
43213,
62,
1837,
62,
1102,
9641,
62,
18224,
5550,
20032,
17941,
17579,
2885,
764,
628,
220,
220,
220,
24412,
47,
1546,
33918,
41876,
4731,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1438,
62,
76,
5912,
11,
198,
220,
220,
220,
220,
220,
220,
220,
450,
499,
41876,
450,
499,
62,
5589,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
33918,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1438,
62,
76,
5912,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1438,
62,
76,
39242,
41876,
367,
11211,
1961,
43679,
3963,
1438,
62,
76,
5912,
13315,
4725,
33866,
8924,
35374,
450,
499,
764,
198,
220,
220,
220,
24412,
47,
1546,
20512,
41876,
1149,
16,
764,
198,
220,
220,
220,
24412,
47,
1546,
8433,
970,
41876,
1149,
16,
764,
198,
220,
220,
220,
24412,
47,
1546,
2495,
62,
3672,
62,
14171,
41876,
1149,
16,
764,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
2495,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4844,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1149,
16,
220,
26173,
8924,
7559,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1877,
62,
7442,
220,
220,
220,
220,
220,
220,
41876,
1149,
16,
220,
26173,
8924,
4600,
43,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
41021,
62,
7442,
220,
220,
220,
220,
41876,
1149,
16,
220,
26173,
8924,
4600,
55,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
7083,
220,
220,
220,
220,
220,
220,
41876,
1149,
16,
220,
26173,
8924,
4600,
56,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1149,
16,
220,
26173,
8924,
4600,
52,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
62,
9319,
62,
7442,
220,
41876,
1149,
16,
220,
26173,
8924,
4600,
34,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
1339,
62,
30176,
41876,
1149,
16,
26173,
8924,
705,
50,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
220,
2495,
62,
14171,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2081,
220,
41876,
20512,
220,
26173,
8924,
4600,
55,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
3991,
41876,
20512,
220,
26173,
8924,
7559,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
220,
269,
62,
30388,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
83,
822,
970,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2081,
220,
220,
220,
220,
220,
41876,
8433,
970,
220,
26173,
8924,
269,
62,
30388,
12,
7942,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3991,
220,
220,
220,
220,
41876,
8433,
970,
220,
26173,
8924,
4600,
12,
47671,
198,
220,
220,
220,
220,
220,
220,
220,
28721,
41876,
8433,
970,
220,
26173,
8924,
7559,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
220,
269,
62,
83,
822,
970,
764,
198,
220,
220,
220,
42715,
12,
26947,
38487,
62,
11186,
62,
13200,
41876,
4731,
20832,
12,
1340,
11319,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
36650,
62,
2539,
62,
25512,
1352,
41876,
4731,
26173,
8924,
4600,
12,
63,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
42715,
12,
26947,
36650,
62,
30388,
62,
19199,
41876,
4731,
20832,
12,
1340,
11319,
26173,
8924,
4600,
59,
25216,
12,
16402,
3535,
28,
6242,
2969,
59,
25216,
28,
6242,
2969,
62,
8202,
3535,
59,
25216,
28,
33,
6684,
2538,
1565,
59,
25216,
28,
33,
6684,
2538,
62,
35,
59,
25216,
28,
55,
37,
24639,
63,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
42715,
12,
26947,
36650,
62,
30388,
62,
18,
5219,
41876,
4731,
20832,
12,
1340,
11319,
26173,
8924,
4600,
59,
25216,
28,
33,
6684,
2538,
1565,
63,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
2196,
41876,
1312,
26173,
8924,
718,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
42715,
12,
26947,
36650,
62,
17752,
62,
4906,
41876,
4731,
20832,
12,
1340,
11319,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
1398,
62,
41571,
273,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4731,
62,
1462,
62,
87,
8841,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
259,
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,
26173,
8924,
7,
448,
8,
41876,
597,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
2124,
8841,
62,
1462,
62,
8841,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
259,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
448,
8,
41876,
4731,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
8246,
62,
1462,
62,
8841,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
87,
8841,
220,
220,
220,
220,
220,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
12685,
7656,
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,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_wapa 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_page,
attributes TYPE o2pagattr,
event_handlers TYPE o2pagevh_tabletype,
parameters TYPE o2pagpar_tabletype,
types TYPE rswsourcet,
END OF ty_page.
TYPES: ty_pages_tt TYPE STANDARD TABLE OF ty_page WITH DEFAULT KEY.
CONSTANTS: c_active TYPE so2_version VALUE 'A'.
METHODS:
get_page_content
IMPORTING io_page TYPE REF TO cl_o2_api_pages
RETURNING VALUE(rv_content) TYPE xstring
RAISING zcx_abapgit_exception,
to_page_content
IMPORTING iv_content TYPE xstring
RETURNING VALUE(rt_content) TYPE o2pageline_table,
read_page
IMPORTING is_page TYPE o2pagattr
RETURNING VALUE(rs_page) TYPE ty_page
RAISING zcx_abapgit_exception,
create_new_application
IMPORTING is_attributes TYPE o2applattr
it_nodes TYPE o2applnode_table
it_navgraph TYPE o2applgrap_table
RETURNING VALUE(ro_bsp) TYPE REF TO cl_o2_api_application
RAISING zcx_abapgit_exception,
create_new_page
IMPORTING
is_page_attributes TYPE o2pagattr
RETURNING
VALUE(ro_page) TYPE REF TO cl_o2_api_pages
RAISING
zcx_abapgit_exception,
delete_superfluous_pages
IMPORTING
it_local_pages TYPE o2pagelist
it_remote_pages TYPE ty_pages_tt
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS zcl_abapgit_object_wapa IMPLEMENTATION.
METHOD create_new_application.
DATA: ls_item LIKE ms_item,
lv_objkey TYPE seu_objkey.
cl_o2_api_application=>create_new(
EXPORTING
p_application_data = is_attributes
p_nodes = it_nodes
p_navgraph = it_navgraph
IMPORTING
p_application = ro_bsp
EXCEPTIONS
object_already_existing = 1
object_just_created = 2
not_authorized = 3
undefined_name = 4
author_not_existing = 5
action_cancelled = 6
error_occured = 7
invalid_parameter = 8 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |WAPA - error from create_new: { sy-subrc }| ).
ENDIF.
ro_bsp->save( ).
ro_bsp->set_changeable(
p_changeable = abap_false
p_complete_application = abap_true ).
ls_item-obj_type = 'WAPD'.
ls_item-obj_name = ms_item-obj_name.
zcl_abapgit_objects_activation=>add_item( ls_item ).
lv_objkey = ls_item-obj_name.
* todo, hmm, the WAPD is not added to the worklist during activation
cl_o2_api_application=>activate( lv_objkey ).
ENDMETHOD.
METHOD create_new_page.
cl_o2_api_pages=>create_new_page(
EXPORTING
p_pageattrs = is_page_attributes
IMPORTING
p_page = ro_page
EXCEPTIONS
object_already_exists = 1
invalid_name = 2
error_occured = 3
o2appl_not_existing = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error { sy-subrc } from CL_O2_API_PAGES=>CREATE_NEW_PAGE| ).
ENDIF.
ENDMETHOD.
METHOD delete_superfluous_pages.
DATA: ls_pagekey TYPE o2pagkey.
FIELD-SYMBOLS: <ls_local_page> LIKE LINE OF it_local_pages.
" delete local pages which doesn't exists remotely
LOOP AT it_local_pages ASSIGNING <ls_local_page>.
READ TABLE it_remote_pages WITH KEY attributes-pagekey = <ls_local_page>-pagekey
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
" page exists locally but not remotely -> delete
ls_pagekey-applname = <ls_local_page>-applname.
ls_pagekey-pagekey = <ls_local_page>-pagekey.
cl_o2_page=>delete_page_for_application(
EXPORTING
p_pagekey = ls_pagekey
EXCEPTIONS
object_not_existing = 1
error_occured = 2 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error { sy-subrc } from CL_O2_PAGE=>DELETE_PAGE_FOR_APPLICATION| ).
ENDIF.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD get_page_content.
DATA: lt_content TYPE o2pageline_table,
lv_string TYPE string.
io_page->get_page(
IMPORTING
p_content = lt_content
EXCEPTIONS
invalid_call = 1
page_deleted = 2
OTHERS = 3 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |WAPA - error from get_page_content| ).
ENDIF.
CONCATENATE LINES OF lt_content INTO lv_string SEPARATED BY zif_abapgit_definitions=>c_newline RESPECTING BLANKS.
rv_content = zcl_abapgit_convert=>string_to_xstring_utf8( lv_string ).
ENDMETHOD.
METHOD read_page.
DATA: lv_name TYPE o2applname,
ls_pagekey TYPE o2pagkey,
lv_content TYPE xstring,
lv_extra TYPE string,
lv_ext TYPE string,
lo_page TYPE REF TO cl_o2_api_pages.
lv_name = ms_item-obj_name.
ls_pagekey-applname = lv_name.
ls_pagekey-pagekey = is_page-pagekey.
cl_o2_api_pages=>load(
EXPORTING
p_pagekey = ls_pagekey
IMPORTING
p_page = lo_page ).
lo_page->get_attrs( IMPORTING p_attrs = rs_page-attributes ).
IF rs_page-attributes-pagetype <> so2_controller.
lo_page->get_event_handlers(
IMPORTING
p_ev_handler = rs_page-event_handlers
EXCEPTIONS
page_deleted = 1
invalid_call = 2 ).
ASSERT sy-subrc = 0.
lo_page->get_parameters(
IMPORTING
p_parameters = rs_page-parameters
EXCEPTIONS
page_deleted = 1
invalid_call = 2
OTHERS = 3 ).
ASSERT sy-subrc = 0.
lo_page->get_type_source(
IMPORTING
p_source = rs_page-types
EXCEPTIONS
page_deleted = 1
invalid_call = 2
OTHERS = 3 ).
ASSERT sy-subrc = 0.
lv_content = get_page_content( lo_page ).
SPLIT is_page-pagename AT '.' INTO lv_extra lv_ext.
REPLACE ALL OCCURRENCES OF '/' IN lv_ext WITH '_-'.
REPLACE ALL OCCURRENCES OF '/' IN lv_extra WITH '_-'.
mo_files->add_raw(
iv_extra = lv_extra
iv_ext = lv_ext
iv_data = lv_content ).
CLEAR: rs_page-attributes-implclass.
ENDIF.
CLEAR: rs_page-attributes-author,
rs_page-attributes-createdon,
rs_page-attributes-changedby,
rs_page-attributes-changedon,
rs_page-attributes-changetime,
rs_page-attributes-gendate,
rs_page-attributes-gentime,
rs_page-attributes-devclass.
ENDMETHOD.
METHOD to_page_content.
DATA: lv_string TYPE string.
lv_string = zcl_abapgit_convert=>xstring_to_string_utf8( iv_content ).
SPLIT lv_string AT zif_abapgit_definitions=>c_newline INTO TABLE rt_content.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
DATA: lv_name TYPE o2applname,
lt_pages TYPE STANDARD TABLE OF o2pagdir WITH DEFAULT KEY,
ls_latest LIKE LINE OF lt_pages.
lv_name = ms_item-obj_name.
SELECT * FROM o2pagdir INTO TABLE lt_pages WHERE applname = lv_name
ORDER BY changedon DESCENDING changetime DESCENDING.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
RETURN.
ENDIF.
READ TABLE lt_pages INDEX 1 INTO ls_latest.
ASSERT sy-subrc = 0.
rv_user = ls_latest-changedby.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lv_name TYPE o2applname,
lo_bsp TYPE REF TO cl_o2_api_application,
ls_pagekey TYPE o2pagkey,
lv_object TYPE seu_objkey,
lt_pages TYPE o2pagelist,
lt_local_mimes TYPE o2pagename_table.
FIELD-SYMBOLS: <ls_page> LIKE LINE OF lt_pages,
<ls_local_mime> TYPE o2pagename.
lv_name = ms_item-obj_name.
cl_o2_api_application=>load(
EXPORTING
p_application_name = lv_name
IMPORTING
p_application = lo_bsp
EXCEPTIONS
object_not_existing = 1
permission_failure = 2
error_occured = 3 ).
ASSERT sy-subrc = 0.
lo_bsp->set_changeable(
p_changeable = abap_true
p_complete_application = abap_true ).
cl_o2_api_pages=>get_all_pages(
EXPORTING
p_applname = lv_name
p_version = c_active
IMPORTING
p_pages = lt_pages ).
LOOP AT lt_pages ASSIGNING <ls_page>.
CLEAR ls_pagekey.
ls_pagekey-applname = lv_name.
ls_pagekey-pagekey = <ls_page>-pagekey.
cl_o2_page=>delete_page_for_application(
EXPORTING
p_pagekey = ls_pagekey
EXCEPTIONS
object_not_existing = 1
error_occured = 2 ).
ASSERT sy-subrc = 0.
ENDLOOP.
lo_bsp->get_local_mimes(
IMPORTING
p_local_mimes = lt_local_mimes
EXCEPTIONS
object_invalid = 1
object_deleted = 2
error_occured = 3
OTHERS = 4 ).
LOOP AT lt_local_mimes ASSIGNING <ls_local_mime>.
CLEAR ls_pagekey.
ls_pagekey-applname = <ls_local_mime>-applname.
ls_pagekey-pagekey = <ls_local_mime>-pagekey.
cl_o2_page=>delete_page_for_application(
EXPORTING
p_pagekey = ls_pagekey
EXCEPTIONS
object_not_existing = 1
error_occured = 2 ).
ASSERT sy-subrc = 0.
ENDLOOP.
lo_bsp->delete(
EXCEPTIONS
object_not_empty = 1
object_not_changeable = 2
object_invalid = 3
action_cancelled = 4
permission_failure = 5
error_occured = 6
OTHERS = 7 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |WAPA - error from delete: { sy-subrc }| ).
ENDIF.
* release lock
lv_object = lv_name.
cl_o2_api_application=>call_access_permission(
p_mode = 'FREE'
p_object = lv_object
p_complete_application = abap_true ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: lo_bsp TYPE REF TO cl_o2_api_application,
ls_attributes TYPE o2applattr,
lt_nodes TYPE o2applnode_table,
lt_navgraph TYPE o2applgrap_table,
lv_obj_name TYPE string,
lv_extra TYPE string,
lv_ext TYPE string,
lo_page TYPE REF TO cl_o2_api_pages,
lt_pages_info TYPE ty_pages_tt,
ls_pagekey TYPE o2pagkey,
ls_local_page TYPE ty_page,
lt_remote_content TYPE o2pageline_table,
lt_local_content TYPE o2pageline_table,
lt_local_pages TYPE o2pagelist.
FIELD-SYMBOLS: <ls_remote_page> LIKE LINE OF lt_pages_info.
io_xml->read( EXPORTING iv_name = 'ATTRIBUTES'
CHANGING cg_data = ls_attributes ).
io_xml->read( EXPORTING iv_name = 'NAVGRAPH'
CHANGING cg_data = lt_navgraph ).
io_xml->read( EXPORTING iv_name = 'PAGES'
CHANGING cg_data = lt_pages_info ).
ls_attributes-devclass = iv_package.
cl_o2_api_application=>load(
EXPORTING
p_application_name = ls_attributes-applname " Application Name
IMPORTING
p_application = lo_bsp " Instance Created
EXCEPTIONS
object_not_existing = 1
permission_failure = 2
error_occured = 3
OTHERS = 4 ).
CASE sy-subrc.
WHEN 0.
cl_o2_api_pages=>get_all_pages(
EXPORTING
p_applname = ls_attributes-applname
p_version = c_active
IMPORTING
p_pages = lt_local_pages ).
WHEN 1.
lo_bsp = create_new_application( is_attributes = ls_attributes
it_nodes = lt_nodes
it_navgraph = lt_navgraph ).
WHEN OTHERS.
zcx_abapgit_exception=>raise( |Error { sy-subrc } from CL_O2_API_APPLICATION=>LOAD| ).
ENDCASE.
LOOP AT lt_pages_info ASSIGNING <ls_remote_page>.
ls_pagekey-applname = <ls_remote_page>-attributes-applname.
ls_pagekey-pagekey = <ls_remote_page>-attributes-pagekey.
cl_o2_api_pages=>load(
EXPORTING
p_pagekey = ls_pagekey
IMPORTING
p_page = lo_page
EXCEPTIONS
object_not_existing = 1
version_not_existing = 2
OTHERS = 3 ).
CASE sy-subrc.
WHEN 0.
ls_local_page = read_page( <ls_remote_page>-attributes ).
WHEN 1.
lo_page = create_new_page( <ls_remote_page>-attributes ).
WHEN 2.
" Do nothing...
WHEN OTHERS.
zcx_abapgit_exception=>raise( |Error { sy-subrc } from CL_O2_API_PAGES=>LOAD| ).
ENDCASE.
SPLIT <ls_remote_page>-attributes-pagename AT '.' INTO lv_extra lv_ext.
REPLACE ALL OCCURRENCES OF '/' IN lv_extra WITH '_-'.
REPLACE ALL OCCURRENCES OF '/' IN lv_ext WITH '_-'.
lt_remote_content = to_page_content( mo_files->read_raw( iv_extra = lv_extra
iv_ext = lv_ext ) ).
lt_local_content = to_page_content( get_page_content( lo_page ) ).
IF ls_local_page = <ls_remote_page> AND lt_local_content = lt_remote_content.
" no changes -> nothing to do
CONTINUE.
ENDIF.
IF <ls_remote_page>-attributes-pagetype <> so2_controller.
lo_page->set_page( lt_remote_content ).
lo_page->set_event_handlers( <ls_remote_page>-event_handlers ).
lo_page->set_parameters( <ls_remote_page>-parameters ).
lo_page->set_type_source( <ls_remote_page>-types ).
ENDIF.
lo_page->save( p_with_all_texts = abap_true ).
lv_obj_name = cl_wb_object_type=>get_concatenated_key_from_id(
p_key_component1 = <ls_remote_page>-attributes-applname
p_key_component2 = <ls_remote_page>-attributes-pagekey
p_external_id = 'WG ' ).
zcl_abapgit_objects_activation=>add( iv_type = 'WAPP'
iv_name = lv_obj_name ).
ENDLOOP.
delete_superfluous_pages( it_local_pages = lt_local_pages
it_remote_pages = lt_pages_info ).
zcl_abapgit_sotr_handler=>create_sotr(
iv_package = iv_package
io_xml = io_xml ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_name TYPE o2applname.
lv_name = ms_item-obj_name.
cl_o2_api_application=>load(
EXPORTING
p_application_name = lv_name
EXCEPTIONS
object_not_existing = 1
permission_failure = 2
error_occured = 3 ).
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
" Covered by ZCL_ABAPGIT_OBJECTS=>JUMP
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: lv_name TYPE o2applname,
ls_attributes TYPE o2applattr,
lt_navgraph TYPE o2applgrap_table,
lt_pages TYPE o2pagelist,
lt_pages_info TYPE ty_pages_tt,
lo_bsp TYPE REF TO cl_o2_api_application.
FIELD-SYMBOLS: <ls_page> LIKE LINE OF lt_pages.
lv_name = ms_item-obj_name.
cl_o2_api_application=>load(
EXPORTING
p_application_name = lv_name
IMPORTING
p_application = lo_bsp
EXCEPTIONS
object_not_existing = 1
permission_failure = 2
error_occured = 3 ).
IF sy-subrc <> 0.
RETURN.
ENDIF.
lo_bsp->get_attributes(
EXPORTING
p_version = c_active
IMPORTING
p_attributes = ls_attributes ).
CLEAR: ls_attributes-author,
ls_attributes-createdon,
ls_attributes-changedby,
ls_attributes-changedon,
ls_attributes-devclass.
io_xml->add( iv_name = 'ATTRIBUTES'
ig_data = ls_attributes ).
lo_bsp->get_navgraph(
EXPORTING
p_version = c_active
IMPORTING
p_navgraph = lt_navgraph ).
io_xml->add( iv_name = 'NAVGRAPH'
ig_data = lt_navgraph ).
cl_o2_api_pages=>get_all_pages(
EXPORTING
p_applname = lv_name
p_version = c_active
IMPORTING
p_pages = lt_pages ).
LOOP AT lt_pages ASSIGNING <ls_page>.
APPEND read_page( <ls_page> ) TO lt_pages_info.
ENDLOOP.
io_xml->add( iv_name = 'PAGES'
ig_data = lt_pages_info ).
zcl_abapgit_sotr_handler=>read_sotr(
iv_pgmid = 'LIMU'
iv_object = 'WAPP'
iv_obj_name = ms_item-obj_name
io_xml = io_xml ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
86,
32678,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
7700,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
12608,
220,
220,
220,
220,
41876,
267,
17,
79,
363,
35226,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1785,
62,
4993,
8116,
41876,
267,
17,
7700,
85,
71,
62,
11487,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10007,
220,
220,
220,
220,
41876,
267,
17,
79,
363,
1845,
62,
11487,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3858,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
374,
2032,
82,
454,
66,
316,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
7700,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
31126,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
7700,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
5275,
41876,
523,
17,
62,
9641,
26173,
8924,
705,
32,
4458,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
7700,
62,
11299,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33245,
62,
7700,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
78,
17,
62,
15042,
62,
31126,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
11299,
8,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
284,
62,
7700,
62,
11299,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
11299,
220,
220,
220,
220,
220,
220,
220,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
11299,
8,
41876,
267,
17,
79,
363,
4470,
62,
11487,
11,
198,
220,
220,
220,
220,
220,
1100,
62,
7700,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
318,
62,
7700,
220,
220,
220,
220,
220,
220,
220,
41876,
267,
17,
79,
363,
35226,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
7700,
8,
41876,
1259,
62,
7700,
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,
2251,
62,
3605,
62,
31438,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
318,
62,
1078,
7657,
41876,
267,
17,
1324,
75,
35226,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
77,
4147,
220,
220,
220,
220,
220,
41876,
267,
17,
1324,
75,
17440,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
28341,
34960,
220,
220,
41876,
267,
17,
1324,
75,
70,
2416,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
24145,
8,
41876,
4526,
37,
5390,
537,
62,
78,
17,
62,
15042,
62,
31438,
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,
2251,
62,
3605,
62,
7700,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
7700,
62,
1078,
7657,
41876,
267,
17,
79,
363,
35226,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
7700,
8,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
78,
17,
62,
15042,
62,
31126,
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,
198,
220,
220,
220,
220,
220,
12233,
62,
16668,
35522,
516,
62,
31126,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
12001,
62,
31126,
220,
41876,
267,
17,
79,
363,
46331,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
47960,
62,
31126,
41876,
1259,
62,
31126,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
86,
32678,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2251,
62,
3605,
62,
31438,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
9186,
220,
220,
34178,
13845,
62,
9186,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
26801,
2539,
41876,
384,
84,
62,
26801,
2539,
13,
628,
220,
220,
220,
537,
62,
78,
17,
62,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_aoc_scan DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
CONSTANTS: BEGIN OF gc_token,
comment TYPE c LENGTH 1 VALUE 'C',
identifier TYPE c LENGTH 1 VALUE 'I',
list TYPE c LENGTH 1 VALUE 'L',
literal TYPE c LENGTH 1 VALUE 'S',
pragma TYPE c LENGTH 1 VALUE 'P',
END OF gc_token.
CONSTANTS: BEGIN OF gc_statement,
comment TYPE c LENGTH 1 VALUE 'P',
comment_in_stmnt TYPE c LENGTH 1 VALUE 'S',
compute_direct TYPE c LENGTH 1 VALUE 'C',
empty TYPE c LENGTH 1 VALUE 'N',
macro_call TYPE c LENGTH 1 VALUE 'D',
macro_definition TYPE c LENGTH 1 VALUE 'M',
method_direct TYPE c LENGTH 1 VALUE 'A',
native_sql TYPE c LENGTH 1 VALUE 'E',
pragma TYPE c LENGTH 1 VALUE 'G',
standard TYPE c LENGTH 1 VALUE 'K',
END OF gc_statement.
CONSTANTS: BEGIN OF gc_structure,
condition TYPE c LENGTH 1 VALUE 'C',
routine TYPE c LENGTH 1 VALUE 'R',
sequence TYPE c LENGTH 1 VALUE 'S',
END OF gc_structure.
CONSTANTS: BEGIN OF gc_structure_statement,
case TYPE c LENGTH 1 VALUE 'c',
catch TYPE c LENGTH 1 VALUE '+',
cleanup TYPE c LENGTH 1 VALUE '-',
do TYPE c LENGTH 1 VALUE 'D',
else TYPE c LENGTH 1 VALUE 'e',
elseif TYPE c LENGTH 1 VALUE 'f',
form TYPE c LENGTH 1 VALUE 'O',
function TYPE c LENGTH 1 VALUE 'U',
if TYPE c LENGTH 1 VALUE 'i',
loop TYPE c LENGTH 1 VALUE 'L',
method TYPE c LENGTH 1 VALUE 'H',
module TYPE c LENGTH 1 VALUE 'M',
select TYPE c LENGTH 1 VALUE 'S',
try TYPE c LENGTH 1 VALUE '_',
when TYPE c LENGTH 1 VALUE 'w',
while TYPE c LENGTH 1 VALUE 'W',
END OF gc_structure_statement.
CONSTANTS: BEGIN OF gc_level,
macro_define TYPE c LENGTH 1 VALUE 'D',
macro_trmac TYPE c LENGTH 1 VALUE 'R',
program TYPE c LENGTH 1 VALUE 'P',
END OF gc_level.
TYPES:
BEGIN OF ty_position,
row TYPE token_row,
col TYPE token_col,
END OF ty_position .
TYPES:
BEGIN OF ty_statement,
str TYPE string,
start TYPE ty_position,
end TYPE ty_position,
include TYPE programm,
level TYPE stmnt_levl,
count TYPE i,
terminator TYPE stmnt_term,
index TYPE i,
END OF ty_statement .
TYPES:
ty_statements TYPE STANDARD TABLE OF ty_statement WITH DEFAULT KEY .
TYPES:
ty_structures_tt TYPE STANDARD TABLE OF sstruc WITH NON-UNIQUE DEFAULT KEY .
DATA tokens TYPE stokesx_tab READ-ONLY .
DATA statements TYPE sstmnt_tab READ-ONLY .
DATA levels TYPE slevel_tab READ-ONLY .
DATA structures TYPE ty_structures_tt READ-ONLY .
CLASS-METHODS create_from_ref
IMPORTING
!io_ref TYPE REF TO object
RETURNING
VALUE(ro_scan) TYPE REF TO zcl_aoc_scan .
METHODS build_statements
IMPORTING
!iv_literals TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(rt_statements) TYPE ty_statements .
METHODS constructor
IMPORTING
!it_tokens TYPE stokesx_tab
!it_statements TYPE sstmnt_tab
!it_levels TYPE slevel_tab
!it_structures TYPE ty_structures_tt .
METHODS get_include
IMPORTING
!iv_level TYPE i
RETURNING
VALUE(rv_program) TYPE program .
METHODS statement_keyword
IMPORTING
!iv_number TYPE stmnt_nr
RETURNING
VALUE(rv_result) TYPE string .
METHODS statement_row
IMPORTING
!iv_number TYPE stmnt_nr
RETURNING
VALUE(rv_result) TYPE token_row .
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-METHODS token_position
IMPORTING
!is_token TYPE stokesx
RETURNING
VALUE(rs_position) TYPE ty_position .
ENDCLASS.
CLASS ZCL_AOC_SCAN IMPLEMENTATION.
METHOD build_statements.
DATA: lv_str TYPE string,
ls_start TYPE ty_position,
ls_end TYPE ty_position,
lt_tokens LIKE tokens,
lv_index TYPE i,
lv_count TYPE i.
FIELD-SYMBOLS: <ls_statement> LIKE LINE OF statements,
<ls_token> LIKE LINE OF tokens,
<ls_add> LIKE LINE OF rt_statements.
lt_tokens = tokens.
IF iv_literals = abap_true.
LOOP AT lt_tokens ASSIGNING <ls_token> WHERE type = gc_token-literal.
<ls_token>-str = 'STR'.
ENDLOOP.
ENDIF.
LOOP AT statements ASSIGNING <ls_statement>
WHERE type <> gc_statement-empty
AND type <> gc_statement-comment
AND type <> gc_statement-comment_in_stmnt
AND type <> gc_statement-pragma.
lv_index = sy-tabix.
CLEAR lv_str.
lv_count = 0.
LOOP AT lt_tokens ASSIGNING <ls_token>
FROM <ls_statement>-from TO <ls_statement>-to.
IF lv_str IS INITIAL.
lv_str = <ls_token>-str.
ls_start = token_position( <ls_token> ).
ELSE.
CONCATENATE lv_str <ls_token>-str INTO lv_str SEPARATED BY space.
ENDIF.
lv_count = lv_count + 1.
ls_end = token_position( <ls_token> ).
ENDLOOP.
IF sy-subrc = 0.
APPEND INITIAL LINE TO rt_statements ASSIGNING <ls_add>.
<ls_add>-str = lv_str.
<ls_add>-include = get_include( <ls_statement>-level ).
<ls_add>-level = <ls_statement>-level.
<ls_add>-start = ls_start.
<ls_add>-end = ls_end.
<ls_add>-count = lv_count.
<ls_add>-index = lv_index.
<ls_add>-terminator = <ls_statement>-terminator.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD constructor.
tokens = it_tokens.
statements = it_statements.
levels = it_levels.
structures = it_structures.
ENDMETHOD.
METHOD create_from_ref.
FIELD-SYMBOLS: <lt_tokens> TYPE stokesx_tab,
<lt_statements> TYPE sstmnt_tab,
<lt_levels> TYPE slevel_tab,
<lt_structures> TYPE ty_structures_tt.
ASSIGN io_ref->('TOKENS') TO <lt_tokens>.
ASSERT sy-subrc = 0.
ASSIGN io_ref->('STATEMENTS') TO <lt_statements>.
ASSERT sy-subrc = 0.
ASSIGN io_ref->('LEVELS') TO <lt_levels>.
ASSERT sy-subrc = 0.
ASSIGN io_ref->('STRUCTURES') TO <lt_structures>.
ASSERT sy-subrc = 0.
CREATE OBJECT ro_scan
EXPORTING
it_tokens = <lt_tokens>
it_statements = <lt_statements>
it_levels = <lt_levels>
it_structures = <lt_structures>.
ENDMETHOD.
METHOD get_include.
DATA: lv_level TYPE i,
ls_level LIKE LINE OF levels.
CONSTANTS lc_program TYPE c LENGTH 1 VALUE 'P'.
IF iv_level = 0.
* in case INCLUDE doesnt exist in the system
RETURN.
ENDIF.
lv_level = iv_level.
DO.
READ TABLE levels INDEX lv_level INTO ls_level.
IF ls_level-type = lc_program.
rv_program = ls_level-name.
RETURN.
ENDIF.
lv_level = ls_level-level.
ENDDO.
ENDMETHOD.
METHOD statement_keyword.
FIELD-SYMBOLS: <ls_statement> LIKE LINE OF statements,
<ls_token> LIKE LINE OF tokens.
READ TABLE statements ASSIGNING <ls_statement> INDEX iv_number.
ASSERT sy-subrc = 0.
IF <ls_statement>-type = gc_statement-compute_direct.
rv_result = 'COMPUTE'.
RETURN.
ENDIF.
IF <ls_statement>-from <= <ls_statement>-to.
READ TABLE tokens ASSIGNING <ls_token> INDEX <ls_statement>-from.
ASSERT sy-subrc = 0.
rv_result = <ls_token>-str.
ENDIF.
ENDMETHOD.
METHOD statement_row.
FIELD-SYMBOLS: <ls_statement> LIKE LINE OF statements,
<ls_token> LIKE LINE OF tokens.
READ TABLE statements ASSIGNING <ls_statement> INDEX iv_number.
ASSERT sy-subrc = 0.
READ TABLE tokens ASSIGNING <ls_token> INDEX <ls_statement>-from.
ASSERT sy-subrc = 0.
rv_result = <ls_token>-row.
ENDMETHOD.
METHOD token_position.
rs_position-col = is_token-col.
rs_position-row = is_token-row.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
64,
420,
62,
35836,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
347,
43312,
3963,
308,
66,
62,
30001,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2912,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
34,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27421,
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,
220,
220,
1351,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
43,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18875,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
50,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23864,
2611,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
47,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
308,
66,
62,
30001,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
347,
43312,
3963,
308,
66,
62,
26090,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2912,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
47,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2912,
62,
259,
62,
301,
76,
429,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
50,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24061,
62,
12942,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
34,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6565,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
45,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15021,
62,
13345,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
35,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
15021,
62,
46758,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
44,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
62,
12942,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
32,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6868,
62,
25410,
220,
220,
220,
220,
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,
220,
220,
220,
220,
23864,
2611,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
38,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3210,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
42,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
308,
66,
62,
26090,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
347,
43312,
3963,
308,
66,
62,
301,
5620,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4006,
41876,
269,
406,
49494,
352,
26173,
8924,
220,
705,
34,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8027,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
220,
705,
49,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8379,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
220,
705,
50,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
308,
66,
62,
301,
5620,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
347,
43312,
3963,
308,
66,
62,
301,
5620,
62,
26090,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1339,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
66,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4929,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
10,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27425,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
12,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
466,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
35,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
68,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2073,
361,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
69,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1296,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
46,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2163,
41876,
269,
406,
49494,
352,
26173,
8924,
705,
52,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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