content
stringlengths 4
1.04M
| input_ids
sequencelengths 2
1.02k
| attention_mask
sequencelengths 2
1.02k
|
---|---|---|
CLASS cx_o2_xslt_error DEFINITION PUBLIC INHERITING FROM cx_static_check.
ENDCLASS.
CLASS cx_o2_xslt_error IMPLEMENTATION.
ENDCLASS.
| [
31631,
43213,
62,
78,
17,
62,
34223,
2528,
62,
18224,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
43213,
62,
78,
17,
62,
34223,
2528,
62,
18224,
30023,
2538,
10979,
6234,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_check_number_interfaces DEFINITION
PUBLIC
INHERITING FROM y_check_base
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
PROTECTED SECTION.
METHODS execute_check REDEFINITION.
METHODS inspect_tokens REDEFINITION.
PRIVATE SECTION.
DATA interface_counter TYPE i VALUE 0.
METHODS checkif_error
IMPORTING index TYPE i
statement TYPE sstmnt.
ENDCLASS.
CLASS Y_CHECK_NUMBER_INTERFACES IMPLEMENTATION.
METHOD checkif_error.
DATA(check_configuration) = detect_check_configuration( error_count = interface_counter
statement = statement ).
IF check_configuration IS INITIAL.
RETURN.
ENDIF.
raise_error( statement_level = statement-level
statement_index = index
statement_from = statement-from
error_priority = check_configuration-prio
parameter_01 = |{ interface_counter }|
parameter_02 = |{ check_configuration-threshold }| ).
ENDMETHOD.
METHOD constructor.
super->constructor( ).
description = 'Number of Interfaces'(001).
category = 'Y_CHECK_CATEGORY'.
version = '0000'.
position = '630'.
has_documentation = abap_true.
settings-pseudo_comment = '"#EC NMBR_INTERFACES' ##NO_TEXT.
settings-threshold = 4.
settings-documentation = |{ c_docs_path-checks }number-interfaces.md|.
y_message_registration=>add_message(
EXPORTING
check_name = me->myname
text = '[Clean Code]: There are &1 interfaces, exceeding threshold of &2'(102)
pseudo_comment = settings-pseudo_comment
CHANGING
messages = me->scimessages ).
ENDMETHOD.
METHOD execute_check.
LOOP AT ref_scan_manager->get_structures( ) ASSIGNING FIELD-SYMBOL(<structure>)
WHERE stmnt_type EQ scan_struc_stmnt_type-class_definition OR
stmnt_type EQ scan_struc_stmnt_type-interface.
is_testcode = test_code_detector->is_testcode( <structure> ).
TRY.
DATA(check_configuration) = check_configurations[ apply_on_testcode = abap_true ].
CATCH cx_sy_itab_line_not_found.
IF is_testcode EQ abap_true.
CONTINUE.
ENDIF.
ENDTRY.
READ TABLE ref_scan_manager->get_statements( ) INTO DATA(statement_for_message)
INDEX <structure>-stmnt_from.
interface_counter = 0.
LOOP AT ref_scan_manager->get_statements( ) ASSIGNING FIELD-SYMBOL(<statement>)
FROM <structure>-stmnt_from TO <structure>-stmnt_to.
inspect_tokens( statement = <statement> ).
ENDLOOP.
checkif_error( index = <structure>-stmnt_from
statement = statement_for_message ).
ENDLOOP.
ENDMETHOD.
METHOD inspect_tokens.
CHECK get_token_abs( statement-from ) EQ 'INTERFACES'.
ADD 1 TO interface_counter.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9122,
62,
17618,
62,
3849,
32186,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
12260,
62,
9122,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
7071,
62,
24588,
41876,
1312,
26173,
8924,
657,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
361,
62,
18224,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
6376,
220,
220,
220,
220,
41876,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
41876,
264,
301,
76,
429,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
575,
62,
50084,
62,
41359,
13246,
62,
41358,
37,
2246,
1546,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2198,
361,
62,
18224,
13,
198,
220,
220,
220,
42865,
7,
9122,
62,
11250,
3924,
8,
796,
4886,
62,
9122,
62,
11250,
3924,
7,
4049,
62,
9127,
796,
7071,
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,
220,
23578,
5064,
13,
628,
220,
220,
220,
5298,
62,
18224,
7,
2643,
62,
5715,
220,
220,
220,
220,
220,
796,
2643,
12,
5715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
9630,
220,
220,
220,
220,
220,
796,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
6738,
220,
220,
220,
220,
220,
220,
796,
2643,
12,
6738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
49336,
220,
220,
220,
220,
220,
220,
796,
2198,
62,
11250,
3924,
12,
3448,
78,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11507,
62,
486,
220,
220,
220,
220,
220,
220,
220,
220,
796,
930,
90,
7071,
62,
24588,
1782,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11507,
62,
2999,
220,
220,
220,
220,
220,
220,
220,
220,
796,
930,
90,
2198,
62,
11250,
3924,
12,
400,
10126,
1782,
91,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
628,
220,
220,
220,
6764,
796,
705,
15057,
286,
4225,
32186,
6,
7,
8298,
737,
198,
220,
220,
220,
6536,
220,
220,
220,
796,
705,
56,
62,
50084,
62,
34,
6158,
38,
15513,
4458,
198,
220,
220,
220,
2196,
220,
220,
220,
220,
796,
705,
2388,
4458,
198,
220,
220,
220,
2292,
220,
220,
220,
796,
705,
30005,
4458,
198,
220,
220,
220,
468,
62,
22897,
341,
796,
450,
499,
62,
7942,
13,
628,
220,
220,
220,
6460,
12,
7752,
12003,
62,
23893,
796,
705,
1,
2,
2943,
399,
10744,
49,
62,
41358,
37,
2246,
1546,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
6460,
12,
400,
10126,
796,
604,
13,
198,
220,
220,
220,
6460,
12,
22897,
341,
796,
930,
90,
269,
62,
31628,
62,
6978,
12,
42116,
1782,
17618,
12,
3849,
32186,
13,
9132,
91,
13,
628,
220,
220,
220,
331,
62,
20500,
62,
2301,
33397,
14804,
2860,
62,
20500,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2198,
62,
3672,
220,
220,
220,
220,
796,
502,
3784,
1820,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
44438,
32657,
6127,
5974,
1318,
389,
1222,
16,
20314,
11,
23353,
11387,
286,
1222,
17,
6,
7,
15377,
8,
198,
220,
220,
220,
220,
220,
220,
220,
24543,
62,
23893,
796,
6460,
12,
7752,
12003,
62,
23893,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
6218,
220,
220,
220,
220,
220,
220,
796,
502,
3784,
1416,
320,
408,
1095,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
12260,
62,
9122,
13,
198,
220,
220,
220,
17579,
3185,
5161,
1006,
62,
35836,
62,
37153,
3784,
1136,
62,
7249,
942,
7,
1267,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
301,
5620,
43734,
198,
220,
220,
220,
220,
220,
33411,
336,
76,
429,
62,
4906,
36529,
9367,
62,
19554,
66,
62,
301,
76,
429,
62,
4906,
12,
4871,
62,
46758,
6375,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
336,
76,
429,
62,
4906,
36529,
9367,
62,
19554,
66,
62,
301,
76,
429,
62,
4906,
12,
39994,
13,
628,
220,
220,
220,
220,
220,
318,
62,
9288,
8189,
796,
1332,
62,
8189,
62,
15255,
9250,
3784,
271,
62,
9288,
8189,
7,
1279,
301,
5620,
29,
6739,
628,
220,
220,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
9122,
62,
11250,
3924,
8,
796,
2198,
62,
11250,
20074,
58,
4174,
62,
261,
62,
9288,
8189,
796,
450,
499,
62,
7942,
20740,
198,
220,
220,
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,
220,
220,
16876,
318,
62,
9288,
8189,
36529,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1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E if_http_entity PUBLIC.
CONSTANTS co_request_method_get TYPE string VALUE 'GET'.
CONSTANTS co_request_method_post TYPE string VALUE 'POST'.
METHODS:
set_cdata IMPORTING data TYPE string,
set_data IMPORTING data TYPE xstring,
get_header_field
IMPORTING name TYPE string
RETURNING VALUE(value) TYPE string,
set_header_field
IMPORTING
name TYPE string
value TYPE string,
get_form_fields
CHANGING
fields TYPE string,
set_compression,
add_multipart,
append_cdata IMPORTING data TYPE clike,
get_form_field IMPORTING name TYPE string RETURNING VALUE(value) TYPE string,
get_cdata RETURNING VALUE(data) TYPE string,
get_content_type
RETURNING VALUE(val) TYPE string,
set_content_type,
get_data
RETURNING
VALUE(data) TYPE xstring,
get_header_fields CHANGING fields TYPE any,
get_cookies CHANGING cookies TYPE any.
ENDINTERFACE. | [
41358,
49836,
611,
62,
4023,
62,
26858,
44731,
13,
628,
220,
7102,
2257,
1565,
4694,
763,
62,
25927,
62,
24396,
62,
1136,
41876,
4731,
26173,
8924,
705,
18851,
4458,
198,
220,
7102,
2257,
1565,
4694,
763,
62,
25927,
62,
24396,
62,
7353,
41876,
4731,
26173,
8924,
705,
32782,
4458,
628,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
900,
62,
66,
7890,
30023,
9863,
2751,
1366,
41876,
4731,
11,
198,
220,
220,
220,
900,
62,
7890,
30023,
9863,
2751,
1366,
41876,
2124,
8841,
11,
198,
220,
220,
220,
651,
62,
25677,
62,
3245,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1438,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
8367,
8,
41876,
4731,
11,
198,
220,
220,
220,
900,
62,
25677,
62,
3245,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
41876,
4731,
11,
198,
220,
220,
220,
651,
62,
687,
62,
25747,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
7032,
41876,
4731,
11,
198,
220,
220,
220,
900,
62,
5589,
2234,
11,
198,
220,
220,
220,
751,
62,
16680,
541,
433,
11,
198,
220,
220,
220,
24443,
62,
66,
7890,
30023,
9863,
2751,
1366,
41876,
537,
522,
11,
198,
220,
220,
220,
651,
62,
687,
62,
3245,
30023,
9863,
2751,
1438,
41876,
4731,
30826,
4261,
15871,
26173,
8924,
7,
8367,
8,
41876,
4731,
11,
198,
220,
220,
220,
651,
62,
66,
7890,
30826,
4261,
15871,
26173,
8924,
7,
7890,
8,
41876,
4731,
11,
198,
220,
220,
220,
651,
62,
11299,
62,
4906,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
2100,
8,
41876,
4731,
11,
198,
220,
220,
220,
900,
62,
11299,
62,
4906,
11,
198,
220,
220,
220,
651,
62,
7890,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
7890,
8,
41876,
2124,
8841,
11,
198,
220,
220,
220,
651,
62,
25677,
62,
25747,
5870,
15567,
2751,
7032,
41876,
597,
11,
198,
220,
220,
220,
651,
62,
27916,
444,
5870,
15567,
2751,
14746,
41876,
597,
13,
198,
198,
10619,
41358,
49836,
13
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_W3XX
*&---------------------------------------------------------------------*
*----------------------------------------------------------------------*
* CLASS lcl_object_W3SUPER DEFINITION
*----------------------------------------------------------------------*
* Web Reporting/Internet Transaction Server MIME Types (super class)
*----------------------------------------------------------------------*
CLASS lcl_object_w3super DEFINITION INHERITING FROM lcl_objects_super ABSTRACT.
PUBLIC SECTION.
INTERFACES lif_object.
TYPES ty_wwwparams_tt TYPE STANDARD TABLE OF wwwparams WITH DEFAULT KEY.
CONSTANTS: BEGIN OF c_param_names,
version TYPE w3_name VALUE 'version',
fileext TYPE w3_name VALUE 'fileextension',
filesize TYPE w3_name VALUE 'filesize',
filename TYPE w3_name VALUE 'filename',
mimetype TYPE w3_name VALUE 'mimetype',
END OF c_param_names.
METHODS constructor
IMPORTING
is_item TYPE ty_item
iv_language TYPE spras.
PROTECTED SECTION.
METHODS get_metadata REDEFINITION.
PRIVATE SECTION.
DATA ms_key TYPE wwwdatatab.
METHODS get_ext
IMPORTING it_params TYPE ty_wwwparams_tt
RETURNING VALUE(rv_ext) TYPE string
RAISING lcx_exception.
METHODS normalize_params
IMPORTING iv_size TYPE i
CHANGING ct_params TYPE ty_wwwparams_tt " Param table to patch
RAISING lcx_exception.
METHODS strip_params
CHANGING ct_params TYPE ty_wwwparams_tt
RAISING lcx_exception.
METHODS find_param
IMPORTING it_params TYPE ty_wwwparams_tt
iv_name TYPE w3_name
RETURNING VALUE(rv_value) TYPE string
RAISING lcx_exception.
ENDCLASS. "lcl_object_W3SUPER DEFINITION
*----------------------------------------------------------------------*
* CLASS lcl_object_W3SUPER IMPLEMENTATION
*----------------------------------------------------------------------*
* Web Reporting/Internet Transaction Server MIME Types (super class)
*----------------------------------------------------------------------*
CLASS lcl_object_w3super IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item iv_language = iv_language ).
ms_key-relid = ms_item-obj_type+2(2).
ms_key-objid = ms_item-obj_name.
ENDMETHOD. " constructor.
METHOD lif_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD. "lif_object~has_changed_since
METHOD lif_object~changed_by.
rv_user = c_user_unknown. " todo
ENDMETHOD.
METHOD lif_object~jump.
" No idea how to jump to SMW0
lcx_exception=>raise( 'Please go to SMW0 for W3MI object' ).
ENDMETHOD. "jump
METHOD lif_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD. "lif_object~get_metadata
METHOD get_metadata. "Redefinition
rs_metadata = super->get_metadata( ).
rs_metadata-version = 'v2.0.0'. " Seriazation v2, separate data file
ENDMETHOD. " get_metadata. "Redefinition
METHOD lif_object~exists.
SELECT SINGLE objid INTO ms_key-objid
FROM wwwdata
WHERE relid = ms_key-relid
AND objid = ms_key-objid
AND srtf2 = 0.
IF sy-subrc IS NOT INITIAL.
RETURN.
ENDIF.
rv_bool = abap_true.
ENDMETHOD. "lif_object~exists
METHOD lif_object~serialize.
DATA lt_w3mime TYPE STANDARD TABLE OF w3mime.
DATA lt_w3html TYPE STANDARD TABLE OF w3html.
DATA lt_w3params TYPE STANDARD TABLE OF wwwparams.
DATA lv_xstring TYPE xstring.
DATA lv_size TYPE int4.
SELECT SINGLE * INTO CORRESPONDING FIELDS OF ms_key
FROM wwwdata
WHERE relid = ms_key-relid
AND objid = ms_key-objid
AND srtf2 = 0.
IF sy-subrc IS NOT INITIAL.
RETURN.
ENDIF.
CALL FUNCTION 'WWWDATA_IMPORT'
EXPORTING
key = ms_key
TABLES
mime = lt_w3mime
html = lt_w3html
EXCEPTIONS
wrong_object_type = 1
import_error = 2.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot read W3xx data' ).
ENDIF.
CALL FUNCTION 'WWWPARAMS_READ_ALL'
EXPORTING
type = ms_key-relid
objid = ms_key-objid
TABLES
params = lt_w3params
EXCEPTIONS
entry_not_exists = 1.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot read W3xx data' ).
ENDIF.
lv_size = find_param( it_params = lt_w3params iv_name = c_param_names-filesize ).
" Clean params (remove version, filesize & clear filename from path)
strip_params( CHANGING ct_params = lt_w3params ).
CASE ms_key-relid.
WHEN 'MI'.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_size
IMPORTING
buffer = lv_xstring
TABLES
binary_tab = lt_w3mime
EXCEPTIONS
failed = 1.
WHEN 'HT'.
CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'
IMPORTING
buffer = lv_xstring
TABLES
text_tab = lt_w3html
EXCEPTIONS
failed = 1.
WHEN OTHERS.
lcx_exception=>raise( 'Wrong W3xx type' ).
ENDCASE.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot convert W3xx to xstring' ).
ENDIF.
io_xml->add( iv_name = 'NAME'
ig_data = ms_key-objid ).
io_xml->add( iv_name = 'TEXT'
ig_data = ms_key-text ).
io_xml->add( iv_name = 'PARAMS'
ig_data = lt_w3params ).
" Seriazation v2, separate data file. 'extra' added to prevent conflict with .xml
lif_object~mo_files->add_raw( iv_data = lv_xstring
iv_extra = 'data'
iv_ext = get_ext( lt_w3params ) ).
ENDMETHOD. "serialize
METHOD lif_object~deserialize.
DATA lv_base64str TYPE string.
DATA lt_w3params TYPE STANDARD TABLE OF wwwparams.
DATA lv_xstring TYPE xstring.
DATA lt_w3mime TYPE STANDARD TABLE OF w3mime.
DATA lt_w3html TYPE STANDARD TABLE OF w3html.
DATA lv_size TYPE int4.
DATA lv_tadir_obj TYPE tadir-object.
io_xml->read( EXPORTING iv_name = 'TEXT'
CHANGING cg_data = ms_key-text ).
io_xml->read( EXPORTING iv_name = 'PARAMS'
CHANGING cg_data = lt_w3params ).
CASE io_xml->get_metadata( )-version.
WHEN 'v1.0.0'.
io_xml->read( EXPORTING iv_name = 'DATA'
CHANGING cg_data = lv_base64str ).
lv_xstring = cl_http_utility=>decode_x_base64( lv_base64str ).
WHEN 'v2.0.0'.
lv_xstring = lif_object~mo_files->read_raw( iv_extra = 'data'
iv_ext = get_ext( lt_w3params ) ).
WHEN OTHERS.
lcx_exception=>raise( 'W3xx: Unknown serializer version' ).
ENDCASE.
CASE ms_key-relid.
WHEN 'MI'.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_xstring
IMPORTING
output_length = lv_size
TABLES
binary_tab = lt_w3mime.
WHEN 'HT'.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_xstring
IMPORTING
output_length = lv_size
TABLES
binary_tab = lt_w3mime.
CALL FUNCTION 'SCMS_BINARY_TO_TEXT'
EXPORTING
input_length = lv_size
IMPORTING
output_length = lv_size
TABLES
binary_tab = lt_w3mime
text_tab = lt_w3html
EXCEPTIONS
failed = 1.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot update W3xx params' ).
ENDIF.
CLEAR lt_w3mime.
WHEN OTHERS.
lcx_exception=>raise( 'Wrong W3xx type' ).
ENDCASE.
" Update size of file based on actual data file size, prove param object name
normalize_params( EXPORTING iv_size = lv_size
CHANGING ct_params = lt_w3params ).
CALL FUNCTION 'WWWPARAMS_UPDATE'
TABLES
params = lt_w3params
EXCEPTIONS
update_error = 1.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot update W3xx params' ).
ENDIF.
ms_key-tdate = sy-datum.
ms_key-ttime = sy-uzeit.
ms_key-chname = sy-uname.
ms_key-devclass = iv_package.
CALL FUNCTION 'WWWDATA_EXPORT'
EXPORTING
key = ms_key
TABLES
mime = lt_w3mime
html = lt_w3html
EXCEPTIONS
wrong_object_type = 1
export_error = 2.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot upload W3xx data' ).
ENDIF.
CONCATENATE 'W3' ms_key-relid INTO lv_tadir_obj.
CALL FUNCTION 'TR_TADIR_INTERFACE'
EXPORTING
wi_tadir_pgmid = 'R3TR'
wi_tadir_object = lv_tadir_obj
wi_tadir_devclass = iv_package
wi_tadir_obj_name = ms_key-objid
wi_test_modus = space
EXCEPTIONS
tadir_entry_not_existing = 1
tadir_entry_ill_type = 2
no_systemname = 3
no_systemtype = 4
original_system_conflict = 5
object_reserved_for_devclass = 6
object_exists_global = 7
object_exists_local = 8
object_is_distributed = 9
obj_specification_not_unique = 10
no_authorization_to_delete = 11
devclass_not_existing = 12
simultanious_set_remove_repair = 13
order_missing = 14
no_modification_of_head_syst = 15
pgmid_object_not_allowed = 16
masterlanguage_not_specified = 17
devclass_not_specified = 18
specify_owner_unique = 19
loc_priv_objs_no_repair = 20
gtadir_not_reached = 21
object_locked_for_order = 22
change_of_class_not_allowed = 23
no_change_from_sap_to_tmp = 24
OTHERS = 99.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot update TADIR for W3xx' ).
ENDIF.
ENDMETHOD. "lif_object~deserialize
METHOD lif_object~delete.
CALL FUNCTION 'WWWDATA_DELETE'
EXPORTING
key = ms_key
EXCEPTIONS
wrong_object_type = 1
delete_error = 2.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot delete W3xx data' ).
ENDIF.
CALL FUNCTION 'WWWPARAMS_DELETE_ALL'
EXPORTING
key = ms_key
EXCEPTIONS
delete_error = 1.
IF sy-subrc IS NOT INITIAL.
lcx_exception=>raise( 'Cannot delete W3xx params' ).
ENDIF.
ENDMETHOD. "lif_object~delete
METHOD get_ext.
rv_ext = find_param( it_params = it_params iv_name = c_param_names-fileext ).
SHIFT rv_ext LEFT DELETING LEADING '.'.
ENDMETHOD. " get_ext.
METHOD normalize_params.
FIELD-SYMBOLS <param> LIKE LINE OF ct_params.
" Ensure filesize param exists
READ TABLE ct_params ASSIGNING <param> WITH KEY name = c_param_names-filesize.
IF sy-subrc <> 0.
APPEND INITIAL LINE TO ct_params ASSIGNING <param>.
<param>-name = c_param_names-filesize.
ENDIF.
LOOP AT ct_params ASSIGNING <param>.
<param>-relid = ms_key-relid. " Ensure param key = object key
<param>-objid = ms_key-objid.
IF <param>-name = c_param_names-filesize. " Patch filesize = real file size
<param>-value = iv_size.
CONDENSE <param>-value.
ENDIF.
ENDLOOP.
ENDMETHOD. " normalize_params.
METHOD strip_params.
FIELD-SYMBOLS <param> LIKE LINE OF ct_params.
" Remove path from filename
find_param( it_params = ct_params iv_name = c_param_names-filename ). " Check exists
READ TABLE ct_params ASSIGNING <param> WITH KEY name = c_param_names-filename.
<param>-value = lcl_path=>get_filename_from_syspath( |{ <param>-value }| ).
" Clear version & filesize
DELETE ct_params WHERE name = c_param_names-version.
DELETE ct_params WHERE name = c_param_names-filesize.
ENDMETHOD. " strip_params.
METHOD find_param.
FIELD-SYMBOLS <param> LIKE LINE OF it_params.
READ TABLE it_params ASSIGNING <param> WITH KEY name = iv_name.
IF sy-subrc > 0.
lcx_exception=>raise( |W3xx: Cannot find { iv_name } for { ms_key-objid }| ).
ENDIF.
rv_value = <param>-value.
ENDMETHOD. " find_param.
METHOD lif_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE lcl_null_comparison_result.
ENDMETHOD.
ENDCLASS. "lcl_object_W3SUPER IMPLEMENTATION
*----------------------------------------------------------------------*
* CLASS lcl_object_W3MI DEFINITION
*----------------------------------------------------------------------*
* Web Reporting/Internet Transaction Server MIME Types (binary data)
*----------------------------------------------------------------------*
CLASS lcl_object_w3mi DEFINITION INHERITING FROM lcl_object_w3super FINAL.
ENDCLASS. "lcl_object_W3MI DEFINITION
*----------------------------------------------------------------------*
* CLASS lcl_object_W3HT DEFINITION
*----------------------------------------------------------------------*
* Web Reporting/Internet Transaction Server MIME Types (html data)
*----------------------------------------------------------------------*
CLASS lcl_object_w3ht DEFINITION INHERITING FROM lcl_object_w3super FINAL.
ENDCLASS. "lcl_object_W3HT DEFINITION
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
54,
18,
8051,
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,
54,
18,
40331,
1137,
5550,
20032,
17941,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
5313,
29595,
14,
28566,
45389,
9652,
337,
12789,
24897,
357,
16668,
1398,
8,
198,
9,
10097,
23031,
9,
198,
31631,
300,
565,
62,
15252,
62,
86,
18,
16668,
5550,
20032,
17941,
3268,
16879,
2043,
2751,
16034,
300,
565,
62,
48205,
62,
16668,
9564,
18601,
10659,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
3868,
62,
15252,
13,
628,
220,
220,
220,
24412,
47,
1546,
1259,
62,
2503,
37266,
62,
926,
41876,
49053,
9795,
43679,
3963,
7324,
37266,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
347,
43312,
3963,
269,
62,
17143,
62,
14933,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2196,
220,
41876,
266,
18,
62,
3672,
26173,
8924,
705,
9641,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2393,
2302,
220,
41876,
266,
18,
62,
3672,
26173,
8924,
705,
7753,
2302,
3004,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3696,
1096,
41876,
266,
18,
62,
3672,
26173,
8924,
705,
16624,
1096,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29472,
41876,
266,
18,
62,
3672,
26173,
8924,
705,
34345,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
17007,
2963,
431,
41876,
266,
18,
62,
3672,
26173,
8924,
705,
76,
320,
2963,
431,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
17143,
62,
14933,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
41876,
1259,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
41876,
7500,
292,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
38993,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
13845,
62,
2539,
41876,
7324,
19608,
265,
397,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
2302,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
340,
62,
37266,
41876,
1259,
62,
2503,
37266,
62,
926,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
2302,
8,
41876,
4731,
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,
3487,
1096,
62,
37266,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
7857,
220,
220,
41876,
1312,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
83,
62,
37266,
41876,
1259,
62,
2503,
37266,
62,
926,
220,
366,
25139,
3084,
284,
8529,
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,
10283,
62,
37266,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
83,
62,
37266,
41876,
1259,
62,
2503,
37266,
62,
926,
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,
1064,
62,
17143,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
340,
62,
37266,
41876,
1259,
62,
2503,
37266,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3672,
220,
220,
41876,
266,
18,
62,
3672,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
8367,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
300,
66,
87,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
366,
75,
565,
62,
15252,
62,
54,
18,
40331,
1137,
5550,
20032,
17941,
198,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
300,
565,
62,
15252,
62,
54,
18,
40331,
1137,
30023,
2538,
10979,
6234,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
5313,
29595,
14,
28566,
45389,
9652,
337,
12789,
24897,
357,
16668,
1398,
8,
198,
9,
10097,
23031,
9,
198,
31631,
300,
565,
62,
15252,
62,
86,
18,
16668,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
318,
62,
9186,
796,
318,
62,
9186,
21628,
62,
16129,
796,
21628,
62,
16129,
6739,
198,
220,
220,
220,
13845,
62,
2539,
12,
2411,
312,
796,
13845,
62,
9186,
12,
26801,
62,
4906,
10,
17,
7,
17,
737,
198,
220,
220,
220,
13845,
62,
2539,
12,
26801,
312,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
23578,
49273,
13,
220,
366,
23772,
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,
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,
3868,
62,
15252,
93,
43327,
13,
198,
220,
220,
220,
366,
1400,
2126,
703,
284,
4391,
284,
9447,
54,
15,
198,
220,
220,
220,
300,
66,
87,
62,
1069,
4516,
14804,
40225,
7,
705,
5492,
467,
284,
9447,
54,
15,
329,
370,
18,
8895
] | [
1,
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&---------------------------------------------------------------------*
*& Report ZACTIONS
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT ZACTIONS.
write 'hsdfedf'.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1168,
10659,
11053,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1168,
10659,
11053,
13,
628,
3551,
705,
11994,
7568,
276,
69,
4458,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_page_debuginfo DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_page
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
PROTECTED SECTION.
METHODS:
render_content REDEFINITION,
scripts REDEFINITION.
PRIVATE SECTION.
METHODS render_debug_info
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception.
METHODS render_supported_object_types
RETURNING VALUE(rv_html) TYPE string.
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE_DEBUGINFO IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
ms_control-page_title = 'DEBUG INFO'.
ENDMETHOD. " constructor.
METHOD render_content.
CREATE OBJECT ro_html.
ro_html->add( '<div id="debug_info" class="debug_container">' ).
ro_html->add( render_debug_info( ) ).
ro_html->add( render_supported_object_types( ) ).
ro_html->add( '</div>' ).
ENDMETHOD. "render_content
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.
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.
lv_gui_version = ls_version-filename.
READ TABLE lt_ver_tab INTO ls_version INDEX 2.
lv_gui_version = |{ lv_gui_version }.{ ls_version-filename }|.
CREATE OBJECT ro_html.
ro_html->add( |<p>abapGit version: { zif_abapgit_definitions=>gc_abap_version }</p>| ).
ro_html->add( |<p>XML version: { zif_abapgit_definitions=>gc_xml_version }</p>| ).
ro_html->add( |<p>GUI version: { lv_gui_version }</p>| ).
ro_html->add( |<p>LCL_TIME: { zcl_abapgit_time=>get( ) }</p>| ).
ro_html->add( |<p>SY time: { sy-datum } { sy-uzeit } { sy-tzone }</p>| ).
ENDMETHOD. "render_debug_info
METHOD render_supported_object_types.
DATA: lv_list TYPE string,
lt_types TYPE zcl_abapgit_objects=>ty_types_tt,
lv_type LIKE LINE OF lt_types.
lt_types = zcl_abapgit_objects=>supported_list( ).
LOOP AT lt_types INTO lv_type.
IF lv_list IS INITIAL.
lv_list = lv_type.
ELSE.
lv_list = lv_list && `, ` && lv_type.
ENDIF.
ENDLOOP.
rv_html = |<p>Supported objects: { lv_list }</p>|.
ENDMETHOD.
METHOD scripts.
CREATE OBJECT ro_html.
ro_html->add( 'debugOutput("Browser: " + navigator.userAgent + ' &&
'"<br>Frontend time: " + new Date(), "debug_info");' ).
ENDMETHOD. "scripts
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,
7700,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
8543,
62,
11299,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
14750,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
24442,
62,
10951,
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,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
15999,
62,
15252,
62,
19199,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
6494,
8,
41876,
4731,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
40156,
62,
4537,
8264,
62,
30531,
10778,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
198,
220,
220,
220,
13845,
62,
13716,
12,
7700,
62,
7839,
796,
705,
30531,
24890,
4458,
198,
220,
23578,
49273,
13,
220,
366,
23772,
13,
628,
198,
220,
337,
36252,
8543,
62,
11299,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
6494,
13,
628,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
27,
7146,
4686,
2625,
24442,
62,
10951,
1,
1398,
2625,
24442,
62,
34924,
5320,
6,
6739,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
8543,
62,
24442,
62,
10951,
7,
1267,
6739,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
8543,
62,
15999,
62,
15252,
62,
19199,
7,
1267,
6739,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
705,
3556,
7146,
29,
6,
6739,
628,
220,
23578,
49273,
13,
220,
366,
13287,
62,
11299,
628,
198,
220,
337,
36252,
8543,
62,
24442,
62,
10951,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
332,
62,
8658,
220,
220,
220,
220,
41876,
2393,
11487,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
6015,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
48317,
62,
9641,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
9641,
220,
220,
220,
220,
34178,
48920,
3963,
300,
83,
62,
332,
62,
8658,
13,
628,
220,
220,
220,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
1136,
62,
48317,
62,
9641,
7,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
2196,
62,
11487,
796,
300,
83,
62,
332,
62,
8658,
48321,
796,
300,
85,
62,
6015,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
440,
4221,
4877,
796,
352,
6739,
198,
220,
220,
220,
20832,
43679,
300,
83,
62,
332,
62,
8658,
39319,
43979,
62,
9641,
24413,
6369,
352,
13,
198,
220,
220,
220,
300,
85,
62,
48317,
62,
9641,
796,
43979,
62,
9641,
12,
34345,
13,
198,
220,
220,
220,
20832,
43679,
300,
83,
62,
332,
62,
8658,
39319,
43979,
62,
9641,
24413,
6369,
362,
13,
198,
220,
220,
220,
300,
85,
62,
48317,
62,
9641,
796,
930,
90,
300,
85,
62,
48317,
62,
9641,
1782,
13,
90,
43979,
62,
9641,
12,
34345,
1782,
91,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
6494,
13,
628,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
930,
27,
79,
29,
397,
499,
38,
270,
2196,
25,
1391,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
36484,
62,
397,
499,
62,
9641,
1782,
3556,
79,
29,
91,
6739,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
930,
27,
79,
29,
55,
5805,
2196,
25,
220,
220,
220,
220,
1391,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
36484,
62,
19875,
62,
9641,
1782,
3556,
79,
29,
91,
6739,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
930,
27,
79,
29,
40156,
2196,
25,
220,
220,
220,
220,
1391,
300,
85,
62,
48317,
62,
9641,
1782,
3556,
79,
29,
91,
6739,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
930,
27,
79,
29,
43,
5097,
62,
34694,
25,
220,
220,
220,
220,
220,
220,
220,
1391,
1976,
565,
62,
397,
499,
18300,
62,
2435,
14804,
1136,
7,
1267,
1782,
3556,
79,
29,
91,
6739,
198,
220,
220,
220,
686,
62,
6494,
3784,
2860,
7,
930,
27,
79,
29,
23060,
640,
25,
220,
220,
220,
220,
220,
220,
220,
220,
1391,
827,
12,
19608,
388,
1782,
1391,
827,
12,
84,
2736,
270,
1782,
1391,
827,
12,
83,
11340,
1782,
3556,
79,
29,
91,
6739,
628,
220,
23578,
49273,
13,
366,
13287,
62,
24442,
62,
10951,
628,
198,
220,
337,
36252,
8543,
62,
15999,
62,
15252,
62,
19199,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
4868,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
19199,
41876,
1976,
565,
62,
397,
499,
18300,
62,
48205,
14804,
774,
62,
19199,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
4906,
220,
34178,
48920,
3963,
300,
83,
62,
19199,
13,
628,
198,
220,
220,
220,
300,
83,
62,
19199,
796,
1976,
565,
62,
397,
499,
18300,
62,
48205,
14804,
15999,
62,
4868,
7,
6739,
628,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
19199,
39319,
300,
85,
62,
4906,
13,
198,
220,
220,
220,
220,
220,
16876,
300,
85,
62,
4868,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220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,
1,
1,
1
] |
FUNCTION-POOL /DMO/FLIGHT_TRAVEL_API28. "MESSAGE-ID ..
* INCLUDE /DMO/LFLIGHT_TRAVEL_API28D... " Local class definition
| [
42296,
4177,
2849,
12,
16402,
3535,
1220,
35,
11770,
14,
3697,
9947,
62,
51,
3861,
18697,
62,
17614,
2078,
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,
2078,
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
] |
CLASS zcl_aoc_check_30 DEFINITION
PUBLIC
INHERITING FROM zcl_aoc_super
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
METHODS check
REDEFINITION .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_AOC_CHECK_30 IMPLEMENTATION.
METHOD check.
* abapOpenChecks
* https://github.com/larshp/abapOpenChecks
* MIT License
TYPES: BEGIN OF ty_stack,
exporting TYPE abap_bool,
importing TYPE abap_bool,
changing TYPE abap_bool,
receiv TYPE abap_bool,
exceptions TYPE abap_bool,
row TYPE token_row,
END OF ty_stack.
DATA: lv_i TYPE i,
lt_stack TYPE TABLE OF ty_stack,
ls_stack LIKE LINE OF lt_stack,
lv_include TYPE sobj_name,
lv_position LIKE sy-tabix.
FIELD-SYMBOLS: <ls_statement> LIKE LINE OF io_scan->statements,
<ls_token> LIKE LINE OF io_scan->tokens.
LOOP AT io_scan->statements ASSIGNING <ls_statement>
WHERE type = io_scan->gc_statement-standard
OR type = io_scan->gc_statement-compute_direct
OR type = io_scan->gc_statement-method_direct.
lv_position = sy-tabix.
LOOP AT io_scan->tokens ASSIGNING <ls_token>
FROM <ls_statement>-from TO <ls_statement>-to
WHERE type = io_scan->gc_token-identifier.
lv_i = strlen( <ls_token>-str ) - 1.
IF <ls_token>-str+lv_i(1) = '('.
* push
APPEND ls_stack TO lt_stack.
CLEAR ls_stack.
ELSEIF <ls_token>-str(1) = ')'.
IF ls_stack-exporting = abap_true
AND ls_stack-importing = abap_false
AND ls_stack-receiv = abap_false
AND ls_stack-exceptions = abap_false
AND ls_stack-changing = abap_false.
lv_include = io_scan->get_include( <ls_statement>-level ).
inform( p_sub_obj_name = lv_include
p_position = lv_position
p_line = ls_stack-row
p_kind = mv_errty
p_test = myname
p_code = '001' ).
ENDIF.
* pop
lv_i = lines( lt_stack ).
ASSERT lv_i > 0.
READ TABLE lt_stack INDEX lv_i INTO ls_stack.
ASSERT sy-subrc = 0.
DELETE lt_stack INDEX lv_i.
ELSEIF <ls_token>-str = 'EXPORTING'.
ls_stack-exporting = abap_true.
ls_stack-row = <ls_token>-row.
ELSEIF <ls_token>-str = 'IMPORTING'.
ls_stack-importing = abap_true.
ELSEIF <ls_token>-str = 'RECEIVING'.
ls_stack-receiv = abap_true.
ELSEIF <ls_token>-str = 'EXCEPTIONS'.
ls_stack-exceptions = abap_true.
ELSEIF <ls_token>-str = 'CHANGING'.
ls_stack-changing = abap_true.
ENDIF.
ENDLOOP.
ENDLOOP.
ENDMETHOD.
METHOD constructor.
super->constructor( ).
version = '001'.
position = '030'.
has_attributes = abap_true.
attributes_ok = abap_true.
enable_rfc( ).
enable_checksum( ).
insert_scimessage(
iv_code = '001'
iv_text = 'EXPORTING can be omitted'(m01) ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
64,
420,
62,
9122,
62,
1270,
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,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
32,
4503,
62,
50084,
62,
1270,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2198,
13,
198,
198,
9,
450,
499,
11505,
7376,
4657,
198,
9,
3740,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
397,
499,
11505,
7376,
4657,
198,
9,
17168,
13789,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
25558,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39133,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33332,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5609,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1407,
452,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13269,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5752,
220,
220,
220,
220,
220,
220,
220,
41876,
11241,
62,
808,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
25558,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
72,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
25558,
220,
220,
41876,
43679,
3963,
1259,
62,
25558,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
25558,
220,
220,
34178,
48920,
3963,
300,
83,
62,
25558,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
17256,
41876,
27355,
73,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
9150,
34178,
827,
12,
8658,
844,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
26090,
29,
34178,
48920,
3963,
33245,
62,
35836,
3784,
14269,
3196,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
30001,
29,
220,
220,
220,
220,
34178,
48920,
3963,
33245,
62,
35836,
3784,
83,
482,
641,
13,
628,
220,
220,
220,
17579,
3185,
5161,
33245,
62,
35836,
3784,
14269,
3196,
24994,
3528,
15871,
1279,
7278,
62,
26090,
29,
198,
220,
220,
220,
220,
220,
220,
220,
33411,
2099,
796,
33245,
62,
35836,
3784,
36484,
62,
26090,
12,
20307,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
2099,
796,
33245,
62,
35836,
3784,
36484,
62,
26090,
12,
5589,
1133,
62,
12942,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
2099,
796,
33245,
62,
35836,
3784,
36484,
62,
26090,
12,
24396,
62,
12942,
13,
628,
220,
220,
220,
220,
220,
300,
85,
62,
9150,
796,
827,
12,
8658,
844,
13,
628,
220,
220,
220,
220,
220,
17579,
3185,
5161,
33245,
62,
35836,
3784,
83,
482,
641,
24994,
3528,
15871,
1279,
7278,
62,
30001,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
1279,
7278,
62,
26090,
29,
12,
6738,
5390,
1279,
7278,
62,
26090,
29,
12,
1462,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33411,
2099,
796,
33245,
62,
35836,
3784,
36484,
62,
30001,
12,
738,
7483,
13,
628,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
72,
796,
965,
11925,
7,
1279,
7278,
62,
30001,
29,
12,
2536,
1267,
532,
352,
13,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
1279,
7278,
62,
30001,
29,
12,
2536,
10,
6780,
62,
72,
7,
16,
8,
796,
29513,
4458,
198,
9,
4574,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43504,
10619,
43979,
62,
25558,
5390,
300,
83,
62,
25558,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30301,
1503,
43979,
62,
25558,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
5064,
1279,
7278,
62,
30001,
29,
12,
2536,
7,
16,
8,
796,
705,
8,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16876,
43979,
62,
25558,
12,
1069,
26527,
796,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
43979,
62,
25558,
12,
11748,
278,
796,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
43979,
62,
25558,
12,
260,
344,
452,
796,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
43979,
62,
25558,
12,
1069,
11755,
796,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
43979,
62,
25558,
12,
22954,
796,
450,
499,
62,
9562,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
17256,
796,
33245,
62,
35836,
3784,
1136,
62,
17256,
7,
1279,
7278,
62,
26090,
29,
12,
5715,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4175,
7,
279,
62,
7266,
62,
26801,
62,
3672,
796,
300,
85,
62,
17256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
9150,
220,
220,
220,
220,
796,
300,
85,
62,
9150,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
1370,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
CLASS lcl_common_checks DEFINITION FINAL CREATE PRIVATE.
PUBLIC SECTION.
CLASS-METHODS is_currency_code_valid IMPORTING iv_currency_code TYPE /dmo/currency_code10
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_boolean.
CLASS-METHODS is_customer_id_valid IMPORTING iv_customer_id TYPE /dmo/customer_id10
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_boolean.
PRIVATE SECTION.
CLASS-DATA mt_currency_code TYPE SORTED TABLE OF /dmo/currency_code10 WITH UNIQUE KEY table_line.
CLASS-DATA mt_customer_id TYPE SORTED TABLE OF /dmo/customer_id10 WITH UNIQUE KEY table_line.
ENDCLASS.
CLASS lcl_common_checks IMPLEMENTATION.
METHOD is_currency_code_valid.
CLEAR rv_is_valid.
IF mt_currency_code IS INITIAL.
" We should use TCURC, but this is not released for "ABAP for SAP Cloud Platform"
SELECT DISTINCT currency FROM i_currency INTO TABLE @mt_currency_code.
ENDIF.
READ TABLE mt_currency_code TRANSPORTING NO FIELDS WITH TABLE KEY table_line = iv_currency_code.
IF sy-subrc = 0.
rv_is_valid = abap_true.
ELSE.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>currency_unknown currency_code = iv_currency_code ) TO ct_messages.
ENDIF.
ENDMETHOD.
METHOD is_customer_id_valid.
CLEAR rv_is_valid.
IF mt_customer_id IS INITIAL.
" There may be very many customers, but we only store the ID in the internal table
SELECT DISTINCT customer_id FROM /dmo/customer10 INTO TABLE @mt_customer_id.
ENDIF.
READ TABLE mt_customer_id TRANSPORTING NO FIELDS WITH TABLE KEY table_line = iv_customer_id.
IF sy-subrc = 0.
rv_is_valid = abap_true.
ELSE.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>customer_unkown customer_id = iv_customer_id ) TO ct_messages.
ENDIF.
ENDMETHOD.
ENDCLASS.
CLASS lcl_booking_supplement_buffer DEFINITION FINAL CREATE PRIVATE.
PUBLIC SECTION.
CLASS-METHODS: get_instance RETURNING VALUE(ro_instance) TYPE REF TO lcl_booking_supplement_buffer.
METHODS save.
METHODS initialize.
"! Prepare changes in a temporary buffer
"! @parameter iv_no_delete_check | In some cases we do not need to check the existence of a record to be deleted, as this check has been done before.
"! | E.g. delete all subnodes of a node to be deleted. In this case we have read the subnodes to get their keys.
METHODS cud_prep IMPORTING it_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement
it_booking_supplementx TYPE /dmo/if_flight_legacy10=>tt_booking_supplementx
iv_no_delete_check TYPE abap_bool OPTIONAL
EXPORTING et_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
"! Add content of the temporary buffer to the real buffer and clear the temporary buffer
METHODS cud_copy.
"! Discard content of the temporary buffer
METHODS cud_disc.
"! Get all Booking Supplements for given Bookings
METHODS get IMPORTING it_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement
iv_include_buffer TYPE abap_boolean
iv_include_temp_buffer TYPE abap_boolean
EXPORTING et_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement.
PRIVATE SECTION.
CLASS-DATA go_instance TYPE REF TO lcl_booking_supplement_buffer.
" Main buffer
DATA: mt_create_buffer TYPE /dmo/if_flight_legacy10=>tt_booking_supplement,
mt_update_buffer TYPE /dmo/if_flight_legacy10=>tt_booking_supplement,
mt_delete_buffer TYPE /dmo/if_flight_legacy10=>tt_booking_supplement_key.
" Temporary buffer valid during create / update / delete Travel
DATA: mt_create_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_booking_supplement,
mt_update_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_booking_supplement,
mt_delete_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_booking_supplement_key.
DATA mt_supplement TYPE SORTED TABLE OF /dmo/suppleme_10 WITH UNIQUE KEY supplement_id.
METHODS _create IMPORTING it_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement
EXPORTING et_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _update IMPORTING it_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement
it_booking_supplementx TYPE /dmo/if_flight_legacy10=>tt_booking_supplementx
EXPORTING et_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _delete IMPORTING it_booking_supplement TYPE /dmo/if_flight_legacy10=>tt_booking_supplement
iv_no_delete_check TYPE abap_bool
EXPORTING et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _check IMPORTING is_booking_supplement TYPE /dmo/book_sup_10
is_booking_supplementx TYPE /dmo/if_flight_legacy10=>ts_booking_supplementx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_supplement IMPORTING is_booking_supplement TYPE /dmo/book_sup_10
is_booking_supplementx TYPE /dmo/if_flight_legacy10=>ts_booking_supplementx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_currency_code IMPORTING is_booking_supplement TYPE /dmo/book_sup_10
is_booking_supplementx TYPE /dmo/if_flight_legacy10=>ts_booking_supplementx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _determine IMPORTING iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING cs_booking_supplement TYPE /dmo/book_sup_10.
ENDCLASS.
CLASS lcl_booking_supplement_buffer IMPLEMENTATION.
METHOD get_instance.
go_instance = COND #( WHEN go_instance IS BOUND THEN go_instance ELSE NEW #( ) ).
ro_instance = go_instance.
ENDMETHOD.
METHOD _create.
CLEAR et_booking_supplement.
CLEAR et_messages.
TYPES: BEGIN OF ts_travel_booking_suppl_id,
travel_id TYPE /dmo/travel_id10,
booking_id TYPE /dmo/booking_id10,
booking_supplement_id TYPE /dmo/booking_supplement_id10,
END OF ts_travel_booking_suppl_id,
tt_travel_booking_suppl_id TYPE SORTED TABLE OF ts_travel_booking_suppl_id WITH UNIQUE KEY travel_id booking_id booking_supplement_id.
DATA lt_travel_booking_suppl_id TYPE tt_travel_booking_suppl_id.
CHECK it_booking_supplement IS NOT INITIAL.
SELECT FROM /dmo/book_sup_10 FIELDS travel_id, booking_id, booking_supplement_id
FOR ALL ENTRIES IN @it_booking_supplement WHERE travel_id = @it_booking_supplement-travel_id AND booking_id = @it_booking_supplement-booking_id AND booking_supplement_id = @it_booking_supplement-booking_supplement_id
INTO CORRESPONDING FIELDS OF TABLE @lt_travel_booking_suppl_id.
LOOP AT it_booking_supplement INTO DATA(ls_booking_supplement_create) ##INTO_OK.
" Booking_Supplement_ID key must not be initial
IF ls_booking_supplement_create-booking_supplement_id IS INITIAL.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_no_key
travel_id = ls_booking_supplement_create-travel_id
booking_id = ls_booking_supplement_create-booking_id ) TO et_messages.
RETURN.
ENDIF.
" Booking_Supplement_ID key check DB
READ TABLE lt_travel_booking_suppl_id TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = ls_booking_supplement_create-travel_id
booking_id = ls_booking_supplement_create-booking_id
booking_supplement_id = ls_booking_supplement_create-booking_supplement_id.
IF sy-subrc = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_exists
travel_id = ls_booking_supplement_create-travel_id
booking_id = ls_booking_supplement_create-booking_id
booking_supplement_id = ls_booking_supplement_create-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
" Booking_Supplement_ID key check Buffer
READ TABLE mt_create_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = ls_booking_supplement_create-travel_id
booking_id = ls_booking_supplement_create-booking_id
booking_supplement_id = ls_booking_supplement_create-booking_supplement_id.
IF sy-subrc = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_exists
travel_id = ls_booking_supplement_create-travel_id
booking_id = ls_booking_supplement_create-booking_id
booking_supplement_id = ls_booking_supplement_create-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
" Checks
IF _check( EXPORTING is_booking_supplement = ls_booking_supplement_create
iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create
CHANGING ct_messages = et_messages ) = abap_false.
RETURN.
ENDIF.
" standard determinations
_determine( EXPORTING iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create
CHANGING cs_booking_supplement = ls_booking_supplement_create ).
INSERT ls_booking_supplement_create INTO TABLE mt_create_buffer_2.
ENDLOOP.
et_booking_supplement = mt_create_buffer_2.
ENDMETHOD.
METHOD _update.
CLEAR et_booking_supplement.
CLEAR et_messages.
CHECK it_booking_supplement IS NOT INITIAL.
" Check for empty keys
LOOP AT it_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement_update>) WHERE booking_supplement_id = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_no_key travel_id = <s_booking_supplement_update>-travel_id booking_id = <s_booking_supplement_update>-booking_id ) TO et_messages.
RETURN.
ENDLOOP.
DATA lt_book_suppl TYPE SORTED TABLE OF /dmo/book_sup_10 WITH UNIQUE KEY travel_id booking_id booking_supplement_id.
SELECT * FROM /dmo/book_sup_10 FOR ALL ENTRIES IN @it_booking_supplement WHERE travel_id = @it_booking_supplement-travel_id
AND booking_id = @it_booking_supplement-booking_id
AND booking_supplement_id = @it_booking_supplement-booking_supplement_id
INTO TABLE @lt_book_suppl.
FIELD-SYMBOLS <s_buffer_booking_supplement> TYPE /dmo/book_sup_10.
DATA ls_buffer_booking_supplement TYPE /dmo/book_sup_10.
LOOP AT it_booking_supplement ASSIGNING <s_booking_supplement_update>.
UNASSIGN <s_buffer_booking_supplement>.
READ TABLE mt_delete_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id.
IF sy-subrc = 0." Error: Record to be updated marked for deletion
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_unknown
travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
IF <s_buffer_booking_supplement> IS NOT ASSIGNED." Special case: record already in temporary create buffer
READ TABLE mt_create_buffer_2 ASSIGNING <s_buffer_booking_supplement> WITH TABLE KEY travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id.
ENDIF.
IF <s_buffer_booking_supplement> IS NOT ASSIGNED." Special case: record already in create buffer
READ TABLE mt_create_buffer INTO ls_buffer_booking_supplement WITH TABLE KEY travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id.
IF sy-subrc = 0.
INSERT ls_buffer_booking_supplement INTO TABLE mt_create_buffer_2 ASSIGNING <s_buffer_booking_supplement>.
ENDIF.
ENDIF.
IF <s_buffer_booking_supplement> IS NOT ASSIGNED." Special case: record already in temporary update buffer
READ TABLE mt_update_buffer_2 ASSIGNING <s_buffer_booking_supplement> WITH TABLE KEY travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id.
ENDIF.
IF <s_buffer_booking_supplement> IS NOT ASSIGNED." Special case: record already in update buffer
READ TABLE mt_update_buffer INTO ls_buffer_booking_supplement WITH TABLE KEY travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id.
IF sy-subrc = 0.
INSERT ls_buffer_booking_supplement INTO TABLE mt_update_buffer_2 ASSIGNING <s_buffer_booking_supplement>.
ENDIF.
ENDIF.
IF <s_buffer_booking_supplement> IS NOT ASSIGNED." Usual case: record not already in update buffer
READ TABLE lt_book_suppl ASSIGNING FIELD-SYMBOL(<s_booking_supplement_old>) WITH TABLE KEY travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id.
IF sy-subrc = 0.
INSERT <s_booking_supplement_old> INTO TABLE mt_update_buffer_2 ASSIGNING <s_buffer_booking_supplement>.
ASSERT sy-subrc = 0.
ENDIF.
ENDIF.
" Error
IF <s_buffer_booking_supplement> IS NOT ASSIGNED.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_unknown
travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
" Merge fields to be updated
READ TABLE it_booking_supplementx ASSIGNING FIELD-SYMBOL(<s_booking_supplementx>) WITH KEY travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id
action_code = /dmo/if_flight_legacy10=>action_code-update.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_no_control
travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
IF <s_booking_supplementx>-supplement_id = abap_true AND <s_booking_supplement_update>-supplement_id <> <s_buffer_booking_supplement>-supplement_id.
" The supplement ID must not be changed (delete the record and create a new one)
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_suppl_id_u
travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
IF ( <s_booking_supplementx>-price = abap_true AND <s_booking_supplementx>-currency_code = abap_false )
OR ( <s_booking_supplementx>-price = abap_false AND <s_booking_supplementx>-currency_code = abap_true ).
" Price and currency code must be changed together
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_pri_curr_u
travel_id = <s_booking_supplement_update>-travel_id
booking_id = <s_booking_supplement_update>-booking_id
booking_supplement_id = <s_booking_supplement_update>-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
DATA lv_field TYPE i.
lv_field = 5.
DO.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_booking_supplementx> TO FIELD-SYMBOL(<v_flag>).
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF <v_flag> = abap_true.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_booking_supplement_update> TO FIELD-SYMBOL(<v_field_new>).
ASSERT sy-subrc = 0.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_buffer_booking_supplement> TO FIELD-SYMBOL(<v_field_old>).
ASSERT sy-subrc = 0.
<v_field_old> = <v_field_new>.
ENDIF.
lv_field = lv_field + 1.
ENDDO.
" Checks
IF _check( EXPORTING is_booking_supplement = <s_buffer_booking_supplement>
is_booking_supplementx = <s_booking_supplementx>
iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update
CHANGING ct_messages = et_messages ) = abap_false.
RETURN.
ENDIF.
" standard determinations
DATA(ls_booking_supplement) = <s_buffer_booking_supplement>." Needed, as key fields must not be changed
_determine( EXPORTING iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update
CHANGING cs_booking_supplement = ls_booking_supplement ).
<s_buffer_booking_supplement>-gr_data = ls_booking_supplement-gr_data.
INSERT <s_buffer_booking_supplement> INTO TABLE et_booking_supplement.
ENDLOOP.
ENDMETHOD.
METHOD _delete.
CLEAR et_messages.
CHECK it_booking_supplement IS NOT INITIAL.
" Check for empty keys
LOOP AT it_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement_delete>) WHERE booking_supplement_id = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_no_key
travel_id = <s_booking_supplement_delete>-travel_id
booking_id = <s_booking_supplement_delete>-booking_id ) TO et_messages.
RETURN.
ENDLOOP.
DATA(lt_booking_supplement) = it_booking_supplement.
LOOP AT lt_booking_supplement ASSIGNING <s_booking_supplement_delete>.
" Special case: record already in create buffer
READ TABLE mt_create_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_booking_supplement_delete>-travel_id
booking_id = <s_booking_supplement_delete>-booking_id
booking_supplement_id = <s_booking_supplement_delete>-booking_supplement_id.
IF sy-subrc = 0." Artificial case: Remove entry from create buffer
INSERT VALUE #( travel_id = <s_booking_supplement_delete>-travel_id
booking_id = <s_booking_supplement_delete>-booking_id
booking_supplement_id = <s_booking_supplement_delete>-booking_supplement_id ) INTO TABLE mt_delete_buffer_2.
DELETE lt_booking_supplement.
ENDIF.
ENDLOOP.
IF iv_no_delete_check = abap_false.
DATA lt_book_suppl_db TYPE /dmo/if_flight_legacy10=>tt_booking_supplement_key.
SELECT travel_id, booking_id, booking_supplement_id FROM /dmo/book_sup_10 FOR ALL ENTRIES IN @lt_booking_supplement
WHERE travel_id = @lt_booking_supplement-travel_id AND booking_id = @lt_booking_supplement-booking_id AND booking_supplement_id = @lt_booking_supplement-booking_supplement_id INTO CORRESPONDING FIELDS OF TABLE @lt_book_suppl_db.
ENDIF.
" Check existence and append to delete buffer
LOOP AT lt_booking_supplement ASSIGNING <s_booking_supplement_delete>.
IF iv_no_delete_check = abap_false.
READ TABLE lt_book_suppl_db TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_booking_supplement_delete>-travel_id
booking_id = <s_booking_supplement_delete>-booking_id
booking_supplement_id = <s_booking_supplement_delete>-booking_supplement_id.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_unknown
travel_id = <s_booking_supplement_delete>-travel_id
booking_id = <s_booking_supplement_delete>-booking_id
booking_supplement_id = <s_booking_supplement_delete>-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
ENDIF.
INSERT VALUE #( travel_id = <s_booking_supplement_delete>-travel_id
booking_id = <s_booking_supplement_delete>-booking_id
booking_supplement_id = <s_booking_supplement_delete>-booking_supplement_id ) INTO TABLE mt_delete_buffer_2.
ENDLOOP.
ENDMETHOD.
METHOD save.
ASSERT mt_create_buffer_2 IS INITIAL.
ASSERT mt_update_buffer_2 IS INITIAL.
ASSERT mt_delete_buffer_2 IS INITIAL.
INSERT /dmo/book_sup_10 FROM TABLE @mt_create_buffer.
UPDATE /dmo/book_sup_10 FROM TABLE @mt_update_buffer.
DELETE /dmo/book_sup_10 FROM TABLE @( CORRESPONDING #( mt_delete_buffer ) ).
ENDMETHOD.
METHOD initialize.
CLEAR: mt_create_buffer, mt_update_buffer, mt_delete_buffer.
ENDMETHOD.
METHOD _check.
rv_is_valid = abap_true.
IF NOT _check_supplement( EXPORTING is_booking_supplement = is_booking_supplement
is_booking_supplementx = is_booking_supplementx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
IF NOT _check_currency_code( EXPORTING is_booking_supplement = is_booking_supplement
is_booking_supplementx = is_booking_supplementx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
ENDMETHOD.
METHOD cud_prep.
CLEAR et_booking_supplement.
CLEAR et_messages.
CHECK it_booking_supplement IS NOT INITIAL.
DATA lt_booking_supplement_c TYPE /dmo/if_flight_legacy10=>tt_booking_supplement.
DATA lt_booking_supplement_u TYPE /dmo/if_flight_legacy10=>tt_booking_supplement.
DATA lt_booking_supplement_d TYPE /dmo/if_flight_legacy10=>tt_booking_supplement.
DATA lt_booking_supplementx_u TYPE /dmo/if_flight_legacy10=>tt_booking_supplementx.
LOOP AT it_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement>).
READ TABLE it_booking_supplementx ASSIGNING FIELD-SYMBOL(<s_booking_supplementx>) WITH TABLE KEY travel_id = <s_booking_supplement>-travel_id
booking_id = <s_booking_supplement>-booking_id
booking_supplement_id = <s_booking_supplement>-booking_supplement_id.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_supplement_no_control
travel_id = <s_booking_supplement>-travel_id
booking_id = <s_booking_supplement>-booking_id
booking_supplement_id = <s_booking_supplement>-booking_supplement_id ) TO et_messages.
RETURN.
ENDIF.
CASE CONV /dmo/if_flight_legacy10=>action_code_enum( <s_booking_supplementx>-action_code ).
WHEN /dmo/if_flight_legacy10=>action_code-create.
INSERT <s_booking_supplement> INTO TABLE lt_booking_supplement_c.
WHEN /dmo/if_flight_legacy10=>action_code-update.
INSERT <s_booking_supplement> INTO TABLE lt_booking_supplement_u.
INSERT <s_booking_supplementx> INTO TABLE lt_booking_supplementx_u.
WHEN /dmo/if_flight_legacy10=>action_code-delete.
INSERT <s_booking_supplement> INTO TABLE lt_booking_supplement_d.
ENDCASE.
ENDLOOP.
_create( EXPORTING it_booking_supplement = lt_booking_supplement_c
IMPORTING et_booking_supplement = et_booking_supplement
et_messages = et_messages ).
_update( EXPORTING it_booking_supplement = lt_booking_supplement_u
it_booking_supplementx = lt_booking_supplementx_u
IMPORTING et_booking_supplement = DATA(lt_booking_supplement)
et_messages = DATA(lt_messages) ).
INSERT LINES OF lt_booking_supplement INTO TABLE et_booking_supplement.
APPEND LINES OF lt_messages TO et_messages.
_delete( EXPORTING it_booking_supplement = lt_booking_supplement_d
iv_no_delete_check = iv_no_delete_check
IMPORTING et_messages = lt_messages ).
APPEND LINES OF lt_messages TO et_messages.
ENDMETHOD.
METHOD cud_copy.
LOOP AT mt_create_buffer_2 ASSIGNING FIELD-SYMBOL(<s_create_buffer_2>).
READ TABLE mt_create_buffer ASSIGNING FIELD-SYMBOL(<s_create_buffer>) WITH TABLE KEY travel_id = <s_create_buffer_2>-travel_id
booking_id = <s_create_buffer_2>-booking_id
booking_supplement_id = <s_create_buffer_2>-booking_supplement_id.
IF sy-subrc <> 0.
INSERT VALUE #( travel_id = <s_create_buffer_2>-travel_id
booking_id = <s_create_buffer_2>-booking_id
booking_supplement_id = <s_create_buffer_2>-booking_supplement_id ) INTO TABLE mt_create_buffer ASSIGNING <s_create_buffer>.
ENDIF.
<s_create_buffer>-gr_data = <s_create_buffer_2>-gr_data.
ENDLOOP.
LOOP AT mt_update_buffer_2 ASSIGNING FIELD-SYMBOL(<s_update_buffer_2>).
READ TABLE mt_update_buffer ASSIGNING FIELD-SYMBOL(<s_update_buffer>) WITH TABLE KEY travel_id = <s_update_buffer_2>-travel_id
booking_id = <s_update_buffer_2>-booking_id
booking_supplement_id = <s_update_buffer_2>-booking_supplement_id.
IF sy-subrc <> 0.
INSERT VALUE #( travel_id = <s_update_buffer_2>-travel_id
booking_id = <s_update_buffer_2>-booking_id
booking_supplement_id = <s_update_buffer_2>-booking_supplement_id ) INTO TABLE mt_update_buffer ASSIGNING <s_update_buffer>.
ENDIF.
<s_update_buffer>-gr_data = <s_update_buffer_2>-gr_data.
ENDLOOP.
LOOP AT mt_delete_buffer_2 ASSIGNING FIELD-SYMBOL(<s_delete_buffer_2>).
DELETE mt_create_buffer WHERE travel_id = <s_delete_buffer_2>-travel_id
AND booking_id = <s_delete_buffer_2>-booking_id
AND booking_supplement_id = <s_delete_buffer_2>-booking_supplement_id.
IF sy-subrc = 0.
CONTINUE.
ENDIF.
DELETE mt_update_buffer WHERE travel_id = <s_delete_buffer_2>-travel_id
AND booking_id = <s_delete_buffer_2>-booking_id
AND booking_supplement_id = <s_delete_buffer_2>-booking_supplement_id.
INSERT <s_delete_buffer_2> INTO TABLE mt_delete_buffer.
ENDLOOP.
CLEAR: mt_create_buffer_2, mt_update_buffer_2, mt_delete_buffer_2.
ENDMETHOD.
METHOD cud_disc.
CLEAR: mt_create_buffer_2, mt_update_buffer_2, mt_delete_buffer_2.
ENDMETHOD.
METHOD get.
CLEAR et_booking_supplement.
CHECK it_booking_supplement IS NOT INITIAL.
SELECT * FROM /dmo/book_sup_10 FOR ALL ENTRIES IN @it_booking_supplement WHERE travel_id = @it_booking_supplement-travel_id
AND booking_id = @it_booking_supplement-booking_id
INTO TABLE @et_booking_supplement ##SELECT_FAE_WITH_LOB[DESCRIPTION].
IF iv_include_buffer = abap_true.
LOOP AT it_booking_supplement ASSIGNING FIELD-SYMBOL(<s_booking_supplement>).
LOOP AT mt_create_buffer ASSIGNING FIELD-SYMBOL(<s_create_buffer>) WHERE travel_id = <s_booking_supplement>-travel_id AND booking_id = <s_booking_supplement>-booking_id.
INSERT <s_create_buffer> INTO TABLE et_booking_supplement.
ENDLOOP.
LOOP AT mt_update_buffer ASSIGNING FIELD-SYMBOL(<s_update_buffer>) WHERE travel_id = <s_booking_supplement>-travel_id AND booking_id = <s_booking_supplement>-booking_id.
MODIFY TABLE et_booking_supplement FROM <s_update_buffer>.
ENDLOOP.
LOOP AT mt_delete_buffer ASSIGNING FIELD-SYMBOL(<s_delete_buffer>) WHERE travel_id = <s_booking_supplement>-travel_id AND booking_id = <s_booking_supplement>-booking_id.
DELETE et_booking_supplement WHERE travel_id = <s_delete_buffer>-travel_id
AND booking_id = <s_delete_buffer>-booking_id
AND booking_supplement_id = <s_delete_buffer>-booking_supplement_id.
ENDLOOP.
ENDLOOP.
ENDIF.
IF iv_include_temp_buffer = abap_true.
LOOP AT it_booking_supplement ASSIGNING <s_booking_supplement>.
LOOP AT mt_create_buffer_2 ASSIGNING <s_create_buffer> WHERE travel_id = <s_booking_supplement>-travel_id AND booking_id = <s_booking_supplement>-booking_id.
DELETE et_booking_supplement WHERE travel_id = <s_create_buffer>-travel_id
AND booking_id = <s_create_buffer>-booking_id
AND booking_supplement_id = <s_create_buffer>-booking_supplement_id.
INSERT <s_create_buffer> INTO TABLE et_booking_supplement.
ENDLOOP.
LOOP AT mt_update_buffer_2 ASSIGNING <s_update_buffer> WHERE travel_id = <s_booking_supplement>-travel_id AND booking_id = <s_booking_supplement>-booking_id.
MODIFY TABLE et_booking_supplement FROM <s_update_buffer>.
ENDLOOP.
LOOP AT mt_delete_buffer_2 ASSIGNING <s_delete_buffer> WHERE travel_id = <s_booking_supplement>-travel_id AND booking_id = <s_booking_supplement>-booking_id.
DELETE et_booking_supplement WHERE travel_id = <s_delete_buffer>-travel_id
AND booking_id = <s_delete_buffer>-booking_id
AND booking_supplement_id = <s_delete_buffer>-booking_supplement_id.
ENDLOOP.
ENDLOOP.
ENDIF.
ENDMETHOD.
METHOD _check_supplement.
rv_is_valid = abap_true.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_booking_supplementx-supplement_id = abap_true ).
IF mt_supplement IS INITIAL.
SELECT * FROM /dmo/suppleme_10 INTO TABLE @mt_supplement.
ENDIF.
READ TABLE mt_supplement TRANSPORTING NO FIELDS WITH TABLE KEY supplement_id = is_booking_supplement-supplement_id.
IF sy-subrc <> 0.
rv_is_valid = abap_false.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>supplement_unknown supplement_id = is_booking_supplement-supplement_id ) TO ct_messages.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD _check_currency_code.
rv_is_valid = abap_true.
IF ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create AND is_booking_supplement-currency_code IS NOT INITIAL ) " Will be derived if initial
OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_booking_supplementx-currency_code = abap_true ).
rv_is_valid = lcl_common_checks=>is_currency_code_valid( EXPORTING iv_currency_code = is_booking_supplement-currency_code CHANGING ct_messages = ct_messages ).
ENDIF.
ENDMETHOD.
METHOD _determine.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create.
" Derive price and currency code if one of the fields is initial
IF cs_booking_supplement-price IS INITIAL OR cs_booking_supplement-currency_code IS INITIAL.
IF mt_supplement IS INITIAL.
SELECT * FROM /dmo/suppleme_10 INTO TABLE @mt_supplement.
ENDIF.
READ TABLE mt_supplement ASSIGNING FIELD-SYMBOL(<s_supplement>) WITH TABLE KEY supplement_id = cs_booking_supplement-supplement_id.
ASSERT sy-subrc = 0. " Check has been done before
cs_booking_supplement-price = <s_supplement>-price.
cs_booking_supplement-currency_code = <s_supplement>-currency_code.
ENDIF.
ENDIF.
ENDMETHOD.
ENDCLASS.
CLASS lcl_booking_buffer DEFINITION FINAL CREATE PRIVATE.
PUBLIC SECTION.
CLASS-METHODS: get_instance RETURNING VALUE(ro_instance) TYPE REF TO lcl_booking_buffer.
METHODS save.
METHODS initialize.
METHODS check_booking_id IMPORTING iv_travel_id TYPE /dmo/travel_id10
iv_booking_id TYPE /dmo/booking_id10
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
"! Prepare changes in a temporary buffer
"! @parameter iv_no_delete_check | In some cases we do not need to check the existence of a record to be deleted, as this check has been done before.
"! | E.g. delete all subnodes of a node to be deleted. In this case we have read the subnodes to get their keys.
METHODS cud_prep IMPORTING it_booking TYPE /dmo/if_flight_legacy10=>tt_booking
it_bookingx TYPE /dmo/if_flight_legacy10=>tt_bookingx
iv_no_delete_check TYPE abap_bool OPTIONAL
EXPORTING et_booking TYPE /dmo/if_flight_legacy10=>tt_booking
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
"! Add content of the temporary buffer to the real buffer and clear the temporary buffer
METHODS cud_copy.
"! Discard content of the temporary buffer
METHODS cud_disc.
"! Get all Bookings for given Travels
METHODS get IMPORTING it_booking TYPE /dmo/if_flight_legacy10=>tt_booking
iv_include_buffer TYPE abap_boolean
iv_include_temp_buffer TYPE abap_boolean
EXPORTING et_booking TYPE /dmo/if_flight_legacy10=>tt_booking.
PRIVATE SECTION.
CLASS-DATA go_instance TYPE REF TO lcl_booking_buffer.
" Main buffer
DATA: mt_create_buffer TYPE /dmo/if_flight_legacy10=>tt_booking,
mt_update_buffer TYPE /dmo/if_flight_legacy10=>tt_booking,
mt_delete_buffer TYPE /dmo/if_flight_legacy10=>tt_booking_key.
" Temporary buffer valid during create / update / delete Travel
DATA: mt_create_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_booking,
mt_update_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_booking,
mt_delete_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_booking_key.
TYPES: BEGIN OF ts_flight_key,
carrier_id TYPE /dmo/carrier_id10,
connection_id TYPE /dmo/connection_id10,
flight_date TYPE /dmo/flight_date10,
END OF ts_flight_key.
TYPES tt_flight_key TYPE SORTED TABLE OF ts_flight_key WITH UNIQUE KEY carrier_id connection_id flight_date.
DATA mt_flight_key TYPE tt_flight_key.
METHODS _create IMPORTING it_booking TYPE /dmo/if_flight_legacy10=>tt_booking
EXPORTING et_booking TYPE /dmo/if_flight_legacy10=>tt_booking
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _update IMPORTING it_booking TYPE /dmo/if_flight_legacy10=>tt_booking
it_bookingx TYPE /dmo/if_flight_legacy10=>tt_bookingx
EXPORTING et_booking TYPE /dmo/if_flight_legacy10=>tt_booking
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _delete IMPORTING it_booking TYPE /dmo/if_flight_legacy10=>tt_booking
iv_no_delete_check TYPE abap_bool
EXPORTING et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _check IMPORTING is_booking TYPE /dmo/booking10
is_bookingx TYPE /dmo/if_flight_legacy10=>ts_bookingx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_booking_date IMPORTING is_booking TYPE /dmo/booking10
is_bookingx TYPE /dmo/if_flight_legacy10=>ts_bookingx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_customer IMPORTING is_booking TYPE /dmo/booking10
is_bookingx TYPE /dmo/if_flight_legacy10=>ts_bookingx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_flight IMPORTING is_booking TYPE /dmo/booking10
is_bookingx TYPE /dmo/if_flight_legacy10=>ts_bookingx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_currency_code IMPORTING is_booking TYPE /dmo/booking10
is_bookingx TYPE /dmo/if_flight_legacy10=>ts_bookingx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _determine IMPORTING iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING cs_booking TYPE /dmo/booking10.
ENDCLASS.
CLASS lcl_booking_buffer IMPLEMENTATION.
METHOD get_instance.
go_instance = COND #( WHEN go_instance IS BOUND THEN go_instance ELSE NEW #( ) ).
ro_instance = go_instance.
ENDMETHOD.
METHOD _create.
CLEAR et_booking.
CLEAR et_messages.
TYPES: BEGIN OF ts_travel_booking_id,
travel_id TYPE /dmo/travel_id10,
booking_id TYPE /dmo/booking_id10,
END OF ts_travel_booking_id,
tt_travel_booking_id TYPE SORTED TABLE OF ts_travel_booking_id WITH UNIQUE KEY travel_id booking_id.
DATA lt_travel_booking_id TYPE tt_travel_booking_id.
CHECK it_booking IS NOT INITIAL.
SELECT FROM /dmo/booking10 FIELDS travel_id, booking_id FOR ALL ENTRIES IN @it_booking WHERE travel_id = @it_booking-travel_id AND booking_id = @it_booking-booking_id INTO CORRESPONDING FIELDS OF TABLE @lt_travel_booking_id.
LOOP AT it_booking INTO DATA(ls_booking_create) ##INTO_OK.
" Booking_ID key must not be initial
IF ls_booking_create-booking_id IS INITIAL.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_no_key travel_id = ls_booking_create-travel_id ) TO et_messages.
RETURN.
ENDIF.
" Booking_ID key check DB
READ TABLE lt_travel_booking_id TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = ls_booking_create-travel_id booking_id = ls_booking_create-booking_id.
IF sy-subrc = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_exists travel_id = ls_booking_create-travel_id booking_id = ls_booking_create-booking_id ) TO et_messages.
RETURN.
ENDIF.
" Booking_ID key check Buffer
READ TABLE mt_create_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = ls_booking_create-travel_id booking_id = ls_booking_create-booking_id.
IF sy-subrc = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_exists travel_id = ls_booking_create-travel_id booking_id = ls_booking_create-booking_id ) TO et_messages.
RETURN.
ENDIF.
" Checks
IF _check( EXPORTING is_booking = ls_booking_create
iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create
CHANGING ct_messages = et_messages ) = abap_false.
RETURN.
ENDIF.
" standard determinations
_determine( EXPORTING iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create
CHANGING cs_booking = ls_booking_create ).
INSERT ls_booking_create INTO TABLE mt_create_buffer_2.
ENDLOOP.
et_booking = mt_create_buffer_2.
ENDMETHOD.
METHOD _update.
CLEAR et_booking.
CLEAR et_messages.
CHECK it_booking IS NOT INITIAL.
" Check for empty keys
LOOP AT it_booking ASSIGNING FIELD-SYMBOL(<s_booking_update>) WHERE booking_id = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_no_key travel_id = <s_booking_update>-travel_id ) TO et_messages.
RETURN.
ENDLOOP.
DATA lt_booking TYPE SORTED TABLE OF /dmo/booking10 WITH UNIQUE KEY travel_id booking_id.
SELECT * FROM /dmo/booking10 FOR ALL ENTRIES IN @it_booking WHERE travel_id = @it_booking-travel_id AND booking_id = @it_booking-booking_id INTO TABLE @lt_booking.
FIELD-SYMBOLS <s_buffer_booking> TYPE /dmo/booking10.
DATA ls_buffer_booking TYPE /dmo/booking10.
LOOP AT it_booking ASSIGNING <s_booking_update>.
UNASSIGN <s_buffer_booking>.
READ TABLE mt_delete_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_booking_update>-travel_id booking_id = <s_booking_update>-booking_id.
IF sy-subrc = 0." Error: Record to be updated marked for deletion
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_unknown travel_id = <s_booking_update>-travel_id booking_id = <s_booking_update>-booking_id ) TO et_messages.
RETURN.
ENDIF.
IF <s_buffer_booking> IS NOT ASSIGNED." Special case: record already in temporary create buffer
READ TABLE mt_create_buffer_2 ASSIGNING <s_buffer_booking> WITH TABLE KEY travel_id = <s_booking_update>-travel_id booking_id = <s_booking_update>-booking_id.
ENDIF.
IF <s_buffer_booking> IS NOT ASSIGNED." Special case: record already in create buffer
READ TABLE mt_create_buffer INTO ls_buffer_booking WITH TABLE KEY travel_id = <s_booking_update>-travel_id booking_id = <s_booking_update>-booking_id.
IF sy-subrc = 0.
INSERT ls_buffer_booking INTO TABLE mt_create_buffer_2 ASSIGNING <s_buffer_booking>.
ENDIF.
ENDIF.
IF <s_buffer_booking> IS NOT ASSIGNED." Special case: record already in temporary update buffer
READ TABLE mt_update_buffer_2 ASSIGNING <s_buffer_booking> WITH TABLE KEY travel_id = <s_booking_update>-travel_id booking_id = <s_booking_update>-booking_id.
ENDIF.
IF <s_buffer_booking> IS NOT ASSIGNED." Special case: record already in update buffer
READ TABLE mt_update_buffer INTO ls_buffer_booking WITH TABLE KEY travel_id = <s_booking_update>-travel_id booking_id = <s_booking_update>-booking_id.
IF sy-subrc = 0.
INSERT ls_buffer_booking INTO TABLE mt_update_buffer_2 ASSIGNING <s_buffer_booking>.
ENDIF.
ENDIF.
IF <s_buffer_booking> IS NOT ASSIGNED." Usual case: record not already in update buffer
READ TABLE lt_booking ASSIGNING FIELD-SYMBOL(<s_booking_old>) WITH TABLE KEY travel_id = <s_booking_update>-travel_id booking_id = <s_booking_update>-booking_id.
IF sy-subrc = 0.
INSERT <s_booking_old> INTO TABLE mt_update_buffer_2 ASSIGNING <s_buffer_booking>.
ASSERT sy-subrc = 0.
ENDIF.
ENDIF.
" Error
IF <s_buffer_booking> IS NOT ASSIGNED.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_unknown travel_id = <s_booking_update>-travel_id booking_id = <s_booking_update>-booking_id ) TO et_messages.
RETURN.
ENDIF.
" Merge fields to be updated
READ TABLE it_bookingx ASSIGNING FIELD-SYMBOL(<s_bookingx>) WITH KEY travel_id = <s_booking_update>-travel_id
booking_id = <s_booking_update>-booking_id
action_code = /dmo/if_flight_legacy10=>action_code-update.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_no_control
travel_id = <s_booking_update>-travel_id
booking_id = <s_booking_update>-booking_id ) TO et_messages.
RETURN.
ENDIF.
IF ( <s_bookingx>-carrier_id = abap_true AND ( <s_booking_update>-carrier_id <> <s_buffer_booking>-carrier_id ) )
OR ( <s_bookingx>-connection_id = abap_true AND ( <s_booking_update>-connection_id <> <s_buffer_booking>-connection_id ) )
OR ( <s_bookingx>-flight_date = abap_true AND ( <s_booking_update>-flight_date <> <s_buffer_booking>-flight_date ) ).
" The flight must not be changed (delete the record and create a new one)
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_flight_u
travel_id = <s_booking_update>-travel_id
booking_id = <s_booking_update>-booking_id ) TO et_messages.
RETURN.
ENDIF.
IF ( <s_bookingx>-flight_price = abap_true AND <s_bookingx>-currency_code = abap_false )
OR ( <s_bookingx>-flight_price = abap_false AND <s_bookingx>-currency_code = abap_true ).
" Price and currency code must be changed together
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_price_currency_u
travel_id = <s_booking_update>-travel_id
booking_id = <s_booking_update>-booking_id ) TO et_messages.
RETURN.
ENDIF.
DATA lv_field TYPE i.
lv_field = 4.
DO.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_bookingx> TO FIELD-SYMBOL(<v_flag>).
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF <v_flag> = abap_true.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_booking_update> TO FIELD-SYMBOL(<v_field_new>).
ASSERT sy-subrc = 0.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_buffer_booking> TO FIELD-SYMBOL(<v_field_old>).
ASSERT sy-subrc = 0.
<v_field_old> = <v_field_new>.
ENDIF.
lv_field = lv_field + 1.
ENDDO.
" Checks
IF _check( EXPORTING is_booking = <s_buffer_booking>
is_bookingx = <s_bookingx>
iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update
CHANGING ct_messages = et_messages ) = abap_false.
RETURN.
ENDIF.
" standard determinations
DATA(ls_booking) = <s_buffer_booking>." Needed, as key fields must not be changed
_determine( EXPORTING iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update
CHANGING cs_booking = ls_booking ).
<s_buffer_booking>-gr_data = ls_booking-gr_data.
INSERT <s_buffer_booking> INTO TABLE et_booking.
ENDLOOP.
ENDMETHOD.
METHOD _delete.
CLEAR et_messages.
CHECK it_booking IS NOT INITIAL.
" Check for empty keys
LOOP AT it_booking ASSIGNING FIELD-SYMBOL(<s_booking_delete>) WHERE booking_id = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_no_key travel_id = <s_booking_delete>-travel_id ) TO et_messages.
RETURN.
ENDLOOP.
DATA(lt_booking) = it_booking.
LOOP AT lt_booking ASSIGNING <s_booking_delete>.
" Special case: record already in create buffer
READ TABLE mt_create_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_booking_delete>-travel_id booking_id = <s_booking_delete>-booking_id.
IF sy-subrc = 0.
INSERT VALUE #( travel_id = <s_booking_delete>-travel_id booking_id = <s_booking_delete>-booking_id ) INTO TABLE mt_delete_buffer_2.
DELETE lt_booking.
ENDIF.
ENDLOOP.
IF iv_no_delete_check = abap_false.
DATA lt_booking_db TYPE /dmo/if_flight_legacy10=>tt_booking_key.
SELECT travel_id, booking_id FROM /dmo/booking10 FOR ALL ENTRIES IN @lt_booking WHERE travel_id = @lt_booking-travel_id AND booking_id = @lt_booking-booking_id INTO CORRESPONDING FIELDS OF TABLE @lt_booking_db.
ENDIF.
" Check existence and append to delete buffer
LOOP AT lt_booking ASSIGNING <s_booking_delete>.
IF iv_no_delete_check = abap_false.
READ TABLE lt_booking_db TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_booking_delete>-travel_id booking_id = <s_booking_delete>-booking_id.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_unknown travel_id = <s_booking_delete>-travel_id booking_id = <s_booking_delete>-booking_id ) TO et_messages.
RETURN.
ENDIF.
ENDIF.
INSERT VALUE #( travel_id = <s_booking_delete>-travel_id booking_id = <s_booking_delete>-booking_id ) INTO TABLE mt_delete_buffer_2.
ENDLOOP.
ENDMETHOD.
METHOD save.
ASSERT mt_create_buffer_2 IS INITIAL.
ASSERT mt_update_buffer_2 IS INITIAL.
ASSERT mt_delete_buffer_2 IS INITIAL.
INSERT /dmo/booking10 FROM TABLE @mt_create_buffer.
UPDATE /dmo/booking10 FROM TABLE @mt_update_buffer.
DELETE /dmo/booking10 FROM TABLE @( CORRESPONDING #( mt_delete_buffer ) ).
ENDMETHOD.
METHOD initialize.
CLEAR: mt_create_buffer, mt_update_buffer, mt_delete_buffer.
ENDMETHOD.
METHOD check_booking_id." Here we can safely assume that the Travel ID has already been checked!
rv_is_valid = abap_false.
IF iv_booking_id IS INITIAL.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_no_key travel_id = iv_travel_id ) TO ct_messages.
RETURN.
ENDIF.
IF line_exists( mt_delete_buffer[ travel_id = iv_travel_id booking_id = iv_booking_id ] ).
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_unknown travel_id = iv_travel_id booking_id = iv_booking_id ) TO ct_messages.
RETURN.
ENDIF.
IF line_exists( mt_delete_buffer_2[ travel_id = iv_travel_id booking_id = iv_booking_id ] ).
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_unknown travel_id = iv_travel_id booking_id = iv_booking_id ) TO ct_messages.
RETURN.
ENDIF.
IF line_exists( mt_create_buffer[ travel_id = iv_travel_id booking_id = iv_booking_id ] ).
rv_is_valid = abap_true.
RETURN.
ENDIF.
IF line_exists( mt_create_buffer_2[ travel_id = iv_travel_id booking_id = iv_booking_id ] ).
rv_is_valid = abap_true.
RETURN.
ENDIF.
SELECT SINGLE FROM /dmo/booking10 FIELDS @abap_true WHERE travel_id = @iv_travel_id AND booking_id = @iv_booking_id INTO @DATA(lv_db_exists).
IF lv_db_exists = abap_true.
rv_is_valid = abap_true.
RETURN.
ENDIF.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_unknown travel_id = iv_travel_id booking_id = iv_booking_id ) TO ct_messages.
ENDMETHOD.
METHOD cud_prep.
CLEAR et_booking.
CLEAR et_messages.
CHECK it_booking IS NOT INITIAL.
DATA lt_booking_c TYPE /dmo/if_flight_legacy10=>tt_booking.
DATA lt_booking_u TYPE /dmo/if_flight_legacy10=>tt_booking.
DATA lt_booking_d TYPE /dmo/if_flight_legacy10=>tt_booking.
DATA lt_bookingx_u TYPE /dmo/if_flight_legacy10=>tt_bookingx.
LOOP AT it_booking ASSIGNING FIELD-SYMBOL(<s_booking>).
READ TABLE it_bookingx ASSIGNING FIELD-SYMBOL(<s_bookingx>) WITH TABLE KEY travel_id = <s_booking>-travel_id booking_id = <s_booking>-booking_id.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_no_control
travel_id = <s_booking>-travel_id
booking_id = <s_booking>-booking_id ) TO et_messages.
RETURN.
ENDIF.
CASE CONV /dmo/if_flight_legacy10=>action_code_enum( <s_bookingx>-action_code ).
WHEN /dmo/if_flight_legacy10=>action_code-create.
INSERT <s_booking> INTO TABLE lt_booking_c.
WHEN /dmo/if_flight_legacy10=>action_code-update.
INSERT <s_booking> INTO TABLE lt_booking_u.
INSERT <s_bookingx> INTO TABLE lt_bookingx_u.
WHEN /dmo/if_flight_legacy10=>action_code-delete.
INSERT <s_booking> INTO TABLE lt_booking_d.
ENDCASE.
ENDLOOP.
_create( EXPORTING it_booking = lt_booking_c
IMPORTING et_booking = et_booking
et_messages = et_messages ).
_update( EXPORTING it_booking = lt_booking_u
it_bookingx = lt_bookingx_u
IMPORTING et_booking = DATA(lt_booking)
et_messages = DATA(lt_messages) ).
INSERT LINES OF lt_booking INTO TABLE et_booking.
APPEND LINES OF lt_messages TO et_messages.
_delete( EXPORTING it_booking = lt_booking_d
iv_no_delete_check = iv_no_delete_check
IMPORTING et_messages = lt_messages ).
APPEND LINES OF lt_messages TO et_messages.
ENDMETHOD.
METHOD cud_copy.
LOOP AT mt_create_buffer_2 ASSIGNING FIELD-SYMBOL(<s_create_buffer_2>).
READ TABLE mt_create_buffer ASSIGNING FIELD-SYMBOL(<s_create_buffer>) WITH TABLE KEY travel_id = <s_create_buffer_2>-travel_id booking_id = <s_create_buffer_2>-booking_id.
IF sy-subrc <> 0.
INSERT VALUE #( travel_id = <s_create_buffer_2>-travel_id booking_id = <s_create_buffer_2>-booking_id ) INTO TABLE mt_create_buffer ASSIGNING <s_create_buffer>.
ENDIF.
<s_create_buffer>-gr_data = <s_create_buffer_2>-gr_data.
ENDLOOP.
LOOP AT mt_update_buffer_2 ASSIGNING FIELD-SYMBOL(<s_update_buffer_2>).
READ TABLE mt_update_buffer ASSIGNING FIELD-SYMBOL(<s_update_buffer>) WITH TABLE KEY travel_id = <s_update_buffer_2>-travel_id booking_id = <s_update_buffer_2>-booking_id.
IF sy-subrc <> 0.
INSERT VALUE #( travel_id = <s_update_buffer_2>-travel_id booking_id = <s_update_buffer_2>-booking_id ) INTO TABLE mt_update_buffer ASSIGNING <s_update_buffer>.
ENDIF.
<s_update_buffer>-gr_data = <s_update_buffer_2>-gr_data.
ENDLOOP.
LOOP AT mt_delete_buffer_2 ASSIGNING FIELD-SYMBOL(<s_delete_buffer_2>).
DELETE mt_create_buffer WHERE travel_id = <s_delete_buffer_2>-travel_id AND booking_id = <s_delete_buffer_2>-booking_id.
IF sy-subrc = 0.
CONTINUE.
ENDIF.
DELETE mt_update_buffer WHERE travel_id = <s_delete_buffer_2>-travel_id AND booking_id = <s_delete_buffer_2>-booking_id.
INSERT <s_delete_buffer_2> INTO TABLE mt_delete_buffer.
ENDLOOP.
CLEAR: mt_create_buffer_2, mt_update_buffer_2, mt_delete_buffer_2.
ENDMETHOD.
METHOD cud_disc.
CLEAR: mt_create_buffer_2, mt_update_buffer_2, mt_delete_buffer_2.
ENDMETHOD.
METHOD get.
CLEAR et_booking.
CHECK it_booking IS NOT INITIAL.
SELECT * FROM /dmo/booking10 FOR ALL ENTRIES IN @it_booking WHERE travel_id = @it_booking-travel_id
INTO TABLE @et_booking ##SELECT_FAE_WITH_LOB[DESCRIPTION].
IF iv_include_buffer = abap_true.
LOOP AT it_booking ASSIGNING FIELD-SYMBOL(<s_booking>).
LOOP AT mt_create_buffer ASSIGNING FIELD-SYMBOL(<s_create_buffer>) WHERE travel_id = <s_booking>-travel_id.
INSERT <s_create_buffer> INTO TABLE et_booking.
ENDLOOP.
LOOP AT mt_update_buffer ASSIGNING FIELD-SYMBOL(<s_update_buffer>) WHERE travel_id = <s_booking>-travel_id.
MODIFY TABLE et_booking FROM <s_update_buffer>.
ENDLOOP.
LOOP AT mt_delete_buffer ASSIGNING FIELD-SYMBOL(<s_delete_buffer>) WHERE travel_id = <s_booking>-travel_id.
DELETE et_booking WHERE travel_id = <s_delete_buffer>-travel_id AND booking_id = <s_delete_buffer>-booking_id.
ENDLOOP.
ENDLOOP.
ENDIF.
IF iv_include_temp_buffer = abap_true.
LOOP AT it_booking ASSIGNING <s_booking>.
LOOP AT mt_create_buffer_2 ASSIGNING <s_create_buffer> WHERE travel_id = <s_booking>-travel_id.
DELETE et_booking WHERE travel_id = <s_create_buffer>-travel_id AND booking_id = <s_create_buffer>-booking_id.
INSERT <s_create_buffer> INTO TABLE et_booking.
ENDLOOP.
LOOP AT mt_update_buffer_2 ASSIGNING <s_update_buffer> WHERE travel_id = <s_booking>-travel_id.
MODIFY TABLE et_booking FROM <s_update_buffer>.
ENDLOOP.
LOOP AT mt_delete_buffer_2 ASSIGNING <s_delete_buffer> WHERE travel_id = <s_booking>-travel_id.
DELETE et_booking WHERE travel_id = <s_delete_buffer>-travel_id AND booking_id = <s_delete_buffer>-booking_id.
ENDLOOP.
ENDLOOP.
ENDIF.
ENDMETHOD.
METHOD _check.
rv_is_valid = abap_true.
IF NOT _check_booking_date( EXPORTING is_booking = is_booking
is_bookingx = is_bookingx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
IF NOT _check_customer( EXPORTING is_booking = is_booking
is_bookingx = is_bookingx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
IF NOT _check_flight( EXPORTING is_booking = is_booking
is_bookingx = is_bookingx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
IF NOT _check_currency_code( EXPORTING is_booking = is_booking
is_bookingx = is_bookingx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
ENDMETHOD.
METHOD _check_booking_date.
rv_is_valid = abap_true.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_bookingx-booking_date = abap_true ).
" A. Booking Date must not be initial
" B. When the record is created it must not be in the past
IF is_booking-booking_date IS INITIAL OR is_booking-booking_date = '' OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create AND is_booking-booking_date < cl_abap_context_info=>get_system_date( ) ).
rv_is_valid = abap_false.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>booking_booking_date_invalid travel_id = is_booking-travel_id booking_id = is_booking-booking_id booking_date = is_booking-booking_date ) TO ct_messages.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD _check_customer.
rv_is_valid = abap_true.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_bookingx-customer_id = abap_true ).
rv_is_valid = lcl_common_checks=>is_customer_id_valid( EXPORTING iv_customer_id = is_booking-customer_id CHANGING ct_messages = ct_messages ).
ENDIF.
ENDMETHOD.
METHOD _check_flight.
rv_is_valid = abap_true.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create
OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update
AND ( is_bookingx-carrier_id = abap_true OR is_bookingx-connection_id = abap_true OR is_bookingx-flight_date = abap_true ) ).
IF mt_flight_key IS INITIAL.
SELECT carrier_id, connection_id, flight_date FROM /dmo/flight10 INTO CORRESPONDING FIELDS OF TABLE @mt_flight_key.
ENDIF.
READ TABLE mt_flight_key TRANSPORTING NO FIELDS WITH TABLE KEY carrier_id = is_booking-carrier_id connection_id = is_booking-connection_id flight_date = is_booking-flight_date.
IF sy-subrc <> 0.
rv_is_valid = abap_false.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>flight_unknown carrier_id = is_booking-carrier_id connection_id = is_booking-connection_id flight_date = is_booking-flight_date ) TO ct_messages.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD _check_currency_code.
rv_is_valid = abap_true.
IF ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create AND is_booking-currency_code IS NOT INITIAL ) " Will be derived if initial
OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_bookingx-currency_code = abap_true ).
rv_is_valid = lcl_common_checks=>is_currency_code_valid( EXPORTING iv_currency_code = is_booking-currency_code CHANGING ct_messages = ct_messages ).
ENDIF.
ENDMETHOD.
METHOD _determine.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create.
" Derive price and currency code if one of the fields is initial
IF cs_booking-flight_price IS INITIAL OR cs_booking-currency_code IS INITIAL.
" Flight price might have changed, we need to use current flight price
SELECT SINGLE price, currency_code FROM /dmo/flight10 WHERE carrier_id = @cs_booking-carrier_id
AND connection_id = @cs_booking-connection_id
AND flight_date = @cs_booking-flight_date INTO ( @cs_booking-flight_price, @cs_booking-currency_code ).
ASSERT sy-subrc = 0. " Check has been done before
ENDIF.
ENDIF.
ENDMETHOD.
ENDCLASS.
CLASS lcl_travel_buffer DEFINITION FINAL CREATE PRIVATE.
PUBLIC SECTION.
CLASS-METHODS: get_instance RETURNING VALUE(ro_instance) TYPE REF TO lcl_travel_buffer.
METHODS set_status_to_booked IMPORTING iv_travel_id TYPE /dmo/travel_id10
EXPORTING et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS save.
METHODS initialize.
METHODS check_travel_id IMPORTING iv_travel_id TYPE /dmo/travel_id10
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
"! Prepare changes in a temporary buffer
"! @parameter iv_no_delete_check | In some cases we do not need to check the existence of a record to be deleted, as this check has been done before.
"! | E.g. delete all subnodes of a node to be deleted. In this case we have read the subnodes to get their keys.
METHODS cud_prep IMPORTING it_travel TYPE /dmo/if_flight_legacy10=>tt_travel
it_travelx TYPE /dmo/if_flight_legacy10=>tt_travelx
iv_no_delete_check TYPE abap_bool OPTIONAL
EXPORTING et_travel TYPE /dmo/if_flight_legacy10=>tt_travel
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
"! Add content of the temporary buffer to the real buffer and clear the temporary buffer
METHODS cud_copy.
"! Discard content of the temporary buffer
METHODS cud_disc.
METHODS get IMPORTING it_travel TYPE /dmo/if_flight_legacy10=>tt_travel
iv_include_buffer TYPE abap_boolean
iv_include_temp_buffer TYPE abap_boolean
EXPORTING et_travel TYPE /dmo/if_flight_legacy10=>tt_travel.
PRIVATE SECTION.
CLASS-DATA go_instance TYPE REF TO lcl_travel_buffer.
" Main buffer
DATA: mt_create_buffer TYPE /dmo/if_flight_legacy10=>tt_travel,
mt_update_buffer TYPE /dmo/if_flight_legacy10=>tt_travel,
mt_delete_buffer TYPE /dmo/if_flight_legacy10=>tt_travel_key.
" Temporary buffer valid during create / update / delete Travel
DATA: mt_create_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_travel,
mt_update_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_travel,
mt_delete_buffer_2 TYPE /dmo/if_flight_legacy10=>tt_travel_key.
DATA mt_agency_id TYPE SORTED TABLE OF /dmo/agency_id10 WITH UNIQUE KEY table_line.
METHODS _create IMPORTING it_travel TYPE /dmo/if_flight_legacy10=>tt_travel
EXPORTING et_travel TYPE /dmo/if_flight_legacy10=>tt_travel
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _update IMPORTING it_travel TYPE /dmo/if_flight_legacy10=>tt_travel
it_travelx TYPE /dmo/if_flight_legacy10=>tt_travelx
EXPORTING et_travel TYPE /dmo/if_flight_legacy10=>tt_travel
et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _delete IMPORTING it_travel TYPE /dmo/if_flight_legacy10=>tt_travel
iv_no_delete_check TYPE abap_bool
EXPORTING et_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message.
METHODS _check IMPORTING is_travel TYPE /dmo/travel10
is_travelx TYPE /dmo/if_flight_legacy10=>ts_travelx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_agency IMPORTING is_travel TYPE /dmo/travel10
is_travelx TYPE /dmo/if_flight_legacy10=>ts_travelx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_customer IMPORTING is_travel TYPE /dmo/travel10
is_travelx TYPE /dmo/if_flight_legacy10=>ts_travelx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_dates IMPORTING is_travel TYPE /dmo/travel10
is_travelx TYPE /dmo/if_flight_legacy10=>ts_travelx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_status IMPORTING is_travel TYPE /dmo/travel10
is_travelx TYPE /dmo/if_flight_legacy10=>ts_travelx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _check_currency_code IMPORTING is_travel TYPE /dmo/travel10
is_travelx TYPE /dmo/if_flight_legacy10=>ts_travelx OPTIONAL
iv_change_mode TYPE /dmo/cl_flight_legacy10=>ty_change_mode
CHANGING ct_messages TYPE /dmo/if_flight_legacy10=>tt_if_t100_message
RETURNING VALUE(rv_is_valid) TYPE abap_bool.
METHODS _update_admin IMPORTING iv_new TYPE abap_bool CHANGING cs_travel_admin TYPE /dmo/travel_a_10.
ENDCLASS.
CLASS lcl_travel_buffer IMPLEMENTATION.
METHOD get_instance.
go_instance = COND #( WHEN go_instance IS BOUND THEN go_instance ELSE NEW #( ) ).
ro_instance = go_instance.
ENDMETHOD.
METHOD _create.
CLEAR et_travel.
CLEAR et_messages.
CHECK it_travel IS NOT INITIAL.
DATA lv_travel_id_max TYPE /dmo/travel_id10.
IF lcl_travel_buffer=>get_instance( )->mt_create_buffer IS INITIAL.
SELECT FROM /dmo/travel10 FIELDS MAX( travel_id ) INTO @lv_travel_id_max.
ELSE.
LOOP AT mt_create_buffer ASSIGNING FIELD-SYMBOL(<s_buffer_travel_create>).
IF <s_buffer_travel_create>-travel_id > lv_travel_id_max.
lv_travel_id_max = <s_buffer_travel_create>-travel_id.
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT it_travel INTO DATA(ls_travel_create) ##INTO_OK.
" Checks
IF _check( EXPORTING is_travel = ls_travel_create
iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create
CHANGING ct_messages = et_messages ) = abap_false.
RETURN.
ENDIF.
" standard determinations
ls_travel_create-createdby = sy-uname.
GET TIME STAMP FIELD ls_travel_create-createdat.
ls_travel_create-lastchangedby = ls_travel_create-createdby.
ls_travel_create-lastchangedat = ls_travel_create-createdat.
ls_travel_create-status = /dmo/if_flight_legacy10=>travel_status-new.
" **Internal** numbering: Override travel_id
lv_travel_id_max = lv_travel_id_max + 1.
ASSERT lv_travel_id_max IS NOT INITIAL.
ls_travel_create-travel_id = lv_travel_id_max.
INSERT ls_travel_create INTO TABLE mt_create_buffer_2.
ENDLOOP.
et_travel = mt_create_buffer_2.
ENDMETHOD.
METHOD _update.
DATA lv_new TYPE abap_bool.
CLEAR et_travel.
CLEAR et_messages.
CHECK it_travel IS NOT INITIAL.
" Check for empty keys
READ TABLE it_travel TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = '0'.
IF sy-subrc = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_no_key ) TO et_messages.
RETURN.
ENDIF.
DATA lt_travel TYPE SORTED TABLE OF /dmo/travel10 WITH UNIQUE KEY travel_id.
SELECT * FROM /dmo/travel10 FOR ALL ENTRIES IN @it_travel WHERE travel_id = @it_travel-travel_id INTO TABLE @lt_travel ##SELECT_FAE_WITH_LOB[DESCRIPTION].
FIELD-SYMBOLS <s_buffer_travel> TYPE /dmo/travel10.
DATA ls_buffer_travel TYPE /dmo/travel10.
LOOP AT it_travel ASSIGNING FIELD-SYMBOL(<s_travel_update>).
UNASSIGN <s_buffer_travel>.
READ TABLE mt_delete_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_travel_update>-travel_id.
IF sy-subrc = 0." Error: Record to be updated marked for deletion
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_unknown travel_id = <s_travel_update>-travel_id ) TO et_messages.
RETURN.
ENDIF.
IF <s_buffer_travel> IS NOT ASSIGNED." Special case: record already in temporary create buffer
READ TABLE mt_create_buffer_2 ASSIGNING <s_buffer_travel> WITH TABLE KEY travel_id = <s_travel_update>-travel_id.
IF sy-subrc = 0.
lv_new = abap_true.
ENDIF.
ENDIF.
IF <s_buffer_travel> IS NOT ASSIGNED." Special case: record already in create buffer
lv_new = abap_false.
READ TABLE mt_create_buffer INTO ls_buffer_travel WITH TABLE KEY travel_id = <s_travel_update>-travel_id.
IF sy-subrc = 0.
INSERT ls_buffer_travel INTO TABLE mt_create_buffer_2 ASSIGNING <s_buffer_travel>.
lv_new = abap_true.
ENDIF.
ENDIF.
IF <s_buffer_travel> IS NOT ASSIGNED." Special case: record already in temporary update buffer
READ TABLE mt_update_buffer_2 ASSIGNING <s_buffer_travel> WITH TABLE KEY travel_id = <s_travel_update>-travel_id.
ENDIF.
IF <s_buffer_travel> IS NOT ASSIGNED." Special case: record already in update buffer
READ TABLE mt_update_buffer INTO ls_buffer_travel WITH TABLE KEY travel_id = <s_travel_update>-travel_id.
IF sy-subrc = 0.
INSERT ls_buffer_travel INTO TABLE mt_update_buffer_2 ASSIGNING <s_buffer_travel>.
ENDIF.
ENDIF.
IF <s_buffer_travel> IS NOT ASSIGNED." Usual case: record not already in update buffer
READ TABLE lt_travel ASSIGNING FIELD-SYMBOL(<s_travel_old>) WITH TABLE KEY travel_id = <s_travel_update>-travel_id.
IF sy-subrc = 0.
INSERT <s_travel_old> INTO TABLE mt_update_buffer_2 ASSIGNING <s_buffer_travel>.
ASSERT sy-subrc = 0.
ENDIF.
ENDIF.
" Error
IF <s_buffer_travel> IS NOT ASSIGNED.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_unknown travel_id = <s_travel_update>-travel_id ) TO et_messages.
RETURN.
ENDIF.
" Merge fields to be updated
READ TABLE it_travelx ASSIGNING FIELD-SYMBOL(<s_travelx>) WITH KEY travel_id = <s_travel_update>-travel_id action_code = /dmo/if_flight_legacy10=>action_code-update.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_no_control travel_id = <s_travel_update>-travel_id ) TO et_messages.
RETURN.
ENDIF.
DATA lv_field TYPE i.
lv_field = 3.
DO.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_travelx> TO FIELD-SYMBOL(<v_flag>).
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF <v_flag> = abap_true.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_travel_update> TO FIELD-SYMBOL(<v_field_new>).
ASSERT sy-subrc = 0.
ASSIGN COMPONENT lv_field OF STRUCTURE <s_buffer_travel> TO FIELD-SYMBOL(<v_field_old>).
ASSERT sy-subrc = 0.
<v_field_old> = <v_field_new>.
ENDIF.
lv_field = lv_field + 1.
ENDDO.
" Checks
IF _check( EXPORTING is_travel = <s_buffer_travel>
is_travelx = <s_travelx>
iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update
CHANGING ct_messages = et_messages ) = abap_false.
RETURN.
ENDIF.
" Set administrative fields
_update_admin( EXPORTING iv_new = lv_new CHANGING cs_travel_admin = <s_buffer_travel>-gr_admin ).
" standard determinations
INSERT <s_buffer_travel> INTO TABLE et_travel.
ENDLOOP.
ENDMETHOD.
METHOD _delete.
CLEAR et_messages.
CHECK it_travel IS NOT INITIAL.
" Check for empty keys
READ TABLE it_travel TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = '0'.
IF sy-subrc = 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_no_key ) TO et_messages.
RETURN.
ENDIF.
DATA(lt_travel) = it_travel.
" Special case: record already in create buffer
LOOP AT lt_travel ASSIGNING FIELD-SYMBOL(<s_travel_delete>).
READ TABLE mt_create_buffer TRANSPORTING NO FIELDS WITH KEY travel_id = <s_travel_delete>-travel_id.
IF sy-subrc = 0.
INSERT VALUE #( travel_id = <s_travel_delete>-travel_id ) INTO TABLE mt_delete_buffer_2.
DELETE lt_travel.
ENDIF.
ENDLOOP.
IF iv_no_delete_check = abap_false.
DATA lt_travel_db TYPE SORTED TABLE OF /dmo/travel_id10 WITH UNIQUE KEY table_line.
SELECT travel_id FROM /dmo/travel10 FOR ALL ENTRIES IN @lt_travel WHERE travel_id = @lt_travel-travel_id INTO TABLE @lt_travel_db.
ENDIF.
" Check existence and append to delete buffer
LOOP AT lt_travel ASSIGNING <s_travel_delete>.
IF iv_no_delete_check = abap_false.
READ TABLE lt_travel_db ASSIGNING FIELD-SYMBOL(<s_travel_old>) WITH TABLE KEY table_line = <s_travel_delete>-travel_id.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_unknown travel_id = <s_travel_delete>-travel_id ) TO et_messages.
RETURN.
ENDIF.
ENDIF.
INSERT VALUE #( travel_id = <s_travel_delete>-travel_id ) INTO TABLE mt_delete_buffer_2.
ENDLOOP.
ENDMETHOD.
METHOD set_status_to_booked.
DATA lv_new TYPE abap_bool.
CLEAR et_messages.
" Check for empty travel ID
IF iv_travel_id IS INITIAL.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_no_key ) TO et_messages.
RETURN.
ENDIF.
READ TABLE mt_delete_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = iv_travel_id.
IF sy-subrc = 0." Error: Record of action marked for deletion
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_unknown travel_id = iv_travel_id ) TO et_messages.
RETURN.
ENDIF.
" Special case: Record in CREATE buffer
lv_new = abap_false.
READ TABLE mt_create_buffer ASSIGNING FIELD-SYMBOL(<s_travel>) WITH TABLE KEY travel_id = iv_travel_id.
IF sy-subrc = 0.
lv_new = abap_true.
ENDIF.
" Special case: Record in UPDATE buffer
IF <s_travel> IS NOT ASSIGNED.
READ TABLE mt_update_buffer ASSIGNING <s_travel> WITH TABLE KEY travel_id = iv_travel_id.
ENDIF.
" Usual case: Read record from DB and put it into the UPDATE buffer
IF <s_travel> IS NOT ASSIGNED.
SELECT SINGLE * FROM /dmo/travel10 WHERE travel_id = @iv_travel_id INTO @DATA(ls_travel) .
IF sy-subrc = 0.
INSERT ls_travel INTO TABLE mt_update_buffer ASSIGNING <s_travel>.
ENDIF.
ENDIF.
" Error
IF <s_travel> IS NOT ASSIGNED.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_unknown travel_id = iv_travel_id ) TO et_messages.
RETURN.
ENDIF.
<s_travel>-status = /dmo/if_flight_legacy10=>travel_status-booked.
_update_admin( EXPORTING iv_new = lv_new CHANGING cs_travel_admin = <s_travel>-gr_admin ).
ENDMETHOD.
METHOD save.
ASSERT mt_create_buffer_2 IS INITIAL.
ASSERT mt_update_buffer_2 IS INITIAL.
ASSERT mt_delete_buffer_2 IS INITIAL.
INSERT /dmo/travel10 FROM TABLE @mt_create_buffer.
UPDATE /dmo/travel10 FROM TABLE @mt_update_buffer.
DELETE /dmo/travel10 FROM TABLE @( CORRESPONDING #( mt_delete_buffer ) ).
ENDMETHOD.
METHOD initialize.
CLEAR: mt_create_buffer, mt_update_buffer, mt_delete_buffer.
ENDMETHOD.
METHOD check_travel_id.
rv_is_valid = abap_false.
IF iv_travel_id IS INITIAL.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_no_key ) TO ct_messages.
RETURN.
ENDIF.
IF line_exists( mt_delete_buffer[ travel_id = iv_travel_id ] ).
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_unknown travel_id = iv_travel_id ) TO ct_messages.
RETURN.
ENDIF.
IF line_exists( mt_create_buffer[ travel_id = iv_travel_id ] ).
rv_is_valid = abap_true.
RETURN.
ENDIF.
SELECT SINGLE FROM /dmo/travel10 FIELDS @abap_true WHERE travel_id = @iv_travel_id INTO @DATA(lv_db_exists).
IF lv_db_exists = abap_true.
rv_is_valid = abap_true.
RETURN.
ENDIF.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_unknown travel_id = iv_travel_id ) TO ct_messages.
ENDMETHOD.
METHOD cud_prep.
CLEAR et_travel.
CLEAR et_messages.
CHECK it_travel IS NOT INITIAL.
DATA lt_travel_c TYPE /dmo/if_flight_legacy10=>tt_travel.
DATA lt_travel_u TYPE /dmo/if_flight_legacy10=>tt_travel.
DATA lt_travel_d TYPE /dmo/if_flight_legacy10=>tt_travel.
DATA lt_travelx_u TYPE /dmo/if_flight_legacy10=>tt_travelx.
LOOP AT it_travel ASSIGNING FIELD-SYMBOL(<s_travel>).
READ TABLE it_travelx ASSIGNING FIELD-SYMBOL(<s_travelx>) WITH TABLE KEY travel_id = <s_travel>-travel_id.
IF sy-subrc <> 0.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_no_control
travel_id = <s_travel>-travel_id ) TO et_messages.
RETURN.
ENDIF.
CASE CONV /dmo/if_flight_legacy10=>action_code_enum( <s_travelx>-action_code ).
WHEN /dmo/if_flight_legacy10=>action_code-create.
INSERT <s_travel> INTO TABLE lt_travel_c.
WHEN /dmo/if_flight_legacy10=>action_code-update.
INSERT <s_travel> INTO TABLE lt_travel_u.
INSERT <s_travelx> INTO TABLE lt_travelx_u.
WHEN /dmo/if_flight_legacy10=>action_code-delete.
INSERT <s_travel> INTO TABLE lt_travel_d.
ENDCASE.
ENDLOOP.
_create( EXPORTING it_travel = lt_travel_c
IMPORTING et_travel = et_travel
et_messages = et_messages ).
_update( EXPORTING it_travel = lt_travel_u
it_travelx = lt_travelx_u
IMPORTING et_travel = DATA(lt_travel)
et_messages = DATA(lt_messages) ).
INSERT LINES OF lt_travel INTO TABLE et_travel.
APPEND LINES OF lt_messages TO et_messages.
_delete( EXPORTING it_travel = lt_travel_d
iv_no_delete_check = iv_no_delete_check
IMPORTING et_messages = lt_messages ).
APPEND LINES OF lt_messages TO et_messages.
ENDMETHOD.
METHOD cud_copy.
LOOP AT mt_create_buffer_2 ASSIGNING FIELD-SYMBOL(<s_create_buffer_2>).
READ TABLE mt_create_buffer ASSIGNING FIELD-SYMBOL(<s_create_buffer>) WITH TABLE KEY travel_id = <s_create_buffer_2>-travel_id.
IF sy-subrc <> 0.
INSERT VALUE #( travel_id = <s_create_buffer_2>-travel_id ) INTO TABLE mt_create_buffer ASSIGNING <s_create_buffer>.
ENDIF.
<s_create_buffer>-gr_data = <s_create_buffer_2>-gr_data.
<s_create_buffer>-gr_admin = <s_create_buffer_2>-gr_admin.
ENDLOOP.
LOOP AT mt_update_buffer_2 ASSIGNING FIELD-SYMBOL(<s_update_buffer_2>).
READ TABLE mt_update_buffer ASSIGNING FIELD-SYMBOL(<s_update_buffer>) WITH TABLE KEY travel_id = <s_update_buffer_2>-travel_id.
IF sy-subrc <> 0.
INSERT VALUE #( travel_id = <s_update_buffer_2>-travel_id ) INTO TABLE mt_update_buffer ASSIGNING <s_update_buffer>.
ENDIF.
<s_update_buffer>-gr_data = <s_update_buffer_2>-gr_data.
<s_update_buffer>-gr_admin = <s_update_buffer_2>-gr_admin.
ENDLOOP.
LOOP AT mt_delete_buffer_2 ASSIGNING FIELD-SYMBOL(<s_delete_buffer_2>).
DELETE mt_create_buffer WHERE travel_id = <s_delete_buffer_2>-travel_id.
IF sy-subrc = 0.
CONTINUE.
ENDIF.
DELETE mt_update_buffer WHERE travel_id = <s_delete_buffer_2>-travel_id.
INSERT <s_delete_buffer_2> INTO TABLE mt_delete_buffer.
ENDLOOP.
CLEAR: mt_create_buffer_2, mt_update_buffer_2, mt_delete_buffer_2.
ENDMETHOD.
METHOD cud_disc.
CLEAR: mt_create_buffer_2, mt_update_buffer_2, mt_delete_buffer_2.
ENDMETHOD.
METHOD get.
CLEAR et_travel.
CHECK it_travel IS NOT INITIAL.
SELECT * FROM /dmo/travel10 FOR ALL ENTRIES IN @it_travel WHERE travel_id = @it_travel-travel_id INTO TABLE @et_travel ##SELECT_FAE_WITH_LOB[DESCRIPTION].
IF iv_include_buffer = abap_true.
LOOP AT it_travel ASSIGNING FIELD-SYMBOL(<s_travel>).
READ TABLE mt_create_buffer ASSIGNING FIELD-SYMBOL(<s_create_buffer>) WITH TABLE KEY travel_id = <s_travel>-travel_id.
IF sy-subrc = 0.
INSERT <s_create_buffer> INTO TABLE et_travel.
ENDIF.
READ TABLE mt_update_buffer ASSIGNING FIELD-SYMBOL(<s_update_buffer>) WITH TABLE KEY travel_id = <s_travel>-travel_id.
IF sy-subrc = 0.
MODIFY TABLE et_travel FROM <s_update_buffer>.
ENDIF.
READ TABLE mt_delete_buffer TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_travel>-travel_id.
IF sy-subrc = 0.
DELETE et_travel WHERE travel_id = <s_travel>-travel_id.
ENDIF.
ENDLOOP.
ENDIF.
IF iv_include_temp_buffer = abap_true.
LOOP AT it_travel ASSIGNING <s_travel>.
READ TABLE mt_create_buffer_2 ASSIGNING <s_create_buffer> WITH TABLE KEY travel_id = <s_travel>-travel_id.
IF sy-subrc = 0.
DELETE et_travel WHERE travel_id = <s_travel>-travel_id.
INSERT <s_create_buffer> INTO TABLE et_travel.
ENDIF.
READ TABLE mt_update_buffer_2 ASSIGNING <s_update_buffer> WITH TABLE KEY travel_id = <s_travel>-travel_id.
IF sy-subrc = 0.
MODIFY TABLE et_travel FROM <s_update_buffer>.
ENDIF.
READ TABLE mt_delete_buffer_2 TRANSPORTING NO FIELDS WITH TABLE KEY travel_id = <s_travel>-travel_id.
IF sy-subrc = 0.
DELETE et_travel WHERE travel_id = <s_travel>-travel_id.
ENDIF.
ENDLOOP.
ENDIF.
ENDMETHOD.
METHOD _check.
rv_is_valid = abap_true.
IF NOT _check_agency( EXPORTING is_travel = is_travel
is_travelx = is_travelx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
IF NOT _check_customer( EXPORTING is_travel = is_travel
is_travelx = is_travelx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
IF NOT _check_dates( EXPORTING is_travel = is_travel
is_travelx = is_travelx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
IF NOT _check_status( EXPORTING is_travel = is_travel
is_travelx = is_travelx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
IF NOT _check_currency_code( EXPORTING is_travel = is_travel
is_travelx = is_travelx
iv_change_mode = iv_change_mode
CHANGING ct_messages = ct_messages ).
rv_is_valid = abap_false.
ENDIF.
ENDMETHOD.
METHOD _check_agency.
rv_is_valid = abap_true.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_travelx-agency_id = abap_true ).
IF mt_agency_id IS INITIAL.
SELECT DISTINCT agency_id FROM /dmo/agency10 INTO TABLE @mt_agency_id.
ENDIF.
READ TABLE mt_agency_id TRANSPORTING NO FIELDS WITH TABLE KEY table_line = is_travel-agency_id.
IF sy-subrc <> 0.
rv_is_valid = abap_false.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>agency_unkown agency_id = is_travel-agency_id ) TO ct_messages.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD _check_customer.
rv_is_valid = abap_true.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_travelx-customer_id = abap_true ).
rv_is_valid = lcl_common_checks=>is_customer_id_valid( EXPORTING iv_customer_id = is_travel-customer_id CHANGING ct_messages = ct_messages ).
ENDIF.
ENDMETHOD.
METHOD _check_dates.
rv_is_valid = abap_true.
" begin date
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_travelx-begin_date = abap_true ).
IF is_travel-begin_date IS INITIAL OR is_travel-begin_date = ''.
rv_is_valid = abap_false.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>no_begin_date travel_id = is_travel-travel_id ) TO ct_messages.
ENDIF.
ENDIF.
" end date
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_travelx-end_date = abap_true ).
IF is_travel-end_date IS INITIAL OR is_travel-end_date = ''.
rv_is_valid = abap_false.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>no_end_date travel_id = is_travel-travel_id ) TO ct_messages.
ENDIF.
ENDIF.
" begin date < = end date
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_travelx-begin_date = abap_true )
OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_travelx-end_date = abap_true ).
IF is_travel-begin_date IS NOT INITIAL AND is_travel-end_date IS NOT INITIAL.
IF is_travel-begin_date > is_travel-end_date.
rv_is_valid = abap_false.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>end_date_before_begin_date begin_date = is_travel-begin_date end_date = is_travel-end_date travel_id = is_travel-travel_id ) TO ct_messages.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD _check_status.
rv_is_valid = abap_true.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_travelx-status = abap_true.
CASE is_travel-status.
WHEN CONV /dmo/travel_status10( /dmo/if_flight_legacy10=>travel_status-booked ). " OK
WHEN CONV /dmo/travel_status10( /dmo/if_flight_legacy10=>travel_status-cancelled )." OK
WHEN CONV /dmo/travel_status10( /dmo/if_flight_legacy10=>travel_status-new ). " OK
WHEN CONV /dmo/travel_status10( /dmo/if_flight_legacy10=>travel_status-planned ). " OK
WHEN OTHERS.
rv_is_valid = abap_false.
APPEND NEW /dmo/cx_flight_legacy10( textid = /dmo/cx_flight_legacy10=>travel_status_invalid status = is_travel-status ) TO ct_messages.
ENDCASE.
ENDIF.
ENDMETHOD.
METHOD _check_currency_code.
rv_is_valid = abap_true.
IF is_travel-total_price IS INITIAL AND is_travel-booking_fee IS INITIAL AND is_travel-currency_code IS INITIAL.
" When no prices have been entered yet, the currency code may be initial
RETURN.
ENDIF.
IF iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-create
OR ( iv_change_mode = /dmo/cl_flight_legacy10=>change_mode-update AND is_travelx-currency_code = abap_true ).
rv_is_valid = lcl_common_checks=>is_currency_code_valid( EXPORTING iv_currency_code = is_travel-currency_code CHANGING ct_messages = ct_messages ).
ENDIF.
ENDMETHOD.
METHOD _update_admin.
cs_travel_admin-lastchangedby = sy-uname.
GET TIME STAMP FIELD cs_travel_admin-lastchangedat.
IF iv_new = abap_true.
" For a BO to be created we want created* and lastchanged* to be the same
cs_travel_admin-createdby = cs_travel_admin-lastchangedby.
cs_travel_admin-createdat = cs_travel_admin-lastchangedat.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
565,
62,
11321,
62,
42116,
5550,
20032,
17941,
25261,
29244,
6158,
4810,
3824,
6158,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
318,
62,
34415,
62,
8189,
62,
12102,
30023,
9863,
2751,
21628,
62,
34415,
62,
8189,
220,
220,
41876,
1220,
67,
5908,
14,
34415,
62,
8189,
940,
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,
5870,
15567,
2751,
220,
269,
83,
62,
37348,
1095,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
940,
14804,
926,
62,
361,
62,
83,
3064,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
271,
62,
12102,
8,
41876,
450,
499,
62,
2127,
21052,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
318,
62,
23144,
263,
62,
312,
62,
12102,
30023,
9863,
2751,
21628,
62,
23144,
263,
62,
312,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
23144,
263,
62,
312,
940,
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,
5870,
15567,
2751,
220,
269,
83,
62,
37348,
1095,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
940,
14804,
926,
62,
361,
62,
83,
3064,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
271,
62,
12102,
8,
41876,
450,
499,
62,
2127,
21052,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42715,
12,
26947,
45079,
62,
34415,
62,
8189,
41876,
311,
9863,
1961,
43679,
3963,
1220,
67,
5908,
14,
34415,
62,
8189,
940,
13315,
4725,
33866,
8924,
35374,
3084,
62,
1370,
13,
198,
220,
220,
220,
42715,
12,
26947,
45079,
62,
23144,
263,
62,
312,
41876,
311,
9863,
1961,
43679,
3963,
1220,
67,
5908,
14,
23144,
263,
62,
312,
940,
13315,
4725,
33866,
8924,
35374,
3084,
62,
1370,
13,
198,
10619,
31631,
13,
628,
198,
31631,
300,
565,
62,
11321,
62,
42116,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
318,
62,
34415,
62,
8189,
62,
12102,
13,
198,
220,
220,
220,
30301,
1503,
374,
85,
62,
271,
62,
12102,
13,
198,
220,
220,
220,
16876,
45079,
62,
34415,
62,
8189,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
366,
775,
815,
779,
17283,
4261,
34,
11,
475,
428,
318,
407,
2716,
329,
366,
6242,
2969,
329,
48323,
10130,
19193,
1,
198,
220,
220,
220,
220,
220,
33493,
360,
8808,
1268,
4177,
7395,
16034,
1312,
62,
34415,
39319,
43679,
2488,
16762,
62,
34415,
62,
8189,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
20832,
43679,
45079,
62,
34415,
62,
8189,
48213,
4303,
9863,
2751,
8005,
18930,
3698,
5258,
13315,
43679,
35374,
3084,
62,
1370,
796,
21628,
62,
34415,
62,
8189,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
374,
85,
62,
271,
62,
12102,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
43504,
10619,
12682,
1220,
67,
5908,
14,
66,
87,
62,
22560,
62,
1455,
1590,
940,
7,
2420,
312,
796,
1220,
67,
5908,
14,
66,
87,
62,
22560,
62,
1455,
1590,
940,
14804,
34415,
62,
34680,
220,
7395,
62,
8189,
796,
21628,
62,
34415,
62,
8189,
1267,
5390,
269,
83,
62,
37348,
1095,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
318,
62,
23144,
263,
62,
312,
62,
12102,
13,
198,
220,
220,
220,
30301,
1503,
374,
85,
62,
271,
62,
12102,
13,
198,
220,
220,
220,
16876,
45079,
62,
23144,
263,
62,
312,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
366,
1318,
743,
307,
845,
867,
4297,
11,
475,
356,
691,
3650,
262,
4522,
287,
262,
5387,
3084,
198,
220,
220,
220,
220,
220,
33493,
360,
8808,
1268,
4177,
6491,
62,
312,
16034,
1220,
67,
5908,
14,
23144,
263,
940,
39319,
43679,
2488,
16762,
62,
23144,
263,
62,
312,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
20832,
43679,
45079,
62,
23144,
263,
62,
312,
48213,
4303,
9863,
2751,
8005,
18930,
3698,
5258,
13315,
43679,
35374,
3084,
62,
1370,
796,
21628,
62,
23144,
263,
62,
312,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
374,
85,
62,
271,
62,
12102,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
43504,
10619,
12682,
1220,
67,
5908,
14,
66,
87,
62,
22560,
62,
1455,
1590,
940,
7,
2420,
312,
796,
1220,
67,
5908,
14,
66,
87,
62,
22560,
62,
1455,
1590,
940,
14804,
23144,
263,
62,
2954,
593,
220,
6491,
62,
312,
796,
21628,
62,
23144,
263,
62,
312,
1267,
5390,
269,
83,
62,
37348,
1095,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
628,
198,
31631,
300,
565,
62,
2070,
278,
62,
18608,
1732,
62,
22252,
5550,
20032,
17941,
25261,
29244,
6158,
4810,
3824,
6158,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
651,
62,
39098,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
39098,
8,
41876,
4526,
37,
5390,
300,
565,
62,
2070,
278,
62,
18608,
1732,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class abs definition abstract.
public section.
methods method1 abstract importing iv_value type f exporting ev_ret type i.
protected section.
methods method2 abstract importing iv_name type string exporting ev_ret type i.
methods add importing iv_a type i iv_b type i exporting ev_ret type i.
endclass.
class abs implementation.
method add.
ev_ret = iv_a + iv_b.
endmethod.
endclass.
| [
4871,
2352,
6770,
12531,
13,
198,
220,
1171,
2665,
13,
198,
220,
220,
220,
5050,
2446,
16,
12531,
33332,
21628,
62,
8367,
2099,
277,
39133,
819,
62,
1186,
2099,
1312,
13,
198,
220,
6861,
2665,
13,
198,
220,
220,
220,
5050,
2446,
17,
12531,
33332,
21628,
62,
3672,
2099,
4731,
39133,
819,
62,
1186,
2099,
1312,
13,
198,
220,
220,
220,
5050,
751,
33332,
21628,
62,
64,
2099,
1312,
21628,
62,
65,
2099,
1312,
39133,
819,
62,
1186,
2099,
1312,
13,
198,
437,
4871,
13,
198,
198,
4871,
2352,
7822,
13,
198,
220,
2446,
751,
13,
198,
220,
220,
220,
819,
62,
1186,
796,
21628,
62,
64,
1343,
21628,
62,
65,
13,
198,
220,
886,
24396,
13,
198,
437,
4871,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*---------------------------------------------------------------------*
* view related PAI modules
* generation date: 29.10.2020 at 16:39:56
* 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,
2808,
13,
940,
13,
42334,
379,
1467,
25,
2670,
25,
3980,
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
] |
"! <p class="shorttext synchronized" lang="en">Hebrew Right-To-Left</p>
"!
CLASS zcl_csr_ibm424_he_rtl DEFINITION
PUBLIC
INHERITING FROM zcl_csr_ibm424_he
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
METHODS get_name
REDEFINITION .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_csr_ibm424_he_rtl IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
CONCATENATE
'404146404148404151404171404251404256404541404546404551404556404562404569404571405441405445405641'
'406254406954417140454041454042454045454054454056454069454641464140465540465740466840467140514045'
'514540514671515155515540515740516840517140544041544045544140544540554041554042554045554054554056'
'554069564540574045584540585140585155625440684045685155695440714041714042714045714054714056714069'
INTO ngrams.
ENDMETHOD.
METHOD get_name.
name = 'IBM424_rtl'.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
1544,
11269,
6498,
12,
2514,
12,
18819,
3556,
79,
29,
198,
40484,
198,
31631,
1976,
565,
62,
6359,
81,
62,
571,
76,
40090,
62,
258,
62,
17034,
75,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
6359,
81,
62,
571,
76,
40090,
62,
258,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
6359,
81,
62,
571,
76,
40090,
62,
258,
62,
17034,
75,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
198,
220,
220,
220,
39962,
1404,
1677,
6158,
198,
220,
220,
220,
705,
26429,
20964,
26429,
18294,
26429,
1314,
1415,
3023,
1558,
1415,
3023,
1495,
1415,
3023,
11645,
1821,
34229,
15187,
2231,
3510,
1821,
30505,
15187,
2231,
3980,
1821,
29228,
16102,
2231,
3388,
1821,
33032,
1415,
2713,
2598,
1415,
2713,
43489,
26598,
42759,
6,
198,
220,
220,
220,
705,
29703,
24970,
1821,
37381,
2598,
1558,
15187,
2231,
26429,
18781,
26429,
22995,
1821,
2231,
2231,
1821,
4051,
2231,
1821,
3980,
2231,
1821,
3388,
34229,
2414,
1415,
2414,
1415,
3023,
35916,
26429,
37680,
26429,
35809,
1821,
24669,
1415,
2713,
15187,
2231,
6,
198,
220,
220,
220,
705,
20,
18781,
26598,
1415,
3134,
1314,
1314,
1314,
2816,
18742,
26598,
18458,
26598,
14656,
26598,
1558,
1415,
2713,
25644,
19,
21526,
1821,
30505,
2598,
1415,
2713,
43489,
1821,
2816,
26429,
18742,
26429,
13381,
1821,
2231,
2816,
26598,
30505,
1821,
3980,
6,
198,
220,
220,
220,
705,
2816,
1821,
3388,
3980,
2231,
1821,
3553,
1821,
2231,
3365,
2231,
1821,
38905,
1415,
2713,
5332,
1314,
3980,
24970,
1821,
3104,
1821,
2231,
35978,
18742,
3388,
4051,
30120,
1415,
3023,
1558,
1415,
3023,
1983,
15187,
33032,
1415,
2713,
2857,
1415,
2713,
3134,
1415,
3312,
24,
6,
198,
220,
220,
220,
39319,
299,
4546,
82,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
3672,
13,
628,
220,
220,
220,
1438,
796,
705,
9865,
44,
40090,
62,
17034,
75,
4458,
628,
220,
23578,
49273,
13,
628,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_filler~get_planned_events.
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) ).
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 ).
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 ).
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 ).
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 ).
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 ).
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 ).
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 ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
70,
926,
62,
6448,
62,
431,
62,
6513,
62,
69,
4665,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
70,
926,
62,
6448,
62,
431,
62,
69,
4665,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
70,
926,
62,
6448,
62,
431,
62,
69,
4665,
93,
1136,
62,
36800,
62,
31534,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
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,
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,
3440,
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,
3440,
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,
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,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
define _add_mu_token.
append initial line to &1 assigning <token>.
<token>-type = &2.
<token>-cond = &3.
<token>-level = &4.
<token>-content = &5.
end-of-definition.
class ltcl_mustache_render definition final
for testing
risk level
harmless duration short.
private section.
methods find_value for testing.
methods render_section for testing.
methods render_path for testing.
endclass.
class ltcl_mustache_render implementation.
method find_value.
data:
lr type ref to data,
lt_data_stack type zif_mustache=>ty_ref_tt,
ls_dummy type zif_mustache=>ty_struc,
lt_dummy type zif_mustache=>ty_struc_tt,
lv_act type string,
lx type ref to zcx_mustache_error.
ls_dummy-name = 'abc'.
ls_dummy-val = '123'.
append ls_dummy to lt_dummy.
"1----------------
clear lt_data_stack.
get reference of ls_dummy into lr.
append lr to lt_data_stack.
try .
lv_act = zcl_mustache_render=>find_value( it_data_stack = lt_data_stack iv_name = 'NAME' ).
cl_abap_unit_assert=>assert_equals( exp = 'abc' act = lv_act ).
catch zcx_mustache_error into lx.
cl_abap_unit_assert=>fail( lx->msg ).
endtry.
"2----------------
clear lt_data_stack.
get reference of lt_dummy into lr.
append lr to lt_data_stack.
try .
lv_act = zcl_mustache_render=>find_value( it_data_stack = lt_data_stack iv_name = 'Abc' ).
cl_abap_unit_assert=>assert_equals( exp = '123' act = lv_act ).
catch zcx_mustache_error into lx.
cl_abap_unit_assert=>fail( lx->msg ).
endtry.
"3----------------
clear lt_data_stack.
get reference of ls_dummy into lr.
append lr to lt_data_stack.
get reference of lt_dummy into lr.
append lr to lt_data_stack.
try .
lv_act = zcl_mustache_render=>find_value( it_data_stack = lt_data_stack iv_name = 'Abc' ).
cl_abap_unit_assert=>assert_equals( exp = '123' act = lv_act ).
lv_act = zcl_mustache_render=>find_value( it_data_stack = lt_data_stack iv_name = 'name' ).
cl_abap_unit_assert=>assert_equals( exp = 'abc' act = lv_act ).
catch zcx_mustache_error into lx.
cl_abap_unit_assert=>fail( lx->msg ).
endtry.
"4----------------
data ls_struc type zcl_mustache_test=>ty_dummy.
ls_struc-attr-age = 10.
clear lt_data_stack.
get reference of ls_struc into lr.
append lr to lt_data_stack.
try .
lv_act = zcl_mustache_render=>find_value( it_data_stack = lt_data_stack iv_name = 'attr-age' ).
cl_abap_unit_assert=>assert_equals( exp = '10' act = lv_act ).
catch zcx_mustache_error into lx.
cl_abap_unit_assert=>fail( lx->msg ).
endtry.
endmethod. " find_value.
method render_section.
data:
ls_statics type zcl_mustache_render=>ty_context,
ls_simple type zcl_mustache_test=>ty_dummy,
lt_complex type zif_mustache=>ty_struc_tt,
lv_count type i,
lv_idx type i,
iv_complex_test type abap_bool,
lv_exp type string,
lv_act type string,
lt_act type string_table,
lx type ref to zcx_mustache_error.
zcl_mustache_test=>get_test_case( importing ev_count = lv_count ).
zcl_mustache_test=>get_test_data( importing es_simple = ls_simple
et_complex = lt_complex ).
ls_statics-x_format = cl_abap_format=>e_html_text.
do lv_count times.
lv_idx = sy-index.
zcl_mustache_test=>get_test_case(
exporting
iv_index = lv_idx
importing
ev_output = lv_exp
et_tokens = ls_statics-tokens
ev_complex_test = iv_complex_test ).
clear lt_act.
try .
if iv_complex_test = abap_true.
zcl_mustache_render=>render_section(
exporting
is_statics = ls_statics
i_data = lt_complex
changing
ct_lines = lt_act ).
else.
zcl_mustache_render=>render_section(
exporting
is_statics = ls_statics
i_data = ls_simple
changing
ct_lines = lt_act ).
endif.
lv_act = zcl_mustache_utils=>join_strings( it_tab = lt_act iv_sep = '' ).
cl_abap_unit_assert=>assert_equals(
exp = lv_exp
act = lv_act
msg = |render_section, case { lv_idx }| ).
catch zcx_mustache_error into lx.
cl_abap_unit_assert=>fail( lx->msg ).
endtry.
enddo.
endmethod. "render_section
method render_path.
data ls_test type zcl_mustache_test=>ty_test_case.
data ls_statics type zcl_mustache_render=>ty_context.
data ls_data type zcl_mustache_test=>ty_dummy.
data lt_act type string_table.
data lv_act type string.
data lx type ref to zcx_mustache_error.
field-symbols <token> like line of ls_test-tokens.
ls_data-name = 'Vasya'.
ls_data-attr-male = abap_true.
ls_data-attr-age = 30.
ls_test-template = '{{name}}: age {{attr-age}}'.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-etag '' 1 'name'.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-static '' 1 `: age `.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-etag '' 1 'attr-age'.
ls_test-output = 'Vasya: age 30'.
try .
zcl_mustache_render=>render_section(
exporting
is_statics = ls_statics
i_data = ls_data
changing
ct_lines = lt_act ).
lv_act = zcl_mustache_utils=>join_strings( it_tab = lt_act iv_sep = '' ).
cl_abap_unit_assert=>assert_equals(
exp = ls_test-output
act = lv_act ).
catch zcx_mustache_error into lx.
cl_abap_unit_assert=>fail( lx->msg ).
endtry.
clear: ls_statics-tokens, lt_act.
ls_test-template = '{{name}}: {{#attr-male}}Male{{/attr-male}}{{#attr-female}}Female{{/attr-female}}'.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-etag '' 1 'name'.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-static '' 1 `: `.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-section '=' 1 'attr-male'.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-static '' 2 `Male`.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-section '=' 1 'attr-female'.
_add_mu_token ls_statics-tokens zif_mustache=>c_token_type-static '' 2 `Female`.
ls_test-output = 'Vasya: Male'.
try .
zcl_mustache_render=>render_section(
exporting
is_statics = ls_statics
i_data = ls_data
changing
ct_lines = lt_act ).
lv_act = zcl_mustache_utils=>join_strings( it_tab = lt_act iv_sep = '' ).
cl_abap_unit_assert=>assert_equals(
exp = ls_test-output
act = lv_act ).
catch zcx_mustache_error into lx.
cl_abap_unit_assert=>fail( lx->msg ).
endtry.
endmethod.
endclass.
| [
13086,
4808,
2860,
62,
30300,
62,
30001,
13,
198,
220,
24443,
4238,
1627,
284,
1222,
16,
38875,
1279,
30001,
28401,
198,
220,
1279,
30001,
29,
12,
4906,
220,
220,
220,
796,
1222,
17,
13,
198,
220,
1279,
30001,
29,
12,
17561,
220,
220,
220,
796,
1222,
18,
13,
198,
220,
1279,
30001,
29,
12,
5715,
220,
220,
796,
1222,
19,
13,
198,
220,
1279,
30001,
29,
12,
11299,
796,
1222,
20,
13,
198,
437,
12,
1659,
12,
46758,
13,
198,
198,
4871,
300,
83,
565,
62,
27238,
4891,
62,
13287,
6770,
2457,
198,
220,
329,
4856,
198,
220,
2526,
1241,
198,
220,
23585,
9478,
1790,
13,
628,
220,
2839,
2665,
13,
628,
220,
220,
220,
5050,
1064,
62,
8367,
220,
220,
220,
220,
329,
4856,
13,
198,
220,
220,
220,
5050,
8543,
62,
5458,
329,
4856,
13,
198,
220,
220,
220,
5050,
8543,
62,
6978,
329,
4856,
13,
198,
198,
437,
4871,
13,
198,
198,
4871,
300,
83,
565,
62,
27238,
4891,
62,
13287,
7822,
13,
628,
220,
2446,
1064,
62,
8367,
13,
628,
220,
220,
220,
1366,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
81,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
1366,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
7890,
62,
25558,
2099,
1976,
361,
62,
27238,
4891,
14804,
774,
62,
5420,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
67,
13513,
220,
220,
220,
220,
220,
2099,
1976,
361,
62,
27238,
4891,
14804,
774,
62,
19554,
66,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
67,
13513,
220,
220,
220,
220,
220,
2099,
1976,
361,
62,
27238,
4891,
14804,
774,
62,
19554,
66,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
529,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
87,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
1976,
66,
87,
62,
27238,
4891,
62,
18224,
13,
628,
220,
220,
220,
43979,
62,
67,
13513,
12,
3672,
796,
705,
39305,
4458,
198,
220,
220,
220,
43979,
62,
67,
13513,
12,
2100,
220,
796,
705,
10163,
4458,
198,
220,
220,
220,
24443,
43979,
62,
67,
13513,
284,
300,
83,
62,
67,
13513,
13,
628,
220,
220,
220,
366,
16,
1783,
198,
220,
220,
220,
1598,
300,
83,
62,
7890,
62,
25558,
13,
198,
220,
220,
220,
651,
4941,
286,
43979,
62,
67,
13513,
656,
300,
81,
13,
198,
220,
220,
220,
24443,
300,
81,
284,
300,
83,
62,
7890,
62,
25558,
13,
628,
220,
220,
220,
1949,
764,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
529,
796,
1976,
565,
62,
27238,
4891,
62,
13287,
14804,
19796,
62,
8367,
7,
340,
62,
7890,
62,
25558,
796,
300,
83,
62,
7890,
62,
25558,
21628,
62,
3672,
796,
705,
20608,
6,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
1033,
796,
705,
39305,
6,
719,
796,
300,
85,
62,
529,
6739,
198,
220,
220,
220,
220,
220,
4929,
1976,
66,
87,
62,
27238,
4891,
62,
18224,
656,
300,
87,
13,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
300,
87,
3784,
19662,
6739,
198,
220,
220,
220,
886,
28311,
13,
628,
220,
220,
220,
366,
17,
1783,
198,
220,
220,
220,
1598,
300,
83,
62,
7890,
62,
25558,
13,
198,
220,
220,
220,
651,
4941,
286,
300,
83,
62,
67,
13513,
656,
300,
81,
13,
198,
220,
220,
220,
24443,
300,
81,
284,
300,
83,
62,
7890,
62,
25558,
13,
628,
220,
220,
220,
1949,
764,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
529,
796,
1976,
565,
62,
27238,
4891,
62,
13287,
14804,
19796,
62,
8367,
7,
340,
62,
7890,
62,
25558,
796,
300,
83,
62,
7890,
62,
25558,
21628,
62,
3672,
796,
705,
4826,
66,
6,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
1033,
796,
705,
10163,
6,
719,
796,
300,
85,
62,
529,
6739,
198,
220,
220,
220,
220,
220,
4929,
1976,
66,
87,
62,
27238,
4891,
62,
18224,
656,
300,
87,
13,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
300,
87,
3784,
19662,
6739,
198,
220,
220,
220,
886,
28311,
13,
628,
220,
220,
220,
366,
18,
1783,
198,
220,
220,
220,
1598,
300,
83,
62,
7890,
62,
25558,
13,
198,
220,
220,
220,
651,
4941,
286,
43979,
62,
67,
13513,
656,
300,
81,
13,
198,
220,
220,
220,
24443,
300,
81,
284,
300,
83,
62,
7890,
62,
25558,
13,
198,
220,
220,
220,
651,
4941,
286,
300,
83,
62,
67,
13513,
656,
300,
81,
13,
198,
220,
220,
220,
24443,
300,
81,
284,
300,
83,
62,
7890,
62,
25558,
13,
628,
220,
220,
220,
1949,
764,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
529,
796,
1976,
565,
62,
27238,
4891,
62,
13287,
14804,
19796,
62,
8367,
7,
340,
62,
7890,
62,
25558,
796,
300,
83,
62,
7890,
62,
25558,
21628,
62,
3672,
796,
705,
4826,
66,
6,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
1033,
796,
705,
10163,
6,
719,
796,
300,
85,
62,
529,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
529,
796,
1976,
565,
62,
27238,
4891,
62,
13287,
14804,
19796,
62,
8367,
7,
340,
62,
7890,
62,
25558,
796,
300,
83,
62,
7890,
62,
25558,
21628,
62,
3672,
796,
705,
3672,
6,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
1033,
796,
705,
39305,
6,
719,
796,
300,
85,
62,
529,
6739,
198,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Include Z_ABAPB2E_MACROS_05_MACROS
*&---------------------------------------------------------------------*
*--Macro to change ALV column settings in field catalog table ( form prepare_field_catalog )
DEFINE _adjust_alv_column.
READ TABLE et_fieldcat WITH KEY fieldname = &1 ASSIGNING <field>.
IF sy-subrc = 0.
<field>-&2 = &3.
ELSE.
MESSAGE e001(00) WITH 'Unknown column ' &1.
ENDIF.
END-OF-DEFINITION.
*--Macro to add sort fields to alv sorting table ( form prepare_sorting )
DEFINE _sort_alv_column.
ADD 1 TO ls_sort-spos.
ls_sort-fieldname = &1 .
ls_sort-up = 'X'.
APPEND ls_sort TO et_sort.
END-OF-DEFINITION.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
62,
6242,
2969,
33,
17,
36,
62,
44721,
49,
2640,
62,
2713,
62,
44721,
49,
2640,
198,
9,
5,
10097,
30934,
9,
628,
198,
9,
438,
14155,
305,
284,
1487,
8355,
53,
5721,
6460,
220,
287,
2214,
18388,
3084,
357,
1296,
8335,
62,
3245,
62,
9246,
11794,
1267,
198,
220,
23449,
8881,
4808,
23032,
62,
282,
85,
62,
28665,
13,
198,
220,
220,
220,
20832,
43679,
2123,
62,
3245,
9246,
13315,
35374,
2214,
3672,
796,
1222,
16,
24994,
3528,
15871,
1279,
3245,
28401,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
1279,
3245,
29,
12,
5,
17,
796,
1222,
18,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
304,
8298,
7,
405,
8,
13315,
705,
20035,
5721,
705,
1222,
16,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
12,
19238,
12,
7206,
20032,
17941,
13,
198,
198,
9,
438,
14155,
305,
284,
751,
3297,
7032,
284,
435,
85,
29407,
3084,
220,
220,
357,
1296,
8335,
62,
82,
24707,
1267,
198,
220,
23449,
8881,
4808,
30619,
62,
282,
85,
62,
28665,
13,
198,
220,
220,
220,
27841,
352,
5390,
43979,
62,
30619,
12,
82,
1930,
13,
198,
220,
220,
220,
43979,
62,
30619,
12,
3245,
3672,
796,
1222,
16,
764,
198,
220,
220,
220,
43979,
62,
30619,
12,
929,
796,
705,
55,
4458,
198,
220,
220,
220,
43504,
10619,
43979,
62,
30619,
5390,
220,
2123,
62,
30619,
13,
198,
220,
23578,
12,
19238,
12,
7206,
20032,
17941,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_adu_texts DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_adu_texts.
CLASS-METHODS get_instance
RETURNING
VALUE(result) TYPE REF TO zif_adu_texts.
METHODS constructor.
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-DATA:
instance TYPE REF TO zif_adu_texts.
ENDCLASS.
CLASS zcl_adu_texts IMPLEMENTATION.
METHOD get_instance.
result = COND #( WHEN instance IS BOUND THEN instance ELSE NEW zcl_adu_texts( ) ).
ENDMETHOD.
METHOD constructor.
instance = me.
ENDMETHOD.
METHOD zif_adu_texts~itf_to_string.
DATA(text_stream) = zif_adu_texts~itf_to_text_stream( itf = itf language = language ).
result =
REDUCE #(
INIT text_string TYPE string
FOR text IN text_stream
NEXT text_string = COND #( WHEN text_string IS INITIAL
THEN text-line
ELSE |{ text_string }| &
|{ newline_char }| &
|{ text-line }| ) ).
ENDMETHOD.
METHOD zif_adu_texts~itf_to_text_stream.
CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
EXPORTING
language = language
TABLES
itf_text = itf
text_stream = result.
ENDMETHOD.
METHOD zif_adu_texts~read_standard_text.
result =
zif_adu_texts~itf_to_text_stream(
itf = zif_adu_texts~read_standard_text_itf( text = text
language = language
tag_replace = tag_replace )
language = language ).
ENDMETHOD.
METHOD zif_adu_texts~read_standard_text_itf.
DATA:
lt_tlines TYPE tline_tab.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'ST'
language = language
name = text
object = 'TEXT'
TABLES
lines = lt_tlines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 9.
IF sy-subrc <> 0.
RETURN. " TODO: Raise Exception
ENDIF.
LOOP AT tag_replace REFERENCE INTO DATA(lr_tag_replace).
REPLACE ALL OCCURRENCES OF lr_tag_replace->tag IN TABLE lt_tlines WITH lr_tag_replace->text.
ENDLOOP.
result = lt_tlines.
ENDMETHOD.
METHOD zif_adu_texts~read_textpool.
READ TEXTPOOL program INTO result LANGUAGE language.
ENDMETHOD.
METHOD zif_adu_texts~read_textpool_single.
DATA(textpool) =
zif_adu_texts~read_textpool(
program = program
language = language ).
TRY.
result = textpool[ id = id key = key ]-entry.
CATCH cx_sy_itab_line_not_found.
CLEAR: result.
ENDTRY.
ENDMETHOD.
METHOD zif_adu_texts~text_string_to_tab.
CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
EXPORTING
text = text
TABLES
ftext_tab = result.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
324,
84,
62,
5239,
82,
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,
1976,
361,
62,
324,
84,
62,
5239,
82,
13,
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,
20274,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
324,
84,
62,
5239,
82,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42715,
12,
26947,
25,
198,
220,
220,
220,
220,
220,
4554,
41876,
4526,
37,
5390,
1976,
361,
62,
324,
84,
62,
5239,
82,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
324,
84,
62,
5239,
82,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
39098,
13,
628,
220,
220,
220,
1255,
796,
7102,
35,
1303,
7,
42099,
4554,
3180,
347,
15919,
42243,
4554,
17852,
5188,
12682,
1976,
565,
62,
324,
84,
62,
5239,
82,
7,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
4554,
796,
502,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
324,
84,
62,
5239,
82,
93,
270,
69,
62,
1462,
62,
8841,
13,
628,
220,
220,
220,
42865,
7,
5239,
62,
5532,
8,
796,
1976,
361,
62,
324,
84,
62,
5239,
82,
93,
270,
69,
62,
1462,
62,
5239,
62,
5532,
7,
340,
69,
796,
340,
69,
3303,
796,
3303,
6739,
628,
220,
220,
220,
1255,
796,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
52,
5222,
1303,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3268,
2043,
2420,
62,
8841,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7473,
2420,
3268,
2420,
62,
5532,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39726,
2420,
62,
8841,
796,
7102,
35,
1303,
7,
42099,
2420,
62,
8841,
3180,
3268,
2043,
12576,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
42243,
2420,
12,
1370,
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,
17852,
5188,
930,
90,
2420,
62,
8841,
1782,
91,
1222,
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,
930,
90,
649,
1370,
62,
10641,
1782,
91,
1222,
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,
930,
90,
2420,
12,
1370,
1782,
91,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
324,
84,
62,
5239,
82,
93,
270,
69,
62,
1462,
62,
5239,
62,
5532,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
10943,
15858,
62,
2043,
37,
62,
10468,
62,
2257,
32235,
62,
32541,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3303,
220,
220,
220,
796,
3303,
198,
220,
220,
220,
220,
220,
309,
6242,
28378,
198,
220,
220,
220,
220,
220,
220,
220,
340,
69,
62,
5239,
220,
220,
220,
796,
340,
69,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
62,
5532,
796,
1255,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
324,
84,
62,
5239,
82,
93,
961,
62,
20307,
62,
5239,
13,
628,
220,
220,
220,
1255,
796,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
361,
62,
324,
84,
62,
5239,
82,
93,
270,
69,
62,
1462,
62,
5239,
62,
5532,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
69,
220,
220,
220,
220,
220,
796,
1976,
361,
62,
324,
84,
62,
5239,
82,
93,
961,
62,
20307,
62,
5239,
62,
270,
69,
7,
2420,
220,
220,
220,
220,
220,
220,
220,
796,
2420,
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,
3303,
220,
220,
220,
796,
3303,
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,
7621,
62,
33491,
796,
7621,
62,
33491,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3303,
796,
3303,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
324,
84,
62,
5239,
82,
93,
961,
62,
20307,
62,
5239,
62,
270,
69,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_check_comment_type DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor.
PROTECTED SECTION.
METHODS inspect_tokens REDEFINITION.
PRIVATE SECTION.
METHODS has_wrong_comment_type IMPORTING statement TYPE sstmnt RETURNING VALUE(result) TYPE abap_bool.
METHODS get_first_character IMPORTING token TYPE stokesx RETURNING VALUE(result) TYPE char1.
ENDCLASS.
CLASS y_check_comment_type IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
settings-disable_threshold_selection = abap_true.
settings-threshold = 0.
settings-documentation = |{ c_docs_path-checks }comment-type.md|.
set_check_message( 'Comment with ", not with *!' ).
ENDMETHOD.
METHOD inspect_tokens.
CHECK statement-type = 'P'.
CHECK has_wrong_comment_type( statement ).
DATA(configuration) = detect_check_configuration( statement ).
IF configuration IS INITIAL.
RETURN.
ENDIF.
raise_error( statement_level = statement-level
statement_index = index
statement_from = statement-from
error_priority = configuration-prio ).
ENDMETHOD.
METHOD has_wrong_comment_type.
LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING FIELD-SYMBOL(<token>)
FROM statement-from TO statement-to.
IF get_first_character( <token> ) = '*'.
result = abap_true.
RETURN.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD get_first_character.
result = token-str(1).
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9122,
62,
23893,
62,
4906,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
29244,
6158,
44731,
764,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
468,
62,
36460,
62,
23893,
62,
4906,
30023,
9863,
2751,
2643,
41876,
264,
301,
76,
429,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
450,
499,
62,
30388,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
11085,
62,
22769,
30023,
9863,
2751,
11241,
41876,
336,
3369,
87,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
1149,
16,
13,
198,
10619,
31631,
13,
198,
198,
31631,
331,
62,
9122,
62,
23893,
62,
4906,
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,
6460,
12,
40223,
62,
400,
10126,
62,
49283,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
6460,
12,
400,
10126,
796,
657,
13,
198,
220,
220,
220,
6460,
12,
22897,
341,
796,
930,
90,
269,
62,
31628,
62,
6978,
12,
42116,
1782,
23893,
12,
4906,
13,
9132,
91,
13,
628,
220,
220,
220,
900,
62,
9122,
62,
20500,
7,
705,
21357,
351,
33172,
407,
351,
1635,
13679,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
10104,
62,
83,
482,
641,
13,
628,
220,
220,
220,
5870,
25171,
2643,
12,
4906,
796,
705,
47,
4458,
198,
220,
220,
220,
5870,
25171,
468,
62,
36460,
62,
23893,
62,
4906,
7,
2643,
6739,
628,
220,
220,
220,
42865,
7,
11250,
3924,
8,
796,
4886,
62,
9122,
62,
11250,
3924,
7,
2643,
6739,
628,
220,
220,
220,
16876,
8398,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
5298,
62,
18224,
7,
2643,
62,
5715,
796,
2643,
12,
5715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
9630,
796,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
6738,
220,
796,
2643,
12,
6738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
49336,
220,
796,
8398,
12,
3448,
78,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
468,
62,
36460,
62,
23893,
62,
4906,
13,
198,
220,
220,
220,
17579,
3185,
5161,
1006,
62,
35836,
62,
37153,
3784,
1136,
62,
83,
482,
641,
7,
1267,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
30001,
43734,
198,
220,
220,
220,
16034,
2643,
12,
6738,
5390,
2643,
12,
1462,
13,
198,
220,
220,
220,
220,
220,
16876,
651,
62,
11085,
62,
22769,
7,
1279,
30001,
29,
1267,
796,
705,
9,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
21982,
3185,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
11085,
62,
22769,
13,
198,
220,
220,
220,
1255,
796,
11241,
12,
2536,
7,
16,
737,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_SERIALIZATION
*&---------------------------------------------------------------------*
* All object serializing classes
INCLUDE zabapgit_object_acid.
INCLUDE zabapgit_object_auth.
INCLUDE zabapgit_object_oo_functions.
INCLUDE zabapgit_object_clas.
INCLUDE zabapgit_object_ddls.
INCLUDE zabapgit_object_doct.
INCLUDE zabapgit_object_docv.
INCLUDE zabapgit_object_doma.
INCLUDE zabapgit_object_dtel.
INCLUDE zabapgit_object_enho.
INCLUDE zabapgit_object_enhs.
INCLUDE zabapgit_object_enqu.
INCLUDE zabapgit_object_ensc.
INCLUDE zabapgit_object_fugr.
INCLUDE zabapgit_object_iarp.
INCLUDE zabapgit_object_iasp.
INCLUDE zabapgit_object_iatu.
INCLUDE zabapgit_object_intf.
INCLUDE zabapgit_object_msag.
INCLUDE zabapgit_object_nrob.
INCLUDE zabapgit_object_para.
INCLUDE zabapgit_object_pinf.
INCLUDE zabapgit_object_prog.
INCLUDE zabapgit_object_sfbf.
INCLUDE zabapgit_object_sfbs.
INCLUDE zabapgit_object_sfpf.
INCLUDE zabapgit_object_sfpi.
INCLUDE zabapgit_object_sfsw.
INCLUDE zabapgit_object_shi3.
INCLUDE zabapgit_object_shlp.
INCLUDE zabapgit_object_sicf.
INCLUDE zabapgit_object_smim.
INCLUDE zabapgit_object_splo.
INCLUDE zabapgit_object_ssfo.
INCLUDE zabapgit_object_ssst.
INCLUDE zabapgit_object_susc.
INCLUDE zabapgit_object_suso.
INCLUDE zabapgit_object_tabl_valid.
INCLUDE zabapgit_object_tabl.
INCLUDE zabapgit_object_tobj.
INCLUDE zabapgit_object_tran.
INCLUDE zabapgit_object_ttyp.
INCLUDE zabapgit_object_type.
INCLUDE zabapgit_object_vcls.
INCLUDE zabapgit_object_view.
INCLUDE zabapgit_object_w3xx.
INCLUDE zabapgit_object_wdya.
INCLUDE zabapgit_object_wdyn.
INCLUDE zabapgit_object_webi.
INCLUDE zabapgit_object_xslt.
INCLUDE zabapgit_object_oo_factory.
| [
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,
35009,
12576,
14887,
6234,
198,
9,
5,
10097,
30934,
9,
198,
198,
9,
1439,
2134,
11389,
2890,
6097,
198,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
46309,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
18439,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
2238,
62,
12543,
2733,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
565,
292,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
1860,
7278,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
4598,
310,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
15390,
85,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
3438,
64,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
28664,
417,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
268,
8873,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
268,
11994,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
268,
421,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
641,
66,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
69,
1018,
81,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
72,
5117,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
4448,
79,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
5375,
84,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
600,
69,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
907,
363,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
77,
22609,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
1845,
64,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
79,
10745,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
1676,
70,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
28202,
19881,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
28202,
1443,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
28202,
79,
69,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
28202,
14415,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
28202,
2032,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
44019,
18,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
1477,
34431,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
21383,
69,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
5796,
320,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
22018,
78,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
824,
6513,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
824,
301,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
82,
16241,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
82,
385,
78,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
8658,
75,
62,
12102,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
8658,
75,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
83,
26801,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
2213,
272,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
83,
28004,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
4906,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
85,
565,
82,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
1177,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
86,
18,
5324,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
16993,
3972,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
16993,
2047,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
732,
8482,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
34223,
2528,
13,
198,
1268,
5097,
52,
7206,
1976,
397,
499,
18300,
62,
15252,
62,
2238,
62,
69,
9548,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_html_action_utils DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS parse_post_data
IMPORTING
!it_post_data TYPE cnht_post_data_tab
RETURNING
VALUE(rt_fields) TYPE tihttpnvp .
CLASS-METHODS parse_fields
IMPORTING
!iv_string TYPE clike
RETURNING
VALUE(rt_fields) TYPE tihttpnvp .
CLASS-METHODS parse_fields_upper_case_name
IMPORTING
!iv_string TYPE clike
RETURNING
VALUE(rt_fields) TYPE tihttpnvp .
CLASS-METHODS get_field
IMPORTING
!iv_name TYPE string
!it_field TYPE tihttpnvp
!iv_decode TYPE abap_bool DEFAULT abap_false
CHANGING
!cg_field TYPE any .
CLASS-METHODS jump_encode
IMPORTING
!iv_obj_type TYPE tadir-object
!iv_obj_name TYPE tadir-obj_name
RETURNING
VALUE(rv_string) TYPE string .
CLASS-METHODS jump_decode
IMPORTING
!iv_string TYPE clike
EXPORTING
!ev_obj_type TYPE tadir-object
!ev_obj_name TYPE tadir-obj_name
RAISING
zcx_abapgit_exception .
CLASS-METHODS dir_encode
IMPORTING
!iv_path TYPE string
RETURNING
VALUE(rv_string) TYPE string .
CLASS-METHODS dir_decode
IMPORTING
!iv_string TYPE clike
RETURNING
VALUE(rv_path) TYPE string
RAISING
zcx_abapgit_exception .
CLASS-METHODS file_encode
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
!ig_file TYPE any
RETURNING
VALUE(rv_string) TYPE string .
CLASS-METHODS obj_encode
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
!ig_object TYPE any
RETURNING
VALUE(rv_string) TYPE string .
CLASS-METHODS file_obj_decode
IMPORTING
!iv_string TYPE clike
EXPORTING
!ev_key TYPE zif_abapgit_persistence=>ty_repo-key
!eg_file TYPE any "assuming ty_file
!eg_object TYPE any "assuming ty_item
RAISING
zcx_abapgit_exception .
CLASS-METHODS dbkey_encode
IMPORTING
!is_key TYPE zif_abapgit_persistence=>ty_content
RETURNING
VALUE(rv_string) TYPE string .
CLASS-METHODS dbkey_decode
IMPORTING
!iv_string TYPE clike
RETURNING
VALUE(rs_key) TYPE zif_abapgit_persistence=>ty_content .
CLASS-METHODS stage_decode
IMPORTING
!iv_getdata TYPE clike
EXPORTING
!ev_key TYPE zif_abapgit_persistence=>ty_repo-key
!ev_seed TYPE string
RAISING
zcx_abapgit_exception .
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-METHODS field_keys_to_upper
CHANGING
!ct_fields TYPE tihttpnvp .
CLASS-METHODS add_field
IMPORTING
!iv_name TYPE string
!ig_field TYPE any
CHANGING
!ct_field TYPE tihttpnvp .
CLASS-METHODS unescape
IMPORTING
!iv_string TYPE string
RETURNING
VALUE(rv_string) TYPE string .
ENDCLASS.
CLASS ZCL_ABAPGIT_HTML_ACTION_UTILS IMPLEMENTATION.
METHOD add_field.
DATA ls_field LIKE LINE OF ct_field.
FIELD-SYMBOLS <lg_src> TYPE any.
ls_field-name = iv_name.
CASE cl_abap_typedescr=>describe_by_data( ig_field )->kind.
WHEN cl_abap_typedescr=>kind_elem.
ls_field-value = ig_field.
WHEN cl_abap_typedescr=>kind_struct.
ASSIGN COMPONENT iv_name OF STRUCTURE ig_field TO <lg_src>.
ASSERT <lg_src> IS ASSIGNED.
ls_field-value = <lg_src>.
WHEN OTHERS.
ASSERT 0 = 1.
ENDCASE.
APPEND ls_field TO ct_field.
ENDMETHOD.
METHOD dbkey_decode.
DATA: lt_fields TYPE tihttpnvp.
lt_fields = parse_fields_upper_case_name( cl_http_utility=>unescape_url( |{ iv_string }| ) ).
get_field( EXPORTING iv_name = 'TYPE'
it_field = lt_fields CHANGING cg_field = rs_key-type ).
get_field( EXPORTING iv_name = 'VALUE'
it_field = lt_fields CHANGING cg_field = rs_key-value ).
ENDMETHOD.
METHOD dbkey_encode.
DATA: lt_fields TYPE tihttpnvp.
add_field( EXPORTING iv_name = 'TYPE'
ig_field = is_key-type CHANGING ct_field = lt_fields ).
add_field( EXPORTING iv_name = 'VALUE'
ig_field = is_key-value CHANGING ct_field = lt_fields ).
rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ).
ENDMETHOD.
METHOD dir_decode.
DATA: lt_fields TYPE tihttpnvp.
lt_fields = parse_fields( iv_string ).
get_field( EXPORTING iv_name = 'PATH'
it_field = lt_fields CHANGING cg_field = rv_path ).
ENDMETHOD.
METHOD dir_encode.
DATA: lt_fields TYPE tihttpnvp.
add_field( EXPORTING iv_name = 'PATH'
ig_field = iv_path CHANGING ct_field = lt_fields ).
rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ).
ENDMETHOD.
METHOD field_keys_to_upper.
FIELD-SYMBOLS <ls_field> LIKE LINE OF ct_fields.
LOOP AT ct_fields ASSIGNING <ls_field>.
<ls_field>-name = to_upper( <ls_field>-name ).
ENDLOOP.
ENDMETHOD.
METHOD file_encode.
DATA: lt_fields TYPE tihttpnvp.
add_field( EXPORTING iv_name = 'KEY'
ig_field = iv_key CHANGING ct_field = lt_fields ).
add_field( EXPORTING iv_name = 'PATH'
ig_field = ig_file CHANGING ct_field = lt_fields ).
add_field( EXPORTING iv_name = 'FILENAME'
ig_field = ig_file CHANGING ct_field = lt_fields ).
rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ).
ENDMETHOD.
METHOD file_obj_decode.
DATA: lt_fields TYPE tihttpnvp.
ASSERT eg_file IS SUPPLIED OR eg_object IS SUPPLIED OR ev_key IS SUPPLIED.
CLEAR: ev_key, eg_file, eg_object.
lt_fields = parse_fields_upper_case_name( iv_string ).
get_field( EXPORTING iv_name = 'KEY'
it_field = lt_fields CHANGING cg_field = ev_key ).
IF eg_file IS SUPPLIED.
get_field( EXPORTING iv_name = 'PATH'
it_field = lt_fields CHANGING cg_field = eg_file ).
get_field( EXPORTING iv_name = 'FILENAME'
it_field = lt_fields
iv_decode = abap_true
CHANGING cg_field = eg_file ).
ENDIF.
IF eg_object IS SUPPLIED.
get_field( EXPORTING iv_name = 'OBJ_TYPE'
it_field = lt_fields CHANGING cg_field = eg_object ).
get_field( EXPORTING iv_name = 'OBJ_NAME'
it_field = lt_fields
iv_decode = abap_true
CHANGING cg_field = eg_object ).
ENDIF.
ENDMETHOD.
METHOD get_field.
DATA: lv_value TYPE string.
FIELD-SYMBOLS: <ls_field> LIKE LINE OF it_field,
<lg_dest> TYPE any.
READ TABLE it_field ASSIGNING <ls_field> WITH KEY name = iv_name.
IF sy-subrc IS NOT INITIAL.
RETURN.
ENDIF.
lv_value = <ls_field>-value.
IF iv_decode = abap_true.
lv_value = cl_http_utility=>unescape_url( escaped = lv_value ).
ENDIF.
CASE cl_abap_typedescr=>describe_by_data( cg_field )->kind.
WHEN cl_abap_typedescr=>kind_elem.
cg_field = lv_value.
WHEN cl_abap_typedescr=>kind_struct.
ASSIGN COMPONENT iv_name OF STRUCTURE cg_field TO <lg_dest>.
ASSERT <lg_dest> IS ASSIGNED.
<lg_dest> = lv_value.
WHEN OTHERS.
ASSERT 0 = 1.
ENDCASE.
ENDMETHOD.
METHOD jump_decode.
DATA: lt_fields TYPE tihttpnvp.
lt_fields = parse_fields( iv_string ).
get_field( EXPORTING iv_name = 'TYPE'
it_field = lt_fields CHANGING cg_field = ev_obj_type ).
get_field( EXPORTING iv_name = 'NAME'
it_field = lt_fields CHANGING cg_field = ev_obj_name ).
ENDMETHOD.
METHOD jump_encode.
DATA: lt_fields TYPE tihttpnvp.
add_field( EXPORTING iv_name = 'TYPE'
ig_field = iv_obj_type CHANGING ct_field = lt_fields ).
add_field( EXPORTING iv_name = 'NAME'
ig_field = iv_obj_name CHANGING ct_field = lt_fields ).
rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ).
ENDMETHOD.
METHOD obj_encode.
DATA: lt_fields TYPE tihttpnvp.
add_field( EXPORTING iv_name = 'KEY'
ig_field = iv_key CHANGING ct_field = lt_fields ).
add_field( EXPORTING iv_name = 'OBJ_TYPE'
ig_field = ig_object CHANGING ct_field = lt_fields ).
add_field( EXPORTING iv_name = 'OBJ_NAME'
ig_field = ig_object CHANGING ct_field = lt_fields ).
rv_string = cl_http_utility=>if_http_utility~fields_to_string( lt_fields ).
ENDMETHOD.
METHOD parse_fields.
DATA: lt_substrings TYPE STANDARD TABLE OF string WITH DEFAULT KEY,
ls_field LIKE LINE OF rt_fields.
FIELD-SYMBOLS: <lv_substring> LIKE LINE OF lt_substrings.
SPLIT iv_string AT '&' INTO TABLE lt_substrings.
LOOP AT lt_substrings ASSIGNING <lv_substring>.
CLEAR: ls_field.
ls_field-name = substring_before( val = <lv_substring>
sub = '=' ).
ls_field-name = unescape( ls_field-name ).
ls_field-value = substring_after( val = <lv_substring>
sub = '=' ).
ls_field-value = unescape( ls_field-value ).
INSERT ls_field INTO TABLE rt_fields.
ENDLOOP.
ENDMETHOD.
METHOD parse_fields_upper_case_name.
rt_fields = parse_fields( iv_string ).
field_keys_to_upper( CHANGING ct_fields = rt_fields ).
ENDMETHOD.
METHOD parse_post_data.
DATA lv_serialized_post_data TYPE string.
CONCATENATE LINES OF it_post_data INTO lv_serialized_post_data.
rt_fields = parse_fields( lv_serialized_post_data ).
ENDMETHOD.
METHOD stage_decode.
DATA: lt_fields TYPE tihttpnvp.
lt_fields = parse_fields_upper_case_name( iv_getdata ).
get_field( EXPORTING iv_name = 'KEY'
it_field = lt_fields CHANGING cg_field = ev_key ).
get_field( EXPORTING iv_name = 'SEED'
it_field = lt_fields CHANGING cg_field = ev_seed ).
ASSERT NOT ev_key IS INITIAL.
ENDMETHOD.
METHOD unescape.
* do not use cl_http_utility as it does strange things with the encoding
rv_string = iv_string.
* todo, more to be added here
REPLACE ALL OCCURRENCES OF '%3F' IN rv_string WITH '?'.
REPLACE ALL OCCURRENCES OF '%3D' IN rv_string WITH '='.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
6494,
62,
2673,
62,
26791,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
21136,
62,
7353,
62,
7890,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
7353,
62,
7890,
41876,
269,
77,
4352,
62,
7353,
62,
7890,
62,
8658,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
25747,
8,
41876,
46668,
4023,
77,
36133,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
21136,
62,
25747,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8841,
220,
220,
220,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
25747,
8,
41876,
46668,
4023,
77,
36133,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
21136,
62,
25747,
62,
45828,
62,
7442,
62,
3672,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8841,
220,
220,
220,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
25747,
8,
41876,
46668,
4023,
77,
36133,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
3245,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
3245,
220,
41876,
46668,
4023,
77,
36133,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
12501,
1098,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
66,
70,
62,
3245,
220,
41876,
597,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4391,
62,
268,
8189,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26801,
62,
4906,
220,
220,
220,
220,
41876,
36264,
343,
12,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26801,
62,
3672,
220,
220,
220,
220,
41876,
36264,
343,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8841,
8,
41876,
4731,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4391,
62,
12501,
1098,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8841,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1990,
62,
26801,
62,
4906,
41876,
36264,
343,
12,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1990,
62,
26801,
62,
3672,
41876,
36264,
343,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
26672,
62,
268,
8189,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6978,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8841,
8,
41876,
4731,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
26672,
62,
12501,
1098,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8841,
220,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6978,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
2393,
62,
268,
8189,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
328,
62,
7753,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8841,
8,
41876,
4731,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
26181,
62,
268,
8189,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
328,
62,
15252,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8841,
8,
41876,
4731,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
2393,
62,
26801,
62,
12501,
1098,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8841,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1990,
62,
2539,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*---------------------------------------------------------------------*
* view related FORM routines
* generation date: 09.01.2021 at 16:42:55
* view maintenance generator version: #001407#
*---------------------------------------------------------------------*
*...processing: ZAMPV_CONFIG_PRO................................*
FORM GET_DATA_ZAMPV_CONFIG_PRO.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZAMP_CONFIG_PROV WHERE
(VIM_WHERETAB) .
CLEAR ZAMPV_CONFIG_PRO .
ZAMPV_CONFIG_PRO-METRIC_SCENARIO =
ZAMP_CONFIG_PROV-METRIC_SCENARIO .
ZAMPV_CONFIG_PRO-METRIC_GROUP =
ZAMP_CONFIG_PROV-METRIC_GROUP .
ZAMPV_CONFIG_PRO-METRIC_CLASS =
ZAMP_CONFIG_PROV-METRIC_CLASS .
<VIM_TOTAL_STRUC> = ZAMPV_CONFIG_PRO.
APPEND TOTAL.
ENDSELECT.
SORT TOTAL BY <VIM_XTOTAL_KEY>.
<STATUS>-ALR_SORTED = 'R'.
*.check dynamic selectoptions (not in DDIC)...........................*
IF X_HEADER-SELECTION NE SPACE.
PERFORM CHECK_DYNAMIC_SELECT_OPTIONS.
ELSEIF X_HEADER-DELMDTFLAG NE SPACE.
PERFORM BUILD_MAINKEY_TAB.
ENDIF.
REFRESH EXTRACT.
ENDFORM.
*---------------------------------------------------------------------*
FORM DB_UPD_ZAMPV_CONFIG_PRO .
*.process data base updates/inserts/deletes.........................*
LOOP AT TOTAL.
CHECK <ACTION> NE ORIGINAL.
MOVE <VIM_TOTAL_STRUC> TO ZAMPV_CONFIG_PRO.
IF <ACTION> = UPDATE_GELOESCHT.
<ACTION> = GELOESCHT.
ENDIF.
CASE <ACTION>.
WHEN NEUER_GELOESCHT.
IF STATUS_ZAMPV_CONFIG_PRO-ST_DELETE EQ GELOESCHT.
READ TABLE EXTRACT WITH KEY <VIM_XTOTAL_KEY>.
IF SY-SUBRC EQ 0.
DELETE EXTRACT INDEX SY-TABIX.
ENDIF.
ENDIF.
DELETE TOTAL.
IF X_HEADER-DELMDTFLAG NE SPACE.
PERFORM DELETE_FROM_MAINKEY_TAB.
ENDIF.
WHEN GELOESCHT.
SELECT SINGLE FOR UPDATE * FROM ZAMP_CONFIG_PROV WHERE
METRIC_SCENARIO = ZAMPV_CONFIG_PRO-METRIC_SCENARIO AND
METRIC_GROUP = ZAMPV_CONFIG_PRO-METRIC_GROUP .
IF SY-SUBRC = 0.
DELETE ZAMP_CONFIG_PROV .
ENDIF.
IF STATUS-DELETE EQ GELOESCHT.
READ TABLE EXTRACT WITH KEY <VIM_XTOTAL_KEY> BINARY SEARCH.
DELETE EXTRACT INDEX SY-TABIX.
ENDIF.
DELETE TOTAL.
IF X_HEADER-DELMDTFLAG NE SPACE.
PERFORM DELETE_FROM_MAINKEY_TAB.
ENDIF.
WHEN OTHERS.
SELECT SINGLE FOR UPDATE * FROM ZAMP_CONFIG_PROV WHERE
METRIC_SCENARIO = ZAMPV_CONFIG_PRO-METRIC_SCENARIO AND
METRIC_GROUP = ZAMPV_CONFIG_PRO-METRIC_GROUP .
IF SY-SUBRC <> 0. "insert preprocessing: init WA
CLEAR ZAMP_CONFIG_PROV.
ENDIF.
ZAMP_CONFIG_PROV-METRIC_SCENARIO =
ZAMPV_CONFIG_PRO-METRIC_SCENARIO .
ZAMP_CONFIG_PROV-METRIC_GROUP =
ZAMPV_CONFIG_PRO-METRIC_GROUP .
ZAMP_CONFIG_PROV-METRIC_CLASS =
ZAMPV_CONFIG_PRO-METRIC_CLASS .
IF SY-SUBRC = 0.
UPDATE ZAMP_CONFIG_PROV ##WARN_OK.
ELSE.
INSERT ZAMP_CONFIG_PROV .
ENDIF.
READ TABLE EXTRACT WITH KEY <VIM_XTOTAL_KEY>.
IF SY-SUBRC EQ 0.
<XACT> = ORIGINAL.
MODIFY EXTRACT INDEX SY-TABIX.
ENDIF.
<ACTION> = ORIGINAL.
MODIFY TOTAL.
ENDCASE.
ENDLOOP.
CLEAR: STATUS_ZAMPV_CONFIG_PRO-UPD_FLAG,
STATUS_ZAMPV_CONFIG_PRO-UPD_CHECKD.
MESSAGE S018(SV).
ENDFORM.
*---------------------------------------------------------------------*
FORM READ_SINGLE_ZAMPV_CONFIG_PRO.
SELECT SINGLE * FROM ZAMP_CONFIG_PROV WHERE
METRIC_SCENARIO = ZAMPV_CONFIG_PRO-METRIC_SCENARIO AND
METRIC_GROUP = ZAMPV_CONFIG_PRO-METRIC_GROUP .
ZAMPV_CONFIG_PRO-METRIC_SCENARIO =
ZAMP_CONFIG_PROV-METRIC_SCENARIO .
ZAMPV_CONFIG_PRO-METRIC_GROUP =
ZAMP_CONFIG_PROV-METRIC_GROUP .
ZAMPV_CONFIG_PRO-METRIC_CLASS =
ZAMP_CONFIG_PROV-METRIC_CLASS .
ENDFORM.
*---------------------------------------------------------------------*
FORM CORR_MAINT_ZAMPV_CONFIG_PRO USING VALUE(CM_ACTION) RC.
DATA: RETCODE LIKE SY-SUBRC, COUNT TYPE I, TRSP_KEYLEN TYPE SYFLENG.
FIELD-SYMBOLS: <TAB_KEY_X> TYPE X.
CLEAR RC.
MOVE ZAMPV_CONFIG_PRO-METRIC_SCENARIO TO
ZAMP_CONFIG_PROV-METRIC_SCENARIO .
MOVE ZAMPV_CONFIG_PRO-METRIC_GROUP TO
ZAMP_CONFIG_PROV-METRIC_GROUP .
CORR_KEYTAB = E071K.
CORR_KEYTAB-OBJNAME = 'ZAMP_CONFIG_PROV'.
IF NOT <vim_corr_keyx> IS ASSIGNED.
ASSIGN CORR_KEYTAB-TABKEY TO <vim_corr_keyx> CASTING.
ENDIF.
ASSIGN ZAMP_CONFIG_PROV TO <TAB_KEY_X> CASTING.
PERFORM VIM_GET_TRSPKEYLEN
USING 'ZAMP_CONFIG_PROV'
CHANGING TRSP_KEYLEN.
<VIM_CORR_KEYX>(TRSP_KEYLEN) = <TAB_KEY_X>(TRSP_KEYLEN).
PERFORM UPDATE_CORR_KEYTAB USING CM_ACTION RETCODE.
ADD: RETCODE TO RC, 1 TO COUNT.
IF RC LT COUNT AND CM_ACTION NE PRUEFEN.
CLEAR RC.
ENDIF.
ENDFORM.
*---------------------------------------------------------------------*
*...processing: ZAMPV_CONFIG_SCE................................*
FORM GET_DATA_ZAMPV_CONFIG_SCE.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZAMP_CONFIG_SCEN WHERE
(VIM_WHERETAB) .
CLEAR ZAMPV_CONFIG_SCE .
ZAMPV_CONFIG_SCE-METRIC_SCENARIO =
ZAMP_CONFIG_SCEN-METRIC_SCENARIO .
ZAMPV_CONFIG_SCE-CONVERTER_CLASS =
ZAMP_CONFIG_SCEN-CONVERTER_CLASS .
<VIM_TOTAL_STRUC> = ZAMPV_CONFIG_SCE.
APPEND TOTAL.
ENDSELECT.
SORT TOTAL BY <VIM_XTOTAL_KEY>.
<STATUS>-ALR_SORTED = 'R'.
*.check dynamic selectoptions (not in DDIC)...........................*
IF X_HEADER-SELECTION NE SPACE.
PERFORM CHECK_DYNAMIC_SELECT_OPTIONS.
ELSEIF X_HEADER-DELMDTFLAG NE SPACE.
PERFORM BUILD_MAINKEY_TAB.
ENDIF.
REFRESH EXTRACT.
ENDFORM.
*---------------------------------------------------------------------*
FORM DB_UPD_ZAMPV_CONFIG_SCE .
*.process data base updates/inserts/deletes.........................*
LOOP AT TOTAL.
CHECK <ACTION> NE ORIGINAL.
MOVE <VIM_TOTAL_STRUC> TO ZAMPV_CONFIG_SCE.
IF <ACTION> = UPDATE_GELOESCHT.
<ACTION> = GELOESCHT.
ENDIF.
CASE <ACTION>.
WHEN NEUER_GELOESCHT.
IF STATUS_ZAMPV_CONFIG_SCE-ST_DELETE EQ GELOESCHT.
READ TABLE EXTRACT WITH KEY <VIM_XTOTAL_KEY>.
IF SY-SUBRC EQ 0.
DELETE EXTRACT INDEX SY-TABIX.
ENDIF.
ENDIF.
DELETE TOTAL.
IF X_HEADER-DELMDTFLAG NE SPACE.
PERFORM DELETE_FROM_MAINKEY_TAB.
ENDIF.
WHEN GELOESCHT.
SELECT SINGLE FOR UPDATE * FROM ZAMP_CONFIG_SCEN WHERE
METRIC_SCENARIO = ZAMPV_CONFIG_SCE-METRIC_SCENARIO .
IF SY-SUBRC = 0.
DELETE ZAMP_CONFIG_SCEN .
ENDIF.
IF STATUS-DELETE EQ GELOESCHT.
READ TABLE EXTRACT WITH KEY <VIM_XTOTAL_KEY> BINARY SEARCH.
DELETE EXTRACT INDEX SY-TABIX.
ENDIF.
DELETE TOTAL.
IF X_HEADER-DELMDTFLAG NE SPACE.
PERFORM DELETE_FROM_MAINKEY_TAB.
ENDIF.
WHEN OTHERS.
SELECT SINGLE FOR UPDATE * FROM ZAMP_CONFIG_SCEN WHERE
METRIC_SCENARIO = ZAMPV_CONFIG_SCE-METRIC_SCENARIO .
IF SY-SUBRC <> 0. "insert preprocessing: init WA
CLEAR ZAMP_CONFIG_SCEN.
ENDIF.
ZAMP_CONFIG_SCEN-METRIC_SCENARIO =
ZAMPV_CONFIG_SCE-METRIC_SCENARIO .
ZAMP_CONFIG_SCEN-CONVERTER_CLASS =
ZAMPV_CONFIG_SCE-CONVERTER_CLASS .
IF SY-SUBRC = 0.
UPDATE ZAMP_CONFIG_SCEN ##WARN_OK.
ELSE.
INSERT ZAMP_CONFIG_SCEN .
ENDIF.
READ TABLE EXTRACT WITH KEY <VIM_XTOTAL_KEY>.
IF SY-SUBRC EQ 0.
<XACT> = ORIGINAL.
MODIFY EXTRACT INDEX SY-TABIX.
ENDIF.
<ACTION> = ORIGINAL.
MODIFY TOTAL.
ENDCASE.
ENDLOOP.
CLEAR: STATUS_ZAMPV_CONFIG_SCE-UPD_FLAG,
STATUS_ZAMPV_CONFIG_SCE-UPD_CHECKD.
MESSAGE S018(SV).
ENDFORM.
*---------------------------------------------------------------------*
FORM READ_SINGLE_ZAMPV_CONFIG_SCE.
SELECT SINGLE * FROM ZAMP_CONFIG_SCEN WHERE
METRIC_SCENARIO = ZAMPV_CONFIG_SCE-METRIC_SCENARIO .
ZAMPV_CONFIG_SCE-METRIC_SCENARIO =
ZAMP_CONFIG_SCEN-METRIC_SCENARIO .
ZAMPV_CONFIG_SCE-CONVERTER_CLASS =
ZAMP_CONFIG_SCEN-CONVERTER_CLASS .
ENDFORM.
*---------------------------------------------------------------------*
FORM CORR_MAINT_ZAMPV_CONFIG_SCE USING VALUE(CM_ACTION) RC.
DATA: RETCODE LIKE SY-SUBRC, COUNT TYPE I, TRSP_KEYLEN TYPE SYFLENG.
FIELD-SYMBOLS: <TAB_KEY_X> TYPE X.
CLEAR RC.
MOVE ZAMPV_CONFIG_SCE-METRIC_SCENARIO TO
ZAMP_CONFIG_SCEN-METRIC_SCENARIO .
CORR_KEYTAB = E071K.
CORR_KEYTAB-OBJNAME = 'ZAMP_CONFIG_SCEN'.
IF NOT <vim_corr_keyx> IS ASSIGNED.
ASSIGN CORR_KEYTAB-TABKEY TO <vim_corr_keyx> CASTING.
ENDIF.
ASSIGN ZAMP_CONFIG_SCEN TO <TAB_KEY_X> CASTING.
PERFORM VIM_GET_TRSPKEYLEN
USING 'ZAMP_CONFIG_SCEN'
CHANGING TRSP_KEYLEN.
<VIM_CORR_KEYX>(TRSP_KEYLEN) = <TAB_KEY_X>(TRSP_KEYLEN).
PERFORM UPDATE_CORR_KEYTAB USING CM_ACTION RETCODE.
ADD: RETCODE TO RC, 1 TO COUNT.
IF RC LT COUNT AND CM_ACTION NE PRUEFEN.
CLEAR RC.
ENDIF.
ENDFORM.
*---------------------------------------------------------------------*
| [
9,
10097,
30934,
9,
198,
9,
220,
220,
220,
1570,
3519,
49144,
31878,
198,
9,
220,
220,
5270,
3128,
25,
7769,
13,
486,
13,
1238,
2481,
379,
1467,
25,
3682,
25,
2816,
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,
23518,
53,
62,
10943,
16254,
62,
31190,
8864,
9,
198,
21389,
17151,
62,
26947,
62,
57,
23518,
53,
62,
10943,
16254,
62,
31190,
13,
198,
220,
19878,
21389,
569,
3955,
62,
37,
8267,
62,
12418,
1137,
2767,
6242,
13,
198,
24620,
961,
1366,
422,
6831,
8864,
44274,
9,
198,
220,
4526,
10913,
44011,
36247,
13,
198,
220,
30301,
1503,
220,
220,
36247,
13,
198,
220,
33493,
1635,
16034,
1168,
23518,
62,
10943,
16254,
62,
41283,
33411,
198,
7,
53,
3955,
62,
12418,
1137,
2767,
6242,
8,
764,
198,
220,
220,
220,
30301,
1503,
1168,
23518,
53,
62,
10943,
16254,
62,
31190,
764,
198,
57,
23518,
53,
62,
10943,
16254,
62,
31190,
12,
47123,
41132,
62,
6173,
1677,
1503,
9399,
796,
198,
57,
23518,
62,
10943,
16254,
62,
41283,
12,
47123,
41132,
62,
6173,
1677,
1503,
9399,
764,
198,
57,
23518,
53,
62,
10943,
16254,
62,
31190,
12,
47123,
41132,
62,
46846,
796,
198,
57,
23518,
62,
10943,
16254,
62,
41283,
12,
47123,
41132,
62,
46846,
764,
198,
57,
23518,
53,
62,
10943,
16254,
62,
31190,
12,
47123,
41132,
62,
31631,
796,
198,
57,
23518,
62,
10943,
16254,
62,
41283,
12,
47123,
41132,
62,
31631,
764,
198,
27,
53,
3955,
62,
51,
27510,
62,
18601,
9598,
29,
796,
1168,
23518,
53,
62,
10943,
16254,
62,
31190,
13,
198,
220,
220,
220,
43504,
10619,
36247,
13,
198,
220,
23578,
46506,
13,
198,
220,
311,
9863,
36247,
11050,
1279,
53,
3955,
62,
25010,
27510,
62,
20373,
28401,
198,
220,
1279,
35744,
2937,
29,
12,
1847,
49,
62,
50,
9863,
1961,
796,
705,
49,
4458,
198,
24620,
9122,
8925,
2922,
25811,
357,
1662,
287,
20084,
2149,
8,
27754,
986,
9,
198,
220,
16876,
1395,
62,
37682,
1137,
12,
46506,
2849,
10635,
37253,
13,
198,
220,
220,
220,
19878,
21389,
5870,
25171,
62,
35,
40760,
2390,
2149,
62,
46506,
62,
3185,
51,
11053,
13,
198,
220,
17852,
5188,
5064,
1395,
62,
37682,
1137,
12,
35,
3698,
12740,
51,
38948,
10635,
37253,
13,
198,
220,
220,
220,
19878,
21389,
20571,
26761,
62,
5673,
1268,
20373,
62,
5603,
33,
13,
198,
220,
23578,
5064,
13,
198,
220,
4526,
10913,
44011,
7788,
5446,
10659,
13,
198,
1677,
8068,
1581,
44,
13,
198,
9,
10097,
30934,
9,
198,
21389,
20137,
62,
52,
5760,
62,
57,
23518,
53,
62,
10943,
16254,
62,
31190,
764,
198,
24620,
14681,
1366,
2779,
5992,
14,
28463,
82,
14,
2934,
40676,
4181,
34617,
9,
198,
21982,
3185,
5161,
36247,
13,
198,
220,
5870,
25171,
1279,
44710,
29,
10635,
43901,
17961,
13,
198,
11770,
6089,
1279,
53,
3955,
62,
51,
27510,
62,
18601,
9598,
29,
5390,
1168,
23518,
53,
62,
10943,
16254,
62,
31190,
13,
198,
220,
16876,
1279,
44710,
29,
796,
35717,
62,
38,
3698,
46,
1546,
3398,
51,
13,
198,
220,
220,
220,
1279,
44710,
29,
796,
402,
3698,
46,
1546,
3398,
51,
13,
198,
220,
23578,
5064,
13,
198,
220,
42001,
1279,
44710,
28401,
198,
220,
220,
42099,
10635,
52,
1137,
62,
38,
3698,
46,
1546,
3398,
51,
13,
198,
5064,
15486,
2937,
62,
57,
23518,
53,
62,
10943,
16254,
62,
31190,
12,
2257,
62,
7206,
2538,
9328,
36529,
402,
3698,
46,
1546,
3398,
51,
13,
198,
220,
220,
220,
220,
20832,
43679,
7788,
5446,
10659,
13315,
35374,
1279,
53,
3955,
62,
25010,
27510,
62,
20373,
28401,
198,
220,
220,
220,
220,
16876,
19704,
12,
50,
10526,
7397,
36529,
657,
13,
198,
220,
220,
220,
220,
220,
220,
5550,
2538,
9328,
7788,
5446,
10659,
24413,
6369,
19704,
12,
5603,
3483,
55,
13,
198,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
5550,
2538,
9328,
36247,
13,
198,
220,
220,
220,
16876,
1395,
62,
37682,
1137,
12,
35,
3698,
12740,
51,
38948,
10635,
37253,
13,
198,
220,
220,
220,
220,
220,
19878,
21389,
5550,
2538,
9328,
62,
10913,
2662,
62,
5673,
1268,
20373,
62,
5603,
33,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
42099,
402,
3698,
46,
1546,
3398,
51,
13,
198,
220,
33493,
311,
2751,
2538,
7473,
35717,
1635,
16034,
1168,
23518,
62,
10943,
16254,
62,
41283,
33411,
198,
220,
31243,
41132,
62,
6173,
1677,
1503,
9399,
796,
1168,
23518,
53,
62,
10943,
16254,
62,
31190,
12,
47123,
41132,
62,
6173,
1677,
1503,
9399,
5357,
198,
220,
31243,
41132,
62,
46846,
796,
1168,
23518,
53,
62,
10943,
16254,
62,
31190,
12,
47123,
41132,
62,
46846,
764,
198,
220,
220,
220,
16876,
19704,
12,
50,
10526,
7397,
796,
657,
13,
198,
220,
220,
220,
5550,
2538,
9328,
1168,
23518,
62,
10943,
16254,
62,
41283,
764,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
16876,
15486,
2937,
12,
7206,
2538,
9328,
36529,
402,
3698,
46,
1546,
3398,
51,
13,
198,
220,
220,
220,
220,
220,
20832,
43679,
7788,
5446,
10659,
13315,
35374,
1279,
53,
3955,
62,
25010,
27510,
62,
20373,
29,
347,
1268,
13153,
7946,
31315,
13,
198,
220,
220,
220,
220,
220,
5550,
2538,
9328,
7788,
5446,
10659,
24413,
6369,
19704,
12,
5603,
3483,
55,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
5550,
2538,
9328,
36247,
13,
198,
220,
220,
220,
16876,
1395,
62,
37682,
1137,
12,
35,
3698,
12740,
51,
38948,
10635,
37253,
13,
198,
220,
220,
220,
220,
220,
19878,
21389,
5550,
2538,
9328,
62,
10913,
2662,
62,
5673,
1268,
20373,
62,
5603,
33,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
42099,
440,
4221,
4877,
13,
198,
220,
33493,
311,
2751,
2538,
7473,
35717,
1635,
16034,
1168,
23518,
62,
10943,
16254,
62,
41283,
33411,
198,
220,
31243,
41132,
62,
6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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"!This class is offering an API for represent a structure
"!in its ABAP VALUE way: structure_name = VALUE #(...)
CLASS zcl_op_structure DEFINITION
PUBLIC
FINAL
CREATE PUBLIC.
PUBLIC SECTION.
METHODS:
"! is getting called from enhancement <br/>
"! will ask for max line length, format content and show it
"! @parameter i_structure | given structure
"! @parameter i_field_catalog | field catalog of structure
"! @parameter i_struc_name | structure name for "name" = VALUE #() statement
show_popup_w_content
IMPORTING
i_structure TYPE any
i_field_catalog TYPE lvc_t_fcat
i_struc_name TYPE string,
"! add a structure to given formated context
"! @parameter i_current_context | current context as string
"! @parameter i_structure | given structure
"! @parameter i_field_catalog | field catalog of structure
"! @parameter r_current_context | changed context with added structure data as string
add_structure
IMPORTING
i_current_context TYPE string
i_structure TYPE any
i_field_catalog TYPE lvc_t_fcat
RETURNING
VALUE(r_current_context) TYPE string.
PROTECTED SECTION.
PRIVATE SECTION.
METHODS:
"! prepare component name
"! delete surrounding spaces
component_name IMPORTING i_component_name TYPE lvc_fname
RETURNING VALUE(r_component_name) TYPE lvc_fname,
prepare_output
IMPORTING
i_structure TYPE any
i_field_catalog TYPE lvc_t_fcat
i_struc_name TYPE string
RETURNING VALUE(r_content_4_display) TYPE string,
left_hand_side
IMPORTING
i_struc_name TYPE string
i_is_type_given TYPE boole_d DEFAULT abap_false
RETURNING VALUE(rv_left_hand_side_value) TYPE string,
right_hand_side
IMPORTING
i_is_type_given TYPE boole_d DEFAULT abap_false
i_structure TYPE any
i_field_catalog TYPE lvc_t_fcat
RETURNING VALUE(r_right_hand_side_value) TYPE string,
handle_nested_structure
IMPORTING
i_current_context TYPE string
i_structure TYPE any
i_component_info TYPE lvc_s_fcat
RETURNING VALUE(r_current_context) TYPE string,
add_rhs_value_prefix
IMPORTING
i_is_type_given TYPE boole_d
RETURNING VALUE(r_right_hand_side_value) TYPE string,
add_rhs_postfix
IMPORTING
i_right_hand_side_value TYPE string
RETURNING
VALUE(r_right_hand_side_value) TYPE string,
add_rhs_value
IMPORTING i_right_hand_side_value TYPE string
i_structure TYPE any
i_field_catalog TYPE lvc_t_fcat
RETURNING VALUE(r_right_hand_side_value) TYPE string,
add_rhs_value_and_postfix
IMPORTING
i_right_hand_side_value TYPE string
i_structure TYPE any
i_field_catalog TYPE lvc_t_fcat
RETURNING VALUE(r_right_hand_side_value) TYPE string,
add_itab
IMPORTING
i_current_context TYPE string
i_table TYPE ANY TABLE
i_component_name TYPE lvc_fname
RETURNING VALUE(r_current_context) TYPE string.
ENDCLASS.
CLASS zcl_op_structure IMPLEMENTATION.
METHOD component_name.
r_component_name = i_component_name.
CONDENSE r_component_name NO-GAPS.
ENDMETHOD.
METHOD add_itab.
r_current_context = NEW zcl_op_table( )->add_itab( i_current_context = ||
i_table = i_table
i_component_name = i_component_name
i_dont_add_a_point = abap_true ).
r_current_context = |{ i_current_context } { r_current_context }|.
ENDMETHOD.
METHOD add_rhs_postfix.
r_right_hand_side_value = |{ i_right_hand_side_value } )|.
ENDMETHOD.
METHOD add_rhs_value.
DATA current_context TYPE string.
LOOP AT i_field_catalog INTO DATA(field_info).
ASSIGN COMPONENT field_info-fieldname OF STRUCTURE i_structure TO FIELD-SYMBOL(<field>).
CHECK <field> IS ASSIGNED AND
<field> IS NOT INITIAL AND
field_info-seltext NE |INDEX|.
current_context = COND #( WHEN field_info-datatype EQ 'TTYP' THEN me->add_itab( i_current_context = current_context
i_table = <field>
i_component_name = field_info-fieldname )
WHEN field_info-datatype EQ 'STRU'
THEN me->handle_nested_structure( EXPORTING i_current_context = current_context
i_structure = <field>
i_component_info = field_info )
ELSE NEW zcl_op_component( )->add( i_current_context = current_context
i_component = <field>
i_component_info = field_info ) ).
ENDLOOP.
r_right_hand_side_value = |{ i_right_hand_side_value }{ current_context }|.
ENDMETHOD.
METHOD add_rhs_value_and_postfix.
r_right_hand_side_value = me->add_rhs_value( EXPORTING
i_right_hand_side_value = i_right_hand_side_value
i_field_catalog = i_field_catalog
i_structure = i_structure ).
r_right_hand_side_value = me->add_rhs_postfix( r_right_hand_side_value ).
ENDMETHOD.
METHOD add_rhs_value_prefix.
r_right_hand_side_value = COND string( WHEN i_is_type_given EQ abap_true
THEN | = VALUE \{i_type\}(| "#TODO 25.10.2018 AGEPPART - implement type here
ELSE | = VALUE #(| ).
ENDMETHOD.
METHOD add_structure.
r_current_context = me->right_hand_side(
i_field_catalog = i_field_catalog
i_structure = i_structure ).
ENDMETHOD.
METHOD handle_nested_structure.
r_current_context = right_hand_side( EXPORTING i_structure = i_structure
i_field_catalog = NEW zcl_op_simple_field_catalog( )->get_by_data( i_structure = i_structure ) ).
r_current_context = |{ i_current_context } { component_name( i_component_info-fieldname ) }{ r_current_context }|.
ENDMETHOD.
METHOD left_hand_side.
rv_left_hand_side_value = COND string( WHEN i_is_type_given EQ abap_true
THEN |DATA({ i_struc_name })| "#TODO 02.11.2018 AGEPPART - use type later here
ELSE i_struc_name ).
ENDMETHOD.
METHOD prepare_output.
CHECK i_structure IS NOT INITIAL.
r_content_4_display = |{ me->left_hand_side( i_struc_name = i_struc_name ) }{ me->right_hand_side( i_structure = i_structure i_field_catalog = i_field_catalog ) }.|.
ENDMETHOD.
METHOD right_hand_side.
r_right_hand_side_value = me->add_rhs_value_prefix( i_is_type_given ).
r_right_hand_side_value = me->add_rhs_value_and_postfix( EXPORTING i_right_hand_side_value = r_right_hand_side_value
i_structure = i_structure
i_field_catalog = i_field_catalog ).
ENDMETHOD.
METHOD show_popup_w_content.
DATA(content_4_display) = me->prepare_output( i_struc_name = i_struc_name
i_structure = i_structure
i_field_catalog = i_field_catalog ).
TRY.
DATA(formated_content) = zcl_op_pretty_printer_factory=>create( )->format( content_4_display ).
CATCH cx_class_not_existent INTO DATA(cx_class_not_existent).
"formating went wring, fallback using non formated text
formated_content = content_4_display.
ENDTRY.
cl_demo_output=>set_mode( cl_demo_output=>text_mode ). "set to text mode to be more compatible with minus signs and so on
cl_demo_output=>display( formated_content ).
ENDMETHOD.
ENDCLASS.
| [
40484,
1212,
1398,
318,
6011,
281,
7824,
329,
2380,
257,
4645,
198,
40484,
259,
663,
9564,
2969,
26173,
8924,
835,
25,
4645,
62,
3672,
796,
26173,
8924,
1303,
7,
23029,
198,
31631,
1976,
565,
62,
404,
62,
301,
5620,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
318,
1972,
1444,
422,
28554,
1279,
1671,
15913,
198,
220,
220,
220,
220,
220,
366,
0,
481,
1265,
329,
3509,
1627,
4129,
11,
5794,
2695,
290,
905,
340,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
1312,
62,
301,
5620,
930,
1813,
4645,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
1312,
62,
3245,
62,
9246,
11794,
930,
2214,
18388,
286,
4645,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
1312,
62,
19554,
66,
62,
3672,
930,
4645,
1438,
329,
366,
3672,
1,
796,
26173,
8924,
1303,
3419,
2643,
198,
220,
220,
220,
220,
220,
905,
62,
12924,
929,
62,
86,
62,
11299,
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,
1312,
62,
301,
5620,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
3245,
62,
9246,
11794,
41876,
300,
28435,
62,
83,
62,
69,
9246,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
19554,
66,
62,
3672,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
366,
0,
751,
257,
4645,
284,
1813,
1296,
515,
4732,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
1312,
62,
14421,
62,
22866,
930,
1459,
4732,
355,
4731,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
1312,
62,
301,
5620,
930,
220,
1813,
4645,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
1312,
62,
3245,
62,
9246,
11794,
930,
2214,
18388,
286,
4645,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
62,
14421,
62,
22866,
930,
3421,
4732,
351,
2087,
4645,
1366,
355,
4731,
198,
220,
220,
220,
220,
220,
751,
62,
301,
5620,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
14421,
62,
22866,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
301,
5620,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
3245,
62,
9246,
11794,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
300,
28435,
62,
83,
62,
69,
9246,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
62,
14421,
62,
22866,
8,
41876,
4731,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
8335,
7515,
1438,
198,
220,
220,
220,
220,
220,
366,
0,
12233,
7346,
9029,
198,
220,
220,
220,
220,
220,
7515,
62,
3672,
220,
30023,
9863,
2751,
1312,
62,
42895,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
41876,
300,
28435,
62,
69,
3672,
198,
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,
62,
42895,
62,
3672,
8,
41876,
300,
28435,
62,
69,
3672,
11,
198,
220,
220,
220,
220,
220,
8335,
62,
22915,
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,
1312,
62,
301,
5620,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
3245,
62,
9246,
11794,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
300,
28435,
62,
83,
62,
69,
9246,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
19554,
66,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
62,
11299,
62,
19,
62,
13812,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
1364,
62,
4993,
62,
1589,
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,
1312,
62,
19554,
66,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
271,
62,
4906,
62,
35569,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1489,
2305,
62,
67,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
9464,
62,
4993,
62,
1589,
62,
8367,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
826,
62,
4993,
62,
1589,
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,
1312,
62,
271,
62,
4906,
62,
35569,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1489,
2305
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
CLASS y_code_pal_ref_scan_double DEFINITION PUBLIC. "#EC INTF_IN_CLASS
PUBLIC SECTION.
CLASS-METHODS get IMPORTING source TYPE y_char255_tab
RETURNING VALUE(result) TYPE REF TO cl_ci_scan.
CLASS-METHODS get_from_global_class IMPORTING name TYPE trdir-name
RETURNING VALUE(result) TYPE REF TO cl_ci_scan.
CLASS-METHODS get_from_program IMPORTING name TYPE trdir-name
RETURNING VALUE(result) TYPE REF TO cl_ci_scan.
CLASS-METHODS get_from_fuction_group IMPORTING name TYPE trdir-name
RETURNING VALUE(result) TYPE REF TO cl_ci_scan.
PROTECTED SECTION.
CLASS-METHODS create_ref_scan IMPORTING include TYPE REF TO cl_ci_source_include
RETURNING VALUE(result) TYPE REF TO cl_ci_scan.
CLASS-METHODS syntax_check IMPORTING source TYPE y_char255_tab.
CLASS-METHODS convert_code IMPORTING source TYPE y_char255_tab
RETURNING VALUE(result) TYPE sci_include.
CLASS-METHODS get_include_from_trdir IMPORTING pattern TYPE trdir-name
RETURNING VALUE(result) TYPE REF TO cl_ci_source_include.
ENDCLASS.
CLASS y_code_pal_ref_scan_double IMPLEMENTATION.
METHOD get.
DATA(include) = cl_ci_source_include=>feed( p_include = convert_code( source )
p_trdir = fake_tadir=>get( ) ).
result = create_ref_scan( include ).
ENDMETHOD.
METHOD get_from_global_class.
DATA(include) = get_include_from_trdir( |{ name }%=CP| ).
result = create_ref_scan( include ).
ENDMETHOD.
METHOD get_from_program.
DATA(include) = get_include_from_trdir( name ).
result = create_ref_scan( include ).
ENDMETHOD.
METHOD get_from_fuction_group.
result = get_from_program( name ).
ENDMETHOD.
METHOD syntax_check.
DATA program TYPE string.
DATA message TYPE string.
DATA line TYPE i.
DATA word TYPE string.
SYNTAX-CHECK FOR source PROGRAM program MESSAGE message LINE line WORD word.
IF sy-subrc = 0.
RETURN.
ENDIF.
cl_abap_unit_assert=>fail( msg = 'Syntax Error'
detail = | Message:{ message }, Line:{ line }, Word:{ word } | ).
ENDMETHOD.
METHOD convert_code.
syntax_check( source ).
MOVE-CORRESPONDING source TO result.
ENDMETHOD.
METHOD create_ref_scan.
CONSTANTS class_type TYPE string VALUE 'CL_CI_SCAN'.
DATA(parameters) = VALUE abap_parmbind_tab( ( name = 'P_INCLUDE'
kind = cl_abap_objectdescr=>exporting
value = REF #( include ) )
( name = 'P_NO_CLASSIFICATION'
kind = cl_abap_objectdescr=>exporting
value = REF #( abap_true ) )
( name = 'P_NOAUNIT'
kind = cl_abap_objectdescr=>exporting
value = REF #( abap_true ) ) ).
CATCH SYSTEM-EXCEPTIONS dyn_call_meth_param_not_found = 1.
CREATE OBJECT result TYPE (class_type) PARAMETER-TABLE parameters.
ENDCATCH.
IF sy-subrc = 1.
DELETE parameters WHERE name = 'P_NO_CLASSIFICATION'.
CREATE OBJECT result TYPE (class_type) PARAMETER-TABLE parameters.
ENDIF.
ENDMETHOD.
METHOD get_include_from_trdir.
DATA name TYPE trdir-name.
IF pattern CS '%'.
SELECT SINGLE name
FROM trdir
INTO @name
WHERE name LIKE @pattern.
ELSE.
name = pattern.
ENDIF.
result = cl_ci_source_include=>create( p_name = name ).
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
8189,
62,
18596,
62,
5420,
62,
35836,
62,
23352,
5550,
20032,
17941,
44731,
13,
220,
25113,
2943,
3268,
10234,
62,
1268,
62,
31631,
198,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
30023,
9863,
2751,
2723,
220,
220,
220,
220,
220,
220,
220,
41876,
331,
62,
10641,
13381,
62,
8658,
198,
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,
4526,
37,
5390,
537,
62,
979,
62,
35836,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
6738,
62,
20541,
62,
4871,
30023,
9863,
2751,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
491,
15908,
12,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
537,
62,
979,
62,
35836,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
6738,
62,
23065,
30023,
9863,
2751,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
491,
15908,
12,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
537,
62,
979,
62,
35836,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
6738,
62,
69,
8110,
62,
8094,
30023,
9863,
2751,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
491,
15908,
12,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
537,
62,
979,
62,
35836,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
2251,
62,
5420,
62,
35836,
30023,
9863,
2751,
2291,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
979,
62,
10459,
62,
17256,
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,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
537,
62,
979,
62,
35836,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
15582,
62,
9122,
30023,
9863,
2751,
2723,
41876,
331,
62,
10641,
13381,
62,
8658,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
10385,
62,
8189,
30023,
9863,
2751,
2723,
220,
220,
220,
220,
220,
220,
220,
41876,
331,
62,
10641,
13381,
62,
8658,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
20681,
62,
17256,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
17256,
62,
6738,
62,
2213,
15908,
30023,
9863,
2751,
3912,
220,
220,
220,
220,
220,
220,
41876,
491,
15908,
12,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
537,
62,
979,
62,
10459,
62,
17256,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
62,
8189,
62,
18596,
62,
5420,
62,
35836,
62,
23352,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
13,
198,
220,
220,
220,
42865,
7,
17256,
8,
796,
537,
62,
979,
62,
10459,
62,
17256,
14804,
12363,
7,
279,
62,
17256,
796,
10385,
62,
8189,
7,
2723,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
2213,
15908,
796,
8390,
62,
83,
324,
343,
14804,
1136,
7,
1267,
6739,
628,
220,
220,
220,
1255,
796,
2251,
62,
5420,
62,
35836,
7,
2291,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
6738,
62,
20541,
62,
4871,
13,
198,
220,
220,
220,
42865,
7,
17256,
8,
796,
651,
62,
17256,
62,
6738,
62,
2213,
15908,
7,
930,
90,
1438,
1782,
4,
28,
8697,
91,
6739,
198,
220,
220,
220,
1255,
796,
2251,
62,
5420,
62,
35836,
7,
2291,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
6738,
62,
23065,
13,
198,
220,
220,
220,
42865,
7,
17256,
8,
796,
651,
62,
17256,
62,
6738,
62,
2213,
15908,
7,
1438,
6739,
198,
220,
220,
220,
1255,
796,
2251,
62,
5420,
62,
35836,
7,
2291,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
6738,
62,
69,
8110,
62,
8094,
13,
198,
220,
220,
220,
1255,
796,
651,
62,
6738,
62,
23065,
7,
1438,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
15582,
62,
9122,
13,
198,
220,
220,
220,
42865,
1430,
41876,
4731,
13,
198,
220,
220,
220,
42865,
3275,
41876,
4731,
13,
198,
220,
220,
220,
42865,
1627,
220,
41876,
1312,
13,
198,
220,
220,
220,
42865,
1573,
220,
41876,
4731,
13,
628,
220,
220,
220,
19704,
45,
5603,
55,
12,
50084,
7473,
2723,
46805,
1430,
337,
1546,
4090,
8264,
3275,
48920,
1627,
370,
12532,
1573,
13,
628,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
30826,
27064
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
* After Modify Determination for Node ID CUSTOMERRECORD
*
* Importing Parameter : association (Navigation to Parent/Child/Associated Node Instances)
* write (API for creating and updating Custom Business Object Node Instances)
* Changing Parameter : CUSTOMERRECORD (Current Node Data)
* Constant Strings coming from DQS. These should be the same as in the DQS Configuration *
DATA: dqs_ShippingAddress TYPE string VALUE 'SHIPPINGADDRESS',
dqs_country TYPE string VALUE 'COUNTRY',
dqs_city TYPE string VALUE 'CITY',
dqs_postcode TYPE string VALUE 'POSTCODE',
dqs_addrinfocode TYPE string VALUE 'ADDR_INFO_CODE',
dqs_configname TYPE string VALUE 'AddressValidation'.
*Get unchanged data from Database
SELECT *
FROM YY1_CUSTOMERRECORD
WHERE orderid = @customerrecord-orderid
INTO @DATA(ls_customerrecord).
ENDSELECT.
*if the address was not changed the BADI should end.
IF ( ( ls_customerrecord-city EQ customerrecord-city ) AND
( ls_customerrecord-postcode EQ customerrecord-postcode ) AND
( ls_customerrecord-country EQ customerrecord-country ) AND
( ls_customerrecord-shippingaddress EQ customerrecord-shippingaddress ) ).
EXIT.
ENDIF.
************** SET CONNECTION TO DQS *********************
DATA: lt_headerparam TYPE TIHTTPNVP,
ls_header TYPE LINE OF TIHTTPNVP,
lv_body_post TYPE string,
lv_available TYPE abap_bool.
*Check if connection is available
cl_ble_http_client=>is_service_available(
EXPORTING
communication_scenario = 'YY1_CUSTOMERRECORD'
outbound_service = 'YY1_DQS_REST'
RECEIVING
available = lv_available
).
IF NOT !lv_available = abap_true.
customerrecord-dqmresponse = 'Service seems to be unavailable, please check the communication scenario.'.
EXIT.
ENDIF.
*create http client
DATA(lo_client) = cl_ble_http_client=>create(
communication_scenario = 'YY1_CUSTOMERRECORD'
outbound_service = 'YY1_DQS_REST'
).
*construct JSON message from user input
lv_body_post = |\{ "addressInput": \{| &
|"{ dqs_ShippingAddress }": "{ customerrecord-shippingaddress } ",| &
|"{ dqs_country }": "{ customerrecord-country }",| &
|"{ dqs_postcode }": "{ customerrecord-postcode }",| &
|"{ dqs_city }": "{ customerrecord-city }" \},| &
|"configurationName": "{ dqs_configname }"\} |.
*Add header values
CLEAR lt_headerparam.
ls_header-name = 'Accept'.
ls_header-value = 'application/json'.
APPEND ls_header TO lt_headerparam.
ls_header-name = 'Content-Type'.
ls_header-value = 'application/json'.
APPEND ls_header to lt_headerparam.
DATA(requestPOST) = cl_ble_http_request=>create(
)->set_method(
'POST'
)->set_header_parameters(
parameters = lt_headerparam
)->set_body(
data = lv_body_post ).
*Send http request
TRY.
DATA(responsePOST) = lo_client->send( requestpost ).
DATA(lv_bodyResponse) = responsePost->get_body( ).
CATCH cx_ble_http_exception INTO DATA(lx_Response).
customerrecord-dqmresponse = lx_Response->get_text( ).
EXIT.
ENDTRY.
**************Parsing the response*******************************
DATA : addr_info_code TYPE string,
country TYPE string,
postcode TYPE string,
shipping_address TYPE string,
city TYPE string,
lv_rest TYPE string,
lv_pair TYPE string,
lv_key TYPE string,
lv_value TYPE string.
REPLACE ALL OCCURRENCES OF SUBSTRING cl_abap_char_utilities=>newline IN lv_bodyresponse WITH ''.
REPLACE ALL OCCURRENCES OF SUBSTRING '"' IN lv_bodyresponse WITH ''.
SPLIT lv_bodyresponse AT ',' INTO lv_pair lv_bodyresponse.
WHILE NOT ( lv_bodyresponse EQ lv_pair ).
SPLIT lv_pair AT ':' INTO lv_key lv_value.
REPLACE ALL OCCURRENCES OF SUBSTRING '{' IN lv_value WITH ''.
REPLACE ALL OCCURRENCES OF SUBSTRING '}' IN lv_value WITH ''.
CONDENSE lv_value.
IF lv_key CS dqs_addrinfocode.
addr_info_code = lv_value.
customerrecord-dqmresponse = addr_info_code.
ELSE.
IF lv_key CS dqs_postcode.
postcode = lv_value.
ELSE.
IF lv_key CS dqs_shippingaddress.
shipping_address = lv_value.
ELSE.
IF lv_key CS dqs_country.
country = lv_value.
ELSE.
IF lv_key CS dqs_city.
city = lv_value.
ELSE.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
SPLIT lv_bodyresponse AT ',' INTO lv_pair lv_bodyresponse.
ENDWHILE.
*Set address quality level
IF addr_info_code EQ ''.
*** write Data comming from DQS into fields and set quality Level to High ****
customerrecord-postcode = postcode.
customerrecord-shippingaddress = shipping_address.
customerrecord-country = country.
customerrecord-city = city.
customerrecord-qualitylevel = 'HI'.
ELSE.
*** Set quality to low and translate errorcode into error message
customerrecord-qualitylevel = 'LO'.
CASE customerrecord-dqmresponse.
WHEN '1030'.
customerrecord-dqmresponse = 'No country identified.'.
WHEN '1080'.
customerrecord-dqmresponse = 'Address contains at least one character that is not part of the supported character set. '.
WHEN '2000'.
customerrecord-dqmresponse = 'Unable to identify city, region, and/or postcode information.'.
WHEN '2020'.
customerrecord-dqmresponse = 'Unable to identify postcode, and invalid city is preventing address cleansing.'.
WHEN '2030'.
customerrecord-dqmresponse = 'Invalid city and postcode are preventing address cleansing.'.
WHEN '2040'.
customerrecord-dqmresponse = 'Invalid postcode is preventing a city selection.'.
WHEN '2050'.
customerrecord-dqmresponse = 'City, region, and postcode matches are too close to choose one. '.
WHEN '2070'.
customerrecord-dqmresponse = 'City is valid, but multiple possible postcodes prevent choosing one.'.
WHEN '3000'.
customerrecord-dqmresponse = 'City, region, and postcode are valid, but unable to identify the street address. '.
WHEN '3010'.
customerrecord-dqmresponse = 'City, region, and postcode are valid, but unable to match street name to directory. '.
WHEN '3020'.
customerrecord-dqmresponse = 'Possible street name matches are too close to choose one.'.
WHEN '3030'.
customerrecord-dqmresponse = 'House number is missing on input or not in the directory.'.
WHEN '3050'.
customerrecord-dqmresponse = 'An invalid or missing street type is preventing address cleansing.'.
WHEN '3060'.
customerrecord-dqmresponse = 'A missing street type and prefix/suffix is preventing address cleansing.'.
WHEN '3070'.
customerrecord-dqmresponse = 'An invalid or missing prefix/suffix is preventing address cleansing.'.
WHEN '3080'.
customerrecord-dqmresponse = 'An invalid or missing postcode is preventing address cleansing.'.
WHEN '3090'.
customerrecord-dqmresponse = 'An invalid or missing city is preventing address cleansing.'.
WHEN '3100'.
customerrecord-dqmresponse = 'Possible address matches are too close to choose one.'.
WHEN '3200'.
customerrecord-dqmresponse = 'The building is missing on input or not in the directory.'.
WHEN '3210'.
customerrecord-dqmresponse = 'The building s address is not in the directory.'.
WHEN '3220'.
customerrecord-dqmresponse = 'Possible building matches are too close to choose one.'.
WHEN '3250'.
customerrecord-dqmresponse = 'The house number or building is missing on input or both are not in the directory. '.
WHEN '3300'.
customerrecord-dqmresponse = 'The postcode-only lookup returned multiple street names.'.
WHEN '4000'.
customerrecord-dqmresponse = 'The secondary address information is missing on input or not in the directory. '.
WHEN '4010'.
customerrecord-dqmresponse = 'Possible secondary address matches are too close to choose one.'.
WHEN '4500'.
customerrecord-dqmresponse = 'The organization is missing on input or not in the directory.'.
WHEN '4510'.
customerrecord-dqmresponse = 'The organization s address is not in the directory.'.
WHEN '4520'.
customerrecord-dqmresponse = 'Possible organization matches are too close to choose one.'.
WHEN '5000'.
customerrecord-dqmresponse = 'The postal authority classifies this address as undeliverable.'.
WHEN '5020'.
customerrecord-dqmresponse = 'The input address is blank.'.
WHEN '5040'.
customerrecord-dqmresponse = 'A violation of city, region, and postcode assignment rules is preventing address cleansing.'.
WHEN '5050'.
customerrecord-dqmresponse = 'The address is an obsolete address and can be matched to multiple addresses.'.
WHEN '5500'.
customerrecord-dqmresponse = 'Assignment to the reference data is below the specified minimum assignment level.'.
ENDCASE.
ENDIF.
| [
9,
2293,
3401,
1958,
360,
29610,
329,
19081,
4522,
327,
7759,
2662,
1137,
38827,
12532,
198,
9,
198,
9,
17267,
278,
25139,
2357,
1058,
8112,
357,
30575,
7065,
284,
16774,
14,
16424,
14,
29014,
19081,
2262,
1817,
8,
198,
9,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3551,
357,
17614,
329,
4441,
290,
19698,
8562,
7320,
9515,
19081,
2262,
1817,
8,
198,
9,
33680,
25139,
2357,
220,
1058,
327,
7759,
2662,
1137,
38827,
12532,
357,
11297,
19081,
6060,
8,
198,
198,
9,
20217,
4285,
654,
2406,
422,
360,
48,
50,
13,
2312,
815,
307,
262,
976,
355,
287,
262,
360,
48,
50,
28373,
1635,
198,
26947,
25,
220,
220,
288,
48382,
62,
45169,
20231,
41876,
4731,
26173,
8924,
705,
9693,
31444,
2751,
2885,
7707,
7597,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
288,
48382,
62,
19315,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
34,
19385,
40405,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
288,
48382,
62,
19205,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
34,
9050,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
288,
48382,
62,
7353,
8189,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
32782,
34,
16820,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
288,
48382,
62,
29851,
10745,
420,
1098,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
2885,
7707,
62,
10778,
62,
34,
16820,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
288,
48382,
62,
10414,
570,
480,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
20231,
7762,
24765,
4458,
198,
198,
9,
3855,
21588,
1366,
422,
24047,
198,
46506,
1635,
198,
197,
10913,
2662,
575,
56,
16,
62,
34,
7759,
2662,
1137,
38827,
12532,
198,
220,
220,
220,
33411,
1502,
312,
796,
2488,
23144,
263,
22105,
12,
2875,
312,
198,
220,
220,
220,
39319,
2488,
26947,
7,
7278,
62,
23144,
263,
22105,
737,
198,
10619,
46506,
13,
198,
198,
9,
361,
262,
2209,
373,
407,
3421,
262,
33934,
40,
815,
886,
13,
198,
5064,
357,
357,
43979,
62,
23144,
263,
22105,
12,
19205,
36529,
6491,
22105,
12,
19205,
1267,
5357,
198,
220,
220,
220,
357,
43979,
62,
23144,
263,
22105,
12,
7353,
8189,
36529,
6491,
22105,
12,
7353,
8189,
1267,
5357,
198,
220,
220,
220,
357,
43979,
62,
23144,
263,
22105,
12,
19315,
36529,
6491,
22105,
12,
19315,
1267,
5357,
198,
220,
220,
220,
357,
43979,
62,
23144,
263,
22105,
12,
1477,
4501,
21975,
36529,
6491,
22105,
12,
1477,
4501,
21975,
1267,
6739,
198,
220,
220,
220,
7788,
2043,
13,
198,
10619,
5064,
13,
198,
198,
46068,
1174,
25823,
7102,
45,
24565,
5390,
360,
48,
50,
220,
8412,
35625,
198,
26947,
25,
220,
220,
300,
83,
62,
25677,
17143,
220,
41876,
31598,
40717,
45,
8859,
11,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
25677,
220,
220,
220,
220,
220,
220,
41876,
48920,
3963,
31598,
40717,
45,
8859,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
2618,
62,
7353,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
15182,
220,
220,
220,
41876,
450,
499,
62,
30388,
13,
198,
198,
9,
9787,
611,
4637,
318,
1695,
198,
565,
62,
903,
62,
4023,
62,
16366,
14804,
271,
62,
15271,
62,
15182,
7,
198,
220,
7788,
15490,
2751,
198,
220,
220,
220,
6946,
62,
1416,
39055,
796,
705,
26314,
16,
62,
34,
7759,
2662,
1137,
38827,
12532,
6,
198,
220,
220,
220,
503,
7784,
62,
15271,
220,
220,
220,
220,
220,
220,
796,
705,
26314,
16,
62,
35,
48,
50,
62,
49,
6465,
6,
198,
220,
19644,
36,
3824,
2751,
198,
1695,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
15182,
198,
737,
198,
198,
5064,
5626,
5145,
6780,
62,
15182,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
6491,
22105,
12,
49506,
76,
26209,
796,
705,
16177,
2331,
284,
307,
23485,
11,
3387,
2198,
262,
6946,
8883,
2637,
13,
198,
220,
220,
220,
7788,
2043,
13,
198,
10619,
5064,
13,
198,
198,
9,
17953,
2638,
5456,
198,
26947,
7,
5439,
62,
16366,
8,
796,
537,
62,
903,
62,
4023,
62,
16366,
14804,
17953,
7,
198,
220,
220,
220,
6946,
62,
1416,
39055,
796,
705,
26314,
16,
62,
34,
7759,
2662,
1137,
38827,
12532,
6,
198,
220,
220,
220,
503,
7784,
62,
15271,
220,
220,
220,
220,
220,
220,
796,
705,
26314,
16,
62,
35,
48,
50,
62,
49,
6465,
6,
198,
737,
198,
198,
9,
41571,
19449,
3275,
422,
2836,
5128,
198,
6780,
62,
2618,
62,
7353,
796,
220,
930,
59,
90,
220,
366,
21975,
20560,
1298,
3467,
90,
91,
1222,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1,
90,
288,
48382,
62,
45169,
20231,
1782,
1298,
45144,
6491,
22105,
12,
1477,
4501,
21975,
1782,
33172,
91,
1222,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1,
90,
288,
48382,
62,
19315,
1782,
1298,
45144,
6491,
22105,
12,
19315,
1782,
1600,
91,
1222,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1,
90,
288,
48382,
62,
7353,
8189,
1782,
1298,
45144,
6491,
22105,
12,
7353,
8189,
1782,
1600,
91,
1222,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1,
90,
288,
48382,
62,
19205,
1782,
1298,
45144,
6491,
22105,
12,
19205,
1782,
1,
220,
3467,
5512,
91,
1222,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
1,
11250,
3924,
5376,
1298,
45144,
288,
48382,
62,
10414,
570,
480,
1782,
1,
59,
92,
930,
13,
198,
198,
9,
4550,
13639,
3815,
198,
29931,
1503,
300,
83,
62,
25677,
17143,
13,
198,
198,
7278,
62,
25677,
12,
3672,
796,
705,
38855,
4458,
198,
7278,
62,
25677,
12,
8367,
796,
705,
31438,
14,
17752,
4458,
198,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*---------------------------------------------------------------------*
* program for: TABLEFRAME_ZTEST_BCSET
* generation date: 25.06.2020 at 15:12:47
* view maintenance generator version: #001407#
*---------------------------------------------------------------------*
FUNCTION TABLEFRAME_ZTEST_BCSET .
PERFORM TABLEFRAME TABLES X_HEADER X_NAMTAB DBA_SELLIST DPL_SELLIST
EXCL_CUA_FUNCT
USING CORR_NUMBER VIEW_ACTION VIEW_NAME.
ENDFUNCTION.
| [
9,
10097,
30934,
9,
198,
9,
220,
220,
220,
1430,
329,
25,
220,
220,
43679,
10913,
10067,
62,
57,
51,
6465,
62,
2749,
28480,
198,
9,
220,
220,
5270,
3128,
25,
1679,
13,
3312,
13,
42334,
379,
1315,
25,
1065,
25,
2857,
198,
9,
220,
220,
1570,
9262,
17301,
2196,
25,
1303,
405,
1415,
2998,
2,
198,
9,
10097,
30934,
9,
198,
42296,
4177,
2849,
43679,
10913,
10067,
62,
57,
51,
6465,
62,
2749,
28480,
220,
220,
220,
220,
220,
220,
220,
764,
628,
220,
19878,
21389,
43679,
10913,
10067,
309,
6242,
28378,
1395,
62,
37682,
1137,
1395,
62,
45,
2390,
5603,
33,
360,
4339,
62,
5188,
3069,
8808,
360,
6489,
62,
5188,
3069,
8808,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
5097,
62,
34,
34970,
62,
42296,
4177,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1294,
2751,
220,
23929,
49,
62,
41359,
13246,
49880,
62,
44710,
49880,
62,
20608,
13,
198,
198,
1677,
8068,
4944,
4177,
2849,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL.
PRIVATE SECTION.
METHODS: test FOR TESTING.
ENDCLASS. "ltcl_Test
CLASS ltcl_test IMPLEMENTATION.
METHOD test.
zcl_abappgp_unit_test=>subpacket_identity(
iv_data = 'A'
iv_type = zif_abappgp_constants=>c_sub_type-regular_expression ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
9288,
5550,
20032,
17941,
7473,
43001,
2751,
360,
4261,
6234,
6006,
9863,
45698,
42,
49277,
43638,
5805,
7597,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
1332,
7473,
43001,
2751,
13,
198,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
2528,
565,
62,
14402,
198,
198,
31631,
300,
83,
565,
62,
9288,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1332,
13,
628,
220,
220,
220,
1976,
565,
62,
397,
1324,
31197,
62,
20850,
62,
9288,
14804,
7266,
8002,
316,
62,
738,
414,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
7890,
796,
705,
32,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
4906,
796,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
66,
62,
7266,
62,
4906,
12,
16338,
62,
38011,
6739,
628,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_dial DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_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 zcl_abapgit_object_dial IMPLEMENTATION.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: 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.
zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SE35' ).
ENDIF.
ENDMETHOD.
METHOD zif_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.
zcx_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 zif_abapgit_object~exists.
DATA: ls_tdct TYPE tdct.
ls_tdct = _read_tdct( ).
rv_bool = boolc( ls_tdct IS NOT INITIAL ).
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
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.
zcx_abapgit_exception=>raise( |Error from RS_DIALOG_SHOW, DIAL| ).
ENDIF.
ENDMETHOD.
METHOD zif_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 zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
38969,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
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,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
38969,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
628,
220,
220,
220,
374,
85,
62,
7220,
796,
269,
62,
7220,
62,
34680,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5589,
533,
62,
1462,
62,
47960,
62,
9641,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
785,
1845,
1653,
62,
20274,
41876,
1976,
565,
62,
397,
499,
18300,
62,
785,
1845,
1653,
62,
8423,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
42865,
25,
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,
705,
5188,
2327
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
"! <p class="shorttext synchronized" lang="en">Global types for advanced code search</p>
INTERFACE zif_adcoset_ty_global
PUBLIC.
TYPES:
ty_server_group TYPE rzlli_apcl,
ty_package_name TYPE devclass,
ty_package_names TYPE STANDARD TABLE OF devclass WITH EMPTY KEY,
ty_package_name_range TYPE RANGE OF devclass,
ty_tadir_types TYPE STANDARD TABLE OF trobjtype WITH EMPTY KEY,
ty_obj_names TYPE STANDARD TABLE OF sobj_name WITH EMPTY KEY,
ty_cls_main_incl_search_mode TYPE string,
ty_matcher_type TYPE c LENGTH 1,
ty_duration TYPE p LENGTH 15 DECIMALS 2,
"! Type for DDLX Source name (not available on 7.40)
ty_ddlxname TYPE progname,
BEGIN OF ty_method_param_info,
"! Name of a method parameter
name TYPE seocmpname,
"! Type handle of the parameter
type_handle TYPE REF TO cl_abap_datadescr,
END OF ty_method_param_info,
" <p class="shorttext synchronized" lang="en">Param definitions for parallel processing handler</p>
BEGIN OF ty_parallel_handler,
"! Class name of the parallel handler
classname TYPE string,
"! Method name of the parallel handler
method TYPE seocpdname,
"! Information about input parameter
input_param TYPE ty_method_param_info,
"! Information about output parameter
output_param TYPE ty_method_param_info,
END OF ty_parallel_handler,
BEGIN OF ty_tadir_object,
name TYPE sobj_name,
type TYPE trobjtype,
END OF ty_tadir_object,
ty_tadir_objects TYPE STANDARD TABLE OF ty_tadir_object WITH EMPTY KEY,
BEGIN OF ty_object,
name TYPE sobj_name,
type TYPE wbobjtype,
END OF ty_object,
ty_objects TYPE STANDARD TABLE OF ty_object WITH EMPTY KEY,
"! <p class="shorttext synchronized" lang="en">Ranges for search scope</p>
BEGIN OF ty_search_scope,
package_range TYPE ty_package_name_range,
object_type_range TYPE RANGE OF trobjtype,
object_name_range TYPE RANGE OF sobj_name,
owner_range TYPE RANGE OF uname,
created_on_range TYPE RANGE OF tadir-created_on,
appl_comp_range TYPE RANGE OF df14l-ps_posid,
max_objects TYPE i,
END OF ty_search_scope,
"! <p class="shorttext synchronized" lang="en">Uniquely identifies a match</p>
BEGIN OF ty_match_identifier,
object_name TYPE sobj_name,
object_type TYPE trobjtype, "wbobjtype,
display_name TYPE string,
main_include TYPE program,
include TYPE program,
END OF ty_match_identifier.
TYPES BEGIN OF ty_search_match.
INCLUDE TYPE ty_match_identifier.
TYPES:
start_line TYPE i,
start_column TYPE i,
end_line TYPE i,
end_column TYPE i,
snippet TYPE string.
TYPES END OF ty_search_match.
TYPES ty_search_matches TYPE STANDARD TABLE OF ty_search_match WITH EMPTY KEY.
TYPES:
"! Code search result
BEGIN OF ty_search_result,
matches TYPE ty_search_matches,
duration_in_s TYPE string,
END OF ty_search_result,
"! <p class="shorttext synchronized" lang="en">Settings for code based class search</p>
BEGIN OF ty_cls_search_settings,
search_main_incl TYPE abap_bool,
search_methods_incl TYPE abap_bool,
search_test_incl TYPE abap_bool,
search_macro_incl TYPE abap_bool,
search_local_def_incl TYPE abap_bool,
search_local_impl_incl TYPE abap_bool,
main_incl_search_mode TYPE ty_cls_main_incl_search_mode,
END OF ty_cls_search_settings,
"! <p class="shorttext synchronized" lang="en">Basic search settings</p>
BEGIN OF ty_search_settings,
line_feed TYPE string,
ignore_comment_lines TYPE abap_bool,
match_all_patterns TYPE abap_bool,
multiline_search TYPE abap_bool,
max_results TYPE i,
all_results TYPE abap_bool,
END OF ty_search_settings,
BEGIN OF ty_custom_search_settings,
class TYPE ty_cls_search_settings,
END OF ty_custom_search_settings,
BEGIN OF ty_parl_processing,
enabled TYPE abap_bool,
server_group TYPE ty_server_group,
END OF ty_parl_processing,
BEGIN OF ty_pattern_config,
ignore_case TYPE abap_bool,
matcher_type TYPE ty_matcher_type,
pattern_range TYPE RANGE OF string,
END OF ty_pattern_config.
"! <p class="shorttext synchronized" lang="en">Internal code search settings</p>
TYPES BEGIN OF ty_search_settings_int.
INCLUDE TYPE ty_search_settings AS basic_settings.
INCLUDE TYPE ty_pattern_config AS pattern_config.
TYPES:
custom_settings TYPE ty_custom_search_settings.
TYPES END OF ty_search_settings_int.
"! <p class="shorttext synchronized" lang="en">External settings for code search API</p>
TYPES BEGIN OF ty_search_settings_external.
INCLUDE TYPE ty_search_settings_int AS internal_settings.
TYPES:
parallel_processing TYPE ty_parl_processing,
search_scope TYPE ty_search_scope.
TYPES END OF ty_search_settings_external.
"! <p class="shorttext synchronized" lang="en">Defines search package for parallel search</p>
TYPES BEGIN OF ty_search_package.
INCLUDE TYPE ty_search_settings_int AS settings.
TYPES objects TYPE ty_tadir_objects.
TYPES END OF ty_search_package.
TYPES:
"! <p class="shorttext synchronized" lang="en">Value range for search option</p>
BEGIN OF ty_search_option_range,
sign TYPE ddsign,
sign2 TYPE ddsign,
option TYPE ddoption,
option2 TYPE ddoption,
low TYPE string,
high TYPE string,
END OF ty_search_option_range,
"! <p class="shorttext synchronized" lang="en">Table of option value ranges</p>
ty_search_option_ranges TYPE STANDARD TABLE OF ty_search_option_range WITH EMPTY KEY,
"! <p class="shorttext synchronized" lang="en">Represents search option with its values</p>
BEGIN OF ty_search_option,
option TYPE string,
ranges TYPE ty_search_option_ranges,
END OF ty_search_option,
"! <p class="shorttext synchronized" lang="en">Table of search options</p>
ty_search_options TYPE STANDARD TABLE OF ty_search_option WITH KEY option.
ENDINTERFACE.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
22289,
3858,
329,
6190,
2438,
2989,
3556,
79,
29,
198,
41358,
49836,
1976,
361,
62,
324,
6966,
316,
62,
774,
62,
20541,
198,
220,
44731,
13,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
15388,
62,
8094,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
374,
89,
15516,
62,
499,
565,
11,
198,
220,
220,
220,
1259,
62,
26495,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
1259,
62,
26495,
62,
14933,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
1614,
4871,
13315,
38144,
9936,
35374,
11,
198,
220,
220,
220,
1259,
62,
26495,
62,
3672,
62,
9521,
220,
220,
220,
220,
220,
220,
220,
41876,
371,
27746,
3963,
1614,
4871,
11,
198,
220,
220,
220,
1259,
62,
83,
324,
343,
62,
19199,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
4161,
50007,
4906,
13315,
38144,
9936,
35374,
11,
198,
220,
220,
220,
1259,
62,
26801,
62,
14933,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
27355,
73,
62,
3672,
13315,
38144,
9936,
35374,
11,
198,
220,
220,
220,
1259,
62,
565,
82,
62,
12417,
62,
259,
565,
62,
12947,
62,
14171,
41876,
4731,
11,
198,
220,
220,
220,
1259,
62,
6759,
2044,
62,
4906,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
406,
49494,
352,
11,
198,
220,
220,
220,
1259,
62,
32257,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
279,
406,
49494,
1315,
27196,
3955,
23333,
362,
11,
198,
220,
220,
220,
366,
0,
5994,
329,
360,
19260,
55,
8090,
1438,
357,
1662,
1695,
319,
767,
13,
1821,
8,
198,
220,
220,
220,
1259,
62,
1860,
75,
87,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1172,
3672,
11,
628,
220,
220,
220,
347,
43312,
3963,
1259,
62,
24396,
62,
17143,
62,
10951,
11,
198,
220,
220,
220,
220,
220,
366,
0,
6530,
286,
257,
2446,
11507,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
41876,
384,
420,
3149,
3672,
11,
198,
220,
220,
220,
220,
220,
366,
0,
5994,
5412,
286,
262,
11507,
198,
220,
220,
220,
220,
220,
2099,
62,
28144,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
19608,
2367,
6098,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
24396,
62,
17143,
62,
10951,
11,
628,
220,
220,
220,
366,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
22973,
17336,
329,
10730,
7587,
21360,
3556,
79,
29,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
1845,
29363,
62,
30281,
11,
198,
220,
220,
220,
220,
220,
366,
0,
5016,
1438,
286,
262,
10730,
21360,
198,
220,
220,
220,
220,
220,
1398,
3672,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
366,
0,
11789,
1438,
286,
262,
10730,
21360,
198,
220,
220,
220,
220,
220,
2446,
220,
220,
220,
220,
220,
220,
41876,
384,
420,
30094,
3672,
11,
198,
220,
220,
220,
220,
220,
366,
0,
6188,
546,
5128,
11507,
198,
220,
220,
220,
220,
220,
5128,
62,
17143,
220,
41876,
1259,
62,
24396,
62,
17143,
62,
10951,
11,
198,
220,
220,
220,
220,
220,
366,
0,
6188,
546,
5072,
11507,
198,
220,
220,
220,
220,
220,
5072,
62,
17143,
41876,
1259,
62,
24396,
62,
17143,
62,
10951,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
1845,
29363,
62,
30281,
11,
628,
220,
220,
220,
347,
43312,
3963,
1259,
62,
83,
324,
343,
62,
15252,
11,
198,
220,
220,
220,
220,
220,
1438,
41876,
27355,
73,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
2099,
41876,
4161,
50007,
4906,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
83,
324,
343,
62,
15252,
11,
628,
220,
220,
220,
1259,
62,
83,
324,
343,
62,
48205,
41876,
49053,
9795,
43679,
3963,
1259,
62,
83,
324,
343,
62,
15252,
13315,
38144,
9936,
35374,
11,
628,
220,
220,
220,
347,
43312,
3963,
1259,
62,
15252,
11,
198,
220,
220,
220,
220,
220,
1438,
41876,
27355,
73,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
2099,
41876,
266,
65,
26801,
4906,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
15252,
11,
628,
220,
220,
220,
1259,
62,
48205,
41876,
49053,
9795,
43679,
3963,
1259,
62,
15252,
13315,
38144,
9936,
35374,
11,
628,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
49,
6231,
329,
2989,
8354,
3556,
79,
29,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
12947,
62,
29982,
11,
198,
220,
220,
220,
220,
220,
5301,
62,
9521,
220,
220,
220,
220,
41876,
1259,
62,
26495,
62,
3672,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
2134,
62,
4906,
62,
9521,
41876,
371,
27746,
3963,
4161,
50007,
4906,
11,
198,
220,
220,
220,
220,
220,
2134,
62,
3672,
62,
9521,
41876,
371,
27746,
3963,
27355,
73,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
4870,
62,
9521,
220,
220,
220,
220,
220,
220,
41876,
371,
27746,
3963,
555,
480,
11,
198,
220,
220,
220,
220,
220,
2727,
62,
261,
62,
9521,
220,
41876,
371,
27746,
3963,
36264,
343,
12,
25598,
62,
261,
11,
198,
220,
220,
220,
220,
220,
3680,
62,
5589,
62,
9521,
220,
220,
41876,
371,
27746,
3963,
47764,
1415,
75,
12,
862,
62,
1930,
312,
11,
198,
220,
220,
220,
220,
220,
3509,
62,
48205,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
12947,
62,
29982,
11,
628,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
40257,
306,
21079,
257,
2872,
3556,
79,
29,
198,
220,
220,
220,
347
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 abap_Unit_Testclass DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS abap_unit_testclass DEFINITION FOR TESTING "#AU Duration Long
"#AU Risk_Level Dangerous
.
*?<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
*?<asx:values>
*?<TESTCLASS_OPTIONS>
*?<TEST_CLASS>abap_Unit_Testclass
*?</TEST_CLASS>
*?<TEST_MEMBER>f_Cut
*?</TEST_MEMBER>
*?<OBJECT_UNDER_TEST>/GAL/COLOR_HSV
*?</OBJECT_UNDER_TEST>
*?<OBJECT_IS_LOCAL/>
*?<GENERATE_FIXTURE/>
*?<GENERATE_CLASS_FIXTURE/>
*?<GENERATE_INVOCATION/>
*?<GENERATE_ASSERT_EQUAL/>
*?</TESTCLASS_OPTIONS>
*?</asx:values>
*?</asx:abap>
PRIVATE SECTION.
* ================
DATA:
f_cut TYPE REF TO /gal/color_hsv. "#EC NEEDED
METHODS: from_color_rgb FOR TESTING.
METHODS: to_color_rgb FOR TESTING.
ENDCLASS. "abap_Unit_Testclass
*----------------------------------------------------------------------*
* CLASS abap_Unit_Testclass IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS abap_unit_testclass IMPLEMENTATION.
* =========================================
METHOD from_color_rgb.
* ======================
DATA l_count TYPE i.
DATA l_color_in TYPE /gal/color_rgb24_hex.
DATA l_color_out TYPE /gal/color_rgb24_hex.
DATA l_rgb TYPE REF TO /gal/color_rgb.
DATA l_hsv TYPE REF TO /gal/color_hsv.
l_count = 2 ** 23.
DO l_count TIMES.
l_color_in = 2 * sy-index - 1.
l_rgb = /gal/color_rgb=>from_rgb24_hex( l_color_in ).
l_hsv = /gal/color_hsv=>from_color_rgb( l_rgb ).
l_rgb = l_hsv->to_color_rgb( ).
l_color_out = l_rgb->to_rgb24_hex( ).
cl_aunit_assert=>assert_equals(
act = l_color_out
exp = l_color_in
msg = `Color conversion failed.`
).
ENDDO.
ENDMETHOD. "from_Color_Rgb
METHOD to_color_rgb.
* ====================
DATA l_count TYPE i.
DATA l_color_in TYPE /gal/color_rgb24_hex.
DATA l_color_out TYPE /gal/color_rgb24_hex.
DATA l_rgb TYPE REF TO /gal/color_rgb.
DATA l_hsv TYPE REF TO /gal/color_hsv.
l_count = 2 ** 23.
DO l_count TIMES.
l_color_in = 2 * sy-index - 2.
l_rgb = /gal/color_rgb=>from_rgb24_hex( l_color_in ).
l_hsv = /gal/color_hsv=>from_color_rgb( l_rgb ).
l_rgb = l_hsv->to_color_rgb( ).
l_color_out = l_rgb->to_rgb24_hex( ).
cl_aunit_assert=>assert_equals(
act = l_color_out
exp = l_color_in
msg = `Color conversion failed.`
).
ENDDO.
ENDMETHOD. "to_Color_Rgb
ENDCLASS. "abap_Unit_Testclass
| [
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
450,
499,
62,
26453,
62,
14402,
4871,
5550,
20032,
17941,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
450,
499,
62,
20850,
62,
9288,
4871,
5550,
20032,
17941,
7473,
43001,
2751,
25113,
26830,
22920,
5882,
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,
25113,
26830,
19602,
62,
4971,
29892,
198,
13,
198,
9,
30,
171,
119,
123,
27,
292,
87,
25,
397,
499,
35555,
5907,
25,
292,
87,
2625,
4023,
1378,
2503,
13,
82,
499,
13,
785,
14,
397,
499,
19875,
1,
2196,
2625,
16,
13,
15,
5320,
198,
9,
30,
27,
292,
87,
25,
27160,
29,
198,
9,
30,
27,
51,
1546,
4825,
43,
10705,
62,
3185,
51,
11053,
29,
198,
9,
30,
27,
51,
6465,
62,
31631,
29,
397,
499,
62,
26453,
62,
14402,
4871,
198,
9,
30,
3556,
51,
6465,
62,
31631,
29,
198,
9,
30,
27,
51,
6465,
62,
44,
28952,
29,
69,
62,
26254,
198,
9,
30,
3556,
51,
6465,
62,
44,
28952,
29,
198,
9,
30,
27,
9864,
23680,
62,
4944,
14418,
62,
51,
6465,
29,
14,
38,
1847,
14,
46786,
62,
7998,
53,
198,
9,
30,
3556,
9864,
23680,
62,
4944,
14418,
62,
51,
6465,
29,
198,
9,
30,
27,
9864,
23680,
62,
1797,
62,
29701,
1847,
15913,
198,
9,
30,
27,
35353,
1137,
6158,
62,
47084,
51,
11335,
15913,
198,
9,
30,
27,
35353,
1137,
6158,
62,
31631,
62,
47084,
51,
11335,
15913,
198,
9,
30,
27,
35353,
1137,
6158,
62,
1268,
53,
4503,
6234,
15913,
198,
9,
30,
27,
35353,
1137,
6158,
62,
10705,
17395,
62,
36,
10917,
1847,
15913,
198,
9,
30,
3556,
51,
1546,
4825,
43,
10705,
62,
3185,
51,
11053,
29,
198,
9,
30,
3556,
292,
87,
25,
27160,
29,
198,
9,
30,
3556,
292,
87,
25,
397,
499,
29,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
9,
796,
25609,
18604,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
277,
62,
8968,
41876,
4526,
37,
5390,
1220,
13528,
14,
8043,
62,
11994,
85,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
36465,
1961,
628,
220,
220,
220,
337,
36252,
50,
25,
422,
62,
8043,
62,
81,
22296,
7473,
43001,
2751,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
284,
62,
8043,
62,
81,
22296,
7473,
43001,
2751,
13,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
397,
499,
62,
26453,
62,
14402,
4871,
628,
198,
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
450,
499,
62,
26453,
62,
14402,
4871,
30023,
2538,
10979,
6234,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
450,
499,
62,
20850,
62,
9288,
4871,
30023,
2538,
10979,
6234,
13,
198,
9,
46111,
2559,
628,
220,
337,
36252,
422,
62,
8043,
62,
81,
22296,
13,
198,
9,
36658,
1421,
28,
198,
220,
220,
220,
42865,
300,
62,
9127,
220,
220,
220,
220,
41876,
1312,
13,
198,
220,
220,
220,
42865,
300,
62,
8043,
62,
259,
220,
41876,
1220,
13528,
14,
8043,
62,
81,
22296,
1731,
62,
33095,
13,
198,
220,
220,
220,
42865,
300,
62,
8043,
62,
448,
41876,
1220,
13528,
14,
8043,
62,
81,
22296,
1731,
62,
33095,
13,
198,
220,
220,
220,
42865,
300,
62,
81,
22296,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1220,
13528,
14,
8043,
62,
81,
22296,
13,
198,
220,
220,
220,
42865,
300,
62,
11994,
85,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1220,
13528,
14,
8043,
62,
11994,
85,
13,
628,
220,
220,
220,
300,
62,
9127,
796,
362,
12429,
2242,
13,
628,
220,
220,
220,
8410,
300,
62,
9127,
31742,
1546,
13,
198,
220,
220,
220,
220,
220,
300,
62,
8043,
62,
259,
796,
362,
1635,
827,
12,
9630,
532,
352,
13,
628,
220,
220,
220,
220,
220,
300,
62,
81,
22296,
796,
1220,
13528,
14,
8043,
62,
81,
22296,
14804,
6738,
62,
81,
22296,
1731,
62,
33095,
7,
300,
62,
8043,
62,
259,
6739,
198,
220,
220,
220,
220,
220,
300,
62,
11994,
85,
796,
1220,
13528,
14,
8043,
62,
11994,
85,
14804,
6738,
62,
8043,
62,
81,
22296,
7,
300,
62,
81,
22296,
6739,
198,
220,
220,
220,
220,
220,
300,
62,
81,
22296,
796,
300,
62,
11994,
85,
3784,
1462,
62,
8043,
62,
81,
22296,
7,
6739,
628,
220,
220,
220,
220,
220,
300,
62,
8043,
62,
448,
796,
300,
62,
81,
22296,
3784,
1462,
62,
81,
22296,
1731,
62,
33095,
7,
6739,
628,
220,
220,
220,
220,
220,
537,
62,
1942,
270,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
220,
220,
719,
220,
220,
796,
300,
62,
8043,
62,
448,
198,
220,
220,
220,
220,
220,
220,
220,
1033,
220,
220,
796,
300,
62,
8043,
62,
259,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
220,
220,
796,
4600,
10258,
11315,
4054,
13,
63,
198,
220,
220,
220,
220,
220,
6739,
198,
220,
220,
220,
23578,
18227,
13,
198,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
366,
6738,
62,
10258,
62,
49,
22296,
628,
220,
337,
36252,
284,
62,
8043,
62,
81,
22296,
13,
198,
9,
36658,
18604,
198,
220,
220,
220,
42865,
300,
62,
9127,
220,
220,
220,
220,
41876,
1312,
13,
198,
220,
220,
220,
42865,
300,
62,
8043,
62,
259,
220,
41876,
1220,
13528,
14,
8043,
62,
81,
22296,
1731,
62,
33095,
13,
198,
220,
220,
220,
42865,
300,
62,
8043,
62,
448,
41876,
1220,
13528,
14,
8043,
62,
81,
22296,
1731,
62,
33095,
13,
198,
220,
220,
220,
42865,
300,
62,
81,
22296,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1220,
13528,
14,
8043,
62,
81,
22296,
13,
198,
220,
220,
220,
42865,
300,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_packet_list DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS from_stream
IMPORTING
!io_stream TYPE REF TO zcl_abappgp_stream
RETURNING
VALUE(rt_packets) TYPE zif_abappgp_constants=>ty_packet_list .
CLASS-METHODS to_stream
IMPORTING
!it_packets TYPE zif_abappgp_constants=>ty_packet_list
RETURNING
VALUE(ro_stream) TYPE REF TO zcl_abappgp_stream .
PROTECTED SECTION.
TYPES:
BEGIN OF ty_map,
binary TYPE string,
tag TYPE i,
END OF ty_map .
TYPES:
ty_map_tt TYPE STANDARD TABLE OF ty_map WITH DEFAULT KEY .
CONSTANTS c_new_packet_format TYPE string VALUE '11' ##NO_TEXT.
CLASS-METHODS build_packet_header
IMPORTING
!iv_tag TYPE zif_abappgp_constants=>ty_tag
RETURNING
VALUE(rv_header) TYPE xstring .
CLASS-METHODS get_tag_mapping
RETURNING
VALUE(rt_map) TYPE ty_map_tt .
CLASS-METHODS tag_to_binary
IMPORTING
!iv_tag TYPE i
RETURNING
VALUE(rv_string) TYPE string .
CLASS-METHODS binary_to_tag
IMPORTING
!iv_string TYPE string
RETURNING
VALUE(rv_tag) TYPE i .
CLASS-METHODS read_packet_header
IMPORTING
!io_stream TYPE REF TO zcl_abappgp_stream
RETURNING
VALUE(rv_tag) TYPE zif_abappgp_constants=>ty_tag .
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ABAPPGP_PACKET_LIST IMPLEMENTATION.
METHOD binary_to_tag.
DATA: lt_map TYPE ty_map_tt.
FIELD-SYMBOLS: <ls_map> LIKE LINE OF lt_map.
ASSERT strlen( iv_string ) = 6.
lt_map = get_tag_mapping( ).
READ TABLE lt_map WITH KEY binary = iv_string ASSIGNING <ls_map>.
ASSERT sy-subrc = 0.
rv_tag = <ls_map>-tag.
* CASE iv_string.
* WHEN '000001'. " Public-Key Encrypted Session Key Packet
* rv_tag = zif_abappgp_constants=>c_tag-public_key_enc.
* WHEN '000010'. " Signature Packet
* rv_tag = zif_abappgp_constants=>c_tag-signature.
* WHEN '000011'. " Symmetric-Key Encrypted Session Key Packet
* rv_tag = zif_abappgp_constants=>c_tag-symmetric_key_enc.
* WHEN '000100'. " One-Pass Signature Packet
* rv_tag = zif_abappgp_constants=>c_tag-one_pass.
* WHEN '000101'. " Secret-Key Packet
* rv_tag = zif_abappgp_constants=>c_tag-secret_key.
* WHEN '000110'. " Public-Key Packet
* rv_tag = zif_abappgp_constants=>c_tag-public_key.
* WHEN '000111'. " Secret-Subkey Packet
* rv_tag = zif_abappgp_constants=>c_tag-secret_subkey.
* WHEN '001000'. " Compressed Data Packet
* rv_tag = zif_abappgp_constants=>c_tag-compressed_data.
* WHEN '001001'. " Symmetrically Encrypted Data Packet
* rv_tag = zif_abappgp_constants=>c_tag-symmetrical_enc.
* WHEN '001010'. " Marker Packet
* rv_tag = zif_abappgp_constants=>c_tag-marker.
* WHEN '001011'. " Literal Data Packet
* rv_tag = zif_abappgp_constants=>c_tag-literal.
* WHEN '001100'. " Trust Packet
* rv_tag = zif_abappgp_constants=>c_tag-trust.
* WHEN '001101'. " User ID Packet
* rv_tag = zif_abappgp_constants=>c_tag-user_id.
* WHEN '001110'. " Public-Subkey Packet
* rv_tag = zif_abappgp_constants=>c_tag-public_subkey.
* WHEN '010001'. " User Attribute Packet
* rv_tag = zif_abappgp_constants=>c_tag-user_attribute.
* WHEN '010010'. " Sym. Encrypted and Integrity Protected Data Packet
* rv_tag = zif_abappgp_constants=>c_tag-symmetrical_inte.
* WHEN '010011'. " Modification Detection Code Packet
* rv_tag = zif_abappgp_constants=>c_tag-modification_detection.
* WHEN OTHERS.
* ASSERT 0 = 1.
* ENDCASE.
ENDMETHOD.
METHOD build_packet_header.
DATA: lv_bits TYPE string,
lv_hex TYPE x LENGTH 1,
lv_tag TYPE string.
lv_tag = tag_to_binary( iv_tag ).
CONCATENATE c_new_packet_format lv_tag INTO lv_bits.
lv_hex = zcl_abappgp_convert=>bits_to_integer( lv_bits ).
rv_header = lv_hex.
ENDMETHOD.
METHOD from_stream.
DATA: lo_data TYPE REF TO zcl_abappgp_stream,
lv_tag TYPE zif_abappgp_constants=>ty_tag,
li_pkt TYPE REF TO zif_abappgp_packet.
WHILE io_stream->get_length( ) > 0.
lv_tag = read_packet_header( io_stream ).
lo_data = io_stream->eat_stream( io_stream->eat_length( ) ).
li_pkt = zcl_abappgp_packet_factory=>create( io_data = lo_data
iv_tag = lv_tag ).
APPEND li_pkt TO rt_packets.
ENDWHILE.
ENDMETHOD.
METHOD get_tag_mapping.
DEFINE _append.
append initial line to rt_map assigning <ls_map>.
<ls_map>-binary = &1.
<ls_map>-tag = &2.
END-OF-DEFINITION.
FIELD-SYMBOLS: <ls_map> LIKE LINE OF rt_map.
_append '000001' zif_abappgp_constants=>c_tag-public_key_enc.
_append '000010' zif_abappgp_constants=>c_tag-signature.
_append '000011' zif_abappgp_constants=>c_tag-symmetric_key_enc.
_append '000100' zif_abappgp_constants=>c_tag-one_pass.
_append '000101' zif_abappgp_constants=>c_tag-secret_key.
_append '000110' zif_abappgp_constants=>c_tag-public_key.
_append '000111' zif_abappgp_constants=>c_tag-secret_subkey.
_append '001000' zif_abappgp_constants=>c_tag-compressed_data.
_append '001001' zif_abappgp_constants=>c_tag-symmetrical_enc.
_append '001010' zif_abappgp_constants=>c_tag-marker.
_append '001011' zif_abappgp_constants=>c_tag-literal.
_append '001100' zif_abappgp_constants=>c_tag-trust.
_append '001101' zif_abappgp_constants=>c_tag-user_id.
_append '001110' zif_abappgp_constants=>c_tag-public_subkey.
_append '010001' zif_abappgp_constants=>c_tag-user_attribute.
_append '010010' zif_abappgp_constants=>c_tag-symmetrical_inte.
_append '010011' zif_abappgp_constants=>c_tag-modification_detection.
ENDMETHOD.
METHOD read_packet_header.
DATA: lv_bits TYPE string.
lv_bits = zcl_abappgp_convert=>to_bits( io_stream->eat_octet( ) ).
ASSERT lv_bits(2) = c_new_packet_format. " no support for old packet format
lv_bits = lv_bits+2.
rv_tag = binary_to_tag( lv_bits ).
ENDMETHOD.
METHOD tag_to_binary.
DATA: lt_map TYPE ty_map_tt.
FIELD-SYMBOLS: <ls_map> LIKE LINE OF lt_map.
lt_map = get_tag_mapping( ).
READ TABLE lt_map WITH KEY tag = iv_tag ASSIGNING <ls_map>.
ASSERT sy-subrc = 0.
rv_string = <ls_map>-binary.
ENDMETHOD.
METHOD to_stream.
DATA: li_packet TYPE REF TO zif_abappgp_packet,
lv_data TYPE xstring.
CREATE OBJECT ro_stream.
LOOP AT it_packets INTO li_packet.
ro_stream->write_octets( build_packet_header( li_packet->get_tag( ) ) ).
lv_data = li_packet->to_stream( )->get_data( ).
ro_stream->write_length( xstrlen( lv_data ) ).
ro_stream->write_octets( lv_data ).
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
1324,
31197,
62,
8002,
316,
62,
4868,
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,
422,
62,
5532,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
5532,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
1324,
31197,
62,
5532,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
8002,
1039,
8,
41876,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
774,
62,
8002,
316,
62,
4868,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
284,
62,
5532,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
8002,
1039,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
774,
62,
8002,
316,
62,
4868,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
5532,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
1324,
31197,
62,
5532,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
8899,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13934,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
8899,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
8899,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
8899,
13315,
5550,
38865,
35374,
764,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
3605,
62,
8002,
316,
62,
18982,
41876,
4731,
26173,
8924,
705,
1157,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
1382,
62,
8002,
316,
62,
25677,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
12985,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
774,
62,
12985,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
25677,
8,
41876,
2124,
8841,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
12985,
62,
76,
5912,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
8899,
8,
41876,
1259,
62,
8899,
62,
926,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
7621,
62,
1462,
62,
39491,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
12985,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8841,
8,
41876,
4731,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
13934,
62,
1462,
62,
12985,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8841,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
12985,
8,
41876,
1312,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
1100,
62,
8002,
316,
62,
25677,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
5532,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
1324,
31197,
62,
5532,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
12985,
8,
41876,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
774,
62,
12985,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
6968,
47,
62,
47,
8120,
2767,
62,
45849,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
13934,
62,
1462,
62,
12985,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
8899,
41876,
1259,
62,
8899,
62,
926,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
8899,
29,
34178,
48920,
3963,
300,
83,
62,
8899,
13,
628,
198,
220,
220,
220,
24994,
17395,
965,
11925,
7,
21628,
62,
8841,
1267,
796,
718,
13,
628,
220,
220,
220,
300,
83,
62,
8899,
796,
651,
62,
12985,
62,
76,
5912,
7,
6739,
628,
220,
220,
220,
20832,
43679,
300,
83,
62,
8899,
13315,
35374,
13934,
796,
21628,
62,
8841,
24994,
3528,
15871,
1279,
7278,
62,
8899,
28401,
198,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
220,
220,
374,
85,
62,
12985,
796,
1279,
7278,
62,
8899,
29,
12,
12985,
13,
198,
198,
9,
220,
220,
220,
42001,
21628,
62,
8841,
13,
198,
9,
220,
220,
220,
220,
220,
42099,
705,
2388,
486,
4458,
366,
5094,
12,
9218,
14711,
15109,
23575,
7383,
6400,
316,
198,
9,
220,
220,
220,
220,
220,
220,
220,
374,
85,
62,
12985,
796,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
66,
62,
12985,
12,
11377,
62,
2539,
62,
12685,
13,
198,
9,
220,
220,
220,
220,
220,
42099,
705,
2388,
940,
4458,
366,
34894,
6400,
316,
198,
9,
220,
220,
220,
220,
220,
220,
220,
374,
85,
62,
12985,
796,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
66,
62,
12985,
12,
12683,
1300,
13,
198,
9,
220,
220,
220,
220,
220,
42099,
705,
2388,
1157,
4458,
366,
1632,
3020,
19482,
12,
9218,
14711,
15109,
23575,
7383,
6400,
316,
198,
9,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltd_clean_code_manager DEFINITION FOR TESTING.
PUBLIC SECTION.
INTERFACES: y_if_clean_code_manager.
ENDCLASS.
CLASS ltd_clean_code_manager IMPLEMENTATION.
METHOD y_if_clean_code_manager~read_check_customizing.
result = VALUE #( ( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'N' threshold = 0 )
( 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.
convert_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example_class DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' PROTECTED SECTION. ' )
( ' METHODS test. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_class IMPLEMENTATION. ' )
( ' METHOD test. ' )
( ' DATA(report_name) = sy-repid. ' )
( ' ENDMETHOD. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
METHOD set_data_for_error.
convert_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example_class DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' PROTECTED SECTION. ' )
( ' METHODS test. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_class IMPLEMENTATION. ' )
( ' METHOD test. ' )
( ' TEST-SEAM read_report_name. ' )
( ' DATA(report_name) = sy-repid. ' )
( ' END-TEST-SEAM. ' )
( ' ENDMETHOD. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
METHOD set_pseudo_comment_ok.
convert_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example_class DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' PROTECTED SECTION. ' )
( ' METHODS test. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_class IMPLEMENTATION. ' )
( ' METHOD test. ' )
( ' TEST-SEAM read_report_name. "#EC TEST_SEAM_USAGE ' )
( ' DATA(report_name) = sy-repid. ' )
( ' END-TEST-SEAM. ' )
( ' ENDMETHOD. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
ENDCLASS.
CLASS ltd_clean_code_exemption_no DEFINITION FOR TESTING
INHERITING FROM y_exemption_handler.
PUBLIC SECTION.
METHODS: is_object_exempted REDEFINITION.
ENDCLASS.
CLASS ltd_clean_code_exemption_no IMPLEMENTATION.
METHOD is_object_exempted.
RETURN.
ENDMETHOD.
ENDCLASS.
CLASS local_test_class DEFINITION FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
DATA: cut TYPE REF TO y_check_test_seam_usage,
ref_scan_manager_double TYPE REF TO ltd_ref_scan_manager.
METHODS:
setup,
assert_errors IMPORTING err_cnt TYPE i,
assert_pseudo_comments IMPORTING pc_cnt TYPE i,
is_bound FOR TESTING,
check_ok FOR TESTING,
check_error FOR TESTING,
check_pseudo_comment_ok FOR TESTING.
ENDCLASS.
CLASS y_check_test_seam_usage DEFINITION LOCAL FRIENDS local_test_class.
CLASS local_test_class IMPLEMENTATION.
METHOD setup.
cut = NEW y_check_test_seam_usage( ).
ref_scan_manager_double = NEW ltd_ref_scan_manager( ).
cut->ref_scan_manager ?= ref_scan_manager_double.
cut->clean_code_manager = NEW ltd_clean_code_manager( ).
cut->clean_code_exemption_handler = NEW ltd_clean_code_exemption_no( ).
cut->attributes_maintained = abap_true.
ENDMETHOD.
METHOD is_bound.
cl_abap_unit_assert=>assert_bound(
EXPORTING
act = cut ).
ENDMETHOD.
METHOD check_ok.
ref_scan_manager_double->set_data_for_ok( ).
cut->run( ).
assert_errors( 0 ).
assert_pseudo_comments( 0 ).
ENDMETHOD.
METHOD check_error.
ref_scan_manager_double->set_data_for_error( ).
cut->run( ).
assert_errors( 1 ).
assert_pseudo_comments( 0 ).
ENDMETHOD.
METHOD check_pseudo_comment_ok.
ref_scan_manager_double->set_pseudo_comment_ok( ).
cut->run( ).
assert_errors( 0 ).
assert_pseudo_comments( 1 ).
ENDMETHOD.
METHOD assert_errors.
cl_abap_unit_assert=>assert_equals(
EXPORTING
act = cut->statistics->get_number_errors( )
exp = err_cnt ).
ENDMETHOD.
METHOD assert_pseudo_comments.
cl_abap_unit_assert=>assert_equals(
EXPORTING
act = cut->statistics->get_number_pseudo_comments( )
exp = pc_cnt ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
8671,
62,
27773,
62,
8189,
62,
37153,
5550,
20032,
17941,
7473,
43001,
2751,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
27773,
62,
8189,
62,
37153,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
93,
961,
62,
9122,
62,
23144,
2890,
13,
198,
220,
220,
220,
1255,
796,
26173,
8924,
1303,
7,
357,
4174,
62,
261,
62,
9288,
8189,
796,
450,
499,
62,
7942,
4174,
62,
261,
62,
27781,
62,
8189,
796,
450,
499,
62,
7942,
1293,
78,
796,
705,
45,
6,
11387,
796,
657,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
4174,
62,
261,
62,
9288,
8189,
796,
450,
499,
62,
7942,
4174,
62,
261,
62,
27781,
62,
8189,
796,
450,
499,
62,
7942,
1293,
78,
796,
705,
36,
6,
11387,
796,
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,
628,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
5550,
20032,
17941,
3268,
16879,
2043,
2751,
16034,
331,
62,
35836,
62,
37153,
62,
23352,
7473,
43001,
2751,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7890,
62,
1640,
62,
482,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7890,
62,
1640,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7752,
12003,
62,
23893,
62,
482,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
482,
13,
198,
220,
220,
220,
10385,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
4871,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
44731,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
48006,
9782,
1961,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
337,
36252,
50,
1332,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
4871,
30023,
2538,
10979,
6234,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
337,
36252,
1332,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
42865,
7,
13116,
62,
3672,
8,
796,
827,
12,
7856,
312,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
23578,
49273,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
198,
220,
220,
220,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
18224,
13,
198,
220,
220,
220,
10385,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
4871,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
44731,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
48006,
9782,
1961,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
337,
36252,
50,
1332,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
4871,
30023,
2538,
10979,
6234,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
337,
36252,
1332,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
43001,
12,
5188,
2390,
1100,
62,
13116,
62,
3672,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
42865,
7,
13116,
62,
3672,
8,
796,
827,
12,
7856,
312,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
23578,
12,
51,
6465,
12,
5188,
2390,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
23578,
49273,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
198,
220,
220,
220,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
900,
62,
7752,
12003,
62,
23893,
62,
482,
13,
198,
220,
220,
220,
10385,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
4871,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
44731,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
48006,
9782,
1961,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
337,
36252,
50,
1332,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
4871,
30023,
2538,
10979,
6234,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
337,
36252,
1332,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
43001,
12,
5188,
2390,
1100,
62,
13116,
62,
3672,
13,
25113
] | [
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class zcl_turtle_output definition
public final.
public section.
class-methods show
importing turtle type ref to zcl_turtle.
class-methods download
importing
turtle type ref to zcl_turtle
filename type string default `abap-turtle.html`.
protected section.
private section.
endclass.
class zcl_turtle_output implementation.
method show.
cl_abap_browser=>show_html(
size = cl_abap_browser=>xlarge
html_string = turtle->get_html( ) ).
endmethod.
method download.
data(file_name) = filename.
data(path) = ``.
data(full_path) = ``.
cl_gui_frontend_services=>file_save_dialog(
exporting
default_extension = `html`
default_file_name = filename
initial_directory = ``
changing
filename = file_name
path = path
fullpath = full_path
exceptions
others = 1 ).
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
split turtle->get_html( ) at |\r\n| into table data(lines).
cl_gui_frontend_services=>gui_download(
exporting
filename = file_name
changing
data_tab = lines
exceptions
others = 1 ).
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endmethod.
endclass.
| [
4871,
1976,
565,
62,
83,
17964,
62,
22915,
6770,
198,
220,
1171,
2457,
13,
628,
220,
1171,
2665,
13,
198,
220,
220,
220,
1398,
12,
24396,
82,
905,
198,
220,
220,
220,
220,
220,
33332,
28699,
2099,
1006,
284,
1976,
565,
62,
83,
17964,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
4321,
198,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
28699,
2099,
1006,
284,
1976,
565,
62,
83,
17964,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
2099,
4731,
4277,
4600,
397,
499,
12,
83,
17964,
13,
6494,
44646,
628,
220,
6861,
2665,
13,
198,
220,
2839,
2665,
13,
198,
437,
4871,
13,
628,
198,
198,
4871,
1976,
565,
62,
83,
17964,
62,
22915,
7822,
13,
628,
220,
2446,
905,
13,
198,
220,
220,
220,
537,
62,
397,
499,
62,
40259,
14804,
12860,
62,
6494,
7,
198,
220,
220,
220,
220,
220,
2546,
796,
537,
62,
397,
499,
62,
40259,
14804,
87,
11664,
198,
220,
220,
220,
220,
220,
27711,
62,
8841,
796,
28699,
3784,
1136,
62,
6494,
7,
1267,
6739,
198,
220,
886,
24396,
13,
628,
220,
2446,
4321,
13,
628,
220,
220,
220,
1366,
7,
7753,
62,
3672,
8,
796,
29472,
13,
198,
220,
220,
220,
1366,
7,
6978,
8,
796,
7559,
13,
198,
220,
220,
220,
1366,
7,
12853,
62,
6978,
8,
796,
7559,
13,
628,
220,
220,
220,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
7753,
62,
21928,
62,
38969,
519,
7,
198,
220,
220,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
2302,
3004,
796,
4600,
6494,
63,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
7753,
62,
3672,
796,
29472,
198,
220,
220,
220,
220,
220,
220,
220,
4238,
62,
34945,
796,
7559,
198,
220,
220,
220,
220,
220,
5609,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
2393,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
3108,
198,
220,
220,
220,
220,
220,
220,
220,
1336,
6978,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1336,
62,
6978,
198,
220,
220,
220,
220,
220,
13269,
198,
220,
220,
220,
220,
220,
220,
220,
1854,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
352,
6739,
628,
220,
220,
220,
611,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
3275,
4686,
827,
12,
19662,
312,
2099,
827,
12,
19662,
774,
1271,
827,
12,
19662,
3919,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
351,
827,
12,
19662,
85,
16,
827,
12,
19662,
85,
17,
827,
12,
19662,
85,
18,
827,
12,
19662,
85,
19,
13,
198,
220,
220,
220,
45762,
13,
628,
220,
220,
220,
6626,
28699,
3784,
1136,
62,
6494,
7,
1267,
379,
930,
59,
81,
59,
77,
91,
656,
3084,
1366,
7,
6615,
737,
198,
220,
220,
220,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
48317,
62,
15002,
7,
198,
220,
220,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
796,
2393,
62,
3672,
198,
220,
220,
220,
220,
220,
5609,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
62,
8658,
796,
3951,
198,
220,
220,
220,
220,
220,
13269,
198,
220,
220,
220,
220,
220,
220,
220,
1854,
220,
220,
796,
352,
6739,
628,
220,
220,
220,
611,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
3275,
4686,
827,
12,
19662,
312,
2099,
827,
12,
19662,
774,
1271,
827,
12,
19662,
3919,
198,
220,
220,
220,
220,
220,
220,
220,
351,
827,
12,
19662,
85,
16,
827,
12,
19662,
85,
17,
827,
12,
19662,
85,
18,
827,
12,
19662,
85,
19,
13,
198,
220,
220,
220,
45762,
13,
628,
220,
886,
24396,
13,
198,
198,
437,
4871,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"Name: \PR:ZDOP_RAPOR_ENHANCEMENT\IC:ZDOP_RAPOR_ENHANCEMENT\SE:END\EI
ENHANCEMENT 0 ZDOP_RAPOR_ENHANCEMENT.
*
SKIP 2.
ULINE .
WRITE / 'MALZEME RAPORU TAMAMLANDI'.
ENDENHANCEMENT.
| [
1,
5376,
25,
3467,
4805,
25,
57,
35,
3185,
62,
49,
2969,
1581,
62,
1677,
39,
20940,
12529,
59,
2149,
25,
57,
35,
3185,
62,
49,
2969,
1581,
62,
1677,
39,
20940,
12529,
59,
5188,
25,
10619,
59,
36,
40,
198,
1677,
39,
20940,
12529,
657,
1168,
35,
3185,
62,
49,
2969,
1581,
62,
1677,
39,
20940,
12529,
13,
198,
9,
198,
220,
14277,
4061,
362,
13,
198,
220,
471,
24027,
764,
198,
220,
44423,
1220,
705,
42126,
57,
3620,
36,
371,
2969,
1581,
52,
33112,
2390,
28182,
40,
4458,
198,
198,
10619,
1677,
39,
20940,
12529,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_event DEFINITION
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT
FINAL.
PRIVATE SECTION.
METHODS query FOR TESTING RAISING zcx_abapgit_exception.
METHODS form_data FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS ltcl_event IMPLEMENTATION.
METHOD query.
DATA li_cut TYPE REF TO zif_abapgit_gui_event.
DATA lo_map TYPE REF TO zcl_abapgit_string_map.
DATA lo_x TYPE REF TO zcx_abapgit_exception.
CREATE OBJECT li_cut TYPE zcl_abapgit_gui_event
EXPORTING
iv_action = 'XXX'
iv_getdata = 'not_a_param'.
lo_map = li_cut->query( ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->size( )
exp = 0 ).
CREATE OBJECT li_cut TYPE zcl_abapgit_gui_event
EXPORTING
iv_action = 'XXX'
iv_getdata = 'a=b&b=c'.
" Cross check just in case
cl_abap_unit_assert=>assert_equals(
act = li_cut->form_data( )->size( )
exp = 0 ).
lo_map = li_cut->query( iv_upper_cased = abap_false ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->size( )
exp = 2 ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->get( 'a' )
exp = 'b' ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->get( 'b' )
exp = 'c' ).
lo_map = li_cut->query( iv_upper_cased = abap_true ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->size( )
exp = 2 ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->get( 'A' )
exp = 'b' ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->get( 'B' )
exp = 'c' ).
" Check defaults
cl_abap_unit_assert=>assert_equals(
act = li_cut->query( )->get( 'A' )
exp = 'b' ).
TRY.
lo_map->set(
iv_key = 'x'
iv_val = 'y' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_exception INTO lo_x.
cl_abap_unit_assert=>assert_char_cp(
act = lo_x->get_text( )
exp = '*immutable*' ).
ENDTRY.
ENDMETHOD.
METHOD form_data.
DATA li_cut TYPE REF TO zif_abapgit_gui_event.
DATA lo_map TYPE REF TO zcl_abapgit_string_map.
DATA lo_x TYPE REF TO zcx_abapgit_exception.
DATA lt_postdata TYPE cnht_post_data_tab.
CREATE OBJECT li_cut TYPE zcl_abapgit_gui_event
EXPORTING
iv_action = 'XXX'.
lo_map = li_cut->form_data( ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->size( )
exp = 0 ).
APPEND 'a=b&b=c' TO lt_postdata.
CREATE OBJECT li_cut TYPE zcl_abapgit_gui_event
EXPORTING
iv_action = 'XXX'
it_postdata = lt_postdata.
" Cross check just in case
cl_abap_unit_assert=>assert_equals(
act = li_cut->query( )->size( )
exp = 0 ).
lo_map = li_cut->form_data( iv_upper_cased = abap_false ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->size( )
exp = 2 ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->get( 'a' )
exp = 'b' ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->get( 'b' )
exp = 'c' ).
lo_map = li_cut->form_data( iv_upper_cased = abap_true ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->size( )
exp = 2 ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->get( 'A' )
exp = 'b' ).
cl_abap_unit_assert=>assert_equals(
act = lo_map->get( 'B' )
exp = 'c' ).
" Check defaults
cl_abap_unit_assert=>assert_equals(
act = li_cut->form_data( )->get( 'a' )
exp = 'b' ).
TRY.
lo_map->set(
iv_key = 'x'
iv_val = 'y' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_exception INTO lo_x.
cl_abap_unit_assert=>assert_char_cp(
act = lo_x->get_text( )
exp = '*immutable*' ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
15596,
5550,
20032,
17941,
198,
220,
7473,
43001,
2751,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
12405,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
337,
36252,
50,
1296,
62,
7890,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
15596,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
12405,
13,
628,
220,
220,
220,
42865,
7649,
62,
8968,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
13,
198,
220,
220,
220,
42865,
2376,
62,
8899,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
8841,
62,
8899,
13,
198,
220,
220,
220,
42865,
2376,
62,
87,
41876,
4526,
37,
5390,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
7649,
62,
8968,
41876,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
15596,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2673,
796,
705,
43145,
6,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1136,
7890,
796,
705,
1662,
62,
64,
62,
17143,
4458,
628,
220,
220,
220,
2376,
62,
8899,
796,
7649,
62,
8968,
3784,
22766,
7,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
8899,
3784,
7857,
7,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
657,
6739,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
7649,
62,
8968,
41876,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
15596,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2673,
796,
705,
43145,
6,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1136,
7890,
796,
705,
64,
28,
65,
5,
65,
28,
66,
4458,
628,
220,
220,
220,
366,
6372,
2198,
655,
287,
1339,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
7649,
62,
8968,
3784,
687,
62,
7890,
7,
1267,
3784,
7857,
7,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
657,
6739,
628,
220,
220,
220,
2376,
62,
8899,
796,
7649,
62,
8968,
3784,
22766,
7,
21628,
62,
45828,
62,
66,
839,
796,
450,
499,
62,
9562,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
8899,
3784,
7857,
7,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
362,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
8899,
3784,
1136,
7,
705,
64,
6,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
65,
6,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
8899,
3784,
1136,
7,
705,
65,
6,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
66,
6,
6739,
628,
220,
220,
220,
2376,
62,
8899,
796,
7649,
62,
8968,
3784,
22766,
7,
21628,
62,
45828,
62,
66,
839,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
8899,
3784,
7857,
7,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
362,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
8899,
3784,
1136,
7,
705,
32,
6,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
65,
6,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
8899,
3784,
1136,
7,
705,
33,
6,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
66,
6,
6739,
628,
220,
220,
220,
366,
6822,
26235,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
7649,
62,
8968,
3784,
22766,
7,
1267,
3784,
1136,
7,
705,
32,
6,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
65,
6,
6739,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
8899,
3784,
2617,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2539,
796,
705,
87,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2100,
796,
705,
88,
6,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
6739,
198,
220,
220,
220,
220,
220,
327,
11417,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
39319,
2376,
62,
87,
13,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
10641,
62,
13155,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
719,
796,
2376,
62,
87,
3784,
1136,
62,
5239,
7,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1033,
796,
705,
9,
8608,
18187,
9,
6,
6739,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1296,
62,
7890,
13,
628,
220,
220,
220,
42865,
7649,
62,
8968,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
interface ZIF_FLIFM_GUI
public .
data MS_ROUTE_DATA type ZIF_FLIFM_DEFINITIONS=>TYS_ROUTE_DATA .
data MO_FETCH type ref to ZCL_FLIFM_FETCH .
data MO_PROCESS type ref to ZCL_FLIFM_PROCESS .
data MO_SPLITTER_RIGHT type ref to CL_GUI_SPLITTER_CONTAINER .
class-data MO_ALV_TREE type ref to CL_GUI_ALV_TREE .
class-data MO_ALV_GRID type ref to CL_GUI_ALV_GRID .
methods RENDER
importing
!IV_MENU type ZIF_FLIFM_DEFINITIONS=>TY_FLIFM_MENU_TYPE
!IV_COMPANY type ZIF_FLIFM_DEFINITIONS=>TY_FLIFM_COMPANY_TYPE
!IV_ACTION type ZIF_FLIFM_DEFINITIONS=>TY_ACTION
raising
ZCX_FLIFM_EXCEPTION .
methods CLEAN_UP .
endinterface.
| [
39994,
1168,
5064,
62,
3697,
5064,
44,
62,
40156,
198,
220,
1171,
764,
628,
198,
220,
1366,
6579,
62,
49,
2606,
9328,
62,
26947,
2099,
1168,
5064,
62,
3697,
5064,
44,
62,
7206,
20032,
2043,
11053,
14804,
9936,
50,
62,
49,
2606,
9328,
62,
26947,
764,
198,
220,
1366,
13070,
62,
37,
2767,
3398,
2099,
1006,
284,
1168,
5097,
62,
3697,
5064,
44,
62,
37,
2767,
3398,
764,
198,
220,
1366,
13070,
62,
4805,
4503,
7597,
2099,
1006,
284,
1168,
5097,
62,
3697,
5064,
44,
62,
4805,
4503,
7597,
764,
198,
220,
1366,
13070,
62,
4303,
43,
2043,
5781,
62,
49,
9947,
2099,
1006,
284,
7852,
62,
40156,
62,
4303,
43,
2043,
5781,
62,
10943,
30339,
1137,
764,
198,
220,
1398,
12,
7890,
13070,
62,
1847,
53,
62,
51,
11587,
2099,
1006,
284,
7852,
62,
40156,
62,
1847,
53,
62,
51,
11587,
764,
198,
220,
1398,
12,
7890,
13070,
62,
1847,
53,
62,
10761,
2389,
2099,
1006,
284,
7852,
62,
40156,
62,
1847,
53,
62,
10761,
2389,
764,
628,
220,
5050,
371,
10619,
1137,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
49275,
52,
2099,
1168,
5064,
62,
3697,
5064,
44,
62,
7206,
20032,
2043,
11053,
14804,
9936,
62,
3697,
5064,
44,
62,
49275,
52,
62,
25216,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
9858,
47,
31827,
2099,
1168,
5064,
62,
3697,
5064,
44,
62,
7206,
20032,
2043,
11053,
14804,
9936,
62,
3697,
5064,
44,
62,
9858,
47,
31827,
62,
25216,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
44710,
2099,
1168,
5064,
62,
3697,
5064,
44,
62,
7206,
20032,
2043,
11053,
14804,
9936,
62,
44710,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1168,
34,
55,
62,
3697,
5064,
44,
62,
6369,
42006,
2849,
764,
198,
220,
5050,
30301,
1565,
62,
8577,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WRITE 'no'.
ENDIF.
| [
2200,
15490,
1976,
397,
499,
62,
9288,
62,
405,
1828,
8005,
49053,
9795,
48488,
39837,
2751,
13,
198,
198,
5064,
362,
796,
352,
5357,
352,
796,
362,
13,
198,
220,
44423,
705,
8505,
4458,
198,
3698,
5188,
13,
198,
220,
44423,
705,
3919,
4458,
198,
10619,
5064,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
cl_demo_output=>new(
)->begin_section( `RETURN`
)->write_data( return
)->next_section( `OBJEC`
)->write_data( t_objec
)->next_section( `STRUC`
)->write_data( t_struc
)->display( ). | [
565,
62,
9536,
78,
62,
22915,
14804,
3605,
7,
198,
220,
1267,
3784,
27471,
62,
5458,
7,
4600,
26087,
27064,
63,
198,
220,
1267,
3784,
13564,
62,
7890,
7,
1441,
198,
220,
1267,
3784,
19545,
62,
5458,
7,
4600,
9864,
41,
2943,
63,
198,
220,
1267,
3784,
13564,
62,
7890,
7,
256,
62,
26801,
721,
198,
220,
1267,
3784,
19545,
62,
5458,
7,
4600,
18601,
9598,
63,
198,
220,
1267,
3784,
13564,
62,
7890,
7,
256,
62,
19554,
66,
198,
220,
1267,
3784,
13812,
7,
6739
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_iwsg DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_object .
PROTECTED SECTION.
METHODS get_generic
RETURNING
VALUE(ro_generic) TYPE REF TO zcl_abapgit_objects_generic
RAISING
zcx_abapgit_exception .
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_IWSG IMPLEMENTATION.
METHOD get_generic.
CREATE OBJECT ro_generic
EXPORTING
is_item = ms_item.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = zcl_abapgit_objects_super=>c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
get_generic( )->delete( ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
get_generic( )->deserialize(
iv_package = iv_package
io_xml = io_xml ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
rv_bool = get_generic( )->exists( ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
zcx_abapgit_exception=>raise( |TODO: Jump| ).
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
get_generic( )->serialize( io_xml ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
14246,
45213,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
41357,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
41357,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
41357,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
40,
19416,
38,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
41357,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
41357,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
796,
13845,
62,
9186,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
198,
220,
220,
220,
374,
85,
62,
7220,
796,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
14804,
66,
62,
7220,
62,
34680,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
651,
62,
41357,
7,
1267,
3784,
33678,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
8906,
48499,
1096,
13,
628,
220,
220,
220,
651,
62,
41357,
7,
1267,
3784,
8906,
48499,
1096,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
26495,
796,
21628,
62,
26495,
198,
220,
220,
220,
220,
220,
33245,
62,
19875,
220,
220,
220,
220,
796,
33245,
62,
19875,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1069,
1023,
13,
628,
220,
220,
220,
374,
85,
62,
30388,
796,
651,
62,
41357,
7,
1267,
3784,
1069,
1023,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
785,
1845,
1352,
13,
198,
220,
220,
220,
30826,
27064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
8906,
48499,
1096,
62,
20214,
13,
198,
220,
220,
220,
43504,
10619,
1976,
361,
62,
397,
499,
18300,
62,
15252,
14804,
36484,
62,
9662,
62,
312,
12,
397,
499,
5390,
374,
83,
62,
20214,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1136,
62,
38993,
13,
628,
220,
220,
220,
44608,
62,
38993,
796,
651,
62,
38993,
7,
6739,
198,
220,
220,
220,
44608,
62,
38993,
12,
33678,
62,
83,
324,
343,
796,
450,
499,
62,
7942,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
271,
62,
5275,
13,
198,
220,
220,
220,
374,
85,
62,
5275,
796,
318,
62,
5275,
7,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
271,
62,
24162,
13,
628,
220,
220,
220,
374,
85,
62,
271,
62,
24162,
796,
450,
499,
62,
9562,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
43327,
13,
628,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
930,
51,
3727,
46,
25,
15903,
91,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
46911,
1096,
13,
628,
220,
220,
220,
651,
62,
41357,
7,
1267,
3784,
46911,
1096,
7,
33245,
62,
19875,
6739,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_settings DEFINITION PUBLIC CREATE PUBLIC.
PUBLIC SECTION.
CONSTANTS: c_commitmsg_comment_length_dft TYPE i VALUE 50.
CONSTANTS: c_commitmsg_comment_default TYPE string VALUE 'Update $OBJECT'.
CONSTANTS: c_commitmsg_body_size_dft TYPE i VALUE 72.
CONSTANTS:
BEGIN OF c_icon_scaling,
large TYPE c VALUE 'L',
small TYPE c VALUE 'S',
END OF c_icon_scaling.
CONSTANTS:
BEGIN OF c_ui_theme,
default TYPE string VALUE 'default',
dark TYPE string VALUE 'dark',
belize TYPE string VALUE 'belize',
END OF c_ui_theme.
METHODS:
set_proxy_url
IMPORTING
iv_url TYPE string,
set_proxy_port
IMPORTING
iv_port TYPE string,
set_proxy_authentication
IMPORTING
iv_auth TYPE abap_bool,
set_proxy_bypass
IMPORTING
it_bypass TYPE zif_abapgit_definitions=>ty_range_proxy_bypass_url OPTIONAL,
get_proxy_url
RETURNING
VALUE(rv_proxy_url) TYPE string,
get_proxy_port
RETURNING
VALUE(rv_port) TYPE string,
get_proxy_authentication
RETURNING
VALUE(rv_auth) TYPE abap_bool,
get_proxy_bypass
RETURNING VALUE(rt_bypass) TYPE zif_abapgit_definitions=>ty_range_proxy_bypass_url,
set_run_critical_tests
IMPORTING
iv_run TYPE abap_bool,
get_run_critical_tests
RETURNING
VALUE(rv_run) TYPE abap_bool,
set_experimental_features
IMPORTING
iv_run TYPE abap_bool,
get_experimental_features
RETURNING
VALUE(rv_run) TYPE abap_bool,
set_max_lines
IMPORTING iv_lines TYPE i,
get_max_lines
RETURNING
VALUE(rv_lines) TYPE i,
set_adt_jump_enanbled
IMPORTING
iv_adt_jump_enabled TYPE abap_bool,
get_adt_jump_enabled
RETURNING
VALUE(rv_adt_jump_enabled) TYPE abap_bool,
set_commitmsg_comment_length
IMPORTING
iv_length TYPE i,
get_commitmsg_comment_length
RETURNING
VALUE(rv_length) TYPE i,
set_commitmsg_comment_default
IMPORTING
iv_default TYPE string,
get_commitmsg_comment_default
RETURNING
VALUE(rv_default) TYPE string,
set_commitmsg_body_size
IMPORTING
iv_length TYPE i,
get_commitmsg_body_size
RETURNING
VALUE(rv_length) TYPE i,
get_settings_xml
RETURNING
VALUE(rv_settings_xml) TYPE string
RAISING
zcx_abapgit_exception,
get_user_settings
RETURNING
VALUE(rs_settings) TYPE zif_abapgit_definitions=>ty_s_user_settings
RAISING
zcx_abapgit_exception,
set_xml_settings
IMPORTING
iv_settings_xml TYPE string
RAISING
zcx_abapgit_exception,
set_defaults,
set_user_settings
IMPORTING
is_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings,
get_show_default_repo
RETURNING
VALUE(rv_show_default_repo) TYPE abap_bool,
set_show_default_repo
IMPORTING
iv_show_default_repo TYPE abap_bool,
set_link_hints_enabled
IMPORTING
iv_link_hints_enabled TYPE abap_bool,
get_link_hints_enabled
RETURNING
VALUE(rv_link_hints_enabled) TYPE abap_bool
RAISING
zcx_abapgit_exception,
set_link_hint_key
IMPORTING
iv_link_hint_key TYPE string,
get_link_hint_key
RETURNING
VALUE(rv_link_hint_key) TYPE string,
set_hotkeys
IMPORTING
it_hotkeys TYPE zif_abapgit_definitions=>tty_hotkey,
get_hotkeys
RETURNING
VALUE(rt_hotkeys) TYPE zif_abapgit_definitions=>tty_hotkey
RAISING
zcx_abapgit_exception,
set_parallel_proc_disabled
IMPORTING
iv_disable_parallel_proc TYPE abap_bool,
get_parallel_proc_disabled
RETURNING
VALUE(rv_disable_parallel_proc) TYPE abap_bool,
get_icon_scaling
RETURNING
VALUE(rv_scaling) TYPE zif_abapgit_definitions=>ty_s_user_settings-icon_scaling,
set_icon_scaling
IMPORTING
iv_scaling TYPE zif_abapgit_definitions=>ty_s_user_settings-icon_scaling,
get_ui_theme
RETURNING
VALUE(rv_ui_theme) TYPE zif_abapgit_definitions=>ty_s_user_settings-ui_theme,
set_ui_theme
IMPORTING
iv_ui_theme TYPE zif_abapgit_definitions=>ty_s_user_settings-ui_theme.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: BEGIN OF ty_s_settings,
proxy_url TYPE string,
proxy_port TYPE string,
proxy_auth TYPE string,
proxy_bypass TYPE zif_abapgit_definitions=>ty_range_proxy_bypass_url,
run_critical_tests TYPE abap_bool,
experimental_features TYPE abap_bool,
commitmsg_comment_length TYPE i,
commitmsg_comment_deflt TYPE string,
commitmsg_body_size TYPE i,
END OF ty_s_settings.
DATA: ms_settings TYPE ty_s_settings,
ms_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings.
METHODS:
set_default_link_hint_key.
ENDCLASS.
CLASS ZCL_ABAPGIT_SETTINGS IMPLEMENTATION.
METHOD get_adt_jump_enabled.
rv_adt_jump_enabled = ms_user_settings-adt_jump_enabled.
ENDMETHOD.
METHOD get_commitmsg_body_size.
rv_length = ms_settings-commitmsg_body_size.
ENDMETHOD.
METHOD get_commitmsg_comment_default.
rv_default = ms_settings-commitmsg_comment_deflt.
ENDMETHOD.
METHOD get_commitmsg_comment_length.
rv_length = ms_settings-commitmsg_comment_length.
ENDMETHOD.
METHOD get_experimental_features.
rv_run = ms_settings-experimental_features.
ENDMETHOD.
METHOD get_hotkeys.
rt_hotkeys = ms_user_settings-hotkeys.
ENDMETHOD.
METHOD get_icon_scaling.
rv_scaling = ms_user_settings-icon_scaling.
ENDMETHOD.
METHOD get_link_hints_enabled.
rv_link_hints_enabled = ms_user_settings-link_hints_enabled.
ENDMETHOD.
METHOD get_link_hint_key.
rv_link_hint_key = ms_user_settings-link_hint_key.
ENDMETHOD.
METHOD get_max_lines.
rv_lines = ms_user_settings-max_lines.
ENDMETHOD.
METHOD get_parallel_proc_disabled.
rv_disable_parallel_proc = ms_user_settings-parallel_proc_disabled.
ENDMETHOD.
METHOD get_proxy_authentication.
rv_auth = ms_settings-proxy_auth.
ENDMETHOD.
METHOD get_proxy_bypass.
rt_bypass = ms_settings-proxy_bypass.
ENDMETHOD.
METHOD get_proxy_port.
rv_port = ms_settings-proxy_port.
ENDMETHOD.
METHOD get_proxy_url.
rv_proxy_url = ms_settings-proxy_url.
ENDMETHOD.
METHOD get_run_critical_tests.
rv_run = ms_settings-run_critical_tests.
ENDMETHOD.
METHOD get_settings_xml.
DATA: lo_output TYPE REF TO zcl_abapgit_xml_output.
CREATE OBJECT lo_output.
lo_output->add( iv_name = zcl_abapgit_persistence_db=>c_type_settings
ig_data = ms_settings ).
rv_settings_xml = lo_output->render( ).
ENDMETHOD.
METHOD get_show_default_repo.
rv_show_default_repo = ms_user_settings-show_default_repo.
ENDMETHOD.
METHOD get_ui_theme.
rv_ui_theme = ms_user_settings-ui_theme.
ENDMETHOD.
METHOD get_user_settings.
rs_settings = ms_user_settings.
ENDMETHOD.
METHOD set_adt_jump_enanbled.
ms_user_settings-adt_jump_enabled = iv_adt_jump_enabled.
ENDMETHOD.
METHOD set_commitmsg_body_size.
ms_settings-commitmsg_body_size = iv_length.
ENDMETHOD.
METHOD set_commitmsg_comment_default.
ms_settings-commitmsg_comment_deflt = iv_default.
ENDMETHOD.
METHOD set_commitmsg_comment_length.
ms_settings-commitmsg_comment_length = iv_length.
ENDMETHOD.
METHOD set_defaults.
CLEAR ms_settings.
set_proxy_authentication( abap_false ).
set_run_critical_tests( abap_false ).
set_experimental_features( abap_false ).
set_max_lines( 500 ).
set_adt_jump_enanbled( abap_true ).
set_show_default_repo( abap_false ).
set_commitmsg_comment_length( c_commitmsg_comment_length_dft ).
set_commitmsg_comment_default( c_commitmsg_comment_default ).
set_commitmsg_body_size( c_commitmsg_body_size_dft ).
set_default_link_hint_key( ).
set_icon_scaling( '' ).
ENDMETHOD.
METHOD set_default_link_hint_key.
set_link_hint_key( |f| ).
ENDMETHOD.
METHOD set_experimental_features.
ms_settings-experimental_features = iv_run.
ENDMETHOD.
METHOD set_hotkeys.
ms_user_settings-hotkeys = it_hotkeys.
ENDMETHOD.
METHOD set_icon_scaling.
ms_user_settings-icon_scaling = iv_scaling.
IF ms_user_settings-icon_scaling NA c_icon_scaling.
ms_user_settings-icon_scaling = ''. " Reset to default
ENDIF.
ENDMETHOD.
METHOD set_link_hints_enabled.
ms_user_settings-link_hints_enabled = iv_link_hints_enabled.
ENDMETHOD.
METHOD set_link_hint_key.
ms_user_settings-link_hint_key = iv_link_hint_key.
ENDMETHOD.
METHOD set_max_lines.
ms_user_settings-max_lines = iv_lines.
ENDMETHOD.
METHOD set_parallel_proc_disabled.
ms_user_settings-parallel_proc_disabled = iv_disable_parallel_proc.
ENDMETHOD.
METHOD set_proxy_authentication.
ms_settings-proxy_auth = iv_auth.
ENDMETHOD.
METHOD set_proxy_bypass.
ms_settings-proxy_bypass = it_bypass.
ENDMETHOD.
METHOD set_proxy_port.
ms_settings-proxy_port = iv_port.
ENDMETHOD.
METHOD set_proxy_url.
ms_settings-proxy_url = iv_url.
ENDMETHOD.
METHOD set_run_critical_tests.
ms_settings-run_critical_tests = iv_run.
ENDMETHOD.
METHOD set_show_default_repo.
ms_user_settings-show_default_repo = iv_show_default_repo.
ENDMETHOD.
METHOD set_ui_theme.
ms_user_settings-ui_theme = iv_ui_theme.
IF ms_user_settings-ui_theme <> c_ui_theme-default
AND ms_user_settings-ui_theme <> c_ui_theme-dark
AND ms_user_settings-ui_theme <> c_ui_theme-belize.
ms_user_settings-ui_theme = c_ui_theme-default. " Reset to default
ENDIF.
ENDMETHOD.
METHOD set_user_settings.
ms_user_settings = is_user_settings.
IF ms_user_settings-link_hint_key IS INITIAL.
set_default_link_hint_key( ).
ENDIF.
ENDMETHOD.
METHOD set_xml_settings.
DATA: lo_input TYPE REF TO zcl_abapgit_xml_input.
CREATE OBJECT lo_input EXPORTING iv_xml = iv_settings_xml.
CLEAR ms_settings.
lo_input->read(
EXPORTING
iv_name = zcl_abapgit_persistence_db=>c_type_settings
CHANGING
cg_data = ms_settings ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
33692,
5550,
20032,
17941,
44731,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
41509,
19662,
62,
23893,
62,
13664,
62,
67,
701,
41876,
1312,
26173,
8924,
2026,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
41509,
19662,
62,
23893,
62,
12286,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
10260,
720,
9864,
23680,
4458,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
41509,
19662,
62,
2618,
62,
7857,
62,
67,
701,
220,
220,
220,
220,
220,
41876,
1312,
26173,
8924,
7724,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
4749,
62,
1416,
4272,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1588,
41876,
269,
26173,
8924,
705,
43,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1402,
41876,
269,
26173,
8924,
705,
50,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
4749,
62,
1416,
4272,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
9019,
62,
43810,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
41876,
4731,
26173,
8924,
705,
12286,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3223,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
21953,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
894,
1096,
220,
41876,
4731,
26173,
8924,
705,
6667,
1096,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
9019,
62,
43810,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
900,
62,
36436,
62,
6371,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
900,
62,
36436,
62,
634,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
634,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
900,
62,
36436,
62,
41299,
3299,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18439,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
900,
62,
36436,
62,
1525,
6603,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
1525,
6603,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9521,
62,
36436,
62,
1525,
6603,
62,
6371,
39852,
2849,
1847,
11,
198,
220,
220,
220,
220,
220,
651,
62,
36436,
62,
6371,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
36436,
62,
6371,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
651,
62,
36436,
62,
634,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
634,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
651,
62,
36436,
62,
41299,
3299,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
18439,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
651,
62,
36436,
62,
1525,
6603,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
1525,
6603,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9521,
62,
36436,
62,
1525,
6603,
62,
6371,
11,
198,
220,
220,
220,
220,
220,
900,
62,
5143,
62,
34666,
62,
41989,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5143,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
651,
62,
5143,
62,
34666,
62,
41989,
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,
5143,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
900,
62,
23100,
9134,
62,
40890,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5143,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
651,
62,
23100,
9134,
62,
40890,
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,
5143,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
900,
62,
9806,
62,
6615,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
6615,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
651,
62,
9806,
62,
6615,
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,
6615,
8,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
900,
62,
324,
83,
62,
43327,
62,
268,
272,
9342,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
324,
83,
62,
43327,
62,
25616,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
651,
62,
324,
83,
62,
43327,
62,
25616,
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,
324,
83,
62,
43327,
62,
25616,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
900,
62,
41509,
19662,
62,
23893,
62,
13664,
198,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_rap_bo_generator DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
TYPES:
ty_string_table_type TYPE STANDARD TABLE OF string WITH DEFAULT KEY .
METHODS constructor
IMPORTING
VALUE(iv_package) TYPE sxco_package
VALUE(io_rap_bo_root_node) TYPE REF TO zcl_rap_node
RAISING zcx_rap_generator.
METHODS generate_bo
RETURNING
VALUE(rt_todos) TYPE ty_string_table_type
RAISING cx_xco_gen_put_exception.
PROTECTED SECTION.
DATA mo_root_node_m_uuid TYPE REF TO zcl_rap_node_m_uuid_root.
PRIVATE SECTION.
DATA mo_package TYPE sxco_package.
DATA mo_environment TYPE REF TO if_xco_cp_gen_env_dev_system.
DATA mo_transport TYPE sxco_transport .
METHODS assign_package.
METHODS create_i_cds_view
IMPORTING
io_put_operation TYPE REF TO if_xco_cp_gen_d_o_put
VALUE(io_rap_bo_node) TYPE REF TO zcl_rap_node.
METHODS create_p_cds_view
IMPORTING
io_put_operation TYPE REF TO if_xco_cp_gen_d_o_put
VALUE(io_rap_bo_node) TYPE REF TO zcl_rap_node.
METHODS create_mde_view
IMPORTING
io_put_operation TYPE REF TO if_xco_cp_gen_d_o_put
VALUE(io_rap_bo_node) TYPE REF TO zcl_rap_node.
METHODS create_bdef
IMPORTING
io_put_operation TYPE REF TO if_xco_cp_gen_d_o_put
VALUE(io_rap_bo_node) TYPE REF TO zcl_rap_node
RAISING zcx_rap_generator.
METHODS create_bdef_p
IMPORTING
io_put_operation TYPE REF TO if_xco_cp_gen_d_o_put
VALUE(io_rap_bo_node) TYPE REF TO zcl_rap_node.
METHODS create_behavior_implementation
IMPORTING
io_put_operation TYPE REF TO if_xco_cp_gen_d_o_put
VALUE(io_rap_bo_node) TYPE REF TO zcl_rap_node.
ENDCLASS.
CLASS zcl_rap_bo_generator IMPLEMENTATION.
METHOD constructor.
CASE TYPE OF io_rap_bo_root_node.
WHEN TYPE zcl_rap_node_m_uuid_root .
mo_root_node_m_uuid = CAST zcl_rap_node_m_uuid_root( io_rap_bo_root_node ).
WHEN OTHERS.
RAISE EXCEPTION TYPE zcx_rap_generator
EXPORTING
textid = zcx_rap_generator=>root_node_type_not_supported
mv_entity = io_rap_bo_root_node->entityname.
ENDCASE.
IF io_rap_bo_root_node->is_consistent( ) = abap_false.
RAISE EXCEPTION TYPE zcx_rap_generator
EXPORTING
textid = zcx_rap_generator=>node_is_not_consistent
mv_entity = io_rap_bo_root_node->entityname.
ENDIF.
IF io_rap_bo_root_node->has_childs( ).
LOOP AT io_rap_bo_root_node->all_childnodes INTO DATA(ls_childnode).
IF ls_childnode->is_consistent( ) = abap_false.
RAISE EXCEPTION TYPE zcx_rap_generator
EXPORTING
textid = zcx_rap_generator=>node_is_not_consistent
mv_entity = io_rap_bo_root_node->entityname.
ENDIF.
ENDLOOP.
ENDIF.
IF xco_cp_abap_repository=>object->devc->for( iv_package )->exists( ).
mo_package = iv_package .
ELSE.
RAISE EXCEPTION TYPE zcx_rap_generator
EXPORTING
textid = zcx_rap_generator=>package_does_not_exist
mv_value = CONV #( iv_package ).
ENDIF.
DATA(lo_transport_layer) = xco_cp_abap_repository=>package->for( mo_package )->read( )-property-transport_layer.
DATA(lo_transport_target) = lo_transport_layer->get_transport_target( ).
DATA(lv_transport_target) = lo_transport_target->value.
DATA(lo_transport_request) = xco_cp_cts=>transports->workbench( lo_transport_target->value )->create_request( |RAP Business object - entity name: { mo_root_node_m_uuid->entityname } | ).
DATA(lv_transport) = lo_transport_request->value.
mo_transport = lv_transport.
mo_environment = xco_cp_generation=>environment->dev_system( lv_transport ).
ENDMETHOD.
METHOD generate_bo.
assign_package( ).
" Execute the PUT operation for the objects in the package.
DATA(lo_objects_put_operation) = mo_environment->create_put_operation( ).
*LOOP AT root_bo->all_childnodes INTO DATA(ls_node).
* out->write( ls_node->entityname ).
* ENDLOOP.
create_i_cds_view(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = mo_root_node_m_uuid
). " lo_objects_put_operation ).
create_p_cds_view(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = mo_root_node_m_uuid
). " lo_objects_put_operation ).
create_mde_view(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = mo_root_node_m_uuid
). " lo_objects_put
create_bdef(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = mo_root_node_m_uuid
). "
create_bdef_p(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = mo_root_node_m_uuid
).
create_behavior_implementation(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = mo_root_node_m_uuid
).
LOOP AT mo_root_node_m_uuid->all_childnodes INTO DATA(lo_bo_node).
create_i_cds_view(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = lo_bo_node
). " lo_objects_put_operation ).
create_p_cds_view(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = lo_bo_node
).
create_mde_view(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = lo_bo_node
). " lo_objects_put
create_behavior_implementation(
EXPORTING
io_put_operation = lo_objects_put_operation
io_rap_bo_node = lo_bo_node
).
ENDLOOP.
DATA(lo_result) = lo_objects_put_operation->execute( ).
DATA(lo_findings) = lo_result->findings.
DATA(lt_findings) = lo_findings->get( ).
APPEND 'todo:' TO rt_todos.
APPEND |1. create and activate service definition: { mo_root_node_m_uuid->rap_root_node_objects-service_definition }| TO rt_todos.
APPEND '2. add the following line(s) to the service definition:' TO rt_todos.
APPEND |expose { mo_root_node_m_uuid->rap_node_objects-cds_view_p } as { mo_root_node_m_uuid->rap_node_objects-alias };| TO rt_todos.
LOOP AT mo_root_node_m_uuid->all_childnodes INTO DATA(lo_childnode).
APPEND |expose { lo_childnode->rap_node_objects-cds_view_p } as { lo_childnode->rap_node_objects-alias };| TO rt_todos.
ENDLOOP.
APPEND |3. Create and activate service binding: { mo_root_node_m_uuid->rap_root_node_objects-service_binding }| TO rt_todos.
APPEND '4. Activate local service endpoint' TO rt_todos.
APPEND |5. Double-click on { mo_root_node_m_uuid->rap_node_objects-cds_view_p }| TO rt_todos.
IF lt_findings IS NOT INITIAL.
APPEND 'Messages from XCO framework' TO rt_todos.
LOOP AT lt_findings INTO DATA(ls_findings).
APPEND ls_findings->message->get_text( ) TO rt_todos.
ENDLOOP.
ENDIF.
APPEND 'The following repository objects have been created' TO rt_todos.
APPEND mo_root_node_m_uuid->rap_node_objects TO rt_todos.
LOOP AT mo_root_node_m_uuid->all_childnodes INTO lo_childnode.
APPEND lo_childnode->rap_node_objects TO rt_todos.
ENDLOOP.
ENDMETHOD.
METHOD assign_package.
DATA(lo_package_put_operation) = mo_environment->for-devc->create_put_operation( ).
DATA(lo_specification) = lo_package_put_operation->add_object( mo_package ).
ENDMETHOD.
METHOD create_i_cds_view.
DATA lo_field TYPE REF TO if_xco_gen_ddls_s_fo_field .
DATA(lo_specification) = io_put_operation->for-ddls->add_object( io_rap_bo_node->rap_node_objects-cds_view_i
)->set_package( mo_package
)->create_form_specification( ).
DATA(lo_view) = lo_specification->set_short_description( 'CDS View for ' && io_rap_bo_node->rap_node_objects-alias "mo_alias_header
)->add_view( ).
" Annotations.
lo_view->add_annotation( 'AbapCatalog' )->value->build( )->begin_record(
)->add_member( 'sqlViewName' )->add_string( CONV #( io_rap_bo_node->rap_node_objects-ddic_view_i ) "mo_view_header )
)->add_member( 'compiler.compareFilter' )->add_boolean( abap_true
)->add_member( 'preserveKey' )->add_boolean( abap_true
)->end_record( ).
lo_view->add_annotation( 'AccessControl.authorizationCheck' )->value->build( )->add_enum( 'CHECK' ).
lo_view->add_annotation( 'Metadata.allowExtensions' )->value->build( )->add_boolean( abap_true ).
lo_view->add_annotation( 'EndUserText.label' )->value->build( )->add_string( 'CDS View for ' && io_rap_bo_node->rap_node_objects-alias ). " mo_alias_header ).
IF io_rap_bo_node->is_root( ).
lo_view->set_root( ).
ELSE.
* DATA(lo_condition) = CAST if_xco_gen_ddls_ddl_expression(
* xco_cp_ddl=>expression->for( '$projection.ParentUUID = _' && io_rap_bo_node->parent_node->rap_node_objects-alias && '.UUID' )
* ).
DATA(lo_condition) = xco_cp_ddl=>field( 'ParentUUID' )->of_projection( )->eq(
xco_cp_ddl=>field( io_rap_bo_node->parent_node->field_name-uuid && '' )->of( '_' && io_rap_bo_node->parent_node->rap_node_objects-alias ) ).
lo_view->add_association( io_rap_bo_node->parent_node->rap_node_objects-cds_view_i )->set_to_parent(
)->set_alias( '_' && io_rap_bo_node->parent_node->rap_node_objects-alias
)->set_condition( lo_condition ).
"association to Z_I_RAP_TRAVEL_015 as _travel on $projection.RootUuid = _travel.Uuid
IF io_rap_bo_node->is_grand_child_or_deeper( ).
* lo_condition = CAST if_xco_gen_ddls_ddl_expression(
* xco_cp_ddl=>expression->for( '$projection.RootUuid = _' && io_rap_bo_node->root_node->rap_node_objects-alias && '.UUID' )
* ).
lo_condition = xco_cp_ddl=>field( 'RootUUID' )->of_projection( )->eq(
xco_cp_ddl=>field( io_rap_bo_node->parent_node->field_name-uuid && '' )->of( '_' && io_rap_bo_node->root_node->rap_node_objects-alias ) ).
lo_view->add_association( io_rap_bo_node->root_node->rap_node_objects-cds_view_i
)->set_alias( '_' && io_rap_bo_node->root_node->rap_node_objects-alias
)->set_cardinality( xco_cp_cds=>cardinality->one
)->set_condition( lo_condition ).
ENDIF.
ENDIF.
" Data source.
lo_view->data_source->set_entity( CONV #( io_rap_bo_node->table_name ) ).
IF io_rap_bo_node->has_childs( ). " create_item_objects( ).
" Composition.
"change to a new property "childnodes" which only contains the direct childs
LOOP AT io_rap_bo_node->childnodes INTO DATA(lo_childnode).
lo_view->add_composition( lo_childnode->rap_node_objects-cds_view_i " mo_i_cds_item
)->set_cardinality( xco_cp_cds=>cardinality->zero_to_n
)->set_alias( '_' && lo_childnode->rap_node_objects-alias ). " mo_alias_item ).
ENDLOOP.
ENDIF.
"Client field does not need to be specified in client-specific CDS view
LOOP AT io_rap_bo_node->lt_fields INTO DATA(ls_header_fields) WHERE name <> io_rap_bo_node->field_name-client . " co_client.
IF ls_header_fields-key_indicator = abap_true AND ls_header_fields-not_null = abap_true.
lo_field = lo_view->add_field( xco_cp_ddl=>field( ls_header_fields-name )
)->set_key( )->set_alias( to_mixed( ls_header_fields-name ) ).
ELSE.
lo_field = lo_view->add_field( xco_cp_ddl=>field( ls_header_fields-name )
)->set_alias( to_mixed( ls_header_fields-name ) ).
ENDIF.
"add @Semantics annotation once available
* IF ls_header_fields-name = 'booking_fee'.
* DATA(lo_booking_fee) = lo_header_specficiation->get_field( ls_header_fields-name ).
* ENDIF.
CASE ls_header_fields-name.
WHEN io_rap_bo_node->field_name-created_at.
lo_field->add_annotation( 'Semantics.systemDateTime.createdAt' )->value->build( )->add_boolean( abap_true ).
WHEN io_rap_bo_node->field_name-created_by.
lo_field->add_annotation( 'Semantics.user.createdBy' )->value->build( )->add_boolean( abap_true ).
WHEN io_rap_bo_node->field_name-last_changed_at.
lo_field->add_annotation( 'Semantics.systemDateTime.lastChangedAt' )->value->build( )->add_boolean( abap_true ).
WHEN io_rap_bo_node->field_name-last_changed_by.
lo_field->add_annotation( 'Semantics.user.lastChangedBy' )->value->build( )->add_boolean( abap_true ).
ENDCASE.
ENDLOOP.
"IF create_item_objects( ).
IF io_rap_bo_node->has_childs( ).
"change to a new property "childnodes" which only contains the direct childs
LOOP AT io_rap_bo_node->childnodes INTO lo_childnode.
"publish association to item view
lo_view->add_field( xco_cp_ddl=>field( '_' && lo_childnode->rap_node_objects-alias ) ).
ENDLOOP.
ENDIF.
IF io_rap_bo_node->is_root( ) = abap_false.
"publish association to parent
lo_view->add_field( xco_cp_ddl=>field( '_' && io_rap_bo_node->parent_node->rap_node_objects-alias ) ).
ENDIF.
IF io_rap_bo_node->is_grand_child_or_deeper( ).
"add assocation to root node
lo_view->add_field( xco_cp_ddl=>field( '_' && io_rap_bo_node->root_node->rap_node_objects-alias ) ).
ENDIF.
ENDMETHOD.
METHOD create_p_cds_view.
DATA(lo_specification) = io_put_operation->for-ddls->add_object( io_rap_bo_node->rap_node_objects-cds_view_p
)->set_package( mo_package
)->create_form_specification( ).
DATA(lo_view) = lo_specification->set_short_description( 'Projection View for ' && io_rap_bo_node->rap_node_objects-alias
)->add_projection_view( ).
" Annotations.
lo_view->add_annotation( 'AccessControl.authorizationCheck' )->value->build( )->add_enum( 'CHECK' ).
lo_view->add_annotation( 'Metadata.allowExtensions' )->value->build( )->add_boolean( abap_true ).
lo_view->add_annotation( 'EndUserText.label' )->value->build( )->add_string( 'Projection View for ' && io_rap_bo_node->rap_node_objects-alias ).
IF io_rap_bo_node->is_root( ).
lo_view->set_root( ).
ENDIF.
" Data source.
lo_view->data_source->set_view_entity( iv_view_entity = io_rap_bo_node->rap_node_objects-cds_view_i ).
"Client field does not need to be specified in client-specific CDS view
LOOP AT io_rap_bo_node->lt_fields INTO DATA(ls_header_fields) WHERE name <> io_rap_bo_node->field_name-client.
IF ls_header_fields-key_indicator = abap_true AND ls_header_fields-not_null = abap_true.
lo_view->add_field( xco_cp_ddl=>field( to_mixed( ls_header_fields-name ) )
)->set_key( )->set_alias( to_mixed( ls_header_fields-name ) ).
ELSE.
lo_view->add_field( xco_cp_ddl=>field( to_mixed( ls_header_fields-name ) )
)->set_alias( to_mixed( ls_header_fields-name ) ).
ENDIF.
ENDLOOP.
IF io_rap_bo_node->has_childs( ). " create_item_objects( ).
" Composition.
"change to a new property "childnodes" which only contains the direct childs
LOOP AT io_rap_bo_node->childnodes INTO DATA(lo_childnode).
lo_view->add_field( xco_cp_ddl=>field( '_' && lo_childnode->rap_node_objects-alias ) )->set_redirected_to_compos_child( lo_childnode->rap_node_objects-cds_view_p ).
ENDLOOP.
ENDIF.
IF io_rap_bo_node->is_root( ) = abap_false.
" "publish association to parent
lo_view->add_field( xco_cp_ddl=>field( '_' && io_rap_bo_node->parent_node->rap_node_objects-alias ) )->set_redirected_to_parent( io_rap_bo_node->parent_node->rap_node_objects-cds_view_p ).
ENDIF.
"for grand-child nodes we have to add an association to the root node
IF io_rap_bo_node->is_grand_child_or_deeper( ).
lo_view->add_field( xco_cp_ddl=>field( '_' && io_rap_bo_node->root_node->rap_node_objects-alias ) )->set_redirected_to( io_rap_bo_node->root_node->rap_node_objects-cds_view_p ).
ENDIF.
ENDMETHOD.
METHOD create_mde_view.
DATA pos TYPE i VALUE 0.
DATA lo_field TYPE REF TO if_xco_gen_ddlx_s_fo_field .
DATA(lo_specification) = io_put_operation->for-ddlx->add_object( io_rap_bo_node->rap_node_objects-meta_data_extension " cds_view_p " mo_p_cds_header
)->set_package( mo_package
)->create_form_specification( ).
lo_specification->set_short_description( 'MDE for ' && io_rap_bo_node->rap_node_objects-alias
)->set_layer( xco_cp_metadata_extension=>layer->customer
)->set_view( io_rap_bo_node->rap_node_objects-cds_view_p ). " cds_view_p ).
*begin_array --> square bracket open
*Begin_record-> curly bracket open
lo_specification->add_annotation( 'UI' )->value->build(
)->begin_record(
)->add_member( 'headerInfo'
)->begin_record(
)->add_member( 'typeName' )->add_string( io_rap_bo_node->rap_node_objects-alias && ''
)->add_member( 'typeNamePlural' )->add_string( io_rap_bo_node->rap_node_objects-alias && 's'
)->add_member( 'title'
)->begin_record(
)->add_member( 'type' )->add_enum( 'STANDARD'
)->add_member( 'label' )->add_string( io_rap_bo_node->rap_node_objects-alias && ''
"@todo: Check what happens if several key fields are present
"for a first test we just take the first one.
"also check what happens if no semantic key has been specified
)->add_member( 'value' )->add_string( io_rap_bo_node->semantic_keys[ 1 ] && '' " mo_header_semantic_key && ''
)->end_record(
)->end_record(
)->end_record(
).
"Client field does not need to be specified in client-specific CDS view
LOOP AT io_rap_bo_node->lt_fields INTO DATA(ls_header_fields) WHERE name <> io_rap_bo_node->field_name-client.
pos += 10.
lo_field = lo_specification->add_field( ls_header_fields-cds_view_field ).
CASE to_upper( ls_header_fields-name ).
WHEN io_rap_bo_node->field_name-uuid.
"key field header
"lo_field = lo_specification->add_field( 'uuid' ).
lo_field->add_annotation( 'UI.hidden' )->value->build( )->add_boolean( iv_value = abap_true ).
IF io_rap_bo_node IS INSTANCE OF zcl_rap_node_m_uuid_root.
IF io_rap_bo_node->has_childs( ).
lo_field->add_annotation( 'UI.facet' )->value->build(
)->begin_array(
)->begin_record(
)->add_member( 'id' )->add_string( 'idCollection'
)->add_member( 'type' )->add_enum( 'COLLECTION'
)->add_member( 'label' )->add_string( io_rap_bo_node->rap_node_objects-alias && ''
)->add_member( 'position' )->add_number( 10
)->end_record(
)->begin_record(
)->add_member( 'id' )->add_string( 'idIdentification'
)->add_member( 'parentId' )->add_string( 'idCollection'
)->add_member( 'type' )->add_enum( 'IDENTIFICATION_REFERENCE'
)->add_member( 'label' )->add_string( 'General Information'
)->add_member( 'position' )->add_number( 10
)->end_record(
"@todo check what happens if an entity has several child entities
)->begin_record(
)->add_member( 'id' )->add_string( 'idLineitem'
)->add_member( 'type' )->add_enum( 'LINEITEM_REFERENCE'
)->add_member( 'label' )->add_string( io_rap_bo_node->childnodes[ 1 ]->rap_node_objects-alias && ''
)->add_member( 'position' )->add_number( 20
)->add_member( 'targetElement' )->add_string( '_' && io_rap_bo_node->childnodes[ 1 ]->rap_node_objects-alias
)->end_record(
)->end_array( ).
ELSE.
lo_field->add_annotation( 'UI.facet' )->value->build(
)->begin_array(
)->begin_record(
)->add_member( 'id' )->add_string( 'idCollection'
)->add_member( 'type' )->add_enum( 'COLLECTION'
)->add_member( 'label' )->add_string( io_rap_bo_node->rap_node_objects-alias && ''
)->add_member( 'position' )->add_number( 10
)->end_record(
)->begin_record(
)->add_member( 'id' )->add_string( 'idIdentification'
)->add_member( 'parentId' )->add_string( 'idCollection'
)->add_member( 'type' )->add_enum( 'IDENTIFICATION_REFERENCE'
)->add_member( 'label' )->add_string( 'General Information'
)->add_member( 'position' )->add_number( 10
)->end_record(
)->end_array( ).
ENDIF.
ELSE.
IF io_rap_bo_node->has_childs( ).
lo_field->add_annotation( 'UI.facet' )->value->build(
)->begin_array(
)->begin_record(
)->add_member( 'id' )->add_string( CONV #( 'id' && io_rap_bo_node->rap_node_objects-alias )
)->add_member( 'purpose' )->add_enum( 'STANDARD'
)->add_member( 'type' )->add_enum( 'IDENTIFICATION_REFERENCE'
)->add_member( 'label' )->add_string( CONV #( io_rap_bo_node->rap_node_objects-alias )
)->add_member( 'position' )->add_number( 10
)->end_record(
)->begin_record(
)->add_member( 'id' )->add_string( 'idLineitem'
)->add_member( 'type' )->add_enum( 'LINEITEM_REFERENCE'
)->add_member( 'label' )->add_string( io_rap_bo_node->childnodes[ 1 ]->rap_node_objects-alias && ''
)->add_member( 'position' )->add_number( 20
)->add_member( 'targetElement' )->add_string( '_' && io_rap_bo_node->childnodes[ 1 ]->rap_node_objects-alias
)->end_record(
)->end_array( ).
ELSE.
lo_field->add_annotation( 'UI.facet' )->value->build(
)->begin_array(
)->begin_record(
)->add_member( 'id' )->add_string( CONV #( 'id' && io_rap_bo_node->rap_node_objects-alias )
)->add_member( 'purpose' )->add_enum( 'STANDARD'
)->add_member( 'type' )->add_enum( 'IDENTIFICATION_REFERENCE'
)->add_member( 'label' )->add_string( CONV #( io_rap_bo_node->rap_node_objects-alias )
)->add_member( 'position' )->add_number( 10
)->end_record(
)->end_array( ).
ENDIF.
ENDIF.
"hide administrative fields and guid-based fields
WHEN io_rap_bo_node->field_name-last_changed_at OR io_rap_bo_node->field_name-last_changed_by OR
io_rap_bo_node->field_name-created_at OR io_rap_bo_node->field_name-created_by OR
io_rap_bo_node->field_name-parent_uuid OR io_rap_bo_node->field_name-root_uuid.
lo_field->add_annotation( 'UI.hidden' )->value->build( )->add_boolean( iv_value = abap_true ).
WHEN OTHERS.
lo_field->add_annotation( 'UI.lineItem' )->value->build(
)->begin_array(
)->begin_record(
)->add_member( 'position' )->add_number( pos
)->add_member( 'importance' )->add_enum( 'HIGH'
)->add_member( 'label' )->add_string( CONV #( ls_header_fields-cds_view_field )
)->end_record(
)->end_array( ).
lo_field->add_annotation( 'UI.identification' )->value->build(
)->begin_array(
)->begin_record(
)->add_member( 'position' )->add_number( pos
)->add_member( 'label' )->add_string( CONV #( ls_header_fields-cds_view_field )
)->end_record(
)->end_array( ).
ENDCASE.
ENDLOOP.
ENDMETHOD.
METHOD create_bdef.
DATA lt_mapping_header TYPE HASHED TABLE OF if_xco_gen_bdef_s_fo_b_mapping=>ts_field_mapping
WITH UNIQUE KEY cds_view_field dbtable_field.
DATA ls_mapping_header TYPE if_xco_gen_bdef_s_fo_b_mapping=>ts_field_mapping .
DATA lt_mapping_item TYPE HASHED TABLE OF if_xco_gen_bdef_s_fo_b_mapping=>ts_field_mapping
WITH UNIQUE KEY cds_view_field dbtable_field.
DATA ls_mapping_item TYPE if_xco_gen_bdef_s_fo_b_mapping=>ts_field_mapping .
LOOP AT io_rap_bo_node->lt_fields INTO DATA(ls_header_fields).
ls_mapping_header-dbtable_field = ls_header_fields-name.
ls_mapping_header-cds_view_field = to_mixed( ls_header_fields-name ).
IF ls_header_fields-name <> io_rap_bo_node->field_name-client.
INSERT ls_mapping_header INTO TABLE lt_mapping_header.
ENDIF.
ENDLOOP.
DATA(lo_specification) = io_put_operation->for-bdef->add_object( io_rap_bo_node->rap_root_node_objects-behavior_definition_i "mo_i_bdef_header
)->set_package( mo_package
)->create_form_specification( ).
lo_specification->set_short_description( 'Behavior for ' && io_rap_bo_node->rap_node_objects-cds_view_i
)->set_implementation_type( xco_cp_behavior_definition=>implementation_type->managed
).
"define behavior for root entity
DATA(lo_header_behavior) = lo_specification->add_behavior( io_rap_bo_node->rap_node_objects-cds_view_i ).
" Characteristics.
lo_header_behavior->characteristics->set_alias( CONV #( io_rap_bo_node->rap_node_objects-alias )
)->set_persistent_table( io_rap_bo_node->table_name
)->set_implementation_class( io_rap_bo_node->rap_node_objects-behavior_implementation
)->lock->set_master( ).
" Standard operations.
lo_header_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->create ).
lo_header_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->update ).
lo_header_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->delete ).
"determination CalculateSemanticKey on modify { create; }
lo_header_behavior->add_determination( 'CalculateSemanticKey'
)->set_time( xco_cp_behavior_definition=>evaluation->time->on_modify
)->set_trigger_operations( VALUE #( ( xco_cp_behavior_definition=>evaluation->trigger_operation->create ) ) ).
DATA lv_semantic_db_key TYPE sxco_cds_field_name.
lv_semantic_db_key = io_rap_bo_node->semantic_db_keys[ 1 ].
LOOP AT lt_mapping_header INTO ls_mapping_header.
CASE ls_mapping_header-dbtable_field.
WHEN io_rap_bo_node->field_name-uuid. " co_key. " field ( readonly, numbering : managed ) Uuid;
lo_header_behavior->add_field( ls_mapping_header-cds_view_field
)->set_numbering_managed(
")->set_read_only(
).
"io_rap_bo_node->semantic_keys[ 1 ]
WHEN lv_semantic_db_key . " mo_header_semantic_db_key .
lo_header_behavior->add_field( ls_mapping_header-cds_view_field
)->set_read_only(
).
ENDCASE.
ENDLOOP.
lo_header_behavior->add_mapping_for( io_rap_bo_node->table_name )->set_field_mapping( it_field_mappings = lt_mapping_header ).
IF io_rap_bo_node->has_childs( ).
LOOP AT io_rap_bo_node->childnodes INTO DATA(lo_childnode).
lo_header_behavior->add_association( iv_name = '_' && lo_childnode->rap_node_objects-alias )->set_create_enabled( abap_true ).
ENDLOOP.
ENDIF.
"define behavior for child entities
IF io_rap_bo_node->has_childs( ).
LOOP AT io_rap_bo_node->all_childnodes INTO lo_childnode.
CLEAR lt_mapping_item.
LOOP AT lo_childnode->lt_fields INTO DATA(ls_item_fields) .
ls_mapping_item-dbtable_field = ls_item_fields-name.
ls_mapping_item-cds_view_field = to_mixed( ls_item_fields-name ).
IF ls_item_fields-name <> lo_childnode->field_name-client.
INSERT ls_mapping_item INTO TABLE lt_mapping_item.
ENDIF.
ENDLOOP.
DATA(lo_item_behavior) = lo_specification->add_behavior( lo_childnode->rap_node_objects-cds_view_i ).
*
* " Characteristics.
IF lo_childnode->is_grand_child_or_deeper( ).
lo_item_behavior->characteristics->set_alias( CONV #( lo_childnode->rap_node_objects-alias )
)->set_persistent_table( lo_childnode->table_name
)->set_implementation_class( lo_childnode->rap_node_objects-behavior_implementation
)->lock->set_dependent_by( '_' && lo_childnode->root_node->rap_node_objects-alias ).
"@todo change code when HFC3 is available
"lo_item_behavior->add_association( mo_assoc_to_header ).
lo_item_behavior->add_association( '_' && lo_childnode->root_node->rap_node_objects-alias ).
ELSEIF lo_childnode->is_child( ).
lo_item_behavior->characteristics->set_alias( CONV #( lo_childnode->rap_node_objects-alias )
)->set_persistent_table( lo_childnode->table_name
)->set_implementation_class( lo_childnode->rap_node_objects-behavior_implementation
)->lock->set_dependent_by( '_' && lo_childnode->parent_node->rap_node_objects-alias ).
"@todo change code when HFC3 is available
"lo_item_behavior->add_association( mo_assoc_to_header ).
lo_item_behavior->add_association( '_' && lo_childnode->parent_node->rap_node_objects-alias ).
"lo_header_behavior->add_association( iv_name = '_' && lo_childnode->rap_node_objects-alias )->set_create_enabled( abap_true ).
ELSE.
"should not happen
RAISE EXCEPTION TYPE zcx_rap_generator
MESSAGE ID 'ZCM_RAP_GENERATOR' TYPE 'E' NUMBER '001'
WITH lo_childnode->entityname lo_childnode->root_node->entityname.
ENDIF.
IF lo_childnode->has_childs( ).
LOOP AT lo_childnode->childnodes INTO DATA(lo_grandchildnode).
lo_item_behavior->add_association( iv_name = '_' && lo_grandchildnode->rap_node_objects-alias )->set_create_enabled( abap_true ).
ENDLOOP.
ENDIF.
lo_item_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->update ).
lo_item_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->delete ).
"determination CalculateSemanticKey on modify { create; }
lo_item_behavior->add_determination( 'CalculateSemanticKey'
)->set_time( xco_cp_behavior_definition=>evaluation->time->on_modify
)->set_trigger_operations( VALUE #( ( xco_cp_behavior_definition=>evaluation->trigger_operation->create ) ) ).
lv_semantic_db_key = lo_childnode->semantic_db_keys[ 1 ].
LOOP AT lt_mapping_item INTO ls_mapping_item.
CASE ls_mapping_item-dbtable_field.
WHEN lo_childnode->field_name-uuid. " field ( readonly, numbering : managed ) uuid;
lo_item_behavior->add_field( ls_mapping_item-cds_view_field
)->set_numbering_managed(
")->set_read_only(
).
WHEN lo_childnode->field_name-parent_uuid OR
lo_childnode->field_name-root_uuid . " field ( readonly ) parentuuid, bookingid;
lo_item_behavior->add_field( ls_mapping_item-cds_view_field )->set_read_only( ).
WHEN lv_semantic_db_key. " mo_item_semantic_db_key .
lo_item_behavior->add_field( ls_mapping_item-cds_view_field )->set_read_only( ).
ENDCASE.
ENDLOOP.
lo_item_behavior->add_mapping_for( lo_childnode->table_name )->set_field_mapping( it_field_mappings = lt_mapping_item ).
ENDLOOP.
ENDIF.
ENDMETHOD.
METHOD create_bdef_p.
DATA(lo_specification) = io_put_operation->for-bdef->add_object( io_rap_bo_node->rap_root_node_objects-behavior_definition_p
)->set_package( mo_package
)->create_form_specification( ).
lo_specification->set_short_description( 'Behavior for ' && io_rap_bo_node->rap_node_objects-cds_view_p
)->set_implementation_type( xco_cp_behavior_definition=>implementation_type->projection
).
DATA(lo_header_behavior) = lo_specification->add_behavior( io_rap_bo_node->rap_node_objects-cds_view_p ).
" Characteristics.
lo_header_behavior->characteristics->set_alias( CONV #( io_rap_bo_node->rap_node_objects-alias )
).
" Standard operations.
lo_header_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->create )->set_use( ).
lo_header_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->update )->set_use( ).
lo_header_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->delete )->set_use( ).
*
IF io_rap_bo_node->has_childs( ).
LOOP AT io_rap_bo_node->childnodes INTO DATA(lo_childnode).
lo_header_behavior->add_association( iv_name = '_' && lo_childnode->rap_node_objects-alias )->set_create_enabled( abap_true )->set_use( ).
ENDLOOP.
LOOP AT io_rap_bo_node->all_childnodes INTO lo_childnode.
DATA(lo_item_behavior) = lo_specification->add_behavior( lo_childnode->rap_node_objects-cds_view_p ).
" Characteristics.
lo_item_behavior->characteristics->set_alias( CONV #( lo_childnode->rap_node_objects-alias )
).
" Standard operations.
lo_item_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->update )->set_use( ).
lo_item_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->delete )->set_use( ).
"lo_item_behavior->add_association( mo_assoc_to_header )->set_use( ).
" lo_item_behavior->add_association( mo_assoc_to_header && ';' )->set_use( ).
IF lo_childnode->is_grand_child_or_deeper( ).
"lo_item_behavior->add_association( mo_assoc_to_root )->set_use( ).
"'_' && lo_childnode->root_node->rap_node_objects-alias
lo_item_behavior->add_association( '_' && lo_childnode->root_node->rap_node_objects-alias )->set_use( ).
ELSEIF lo_childnode->is_child( ).
"lo_item_behavior->add_association( mo_assoc_to_header )->set_use( ).
"'_' && lo_childnode->parent_node->rap_node_objects-alias
lo_item_behavior->add_association( '_' && lo_childnode->parent_node->rap_node_objects-alias )->set_use( ).
ELSE.
ENDIF.
IF lo_childnode->has_childs( ).
LOOP AT lo_childnode->childnodes INTO DATA(lo_grandchildnode).
lo_item_behavior->add_association( iv_name = '_' && lo_grandchildnode->rap_node_objects-alias )->set_create_enabled( abap_true )->set_use( ).
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
* IF create_item_objects( ).
* lo_header_behavior->add_association( iv_name = mo_assoc_to_item )->set_create_enabled( abap_true )->set_use( ).
* ENDIF.
*
* IF create_item_objects( ).
* DATA(lo_item_behavior) = lo_specification->add_behavior( mo_p_cds_item ).
*
* " Characteristics.
* lo_item_behavior->characteristics->set_alias( CONV #( mo_alias_item )
* ).
* " Standard operations.
* lo_item_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->update )->set_use( ).
* lo_item_behavior->add_standard_operation( xco_cp_behavior_definition=>standard_operation->delete )->set_use( ).
*
* "lo_item_behavior->add_association( mo_assoc_to_header )->set_use( ).
* lo_item_behavior->add_association( mo_assoc_to_header && ';' )->set_use( ).
* ENDIF.
ENDMETHOD.
METHOD create_behavior_implementation.
"create bdef implemenation for header
DATA(lo_specification_header) = io_put_operation->for-clas->add_object( io_rap_bo_node->rap_node_objects-behavior_implementation " mo_i_bil_header
)->set_package( mo_package
)->create_form_specification( ).
lo_specification_header->set_short_description( 'Behavior implementation for ' && io_rap_bo_node->root_node->rap_node_objects-cds_view_i ).
lo_specification_header->definition->set_abstract(
)->set_final(
)->set_for_behavior_of( io_rap_bo_node->root_node->rap_node_objects-cds_view_i ).
DATA(lo_handler_header) = lo_specification_header->add_local_class( 'LHC_' && to_upper( io_rap_bo_node->rap_node_objects-alias ) ).
lo_handler_header->definition->set_superclass( 'CL_ABAP_BEHAVIOR_HANDLER' ).
DATA(lo_determination_header) = lo_handler_header->definition->section-private->add_method( 'CALCULATE_SEMANTIC_KEY' ).
lo_determination_header->behavior_implementation->set_for_determination(
iv_entity_name = io_rap_bo_node->rap_node_objects-alias
iv_determination_name = 'CalculateSemanticKey'
).
lo_determination_header->add_importing_parameter( 'IT_KEYS' )->behavior_implementation->set_for( io_rap_bo_node->rap_node_objects-alias ).
lo_handler_header->implementation->add_method( 'CALCULATE_SEMANTIC_KEY'
)->set_source( VALUE #(
( |" Determination implementation goes here| ) )
).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
2416,
62,
2127,
62,
8612,
1352,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1259,
62,
8841,
62,
11487,
62,
4906,
41876,
49053,
9795,
43679,
3963,
4731,
13315,
5550,
38865,
35374,
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,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
26495,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
264,
87,
1073,
62,
26495,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
952,
62,
2416,
62,
2127,
62,
15763,
62,
17440,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
2416,
62,
17440,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
2416,
62,
8612,
1352,
13,
628,
198,
220,
220,
220,
337,
36252,
50,
7716,
62,
2127,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
83,
375,
418,
8,
41876,
1259,
62,
8841,
62,
11487,
62,
4906,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
87,
1073,
62,
5235,
62,
1996,
62,
1069,
4516,
13,
628,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
42865,
6941,
62,
15763,
62,
17440,
62,
76,
62,
12303,
312,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
2416,
62,
17440,
62,
76,
62,
12303,
312,
62,
15763,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
6941,
62,
26495,
220,
220,
220,
220,
220,
41876,
264,
87,
1073,
62,
26495,
13,
628,
220,
220,
220,
42865,
6941,
62,
38986,
41876,
4526,
37,
5390,
611,
62,
87,
1073,
62,
13155,
62,
5235,
62,
24330,
62,
7959,
62,
10057,
13,
198,
220,
220,
220,
42865,
6941,
62,
7645,
634,
41876,
220,
220,
220,
264,
87,
1073,
62,
7645,
634,
764,
628,
220,
220,
220,
337,
36252,
50,
8333,
62,
26495,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
72,
62,
66,
9310,
62,
1177,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
1996,
62,
27184,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
87,
1073,
62,
13155,
62,
5235,
62,
67,
62,
78,
62,
1996,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
952,
62,
2416,
62,
2127,
62,
17440,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
2416,
62,
17440,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
79,
62,
66,
9310,
62,
1177,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
1996,
62,
27184,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
87,
1073,
62,
13155,
62,
5235,
62,
67,
62,
78,
62,
1996,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
952,
62,
2416,
62,
2127,
62,
17440,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
2416,
62,
17440,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
76,
2934,
62,
1177,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
1996,
62,
27184,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
87,
1073,
62,
13155,
62,
5235,
62,
67,
62,
78,
62,
1996,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
952,
62,
2416,
62,
2127,
62,
17440,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
2416,
62,
17440,
13,
628,
198,
220,
220,
220,
337,
36252,
50,
2251,
62,
65,
4299,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
1996,
62,
27184,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
87,
1073,
62,
13155,
62,
5235,
62,
67,
62,
78,
62,
1996,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
952,
62,
2416,
62,
2127,
62,
17440,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
2416,
62,
17440,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
2416,
62,
8612,
1352,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
65,
4299,
62,
79,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
1996,
62,
27184,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
87,
1073,
62,
13155,
62,
5235,
62,
67,
62,
78,
62,
1996,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
952,
62,
2416,
62,
2127,
62,
17440,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
2416,
62,
17440,
13,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
46571,
62,
320,
32851,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
1996,
62,
27184,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
87,
1073,
62,
13155,
62,
5235,
62,
67,
62,
78,
62,
1996,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
952,
62,
2416,
62,
2127,
62,
17440,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
2416,
62,
17440,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
2416,
62,
2127,
62,
8612,
1352,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
42001,
41876,
3963,
33245,
62,
2416,
62,
2127,
62,
15763,
62,
17440,
13,
198,
220,
220,
220,
220,
220,
42099,
41876,
220,
1976,
565,
62,
2416,
62,
17440,
62,
76,
62,
12303,
312,
62,
15763,
764,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 YABAPGIT_PASSWORD_DIALOG
*&---------------------------------------------------------------------*
TABLES sscrfields.
SELECTION-SCREEN BEGIN OF SCREEN 1002 TITLE s_title.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) s_url FOR FIELD p_url.
PARAMETERS: p_url TYPE string LOWER CASE VISIBLE LENGTH 40 ##SEL_WRONG.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) s_user FOR FIELD p_user.
PARAMETERS: p_user TYPE string LOWER CASE VISIBLE LENGTH 40 ##SEL_WRONG.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) s_pass FOR FIELD p_pass.
PARAMETERS: p_pass TYPE string LOWER CASE VISIBLE LENGTH 40 ##SEL_WRONG.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 1002.
*-----------------------------------------------------------------------
* LCL_PASSWORD_DIALOG
*-----------------------------------------------------------------------
CLASS lcl_password_dialog DEFINITION FINAL.
**************
* This class will remain local in the report
**************
PUBLIC SECTION.
CONSTANTS c_dynnr TYPE char4 VALUE '1002'.
CLASS-METHODS popup
IMPORTING
iv_repo_url TYPE string
CHANGING
cv_user TYPE string
cv_pass TYPE string.
CLASS-METHODS on_screen_init.
CLASS-METHODS on_screen_output.
CLASS-METHODS on_screen_event
IMPORTING
iv_ucomm TYPE syucomm.
PRIVATE SECTION.
CLASS-DATA gv_confirm TYPE abap_bool.
CLASS-METHODS enrich_title_by_hostname
IMPORTING
iv_repo_url TYPE string.
ENDCLASS. "lcl_password_dialog DEFINITION
CLASS lcl_password_dialog IMPLEMENTATION.
METHOD popup.
CLEAR p_pass.
p_url = iv_repo_url.
p_user = cv_user.
gv_confirm = abap_false.
enrich_title_by_hostname( iv_repo_url ).
CALL SELECTION-SCREEN c_dynnr STARTING AT 5 5 ENDING AT 60 8.
IF gv_confirm = abap_true.
cv_user = p_user.
cv_pass = p_pass.
ELSE.
CLEAR: cv_user, cv_pass.
ENDIF.
CLEAR: p_url, p_user, p_pass.
ENDMETHOD. "popup
METHOD on_screen_init.
s_title = 'Login' ##NO_TEXT.
s_url = 'Repo URL' ##NO_TEXT.
s_user = 'User' ##NO_TEXT.
s_pass = 'Password' ##NO_TEXT.
ENDMETHOD. "on_screen_init
METHOD on_screen_output.
DATA lt_ucomm TYPE TABLE OF sy-ucomm.
ASSERT sy-dynnr = c_dynnr.
LOOP AT SCREEN.
IF screen-name = 'P_URL'.
screen-input = '0'.
screen-intensified = '1'.
screen-display_3d = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-name = 'P_PASS'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
" Program RSSYSTDB, GUI Status %_CSP
PERFORM set_pf_status IN PROGRAM rsdbrunt IF FOUND.
APPEND 'NONE' TO lt_ucomm. "Button Check
APPEND 'SPOS' TO lt_ucomm. "Save as Variant
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = lt_ucomm.
IF p_user IS NOT INITIAL.
SET CURSOR FIELD 'P_PASS'.
ENDIF.
ENDMETHOD. "on_screen_output
METHOD on_screen_event.
ASSERT sy-dynnr = c_dynnr.
" CRET - F8
" OTHERS - simulate Enter press
CASE iv_ucomm.
WHEN 'CRET'.
gv_confirm = abap_true.
WHEN OTHERS. "TODO REFACTOR !!! A CLUTCH !
" This will work unless any new specific logic appear
" for other commands. The problem is that the password dialog
" does not have Enter event (or I don't know how to activate it ;)
" so Enter issues previous command from previous screen
" But for now this works :) Fortunately Esc produces another flow
gv_confirm = abap_true.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMETHOD. "on_screen_event
METHOD enrich_title_by_hostname.
DATA lv_host TYPE string.
FIND REGEX 'https?://([^/^:]*)' IN iv_repo_url SUBMATCHES lv_host.
IF lv_host IS NOT INITIAL AND lv_host <> space.
CLEAR s_title.
CONCATENATE 'Login:' lv_host INTO s_title IN CHARACTER MODE SEPARATED BY space.
ENDIF.
ENDMETHOD.
ENDCLASS. " lcl_password_dialog IMPLEMENTATION
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
575,
6242,
2969,
38,
2043,
62,
47924,
54,
12532,
62,
35,
12576,
7730,
198,
9,
5,
10097,
30934,
9,
198,
5603,
9148,
1546,
264,
1416,
81,
25747,
13,
198,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
6374,
2200,
1677,
1802,
17,
37977,
2538,
264,
62,
7839,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
352,
7,
940,
8,
264,
62,
6371,
7473,
18930,
24639,
279,
62,
6371,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
6371,
220,
41876,
4731,
406,
36048,
42001,
50035,
34563,
406,
49494,
2319,
22492,
50,
3698,
62,
18564,
18494,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
352,
7,
940,
8,
264,
62,
7220,
7473,
18930,
24639,
279,
62,
7220,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
7220,
41876,
4731,
406,
36048,
42001,
50035,
34563,
406,
49494,
2319,
22492,
50,
3698,
62,
18564,
18494,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
48920,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
9440,
10979,
352,
7,
940,
8,
264,
62,
6603,
7473,
18930,
24639,
279,
62,
6603,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
6603,
41876,
4731,
406,
36048,
42001,
50035,
34563,
406,
49494,
2319,
22492,
50,
3698,
62,
18564,
18494,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
48920,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
6374,
2200,
1677,
1802,
17,
13,
198,
198,
9,
10097,
26866,
198,
9,
406,
5097,
62,
47924,
54,
12532,
62,
35,
12576,
7730,
198,
9,
10097,
26866,
198,
31631,
300,
565,
62,
28712,
62,
38969,
519,
5550,
20032,
17941,
25261,
13,
198,
198,
46068,
1174,
198,
9,
770,
1398,
481,
3520,
1957,
287,
262,
989,
198,
46068,
1174,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
67,
2047,
48624,
41876,
1149,
19,
26173,
8924,
705,
3064,
17,
4458,
628,
220,
220,
220,
42715,
12,
49273,
50,
46207,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
260,
7501,
62,
6371,
41876,
4731,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
269,
85,
62,
7220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
269,
85,
62,
6603,
220,
220,
220,
220,
41876,
4731,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
319,
62,
9612,
62,
15003,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
319,
62,
9612,
62,
22915,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
319,
62,
9612,
62,
15596,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
84,
9503,
41876,
827,
84,
9503,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42715,
12,
26947,
308,
85,
62,
10414,
2533,
41876,
450,
499,
62,
30388,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
22465,
62,
7839,
62,
1525,
62,
4774,
3672,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
260,
7501,
62,
6371,
41876,
4731,
13,
198,
198,
10619,
31631,
13,
366,
75,
565,
62,
28712,
62,
38969,
519,
5550,
20032,
17941,
198,
198,
31631,
300,
565,
62,
28712,
62,
38969,
519,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
46207,
13,
628,
220,
220,
220,
30301,
1503,
279,
62,
6603,
13,
198,
220,
220,
220,
279,
62,
6371,
220,
220,
220,
220,
220,
796,
21628,
62,
260,
7501,
62,
6371,
13,
198,
220,
220,
220,
279,
62,
7220,
220,
220,
220,
220,
796,
269,
85,
62,
7220,
13,
198,
220,
220,
220,
308,
85,
62,
10414,
2533,
796,
450,
499,
62,
9562,
13,
628,
198,
220,
220,
220,
22465,
62,
7839,
62,
1525,
62,
4774,
3672,
7,
21628,
62,
260,
7501,
62,
6371,
6739,
628,
220,
220,
220,
42815,
33493,
2849,
12,
6173,
2200,
1677,
269,
62,
67,
2047,
48624,
33303,
2751,
5161,
642,
642,
23578,
2751,
5161,
3126,
807,
13,
628,
220,
220,
220,
16876,
308,
85,
62,
10414,
2533,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
269,
85,
62,
7220,
796,
279,
62,
7220,
13,
198,
220,
220,
220,
220,
220,
269,
85,
62,
6603,
796,
279,
62,
6603,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
30301,
1503,
25,
269,
85,
62,
7220,
11,
269,
85,
62,
6603,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
30301,
1503,
25,
279,
62,
6371,
11,
279,
62,
7220,
11,
279,
62,
6603,
13,
628,
220,
23578,
49273,
13,
220,
366,
12924,
929,
628,
220,
337,
36252,
319,
62,
9612,
62,
15003,
13,
198,
220,
220,
220,
264,
62,
7839,
796,
705,
47790,
6,
220,
220,
220,
220,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
264,
62,
6371,
220,
220,
796,
705,
6207,
78,
10289,
6,
220,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
264,
62,
7220,
220,
796,
705,
12982,
6,
220,
220,
220,
220,
220,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
264,
62,
6603,
220,
796,
705,
35215,
6,
220,
22492,
15285,
62,
32541,
13,
198,
220,
23578,
49273,
13,
220,
366,
261,
62,
9612,
62,
15003,
628,
220,
337,
36252,
319,
62,
9612,
62,
22915,
13,
198,
220,
220,
220,
42865,
300,
83,
62,
84,
9503,
41876,
43679,
3963,
827,
12,
84,
9503,
13,
628,
220,
220,
220,
24994,
17395,
827,
12,
67,
2047,
48624,
796,
269,
62,
67,
2047,
48624,
13,
628,
220,
220,
220,
17579,
3185,
5161,
6374,
2200,
1677,
13,
198,
220,
220,
220,
220,
220,
16876,
3159,
12,
3672,
796,
705,
47,
62,
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
1,
1
] |
CLASS ycl_abapgit_object_dsys DEFINITION PUBLIC INHERITING FROM ycl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES yif_abapgit_object.
ALIASES mo_files FOR yif_abapgit_object~mo_files.
METHODS constructor
IMPORTING
is_item TYPE yif_abapgit_definitions=>ty_item
iv_language TYPE spras.
PRIVATE SECTION.
CONSTANTS: c_typ TYPE dokhl-typ VALUE 'E',
c_version TYPE dokhl-dokversion VALUE '0001',
c_id TYPE dokhl-id VALUE 'HY',
c_dokclas TYPE doku_class VALUE 'SIMG'.
DATA: mv_object TYPE dokhl-object,
mv_dokname TYPE doku_obj.
TYPES: BEGIN OF ty_data,
doctitle TYPE dsyst-doktitle,
head TYPE thead,
lines TYPE tline_tab,
END OF ty_data.
METHODS: read
RETURNING VALUE(rs_data) TYPE ty_data.
ENDCLASS.
CLASS ycl_abapgit_object_dsys IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_object = ms_item-obj_name.
mv_dokname = mv_object+4(*).
ENDMETHOD.
METHOD yif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD yif_abapgit_object~changed_by.
rv_user = read( )-head-tdluser.
IF rv_user IS INITIAL.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD yif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD yif_abapgit_object~jump.
CALL FUNCTION 'DSYS_SHOW'
EXPORTING
dokclass = c_dokclas
dokname = mv_dokname
EXCEPTIONS
class_unknown = 1
object_not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ycx_abapgit_exception=>raise( 'error from DSYS_EDIT' ).
ENDIF.
ENDMETHOD.
METHOD yif_abapgit_object~exists.
SELECT SINGLE object FROM dokil INTO mv_object
WHERE id = c_id
AND object = mv_object. "#EC CI_GENBUFF
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD yif_abapgit_object~delete.
CALL FUNCTION 'DOCU_DEL'
EXPORTING
id = c_id
langu = mv_language
object = mv_object
typ = c_typ
EXCEPTIONS
ret_code = 1
OTHERS = 2.
IF sy-subrc <> 0.
ycx_abapgit_exception=>raise( 'error from DOCU_DEL' ).
ENDIF.
ENDMETHOD.
METHOD yif_abapgit_object~serialize.
DATA: ls_data TYPE ty_data.
ls_data = read( ).
CLEAR: ls_data-head-tdfuser,
ls_data-head-tdfreles,
ls_data-head-tdfdate,
ls_data-head-tdftime,
ls_data-head-tdluser,
ls_data-head-tdlreles,
ls_data-head-tdldate,
ls_data-head-tdltime.
io_xml->add( iv_name = 'DSYS'
ig_data = ls_data ).
ENDMETHOD.
METHOD yif_abapgit_object~deserialize.
DATA: ls_data TYPE ty_data.
io_xml->read( EXPORTING iv_name = 'DSYS'
CHANGING cg_data = ls_data ).
CALL FUNCTION 'DOCU_UPDATE'
EXPORTING
head = ls_data-head
state = 'A'
typ = c_typ
version = c_version
TABLES
line = ls_data-lines.
tadir_insert( iv_package ).
ENDMETHOD.
METHOD yif_abapgit_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE ycl_abapgit_comparison_null.
ENDMETHOD.
METHOD read.
CALL FUNCTION 'DOCU_READ'
EXPORTING
id = c_id
langu = mv_language
object = mv_object
typ = c_typ
version = c_version
IMPORTING
doktitle = rs_data-doctitle
head = rs_data-head
TABLES
line = rs_data-lines.
ENDMETHOD.
METHOD yif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
565,
62,
397,
499,
18300,
62,
15252,
62,
9310,
893,
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,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
331,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
41876,
331,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
41876,
7500,
292,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
28004,
220,
220,
220,
220,
41876,
466,
14636,
75,
12,
28004,
26173,
8924,
705,
36,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
62,
9641,
41876,
466,
14636,
75,
12,
67,
482,
9641,
26173,
8924,
705,
18005,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
62,
312,
220,
220,
220,
220,
220,
41876,
466,
14636,
75,
12,
312,
26173,
8924,
705,
42598,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
62,
67,
482,
565,
292,
41876,
466,
23063,
62,
4871,
26173,
8924,
705,
48913,
38,
4458,
198,
220,
220,
220,
42865,
25,
285,
85,
62,
15252,
220,
41876,
466,
14636,
75,
12,
15252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
85,
62,
67,
482,
3672,
41876,
466,
23063,
62,
26801,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10412,
2578,
41876,
288,
1837,
301,
12,
67,
482,
7839,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1182,
220,
220,
220,
220,
41876,
262,
324,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3951,
220,
220,
220,
41876,
256,
1370,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
7890,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
1100,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
7890,
8,
41876,
1259,
62,
7890,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
331,
565,
62,
397,
499,
18300,
62,
15252,
62,
9310,
893,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
318,
62,
9186,
796,
318,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
796,
21628,
62,
16129,
6739,
628,
220,
220,
220,
285,
85,
62,
15252,
220,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
198,
220,
220,
220,
285,
85,
62,
67,
482,
3672,
796,
285,
85,
62,
15252,
10,
19,
46491,
737,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
331,
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,
331,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
198,
220,
220,
220,
374,
85,
62,
7220,
796,
1100,
7,
1267,
12,
2256,
12,
8671,
75,
7220,
13,
198,
220,
220,
220,
16876,
374,
85,
62,
7220,
3180,
3268,
2043,
12576,
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,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
331,
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,
220,
220,
44608,
62,
38993,
12,
33678,
62,
83,
324,
343,
796,
450,
499,
62,
7942,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
331,
361,
62,
397,
499,
18300,
62,
15252,
93,
43327,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
5258,
16309,
62,
9693,
3913,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
466,
74,
4871,
220,
220,
220,
220,
220,
220,
220,
220,
796,
269,
62,
67,
482,
565,
292,
198,
220,
220,
220,
220,
220,
220,
220,
466,
74,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
285,
85,
62,
67,
482,
3672,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
1398,
62,
34680,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
62,
1662,
62,
9275,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
513,
13,
628,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
331,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
18224,
422,
17400,
16309,
62,
24706,
6,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
331,
361,
62,
397,
499,
18300,
62,
15252,
93,
1069,
1023,
13,
628,
220,
220,
220,
33493,
311,
2751,
2538,
2134,
16034,
466,
34553,
39319,
285,
85,
62,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33411,
4686,
220,
220,
796,
269,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
2134,
796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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
interface ZIF_EX_DOP_FILTER_BADI
public .
methods KDV_HESAPLA default ignore
importing
!IS_VBAK type VBAK
!IT_VBAP type VBAP_T
!FLT_VAL type LAND1
exporting
!EV_KDV type P .
endinterface.
| [
39994,
1168,
5064,
62,
6369,
62,
35,
3185,
62,
46700,
5781,
62,
33,
2885,
40,
198,
220,
1171,
764,
628,
198,
220,
5050,
43943,
53,
62,
39,
1546,
2969,
13534,
4277,
8856,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
1797,
62,
53,
4339,
42,
2099,
569,
4339,
42,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
44526,
2969,
2099,
569,
33,
2969,
62,
51,
198,
220,
220,
220,
220,
220,
5145,
3697,
51,
62,
23428,
2099,
406,
6981,
16,
198,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
5145,
20114,
62,
42,
35,
53,
2099,
350,
764,
198,
437,
39994,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! Static registry class to find {@link ZIF_ABAPGIT_2FA_AUTHENTICATOR} instances
CLASS zcl_abapgit_2fa_auth_registry DEFINITION
PUBLIC
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
CLASS-METHODS:
class_constructor,
"! Retrieve an authenticator instance by url
"! @parameter iv_url | Url of the repository / service
"! @parameter ri_authenticator | Found authenticator instance
"! @raising zcx_abapgit_2fa_unsupported | No authenticator found that supports the service
get_authenticator_for_url IMPORTING iv_url TYPE string
RETURNING VALUE(ri_authenticator) TYPE REF TO zif_abapgit_2fa_authenticator
RAISING zcx_abapgit_2fa_unsupported,
"! Check if there is a two factor authenticator available for the url
"! @parameter iv_url | Url of the repository / service
"! @parameter rv_supported | 2FA is supported
is_url_supported IMPORTING iv_url TYPE string
RETURNING VALUE(rv_supported) TYPE abap_bool,
"! Offer to use two factor authentication if supported and required
"! <p>
"! This uses GUI functionality to display a popup to request the user to enter a two factor
"! token. Also an dummy authentication request might be used to find out if two factor
"! authentication is required for the account.
"! </p>
"! @parameter iv_url | Url of the repository / service
"! @parameter cv_username | Username
"! @parameter cv_password | Password, will be replaced by an access token if two factor
"! authentication succeeds
"! @raising zcx_abapgit_exception | Error in two factor authentication
use_2fa_if_required IMPORTING iv_url TYPE string
CHANGING cv_username TYPE string
cv_password TYPE string
RAISING zcx_abapgit_exception.
PROTECTED SECTION.
CLASS-DATA:
"! All authenticators managed by the registry
gt_registered_authenticators TYPE HASHED TABLE OF REF TO zif_abapgit_2fa_authenticator
WITH UNIQUE KEY table_line.
PRIVATE SECTION.
CLASS-METHODS:
popup_token
RETURNING VALUE(rv_token) TYPE string
RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_2FA_AUTH_REGISTRY IMPLEMENTATION.
METHOD class_constructor.
DATA: lt_sub TYPE seo_relkeys,
ls_sub LIKE LINE OF lt_sub,
li_authenticator TYPE REF TO zif_abapgit_2fa_authenticator,
lo_class TYPE REF TO cl_oo_class.
TRY.
lo_class ?= cl_oo_class=>get_instance( 'ZCL_ABAPGIT_2FA_AUTH_BASE' ).
lt_sub = lo_class->get_subclasses( ).
SORT lt_sub BY clsname ASCENDING AS TEXT.
LOOP AT lt_sub INTO ls_sub.
CREATE OBJECT li_authenticator TYPE (ls_sub-clsname).
INSERT li_authenticator INTO TABLE gt_registered_authenticators.
ENDLOOP.
CATCH cx_class_not_existent.
* class in local report
CREATE OBJECT li_authenticator TYPE zcl_abapgit_2fa_github_auth.
INSERT li_authenticator INTO TABLE gt_registered_authenticators.
ENDTRY.
ENDMETHOD.
METHOD get_authenticator_for_url.
FIELD-SYMBOLS: <li_authenticator> LIKE LINE OF gt_registered_authenticators.
LOOP AT gt_registered_authenticators ASSIGNING <li_authenticator>.
IF <li_authenticator>->supports_url( iv_url ) = abap_true.
ri_authenticator = <li_authenticator>.
RETURN.
ENDIF.
ENDLOOP.
RAISE EXCEPTION TYPE zcx_abapgit_2fa_unsupported.
ENDMETHOD.
METHOD is_url_supported.
TRY.
get_authenticator_for_url( iv_url ).
rv_supported = abap_true.
CATCH zcx_abapgit_2fa_unsupported ##NO_HANDLER.
ENDTRY.
ENDMETHOD.
METHOD popup_token.
DATA: lv_returncode TYPE c,
lt_fields TYPE TABLE OF sval.
FIELD-SYMBOLS: <ls_field> LIKE LINE OF lt_fields.
APPEND INITIAL LINE TO lt_fields ASSIGNING <ls_field>.
<ls_field>-tabname = 'TADIR'.
<ls_field>-fieldname = 'OBJ_NAME'.
<ls_field>-fieldtext = 'Two factor auth. token'.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
no_value_check = abap_true
popup_title = 'Two factor auth. token'
IMPORTING
returncode = lv_returncode
TABLES
fields = lt_fields
EXCEPTIONS
error_in_fields = 1
OTHERS = 2. "#EC NOTEXT
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Error from POPUP_GET_VALUES' ).
ENDIF.
IF lv_returncode = 'A'.
zcx_abapgit_exception=>raise( 'Authentication cancelled' ).
ENDIF.
READ TABLE lt_fields INDEX 1 ASSIGNING <ls_field>.
ASSERT sy-subrc = 0.
rv_token = <ls_field>-value.
ENDMETHOD.
METHOD use_2fa_if_required.
DATA: li_authenticator TYPE REF TO zif_abapgit_2fa_authenticator,
lv_2fa_token TYPE string,
lv_access_token TYPE string,
lx_ex TYPE REF TO cx_root.
IF is_url_supported( iv_url ) = abap_false.
RETURN.
ENDIF.
TRY.
li_authenticator = get_authenticator_for_url( iv_url ).
li_authenticator->begin( ).
" Is two factor authentication required for this account?
IF li_authenticator->is_2fa_required( iv_url = iv_url
iv_username = cv_username
iv_password = cv_password ) = abap_true.
lv_2fa_token = popup_token( ).
" Delete an old access token if it exists
li_authenticator->delete_access_tokens( iv_url = iv_url
iv_username = cv_username
iv_password = cv_password
iv_2fa_token = lv_2fa_token ).
" Get a new access token
lv_access_token = li_authenticator->authenticate( iv_url = iv_url
iv_username = cv_username
iv_password = cv_password
iv_2fa_token = lv_2fa_token ).
" Use the access token instead of the password
cv_password = lv_access_token.
ENDIF.
li_authenticator->end( ).
CATCH zcx_abapgit_2fa_error INTO lx_ex.
TRY.
li_authenticator->end( ).
CATCH zcx_abapgit_2fa_illegal_state ##NO_HANDLER.
ENDTRY.
zcx_abapgit_exception=>raise( |2FA error: { lx_ex->get_text( ) }| ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
40484,
36125,
20478,
1398,
284,
1064,
1391,
31,
8726,
1168,
5064,
62,
6242,
2969,
38,
2043,
62,
17,
7708,
62,
32,
24318,
3525,
2149,
25633,
92,
10245,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
17,
13331,
62,
18439,
62,
2301,
4592,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
1398,
62,
41571,
273,
11,
198,
220,
220,
220,
220,
220,
366,
0,
4990,
30227,
281,
16425,
1352,
4554,
416,
19016,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
6371,
930,
8799,
75,
286,
262,
16099,
1220,
2139,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
72,
62,
41299,
26407,
930,
4062,
16425,
1352,
4554,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
32741,
1976,
66,
87,
62,
397,
499,
18300,
62,
17,
13331,
62,
403,
15999,
930,
1400,
16425,
1352,
1043,
326,
6971,
262,
2139,
198,
220,
220,
220,
220,
220,
651,
62,
41299,
26407,
62,
1640,
62,
6371,
30023,
9863,
2751,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
380,
62,
41299,
26407,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
17,
13331,
62,
41299,
26407,
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,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
17,
13331,
62,
403,
15999,
11,
198,
220,
220,
220,
220,
220,
366,
0,
6822,
611,
612,
318,
257,
734,
5766,
16425,
1352,
1695,
329,
262,
19016,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
6371,
930,
8799,
75,
286,
262,
16099,
1220,
2139,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
85,
62,
15999,
930,
362,
7708,
318,
4855,
198,
220,
220,
220,
220,
220,
318,
62,
6371,
62,
15999,
30023,
9863,
2751,
21628,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
15999,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
366,
0,
33085,
284,
779,
734,
5766,
18239,
611,
4855,
290,
2672,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
770,
3544,
25757,
11244,
284,
3359,
257,
46207,
284,
2581,
262,
2836,
284,
3802,
257,
734,
5766,
198,
220,
220,
220,
220,
220,
366,
0,
11241,
13,
4418,
281,
31548,
18239,
2581,
1244,
307,
973,
284,
1064,
503,
611,
734,
5766,
198,
220,
220,
220,
220,
220,
366,
0,
18239,
318,
2672,
329,
262,
1848,
13,
198,
220,
220,
220,
220,
220,
366,
0,
7359,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
21628,
62,
6371,
930,
8799,
75,
286,
262,
16099,
1220,
2139,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
269,
85,
62,
29460,
930,
50069,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
17143,
2357,
269,
85,
62,
28712,
930,
30275,
11,
481,
307,
6928,
416,
281,
1895,
11241,
611,
734,
5766,
198,
220,
220,
220,
220,
220,
366,
0,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18239,
31137,
198,
220,
220,
220,
220,
220,
366,
0,
2488,
32741,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
930,
13047,
287,
734,
5766,
18239,
198,
220,
220,
220,
220,
220,
779,
62,
17,
13331,
62,
361,
62,
35827,
30023,
9863,
2751,
21628,
62,
6371,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
85,
62,
29460,
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,
269,
85,
62,
28712,
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,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
42715,
12,
26947,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1439,
16425,
2024,
5257,
416,
262,
20478,
198,
220,
220,
220,
220,
220,
308,
83,
62,
33736,
62,
41299,
44549,
41876,
367,
11211,
1961,
43679,
3963,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
17,
13331,
62,
41299,
26407,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
35374,
3084,
62,
1370,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
46207,
62,
30001,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
30001,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*"* use this source file for your ABAP unit test classes
CLASS ltcl_abap_unit DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA:
cut TYPE REF TO zcl_i18nchk_message_util.
METHODS:
test_method FOR TESTING.
ENDCLASS.
CLASS ltcl_abap_unit IMPLEMENTATION.
METHOD test_method.
DATA(text) = zcl_i18nchk_message_util=>fill_text(
text = 'Test test with {1} and {2}'
placeholder_values = VALUE #( ( `one` ) ( `two` ) ) ).
cl_abap_unit_assert=>assert_equals(
act = text
exp = 'Test test with one and two' ).
ENDMETHOD.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
534,
9564,
2969,
4326,
1332,
6097,
198,
31631,
300,
83,
565,
62,
397,
499,
62,
20850,
5550,
20032,
17941,
25261,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
2005,
41876,
4526,
37,
5390,
1976,
565,
62,
72,
1507,
77,
354,
74,
62,
20500,
62,
22602,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
1332,
62,
24396,
7473,
43001,
2751,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
397,
499,
62,
20850,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1332,
62,
24396,
13,
198,
220,
220,
220,
42865,
7,
5239,
8,
796,
1976,
565,
62,
72,
1507,
77,
354,
74,
62,
20500,
62,
22602,
14804,
20797,
62,
5239,
7,
198,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
14402,
1332,
351,
1391,
16,
92,
290,
1391,
17,
92,
6,
198,
220,
220,
220,
220,
220,
46076,
62,
27160,
796,
26173,
8924,
1303,
7,
357,
4600,
505,
63,
1267,
357,
4600,
11545,
63,
1267,
1267,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2420,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
14402,
1332,
351,
530,
290,
734,
6,
6739,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_test_code_detector DEFINITION PUBLIC CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES:
y_if_testcode_detector.
PROTECTED SECTION.
PRIVATE SECTION.
DATA:
ref_scan_manager TYPE REF TO y_if_scan_manager,
statement_wa TYPE sstmnt,
test_codes TYPE y_if_testcode_detector=>t_test_codes,
test_code TYPE y_if_testcode_detector=>t_test_code.
METHODS:
process_statements
IMPORTING structure TYPE sstruc,
process_tokens
IMPORTING statement TYPE sstmnt,
try_testclass
IMPORTING token TYPE stokesx
RETURNING VALUE(result) TYPE abap_bool,
try_testmethod
IMPORTING token TYPE stokesx
RETURNING VALUE(result) TYPE abap_bool,
keyword
RETURNING VALUE(result) TYPE string,
get_token_rel
IMPORTING p_n TYPE i
RETURNING VALUE(result) TYPE string,
determine_test_code,
is_test_class
RETURNING VALUE(result) TYPE abap_bool.
ENDCLASS.
CLASS Y_TEST_CODE_DETECTOR IMPLEMENTATION.
METHOD determine_test_code.
IF test_codes IS NOT INITIAL.
RETURN.
ENDIF.
LOOP AT ref_scan_manager->get_structures( ) ASSIGNING FIELD-SYMBOL(<structure>)
WHERE stmnt_type EQ scan_struc_stmnt_type-class_definition.
process_statements( <structure> ).
ENDLOOP.
ENDMETHOD.
METHOD get_token_rel.
DATA(l_index) = statement_wa-from + p_n - 1.
IF l_index > statement_wa-to.
RETURN.
ENDIF.
READ TABLE ref_scan_manager->get_tokens( ) INDEX l_index INTO DATA(token_wa).
result = token_wa-str.
ENDMETHOD.
METHOD is_test_class.
IF keyword( ) = 'CLASS'.
DATA(class) = get_token_rel( 2 ). "#EC DECL_IN_IF
READ TABLE test_codes TRANSPORTING NO FIELDS WITH KEY class = class.
IF sy-subrc EQ 0.
result = abap_true.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD keyword.
IF statement_wa-type = 'C'.
result = 'COMPUTE'.
RETURN.
ENDIF.
READ TABLE ref_scan_manager->get_tokens( ) INDEX statement_wa-from INTO DATA(token_wa).
result = token_wa-str.
ENDMETHOD.
METHOD process_statements.
CLEAR test_code.
LOOP AT ref_scan_manager->get_statements( ) ASSIGNING FIELD-SYMBOL(<statement>)
FROM structure-stmnt_from TO structure-stmnt_to.
statement_wa = <statement>.
process_tokens( <statement> ).
ENDLOOP.
ENDMETHOD.
METHOD process_tokens.
LOOP AT ref_scan_manager->get_tokens( ) ASSIGNING FIELD-SYMBOL(<token>)
FROM statement-from TO statement-to.
IF try_testclass( <token> ).
EXIT.
ENDIF.
IF try_testmethod( <token> ).
EXIT.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD try_testclass.
IF token-str EQ 'TESTING' AND
keyword( ) = 'CLASS'.
test_code-class = get_token_rel( 2 ).
result = abap_true.
ENDIF.
ENDMETHOD.
METHOD try_testmethod.
IF test_code-class IS NOT INITIAL AND (
keyword( ) = 'METHODS' OR
keyword( ) = 'CLASS-METHODS' ).
test_code-method = get_token_rel( 2 ).
APPEND test_code TO test_codes.
result = abap_true.
ENDIF.
IF test_code-class IS NOT INITIAL AND
test_code-method IS INITIAL AND
keyword( ) = 'ENDCLASS'.
APPEND test_code TO test_codes.
result = abap_true.
ENDIF.
ENDMETHOD.
METHOD y_if_testcode_detector~clear.
CLEAR ref_scan_manager.
CLEAR test_codes.
CLEAR test_code.
CLEAR statement_wa.
ENDMETHOD.
METHOD y_if_testcode_detector~is_testcode.
determine_test_code( ).
IF test_codes IS INITIAL.
RETURN.
ENDIF.
READ TABLE ref_scan_manager->get_statements( ) INTO statement_wa INDEX structure-stmnt_from.
IF is_test_class( ).
result = abap_true.
ELSE.
DATA(high_level_structure) = structure. "#EC DECL_IN_IF
DO.
DATA(low_level_structure) = high_level_structure. "#EC DECL_IN_IF
READ TABLE ref_scan_manager->get_structures( ) INTO high_level_structure INDEX low_level_structure-back.
IF sy-subrc NE 0.
EXIT.
ENDIF.
READ TABLE ref_scan_manager->get_statements( ) INTO statement_wa INDEX high_level_structure-stmnt_from.
IF is_test_class( ).
result = abap_true.
EXIT.
ENDIF.
IF low_level_structure-back EQ 0.
EXIT.
ENDIF.
ENDDO.
ENDIF.
ENDMETHOD.
METHOD y_if_testcode_detector~set_ref_scan_manager.
me->ref_scan_manager = ref_scan_manager. "#EC SELF_REF
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9288,
62,
8189,
62,
15255,
9250,
5550,
20032,
17941,
44731,
29244,
6158,
44731,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
331,
62,
361,
62,
9288,
8189,
62,
15255,
9250,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
1006,
62,
35836,
62,
37153,
41876,
4526,
37,
5390,
331,
62,
361,
62,
35836,
62,
37153,
11,
198,
220,
220,
220,
220,
220,
2643,
62,
10247,
220,
220,
220,
220,
41876,
264,
301,
76,
429,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
40148,
220,
220,
220,
220,
220,
220,
41876,
331,
62,
361,
62,
9288,
8189,
62,
15255,
9250,
14804,
83,
62,
9288,
62,
40148,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
8189,
220,
220,
220,
220,
220,
220,
220,
41876,
331,
62,
361,
62,
9288,
8189,
62,
15255,
9250,
14804,
83,
62,
9288,
62,
8189,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
1429,
62,
14269,
3196,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
4645,
41876,
264,
19554,
66,
11,
198,
220,
220,
220,
220,
220,
1429,
62,
83,
482,
641,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
2643,
41876,
264,
301,
76,
429,
11,
198,
220,
220,
220,
220,
220,
1949,
62,
9288,
4871,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
11241,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
336,
3369,
87,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
1949,
62,
9288,
24396,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
11241,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
336,
3369,
87,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
21179,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
651,
62,
30001,
62,
2411,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
279,
62,
77,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
5004,
62,
9288,
62,
8189,
11,
198,
220,
220,
220,
220,
220,
318,
62,
9288,
62,
4871,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
450,
499,
62,
30388,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
575,
62,
51,
6465,
62,
34,
16820,
62,
35,
2767,
9782,
1581,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
5004,
62,
9288,
62,
8189,
13,
198,
220,
220,
220,
16876,
1332,
62,
40148,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
17579,
3185,
5161,
1006,
62,
35836,
62,
37153,
3784,
1136,
62,
7249,
942,
7,
1267,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
301,
5620,
43734,
198,
220,
220,
220,
220,
220,
33411,
336,
76,
429,
62,
4906,
36529,
9367,
62,
19554,
66,
62,
301,
76,
429,
62,
4906,
12,
4871,
62,
46758,
13,
628,
220,
220,
220,
220,
220,
1429,
62,
14269,
3196,
7,
1279,
301,
5620,
29,
6739,
198,
220,
220,
220,
23578,
21982,
3185,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
30001,
62,
2411,
13,
198,
220,
220,
220,
42865,
7,
75,
62,
9630,
8,
796,
2643,
62,
10247,
12,
6738,
1343,
279,
62,
77,
532,
352,
13,
198,
220,
220,
220,
16876,
300,
62,
9630,
1875,
2643,
62,
10247,
12,
1462,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
20832,
43679,
1006,
62,
35836,
62,
37153,
3784,
1136,
62,
83,
482,
641,
7,
1267,
24413,
6369,
300,
62,
9630,
39319,
42865,
7,
30001,
62,
10247,
737,
198,
220,
220,
220,
1255,
796,
11241,
62,
10247,
12,
2536,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
318,
62,
9288,
62,
4871,
13,
198,
220,
220,
220,
16876,
21179,
7,
1267,
796,
705,
31631,
4458,
198,
220,
220,
220,
220,
220,
42865,
7,
4871,
8,
796,
651,
62,
30001,
62,
2411,
7,
362,
6739,
25113,
2943,
27196,
43,
62,
1268,
62,
5064,
198,
220,
220,
220,
220,
220,
20832,
43679,
1332,
62,
40148,
48213,
4303,
9863,
2751,
8005,
18930,
3698,
5258,
13315,
35374,
1398,
796,
1398,
13,
198,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
36529,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1255,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
21179,
13,
198,
220,
220,
220,
16876,
2643,
62,
10247,
12,
4906,
796,
705,
34,
4458,
198,
220,
220,
220,
220,
220,
1255,
796,
705,
9858,
30076,
36,
4458,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
20832,
43679,
1006,
62,
35836,
62,
37153,
3784,
1136,
62,
83,
482,
641,
7,
1267,
24413,
6369,
2643,
62,
10247,
12,
6738,
39319,
42865,
7,
30001,
62,
10247,
737,
198,
220,
220,
220,
1255,
796,
11241,
62,
10247,
12,
2536,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1429,
62,
14269,
3196,
13,
198,
220,
220,
220,
30301,
1503,
1332,
62,
8189,
13,
628,
220,
220,
220,
17579,
3185,
5161,
1006,
62,
35836,
62,
37153,
3784,
1136,
62,
14269,
3196,
7,
1267,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
26090,
43734,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*******************************************************************
* System-defined Include-files. *
*******************************************************************
INCLUDE LZGROUP_TESTTOP. " Global Data
INCLUDE LZGROUP_TESTUXX. " Function Modules
*******************************************************************
* User-defined Include-files (if necessary). *
*******************************************************************
* INCLUDE LZGROUP_TESTF... " Subroutines
* INCLUDE LZGROUP_TESTO... " PBO-Modules
* INCLUDE LZGROUP_TESTI... " PAI-Modules
* INCLUDE LZGROUP_TESTE... " Events
* INCLUDE LZGROUP_TESTP... " Local class implement.
* INCLUDE LZGROUP_TESTT99. " ABAP Unit tests | [
17174,
17174,
8162,
198,
9,
220,
220,
4482,
12,
23211,
40348,
12,
16624,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
17174,
17174,
8162,
198,
220,
3268,
5097,
52,
7206,
406,
57,
46846,
62,
51,
6465,
35222,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8060,
6060,
198,
220,
3268,
5097,
52,
7206,
406,
57,
46846,
62,
51,
6465,
52,
8051,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15553,
3401,
5028,
198,
198,
17174,
17174,
8162,
198,
9,
220,
220,
11787,
12,
23211,
40348,
12,
16624,
357,
361,
3306,
737,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
17174,
17174,
8162,
198,
9,
3268,
5097,
52,
7206,
406,
57,
46846,
62,
51,
6465,
37,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3834,
81,
448,
1127,
198,
9,
3268,
5097,
52,
7206,
406,
57,
46846,
62,
51,
6465,
46,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
350,
8202,
12,
5841,
5028,
198,
9,
3268,
5097,
52,
7206,
406,
57,
46846,
62,
51,
6465,
40,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8147,
40,
12,
5841,
5028,
198,
9,
3268,
5097,
52,
7206,
406,
57,
46846,
62,
51,
6465,
36,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
18715,
198,
9,
3268,
5097,
52,
7206,
406,
57,
46846,
62,
51,
6465,
47,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
10714,
1398,
3494,
13,
198,
9,
3268,
5097,
52,
7206,
406,
57,
46846,
62,
51,
6465,
51,
2079,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9564,
2969,
11801,
5254
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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ECTION.
TYPE-POOLS: abap.
METHODS
constructor.
METHODS
encode
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
RETURNING VALUE(result) TYPE string.
METHODS
decode
IMPORTING json_string TYPE clike
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE any.
METHODS
normalize_array_attribute
IMPORTING attribute_name TYPE csequence
json_string TYPE csequence
RETURNING VALUE(result) TYPE string.
PROTECTED SECTION.
METHODS insert_string_at
IMPORTING input_string TYPE csequence
element TYPE csequence
index TYPE i
RETURNING VALUE(result) TYPE string.
PRIVATE SECTION.
CONSTANTS c_boolean_types TYPE string VALUE '\TYPE-POOL=ABAP\TYPE=ABAP_BOOL#\TYPE=BOOLEAN#\TYPE=BOOLE_D#\TYPE=XFELD'.
CONSTANTS:
BEGIN OF json_element_type,
object TYPE char1 VALUE 'o',
array TYPE char1 VALUE 'r',
attribute TYPE char1 VALUE 'a',
special_value TYPE char1 VALUE 'b',
name TYPE char1 VALUE 'n',
END OF json_element_type.
TYPES:
BEGIN OF json_element,
type TYPE char1,
name TYPE string,
value TYPE string,
children TYPE REF TO data,
END OF json_element,
t_json_element TYPE STANDARD TABLE OF json_element WITH DEFAULT KEY.
DATA: patterns TYPE STANDARD TABLE OF REF TO cl_abap_regex,
number_utils TYPE REF TO zcl_number_utils.
METHODS
encode_value
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
encode_numeric
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
encode_time_to_iso
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
encode_date_sap_to_iso
IMPORTING value TYPE dats
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
encode_time_sap_to_iso
IMPORTING value TYPE tims
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
type_is_boolean
IMPORTING type TYPE REF TO cl_abap_typedescr
RETURNING VALUE(result) TYPE abap_bool.
METHODS
encode_abap_bool
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
encode_simple_value
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
run_conversion_exit_output
IMPORTING value TYPE any
type TYPE REF TO cl_abap_typedescr
CHANGING result TYPE string.
METHODS
encode_struct
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
encode_table
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
CHANGING result TYPE string.
METHODS
value_is_valid
IMPORTING value TYPE any
element_config TYPE REF TO zcl_json_element_config
RETURNING VALUE(result) TYPE abap_bool.
METHODS
transfer_values
IMPORTING json_element TYPE zcl_json_encoder_decoder=>json_element
element_config TYPE REF TO zcl_json_element_config
CHANGING value TYPE any.
METHODS
transfer_values_struct
IMPORTING json_element TYPE zcl_json_encoder_decoder=>json_element
element_config TYPE REF TO zcl_json_element_config
CHANGING value TYPE any.
METHODS
transfer_value_string
IMPORTING json_element TYPE zcl_json_encoder_decoder=>json_element
element_config TYPE REF TO zcl_json_element_config
CHANGING value TYPE any.
METHODS
transfer_values_table
IMPORTING json_element TYPE zcl_json_encoder_decoder=>json_element
element_config TYPE REF TO zcl_json_element_config
CHANGING value TYPE any.
METHODS
timestamp_iso_to_sap
IMPORTING timestamp TYPE string
RETURNING VALUE(result) TYPE timestamp.
METHODS
date_iso_to_sap
IMPORTING date_iso TYPE string
RETURNING VALUE(result) TYPE string.
METHODS
time_iso_to_sap
IMPORTING time_iso TYPE string
RETURNING VALUE(result) TYPE string.
METHODS
remove_special_characters
IMPORTING input TYPE clike
RETURNING VALUE(result) TYPE string.
ENDCLASS.
CLASS zcl_json_encoder_decoder IMPLEMENTATION.
METHOD constructor.
DATA: lo_regex TYPE REF TO cl_abap_regex.
CREATE OBJECT lo_regex
EXPORTING
pattern = 'get_(\w*)'
ignore_case = abap_true
* simple_regex = ABAP_FALSE
* no_submatches = ABAP_FALSE
.
APPEND lo_regex TO me->patterns.
CREATE OBJECT me->number_utils.
ENDMETHOD.
METHOD date_iso_to_sap.
DATA: year(4) TYPE n,
month(2) TYPE n,
day(2) TYPE n.
"// ISO-8601 allowed formats:
"// YYYY-MM-DD or YYYYMMDD or YYYY-MM
FIND REGEX '(\d{4})-?(\d{2})-?(\d{2})?' IN date_iso
SUBMATCHES year month day.
IF sy-subrc NE 0.
RETURN.
ENDIF.
IF day IS INITIAL.
day = 1.
ENDIF.
CONCATENATE year month day INTO result.
ENDMETHOD.
METHOD decode.
DATA: condensed_string TYPE string,
lw_decoded TYPE json_element.
condensed_string = json_string.
REPLACE ALL OCCURRENCES OF:
cl_abap_char_utilities=>newline IN condensed_string WITH '',
cl_abap_char_utilities=>cr_lf IN condensed_string WITH '',
cl_abap_char_utilities=>horizontal_tab IN condensed_string WITH '',
cl_abap_char_utilities=>form_feed IN condensed_string WITH '',
cl_abap_char_utilities=>vertical_tab IN condensed_string WITH '',
REGEX '((\s)("|\{|\[|:|\}|]|,))' IN condensed_string WITH '$3'.
CONDENSE condensed_string.
DATA: scanner TYPE REF TO scanner.
CREATE OBJECT scanner.
IF scanner->valid( condensed_string ) EQ abap_false.
RETURN.
ENDIF.
lw_decoded = scanner->get_json_element_tree( ).
transfer_values(
EXPORTING json_element = lw_decoded
element_config = element_config
CHANGING value = result
).
ENDMETHOD.
METHOD encode.
me->encode_value(
EXPORTING value = value
element_config = element_config
CHANGING result = result
).
ENDMETHOD.
METHOD encode_abap_bool.
DATA: boolean_value TYPE string.
IF value EQ abap_true.
boolean_value = 'true'.
ELSE.
boolean_value = 'false'.
ENDIF.
CONDENSE boolean_value.
CONCATENATE result boolean_value INTO result.
ENDMETHOD.
METHOD encode_date_sap_to_iso.
IF value_is_valid(
value = value
element_config = element_config ) EQ abap_false.
RETURN.
ENDIF.
IF value IS NOT INITIAL OR element_config->required EQ abap_true.
CONCATENATE '"' result value(4) '-' value+4(2) '-' value+6(2) '"' INTO result.
ENDIF.
ENDMETHOD.
METHOD encode_numeric.
DATA: formatted_value TYPE string.
IF value_is_valid(
value = value
element_config = element_config ) EQ abap_false.
RETURN.
ENDIF.
formatted_value = value.
TRANSLATE formatted_value USING '- + '.
CONDENSE formatted_value NO-GAPS.
IF value < 0.
CONCATENATE '-' formatted_value INTO formatted_value.
ENDIF.
IF formatted_value IS NOT INITIAL OR element_config->required EQ abap_true.
CONCATENATE result
formatted_value
INTO result.
ENDIF.
ENDMETHOD.
METHOD encode_simple_value.
DATA: lv_value TYPE string.
IF value_is_valid(
value = value
element_config = element_config ) EQ abap_false.
RETURN.
ENDIF.
lv_value = value.
IF element_config->use_conversion_exit EQ abap_true.
run_conversion_exit_output(
EXPORTING
value = value
type = element_config->type
CHANGING result = lv_value ).
ENDIF.
IF lv_value IS NOT INITIAL OR element_config->required EQ abap_true.
lv_value = cl_http_utility=>escape_javascript(
unescaped = lv_value
* inside_html = abap_false
).
REPLACE ALL OCCURRENCES OF REGEX '(\\'')' IN lv_value WITH ''''.
CONCATENATE result '"' lv_value '"' INTO result RESPECTING BLANKS.
ENDIF.
ENDMETHOD.
METHOD encode_struct.
DATA: struct TYPE REF TO cl_abap_structdescr,
json_value TYPE string,
next TYPE string,
field_config TYPE REF TO zcl_json_element_config.
FIELD-SYMBOLS: <component> LIKE LINE OF struct->components,
<field> TYPE any.
struct ?= element_config->type.
next = '{'.
LOOP AT struct->components ASSIGNING <component>.
ASSIGN COMPONENT <component>-name OF STRUCTURE value TO <field>.
IF sy-subrc NE 0.
CONTINUE.
ENDIF.
field_config = element_config->get_child_by_abap_name( <component>-name ).
encode_value(
EXPORTING
value = <field>
element_config = field_config
CHANGING
result = json_value ).
IF json_value IS NOT INITIAL.
CONCATENATE result next '"' field_config->ext_name '":' json_value INTO result RESPECTING BLANKS.
next = ','.
FREE: json_value.
ENDIF.
ENDLOOP.
IF next EQ '{'.
IF element_config->required EQ abap_true.
CONCATENATE result '{}' INTO result RESPECTING BLANKS.
ENDIF.
ELSE.
CONCATENATE result '}' INTO result RESPECTING BLANKS.
ENDIF.
ENDMETHOD.
METHOD encode_table.
DATA: table TYPE REF TO cl_abap_tabledescr,
lines_json TYPE TABLE OF string,
line TYPE string,
struct_config TYPE REF TO zcl_json_element_config.
FIELD-SYMBOLS: <table> TYPE ANY TABLE,
<line> TYPE any.
"// Encode all table lines
table ?= element_config->type.
ASSIGN value TO <table>.
struct_config = element_config->get_child_by_abap_name( abap_name = 'TLINE' ).
LOOP AT <table> ASSIGNING <line>.
encode_value(
EXPORTING
value = <line>
element_config = struct_config
CHANGING
result = line ).
IF line IS NOT INITIAL.
APPEND line TO lines_json.
ENDIF.
FREE: line.
ENDLOOP.
IF lines( lines_json ) > 0 OR element_config->required EQ abap_true.
CONCATENATE: result '[' INTO result,
LINES OF lines_json INTO line SEPARATED BY ',',
result line ']' INTO result RESPECTING BLANKS.
ENDIF.
ENDMETHOD.
METHOD encode_time_sap_to_iso.
IF value_is_valid(
value = value
element_config = element_config ) EQ abap_false.
RETURN.
ENDIF.
CONCATENATE result '"' value(2) ':' value+2(2) ':' value+4(2) '"' INTO result.
ENDMETHOD.
METHOD encode_time_to_iso.
DATA: BEGIN OF ts_split,
date TYPE datum,
time TYPE uzeit,
END OF ts_split,
tsc(14) TYPE n,
date_iso TYPE string,
time_iso TYPE string.
IF value_is_valid(
value = value
element_config = element_config ) EQ abap_false.
RETURN.
ENDIF.
ts_split = tsc = value.
encode_date_sap_to_iso(
EXPORTING
value = ts_split-date
element_config = element_config
CHANGING
result = date_iso
).
encode_time_sap_to_iso(
EXPORTING
value = ts_split-time
element_config = element_config
CHANGING
result = time_iso
).
REPLACE ALL OCCURRENCES OF '"' IN: date_iso WITH '',
time_iso WITH ''.
CONCATENATE '"' result date_iso 'T' time_iso '"' INTO result.
ENDMETHOD.
METHOD encode_value.
CASE element_config->type->type_kind.
WHEN cl_abap_typedescr=>typekind_struct1 OR
cl_abap_typedescr=>typekind_struct2.
encode_struct(
EXPORTING
value = value
element_config = element_config
CHANGING
result = result
).
WHEN cl_abap_typedescr=>typekind_table.
encode_table(
EXPORTING
value = value
element_config = element_config
CHANGING
result = result
).
WHEN cl_abap_typedescr=>typekind_date.
encode_date_sap_to_iso(
EXPORTING
value = value
element_config = element_config
CHANGING
result = result ).
WHEN cl_abap_typedescr=>typekind_time.
encode_time_sap_to_iso(
EXPORTING
value = value
element_config = element_config
CHANGING
result = result ).
WHEN OTHERS.
IF element_config->type->get_relative_name( ) EQ 'TIMESTAMP'.
encode_time_to_iso(
EXPORTING
value = value
element_config = element_config
CHANGING
result = result ).
ELSEIF type_is_boolean( element_config->type ) EQ abap_true.
encode_abap_bool(
EXPORTING
value = value
element_config = element_config
CHANGING
result = result ).
ELSEIF me->number_utils->is_numeric( value ) EQ abap_true.
encode_numeric(
EXPORTING
value = value
element_config = element_config
CHANGING
result = result ).
ELSE.
encode_simple_value(
EXPORTING
value = value
element_config = element_config
CHANGING
result = result ).
ENDIF.
ENDCASE.
ENDMETHOD.
METHOD insert_string_at.
DATA: prefix TYPE string,
suffix TYPE string.
result = input_string.
prefix = result+0(index).
suffix = result+index.
CONCATENATE prefix element suffix INTO result.
ENDMETHOD.
METHOD normalize_array_attribute.
DATA: open_objects TYPE match_result_tab,
close_objects TYPE match_result_tab,
search_result TYPE match_result_tab,
search_clause TYPE string,
bracket_position TYPE i,
nested_opens TYPE i,
close_bracket_index TYPE i.
FIELD-SYMBOLS: <search_info> TYPE match_result.
result = json_string.
FIND ALL OCCURRENCES OF REGEX:
'\{' IN json_string RESULTS open_objects,
'\}' IN json_string RESULTS close_objects.
IF lines( open_objects ) NE lines( close_objects ).
RETURN.
ENDIF.
CONCATENATE '("' attribute_name '":\{)' INTO search_clause.
FIND ALL OCCURRENCES OF REGEX search_clause IN result RESULTS search_result.
IF sy-subrc NE 0.
RETURN.
ENDIF.
"Posição na string onde começa o termo de busca + tamanho da busca
"Take the first result of regex result
READ TABLE search_result ASSIGNING <search_info> INDEX 1.
"Minus 1 of escape bracket character.
bracket_position = <search_info>-offset + <search_info>-length - 1.
"checar qual é a quantidade de chaves abertas até a posição do termo de busca
READ TABLE open_objects TRANSPORTING NO FIELDS WITH KEY offset = bracket_position.
nested_opens = lines( open_objects ) - sy-tabix.
"incluir o fechamento do array da mesma quantidade de chaves de fechamento do objeto
DELETE close_objects WHERE offset < bracket_position.
close_bracket_index = 1 + nested_opens.
READ TABLE close_objects ASSIGNING <search_info> INDEX close_bracket_index.
close_bracket_index = <search_info>-offset + 1.
result = insert_string_at( input_string = result
element = ']'
index = close_bracket_index ).
result = insert_string_at( input_string = result
element = '['
index = bracket_position ).
ENDMETHOD.
METHOD remove_special_characters.
DATA: input_string TYPE fist-searchw,
output_string TYPE fist-searchw,
specharsear(50) VALUE ''' < > ! " & / = ? : ; , . - ( ) # # % ^ $ | ~ @ '.
input_string = input.
TRANSLATE input_string USING specharsear.
CONDENSE input_string NO-GAPS.
output_string = input_string.
"WD = WORD.
SET EXTENDED CHECK OFF.
WHILE output_string CA 'ÄÖÜß'.
REPLACE 'Ä' WITH 'AE' INTO output_string.
REPLACE 'Ö' WITH 'OE' INTO output_string.
REPLACE 'Ü' WITH 'UE' INTO output_string.
REPLACE 'ß' WITH 'SS' INTO output_string.
ENDWHILE.
SET EXTENDED CHECK ON.
result = output_string.
ENDMETHOD.
METHOD run_conversion_exit_output.
DATA: ddic_objects TYPE dd_x031l_table,
function_name TYPE string,
cstr_value TYPE c LENGTH 255.
FIELD-SYMBOLS: <ddic> LIKE LINE OF ddic_objects.
"// Call conversion exit function
type->get_ddic_object(
RECEIVING p_object = ddic_objects
EXCEPTIONS OTHERS = 8
).
IF sy-subrc NE 0 OR lines( ddic_objects ) EQ 0.
result = value.
RETURN.
ENDIF.
READ TABLE ddic_objects INDEX 1 ASSIGNING <ddic>.
IF sy-subrc NE 0 AND <ddic>-convexit IS INITIAL.
result = value.
RETURN.
ENDIF.
cstr_value = value.
CONCATENATE 'CONVERSION_EXIT_' <ddic>-convexit '_OUTPUT'
INTO function_name.
TRY.
CALL FUNCTION function_name
EXPORTING
input = cstr_value
IMPORTING
output = result
EXCEPTIONS
OTHERS = 8.
CATCH cx_root.
ENDTRY.
ENDMETHOD.
METHOD timestamp_iso_to_sap.
DATA: date_iso TYPE string,
time_iso TYPE string,
tsc(14) TYPE c.
SPLIT timestamp AT 'T' INTO date_iso time_iso.
CHECK sy-subrc = 0.
tsc(8) = date_iso_to_sap( date_iso ).
tsc+8(6) = time_iso_to_sap( time_iso ).
result = tsc.
ENDMETHOD.
METHOD time_iso_to_sap.
DATA: hour(2) TYPE n,
min(2) TYPE n,
sec(2) TYPE n.
"// ISO-8601 allowed formats:
"// hh:mm:ss or hh:mm or hhmmss or hhmm or hh
FIND REGEX '(\d{2}):?(\d{2})?:?(\d{2})?' IN time_iso
SUBMATCHES hour min sec.
CONCATENATE hour min sec INTO result.
ENDMETHOD.
METHOD transfer_values.
CASE element_config->type->kind.
WHEN cl_abap_typedescr=>kind_elem.
transfer_value_string(
EXPORTING
json_element = json_element
element_config = element_config
CHANGING
value = value
).
WHEN cl_abap_typedescr=>kind_struct.
transfer_values_struct(
EXPORTING
json_element = json_element
element_config = element_config
CHANGING value = value
).
WHEN cl_abap_typedescr=>kind_table.
transfer_values_table(
EXPORTING
json_element = json_element
element_config = element_config
CHANGING value = value
).
ENDCASE.
ENDMETHOD.
METHOD transfer_values_struct.
DATA: lv_json_name TYPE string,
item_config TYPE REF TO zcl_json_element_config.
FIELD-SYMBOLS: <children> TYPE t_json_element,
<child> TYPE json_element,
<field> TYPE any.
ASSIGN json_element-children->* TO <children>.
READ TABLE <children> ASSIGNING <child> INDEX 1.
IF sy-subrc EQ 0 AND <child>-type = json_element_type-object.
ASSIGN <child>-children->* TO <children>.
ENDIF.
LOOP AT <children> ASSIGNING <child>.
lv_json_name = remove_special_characters( <child>-name ).
item_config = element_config->get_child_by_external_name( lv_json_name ).
IF item_config IS NOT BOUND.
CONTINUE.
ENDIF.
ASSIGN COMPONENT item_config->abap_name OF STRUCTURE value TO <field>.
IF sy-subrc NE 0.
CONTINUE.
ENDIF.
transfer_values(
EXPORTING
json_element = <child>
element_config = item_config
CHANGING
value = <field>
).
ENDLOOP.
ENDMETHOD.
METHOD transfer_values_table.
DATA: table_type TYPE REF TO cl_abap_tabledescr,
struct_type TYPE REF TO cl_abap_typedescr,
type_name TYPE string,
struct_config TYPE REF TO zcl_json_element_config,
new_line_data TYPE REF TO data,
is_ddic_type TYPE abap_bool.
FIELD-SYMBOLS: <children> TYPE t_json_element,
<child> TYPE json_element,
<struct> TYPE any,
<itab> TYPE table.
ASSIGN value TO <itab>.
table_type ?= element_config->type.
struct_type ?= table_type->get_table_line_type( ).
ASSIGN json_element-children->* TO <children>.
READ TABLE <children> ASSIGNING <child> INDEX 1.
IF sy-subrc EQ 0 AND <child>-type = json_element_type-array.
ASSIGN <child>-children->* TO <children>.
ENDIF.
struct_config = element_config->get_child_by_abap_name( 'TLINE' ).
LOOP AT <children> ASSIGNING <child>.
TRY.
CASE struct_type->kind.
WHEN struct_type->kind_struct OR struct_type->kind_elem.
is_ddic_type = struct_type->is_ddic_type( ).
IF is_ddic_type = abap_true.
type_name = struct_type->get_relative_name( ).
ELSE.
type_name = struct_type->absolute_name.
ENDIF.
ASSIGN new_line_data->* TO <struct>.
CREATE DATA new_line_data TYPE (type_name).
ASSIGN new_line_data->* TO <struct>.
ENDCASE.
CATCH cx_root.
CONTINUE.
ENDTRY.
transfer_values(
EXPORTING
json_element = <child>
element_config = struct_config
CHANGING
value = <struct>
).
APPEND <struct> TO <itab>.
CLEAR: new_line_data.
ENDLOOP.
ENDMETHOD.
METHOD transfer_value_string.
IF element_config->type->get_relative_name( ) EQ 'TIMESTAMP'.
value = timestamp_iso_to_sap( json_element-value ).
RETURN.
ENDIF.
CASE element_config->type->type_kind.
WHEN cl_abap_typedescr=>typekind_date.
value = date_iso_to_sap( json_element-value ).
WHEN cl_abap_typedescr=>typekind_time.
value = time_iso_to_sap( json_element-value ).
WHEN OTHERS.
CASE json_element-type.
WHEN json_element_type-special_value.
CASE json_element-value.
WHEN 'false'.
value = abap_false.
WHEN 'true'.
value = abap_true.
WHEN 'null'.
CLEAR: value.
ENDCASE.
WHEN OTHERS.
value = json_element-value.
ENDCASE.
ENDCASE.
ENDMETHOD.
METHOD type_is_boolean.
DATA: element_type TYPE REF TO cl_abap_elemdescr.
IF type->kind NE cl_abap_typedescr=>kind_elem.
RETURN.
ENDIF.
element_type ?= type.
IF element_type->type_kind NE cl_abap_typedescr=>typekind_char OR
element_type->output_length NE 1.
result = abap_false.
RETURN.
ENDIF.
IF c_boolean_types CS element_type->absolute_name.
result = abap_true.
ENDIF.
ENDMETHOD.
METHOD value_is_valid.
IF value IS INITIAL AND element_config->required EQ abap_false.
RETURN.
ENDIF.
result = abap_true.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
17752,
62,
12685,
12342,
62,
12501,
12342,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
41876,
12,
16402,
3535,
50,
25,
450,
499,
13,
628,
220,
220,
220,
337,
36252,
50,
198,
220,
220,
220,
220,
220,
23772,
13,
628,
220,
220,
220,
337,
36252,
50,
198,
220,
220,
220,
220,
220,
37773,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1988,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5002,
62,
11250,
41876,
4526,
37,
5390,
1976,
565,
62,
17752,
62,
30854,
62,
11250,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
220,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
198,
220,
220,
220,
220,
220,
36899,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33918,
62,
8841,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5002,
62,
11250,
41876,
4526,
37,
5390,
1976,
565,
62,
17752,
62,
30854,
62,
11250,
198,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
1255,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
13,
628,
220,
220,
220,
337,
36252,
50,
198,
220,
220,
220,
220,
220,
3487,
1096,
62,
18747,
62,
42348,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
11688,
62,
3672,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33918,
62,
8841,
220,
220,
220,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
220,
41876,
4731,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
7550,
62,
8841,
62,
265,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
5128,
62,
8841,
220,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5002,
220,
220,
220,
220,
220,
220,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4731,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
2127,
21052,
62,
19199,
41876,
4731,
26173,
8924,
705,
59,
25216,
12,
16402,
3535,
28,
6242,
2969,
59,
25216,
28,
6242,
2969,
62,
8202,
3535,
2,
59,
25216,
28,
33,
6684,
2538,
1565,
2,
59,
25216,
28,
33,
6684,
2538,
62,
35,
2,
59,
25216,
28,
55,
37,
24639,
4458,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
33918,
62,
30854,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2134,
220,
220,
220,
220,
220,
220,
220,
41876,
1149,
16,
26173,
8924,
705,
78,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
7177,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1149,
16,
26173,
8924,
705,
81,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
11688,
220,
220,
220,
220,
41876,
1149,
16,
26173,
8924,
705,
64,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2041,
62,
8367,
41876,
1149,
16,
26173,
8924,
705,
65,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1149,
16,
26173,
8924,
705,
77,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
33918,
62,
30854,
62,
4906,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
33918,
62,
30854,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
41876,
1149,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1751,
41876,
4526,
37,
5390,
1366,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
33918,
62,
30854,
11,
628,
220,
220,
220,
220,
220,
256,
62,
17752,
62,
30854,
41876,
49053,
9795,
43679,
3963,
33918,
62,
30854,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
42865,
25,
7572,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
537,
62,
397,
499,
62,
260,
25636,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1271,
62,
26791,
41876,
4526,
37,
5390,
1976,
565,
62,
17618,
62,
26791,
13,
628,
220,
220,
220,
337,
36252,
50,
198,
220,
220,
220,
220,
220,
37773,
62,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1988,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5002,
62,
11250,
41876,
4526,
37,
5390,
1976,
565,
62,
17752,
62,
30854,
62,
11250,
198,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
1255,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
198,
220,
220,
220,
220,
220,
37773,
62,
77,
39223,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1988,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5002,
62,
11250,
41876,
4526,
37,
5390,
1976,
565,
62,
17752,
62,
30854,
62,
11250,
198,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
1255,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
198,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE zif_abapgit_ajson
PUBLIC.
CONSTANTS version TYPE string VALUE 'v1.1.0'. "#EC NOTEXT
CONSTANTS origin TYPE string VALUE 'https://github.com/sbcgua/ajson'. "#EC NOTEXT
CONSTANTS license TYPE string VALUE 'MIT'. "#EC NOTEXT
CONSTANTS:
BEGIN OF node_type,
boolean TYPE string VALUE 'bool',
string TYPE string VALUE 'str',
number TYPE string VALUE 'num',
null TYPE string VALUE 'null',
array TYPE string VALUE 'array',
object TYPE string VALUE 'object',
END OF node_type.
TYPES:
BEGIN OF ty_node,
path TYPE string,
name TYPE string,
type TYPE string,
value TYPE string,
index TYPE i,
order TYPE i,
children TYPE i,
END OF ty_node .
TYPES:
ty_nodes_tt TYPE STANDARD TABLE OF ty_node WITH KEY path name .
TYPES:
ty_nodes_ts TYPE SORTED TABLE OF ty_node
WITH UNIQUE KEY path name
WITH NON-UNIQUE SORTED KEY array_index COMPONENTS path index
WITH NON-UNIQUE SORTED KEY item_order COMPONENTS path order .
TYPES:
BEGIN OF ty_path_name,
path TYPE string,
name TYPE string,
END OF ty_path_name.
" DATA
DATA mt_json_tree TYPE ty_nodes_ts READ-ONLY.
" METHODS
METHODS freeze.
METHODS keep_item_order
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson.
" METHODS ex.reader
METHODS exists
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_exists) TYPE abap_bool.
METHODS members
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rt_members) TYPE string_table.
METHODS get
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_value) TYPE string.
METHODS get_node_type
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_node_type) TYPE string.
METHODS get_boolean
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_value) TYPE abap_bool.
METHODS get_integer
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_value) TYPE i.
METHODS get_number
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_value) TYPE f.
METHODS get_date
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_value) TYPE d.
METHODS get_timestamp
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_value) TYPE timestamp.
METHODS get_string
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rv_value) TYPE string.
METHODS slice
IMPORTING
iv_path TYPE string
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson.
METHODS to_abap
EXPORTING
ev_container TYPE any
RAISING
zcx_abapgit_ajson_error.
METHODS array_to_string_table
IMPORTING
iv_path TYPE string
RETURNING
VALUE(rt_string_table) TYPE string_table
RAISING
zcx_abapgit_ajson_error.
" METHODS ex.writer
METHODS clear
RAISING
zcx_abapgit_ajson_error.
METHODS set
IMPORTING
iv_path TYPE string
iv_val TYPE any
iv_ignore_empty TYPE abap_bool DEFAULT abap_true
iv_node_type TYPE string OPTIONAL
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS set_boolean
IMPORTING
iv_path TYPE string
iv_val TYPE any
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS set_string
IMPORTING
iv_path TYPE string
iv_val TYPE clike
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS set_integer
IMPORTING
iv_path TYPE string
iv_val TYPE i
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS set_date
IMPORTING
iv_path TYPE string
iv_val TYPE d
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS set_timestamp
IMPORTING
iv_path TYPE string
iv_val TYPE timestamp
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS set_null
IMPORTING
iv_path TYPE string
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS delete
IMPORTING
iv_path TYPE string
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS touch_array
IMPORTING
iv_path TYPE string
iv_clear TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS push
IMPORTING
iv_path TYPE string
iv_val TYPE any
RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING
zcx_abapgit_ajson_error.
METHODS stringify
IMPORTING
iv_indent TYPE i DEFAULT 0
RETURNING
VALUE(rv_json) TYPE string
RAISING
zcx_abapgit_ajson_error.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
198,
220,
44731,
13,
628,
220,
7102,
2257,
1565,
4694,
2196,
41876,
4731,
26173,
8924,
705,
85,
16,
13,
16,
13,
15,
4458,
25113,
2943,
5626,
13918,
198,
220,
7102,
2257,
1565,
4694,
8159,
41876,
4731,
26173,
8924,
705,
5450,
1378,
12567,
13,
785,
14,
82,
15630,
5162,
64,
14,
1228,
1559,
4458,
25113,
2943,
5626,
13918,
198,
220,
7102,
2257,
1565,
4694,
5964,
41876,
4731,
26173,
8924,
705,
36393,
4458,
25113,
2943,
5626,
13918,
628,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
347,
43312,
3963,
10139,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
25131,
41876,
4731,
26173,
8924,
705,
30388,
3256,
198,
220,
220,
220,
220,
220,
4731,
220,
41876,
4731,
26173,
8924,
705,
2536,
3256,
198,
220,
220,
220,
220,
220,
1271,
220,
41876,
4731,
26173,
8924,
705,
22510,
3256,
198,
220,
220,
220,
220,
220,
9242,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
8423,
3256,
198,
220,
220,
220,
220,
220,
7177,
220,
220,
41876,
4731,
26173,
8924,
705,
18747,
3256,
198,
220,
220,
220,
220,
220,
2134,
220,
41876,
4731,
26173,
8924,
705,
15252,
3256,
198,
220,
220,
220,
23578,
3963,
10139,
62,
4906,
13,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
17440,
11,
198,
220,
220,
220,
220,
220,
3108,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
1438,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2099,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
1988,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
6376,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
1502,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
1751,
41876,
1312,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
17440,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
77,
4147,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
17440,
13315,
35374,
3108,
1438,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
77,
4147,
62,
912,
41876,
311,
9863,
1961,
43679,
3963,
1259,
62,
17440,
198,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
35374,
3108,
1438,
198,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
311,
9863,
1961,
35374,
7177,
62,
9630,
24301,
1340,
15365,
3108,
6376,
198,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
311,
9863,
1961,
35374,
2378,
62,
2875,
24301,
1340,
15365,
3108,
1502,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
6978,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
3108,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
1438,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
6978,
62,
3672,
13,
628,
220,
366,
42865,
628,
220,
42865,
45079,
62,
17752,
62,
21048,
41876,
1259,
62,
77,
4147,
62,
912,
20832,
12,
1340,
11319,
13,
628,
220,
366,
337,
36252,
50,
628,
220,
337,
36252,
50,
16611,
13,
198,
220,
337,
36252,
50,
1394,
62,
9186,
62,
2875,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
17752,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
1228,
1559,
13,
628,
220,
366,
337,
36252,
50,
409,
13,
46862,
628,
220,
337,
36252,
50,
7160,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
1069,
1023,
8,
41876,
450,
499,
62,
30388,
13,
628,
220,
337,
36252,
50,
1866,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
30814,
8,
41876,
4731,
62,
11487,
13,
628,
220,
337,
36252,
50,
651,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8367,
8,
41876,
4731,
13,
628,
220,
337,
36252,
50,
651,
62,
17440,
62,
4906,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
17440,
62,
4906,
8,
41876,
4731,
13,
628,
220,
337,
36252,
50,
651,
62,
2127,
21052,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8367,
8,
41876,
450,
499,
62,
30388,
13,
628,
220,
337,
36252,
50,
651,
62,
41433,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8367,
8,
41876,
1312,
13,
628,
220,
337,
36252,
50,
651,
62,
17618,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8367,
8,
41876,
277,
13,
628,
220,
337,
36252,
50,
651,
62,
4475,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8367,
8,
41876,
288,
13,
628,
220,
337,
36252,
50,
651,
62,
16514,
27823,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
6978,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8367,
8,
41876,
41033,
13,
628,
220,
337,
36252,
50,
651
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
CLASS ltcl_toboggan DEFINITION DEFERRED.
CLASS ztoboggan DEFINITION LOCAL FRIENDS ltcl_toboggan.
CLASS ltcl_toboggan DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA: toboggan TYPE REF TO ztoboggan.
METHODS:
count_trees_7 FOR TESTING RAISING cx_static_check,
build_map FOR TESTING RAISING cx_static_check,
traverse_map FOR TESTING RAISING cx_static_check,
get_map FOR TESTING RAISING cx_static_check,
build_1line_map FOR TESTING RAISING cx_static_check,
build_small_map FOR TESTING RAISING cx_static_check,
grow_map FOR TESTING RAISING cx_static_check,
riddle_part1 FOR TESTING RAISING cx_static_check,
check_slopes FOR TESTING RAISING cx_static_check,
riddle_part2 FOR TESTING RAISING cx_static_check,
down_3 FOR TESTING RAISING cx_static_check,
setup.
ENDCLASS.
CLASS ltcl_toboggan IMPLEMENTATION.
METHOD riddle_part1.
toboggan->set_map( toboggan->get_riddle_input( ) ).
toboggan->set_slope( VALUE #( ( course = ztoboggan=>down length = 1 )
( course = ztoboggan=>right length = 3 ) ) ).
toboggan->traverse( ).
DATA(trees) = toboggan->count_trees( |X| ).
cl_abap_unit_assert=>assert_equals( msg = 'solution' exp = 153 act = trees ).
ENDMETHOD.
METHOD count_trees_7.
DATA: encountered_trees TYPE i.
DATA(map) =
|..##.......\n| &&
|#...#...#..\n| &&
|.#....#..#.\n| &&
|..#.#...#.#\n| &&
|.#...##..#.\n| &&
|..#.##.....\n| &&
|.#.#.#....#\n| &&
|.#........#\n| &&
|#.##...#...\n| &&
|#...##....#\n| &&
|.#..#...#.#|.
toboggan->set_map( map ).
DATA(slope) = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 3 )
( course = ztoboggan=>down length = 1 ) ).
toboggan->set_slope( slope ).
toboggan->traverse( ).
encountered_trees = toboggan->count_trees( |X| ).
cl_abap_unit_assert=>assert_equals( msg = 'encountered trees: 7' exp = 7 act = encountered_trees ).
ENDMETHOD.
METHOD down_3.
DATA(map) =
|..##.......\n| &&
|#...#...#..\n| &&
|.#....#..#.\n| &&
|..#.#...#.#\n| &&
|.#...##..#.\n| &&
|..#.##.....\n| &&
|.#.#.#....#\n| &&
|.#........#\n| &&
|#.##...#...\n| &&
|#...##....#\n| &&
|.#..#...#.#|.
DATA(slope) = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 1 )
( course = ztoboggan=>down length = 2 ) ).
DATA(trees) = toboggan->traverse_slope( map = map slope = slope ).
cl_abap_unit_assert=>assert_equals( exp = 2 act = trees ).
ENDMETHOD.
METHOD check_slopes.
DATA(trees) = 1.
DATA(map) =
|..##.......\n| &&
|#...#...#..\n| &&
|.#....#..#.\n| &&
|..#.#...#.#\n| &&
|.#...##..#.\n| &&
|..#.##.....\n| &&
|.#.#.#....#\n| &&
|.#........#\n| &&
|#.##...#...\n| &&
|#...##....#\n| &&
|.#..#...#.#|.
DATA(slope) = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 1 )
( course = ztoboggan=>down length = 1 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
slope = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 3 )
( course = ztoboggan=>down length = 1 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
slope = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 5 )
( course = ztoboggan=>down length = 1 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
slope = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 7 )
( course = ztoboggan=>down length = 1 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
slope = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 1 )
( course = ztoboggan=>down length = 2 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
cl_abap_unit_assert=>assert_equals( msg = '2x7x3x4x2 = 336' exp = 336 act = trees ).
ENDMETHOD.
METHOD riddle_part2.
DATA(trees) = CONV int8( 1 ).
DATA(map) = toboggan->get_riddle_input( ).
DATA(slope) = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 1 )
( course = ztoboggan=>down length = 1 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
slope = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 3 )
( course = ztoboggan=>down length = 1 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
slope = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 5 )
( course = ztoboggan=>down length = 1 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
slope = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 7 )
( course = ztoboggan=>down length = 1 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
slope = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 1 )
( course = ztoboggan=>down length = 2 ) ).
trees *= toboggan->traverse_slope( map = map slope = slope ).
cl_abap_unit_assert=>assert_equals( msg = 'trees = ?' exp = 2421944712 act = trees ).
ENDMETHOD.
METHOD traverse_map.
"arrange
DATA(map) =
|..##.......\n| &&
|#...#...#..\n| &&
|.#....#..#.\n| &&
|..#.#...#.#|.
toboggan->set_map( map ).
DATA(slope) = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 3 )
( course = ztoboggan=>down length = 1 ) ).
toboggan->set_slope( slope ).
"act
toboggan->traverse( ).
DATA(actual_map) = toboggan->get_map( ).
"assert
DATA(expected_map) =
|..##.........##.......\n| &&
|#..O#...#..#...#...#..\n| &&
|.#....X..#..#....#..#.\n| &&
|..#.#...#O#..#.#...#.#|.
cl_abap_unit_assert=>assert_equals( msg = 'maps are equal' exp = expected_map act = actual_map ).
ENDMETHOD.
METHOD build_map.
DATA(map) =
|..##.......\n| &&
|#...#...#..|.
toboggan->set_map( map ).
cl_abap_unit_assert=>assert_equals( msg = '2 lines' exp = 2 act = lines( toboggan->map ) ).
cl_abap_unit_assert=>assert_equals( msg = '11 lines in row 1' exp = 11 act = lines( toboggan->map[ 1 ] ) ).
DATA(field) = toboggan->map[ 1 ][ 3 ].
cl_abap_unit_assert=>assert_equals( msg = 'tree at 1,3' exp = '#' act = field ).
DATA(field3) = toboggan->map[ 2 ][ 3 ].
cl_abap_unit_assert=>assert_equals( msg = 'tree at 2,3' exp = '.' act = field3 ).
DATA(field11) = toboggan->map[ 1 ][ 1 ].
cl_abap_unit_assert=>assert_equals( msg = 'tree at 1,1' exp = '.' act = field11 ).
DATA(field2) = toboggan->map[ 2 ][ 1 ].
cl_abap_unit_assert=>assert_equals( msg = 'tree at 2,1' exp = '#' act = field2 ).
ENDMETHOD.
METHOD build_1line_map.
DATA(map) = |.#|.
toboggan->set_map( map ).
DATA(exp_map) = VALUE ztoboggan=>ty_map(
( VALUE #( ( |.| ) ( |#| ) ) ) ).
cl_abap_unit_assert=>assert_equals( msg = 'maps' exp = exp_map act = toboggan->map ).
ENDMETHOD.
METHOD grow_map.
"arrange
DATA(map) =
|.#.\n| &&
|..#\n| &&
|#..|.
toboggan->set_map( map ).
DATA(slope) = VALUE ztoboggan=>ty_slope( ( course = ztoboggan=>right length = 3 )
( course = ztoboggan=>down length = 1 ) ).
toboggan->set_slope( slope ).
"act
toboggan->traverse( ).
DATA(traversed_map) = toboggan->get_map( ).
"assert
DATA(expected_map) =
|.#..#..#.\n| &&
|..#O.#..#\n| &&
|#..#..X..|.
cl_abap_unit_assert=>assert_equals( msg = 'maps growing' exp = expected_map act = traversed_map ).
ENDMETHOD.
METHOD build_small_map.
DATA(map) =
|.\n| &&
|#|.
toboggan->set_map( map ).
DATA(exp_map) = VALUE ztoboggan=>ty_map(
( VALUE string_table( ( |.| ) ) )
( VALUE string_table( ( |#| ) ) ) ).
cl_abap_unit_assert=>assert_equals( msg = 'maps' exp = exp_map act = toboggan->map ).
DATA(field) = toboggan->map[ 2 ][ 1 ].
cl_abap_unit_assert=>assert_equals( msg = 'tree at 1,3' exp = '#' act = field ).
ENDMETHOD.
METHOD get_map.
"arrange
DATA(map) =
|..##.......\n| &&
|#...#...#..|."
toboggan->set_map( map ).
"act
DATA(actual_map) = toboggan->get_map( ).
"assert
cl_abap_unit_assert=>assert_equals( msg = 'maps' exp = map act = actual_map ).
ENDMETHOD.
METHOD setup.
toboggan = NEW ztoboggan( ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
83,
672,
519,
1030,
5550,
20032,
17941,
23449,
1137,
22083,
13,
198,
31631,
1976,
83,
672,
519,
1030,
5550,
20032,
17941,
37347,
1847,
48167,
1677,
5258,
300,
83,
565,
62,
83,
672,
519,
1030,
13,
198,
31631,
300,
83,
565,
62,
83,
672,
519,
1030,
5550,
20032,
17941,
25261,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
10773,
519,
1030,
41876,
4526,
37,
5390,
1976,
83,
672,
519,
1030,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
954,
62,
83,
6037,
62,
22,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1382,
62,
8899,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
38138,
62,
8899,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
651,
62,
8899,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1382,
62,
16,
1370,
62,
8899,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1382,
62,
17470,
62,
8899,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1663,
62,
8899,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
374,
2509,
62,
3911,
16,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
2198,
62,
6649,
13920,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
374,
2509,
62,
3911,
17,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
866,
62,
18,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
9058,
13,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
83,
672,
519,
1030,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
374,
2509,
62,
3911,
16,
13,
198,
220,
220,
220,
10773,
519,
1030,
3784,
2617,
62,
8899,
7,
10773,
519,
1030,
3784,
1136,
62,
81,
2509,
62,
15414,
7,
1267,
6739,
198,
220,
220,
220,
10773,
519,
1030,
3784,
2617,
62,
6649,
3008,
7,
26173,
8924,
1303,
7,
357,
1781,
796,
1976,
83,
672,
519,
1030,
14804,
2902,
4129,
796,
352,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
1781,
796,
1976,
83,
672,
519,
1030,
14804,
3506,
4129,
796,
513,
1267,
1267,
6739,
628,
220,
220,
220,
10773,
519,
1030,
3784,
9535,
4399,
7,
6739,
198,
220,
220,
220,
42865,
7,
83,
6037,
8,
796,
10773,
519,
1030,
3784,
9127,
62,
83,
6037,
7,
930,
55,
91,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
31456,
796,
705,
82,
2122,
6,
1033,
796,
24652,
719,
796,
7150,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
954,
62,
83,
6037,
62,
22,
13,
198,
220,
220,
220,
42865,
25,
12956,
62,
83,
6037,
41876,
1312,
13,
198,
220,
220,
220,
42865,
7,
8899,
8,
796,
198,
220,
220,
220,
220,
220,
930,
492,
2235,
25780,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
2,
986,
2,
986,
2,
492,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
32535,
1106,
2,
492,
2,
13,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
492,
2,
32535,
986,
2,
32535,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
32535,
986,
2235,
492,
2,
13,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
492,
2,
13,
2235,
12359,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
32535,
32535,
32535,
1106,
2,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
32535,
2109,
2,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
2,
13,
2235,
986,
2,
986,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
2,
986,
2235,
1106,
2,
59,
77,
91,
11405,
198,
220,
220,
220,
220,
220,
930,
32535,
492,
2,
986,
2,
32535,
91,
13,
198,
220,
220,
220,
10773,
519,
1030,
3784,
2617,
62,
8899,
7,
3975,
6739,
198,
220,
220,
220,
42865,
7,
6649,
3008,
8,
796,
26173,
8924,
1976,
83,
672,
519,
1030,
14804,
774,
62,
6649,
3008,
7,
357,
1781,
796,
1976,
83,
672,
519,
1030,
14804,
3506,
4129,
796,
513,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
1781,
796,
1976,
83,
672,
519,
1030,
14804,
2902,
220,
4129,
796,
352,
1267,
6739,
198,
220,
220,
220,
10773,
519,
1030,
3784,
2617,
62,
6649,
3008,
7,
22638,
6739,
198,
220,
220,
220,
10773,
519,
1030,
3784,
9535,
4399,
7,
6739,
628,
220,
220,
220,
12956,
62,
83,
6037,
796,
10773,
519,
1030,
3784,
9127,
62,
83,
6037,
7,
930,
55,
91,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
31456,
796,
705,
268,
9127,
1068,
7150,
25,
767,
6,
1033,
796,
767,
719,
796,
12956,
62,
83,
6037,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
866,
62,
18,
13,
198,
220,
220,
220,
42865,
7,
8899,
8,
796,
198,
220,
220,
220,
220,
220,
930,
492,
2235,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCX_4_MONSTER_EXCEPTIONS_LOP definition
public
inheriting from CX_STATIC_CHECK
create public .
public section.
constants ZCX_4_MONSTER_EXCEPTIONS_LOP type SOTR_CONC value '005056B074C91EDB9F9722AF3CDB812A' ##NO_TEXT.
constants HEAD_ERROR type SOTR_CONC value '005056B074C91ED89FC184F2C45A410F' ##NO_TEXT.
constants LEGS_ERROR type SOTR_CONC value '005056B074C91ED89FC184F2C45A610F' ##NO_TEXT.
data SCARINESS type STRING .
data HEADS type INT4 .
data ARMS type INT4 .
data LEGS type INT4 .
data BOLTS type INT4 .
methods CONSTRUCTOR
importing
!TEXTID like TEXTID optional
!PREVIOUS like PREVIOUS optional
!SCARINESS type STRING optional
!HEADS type INT4 optional
!ARMS type INT4 optional
!LEGS type INT4 optional
!BOLTS type INT4 optional .
protected section.
private section.
ENDCLASS.
CLASS ZCX_4_MONSTER_EXCEPTIONS_LOP IMPLEMENTATION.
method CONSTRUCTOR.
CALL METHOD SUPER->CONSTRUCTOR
EXPORTING
TEXTID = TEXTID
PREVIOUS = PREVIOUS
.
IF textid IS INITIAL.
me->textid = ZCX_4_MONSTER_EXCEPTIONS_LOP .
ENDIF.
me->SCARINESS = SCARINESS .
me->HEADS = HEADS .
me->ARMS = ARMS .
me->LEGS = LEGS .
me->BOLTS = BOLTS .
endmethod.
ENDCLASS.
| [
4871,
1168,
34,
55,
62,
19,
62,
27857,
41809,
62,
6369,
42006,
11053,
62,
43,
3185,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
327,
55,
62,
35744,
2149,
62,
50084,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
38491,
1168,
34,
55,
62,
19,
62,
27857,
41809,
62,
6369,
42006,
11053,
62,
43,
3185,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
405,
1120,
3980,
33,
2998,
19,
34,
6420,
1961,
33,
24,
37,
5607,
1828,
8579,
18,
8610,
33,
23,
1065,
32,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
39837,
62,
24908,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
405,
1120,
3980,
33,
2998,
19,
34,
6420,
1961,
4531,
4851,
22883,
37,
17,
34,
2231,
32,
33289,
37,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
20978,
50,
62,
24908,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
405,
1120,
3980,
33,
2998,
19,
34,
6420,
1961,
4531,
4851,
22883,
37,
17,
34,
2231,
32,
39132,
37,
6,
22492,
15285,
62,
32541,
13,
198,
220,
1366,
6374,
1503,
44180,
2099,
19269,
2751,
764,
198,
220,
1366,
39837,
50,
2099,
17828,
19,
764,
198,
220,
1366,
5923,
5653,
2099,
17828,
19,
764,
198,
220,
1366,
20978,
50,
2099,
17828,
19,
764,
198,
220,
1366,
347,
3535,
4694,
2099,
17828,
19,
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,
6173,
1503,
44180,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
37682,
50,
2099,
17828,
19,
11902,
198,
220,
220,
220,
220,
220,
5145,
1503,
5653,
2099,
17828,
19,
11902,
198,
220,
220,
220,
220,
220,
5145,
2538,
14313,
2099,
17828,
19,
11902,
198,
220,
220,
220,
220,
220,
5145,
33,
3535,
4694,
2099,
17828,
19,
11902,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
34,
55,
62,
19,
62,
27857,
41809,
62,
6369,
42006,
11053,
62,
43,
3185,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
7102,
46126,
1581,
13,
198,
34,
7036,
337,
36252,
33088,
3784,
10943,
46126,
1581,
198,
6369,
15490,
2751,
198,
32541,
2389,
796,
40383,
2389,
198,
46437,
12861,
20958,
796,
22814,
12861,
20958,
198,
13,
198,
16876,
2420,
312,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
502,
3784,
5239,
312,
796,
1168,
34,
55,
62,
19,
62,
27857,
41809,
62,
6369,
42006,
11053,
62,
43,
3185,
764,
198,
23578,
5064,
13,
198,
1326,
3784,
6173,
1503,
44180,
796,
6374,
1503,
44180,
764,
198,
1326,
3784,
37682,
50,
796,
39837,
50,
764,
198,
1326,
3784,
1503,
5653,
796,
5923,
5653,
764,
198,
1326,
3784,
2538,
14313,
796,
20978,
50,
764,
198,
1326,
3784,
33,
3535,
4694,
796,
347,
3535,
4694,
764,
198,
220,
886,
24396,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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: BEGIN OF student,
id(5) TYPE n,
name(10) TYPE c,
dob TYPE d,
place(10) TYPE c,
END OF student.
CONSTANTS: pi TYPE p DECIMALS 2 VALUE '3.14',
yes TYPE c VALUE 'X'.
write : pi.
"acrescentando valor de variáveis"
DATA: a TYPE i,
b TYPE i,
c TYPE i,
d TYPE i.
a = 15.
b = a.
MOVE 20 to c.
MOVE 500 to d.
MOVE 20 to a.
write:/ a, b, c, d.
a = 10 + c.
b = (5 * 10) * (b * 44).
write:/ a, b, c, d. | [
9,
785,
298,
3670,
198,
18564,
12709,
25,
705,
31373,
995,
4458,
198,
1,
808,
2912,
1,
198,
198,
9936,
47,
1546,
25,
220,
1438,
7,
940,
8,
220,
220,
220,
41876,
269,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4129,
220,
220,
220,
220,
220,
41876,
279,
27196,
3955,
23333,
362,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3753,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
7,
20,
8,
220,
220,
220,
220,
220,
220,
41876,
299,
13,
198,
198,
9936,
47,
1546,
25,
220,
347,
43312,
3963,
3710,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
7,
20,
8,
220,
220,
220,
220,
220,
220,
41876,
299,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
7,
940,
8,
220,
220,
220,
41876,
269,
11,
198,
220,
220,
220,
220,
220,
220,
220,
466,
65,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
288,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1295,
7,
940,
8,
220,
220,
41876,
269,
11,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
3710,
13,
198,
198,
10943,
2257,
1565,
4694,
25,
220,
31028,
41876,
279,
27196,
3955,
23333,
362,
26173,
8924,
705,
18,
13,
1415,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3763,
41876,
269,
26173,
8924,
705,
55,
4458,
198,
198,
13564,
1058,
31028,
13,
628,
198,
1,
330,
26505,
25440,
1188,
273,
390,
5553,
6557,
303,
271,
1,
198,
26947,
25,
220,
220,
257,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
275,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
269,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
288,
41876,
1312,
13,
198,
198,
64,
796,
1315,
13,
198,
65,
796,
257,
13,
198,
11770,
6089,
1160,
284,
269,
13,
198,
11770,
6089,
5323,
284,
288,
13,
198,
11770,
6089,
1160,
284,
257,
13,
198,
198,
13564,
14079,
257,
11,
275,
11,
269,
11,
288,
13,
198,
198,
64,
796,
838,
1343,
269,
13,
198,
65,
796,
357,
20,
1635,
838,
8,
1635,
357,
65,
1635,
5846,
737,
198,
198,
13564,
14079,
257,
11,
275,
11,
269,
11,
288,
13,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_YDK18_OUTPUT .
*"--------------------------------------------------------------------
*"*"Локальный интерфейс:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
*"--------------------------------------------------------------------
* see FM YDK_CONVERSION_EXIT_REGISTER
PERFORM output USING '18' input CHANGING output.
ENDFUNCTION.
| [
42296,
4177,
2849,
7102,
43717,
62,
6369,
2043,
62,
35755,
42,
1507,
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,
1507,
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_abapgit_background DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
TYPES: BEGIN OF ty_method,
class TYPE seoclsname,
description TYPE string,
END OF ty_method.
TYPES: ty_methods TYPE SORTED TABLE OF ty_method WITH UNIQUE KEY class.
CLASS-METHODS run
RAISING
zcx_abapgit_exception .
CLASS-METHODS list_methods
RETURNING VALUE(rt_methods) TYPE ty_methods.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ABAPGIT_BACKGROUND IMPLEMENTATION.
METHOD list_methods.
DATA: ls_method LIKE LINE OF rt_methods,
ls_key TYPE seoclskey,
lt_implementing TYPE seor_implementing_keys,
ls_implementing LIKE LINE OF lt_implementing.
FIELD-SYMBOLS: <ls_method> LIKE LINE OF rt_methods.
* in order to handle local classes in the compiled report
ls_method-class = 'ZCL_ABAPGIT_BACKGROUND_PULL'.
INSERT ls_method INTO TABLE rt_methods.
ls_method-class = 'ZCL_ABAPGIT_BACKGROUND_PUSH_AU'.
INSERT ls_method INTO TABLE rt_methods.
ls_method-class = 'ZCL_ABAPGIT_BACKGROUND_PUSH_FI'.
INSERT ls_method INTO TABLE rt_methods.
ls_key-clsname = 'ZIF_ABAPGIT_BACKGROUND'.
CALL FUNCTION 'SEO_INTERFACE_IMPLEM_GET_ALL'
EXPORTING
intkey = ls_key
IMPORTING
impkeys = lt_implementing
EXCEPTIONS
not_existing = 1
OTHERS = 2 ##FM_SUBRC_OK.
LOOP AT lt_implementing INTO ls_implementing.
ls_method-class = ls_implementing-clsname.
INSERT ls_method INTO TABLE rt_methods.
ENDLOOP.
LOOP AT rt_methods ASSIGNING <ls_method>.
CALL METHOD (<ls_method>-class)=>zif_abapgit_background~get_description
RECEIVING
rv_description = <ls_method>-description.
ENDLOOP.
ENDMETHOD.
METHOD run.
CONSTANTS: lc_enq_type TYPE c LENGTH 12 VALUE 'BACKGROUND'.
DATA: lo_per TYPE REF TO zcl_abapgit_persist_background,
lo_repo TYPE REF TO zcl_abapgit_repo_online,
lt_list TYPE zcl_abapgit_persist_background=>ty_background_keys,
li_background TYPE REF TO zif_abapgit_background,
li_log TYPE REF TO zif_abapgit_log,
lx_error TYPE REF TO zcx_abapgit_exception,
lv_repo_name TYPE string.
FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list.
CALL FUNCTION 'ENQUEUE_EZABAPGIT'
EXPORTING
mode_zabapgit = 'E'
type = lc_enq_type
_scope = '3'
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE: / 'Another intance of the program is already running'.
RETURN.
ENDIF.
CREATE OBJECT lo_per.
lt_list = lo_per->list( ).
WRITE: / 'Background mode'.
LOOP AT lt_list ASSIGNING <ls_list>.
TRY.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( <ls_list>-key ).
lv_repo_name = lo_repo->get_name( ).
WRITE: / <ls_list>-method, lv_repo_name.
zcl_abapgit_login_manager=>set(
iv_uri = lo_repo->get_url( )
iv_username = <ls_list>-username
iv_password = <ls_list>-password ).
CREATE OBJECT li_log TYPE zcl_abapgit_log.
CREATE OBJECT li_background TYPE (<ls_list>-method).
li_background->run(
io_repo = lo_repo
ii_log = li_log
it_settings = <ls_list>-settings ).
CATCH zcx_abapgit_exception INTO lx_error.
li_log->add_exception( lx_error ).
ENDTRY.
zcl_abapgit_log_viewer=>write_log( li_log ).
ENDLOOP.
IF lines( lt_list ) = 0.
WRITE: / 'Nothing configured'.
ENDIF.
CALL FUNCTION 'DEQUEUE_EZABAPGIT'
EXPORTING
type = lc_enq_type.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
25249,
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,
347,
43312,
3963,
1259,
62,
24396,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1398,
220,
220,
220,
220,
220,
220,
41876,
384,
420,
7278,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6764,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
24396,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
24396,
82,
41876,
311,
9863,
1961,
43679,
3963,
1259,
62,
24396,
13315,
4725,
33866,
8924,
35374,
1398,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
1057,
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,
1351,
62,
24396,
82,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
24396,
82,
8,
41876,
1259,
62,
24396,
82,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
31098,
46025,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1351,
62,
24396,
82,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
24396,
220,
220,
220,
220,
220,
220,
34178,
48920,
3963,
374,
83,
62,
24396,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
384,
420,
7278,
2539,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
320,
26908,
278,
41876,
384,
273,
62,
320,
26908,
278,
62,
13083,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
320,
26908,
278,
34178,
48920,
3963,
300,
83,
62,
320,
26908,
278,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
24396,
29,
34178,
48920,
3963,
374,
83,
62,
24396,
82,
13,
628,
198,
9,
287,
1502,
284,
5412,
1957,
6097,
287,
262,
14102,
989,
198,
220,
220,
220,
43979,
62,
24396,
12,
4871,
796,
705,
57,
5097,
62,
6242,
2969,
38,
2043,
62,
31098,
46025,
62,
5105,
3069,
4458,
198,
220,
220,
220,
29194,
17395,
43979,
62,
24396,
39319,
43679,
374,
83,
62,
24396,
82,
13,
198,
220,
220,
220,
43979,
62,
24396,
12,
4871,
796,
705,
57,
5097,
62,
6242,
2969,
38,
2043,
62,
31098,
46025,
62,
47,
27143,
62,
26830,
4458,
198,
220,
220,
220,
29194,
17395,
43979,
62,
24396,
39319,
43679,
374,
83,
62,
24396,
82,
13,
198,
220,
220,
220,
43979,
62,
24396,
12,
4871,
796,
705,
57,
5097,
62,
6242,
2969,
38,
2043,
62,
31098,
46025,
62,
47,
27143,
62,
11674,
4458,
198,
220,
220,
220,
29194,
17395,
43979,
62,
24396,
39319,
43679,
374,
83,
62,
24396,
82,
13,
628,
220,
220,
220,
43979,
62,
2539,
12,
565,
82,
3672,
796,
705,
57,
5064,
62,
6242,
2969,
38,
2043,
62,
31098,
46025,
4458,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
50,
4720,
62,
41358,
49836,
62,
3955,
16437,
44,
62,
18851,
62,
7036,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
493,
2539,
220,
220,
220,
220,
220,
220,
796,
43979,
62,
2539,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
848,
13083,
220,
220,
220,
220,
220,
796,
300,
83,
62,
320,
26908,
278,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
407,
62,
25687,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
796,
362,
22492,
23264,
62,
50,
10526,
7397,
62,
11380,
13,
198,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
320,
26908,
278,
39319,
43979,
62,
320,
26908,
278,
13,
198,
220,
220,
220,
220,
220,
43979,
62,
24396,
12,
4871,
796,
43979,
62,
320,
26908,
278,
12,
565,
82,
3672,
13,
198,
220,
220,
220,
220,
220,
29194,
17395,
43979,
62,
24396,
39319,
43679,
374,
83,
62,
24396,
82,
13,
198,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
220,
220,
17579,
3185,
5161,
374,
83,
62,
24396,
82,
24994,
3528,
15871,
1279,
7278,
62,
24396,
28401,
198,
220,
220,
220,
220,
220,
42815,
337,
36252,
38155,
7278,
62,
24396,
29,
12,
4871,
8,
14804,
89,
361,
62,
397,
499,
18300,
62,
25249,
93,
1136,
62,
11213,
198,
220,
220,
220,
220,
220,
220,
220,
19644,
36,
3824,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
85,
62,
11213,
796,
1279,
7278,
62,
24396,
29,
12,
11213,
13,
198,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1057,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
300,
66,
62,
268,
80,
62,
4906,
41876,
269,
406,
49494,
1105,
26173,
8924,
705,
31098,
46025,
4458,
628,
220,
220,
220,
42865,
25,
2376,
62,
525,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
25249,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
260,
7501,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
4868,
220,
220,
220,
220,
220,
220,
41876,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
25249,
14804,
774,
62,
25249,
62,
13083,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
25249,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
25249,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
6404
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
INTERFACE zif_abapgit_popups
PUBLIC .
TYPES:
BEGIN OF ty_popup,
url TYPE string,
package TYPE devclass,
branch_name TYPE string,
display_name TYPE string,
folder_logic TYPE string,
ign_subpkg TYPE abap_bool,
master_lang_only TYPE abap_bool,
cancel TYPE abap_bool,
END OF ty_popup .
CONSTANTS c_new_branch_label TYPE string VALUE '+ create new ...' ##NO_TEXT.
METHODS popup_package_export
EXPORTING
!ev_package TYPE devclass
!ev_folder_logic TYPE string
!ev_serialize_master_lang_only TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS popup_folder_logic
RETURNING
VALUE(rv_folder_logic) TYPE string
RAISING
zcx_abapgit_exception .
METHODS popup_object
RETURNING
VALUE(rs_tadir) TYPE zif_abapgit_definitions=>ty_tadir
RAISING
zcx_abapgit_exception .
METHODS create_branch_popup
EXPORTING
!ev_name TYPE string
!ev_cancel TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS repo_new_offline
RETURNING
VALUE(rs_popup) TYPE ty_popup
RAISING
zcx_abapgit_exception .
METHODS branch_list_popup
IMPORTING
!iv_url TYPE string
!iv_default_branch TYPE string OPTIONAL
!iv_show_new_option TYPE abap_bool OPTIONAL
!iv_hide_branch TYPE zif_abapgit_persistence=>ty_repo-branch_name OPTIONAL
!iv_hide_head TYPE abap_bool OPTIONAL
RETURNING
VALUE(rs_branch) TYPE zif_abapgit_definitions=>ty_git_branch
RAISING
zcx_abapgit_exception .
METHODS repo_popup
IMPORTING
!iv_url TYPE string
!iv_package TYPE devclass OPTIONAL
!iv_branch TYPE string DEFAULT 'refs/heads/master'
!iv_freeze_package TYPE abap_bool OPTIONAL
!iv_freeze_url TYPE abap_bool OPTIONAL
!iv_title TYPE clike DEFAULT 'New Online Project'
!iv_display_name TYPE string OPTIONAL
RETURNING
VALUE(rs_popup) TYPE ty_popup
RAISING
zcx_abapgit_exception ##NO_TEXT.
METHODS popup_to_confirm
IMPORTING
!iv_titlebar TYPE clike
!iv_text_question TYPE clike
!iv_text_button_1 TYPE clike DEFAULT 'Yes'
!iv_icon_button_1 TYPE icon-name DEFAULT space
!iv_text_button_2 TYPE clike DEFAULT 'No'
!iv_icon_button_2 TYPE icon-name DEFAULT space
!iv_default_button TYPE char1 DEFAULT '1'
!iv_display_cancel_button TYPE char1 DEFAULT abap_true
RETURNING
VALUE(rv_answer) TYPE char1
RAISING
zcx_abapgit_exception .
METHODS popup_to_inform
IMPORTING
!iv_titlebar TYPE clike
!iv_text_message TYPE clike
RAISING
zcx_abapgit_exception .
METHODS popup_to_create_package
EXPORTING
!es_package_data TYPE scompkdtln
!ev_create TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS popup_to_create_transp_branch
IMPORTING
!it_transport_headers TYPE trwbo_request_headers
RETURNING
VALUE(rs_transport_branch) TYPE zif_abapgit_definitions=>ty_transport_to_branch
RAISING
zcx_abapgit_exception.
METHODS popup_to_select_transports
RETURNING
VALUE(rt_trkorr) TYPE trwbo_request_headers .
METHODS popup_to_select_from_list
IMPORTING
!it_list TYPE STANDARD TABLE
!iv_title TYPE lvc_title DEFAULT space
!iv_header_text TYPE csequence DEFAULT space
!iv_start_column TYPE i DEFAULT 2
!iv_end_column TYPE i DEFAULT 65
!iv_start_line TYPE i DEFAULT 8
!iv_end_line TYPE i DEFAULT 20
!iv_striped_pattern TYPE abap_bool DEFAULT abap_false
!iv_optimize_col_width TYPE abap_bool DEFAULT abap_true
!iv_selection_mode TYPE salv_de_constant DEFAULT if_salv_c_selection_mode=>multiple
!iv_select_column_text TYPE csequence DEFAULT space
!it_columns_to_display TYPE zif_abapgit_definitions=>ty_alv_column_tt
EXPORTING
VALUE(et_list) TYPE STANDARD TABLE
RAISING
zcx_abapgit_exception .
METHODS branch_popup_callback
IMPORTING
!iv_code TYPE clike
CHANGING
!ct_fields TYPE zif_abapgit_definitions=>ty_sval_tt
!cs_error TYPE svale
!cv_show_popup TYPE char01
RAISING
zcx_abapgit_exception .
METHODS package_popup_callback
IMPORTING
!iv_code TYPE clike
CHANGING
!ct_fields TYPE zif_abapgit_definitions=>ty_sval_tt
!cs_error TYPE svale
!cv_show_popup TYPE char01
RAISING
zcx_abapgit_exception .
METHODS popup_transport_request
IMPORTING
!is_transport_type TYPE zif_abapgit_definitions=>ty_transport_type
RETURNING
VALUE(rv_transport) TYPE trkorr
RAISING
zcx_abapgit_exception.
METHODS popup_proxy_bypass
IMPORTING
!it_proxy_bypass TYPE zif_abapgit_definitions=>ty_range_proxy_bypass_url
RETURNING
VALUE(rt_proxy_bypass) TYPE zif_abapgit_definitions=>ty_range_proxy_bypass_url
RAISING
zcx_abapgit_exception.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
198,
220,
44731,
764,
628,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
12924,
929,
11,
198,
220,
220,
220,
220,
220,
19016,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
5301,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
11,
198,
220,
220,
220,
220,
220,
8478,
62,
3672,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
3359,
62,
3672,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
9483,
62,
6404,
291,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
3627,
62,
7266,
35339,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
4958,
62,
17204,
62,
8807,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
14241,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
12924,
929,
764,
628,
220,
7102,
2257,
1565,
4694,
269,
62,
3605,
62,
1671,
3702,
62,
18242,
41876,
4731,
26173,
8924,
705,
10,
2251,
649,
2644,
6,
22492,
15285,
62,
32541,
13,
628,
220,
337,
36252,
50,
46207,
62,
26495,
62,
39344,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
5145,
1990,
62,
26495,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
5145,
1990,
62,
43551,
62,
6404,
291,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
1990,
62,
46911,
1096,
62,
9866,
62,
17204,
62,
8807,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
46207,
62,
43551,
62,
6404,
291,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
43551,
62,
6404,
291,
8,
41876,
4731,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
46207,
62,
15252,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
83,
324,
343,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
83,
324,
343,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
2251,
62,
1671,
3702,
62,
12924,
929,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
5145,
1990,
62,
3672,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
1990,
62,
66,
21130,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
29924,
62,
3605,
62,
2364,
1370,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
12924,
929,
8,
41876,
1259,
62,
12924,
929,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
8478,
62,
4868,
62,
12924,
929,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
12286,
62,
1671,
3702,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
12860,
62,
3605,
62,
18076,
41876,
450,
499,
62,
30388,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
24717,
62,
1671,
3702,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
1671,
3702,
62,
3672,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
24717,
62,
2256,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
39852,
2849,
1847,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
1671,
3702,
8,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
18300,
62,
1671,
3702,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
29924,
62,
12924,
929,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
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,
5145,
452,
62,
5787,
2736,
62,
26495,
41876,
450,
499,
62,
30388,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
5787,
2736,
62,
6371,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
537,
522,
5550,
38865,
705,
3791,
7467,
4935,
6,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
13812,
62,
3672,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
30826
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_check_prefer_new_to_crt_obj DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
PROTECTED SECTION.
METHODS inspect_tokens REDEFINITION.
ENDCLASS.
CLASS y_check_prefer_new_to_crt_obj IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
settings-pseudo_comment = '"#EC PREF_NEW' ##NO_TEXT.
settings-disable_threshold_selection = abap_true.
settings-threshold = 0.
settings-documentation = |{ c_docs_path-checks }prefer-new-to-create-object.md|.
set_check_message( 'Prefer NEW to CREATE OBJECT!' ).
ENDMETHOD.
METHOD inspect_tokens.
CHECK get_token_abs( statement-from ) = 'CREATE'
AND get_token_abs( statement-from + 1 ) = 'OBJECT'.
DATA(check_configuration) = detect_check_configuration( statement ).
IF check_configuration IS INITIAL.
RETURN.
ENDIF.
raise_error( statement_level = statement-level
statement_index = index
statement_from = statement-from
error_priority = check_configuration-prio ).
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9122,
62,
3866,
2232,
62,
3605,
62,
1462,
62,
6098,
83,
62,
26801,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
29244,
6158,
44731,
764,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
764,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
62,
9122,
62,
3866,
2232,
62,
3605,
62,
1462,
62,
6098,
83,
62,
26801,
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,
22814,
37,
62,
13965,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
6460,
12,
40223,
62,
400,
10126,
62,
49283,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
6460,
12,
400,
10126,
796,
657,
13,
198,
220,
220,
220,
6460,
12,
22897,
341,
796,
930,
90,
269,
62,
31628,
62,
6978,
12,
42116,
1782,
3866,
2232,
12,
3605,
12,
1462,
12,
17953,
12,
15252,
13,
9132,
91,
13,
628,
220,
220,
220,
900,
62,
9122,
62,
20500,
7,
705,
6719,
2232,
12682,
284,
29244,
6158,
25334,
23680,
13679,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
10104,
62,
83,
482,
641,
13,
198,
220,
220,
220,
5870,
25171,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1267,
796,
705,
43387,
6158,
6,
198,
220,
220,
220,
5357,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1343,
352,
1267,
796,
705,
9864,
23680,
4458,
628,
220,
220,
220,
42865,
7,
9122,
62,
11250,
3924,
8,
796,
4886,
62,
9122,
62,
11250,
3924,
7,
2643,
6739,
628,
220,
220,
220,
16876,
2198,
62,
11250,
3924,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
5298,
62,
18224,
7,
2643,
62,
5715,
796,
2643,
12,
5715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
9630,
796,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
6738,
220,
796,
2643,
12,
6738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
49336,
220,
796,
2198,
62,
11250,
3924,
12,
3448,
78,
6739,
198,
220,
23578,
49273,
13,
628,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_uitb_html_content DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
"! <p class="shorttext synchronized" lang="en">Adds given text</p>
"!
METHODS add_text
IMPORTING
iv_text TYPE w3_html
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Start new paragraph</p>
"!
METHODS start_p
IMPORTING
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">End paragraph</p>
"!
METHODS end_p
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Start Blockquote</p>
"!
METHODS start_quote
IMPORTING
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">End blockquote</p>
"!
METHODS end_quote
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Add Heading</p>
"!
METHODS add_heading
IMPORTING
iv_text TYPE w3_html
iv_style TYPE w3_html OPTIONAL
iv_level TYPE i DEFAULT 3
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Add some bold text</p>
METHODS add_bold
IMPORTING
iv_bold TYPE w3_html
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Add some underlined text</p>
"!
METHODS add_underlined
IMPORTING
iv_underlined TYPE w3_html
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Add emphasized text</p>
"!
METHODS add_emphasized
IMPORTING
iv_emphasized TYPE w3_html
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Start new unordered list</p>
"!
METHODS start_ul
IMPORTING
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">End unordered list</p>
"!
METHODS end_ul
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Start new ordered list</p>
"!
METHODS start_ol
IMPORTING
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">End ordered list</p>
"!
METHODS end_ol
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Start new list item element</p>
"!
METHODS start_li
IMPORTING
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Add new list item element</p>
"!
METHODS add_li
IMPORTING
iv_list_item_text TYPE w3_html
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">End list item element</p>
"!
METHODS end_li
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Start new html table</p>
"!
METHODS start_table
IMPORTING
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Closes HTML table</p>
"!
METHODS end_table
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Starts new table row</p>
METHODS start_table_row
IMPORTING
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Ends current table row</p>
"!
METHODS end_table_row
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Adds new table header cell</p>
"!
METHODS add_table_header_cell
IMPORTING
iv_text TYPE w3_html
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Adds new table body cell</p>
"!
METHODS add_table_body_cell
IMPORTING
iv_text TYPE w3_html
iv_style TYPE w3_html OPTIONAL
RETURNING
VALUE(rr_self) TYPE REF TO zcl_uitb_html_content.
"! <p class="shorttext synchronized" lang="en">Retrieve complete html content</p>
"!
METHODS get_content
RETURNING
VALUE(rt_content) TYPE w3htmltab.
PROTECTED SECTION.
PRIVATE SECTION.
DATA mt_content TYPE w3htmltab.
"! <p class="shorttext synchronized" lang="en">Add text with tag</p>
"!
METHODS add_with_tag
IMPORTING
iv_text TYPE string
iv_style TYPE string OPTIONAL
iv_tag TYPE string .
"! <p class="shorttext synchronized" lang="en">Writes a start tag</p>
"!
METHODS write_start_tag
IMPORTING
iv_tag TYPE string
iv_style TYPE string OPTIONAL.
"! <p class="shorttext synchronized" lang="en">Writes a closing tag</p>
METHODS write_end_tag
IMPORTING
iv_tag TYPE string .
ENDCLASS.
CLASS zcl_uitb_html_content IMPLEMENTATION.
METHOD add_bold.
add_with_tag( iv_text = |{ iv_bold }| iv_tag = 'strong' ).
rr_self = me.
ENDMETHOD.
METHOD add_emphasized.
add_with_tag( iv_text = |{ iv_emphasized }| iv_tag = 'em' ).
rr_self = me.
ENDMETHOD.
METHOD add_heading.
DATA(lv_level) = COND #( WHEN iv_level > 1 AND iv_level < 7 THEN iv_level ELSE 3 ).
add_with_tag( iv_text = |{ iv_text }| iv_tag = |h{ lv_level }| iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
METHOD add_li.
add_with_tag( iv_text = |{ iv_list_item_text }| iv_tag = 'li' iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
METHOD add_underlined.
add_with_tag( iv_text = |{ iv_underlined }| iv_tag = 'u' ).
rr_self = me.
ENDMETHOD.
METHOD end_li.
write_end_tag( 'li' ).
rr_self = me.
ENDMETHOD.
METHOD end_ol.
write_end_tag( 'ol' ).
rr_self = me.
ENDMETHOD.
METHOD end_p.
write_end_tag( 'p' ).
rr_self = me.
ENDMETHOD.
METHOD end_quote.
write_end_tag( 'blockquote' ).
rr_self = me.
ENDMETHOD.
METHOD end_ul.
write_end_tag( 'ul' ).
rr_self = me.
ENDMETHOD.
METHOD start_li.
write_start_tag( iv_tag = 'li' iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
METHOD start_ol.
write_start_tag( iv_tag = 'ol' iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
METHOD start_p.
write_start_tag( iv_tag = 'p' iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
METHOD start_quote.
write_start_tag( iv_tag = 'blockquote' iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
METHOD start_ul.
write_start_tag( iv_tag = 'ul' iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
METHOD add_with_tag.
mt_content = VALUE #(
BASE mt_content
( |<{ iv_tag }{ cond #( when iv_style is not initial then |style="{ iv_style }"| ) }>{ iv_text }</{ iv_tag }>| )
).
ENDMETHOD.
METHOD write_end_tag.
mt_content = VALUE #(
BASE mt_content
( |</{ iv_tag }>| )
).
ENDMETHOD.
METHOD write_start_tag.
DATA(lv_style) = COND #( WHEN iv_style IS NOT INITIAL THEN |style="{ iv_style }"| ).
mt_content = VALUE #(
BASE mt_content
( |<{ iv_tag }{ lv_style }>| )
).
ENDMETHOD.
METHOD get_content.
rt_content = mt_content.
ENDMETHOD.
METHOD add_text.
mt_content = VALUE #(
BASE mt_content
( |{ iv_text }| )
).
rr_self = me.
ENDMETHOD.
METHOD add_table_body_cell.
add_with_tag(
iv_text = |{ iv_text }|
iv_style = |{ iv_style }|
iv_tag = 'td'
).
rr_self = me.
ENDMETHOD.
METHOD add_table_header_cell.
add_with_tag(
iv_text = |{ iv_text }|
iv_style = |{ iv_style }|
iv_tag = 'th'
).
rr_self = me.
ENDMETHOD.
METHOD end_table.
write_end_tag( iv_tag = 'table' ).
rr_self = me.
ENDMETHOD.
METHOD start_table.
write_start_tag( iv_tag = 'table' iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
METHOD end_table_row.
write_end_tag( iv_tag = 'tr' ).
rr_self = me.
ENDMETHOD.
METHOD start_table_row.
write_start_tag( iv_tag = 'tr' iv_style = |{ iv_style }| ).
rr_self = me.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
46245,
1813,
2420,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
5239,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
220,
220,
220,
220,
41876,
266,
18,
62,
6494,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
10434,
649,
7322,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
337,
36252,
50,
923,
62,
79,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7635,
220,
220,
220,
220,
220,
220,
41876,
266,
18,
62,
6494,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
12915,
7322,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
337,
36252,
50,
886,
62,
79,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
10434,
9726,
22708,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
337,
36252,
50,
923,
62,
22708,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7635,
220,
220,
220,
220,
220,
220,
41876,
266,
18,
62,
6494,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
12915,
2512,
22708,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
337,
36252,
50,
886,
62,
22708,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
4550,
679,
4980,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
33878,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
220,
220,
220,
220,
41876,
266,
18,
62,
6494,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
7635,
220,
220,
220,
220,
220,
220,
41876,
266,
18,
62,
6494,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5715,
220,
220,
220,
220,
220,
220,
41876,
1312,
5550,
38865,
513,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
4550,
617,
10758,
2420,
3556,
79,
29,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
36575,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
36575,
220,
220,
220,
220,
220,
220,
220,
41876,
266,
18,
62,
6494,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
4550,
617,
739,
10837,
2420,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
4625,
10837,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
4625,
10837,
220,
41876,
266,
18,
62,
6494,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
4550,
20047,
2420,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
368,
5902,
1143,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
368,
5902,
1143,
220,
41876,
266,
18,
62,
6494,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
21062,
62,
944,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
5013,
65,
62,
6494,
62,
11299,
13,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
10434,
649,
555,
24071,
1351,
3556,
79,
29,
198,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_asset_manager DEFINITION PUBLIC FINAL CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_asset_manager.
TYPES:
BEGIN OF ty_asset_entry.
INCLUDE TYPE zif_abapgit_gui_asset_manager~ty_web_asset.
TYPES: mime_name TYPE wwwdatatab-objid,
END OF ty_asset_entry ,
tt_asset_register TYPE STANDARD TABLE OF ty_asset_entry WITH KEY url .
METHODS register_asset
IMPORTING
!iv_url TYPE string
!iv_type TYPE string
!iv_cachable TYPE abap_bool DEFAULT abap_true
!iv_mime_name TYPE wwwdatatab-objid OPTIONAL
!iv_base64 TYPE string OPTIONAL
!iv_inline TYPE string OPTIONAL .
PROTECTED SECTION.
PRIVATE SECTION.
DATA mt_asset_register TYPE tt_asset_register.
METHODS get_mime_asset
IMPORTING
iv_mime_name TYPE c
RETURNING
VALUE(rv_xdata) TYPE xstring
RAISING
zcx_abapgit_exception.
METHODS load_asset
IMPORTING
is_asset_entry TYPE ty_asset_entry
RETURNING
VALUE(rs_asset) TYPE zif_abapgit_gui_asset_manager~ty_web_asset
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_ASSET_MANAGER IMPLEMENTATION.
METHOD get_mime_asset.
DATA: ls_key TYPE wwwdatatab,
lv_size_c TYPE wwwparams-value,
lv_size TYPE i,
lt_w3mime TYPE STANDARD TABLE OF w3mime.
ls_key-relid = 'MI'.
ls_key-objid = iv_mime_name.
" Get exact file size
CALL FUNCTION 'WWWPARAMS_READ'
EXPORTING
relid = ls_key-relid
objid = ls_key-objid
name = 'filesize'
IMPORTING
value = lv_size_c
EXCEPTIONS
entry_not_exists = 1.
IF sy-subrc IS NOT INITIAL.
RETURN.
ENDIF.
lv_size = lv_size_c.
" Get binary data
CALL FUNCTION 'WWWDATA_IMPORT'
EXPORTING
key = ls_key
TABLES
mime = lt_w3mime
EXCEPTIONS
wrong_object_type = 1
import_error = 2.
IF sy-subrc IS NOT INITIAL.
RETURN.
ENDIF.
rv_xdata = zcl_abapgit_convert=>bintab_to_xstring(
iv_size = lv_size
it_bintab = lt_w3mime ).
ENDMETHOD.
METHOD load_asset.
MOVE-CORRESPONDING is_asset_entry TO rs_asset.
IF rs_asset-content IS INITIAL AND is_asset_entry-mime_name IS NOT INITIAL.
" inline content has the priority
rs_asset-content = get_mime_asset( is_asset_entry-mime_name ).
ENDIF.
IF rs_asset-content IS INITIAL.
zcx_abapgit_exception=>raise( |failed to load GUI asset: { is_asset_entry-url }| ).
ENDIF.
ENDMETHOD.
METHOD register_asset.
DATA ls_asset LIKE LINE OF mt_asset_register.
SPLIT iv_type AT '/' INTO ls_asset-type ls_asset-subtype.
ls_asset-url = iv_url.
ls_asset-mime_name = iv_mime_name.
ls_asset-is_cacheable = iv_cachable.
IF iv_base64 IS NOT INITIAL.
ls_asset-content = zcl_abapgit_convert=>base64_to_xstring( iv_base64 ).
ELSEIF iv_inline IS NOT INITIAL.
ls_asset-content = zcl_abapgit_convert=>string_to_xstring( iv_inline ).
ENDIF.
APPEND ls_asset TO mt_asset_register.
ENDMETHOD.
METHOD zif_abapgit_gui_asset_manager~get_all_assets.
FIELD-SYMBOLS <ls_a> LIKE LINE OF mt_asset_register.
LOOP AT mt_asset_register ASSIGNING <ls_a>.
APPEND load_asset( <ls_a> ) TO rt_assets.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_gui_asset_manager~get_asset.
FIELD-SYMBOLS <ls_a> LIKE LINE of mt_asset_register.
READ TABLE mt_asset_register WITH KEY url = iv_url ASSIGNING <ls_a>.
IF <ls_a> IS NOT ASSIGNED.
zcx_abapgit_exception=>raise( |Cannot find GUI asset: { iv_url }| ).
ENDIF.
rs_asset = load_asset( <ls_a> ).
ENDMETHOD.
METHOD zif_abapgit_gui_asset_manager~get_text_asset.
DATA ls_asset TYPE zif_abapgit_gui_asset_manager~ty_web_asset.
ls_asset = me->zif_abapgit_gui_asset_manager~get_asset( iv_url ).
rv_asset = zcl_abapgit_convert=>xstring_to_string_utf8( ls_asset-content ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
562,
316,
62,
37153,
5550,
20032,
17941,
44731,
25261,
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,
562,
316,
62,
37153,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
562,
316,
62,
13000,
13,
198,
220,
220,
220,
220,
220,
220,
220,
3268,
5097,
52,
7206,
41876,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
562,
316,
62,
37153,
93,
774,
62,
12384,
62,
562,
316,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
220,
285,
524,
62,
3672,
41876,
7324,
19608,
265,
397,
12,
26801,
312,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
562,
316,
62,
13000,
837,
198,
220,
220,
220,
220,
220,
256,
83,
62,
562,
316,
62,
30238,
41876,
49053,
9795,
43679,
3963,
1259,
62,
562,
316,
62,
13000,
13315,
35374,
19016,
764,
628,
220,
220,
220,
337,
36252,
50,
7881,
62,
562,
316,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
4906,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
66,
34446,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
76,
524,
62,
3672,
41876,
7324,
19608,
265,
397,
12,
26801,
312,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8692,
2414,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
45145,
41876,
4731,
39852,
2849,
1847,
764,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
45079,
62,
562,
316,
62,
30238,
41876,
256,
83,
62,
562,
316,
62,
30238,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
76,
524,
62,
562,
316,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
76,
524,
62,
3672,
220,
220,
220,
41876,
269,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
87,
7890,
8,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
3440,
62,
562,
316,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
562,
316,
62,
13000,
41876,
1259,
62,
562,
316,
62,
13000,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
562,
316,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
562,
316,
62,
37153,
93,
774,
62,
12384,
62,
562,
316,
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,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
40156,
62,
10705,
2767,
62,
10725,
4760,
1137,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
76,
524,
62,
562,
316,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
2539,
220,
220,
220,
41876,
7324,
19608,
265,
397,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
7857,
62,
66,
41876,
7324,
37266,
12,
8367,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
7857,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
86,
18,
76,
524,
41876,
49053,
9795,
43679,
3963,
266,
18,
76,
524,
13,
628,
220,
220,
220,
43979,
62,
2539,
12,
2411,
312,
796,
705,
8895,
4458,
198,
220,
220,
220,
43979,
62,
2539,
12,
26801,
312,
796,
21628,
62,
76,
524,
62,
3672,
13,
628,
220,
220,
220,
366,
3497,
2748,
2393,
2546,
198,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
17947,
25527,
1503,
40834,
62,
15675,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
823,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
43979,
62,
2539,
12,
2411,
312,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
43979,
62,
2539,
12,
26801,
312,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
16624,
1096,
6,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
7857,
62,
66,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
5726,
62,
1662,
62,
1069,
1023,
796,
352,
13,
628,
220,
220,
220,
16876,
827,
12,
7266,
6015,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
300,
85,
62,
7857,
796,
300,
85,
62,
7857,
62,
66,
13,
628,
220,
220,
220,
366,
3497,
13934,
1366,
198,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
17947,
22332,
13563,
62,
3955,
15490,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1994,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
43979,
62,
2539,
198,
220,
220,
220,
220,
220,
309,
6242,
28378,
198,
220,
220,
220,
220,
220,
220,
220,
285,
524,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 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 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 .
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
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_status .
METHODS reset_remote .
PRIVATE SECTION.
DATA mi_listener TYPE REF TO zif_abapgit_repo_listener .
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 apply_filter
IMPORTING
!it_filter TYPE zif_abapgit_definitions=>ty_tadir_tt
CHANGING
!ct_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt .
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 apply_filter.
DATA: lt_filter TYPE SORTED TABLE OF zif_abapgit_definitions=>ty_tadir
WITH NON-UNIQUE KEY object obj_name,
lv_index TYPE i.
FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF ct_tadir.
IF lines( it_filter ) = 0.
RETURN.
ENDIF.
lt_filter = it_filter.
* this is another loop at TADIR, but typically the filter is blank
LOOP AT ct_tadir ASSIGNING <ls_tadir>.
lv_index = sy-tabix.
READ TABLE lt_filter TRANSPORTING NO FIELDS WITH KEY object = <ls_tadir>-object
obj_name = <ls_tadir>-obj_name
BINARY SEARCH.
IF sy-subrc <> 0.
DELETE ct_tadir INDEX lv_index.
ENDIF.
ENDLOOP.
ENDMETHOD.
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 = 'N' AND is_checks-requirements-decision IS INITIAL.
zcx_abapgit_exception=>raise( 'Requirements not met and undecided' ).
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,
lv_master_language TYPE spras,
lv_logon_language TYPE spras.
find_remote_dot_abapgit( ).
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 ).
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 ).
ENDIF.
ENDMETHOD.
METHOD get_dot_abapgit.
CREATE OBJECT ro_dot_abapgit
EXPORTING
is_data = ms_data-dot_abapgit.
ENDMETHOD.
METHOD get_files_local.
DATA: 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 ).
apply_filter( 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>.
APPEND LINES OF <ls_object>-files TO rt_checksums.
ENDLOOP.
ENDMETHOD.
METHOD get_local_settings.
rs_settings = ms_data-local_settings.
ENDMETHOD.
METHOD get_log.
ri_log = mi_log.
ENDMETHOD.
METHOD get_name.
rv_name = ms_data-local_settings-display_name.
ENDMETHOD.
METHOD get_package.
rv_package = ms_data-package.
ENDMETHOD.
METHOD 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 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_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,
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,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6404,
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,
14976,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class ZCL_BOOK_ATTR definition
public
final
create public .
public section.
methods CONSTRUCTOR
importing
!TIKNR type ZBOOK_TICKET_NR
!AREA type ZBOOK_AREA optional
!CLAS type ZBOOK_CLAS optional .
methods SAVE
importing
!TIKNR type ZBOOK_TICKET_NR optional .
methods SHOW
importing
!COUNT type I .
class-methods DELETE
importing
!TIKNR type ZBOOK_TICKET_NR .
methods EDIT
importing
!COUNT type I .
protected section.
data GV_TIKNR type ZBOOK_TICKET_NR .
class-data:
GT_ATTR type STANDARD TABLE OF zbook_attr .
methods CALL_DYNAMIC_SCREEN
importing
!COUNT type I
!SHOW type CHAR01 .
methods SET_DYNAMIC_TYPE
importing
!TABLE type TABNAME
!FIELD type FIELDNAME .
private section.
data:
GT_VALUES type STANDARD TABLE OF zbook_attr_value .
data GV_TYPE type CHAR50 .
data GV_DATA type TEXT80 .
data GV_AREA type ZBOOK_AREA .
data GV_CLAS type ZBOOK_CLAS .
methods GET_DATA
importing
!COUNT type I
exceptions
ERROR .
methods READ_ATTRIBUTES
importing
!AREA type ZBOOK_AREA
!CLAS type ZBOOK_CLAS .
methods SET_DATA
importing
!COUNT type I .
methods READ_DATA .
ENDCLASS.
CLASS ZCL_BOOK_ATTR IMPLEMENTATION.
METHOD call_dynamic_screen.
CALL METHOD get_data
EXPORTING
count = count
EXCEPTIONS
error = 1.
CHECK sy-subrc = 0.
DELETE FROM MEMORY ID 'Kochbuch'.
SUBMIT zbook_demo_dyn_param_oo
WITH p_type = gv_type
WITH p_data = gv_data
WITH p_show = show
VIA SELECTION-SCREEN AND RETURN.
IF show = space.
IMPORT data TO gv_data FROM MEMORY ID 'Kochbuch'.
IF sy-subrc = 0.
set_data( count ).
ENDIF.
ENDIF.
ENDMETHOD.
METHOD constructor.
gv_tiknr = tiknr.
gv_area = area.
gv_clas = clas.
IF gv_tiknr IS NOT INITIAL AND
gv_area IS INITIAL AND
gv_clas IS INITIAL.
SELECT SINGLE area clas FROM zbook_ticket
INTO (gv_area, gv_clas)
WHERE tiknr = tiknr.
ENDIF.
read_attributes( area = gv_Area clas = gv_clas ).
read_data( ).
ENDMETHOD.
METHOD delete.
DELETE FROM zbook_attr_value WHERE tiknr = tiknr.
ENDMETHOD.
METHOD edit.
call_dynamic_screen( count = count
show = space ).
ENDMETHOD.
METHOD get_data.
DATA ls_attr TYPE zbook_attr.
DATA ls_value TYPE zbook_attr_value.
READ TABLE gt_attr INTO ls_attr INDEX count.
IF sy-subrc = 0.
set_dynamic_type( table = ls_attr-tablename
field = ls_attr-fieldname ).
READ TABLE gt_values INTO ls_value
WITH KEY tablename = ls_attr-tablename
fieldname = ls_attr-fieldname.
IF sy-subrc = 0.
gv_data = ls_value-value.
ELSE.
gv_data = space.
ENDIF.
ELSE.
RAISE error.
ENDIF.
ENDMETHOD.
METHOD READ_ATTRIBUTES.
CLEAR gt_attr.
SELECT * FROM zbook_attr INTO TABLE gt_attr
WHERE ( area = area AND clas = clas )
or ( area = area and clas = space ).
SORT gt_attr BY sort.
ENDMETHOD.
METHOD read_data.
DATA ls_value TYPE zbook_attr_value.
CHECK gv_tiknr IS NOT INITIAL.
SELECT * FROM zbook_attr_value
INTO TABLE gt_values
WHERE tiknr = gv_tiknr.
ENDMETHOD.
METHOD save.
DATA ls_attr_value TYPE zbook_attr_value.
FIELD-SYMBOLS <attr> TYPE zbook_attr.
IF tiknr IS NOT INITIAL.
gv_tiknr = tiknr.
ENDIF.
CHECK gv_tiknr IS NOT INITIAL.
delete( gv_tiknr ).
INSERT zbook_attr_value FROM TABLE gt_values.
COMMIT WORK.
ENDMETHOD.
METHOD set_data.
FIELD-SYMBOLS <value> TYPE zbook_attr_value.
DATA ls_attr TYPE zbook_attr.
READ TABLE gt_attr INTO ls_attr INDEX count.
IF sy-subrc = 0.
READ TABLE gt_values ASSIGNING <value>
WITH KEY tablename = ls_attr-tablename
fieldname = ls_attr-fieldname.
IF sy-subrc > 0.
APPEND INITIAL LINE TO gt_values ASSIGNING <value>.
<value>-tiknr = gv_tiknr.
<value>-tablename = ls_attr-tablename.
<value>-fieldname = ls_attr-fieldname.
ENDIF.
<value>-value = gv_data.
ENDIF.
ENDMETHOD.
METHOD set_dynamic_type.
CONCATENATE table '-' field INTO gv_type.
ENDMETHOD.
METHOD show.
call_dynamic_screen( count = count show = 'X' ).
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
39453,
62,
1404,
5446,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
51,
18694,
24723,
2099,
1168,
39453,
62,
51,
11860,
2767,
62,
24723,
198,
220,
220,
220,
220,
220,
5145,
12203,
32,
2099,
1168,
39453,
62,
12203,
32,
11902,
198,
220,
220,
220,
220,
220,
5145,
5097,
1921,
2099,
1168,
39453,
62,
5097,
1921,
11902,
764,
198,
220,
5050,
14719,
6089,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
51,
18694,
24723,
2099,
1168,
39453,
62,
51,
11860,
2767,
62,
24723,
11902,
764,
198,
220,
5050,
37041,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
34,
28270,
2099,
314,
764,
198,
220,
1398,
12,
24396,
82,
5550,
2538,
9328,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
51,
18694,
24723,
2099,
1168,
39453,
62,
51,
11860,
2767,
62,
24723,
764,
198,
220,
5050,
48483,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
34,
28270,
2099,
314,
764,
198,
24326,
2665,
13,
628,
220,
1366,
402,
53,
62,
51,
18694,
24723,
2099,
1168,
39453,
62,
51,
11860,
2767,
62,
24723,
764,
198,
220,
1398,
12,
7890,
25,
198,
220,
220,
220,
7963,
62,
1404,
5446,
2099,
49053,
9795,
43679,
3963,
1976,
2070,
62,
35226,
764,
628,
220,
5050,
42815,
62,
35,
40760,
2390,
2149,
62,
6173,
2200,
1677,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
34,
28270,
2099,
314,
198,
220,
220,
220,
220,
220,
5145,
9693,
3913,
2099,
28521,
486,
764,
198,
220,
5050,
25823,
62,
35,
40760,
2390,
2149,
62,
25216,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
38148,
2099,
309,
6242,
20608,
198,
220,
220,
220,
220,
220,
5145,
44603,
2099,
18930,
24639,
20608,
764,
198,
19734,
2665,
13,
628,
220,
1366,
25,
198,
220,
220,
220,
7963,
62,
23428,
35409,
2099,
49053,
9795,
43679,
3963,
1976,
2070,
62,
35226,
62,
8367,
764,
198,
220,
1366,
402,
53,
62,
25216,
2099,
28521,
1120,
764,
198,
220,
1366,
402,
53,
62,
26947,
2099,
40383,
1795,
764,
198,
220,
1366,
402,
53,
62,
12203,
32,
2099,
1168,
39453,
62,
12203,
32,
764,
198,
220,
1366,
402,
53,
62,
5097,
1921,
2099,
1168,
39453,
62,
5097,
1921,
764,
628,
220,
5050,
17151,
62,
26947,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
34,
28270,
2099,
314,
198,
220,
220,
220,
13269,
198,
220,
220,
220,
220,
220,
33854,
764,
198,
220,
5050,
20832,
62,
1404,
5446,
9865,
3843,
1546,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
12203,
32,
2099,
1168,
39453,
62,
12203,
32,
198,
220,
220,
220,
220,
220,
5145,
5097,
1921,
2099,
1168,
39453,
62,
5097,
1921,
764,
198,
220,
5050,
25823,
62,
26947,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
34,
28270,
2099,
314,
764,
198,
220,
5050,
20832,
62,
26947,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
39453,
62,
1404,
5446,
30023,
2538,
10979,
6234,
13,
628,
198,
49273,
869,
62,
67,
28995,
62,
9612,
13,
628,
220,
42815,
337,
36252,
651,
62,
7890,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
954,
796,
954,
198,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
4049,
796,
352,
13,
198,
220,
5870,
25171,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
5550,
2538,
9328,
16034,
35153,
15513,
4522,
705,
42,
5374,
65,
794,
4458,
628,
220,
28932,
36393,
1976,
2070,
62,
9536,
78,
62,
67,
2047,
62,
17143,
62,
2238,
198,
220,
220,
220,
13315,
279,
62,
4906,
796,
308,
85,
62,
4906,
198,
220,
220,
220,
13315,
279,
62,
7890,
796,
308,
85,
62,
7890,
198,
220,
220,
220,
13315,
279,
62,
12860,
796,
905,
198,
220,
220,
220,
220,
569,
3539,
33493,
2849,
12,
6173,
2200,
1677,
5357,
30826,
27064,
13,
628,
220,
16876,
905,
796,
2272,
13,
198,
220,
220,
220,
30023,
9863,
1366,
5390,
308,
85,
62,
7890,
16034,
35153,
15513,
4522,
705,
42,
5374,
65,
794,
4458,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
900,
62,
7890,
7,
954,
6739,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
5064,
13,
198,
198,
10619,
49273,
13,
628,
198,
49273,
23772,
13,
628,
220,
308,
85,
62,
83,
1134,
48624,
796,
256,
1134,
48624,
13,
198,
220,
308,
85,
62,
20337,
220,
796,
1989,
13,
198,
220,
308,
85,
62,
565,
292,
220,
796,
537,
292,
13,
628,
220,
16876,
308,
85,
62,
83,
1134,
48624,
3180,
5626,
3268,
2043,
12576,
5357,
198,
220,
220,
220,
220,
308,
85,
62,
20337,
3180,
3268,
2043,
12576,
5357,
198,
220,
220,
220,
220,
308,
85,
62,
565,
292,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
33493,
311,
2751,
2538,
1989,
537,
292,
16034,
1976,
2070,
62,
43350,
198,
220,
220,
220,
220,
220,
39319,
357,
70,
85,
62,
20337,
11,
308,
85,
62,
565,
292,
8,
198,
220,
220,
220,
220,
33411,
256,
1134,
48624,
796,
256,
1134,
48624,
13,
198,
220,
23578,
5064,
13,
628,
220,
1100,
62,
1078,
7657,
7,
1989,
796,
308,
85,
62,
30547,
537,
292,
796,
308,
85,
62,
565,
292,
6739,
628,
220,
1100,
62,
7890,
7,
6739,
198,
198,
10619,
49273,
13,
628,
198,
49273,
12233,
13,
628,
220,
5550,
2538,
9328,
16034,
1976,
2070,
62,
35226,
62,
8367,
33411,
256,
1134,
48624,
796,
256,
1134,
48624,
13,
198,
198,
10619,
49273,
13,
628,
198,
49273,
4370,
13,
628,
220,
869,
62,
67,
28995,
62,
9612,
7,
954,
796,
954,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
905,
220,
796,
2272,
6739,
198,
198,
10619,
49273,
13,
628,
198,
49273,
651,
62,
7890,
13,
628,
220,
42865,
43979,
62,
35226,
220,
220,
41876,
1976,
2070,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_persist_settings DEFINITION
PUBLIC
CREATE PRIVATE
GLOBAL FRIENDS zcl_abapgit_persist_factory .
PUBLIC SECTION.
INTERFACES zif_abapgit_persist_settings .
PROTECTED SECTION.
PRIVATE SECTION.
DATA mo_settings TYPE REF TO zcl_abapgit_settings .
CLASS-DATA gi_persist TYPE REF TO zif_abapgit_persist_settings .
ENDCLASS.
CLASS ZCL_ABAPGIT_PERSIST_SETTINGS IMPLEMENTATION.
METHOD zif_abapgit_persist_settings~modify.
DATA: lv_settings TYPE string,
ls_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings.
lv_settings = io_settings->get_settings_xml( ).
zcl_abapgit_persistence_db=>get_instance( )->modify(
iv_type = zcl_abapgit_persistence_db=>c_type_settings
iv_value = ''
iv_data = lv_settings ).
ls_user_settings = io_settings->get_user_settings( ).
zcl_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 zif_abapgit_persist_settings~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(
zcl_abapgit_persistence_db=>get_instance( )->read(
iv_type = zcl_abapgit_persistence_db=>c_type_settings
iv_value = '' ) ).
ro_settings->set_user_settings( zcl_abapgit_persistence_user=>get_instance( )->get_settings( ) ).
CATCH zcx_abapgit_not_found zcx_abapgit_exception.
ro_settings->set_defaults( ).
ENDTRY.
mo_settings = ro_settings.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
4810,
3824,
6158,
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,
33692,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
6941,
62,
33692,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
33692,
764,
628,
220,
220,
220,
42715,
12,
26947,
308,
72,
62,
19276,
396,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
47,
4877,
8808,
62,
28480,
51,
20754,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
93,
4666,
1958,
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,
1976,
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,
1976,
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,
1976,
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,
1976,
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,
1976,
361,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
93,
961,
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,
1976,
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,
1976,
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,
1976,
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,
1976,
66,
87,
62,
397,
499,
18300,
62,
1662,
62,
9275,
1976,
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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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_diff DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_page
CREATE PUBLIC.
PUBLIC SECTION.
TYPES:
BEGIN OF ty_file_diff,
path TYPE string,
filename TYPE string,
obj_type TYPE string,
obj_name TYPE string,
lstate TYPE char1,
rstate TYPE char1,
fstate TYPE char1, " FILE state - Abstraction for shorter ifs
o_diff TYPE REF TO zcl_abapgit_diff,
changed_by TYPE xubname,
type TYPE string,
END OF ty_file_diff.
TYPES:
tt_file_diff TYPE STANDARD TABLE OF ty_file_diff
WITH NON-UNIQUE DEFAULT KEY
WITH NON-UNIQUE SORTED KEY secondary
COMPONENTS path filename.
CONSTANTS:
BEGIN OF c_fstate,
local TYPE char1 VALUE 'L',
remote TYPE char1 VALUE 'R',
both TYPE char1 VALUE 'B',
END OF c_fstate.
METHODS constructor
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
!is_file TYPE zif_abapgit_definitions=>ty_file OPTIONAL
!is_object TYPE zif_abapgit_definitions=>ty_item OPTIONAL
!it_files TYPE zif_abapgit_definitions=>ty_stage_tt OPTIONAL
RAISING
zcx_abapgit_exception.
METHODS zif_abapgit_gui_event_handler~on_event
REDEFINITION.
PROTECTED SECTION.
DATA mv_unified TYPE abap_bool VALUE abap_true ##NO_TEXT.
DATA mo_repo TYPE REF TO zcl_abapgit_repo .
DATA mt_diff_files TYPE tt_file_diff .
METHODS get_normalized_fname_with_path
IMPORTING
!is_diff TYPE ty_file_diff
RETURNING
VALUE(rv_filename) TYPE string .
METHODS normalize_path
IMPORTING
!iv_path TYPE string
RETURNING
VALUE(rv_normalized) TYPE string .
METHODS normalize_filename
IMPORTING
!iv_filename TYPE string
RETURNING
VALUE(rv_normalized) TYPE string .
METHODS add_menu_end
IMPORTING
!io_menu TYPE REF TO zcl_abapgit_html_toolbar .
METHODS calculate_diff
IMPORTING
!is_file TYPE zif_abapgit_definitions=>ty_file OPTIONAL
!is_object TYPE zif_abapgit_definitions=>ty_item OPTIONAL
!it_files TYPE zif_abapgit_definitions=>ty_stage_tt OPTIONAL
RAISING
zcx_abapgit_exception .
METHODS add_menu_begin
IMPORTING
!io_menu TYPE REF TO zcl_abapgit_html_toolbar .
METHODS render_table_head_non_unified
IMPORTING
!io_html TYPE REF TO zcl_abapgit_html
!is_diff TYPE ty_file_diff .
METHODS render_beacon_begin_of_row
IMPORTING
!ii_html TYPE REF TO zif_abapgit_html
!is_diff TYPE ty_file_diff .
METHODS render_diff_head_after_state
IMPORTING
!ii_html TYPE REF TO zif_abapgit_html
!is_diff TYPE ty_file_diff .
METHODS insert_nav
RETURNING
VALUE(rv_insert_nav) TYPE abap_bool .
METHODS render_line_split_row
IMPORTING
!ii_html TYPE REF TO zif_abapgit_html
!iv_filename TYPE string
!is_diff_line TYPE zif_abapgit_definitions=>ty_diff
!iv_index TYPE sy-tabix
!iv_fstate TYPE char1
!iv_new TYPE string
!iv_old TYPE string
RAISING
zcx_abapgit_exception .
METHODS build_menu
RETURNING
VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar .
METHODS render_content
REDEFINITION .
PRIVATE SECTION.
CONSTANTS:
BEGIN OF c_actions,
toggle_unified TYPE string VALUE 'toggle_unified',
END OF c_actions .
DATA mt_delayed_lines TYPE zif_abapgit_definitions=>ty_diffs_tt .
DATA mv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key .
DATA mv_seed TYPE string . " Unique page id to bind JS sessionStorage
METHODS render_diff
IMPORTING
!is_diff TYPE ty_file_diff
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_diff_head
IMPORTING
!is_diff TYPE ty_file_diff
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html .
METHODS render_table_head
IMPORTING
!is_diff TYPE ty_file_diff
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_beacon
IMPORTING
!is_diff_line TYPE zif_abapgit_definitions=>ty_diff
!is_diff TYPE ty_file_diff
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html .
METHODS render_line_split
IMPORTING
!is_diff_line TYPE zif_abapgit_definitions=>ty_diff
!iv_filename TYPE string
!iv_fstate TYPE char1
!iv_index TYPE sy-tabix
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_line_unified
IMPORTING
!is_diff_line TYPE zif_abapgit_definitions=>ty_diff OPTIONAL
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html .
METHODS append_diff
IMPORTING
!it_remote TYPE zif_abapgit_definitions=>ty_files_tt
!it_local TYPE zif_abapgit_definitions=>ty_files_item_tt
!is_status TYPE zif_abapgit_definitions=>ty_result
RAISING
zcx_abapgit_exception .
METHODS is_binary
IMPORTING
!iv_d1 TYPE xstring
!iv_d2 TYPE xstring
RETURNING
VALUE(rv_yes) TYPE abap_bool .
METHODS add_jump_sub_menu
IMPORTING
!io_menu TYPE REF TO zcl_abapgit_html_toolbar .
METHODS add_filter_sub_menu
IMPORTING
!io_menu TYPE REF TO zcl_abapgit_html_toolbar .
METHODS render_lines
IMPORTING
!is_diff TYPE ty_file_diff
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_table_head_unified
IMPORTING
!io_html TYPE REF TO zcl_abapgit_html .
METHODS render_scripts
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS filter_diff_by_files
IMPORTING
!it_files TYPE zif_abapgit_definitions=>ty_stage_tt
CHANGING
!ct_diff_files TYPE tt_file_diff .
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE_DIFF IMPLEMENTATION.
METHOD add_filter_sub_menu.
DATA:
lo_sub_filter TYPE REF TO zcl_abapgit_html_toolbar,
lt_types TYPE string_table,
lt_users TYPE string_table.
FIELD-SYMBOLS: <ls_diff> LIKE LINE OF mt_diff_files,
<lv_i> TYPE string.
" Get unique
LOOP AT mt_diff_files ASSIGNING <ls_diff>.
APPEND <ls_diff>-type TO lt_types.
APPEND <ls_diff>-changed_by TO lt_users.
ENDLOOP.
SORT lt_types.
DELETE ADJACENT DUPLICATES FROM lt_types.
SORT lt_users.
DELETE ADJACENT DUPLICATES FROM lt_users.
IF lines( lt_types ) > 1 OR lines( lt_users ) > 1.
CREATE OBJECT lo_sub_filter EXPORTING iv_id = 'diff-filter'.
" File types
IF lines( lt_types ) > 1.
lo_sub_filter->add( iv_txt = 'TYPE'
iv_typ = zif_abapgit_html=>c_action_type-separator ).
LOOP AT lt_types ASSIGNING <lv_i>.
lo_sub_filter->add( iv_txt = <lv_i>
iv_typ = zif_abapgit_html=>c_action_type-onclick
iv_aux = 'type'
iv_chk = abap_true ).
ENDLOOP.
ENDIF.
" Changed by
IF lines( lt_users ) > 1.
lo_sub_filter->add( iv_txt = 'CHANGED BY'
iv_typ = zif_abapgit_html=>c_action_type-separator ).
LOOP AT lt_users ASSIGNING <lv_i>.
lo_sub_filter->add( iv_txt = <lv_i>
iv_typ = zif_abapgit_html=>c_action_type-onclick
iv_aux = 'changed-by'
iv_chk = abap_true ).
ENDLOOP.
ENDIF.
io_menu->add( iv_txt = 'Filter'
io_sub = lo_sub_filter ).
ENDIF.
ENDMETHOD.
METHOD add_jump_sub_menu.
DATA: lo_sub_jump TYPE REF TO zcl_abapgit_html_toolbar,
lv_jump_target TYPE string.
FIELD-SYMBOLS: <ls_diff> LIKE LINE OF mt_diff_files.
CREATE OBJECT lo_sub_jump EXPORTING iv_id = 'jump'.
LOOP AT mt_diff_files ASSIGNING <ls_diff>.
lv_jump_target = <ls_diff>-path && <ls_diff>-filename.
lo_sub_jump->add(
iv_id = |li_jump_{ sy-tabix }|
iv_txt = lv_jump_target
iv_typ = zif_abapgit_html=>c_action_type-onclick ).
ENDLOOP.
io_menu->add( iv_txt = 'Jump'
io_sub = lo_sub_jump ).
ENDMETHOD.
METHOD add_menu_begin.
ENDMETHOD.
METHOD add_menu_end.
io_menu->add( iv_txt = 'Split/Unified view'
iv_act = c_actions-toggle_unified ).
ENDMETHOD.
METHOD append_diff.
DATA:
lv_offs TYPE i,
ls_r_dummy LIKE LINE OF it_remote ##NEEDED,
ls_l_dummy LIKE LINE OF it_local ##NEEDED.
FIELD-SYMBOLS: <ls_remote> LIKE LINE OF it_remote,
<ls_local> LIKE LINE OF it_local,
<ls_diff> LIKE LINE OF mt_diff_files.
READ TABLE it_remote ASSIGNING <ls_remote>
WITH KEY filename = is_status-filename
path = is_status-path.
IF sy-subrc <> 0.
ASSIGN ls_r_dummy TO <ls_remote>.
ENDIF.
READ TABLE it_local ASSIGNING <ls_local>
WITH KEY file-filename = is_status-filename
file-path = is_status-path.
IF sy-subrc <> 0.
ASSIGN ls_l_dummy TO <ls_local>.
ENDIF.
IF <ls_local> IS INITIAL AND <ls_remote> IS INITIAL.
zcx_abapgit_exception=>raise( |DIFF: file not found { is_status-filename }| ).
ENDIF.
APPEND INITIAL LINE TO mt_diff_files ASSIGNING <ls_diff>.
<ls_diff>-path = is_status-path.
<ls_diff>-filename = is_status-filename.
<ls_diff>-obj_type = is_status-obj_type.
<ls_diff>-obj_name = is_status-obj_name.
<ls_diff>-lstate = is_status-lstate.
<ls_diff>-rstate = is_status-rstate.
IF <ls_diff>-lstate IS NOT INITIAL AND <ls_diff>-rstate IS NOT INITIAL.
<ls_diff>-fstate = c_fstate-both.
ELSEIF <ls_diff>-lstate IS NOT INITIAL.
<ls_diff>-fstate = c_fstate-local.
ELSE. "rstate IS NOT INITIAL, lstate = empty.
<ls_diff>-fstate = c_fstate-remote.
ENDIF.
" Changed by
IF <ls_local>-item-obj_type IS NOT INITIAL.
<ls_diff>-changed_by = to_lower( zcl_abapgit_objects=>changed_by( <ls_local>-item ) ).
ENDIF.
IF <ls_diff>-changed_by IS INITIAL.
<ls_diff>-changed_by = to_lower( zcl_abapgit_objects_super=>c_user_unknown ).
ENDIF.
" Extension
IF <ls_local>-file-filename IS NOT INITIAL.
<ls_diff>-type = reverse( <ls_local>-file-filename ).
ELSE.
<ls_diff>-type = reverse( <ls_remote>-filename ).
ENDIF.
FIND FIRST OCCURRENCE OF '.' IN <ls_diff>-type MATCH OFFSET lv_offs.
<ls_diff>-type = reverse( substring( val = <ls_diff>-type
len = lv_offs ) ).
IF <ls_diff>-type <> 'xml' AND <ls_diff>-type <> 'abap'.
<ls_diff>-type = 'other'.
ENDIF.
IF <ls_diff>-type = 'other'
AND is_binary( iv_d1 = <ls_remote>-data
iv_d2 = <ls_local>-file-data ) = abap_true.
<ls_diff>-type = 'binary'.
ENDIF.
" Diff data
IF <ls_diff>-type <> 'binary'.
IF <ls_diff>-fstate = c_fstate-remote. " Remote file leading changes
CREATE OBJECT <ls_diff>-o_diff
EXPORTING
iv_new = <ls_remote>-data
iv_old = <ls_local>-file-data.
ELSE. " Local leading changes or both were modified
CREATE OBJECT <ls_diff>-o_diff
EXPORTING
iv_new = <ls_local>-file-data
iv_old = <ls_remote>-data.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD build_menu.
CREATE OBJECT ro_menu.
add_menu_begin( ro_menu ).
add_jump_sub_menu( ro_menu ).
add_filter_sub_menu( ro_menu ).
add_menu_end( ro_menu ).
ENDMETHOD.
METHOD calculate_diff.
DATA: lt_remote TYPE zif_abapgit_definitions=>ty_files_tt,
lt_local TYPE zif_abapgit_definitions=>ty_files_item_tt,
lt_status TYPE zif_abapgit_definitions=>ty_results_tt.
FIELD-SYMBOLS: <ls_status> LIKE LINE OF lt_status.
CLEAR: mt_diff_files.
lt_remote = mo_repo->get_files_remote( ).
lt_local = mo_repo->get_files_local( ).
mo_repo->reset_status( ).
lt_status = mo_repo->status( ).
IF is_file IS NOT INITIAL. " Diff for one file
READ TABLE lt_status ASSIGNING <ls_status>
WITH KEY path = is_file-path filename = is_file-filename.
append_diff( it_remote = lt_remote
it_local = lt_local
is_status = <ls_status> ).
ELSEIF is_object IS NOT INITIAL. " Diff for whole object
LOOP AT lt_status ASSIGNING <ls_status>
WHERE obj_type = is_object-obj_type
AND obj_name = is_object-obj_name
AND match IS INITIAL.
append_diff( it_remote = lt_remote
it_local = lt_local
is_status = <ls_status> ).
ENDLOOP.
ELSE. " Diff for the whole repo
SORT lt_status BY
path ASCENDING
filename ASCENDING.
LOOP AT lt_status ASSIGNING <ls_status> WHERE match IS INITIAL.
append_diff( it_remote = lt_remote
it_local = lt_local
is_status = <ls_status> ).
ENDLOOP.
ENDIF.
filter_diff_by_files(
EXPORTING
it_files = it_files
CHANGING
ct_diff_files = mt_diff_files ).
ENDMETHOD.
METHOD constructor.
DATA: lv_ts TYPE timestamp.
super->constructor( ).
ms_control-page_title = 'Diff'.
mv_unified = zcl_abapgit_persistence_user=>get_instance( )->get_diff_unified( ).
mv_repo_key = iv_key.
mo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
GET TIME STAMP FIELD lv_ts.
mv_seed = |diff{ lv_ts }|. " Generate based on time
ASSERT is_file IS INITIAL OR is_object IS INITIAL. " just one passed
calculate_diff(
is_file = is_file
is_object = is_object
it_files = it_files ).
IF lines( mt_diff_files ) = 0.
zcx_abapgit_exception=>raise( 'PAGE_DIFF ERROR: No diff files found' ).
ENDIF.
ms_control-page_menu = build_menu( ).
ENDMETHOD.
METHOD filter_diff_by_files.
FIELD-SYMBOLS: <ls_diff_file> TYPE ty_file_diff.
IF lines( it_files ) = 0.
RETURN.
ENDIF.
" Diff only for specified files
LOOP AT ct_diff_files ASSIGNING <ls_diff_file>.
READ TABLE it_files TRANSPORTING NO FIELDS
WITH KEY file-filename = <ls_diff_file>-filename.
IF sy-subrc <> 0.
DELETE TABLE ct_diff_files FROM <ls_diff_file>.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD get_normalized_fname_with_path.
rv_filename = normalize_path( is_diff-path )
&& `_`
&& normalize_filename( is_diff-filename ).
ENDMETHOD.
METHOD insert_nav.
ENDMETHOD.
METHOD is_binary.
FIELD-SYMBOLS <lv_data> LIKE iv_d1.
IF iv_d1 IS NOT INITIAL. " One of them might be new and so empty
ASSIGN iv_d1 TO <lv_data>.
ELSE.
ASSIGN iv_d2 TO <lv_data>.
ENDIF.
rv_yes = zcl_abapgit_utils=>is_binary( <lv_data> ).
ENDMETHOD.
METHOD normalize_filename.
rv_normalized = replace( val = iv_filename
sub = '.'
occ = 0
with = '_' ).
ENDMETHOD.
METHOD normalize_path.
rv_normalized = replace( val = iv_path
sub = '/'
occ = 0
with = '_' ).
ENDMETHOD.
METHOD render_beacon.
DATA: lv_beacon TYPE string,
lt_beacons TYPE zif_abapgit_definitions=>ty_string_tt.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
IF is_diff_line-beacon > 0.
lt_beacons = is_diff-o_diff->get_beacons( ).
READ TABLE lt_beacons INTO lv_beacon INDEX is_diff_line-beacon.
ELSE.
lv_beacon = '---'.
ENDIF.
ri_html->add( '<thead class="nav_line">' ).
ri_html->add( '<tr>' ).
render_beacon_begin_of_row(
ii_html = ri_html
is_diff = is_diff ).
IF mv_unified = abap_true.
ri_html->add( '<th class="num"></th>' ).
ri_html->add( '<th class="mark"></th>' ).
ri_html->add( |<th>@@ { is_diff_line-new_num } @@ { lv_beacon }</th>| ).
ELSE.
ri_html->add( |<th colspan="6">@@ { is_diff_line-new_num } @@ { lv_beacon }</th>| ).
ENDIF.
ri_html->add( '</tr>' ).
ri_html->add( '</thead>' ).
ENDMETHOD.
METHOD render_beacon_begin_of_row.
ii_html->add( '<th class="num"></th>' ).
ENDMETHOD.
METHOD render_content.
DATA: ls_diff_file LIKE LINE OF mt_diff_files,
li_progress TYPE REF TO zif_abapgit_progress.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
li_progress = zcl_abapgit_progress=>get_instance( lines( mt_diff_files ) ).
ri_html->add( `<div class="repo">` ).
ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( mo_repo ) ).
ri_html->add( `</div>` ).
ri_html->add( |<div id="diff-list" data-repo-key="{ mv_repo_key }">| ).
ri_html->add( zcl_abapgit_gui_chunk_lib=>render_js_error_banner( ) ).
LOOP AT mt_diff_files INTO ls_diff_file.
li_progress->show(
iv_current = sy-tabix
iv_text = |Render Diff - { ls_diff_file-filename }| ).
ri_html->add( render_diff( ls_diff_file ) ).
ENDLOOP.
IF sy-subrc <> 0.
ri_html->add( |No more diffs| ).
ENDIF.
ri_html->add( '</div>' ).
register_deferred_script( render_scripts( ) ).
ENDMETHOD.
METHOD render_diff.
CREATE OBJECT ro_html.
ro_html->add( |<div class="diff" data-type="{ is_diff-type
}" data-changed-by="{ is_diff-changed_by
}" data-file="{ is_diff-path && is_diff-filename }">| ).
ro_html->add( render_diff_head( is_diff ) ).
" Content
IF is_diff-type <> 'binary'.
ro_html->add( '<div class="diff_content">' ).
ro_html->add( |<table class="diff_tab syntax-hl" id={ is_diff-filename }>| ).
ro_html->add( render_table_head( is_diff ) ).
ro_html->add( render_lines( is_diff ) ).
ro_html->add( '</table>' ).
ELSE.
ro_html->add( '<div class="diff_content paddings center grey">' ).
ro_html->add( 'The content seems to be binary.' ).
ro_html->add( 'Cannot display as diff.' ).
ENDIF.
ro_html->add( '</div>' ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD render_diff_head.
DATA: ls_stats TYPE zif_abapgit_definitions=>ty_count,
lv_adt_link TYPE string.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<div class="diff_head">' ).
ri_html->add_icon(
iv_name = 'chevron-down'
iv_hint = 'Collapse/Expand'
iv_class = 'cursor-pointer'
iv_onclick = 'onDiffCollapse(event)' ).
IF is_diff-type <> 'binary'.
ls_stats = is_diff-o_diff->stats( ).
IF is_diff-fstate = c_fstate-both. " Merge stats into 'update' if both were changed
ls_stats-update = ls_stats-update + ls_stats-insert + ls_stats-delete.
CLEAR: ls_stats-insert, ls_stats-delete.
ENDIF.
ri_html->add( |<span class="diff_banner diff_ins">+ { ls_stats-insert }</span>| ).
ri_html->add( |<span class="diff_banner diff_del">- { ls_stats-delete }</span>| ).
ri_html->add( |<span class="diff_banner diff_upd">~ { ls_stats-update }</span>| ).
ENDIF.
" no links for nonexistent or deleted objects
IF is_diff-lstate IS NOT INITIAL AND is_diff-lstate <> 'D'.
lv_adt_link = ri_html->a(
iv_txt = |{ is_diff-path }{ is_diff-filename }|
iv_typ = zif_abapgit_html=>c_action_type-sapevent
iv_act = |jump?TYPE={ is_diff-obj_type }&NAME={ is_diff-obj_name }| ).
ENDIF.
IF lv_adt_link IS NOT INITIAL.
ri_html->add( |<span class="diff_name">{ lv_adt_link }</span>| ).
ELSE.
ri_html->add( |<span class="diff_name">{ is_diff-path }{ is_diff-filename }</span>| ).
ENDIF.
ri_html->add( zcl_abapgit_gui_chunk_lib=>render_item_state(
iv_lstate = is_diff-lstate
iv_rstate = is_diff-rstate ) ).
render_diff_head_after_state(
ii_html = ri_html
is_diff = is_diff ).
ri_html->add( |<span class="diff_changed_by">Last Changed by: <span class="user">{
is_diff-changed_by }</span></span>| ).
ri_html->add( '</div>' ).
ENDMETHOD.
METHOD render_diff_head_after_state.
IF is_diff-fstate = c_fstate-both AND mv_unified = abap_true.
ii_html->add( '<span class="attention pad-sides">Attention: Unified mode'
&& ' highlighting for MM assumes local file is newer ! </span>' ).
ENDIF.
ENDMETHOD.
METHOD render_lines.
DATA: lo_highlighter TYPE REF TO zcl_abapgit_syntax_highlighter,
lt_diffs TYPE zif_abapgit_definitions=>ty_diffs_tt,
lv_insert_nav TYPE abap_bool,
lv_tabix TYPE syst-tabix.
FIELD-SYMBOLS <ls_diff> LIKE LINE OF lt_diffs.
lo_highlighter = zcl_abapgit_syntax_highlighter=>create( is_diff-filename ).
CREATE OBJECT ro_html.
lt_diffs = is_diff-o_diff->get( ).
lv_insert_nav = insert_nav( ).
LOOP AT lt_diffs ASSIGNING <ls_diff>.
lv_tabix = sy-tabix.
IF <ls_diff>-short = abap_false.
lv_insert_nav = abap_true.
CONTINUE.
ENDIF.
IF lv_insert_nav = abap_true. " Insert separator line with navigation
ro_html->add( render_beacon( is_diff_line = <ls_diff>
is_diff = is_diff ) ).
lv_insert_nav = abap_false.
ENDIF.
IF lo_highlighter IS BOUND.
<ls_diff>-new = lo_highlighter->process_line( <ls_diff>-new ).
<ls_diff>-old = lo_highlighter->process_line( <ls_diff>-old ).
ELSE.
<ls_diff>-new = escape( val = <ls_diff>-new
format = cl_abap_format=>e_html_attr ).
<ls_diff>-old = escape( val = <ls_diff>-old
format = cl_abap_format=>e_html_attr ).
ENDIF.
CONDENSE <ls_diff>-new_num. "get rid of leading spaces
CONDENSE <ls_diff>-old_num.
IF mv_unified = abap_true.
ro_html->add( render_line_unified( is_diff_line = <ls_diff> ) ).
ELSE.
ro_html->add( render_line_split( is_diff_line = <ls_diff>
iv_filename = get_normalized_fname_with_path( is_diff )
iv_fstate = is_diff-fstate
iv_index = lv_tabix ) ).
ENDIF.
ENDLOOP.
IF mv_unified = abap_true.
ro_html->add( render_line_unified( ) ). " Release delayed lines
ENDIF.
ENDMETHOD.
METHOD render_line_split.
DATA: lv_new TYPE string,
lv_old TYPE string,
lv_mark TYPE string,
lv_bg TYPE string.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
" New line
lv_mark = ` `.
IF is_diff_line-result IS NOT INITIAL.
IF iv_fstate = c_fstate-both OR is_diff_line-result = zif_abapgit_definitions=>c_diff-update.
lv_bg = ' diff_upd'.
lv_mark = `~`.
ELSEIF is_diff_line-result = zif_abapgit_definitions=>c_diff-insert.
lv_bg = ' diff_ins'.
lv_mark = `+`.
ENDIF.
ENDIF.
lv_new = |<td class="num diff_others" line-num="{ is_diff_line-new_num }"></td>|
&& |<td class="mark diff_others">{ lv_mark }</td>|
&& |<td class="code{ lv_bg } diff_left">{ is_diff_line-new }</td>|.
" Old line
CLEAR lv_bg.
lv_mark = ` `.
IF is_diff_line-result IS NOT INITIAL.
IF iv_fstate = c_fstate-both OR is_diff_line-result = zif_abapgit_definitions=>c_diff-update.
lv_bg = ' diff_upd'.
lv_mark = `~`.
ELSEIF is_diff_line-result = zif_abapgit_definitions=>c_diff-delete.
lv_bg = ' diff_del'.
lv_mark = `-`.
ENDIF.
ENDIF.
lv_old = |<td class="num diff_others" line-num="{ is_diff_line-old_num }"></td>|
&& |<td class="mark diff_others">{ lv_mark }</td>|
&& |<td class="code{ lv_bg } diff_right">{ is_diff_line-old }</td>|.
" render line, inverse sides if remote is newer
ri_html->add( '<tr>' ).
render_line_split_row(
ii_html = ri_html
iv_filename = iv_filename
is_diff_line = is_diff_line
iv_index = iv_index
iv_fstate = iv_fstate
iv_old = lv_old
iv_new = lv_new ).
ri_html->add( '</tr>' ).
ENDMETHOD.
METHOD render_line_split_row.
IF iv_fstate = c_fstate-remote. " Remote file leading changes
ii_html->add( iv_old ). " local
ii_html->add( iv_new ). " remote
ELSE. " Local leading changes or both were modified
ii_html->add( iv_new ). " local
ii_html->add( iv_old ). " remote
ENDIF.
ENDMETHOD.
METHOD render_line_unified.
FIELD-SYMBOLS <ls_diff_line> LIKE LINE OF mt_delayed_lines.
CREATE OBJECT ro_html.
" Release delayed subsequent update lines
IF is_diff_line-result <> zif_abapgit_definitions=>c_diff-update.
LOOP AT mt_delayed_lines ASSIGNING <ls_diff_line>.
ro_html->add( '<tr>' ).
ro_html->add( |<td class="num diff_others" line-num="{ <ls_diff_line>-old_num }"></td>|
&& |<td class="num diff_others" line-num=""></td>|
&& |<td class="mark diff_others">-</td>|
&& |<td class="code diff_del diff_unified">{ <ls_diff_line>-old }</td>| ).
ro_html->add( '</tr>' ).
ENDLOOP.
LOOP AT mt_delayed_lines ASSIGNING <ls_diff_line>.
ro_html->add( '<tr>' ).
ro_html->add( |<td class="num diff_others" line-num=""></td>|
&& |<td class="num diff_others" line-num="{ <ls_diff_line>-new_num }"></td>|
&& |<td class="mark diff_others">+</td>|
&& |<td class="code diff_ins diff_others">{ <ls_diff_line>-new }</td>| ).
ro_html->add( '</tr>' ).
ENDLOOP.
CLEAR mt_delayed_lines.
ENDIF.
ro_html->add( '<tr>' ).
CASE is_diff_line-result.
WHEN zif_abapgit_definitions=>c_diff-update.
APPEND is_diff_line TO mt_delayed_lines. " Delay output of subsequent updates
WHEN zif_abapgit_definitions=>c_diff-insert.
ro_html->add( |<td class="num diff_others" line-num=""></td>|
&& |<td class="num diff_others" line-num="{ is_diff_line-new_num }"></td>|
&& |<td class="mark diff_others">+</td>|
&& |<td class="code diff_ins diff_others">{ is_diff_line-new }</td>| ).
WHEN zif_abapgit_definitions=>c_diff-delete.
ro_html->add( |<td class="num diff_others" line-num="{ is_diff_line-old_num }"></td>|
&& |<td class="num diff_others" line-num=""></td>|
&& |<td class="mark diff_others">-</td>|
&& |<td class="code diff_del diff_unified">{ is_diff_line-old }</td>| ).
WHEN OTHERS. "none
ro_html->add( |<td class="num diff_others" line-num="{ is_diff_line-old_num }"></td>|
&& |<td class="num diff_others" line-num="{ is_diff_line-new_num }"></td>|
&& |<td class="mark diff_others"> </td>|
&& |<td class="code diff_unified">{ is_diff_line-old }</td>| ).
ENDCASE.
ro_html->add( '</tr>' ).
ENDMETHOD.
METHOD render_scripts.
CREATE OBJECT ro_html.
ro_html->zif_abapgit_html~set_title( cl_abap_typedescr=>describe_by_object_ref( me )->get_relative_name( ) ).
ro_html->add( 'restoreScrollPosition();' ).
ro_html->add( 'var gHelper = new DiffHelper({' ).
ro_html->add( | seed: "{ mv_seed }",| ).
ro_html->add( ' ids: {' ).
ro_html->add( ' jump: "jump",' ).
ro_html->add( ' diffList: "diff-list",' ).
ro_html->add( ' filterMenu: "diff-filter",' ).
ro_html->add( ' }' ).
ro_html->add( '});' ).
ro_html->add( 'addMarginBottom();' ).
ro_html->add( 'var gGoJumpPalette = new CommandPalette(enumerateJumpAllFiles, {' ).
ro_html->add( ' toggleKey: "F2",' ).
ro_html->add( ' hotkeyDescription: "Jump to file ..."' ).
ro_html->add( '});' ).
" Feature for selecting ABAP code by column and copy to clipboard
ro_html->add( 'var columnSelection = new DiffColumnSelection();' ).
ENDMETHOD.
METHOD render_table_head.
CREATE OBJECT ro_html.
ro_html->add( '<thead class="header">' ).
ro_html->add( '<tr>' ).
IF mv_unified = abap_true.
render_table_head_unified( ro_html ).
ELSE.
render_table_head_non_unified(
io_html = ro_html
is_diff = is_diff ).
ENDIF.
ro_html->add( '</tr>' ).
ro_html->add( '</thead>' ).
ENDMETHOD.
METHOD render_table_head_non_unified.
io_html->add( '<th class="num"></th>' ).
io_html->add( '<th class="mark"></th>' ).
io_html->add( '<th>LOCAL</th>' ).
io_html->add( '<th class="num"></th>' ).
io_html->add( '<th class="mark"></th>' ).
io_html->add( '<th>REMOTE</th>' ).
ENDMETHOD.
METHOD render_table_head_unified.
io_html->add( '<th class="num">old</th>' ).
io_html->add( '<th class="num">new</th>' ).
io_html->add( '<th class="mark"></th>' ).
io_html->add( '<th>code</th>' ).
ENDMETHOD.
METHOD zif_abapgit_gui_event_handler~on_event.
CASE iv_action.
WHEN c_actions-toggle_unified. " Toggle file diplay
mv_unified = zcl_abapgit_persistence_user=>get_instance( )->toggle_diff_unified( ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN OTHERS.
super->zif_abapgit_gui_event_handler~on_event(
EXPORTING
iv_action = iv_action
iv_getdata = iv_getdata
it_postdata = it_postdata
IMPORTING
ei_page = ei_page
ev_state = ev_state ).
ENDCASE.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
26069,
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,
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,
1259,
62,
7753,
62,
26069,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3108,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
29472,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
4906,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
3672,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
5219,
220,
220,
220,
220,
41876,
1149,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
374,
5219,
220,
220,
220,
220,
41876,
1149,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
277,
5219,
220,
220,
220,
220,
41876,
1149,
16,
11,
366,
45811,
1181,
532,
2275,
301,
7861,
329,
12238,
611,
82,
198,
220,
220,
220,
220,
220,
220,
220,
267,
62,
26069,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
26069,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3421,
62,
1525,
41876,
2124,
549,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
7753,
62,
26069,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
83,
62,
7753,
62,
26069,
41876,
49053,
9795,
43679,
3963,
1259,
62,
7753,
62,
26069,
198,
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,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
311,
9863,
1961,
35374,
9233,
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,
24301,
1340,
15365,
3108,
29472,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
69,
5219,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1957,
220,
41876,
1149,
16,
26173,
8924,
705,
43,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
6569,
41876,
1149,
16,
26173,
8924,
705,
49,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1111,
220,
220,
41876,
1149,
16,
26173,
8924,
705,
33,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
69,
5219,
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,
2539,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
7753,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
15252,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
16624,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
14247,
62,
926,
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,
13,
628,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
93,
261,
62,
15596,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
42865,
285,
85,
62,
403,
1431,
41876,
450,
499,
62,
30388,
26173,
8924,
450,
499,
62,
7942,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
42865,
6941,
62,
260,
7501,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
764,
198,
220,
220,
220,
42865,
45079,
62,
26069,
62,
16624,
41876,
256,
83,
62,
7753,
62,
26069,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
11265,
1143,
62,
69,
3672,
62,
4480,
62,
6978,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
26069,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
7753,
62,
26069,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
34345,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
3487,
1096,
62,
6978,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6978,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
11265,
1143,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
3487,
1096,
62,
34345,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
34345,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
11265,
1143,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
26272,
62,
437,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! @testing /DMO/CL_I_TRAVEL_TUM
"! @testing /DMO/CL_C_TRAVEL_TUM
"! @testing /DMO/CL_FLIGHT_LEGACY18
"! @testing FUGR:/DMO/FLIGHT_TRAVEL_API18
CLASS ltc DEFINITION FINAL INHERITING FROM /dmo/tc_flight_travel_api18 FOR TESTING RISK LEVEL HARMLESS DURATION MEDIUM.
ENDCLASS.
| [
40484,
2488,
33407,
1220,
35,
11770,
14,
5097,
62,
40,
62,
51,
3861,
18697,
62,
51,
5883,
198,
40484,
2488,
33407,
1220,
35,
11770,
14,
5097,
62,
34,
62,
51,
3861,
18697,
62,
51,
5883,
198,
40484,
2488,
33407,
1220,
35,
11770,
14,
5097,
62,
3697,
9947,
62,
2538,
38,
43300,
1507,
198,
40484,
2488,
33407,
376,
7340,
49,
14079,
35,
11770,
14,
3697,
9947,
62,
51,
3861,
18697,
62,
17614,
1507,
198,
31631,
300,
23047,
5550,
20032,
17941,
25261,
3268,
16879,
2043,
2751,
16034,
1220,
67,
5908,
14,
23047,
62,
22560,
62,
35927,
62,
15042,
1507,
7473,
43001,
2751,
45698,
42,
49277,
43638,
5805,
7597,
360,
4261,
6234,
26112,
41796,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZAGIT_CLASS definition
public
create public .
public section.
data DATAELEMENT type ZAGIT_DTEL_REF_TO_CLASS .
data STRUCTURE type ZAGIT_STRUCTURE .
data TABLETYPE_STRUCTURE type ZAGIT_TTYP_STRUCTURE .
data TABLETYPE_REF_TO_CLASS type ZAGIT_TTYP_REF_TO_CLASS .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZAGIT_CLASS IMPLEMENTATION.
ENDCLASS.
| [
4871,
1168,
4760,
2043,
62,
31631,
6770,
198,
220,
1171,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
1366,
42865,
36,
2538,
10979,
2099,
1168,
4760,
2043,
62,
24544,
3698,
62,
31688,
62,
10468,
62,
31631,
764,
198,
220,
1366,
19269,
18415,
11335,
2099,
1168,
4760,
2043,
62,
46126,
11335,
764,
198,
220,
1366,
43679,
25216,
62,
46126,
11335,
2099,
1168,
4760,
2043,
62,
51,
9936,
47,
62,
46126,
11335,
764,
198,
220,
1366,
43679,
25216,
62,
31688,
62,
10468,
62,
31631,
2099,
1168,
4760,
2043,
62,
51,
9936,
47,
62,
31688,
62,
10468,
62,
31631,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
4760,
2043,
62,
31631,
30023,
2538,
10979,
6234,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_git_porcelain DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
TYPES:
BEGIN OF ty_pull_result,
files TYPE zif_abapgit_definitions=>ty_files_tt,
objects TYPE zif_abapgit_definitions=>ty_objects_tt,
commit TYPE zif_abapgit_definitions=>ty_sha1,
END OF ty_pull_result .
TYPES:
BEGIN OF ty_push_result,
new_files TYPE zif_abapgit_definitions=>ty_files_tt,
branch TYPE zif_abapgit_definitions=>ty_sha1,
updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt,
new_objects TYPE zif_abapgit_definitions=>ty_objects_tt,
END OF ty_push_result .
CLASS-METHODS pull_by_branch
IMPORTING
!iv_url TYPE string
!iv_branch_name TYPE string
!iv_deepen_level TYPE i DEFAULT 1
RETURNING
VALUE(rs_result) TYPE ty_pull_result
RAISING
zcx_abapgit_exception .
CLASS-METHODS pull_by_commit
IMPORTING
!iv_url TYPE string
!iv_commit_hash TYPE zif_abapgit_definitions=>ty_sha1
!iv_deepen_level TYPE i DEFAULT 1
RETURNING
VALUE(rs_result) TYPE ty_pull_result
RAISING
zcx_abapgit_exception .
CLASS-METHODS push
IMPORTING
!is_comment TYPE zif_abapgit_definitions=>ty_comment
!io_stage TYPE REF TO zcl_abapgit_stage
!it_old_objects TYPE zif_abapgit_definitions=>ty_objects_tt
!iv_parent TYPE zif_abapgit_definitions=>ty_sha1
!iv_url TYPE string
!iv_branch_name TYPE string
RETURNING
VALUE(rs_result) TYPE ty_push_result
RAISING
zcx_abapgit_exception .
CLASS-METHODS create_branch
IMPORTING
!iv_url TYPE string
!iv_name TYPE string
!iv_from TYPE zif_abapgit_definitions=>ty_sha1
RAISING
zcx_abapgit_exception .
CLASS-METHODS create_tag
IMPORTING
!iv_url TYPE string
!is_tag TYPE zif_abapgit_definitions=>ty_git_tag
RAISING
zcx_abapgit_exception .
CLASS-METHODS delete_branch
IMPORTING
!iv_url TYPE string
!is_branch TYPE zif_abapgit_definitions=>ty_git_branch
RAISING
zcx_abapgit_exception .
CLASS-METHODS delete_tag
IMPORTING
!iv_url TYPE string
!is_tag TYPE zif_abapgit_definitions=>ty_git_tag
RAISING
zcx_abapgit_exception .
CLASS-METHODS full_tree
IMPORTING
!it_objects TYPE zif_abapgit_definitions=>ty_objects_tt
!iv_parent TYPE zif_abapgit_definitions=>ty_sha1
RETURNING
VALUE(rt_expanded) TYPE zif_abapgit_definitions=>ty_expanded_tt
RAISING
zcx_abapgit_exception .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_tree,
path TYPE string,
data TYPE xstring,
sha1 TYPE zif_abapgit_definitions=>ty_sha1,
END OF ty_tree .
TYPES:
ty_trees_tt TYPE STANDARD TABLE OF ty_tree WITH DEFAULT KEY .
TYPES:
BEGIN OF ty_folder,
path TYPE string,
count TYPE i,
sha1 TYPE zif_abapgit_definitions=>ty_sha1,
END OF ty_folder .
TYPES:
ty_folders_tt TYPE STANDARD TABLE OF ty_folder WITH DEFAULT KEY .
CONSTANTS c_zero TYPE zif_abapgit_definitions=>ty_sha1 VALUE '0000000000000000000000000000000000000000' ##NO_TEXT.
CLASS-METHODS build_trees
IMPORTING
!it_expanded TYPE zif_abapgit_definitions=>ty_expanded_tt
RETURNING
VALUE(rt_trees) TYPE ty_trees_tt
RAISING
zcx_abapgit_exception .
CLASS-METHODS find_folders
IMPORTING
!it_expanded TYPE zif_abapgit_definitions=>ty_expanded_tt
RETURNING
VALUE(rt_folders) TYPE ty_folders_tt .
CLASS-METHODS pull
IMPORTING
!iv_commit TYPE zif_abapgit_definitions=>ty_sha1
!it_objects TYPE zif_abapgit_definitions=>ty_objects_tt
RETURNING
VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt
RAISING
zcx_abapgit_exception.
CLASS-METHODS walk
IMPORTING
!it_objects TYPE zif_abapgit_definitions=>ty_objects_tt
!iv_sha1 TYPE zif_abapgit_definitions=>ty_sha1
!iv_path TYPE string
CHANGING
!ct_files TYPE zif_abapgit_definitions=>ty_files_tt
RAISING
zcx_abapgit_exception .
CLASS-METHODS walk_tree
IMPORTING
!it_objects TYPE zif_abapgit_definitions=>ty_objects_tt
!iv_tree TYPE zif_abapgit_definitions=>ty_sha1
!iv_base TYPE string
RETURNING
VALUE(rt_expanded) TYPE zif_abapgit_definitions=>ty_expanded_tt
RAISING
zcx_abapgit_exception .
CLASS-METHODS receive_pack_push
IMPORTING
!is_comment TYPE zif_abapgit_definitions=>ty_comment
!it_trees TYPE ty_trees_tt
!it_blobs TYPE zif_abapgit_definitions=>ty_files_tt
!iv_parent TYPE zif_abapgit_definitions=>ty_sha1
!iv_parent2 TYPE zif_abapgit_definitions=>ty_sha1 OPTIONAL
!iv_url TYPE string
!iv_branch_name TYPE string
EXPORTING
!ev_new_commit TYPE zif_abapgit_definitions=>ty_sha1
!et_new_objects TYPE zif_abapgit_definitions=>ty_objects_tt
!ev_new_tree TYPE zif_abapgit_definitions=>ty_sha1
RAISING
zcx_abapgit_exception .
CLASS-METHODS receive_pack_create_tag
IMPORTING
!is_tag TYPE zif_abapgit_definitions=>ty_git_tag
!iv_url TYPE string
RAISING
zcx_abapgit_exception .
CLASS-METHODS create_annotated_tag
IMPORTING
!is_tag TYPE zif_abapgit_definitions=>ty_git_tag
!iv_url TYPE string
RAISING
zcx_abapgit_exception .
CLASS-METHODS create_lightweight_tag
IMPORTING
!is_tag TYPE zif_abapgit_definitions=>ty_git_tag
!iv_url TYPE string
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS ZCL_ABAPGIT_GIT_PORCELAIN IMPLEMENTATION.
METHOD build_trees.
DATA: lt_nodes TYPE zcl_abapgit_git_pack=>ty_nodes_tt,
ls_tree LIKE LINE OF rt_trees,
lv_len TYPE i,
lt_folders TYPE ty_folders_tt.
FIELD-SYMBOLS: <ls_folder> LIKE LINE OF lt_folders,
<ls_node> LIKE LINE OF lt_nodes,
<ls_sub> LIKE LINE OF lt_folders,
<ls_exp> LIKE LINE OF it_expanded.
lt_folders = find_folders( it_expanded ).
* start with the deepest folders
SORT lt_folders BY count DESCENDING.
LOOP AT lt_folders ASSIGNING <ls_folder>.
CLEAR lt_nodes.
* files
LOOP AT it_expanded ASSIGNING <ls_exp> WHERE path = <ls_folder>-path.
APPEND INITIAL LINE TO lt_nodes ASSIGNING <ls_node>.
<ls_node>-chmod = <ls_exp>-chmod.
<ls_node>-name = <ls_exp>-name.
<ls_node>-sha1 = <ls_exp>-sha1.
ENDLOOP.
* folders
LOOP AT lt_folders ASSIGNING <ls_sub> WHERE count = <ls_folder>-count + 1.
lv_len = strlen( <ls_folder>-path ).
IF strlen( <ls_sub>-path ) > lv_len AND <ls_sub>-path(lv_len) = <ls_folder>-path.
APPEND INITIAL LINE TO lt_nodes ASSIGNING <ls_node>.
<ls_node>-chmod = zif_abapgit_definitions=>c_chmod-dir.
* extract folder name, this can probably be done easier using regular expressions
<ls_node>-name = <ls_sub>-path+lv_len.
lv_len = strlen( <ls_node>-name ) - 1.
<ls_node>-name = <ls_node>-name(lv_len).
<ls_node>-sha1 = <ls_sub>-sha1.
ENDIF.
ENDLOOP.
CLEAR ls_tree.
ls_tree-path = <ls_folder>-path.
ls_tree-data = zcl_abapgit_git_pack=>encode_tree( lt_nodes ).
ls_tree-sha1 = zcl_abapgit_hash=>sha1_tree( ls_tree-data ).
APPEND ls_tree TO rt_trees.
<ls_folder>-sha1 = ls_tree-sha1.
ENDLOOP.
ENDMETHOD.
METHOD create_annotated_tag.
receive_pack_create_tag(
is_tag = is_tag
iv_url = iv_url ).
ENDMETHOD.
METHOD create_branch.
DATA: lt_objects TYPE zif_abapgit_definitions=>ty_objects_tt,
lv_pack TYPE xstring.
IF iv_name CS ` `.
zcx_abapgit_exception=>raise( 'Branch name cannot contain blank spaces' ).
ENDIF.
* "client MUST send an empty packfile"
* https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L514
lv_pack = zcl_abapgit_git_pack=>encode( lt_objects ).
zcl_abapgit_git_transport=>receive_pack(
iv_url = iv_url
iv_old = c_zero
iv_new = iv_from
iv_branch_name = iv_name
iv_pack = lv_pack ).
ENDMETHOD.
METHOD create_lightweight_tag.
DATA: lt_objects TYPE zif_abapgit_definitions=>ty_objects_tt,
lv_pack TYPE xstring.
* "client MUST send an empty packfile"
* https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L514
lv_pack = zcl_abapgit_git_pack=>encode( lt_objects ).
zcl_abapgit_git_transport=>receive_pack(
iv_url = iv_url
iv_old = c_zero
iv_new = is_tag-sha1
iv_branch_name = is_tag-name
iv_pack = lv_pack ).
ENDMETHOD.
METHOD create_tag.
IF is_tag-name CS ` `.
zcx_abapgit_exception=>raise( 'Tag name cannot contain blank spaces' ).
ENDIF.
CASE is_tag-type.
WHEN zif_abapgit_definitions=>c_git_branch_type-annotated_tag.
create_annotated_tag(
is_tag = is_tag
iv_url = iv_url ).
WHEN zif_abapgit_definitions=>c_git_branch_type-lightweight_tag.
create_lightweight_tag(
is_tag = is_tag
iv_url = iv_url ).
WHEN OTHERS.
zcx_abapgit_exception=>raise( |Invalid tag type: { is_tag-type }| ).
ENDCASE.
ENDMETHOD.
METHOD delete_branch.
DATA: lv_pack TYPE xstring.
* "client MUST send an empty packfile"
* https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L514
zcl_abapgit_git_transport=>receive_pack(
iv_url = iv_url
iv_old = is_branch-sha1
iv_new = c_zero
iv_branch_name = is_branch-name
iv_pack = lv_pack ).
ENDMETHOD.
METHOD delete_tag.
DATA: lt_objects TYPE zif_abapgit_definitions=>ty_objects_tt,
lv_pack TYPE xstring.
* "client MUST send an empty packfile"
* https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L514
lv_pack = zcl_abapgit_git_pack=>encode( lt_objects ).
zcl_abapgit_git_transport=>receive_pack(
iv_url = iv_url
iv_old = is_tag-sha1
iv_new = c_zero
iv_branch_name = is_tag-name
iv_pack = lv_pack ).
ENDMETHOD.
METHOD find_folders.
DATA: lt_paths TYPE TABLE OF string,
lv_split TYPE string,
lv_path TYPE string.
FIELD-SYMBOLS: <ls_folder> LIKE LINE OF rt_folders,
<ls_new> LIKE LINE OF rt_folders,
<ls_exp> LIKE LINE OF it_expanded.
LOOP AT it_expanded ASSIGNING <ls_exp>.
READ TABLE rt_folders WITH KEY path = <ls_exp>-path TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
APPEND INITIAL LINE TO rt_folders ASSIGNING <ls_folder>.
<ls_folder>-path = <ls_exp>-path.
ENDIF.
ENDLOOP.
* add empty folders
LOOP AT rt_folders ASSIGNING <ls_folder>.
SPLIT <ls_folder>-path AT '/' INTO TABLE lt_paths.
CLEAR lv_path.
LOOP AT lt_paths INTO lv_split.
CONCATENATE lv_path lv_split '/' INTO lv_path.
READ TABLE rt_folders WITH KEY path = lv_path TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
APPEND INITIAL LINE TO rt_folders ASSIGNING <ls_new>.
<ls_new>-path = lv_path.
ENDIF.
ENDLOOP.
ENDLOOP.
LOOP AT rt_folders ASSIGNING <ls_folder>.
FIND ALL OCCURRENCES OF '/' IN <ls_folder>-path MATCH COUNT <ls_folder>-count.
ENDLOOP.
ENDMETHOD.
METHOD full_tree.
DATA: ls_object LIKE LINE OF it_objects,
ls_commit TYPE zcl_abapgit_git_pack=>ty_commit.
READ TABLE it_objects INTO ls_object
WITH KEY type COMPONENTS
type = zif_abapgit_definitions=>c_type-commit
sha1 = iv_parent.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'commit not found' ).
ENDIF.
ls_commit = zcl_abapgit_git_pack=>decode_commit( ls_object-data ).
rt_expanded = walk_tree( it_objects = it_objects
iv_tree = ls_commit-tree
iv_base = '/' ).
ENDMETHOD.
METHOD pull.
DATA: ls_object TYPE zif_abapgit_definitions=>ty_object,
ls_commit TYPE zcl_abapgit_git_pack=>ty_commit.
READ TABLE it_objects INTO ls_object
WITH KEY type COMPONENTS
type = zif_abapgit_definitions=>c_type-commit
sha1 = iv_commit.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Commit/Branch not found.' ).
ENDIF.
ls_commit = zcl_abapgit_git_pack=>decode_commit( ls_object-data ).
walk( EXPORTING it_objects = it_objects
iv_sha1 = ls_commit-tree
iv_path = '/'
CHANGING ct_files = rt_files ).
ENDMETHOD.
METHOD pull_by_branch.
zcl_abapgit_git_transport=>upload_pack_by_branch(
EXPORTING
iv_url = iv_url
iv_branch_name = iv_branch_name
iv_deepen_level = iv_deepen_level
IMPORTING
et_objects = rs_result-objects
ev_branch = rs_result-commit ).
rs_result-files = pull( iv_commit = rs_result-commit
it_objects = rs_result-objects ).
ENDMETHOD.
METHOD pull_by_commit.
zcl_abapgit_git_transport=>upload_pack_by_commit(
EXPORTING
iv_url = iv_url
iv_hash = iv_commit_hash
iv_deepen_level = iv_deepen_level
IMPORTING
et_objects = rs_result-objects
ev_commit = rs_result-commit ).
rs_result-files = pull( iv_commit = rs_result-commit
it_objects = rs_result-objects ).
ENDMETHOD.
METHOD push.
DATA: lt_expanded TYPE zif_abapgit_definitions=>ty_expanded_tt,
lt_blobs TYPE zif_abapgit_definitions=>ty_files_tt,
lv_sha1 TYPE zif_abapgit_definitions=>ty_sha1,
lv_new_tree TYPE zif_abapgit_definitions=>ty_sha1,
lt_trees TYPE ty_trees_tt,
lt_stage TYPE zif_abapgit_definitions=>ty_stage_tt.
FIELD-SYMBOLS: <ls_stage> LIKE LINE OF lt_stage,
<ls_updated> LIKE LINE OF rs_result-updated_files,
<ls_exp> LIKE LINE OF lt_expanded.
lt_expanded = full_tree( it_objects = it_old_objects
iv_parent = iv_parent ).
lt_stage = io_stage->get_all( ).
LOOP AT lt_stage ASSIGNING <ls_stage>.
" Save file ref to updated files table
APPEND INITIAL LINE TO rs_result-updated_files ASSIGNING <ls_updated>.
MOVE-CORRESPONDING <ls_stage>-file TO <ls_updated>.
CASE <ls_stage>-method.
WHEN zif_abapgit_definitions=>c_method-add.
APPEND <ls_stage>-file TO lt_blobs.
READ TABLE lt_expanded ASSIGNING <ls_exp> WITH KEY
name = <ls_stage>-file-filename
path = <ls_stage>-file-path.
IF sy-subrc <> 0. " new files
APPEND INITIAL LINE TO lt_expanded ASSIGNING <ls_exp>.
<ls_exp>-name = <ls_stage>-file-filename.
<ls_exp>-path = <ls_stage>-file-path.
<ls_exp>-chmod = zif_abapgit_definitions=>c_chmod-file.
ENDIF.
lv_sha1 = zcl_abapgit_hash=>sha1_blob( <ls_stage>-file-data ).
IF <ls_exp>-sha1 <> lv_sha1.
<ls_exp>-sha1 = lv_sha1.
ENDIF.
<ls_updated>-sha1 = lv_sha1. "New sha1
WHEN zif_abapgit_definitions=>c_method-rm.
DELETE lt_expanded
WHERE name = <ls_stage>-file-filename
AND path = <ls_stage>-file-path.
ASSERT sy-subrc = 0.
CLEAR <ls_updated>-sha1. " Mark as deleted
WHEN OTHERS.
zcx_abapgit_exception=>raise( 'stage method not supported, todo' ).
ENDCASE.
ENDLOOP.
lt_trees = build_trees( lt_expanded ).
receive_pack_push(
EXPORTING
is_comment = is_comment
it_trees = lt_trees
iv_branch_name = iv_branch_name
iv_url = iv_url
iv_parent = iv_parent
iv_parent2 = io_stage->get_merge_source( )
it_blobs = lt_blobs
IMPORTING
ev_new_commit = rs_result-branch
et_new_objects = rs_result-new_objects
ev_new_tree = lv_new_tree ).
APPEND LINES OF it_old_objects TO rs_result-new_objects.
walk( EXPORTING it_objects = rs_result-new_objects
iv_sha1 = lv_new_tree
iv_path = '/'
CHANGING ct_files = rs_result-new_files ).
ENDMETHOD.
METHOD receive_pack_create_tag.
DATA: lv_tag TYPE xstring,
lt_objects TYPE zif_abapgit_definitions=>ty_objects_tt,
lv_pack TYPE xstring,
ls_object LIKE LINE OF lt_objects,
ls_tag TYPE zcl_abapgit_git_pack=>ty_tag,
lv_new_tag_sha1 TYPE zif_abapgit_definitions=>ty_sha1.
* new tag
ls_tag-object = is_tag-sha1.
ls_tag-type = zif_abapgit_definitions=>c_type-commit.
ls_tag-tag = is_tag-name.
ls_tag-tagger_name = is_tag-tagger_name.
ls_tag-tagger_email = is_tag-tagger_email.
ls_tag-message = is_tag-message
&& |{ zif_abapgit_definitions=>c_newline }|
&& |{ zif_abapgit_definitions=>c_newline }|
&& is_tag-body.
lv_tag = zcl_abapgit_git_pack=>encode_tag( ls_tag ).
lv_new_tag_sha1 = zcl_abapgit_hash=>sha1_tag( lv_tag ).
ls_object-sha1 = lv_new_tag_sha1.
ls_object-type = zif_abapgit_definitions=>c_type-tag.
ls_object-data = lv_tag.
ls_object-index = 1.
APPEND ls_object TO lt_objects.
lv_pack = zcl_abapgit_git_pack=>encode( lt_objects ).
zcl_abapgit_git_transport=>receive_pack(
iv_url = iv_url
iv_old = c_zero
iv_new = lv_new_tag_sha1
iv_branch_name = is_tag-name
iv_pack = lv_pack ).
ENDMETHOD.
METHOD receive_pack_push.
DATA: lv_time TYPE zcl_abapgit_time=>ty_unixtime,
lv_commit TYPE xstring,
lv_pack TYPE xstring,
ls_object LIKE LINE OF et_new_objects,
ls_commit TYPE zcl_abapgit_git_pack=>ty_commit,
lv_uindex TYPE sy-index.
FIELD-SYMBOLS: <ls_tree> LIKE LINE OF it_trees,
<ls_blob> LIKE LINE OF it_blobs.
lv_time = zcl_abapgit_time=>get_unix( ).
READ TABLE it_trees ASSIGNING <ls_tree> WITH KEY path = '/'.
ASSERT sy-subrc = 0.
* new commit
ls_commit-committer = |{ is_comment-committer-name
} <{ is_comment-committer-email }> { lv_time }|.
IF is_comment-author-name IS NOT INITIAL.
ls_commit-author = |{ is_comment-author-name
} <{ is_comment-author-email }> { lv_time }|.
ELSE.
ls_commit-author = ls_commit-committer.
ENDIF.
ls_commit-tree = <ls_tree>-sha1.
ls_commit-parent = iv_parent.
ls_commit-parent2 = iv_parent2.
ls_commit-body = is_comment-comment.
lv_commit = zcl_abapgit_git_pack=>encode_commit( ls_commit ).
ls_object-sha1 = zcl_abapgit_hash=>sha1_commit( lv_commit ).
ls_object-type = zif_abapgit_definitions=>c_type-commit.
ls_object-data = lv_commit.
APPEND ls_object TO et_new_objects.
LOOP AT it_trees ASSIGNING <ls_tree>.
CLEAR ls_object.
ls_object-sha1 = <ls_tree>-sha1.
READ TABLE et_new_objects
WITH KEY type COMPONENTS
type = zif_abapgit_definitions=>c_type-tree
sha1 = ls_object-sha1
TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
* two identical trees added at the same time, only add one to the pack
CONTINUE.
ENDIF.
ls_object-type = zif_abapgit_definitions=>c_type-tree.
ls_object-data = <ls_tree>-data.
lv_uindex = lv_uindex + 1.
ls_object-index = lv_uindex.
APPEND ls_object TO et_new_objects.
ENDLOOP.
LOOP AT it_blobs ASSIGNING <ls_blob>.
CLEAR ls_object.
ls_object-sha1 = zcl_abapgit_hash=>sha1_blob( <ls_blob>-data ).
READ TABLE et_new_objects
WITH KEY type COMPONENTS
type = zif_abapgit_definitions=>c_type-blob
sha1 = ls_object-sha1
TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
* two identical files added at the same time, only add one blob to the pack
CONTINUE.
ENDIF.
ls_object-type = zif_abapgit_definitions=>c_type-blob.
* note <ls_blob>-data can be empty, #1857 allow empty files - some more checks needed?
ls_object-data = <ls_blob>-data.
lv_uindex = lv_uindex + 1.
ls_object-index = lv_uindex.
APPEND ls_object TO et_new_objects.
ENDLOOP.
lv_pack = zcl_abapgit_git_pack=>encode( et_new_objects ).
ev_new_commit = zcl_abapgit_hash=>sha1_commit( lv_commit ).
zcl_abapgit_git_transport=>receive_pack(
iv_url = iv_url
iv_old = iv_parent
iv_new = ev_new_commit
iv_branch_name = iv_branch_name
iv_pack = lv_pack ).
ev_new_tree = ls_commit-tree.
ENDMETHOD.
METHOD walk.
DATA: lv_path TYPE string,
ls_file LIKE LINE OF ct_files,
lt_nodes TYPE zcl_abapgit_git_pack=>ty_nodes_tt.
FIELD-SYMBOLS: <ls_tree> LIKE LINE OF it_objects,
<ls_blob> LIKE LINE OF it_objects,
<ls_node> LIKE LINE OF lt_nodes.
READ TABLE it_objects ASSIGNING <ls_tree>
WITH KEY type COMPONENTS
type = zif_abapgit_definitions=>c_type-tree
sha1 = iv_sha1.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Walk, tree not found' ).
ENDIF.
lt_nodes = zcl_abapgit_git_pack=>decode_tree( <ls_tree>-data ).
LOOP AT lt_nodes ASSIGNING <ls_node>.
IF <ls_node>-chmod = zif_abapgit_definitions=>c_chmod-file.
READ TABLE it_objects ASSIGNING <ls_blob>
WITH KEY type COMPONENTS
type = zif_abapgit_definitions=>c_type-blob
sha1 = <ls_node>-sha1.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Walk, blob not found' ).
ENDIF.
CLEAR ls_file.
ls_file-path = iv_path.
ls_file-filename = <ls_node>-name.
ls_file-data = <ls_blob>-data.
ls_file-sha1 = <ls_blob>-sha1.
APPEND ls_file TO ct_files.
ENDIF.
ENDLOOP.
LOOP AT lt_nodes ASSIGNING <ls_node> WHERE chmod = zif_abapgit_definitions=>c_chmod-dir.
CONCATENATE iv_path <ls_node>-name '/' INTO lv_path.
walk( EXPORTING it_objects = it_objects
iv_sha1 = <ls_node>-sha1
iv_path = lv_path
CHANGING ct_files = ct_files ).
ENDLOOP.
ENDMETHOD.
METHOD walk_tree.
DATA: ls_object LIKE LINE OF it_objects,
lt_expanded LIKE rt_expanded,
lt_nodes TYPE zcl_abapgit_git_pack=>ty_nodes_tt.
FIELD-SYMBOLS: <ls_exp> LIKE LINE OF rt_expanded,
<ls_node> LIKE LINE OF lt_nodes.
READ TABLE it_objects INTO ls_object
WITH KEY type COMPONENTS
type = zif_abapgit_definitions=>c_type-tree
sha1 = iv_tree.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'tree not found' ).
ENDIF.
lt_nodes = zcl_abapgit_git_pack=>decode_tree( ls_object-data ).
LOOP AT lt_nodes ASSIGNING <ls_node>.
CASE <ls_node>-chmod.
WHEN zif_abapgit_definitions=>c_chmod-file
OR zif_abapgit_definitions=>c_chmod-executable.
APPEND INITIAL LINE TO rt_expanded ASSIGNING <ls_exp>.
<ls_exp>-path = iv_base.
<ls_exp>-name = <ls_node>-name.
<ls_exp>-sha1 = <ls_node>-sha1.
<ls_exp>-chmod = <ls_node>-chmod.
WHEN zif_abapgit_definitions=>c_chmod-dir.
lt_expanded = walk_tree(
it_objects = it_objects
iv_tree = <ls_node>-sha1
iv_base = iv_base && <ls_node>-name && '/' ).
APPEND LINES OF lt_expanded TO rt_expanded.
WHEN OTHERS.
zcx_abapgit_exception=>raise( 'walk_tree: unknown chmod' ).
ENDCASE.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
18300,
62,
1819,
5276,
391,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
31216,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3696,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
16624,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5563,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
48205,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4589,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
31216,
62,
20274,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
14689,
62,
20274,
11,
198,
220,
220,
220,
220,
220,
220,
220,
649,
62,
16624,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
16624,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8478,
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,
6153,
62,
16624,
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,
649,
62,
48205,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
48205,
62,
926,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
14689,
62,
20274,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
2834,
62,
1525,
62,
1671,
3702,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
1671,
3702,
62,
3672,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
22089,
268,
62,
5715,
41876,
1312,
5550,
38865,
352,
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,
1259,
62,
31216,
62,
20274,
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,
2834,
62,
1525,
62,
41509,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
41509,
62,
17831,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
22089,
268,
62,
5715,
41876,
1312,
5550,
38865,
352,
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,
1259,
62,
31216,
62,
20274,
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,
4574,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
23893,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
23893,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
14247,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
14247,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
727,
62,
48205,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
48205,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8000,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
1671,
3702,
62,
3672,
220,
41876,
4731,
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,
1259,
62,
14689,
62,
20274,
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,
2251,
62,
1671,
3702,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6738,
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,
42715,
12,
49273,
50,
2251,
62,
12985,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6371,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
12985,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
18300,
62,
12985,
198,
220,
220,
220,
220,
220,
17926
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*---------------------------------------------------------------------*
* view related FORM routines
* generation date: 25.06.2020 at 15:12:50
* 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,
1679,
13,
3312,
13,
42334,
379,
1315,
25,
1065,
25,
1120,
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
] |
FUNCTION z_92_traslado_saldos.
*"----------------------------------------------------------------------
*"*"Interfase local
*" IMPORTING
*" VALUE(IV_CLIENTE) TYPE BDC_FVAL
*" VALUE(IV_SUBTOTAL) TYPE BDC_FVAL
*" VALUE(IV_IVA) TYPE BDC_FVAL
*" VALUE(IV_TXTSUBTOTAL) TYPE BDC_FVAL OPTIONAL
*" VALUE(IV_TXTIVA) TYPE BDC_FVAL OPTIONAL
*" VALUE(IV_CLAVECTA) TYPE BDC_FVAL
*" VALUE(IT_FOLIOS) TYPE ZTT_92_FOLIOSCOMPENSA
*" VALUE(IV_FECHA) TYPE BDC_FVAL
*" EXPORTING
*" VALUE(EV_DOCUMENTO) TYPE BELNR_D
*" VALUE(ET_RESULTADO) TYPE ZTT_92_RESULTADO_ENTRADA
*"----------------------------------------------------------------------
*Ramon Morales
*20160304
DATA lv_correcto TYPE i.
DATA lv_gaulv TYPE auglv.
CALL FUNCTION 'POSTING_INTERFACE_START'
EXPORTING
i_function = 'C' "CALL TRANSACTION
i_mode = 'N' "Modo N
i_update = 'S' "Update S
EXCEPTIONS
client_incorrect = 1
function_invalid = 2
group_name_missing = 3
mode_invalid = 4
update_invalid = 5
OTHERS = 6.
IF sy-subrc = 0.
lv_correcto = 1.
ENDIF.
DATA: wa_syst TYPE syst.
DATA: wa_return TYPE bapiret2.
DATA: return TYPE STANDARD TABLE OF bapiret2.
DATA: ls_blntab TYPE blntab
, ls_ftclear TYPE ftclear
, ls_ftpost TYPE ftpost
, ls_fttax TYPE fttax.
DATA: lt_blntab TYPE STANDARD TABLE OF blntab
, lt_ftclear TYPE STANDARD TABLE OF ftclear
, lt_ftpost TYPE STANDARD TABLE OF ftpost
, lt_fttax TYPE STANDARD TABLE OF fttax.
DATA p_subrc TYPE sy-subrc.
FIELD-SYMBOLS: <ls_blntab> TYPE blntab.
FIELD-SYMBOLS: <ls_folios> TYPE zstr_92_folioscompensa.
******************ENCABEZADO***************************
* Creamos el documento de compensación de la
* partida
* Batch Input Values
ls_ftpost-stype = 'K'."Header
ls_ftpost-count = 1. "number of Dynpro
* Fecha de documento
"write p_datos-fecha_contabilizacion to txt_fecha.
ls_ftpost-fnam = 'BKPF-BLDAT'.
ls_ftpost-fval = iv_fecha.
APPEND ls_ftpost TO lt_ftpost.
* Fecha de contabilizacion
ls_ftpost-fnam = 'BKPF-BUDAT'.
ls_ftpost-fval = iv_fecha.
APPEND ls_ftpost TO lt_ftpost.
* Clase de documento
ls_ftpost-fnam = 'BKPF-BLART'.
ls_ftpost-fval = 'SA'.
APPEND ls_ftpost TO lt_ftpost.
* Sociedad
ls_ftpost-fnam = 'BKPF-BUKRS'.
ls_ftpost-fval = '2000'."p_bsid-bukrs.
APPEND ls_ftpost TO lt_ftpost.
* Moneda
ls_ftpost-fnam = 'BKPF-WAERS'.
ls_ftpost-fval = 'MXN'."p_waers.
APPEND ls_ftpost TO lt_ftpost.
* Texto encabezado
ls_ftpost-fnam = 'RF05A-AUGTX'.
ls_ftpost-fval = iv_txtsubtotal.
APPEND ls_ftpost TO lt_ftpost.
** Referencia
* ls_ftpost-fnam = 'BKPF-XBLNR'.
* ls_ftpost-fval = iv_cliente.
* APPEND ls_ftpost TO lt_ftpost.
*************************PARTIDAS****************************
* Primera línea, Siguiente DYNRPO
ls_ftpost-stype = 'P'."Posicion
ls_ftpost-count = 1. "number of ITEM
* Ind movimiento
ls_ftpost-fnam = 'RF05A-NEWBS'.
ls_ftpost-fval = iv_clavecta.
APPEND ls_ftpost TO lt_ftpost.
* Cuenta
ls_ftpost-fnam = 'RF05A-NEWKO'.
ls_ftpost-fval = '710010'.
APPEND ls_ftpost TO lt_ftpost.
** Centro de coste
* ls_ftpost-fnam = 'BSEG-KOSTL'.
* ls_ftpost-fval = '2001031012'.
* APPEND ls_ftpost TO lt_ftpost.
* Centro de coste
ls_ftpost-fnam = 'COBL-KOSTL'.
ls_ftpost-fval = '2001031012'.
APPEND ls_ftpost TO lt_ftpost.
* Importe
ls_ftpost-fnam = 'BSEG-WRBTR'.
ls_ftpost-fval = iv_subtotal.
APPEND ls_ftpost TO lt_ftpost.
* Texto de posición
ls_ftpost-fnam = 'BSEG-SGTXT'.
ls_ftpost-fval = iv_txtsubtotal.
APPEND ls_ftpost TO lt_ftpost.
* Texto de asignacion
ls_ftpost-fnam = 'BSEG-ZUONR'.
ls_ftpost-fval = iv_cliente.
APPEND ls_ftpost TO lt_ftpost.
IF iv_iva GT 0.
* Segunda línea, Siguiente DYNRPO
ls_ftpost-stype = 'P'."Posicion
ls_ftpost-count = 2. "number of ITEM
* Ind movimiento
ls_ftpost-fnam = 'RF05A-NEWBS'.
ls_ftpost-fval = iv_clavecta.
APPEND ls_ftpost TO lt_ftpost.
* Cuenta
ls_ftpost-fnam = 'RF05A-NEWKO'.
ls_ftpost-fval = '710010'.
APPEND ls_ftpost TO lt_ftpost.
** Centro de coste
* ls_ftpost-fnam = 'BSEG-KOSTL'.
* ls_ftpost-fval = '2001031012'.
* APPEND ls_ftpost TO lt_ftpost.
* Centro de coste
ls_ftpost-fnam = 'COBL-KOSTL'.
ls_ftpost-fval = '2001031012'.
APPEND ls_ftpost TO lt_ftpost.
* Importe
ls_ftpost-fnam = 'BSEG-WRBTR'.
ls_ftpost-fval = iv_iva.
APPEND ls_ftpost TO lt_ftpost.
* Texto de posición
ls_ftpost-fnam = 'BSEG-SGTXT'.
ls_ftpost-fval = iv_txtiva.
APPEND ls_ftpost TO lt_ftpost.
* Texto de asignacion
ls_ftpost-fnam = 'BSEG-ZUONR'.
ls_ftpost-fval = iv_cliente.
APPEND ls_ftpost TO lt_ftpost.
ENDIF.
* Se reemplaza esta parte del codigo para compensar varios documentos en un mismo evento
** Documents to be cleared
* ls_ftclear-agkoa = 'D'. "Account Type K = vendor D = Customer S = GL Account
* ls_ftclear-agkon = iv_cliente. "p_bsid-kunnr. "Example Customer
* ls_ftclear-agbuk = '2000'. "p_bsid-bukrs. "Example company code
* ls_ftclear-xnops = 'X'. "Indicator: Select only open items which are not special G/L?
* "ls_ftclear-xfifo = 'X'.
* ls_ftclear-selfd = 'BELNR'. "Selection Field
* ls_ftclear-selvon = iv_folio.
* ls_ftclear-selbis = iv_folio.
* APPEND ls_ftclear TO lt_ftclear.
LOOP AT it_folios ASSIGNING <ls_folios>.
* Documents to be cleared
ls_ftclear-agkoa = 'D'. "Account Type K = vendor D = Customer S = GL Account
ls_ftclear-agkon = iv_cliente. "p_bsid-kunnr. "Example Customer
ls_ftclear-agbuk = '2000'. "p_bsid-bukrs. "Example company code
ls_ftclear-xnops = 'X'. "Indicator: Select only open items which are not special G/L?
"ls_ftclear-xfifo = 'X'.
ls_ftclear-selfd = 'BELNR'. "Selection Field
ls_ftclear-selvon = <ls_folios>-iv_folio.
ls_ftclear-selbis = <ls_folios>-iv_folio.
APPEND ls_ftclear TO lt_ftclear.
ENDLOOP.
lv_gaulv = 'UMBUCHNG'.
CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
EXPORTING
i_auglv = lv_gaulv
i_tcode = 'FB05'
i_sgfunct = 'C'
* I_NO_AUTH = ' '
IMPORTING
e_msgid = wa_syst-msgid
e_msgno = wa_syst-msgno
e_msgty = wa_syst-msgty
e_msgv1 = wa_syst-msgv1
e_msgv2 = wa_syst-msgv2
e_msgv3 = wa_syst-msgv3
e_msgv4 = wa_syst-msgv4
e_subrc = p_subrc
TABLES
t_blntab = lt_blntab
t_ftclear = lt_ftclear
t_ftpost = lt_ftpost
t_fttax = lt_fttax
EXCEPTIONS
clearing_procedure_invalid = 1
clearing_procedure_missing = 2
table_t041a_empty = 3
transaction_code_invalid = 4
amount_format_error = 5
too_many_line_items = 6
company_code_invalid = 7
screen_not_found = 8
no_authorization = 9
OTHERS = 10.
IF sy-subrc <> 0
OR wa_syst-msgty CA 'EAX'
OR p_subrc <> 0.
IF wa_syst-msgty CA 'EAX'.
CALL FUNCTION 'MAP2I_SYST_TO_BAPIRET2'
EXPORTING
syst = wa_syst
CHANGING
bapiret2 = wa_return.
wa_return-type = 'E'. "Error siempre
ELSE.
CALL FUNCTION 'MAP2I_SYST_TO_BAPIRET2'
EXPORTING
syst = syst
CHANGING
bapiret2 = wa_return.
wa_return-type = 'E'. "Error siempre
ENDIF.
IF NOT wa_return IS INITIAL.
APPEND wa_return TO et_resultado.
ENDIF.
ENDIF.
LOOP AT lt_blntab ASSIGNING <ls_blntab>.
ev_documento = <ls_blntab>-belnr.
ENDLOOP.
CALL FUNCTION 'POSTING_INTERFACE_END'
EXPORTING
i_bdcimmed = ' '
* I_BDCSTRTDT = NO_DATE
* I_BDCSTRTTM = NO_TIME
EXCEPTIONS
session_not_processable = 1
OTHERS = 2.
IF sy-subrc = 0.
lv_correcto = 1.
ENDIF.
ENDFUNCTION.
| [
42296,
4177,
2849,
1976,
62,
5892,
62,
2213,
292,
75,
4533,
62,
82,
1940,
418,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
9492,
69,
589,
1957,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
3824,
62,
5097,
28495,
36,
8,
41876,
220,
347,
9697,
62,
37,
23428,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
3824,
62,
50,
10526,
51,
27510,
8,
41876,
220,
347,
9697,
62,
37,
23428,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
3824,
62,
3824,
32,
8,
41876,
220,
347,
9697,
62,
37,
23428,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
3824,
62,
29551,
4694,
10526,
51,
27510,
8,
41876,
220,
347,
9697,
62,
37,
23428,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
3824,
62,
51,
25010,
3824,
32,
8,
41876,
220,
347,
9697,
62,
37,
23428,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
3824,
62,
5097,
10116,
2943,
5603,
8,
41876,
220,
347,
9697,
62,
37,
23428,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
2043,
62,
37,
3535,
40,
2640,
8,
41876,
220,
1168,
15751,
62,
5892,
62,
37,
3535,
40,
2640,
9858,
47,
1677,
4090,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
3824,
62,
37,
2943,
7801,
8,
41876,
220,
347,
9697,
62,
37,
23428,
198,
9,
1,
220,
7788,
15490,
2751,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
20114,
62,
38715,
5883,
3525,
46,
8,
41876,
220,
29991,
24723,
62,
35,
198,
9,
1,
220,
220,
220,
220,
26173,
8924,
7,
2767,
62,
19535,
16724,
2885,
46,
8,
41876,
220,
1168,
15751,
62,
5892,
62,
19535,
16724,
2885,
46,
62,
3525,
49,
26853,
198,
9,
1,
10097,
23031,
198,
198,
9,
49,
16487,
36588,
198,
9,
1264,
1899,
21288,
628,
220,
42865,
300,
85,
62,
30283,
78,
41876,
1312,
13,
198,
220,
42865,
300,
85,
62,
70,
2518,
85,
41876,
16339,
6780,
13,
628,
628,
220,
42815,
29397,
4177,
2849,
705,
32782,
2751,
62,
41358,
49836,
62,
2257,
7227,
6,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
1312,
62,
8818,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
34,
6,
220,
220,
220,
220,
220,
220,
220,
366,
34,
7036,
44069,
44710,
198,
220,
220,
220,
220,
220,
1312,
62,
14171,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
45,
6,
220,
220,
220,
220,
220,
220,
220,
366,
5841,
78,
399,
198,
220,
220,
220,
220,
220,
1312,
62,
19119,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
50,
6,
220,
220,
220,
220,
220,
220,
220,
366,
10260,
311,
198,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
5456,
62,
1939,
47315,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
2163,
62,
259,
12102,
220,
220,
796,
362,
198,
220,
220,
220,
220,
220,
1448,
62,
3672,
62,
45688,
796,
513,
198,
220,
220,
220,
220,
220,
4235,
62,
259,
12102,
220,
220,
220,
220,
220,
220,
796,
604,
198,
220,
220,
220,
220,
220,
4296,
62,
259,
12102,
220,
220,
220,
220,
796,
642,
198,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
718,
13,
628,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
300,
85,
62,
30283,
78,
796,
352,
13,
198,
220,
23578,
5064,
13,
628,
220,
42865,
25,
2082,
62,
1837,
301,
41876,
827,
301,
13,
198,
220,
42865,
25,
2082,
62,
7783,
41876,
275,
499,
557,
83,
17,
13,
198,
220,
42865,
25,
1441,
41876,
49053,
9795,
43679,
3963,
275,
499,
557,
83,
17,
13,
628,
198,
220,
42865,
25,
220,
220,
43979,
62,
2436,
429,
397,
41876,
220,
698,
429,
397,
198,
220,
220,
220,
220,
220,
220,
220,
837,
43979,
62,
701,
20063,
41876,
220,
10117,
20063,
198,
220,
220,
220,
220,
220,
220,
220,
837,
43979,
62,
701,
7353,
41876,
220,
10117,
7353,
198,
220,
220,
220,
220,
220,
220,
220,
837,
43979,
62,
701,
19290,
41876,
220,
277,
926,
897,
13,
628,
220,
42865,
25,
220,
220,
300,
83,
62,
2436,
429,
397,
41876,
49053,
9795,
43679,
3963,
698,
429,
397,
198,
220,
220,
220,
220,
220,
220,
220,
837,
300,
83,
62,
701,
20063,
41876,
49053,
9795,
43679,
3963,
10117,
20063,
198,
220,
220,
220,
220,
220,
220,
220,
837,
300,
83,
62,
701,
7353,
41876,
49053,
9795,
43679,
3963,
10117,
7353,
198,
220,
220,
220,
220,
220,
220,
220,
837,
300,
83,
62,
701,
19290,
41876,
49053,
9795,
43679,
3963,
277,
926,
897,
13,
628,
220,
42865,
279,
62,
7266,
6015,
41876,
827,
12,
7266,
6015,
13,
628,
198,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
2436,
429,
397,
29,
41876,
698,
429,
397,
13,
198,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
45242,
29,
41876,
1976,
2536,
62,
5892,
62,
45242,
5589,
641,
64,
13,
198,
198,
8412,
1174,
24181,
6242,
36,
57,
2885,
46,
8412,
4557,
8162,
198,
9,
19979,
418,
1288,
3188,
78,
390,
7144,
32009,
18840,
390,
8591,
198,
9,
636,
3755,
198,
9,
347,
963,
23412,
27068,
198,
220,
43979,
62,
701,
7353,
12,
301,
2981,
796,
705,
42,
30827,
39681,
198,
220,
43979,
62,
701,
7353,
12,
9127,
796,
352,
13,
366,
17618,
286,
39530,
1676,
198,
198,
9,
376,
3055,
64,
390,
3188,
78,
198,
220,
366,
13564,
279,
62,
19608,
418,
12,
69,
3055,
64,
62,
3642,
14991,
528,
49443,
284,
256,
742,
62,
69,
3055,
64,
13,
198,
220,
43979,
62,
701,
7353,
12,
69,
7402,
796,
705,
33,
42,
42668,
12,
9148,
35,
1404,
4458,
198,
220,
43979,
62,
701,
7353,
12,
69,
2100,
796,
21628,
62,
69,
3055,
64,
13,
198,
220,
43504,
10619,
43979,
62,
701,
7353,
5390,
300,
83,
62,
701,
7353,
13,
198,
9,
376,
3055,
64,
390,
542,
14991,
528,
49443,
198,
220,
43979,
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,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_CA_ALV DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS zcl_ca_alv DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
*"* public components of class ZCL_CA_ALV
*"* do not include other source files here!!!
INTERFACES if_salv_c_aggregation .
INTERFACES if_salv_c_alignment .
INTERFACES if_salv_events_actions_table .
INTERFACES if_salv_events_functions .
INTERFACES if_salv_events_list .
ALIASES added_function
FOR if_salv_events_functions~added_function .
ALIASES after_salv_function
FOR if_salv_events_functions~after_salv_function .
ALIASES before_salv_function
FOR if_salv_events_functions~before_salv_function .
ALIASES double_click
FOR if_salv_events_actions_table~double_click .
ALIASES end_of_page
FOR if_salv_events_list~end_of_page .
ALIASES link_click
FOR if_salv_events_actions_table~link_click .
ALIASES top_of_page
FOR if_salv_events_list~top_of_page .
DATA cl_lista_funciones TYPE REF TO cl_salv_functions_list .
CLASS-DATA dc_cab_tipo_etiqueta TYPE i VALUE 1. "#EC NOTEXT .
CLASS-DATA cv_header_flow_type TYPE i VALUE 2. "#EC NOTEXT .
CLASS-DATA dc_cab_tipo_header TYPE i VALUE 3. "#EC NOTEXT .
CLASS-DATA dc_cab_tipo_info TYPE i VALUE 4. "#EC NOTEXT .
CLASS-DATA dc_cab_tipo_texto TYPE i VALUE 5. "#EC NOTEXT .
CLASS-DATA dc_functions_all TYPE salv_de_constant VALUE 2. "#EC NOTEXT .
CLASS-DATA dc_functions_default TYPE salv_de_constant VALUE 1. "#EC NOTEXT .
CLASS-DATA dc_functions_none TYPE salv_de_constant VALUE 0. "#EC NOTEXT .
METHODS create_alv
IMPORTING
!iv_list_mode TYPE sap_bool DEFAULT if_salv_c_bool_sap=>false
!io_container TYPE REF TO cl_gui_container OPTIONAL
!iv_container_name TYPE string OPTIONAL
!iv_program TYPE syrepid
CHANGING
!ct_data TYPE table
EXCEPTIONS
error_create_alv .
METHODS evt_added_function
FOR EVENT added_function OF cl_salv_events_table
IMPORTING
!e_salv_function .
METHODS evt_after_salv_function
FOR EVENT if_salv_events_functions~after_salv_function OF cl_salv_events_table
IMPORTING
!e_salv_function .
METHODS evt_before_salv_function
FOR EVENT if_salv_events_functions~before_salv_function OF cl_salv_events_table
IMPORTING
!e_salv_function .
METHODS evt_double_click
FOR EVENT if_salv_events_actions_table~double_click OF cl_salv_events_table
IMPORTING
!row
!column .
METHODS evt_end_of_page
FOR EVENT if_salv_events_list~end_of_page OF cl_salv_events_table
IMPORTING
!r_end_of_page
!page .
METHODS evt_link_click
FOR EVENT if_salv_events_actions_table~link_click OF cl_salv_events_table
IMPORTING
!row
!column .
METHODS evt_top_of_page
FOR EVENT if_salv_events_list~top_of_page OF cl_salv_events_table
IMPORTING
!r_top_of_page
!page
!table_index .
METHODS get_alv
RETURNING
VALUE(ro_alv) TYPE REF TO cl_salv_table .
METHODS get_rows_sel
RETURNING
VALUE(rt_rows) TYPE salv_t_row .
METHODS show_alv .
METHODS refresh_alv
IMPORTING
!iv_stable_row TYPE lvc_rowst DEFAULT 'X'
!iv_stable_col TYPE lvc_colst DEFAULT 'X'
!iv_refresh_mode TYPE salv_de_constant DEFAULT if_salv_c_refresh=>soft .
METHODS set_alv
IMPORTING
!io_alv TYPE REF TO cl_salv_table .
METHODS set_field_properties
IMPORTING
!iv_field TYPE lvc_fname
!iv_symbol TYPE sap_bool OPTIONAL
!iv_visible TYPE sap_bool OPTIONAL
!iv_all_text TYPE scrtext_l OPTIONAL
!iv_medium_text TYPE scrtext_m OPTIONAL
!iv_long_text TYPE scrtext_l OPTIONAL
!iv_short_text TYPE scrtext_s OPTIONAL
!iv_output_leng TYPE lvc_outlen OPTIONAL
!is_color TYPE lvc_s_colo OPTIONAL
!iv_cell_type TYPE salv_de_celltype OPTIONAL
!iv_technical TYPE sap_bool OPTIONAL
!iv_currency_field TYPE lvc_cfname OPTIONAL
!iv_unit_field TYPE lvc_qfname OPTIONAL
!i_optimized TYPE sap_bool OPTIONAL
!iv_ddic_reference TYPE salv_s_ddic_reference OPTIONAL
!iv_position TYPE i OPTIONAL
!iv_decimals TYPE lvc_decmls OPTIONAL
!iv_set_aggregation TYPE salv_de_aggregation OPTIONAL
!iv_zero TYPE sap_bool OPTIONAL
!iv_alignment TYPE salv_de_alignment OPTIONAL
!iv_key TYPE sap_bool OPTIONAL
!iv_edit_mask TYPE lvc_edtmsk OPTIONAL .
METHODS set_header_page
IMPORTING
!iv_row TYPE i
!iv_column TYPE i
!iv_field_type TYPE i DEFAULT zcl_ca_alv=>cv_header_flow_type
!iv_text TYPE any
!iv_list TYPE sap_bool DEFAULT if_salv_c_bool_sap=>true .
METHODS set_field_color
IMPORTING
!iv_field TYPE lvc_fname .
METHODS set_symbol_field
IMPORTING
!iv_field TYPE lvc_fname
!iv_active TYPE sap_bool DEFAULT if_salv_c_bool_sap=>true .
METHODS set_optimized_cols
IMPORTING
!iv_active TYPE sap_bool DEFAULT if_salv_c_bool_sap=>false .
METHODS set_function
IMPORTING
!iv_function TYPE salv_de_function
!i_boolean TYPE sap_bool .
METHODS set_alv_functions
IMPORTING
!iv_active TYPE sap_bool DEFAULT if_salv_c_bool_sap=>false
PREFERRED PARAMETER iv_active .
METHODS set_manag_layout
IMPORTING
!iv_restriction TYPE salv_de_layout_restriction DEFAULT if_salv_c_layout=>restrict_none .
METHODS set_layout
IMPORTING
!iv_layout TYPE slis_vari .
METHODS set_selection_mode
IMPORTING
!iv_method TYPE salv_de_constant DEFAULT if_salv_c_selection_mode=>none .
METHODS set_zebra_mode
IMPORTING
!iv_active TYPE sap_bool DEFAULT if_salv_c_bool_sap=>false .
METHODS set_pfstatus
IMPORTING
!iv_pfstatus TYPE sypfkey
!iv_functions TYPE salv_de_constant DEFAULT dc_functions_all .
METHODS set_footer_page
IMPORTING
!iv_row TYPE i
!iv_column TYPE i
!iv_field_type TYPE i DEFAULT zcl_ca_alv=>cv_header_flow_type
!iv_text TYPE any
!iv_list TYPE sap_bool DEFAULT if_salv_c_bool_sap=>true .
METHODS set_title
IMPORTING
!iv_title TYPE lvc_title .
METHODS get_events
RETURNING
VALUE(ro_events) TYPE REF TO cl_salv_events_table .
METHODS get_print
EXPORTING
!iv_value TYPE REF TO cl_salv_print .
METHODS remove_selections .
METHODS set_screen_popup
IMPORTING
!iv_start_column TYPE i
!iv_end_column TYPE i
!iv_start_line TYPE i
!iv_end_line TYPE i .
METHODS add_function
IMPORTING
!iv_name TYPE any
!iv_icon TYPE any OPTIONAL
!iv_text TYPE any OPTIONAL
!iv_tooltip TYPE any OPTIONAL
!iv_position TYPE salv_de_function_pos DEFAULT if_salv_c_function_position=>right_of_salv_functions .
METHODS add_sort
IMPORTING
!iv_columnname TYPE lvc_fname
!iv_position TYPE i OPTIONAL
!iv_sequence TYPE salv_de_sort_sequence DEFAULT if_salv_c_sort=>sort_up
!iv_subtotal TYPE sap_bool DEFAULT if_salv_c_bool_sap=>false
!iv_group TYPE salv_de_sort_group DEFAULT if_salv_c_sort=>group_none
!iv_mandatory TYPE sap_bool DEFAULT if_salv_c_bool_sap=>false
!iv_compressed_subtotal TYPE sap_bool DEFAULT if_salv_c_bool_sap=>false
RETURNING
VALUE(ro_value) TYPE REF TO cl_salv_sort .
METHODS set_celltype
IMPORTING
!iv_field TYPE lvc_fname .
METHODS remove_function
IMPORTING
!iv_name TYPE any .
*"* protected components of class ZZC_CA00501
*"* do not include other source files here!!!
PROTECTED SECTION.
DATA mo_alv TYPE REF TO cl_salv_table .
DATA mo_alv_msg TYPE REF TO cx_salv_msg .
DATA mo_cabecera TYPE REF TO cl_salv_form_layout_grid .
DATA mo_column TYPE REF TO cl_salv_column_table .
DATA mo_columns TYPE REF TO cl_salv_columns_table .
DATA mo_display TYPE REF TO cl_salv_display_settings .
DATA mo_label TYPE REF TO cl_salv_form_label .
DATA mo_events TYPE REF TO cl_salv_events_table .
DATA mo_functions TYPE REF TO cl_salv_functions .
DATA mo_header TYPE REF TO cl_salv_form_header_info .
DATA mo_info TYPE REF TO cl_salv_form_action_info .
DATA mo_layout TYPE REF TO cl_salv_layout .
DATA mo_layout_flow TYPE REF TO cl_salv_form_layout_flow .
DATA mo_footer TYPE REF TO cl_salv_form_layout_grid .
DATA mo_selections TYPE REF TO cl_salv_selections .
DATA mo_texto TYPE REF TO cl_salv_form_text .
DATA mo_ordenacion TYPE REF TO cl_salv_sorts .
DATA mv_repid TYPE syrepid .
DATA ms_layout_key TYPE salv_s_layout_key .
DATA ms_color TYPE lvc_s_scol .
DATA ms_aggregation TYPE REF TO cl_salv_aggregations .
METHODS set_alv_class .
METHODS set_events .
METHODS set_field_texts
IMPORTING
!iv_field TYPE lvc_fname
!iv_all_text TYPE scrtext_l OPTIONAL
!iv_medium_text TYPE scrtext_m OPTIONAL
!iv_long_text TYPE scrtext_l OPTIONAL
!iv_short_text TYPE scrtext_s OPTIONAL .
METHODS set_page_field_type
IMPORTING
!iv_row TYPE i
!iv_column TYPE i
!iv_field_type TYPE i DEFAULT zcl_ca_alv=>cv_header_flow_type
!iv_text TYPE any .
*"* private components of class ZCL_CA_ALV
*"* do not include other source files here!!!
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_ca_alv IMPLEMENTATION.
METHOD add_function.
DATA ld_icon TYPE string.
DATA ld_text TYPE string.
DATA ld_tooltip TYPE string.
DATA ld_name TYPE salv_de_function.
TRY.
"El campo de entrada icono es de cualquier tipo para poder se llamado directamente
"a través del type-pools: ICON. Pero aquí lo convierto para poder ser llamado al método estándar
ld_icon = iv_icon.
"Hago lo mismo para el resto de campos.
ld_text = iv_text.
ld_tooltip = iv_tooltip.
ld_name = iv_name.
cl_lista_funciones->add_function( name = ld_name
icon = ld_icon
text = ld_text
tooltip = ld_tooltip
position = iv_position ).
CATCH cx_salv_existing .
MESSAGE s000(fb) WITH TEXT-e02 iv_name.
CATCH cx_salv_wrong_call .
MESSAGE s000(fb) WITH TEXT-e02 iv_name.
ENDTRY.
ENDMETHOD.
METHOD add_sort.
TRY.
CALL METHOD mo_ordenacion->add_sort
EXPORTING
columnname = iv_columnname
position = iv_position
sequence = iv_sequence
subtotal = iv_subtotal
group = iv_group
obligatory = iv_mandatory
RECEIVING
value = ro_value.
IF iv_compressed_subtotal IS SUPPLIED.
mo_ordenacion->set_compressed_subtotal( iv_columnname ).
ENDIF.
CATCH cx_salv_not_found .
CATCH cx_salv_existing .
CATCH cx_salv_data_error .
ENDTRY.
ENDMETHOD.
METHOD create_alv.
"La instanciación de la clase se hace entre un TRY..CATCH para
"poder capturar cualquier excepción.
TRY.
"Al método estático que instancia la clase con el ALV se le pasa la tabla
"de datos y la clase propiamente dicha.
"La llamada dependerá si se ha pasado la información del container donde se
"mostrará el ALV.
IF io_container IS SUPPLIED.
CALL METHOD cl_salv_table=>factory
EXPORTING
r_container = io_container
container_name = iv_container_name
IMPORTING
r_salv_table = mo_alv
CHANGING
t_table = ct_data.
ELSE.
CALL METHOD cl_salv_table=>factory
EXPORTING
list_display = iv_list_mode
IMPORTING
r_salv_table = mo_alv
CHANGING
t_table = ct_data.
ENDIF.
"Inicializo las clases que servirán para ir ajustando el ALV
me->set_alv_class( ).
"Activo la escucha de los eventos
me->set_events( ).
"Guardo el programa pasado
mv_repid = iv_program.
"paso el nombre del programa a la estructura clave
"que es usada en otras partes del programa.
ms_layout_key-report = mv_repid.
"La excepción es pasada a la clase CL_ALV_MSG.
CATCH cx_salv_msg INTO mo_alv_msg.
"En este caso se muestra el mensaje de error pero se podría hacer
"cualquier otra cosa.
MESSAGE mo_alv_msg TYPE 'I'.
RAISE error_create_alv.
ENDTRY.
ENDMETHOD.
METHOD evt_added_function.
"Lanzo el evento added_function
RAISE EVENT added_function
EXPORTING
e_salv_function = e_salv_function.
ENDMETHOD.
METHOD evt_after_salv_function.
"Lanzo la función after_salv_function
RAISE EVENT after_salv_function
EXPORTING
e_salv_function = e_salv_function.
ENDMETHOD.
METHOD evt_before_salv_function.
"Lanzo el evento before_salv_function
RAISE EVENT before_salv_function
EXPORTING
e_salv_function = e_salv_function.
ENDMETHOD.
METHOD evt_double_click.
"Lanzo el evento de doble click
RAISE EVENT double_click
EXPORTING
row = row
column = column.
ENDMETHOD.
METHOD evt_end_of_page.
"Lanzo el evento end of page
RAISE EVENT end_of_page
EXPORTING
r_end_of_page = r_end_of_page
page = page.
ENDMETHOD.
METHOD evt_link_click.
"Lanzo el evento "link click".
RAISE EVENT link_click
EXPORTING
row = row
column = column.
ENDMETHOD.
METHOD evt_top_of_page.
"Lanzo el evento de cabecera de página
RAISE EVENT top_of_page
EXPORTING
r_top_of_page = r_top_of_page
page = page
table_index = table_index.
ENDMETHOD.
METHOD get_alv.
ro_alv = mo_alv.
ENDMETHOD.
METHOD get_events.
ro_events = mo_events.
ENDMETHOD.
METHOD get_print.
CALL METHOD mo_alv->get_print
RECEIVING
value = iv_value.
ENDMETHOD.
METHOD get_rows_sel.
"Recupero las filas seleccionadas
rt_rows = mo_selections->get_selected_rows( ).
ENDMETHOD.
METHOD refresh_alv.
DATA ls_stable TYPE lvc_s_stbl.
ls_stable-row = iv_stable_row.
ls_stable-col = iv_stable_col.
mo_alv->refresh( EXPORTING s_stable = ls_stable refresh_mode = iv_refresh_mode ).
ENDMETHOD.
METHOD remove_function.
DATA ld_name TYPE salv_de_function.
ld_name = iv_name.
TRY.
cl_lista_funciones->remove_function( name = ld_name ).
CATCH cx_root.
ENDTRY.
ENDMETHOD.
METHOD remove_selections.
DATA: lt_rows TYPE salv_t_row.
mo_selections->set_selected_rows( value = lt_rows ).
ENDMETHOD.
METHOD set_alv.
mo_alv = io_alv.
"Vuelvo a inicializar las clases que servirán para ir ajustando el ALV
me->set_alv_class( ).
ENDMETHOD.
METHOD set_alv_class.
"Cambiar propiedades de las columnas en general
mo_columns = mo_alv->get_columns( ).
"Apariencia de la ALV
mo_display = mo_alv->get_display_settings( ).
"Selecciones
mo_selections = mo_alv->get_selections( ).
"Gestión de eventos
mo_events = mo_alv->get_event( ).
"Layout del ALV
mo_layout = mo_alv->get_layout( ).
"Recupero la funciones del ALV
mo_functions = mo_alv->get_functions( ).
"Recupero la lista de funciones del ALV, es decir, botones del PF-STATUS.
cl_lista_funciones = mo_alv->get_functions( ).
"Recupero la clase para hacer avergaes, sumas, mínimos y máximos
ms_aggregation = mo_alv->get_aggregations( ).
"Recupero la clase para realizar ordenaciones por defecto en el listado
mo_ordenacion = mo_alv->get_sorts( ).
"Instancio la clase que servira para pintar la cabecera
"CREATE OBJECT cl_cabecera.
"Instancio la clase que servira para pintar el pie de página
"CREATE OBJECT cl_pie.
ENDMETHOD.
METHOD set_alv_functions.
"Activan todas las funciones
mo_functions->set_all( iv_active ).
ENDMETHOD.
METHOD set_celltype.
TRY.
mo_columns->set_cell_type_column( iv_field ).
CATCH cx_root.
ENDTRY.
ENDMETHOD.
METHOD set_events.
"Activo la escucha del evento "user_command".
SET HANDLER
me->evt_added_function FOR mo_events.
"Activo la escucha del evento "doble click".
SET HANDLER
me->evt_double_click FOR mo_events.
"Activo la escucha del evento cuando se pulse un enlace o botón
SET HANDLER
me->evt_link_click FOR mo_events.
"Activo el evento de cabecera de página
SET HANDLER
me->evt_top_of_page FOR mo_events.
"Activo el evento de pie de página
SET HANDLER
me->evt_end_of_page FOR mo_events.
"Activo el evento "Before salv function"
SET HANDLER
me->evt_before_salv_function FOR mo_events.
"Activo el evento "After salv function"
SET HANDLER
me->evt_after_salv_function FOR mo_events.
ENDMETHOD.
METHOD set_field_color.
"Indica el campo que indicará el color de una fila
mo_columns->set_color_column( iv_field ).
ENDMETHOD.
METHOD set_field_properties.
TRY.
"Recupero los atributos del campo
mo_column ?= mo_columns->get_column( iv_field ).
"Simbolo del campo
IF iv_symbol IS SUPPLIED.
mo_column->set_symbol( iv_symbol ).
ENDIF.
"Visibilidad del campo
IF iv_visible IS SUPPLIED.
mo_column->set_visible( iv_visible ).
ENDIF.
"Llamo al método que actualiza las denominaciones del campo
CALL METHOD set_field_texts
EXPORTING
iv_field = iv_field
iv_all_text = iv_all_text
iv_medium_text = iv_medium_text
iv_long_text = iv_long_text
iv_short_text = iv_short_text.
"Pongo la longitud de salida
IF iv_output_leng IS SUPPLIED.
mo_column->set_output_length( iv_output_leng ).
ENDIF.
"Pongo el color del campo
IF is_color IS SUPPLIED.
mo_column->set_color( is_color ).
ENDIF.
"Pongo el tipo de campo:
IF iv_cell_type IS SUPPLIED.
"Los posibles valores se definen en la interface: IF_SALV_C_CELL_TYPE
mo_column->set_cell_type( iv_cell_type ).
ENDIF.
"Pongo si el campo es técnico, es decir, no saldrá el ALV, ni siquiera en
"el pool de campos
IF iv_technical IS SUPPLIED.
mo_column->set_technical( iv_technical ).
ENDIF.
"Pongo el campo de importe si esta informado
IF iv_currency_field IS SUPPLIED.
mo_column->set_currency_column( iv_currency_field ).
ENDIF.
"Pongo el campo de cantidad si esta informado
IF iv_unit_field IS SUPPLIED.
mo_column->set_quantity_column( iv_unit_field ).
ENDIF.
"Pongo el atibuto optimizar a la columna
IF i_optimized IS SUPPLIED.
mo_column->set_optimized( i_optimized ).
ENDIF.
"Referencia al diccionario
IF iv_ddic_reference IS SUPPLIED.
mo_column->set_ddic_reference( iv_ddic_reference ).
ENDIF.
"Posicion
IF iv_position IS SUPPLIED.
mo_columns->set_column_position( columnname = iv_field position = iv_position ).
ENDIF.
"Decimales
IF iv_decimals IS SUPPLIED.
mo_column->set_decimals( iv_decimals ).
ENDIF.
"Sumatorio
IF iv_set_aggregation IS SUPPLIED.
ms_aggregation->add_aggregation( columnname = iv_field
aggregation = iv_set_aggregation ).
ENDIF.
"Sin ceros en celdas vacias
IF iv_zero IS SUPPLIED.
mo_column->set_zero( iv_zero ).
ENDIF.
"Alineación
IF iv_alignment IS SUPPLIED.
mo_column->set_alignment( iv_alignment ).
ENDIF.
"Campo clave
IF iv_key IS SUPPLIED.
mo_column->set_key( iv_key ).
ENDIF.
"Mascara de edicion
IF iv_edit_mask IS SUPPLIED.
mo_column->set_edit_mask( iv_edit_mask ).
ENDIF.
CATCH cx_salv_not_found. "#EC NO_HANDLER
ENDTRY.
ENDMETHOD.
METHOD set_field_texts.
DATA: d_texto_corto TYPE scrtext_s,
d_texto_medio TYPE scrtext_m,
d_texto_largo TYPE scrtext_l.
"Miro si el texto para todas las denominaciones del campo esta informado
IF iv_all_text IS NOT INITIAL.
d_texto_corto = iv_all_text.
d_texto_medio = iv_all_text.
d_texto_largo = iv_all_text.
ELSE.
"Voy mirando cada una de las denominaciones par air poniendolas en variables.
IF iv_short_text IS NOT INITIAL.
d_texto_corto = iv_short_text.
ENDIF.
IF iv_medium_text IS NOT INITIAL.
d_texto_medio = iv_medium_text.
ENDIF.
IF iv_long_text IS NOT INITIAL.
d_texto_largo = iv_long_text.
ENDIF.
ENDIF.
"Dependiendo de las variables de textos informadas voy llamando a los método correspondientes.
IF d_texto_medio IS NOT INITIAL.
mo_column->set_medium_text( d_texto_medio ).
ENDIF.
IF d_texto_largo IS NOT INITIAL.
mo_column->set_long_text( d_texto_largo ).
ENDIF.
IF d_texto_corto IS NOT INITIAL.
mo_column->set_short_text( d_texto_corto ).
ENDIF.
ENDMETHOD.
METHOD set_footer_page.
"Creo el tipo de campo para la cabecera de la página
CALL METHOD me->set_page_field_type
EXPORTING
iv_row = iv_row
iv_column = iv_column
iv_field_type = iv_field_type
iv_text = iv_text.
"Paso los construidos de la cabecera al ALV
mo_alv->set_end_of_list( mo_cabecera ).
"Si se indica que el listado por impresora tendrá el mismo formato
"que el normal, entonces pasa la clase con la cabecera al ALV.
IF iv_list = if_salv_c_bool_sap=>true.
mo_alv->set_end_of_list( mo_cabecera ).
ENDIF.
ENDMETHOD.
METHOD set_function.
TRY.
"Oculto o visualizo el botón pasado por parametro.
cl_lista_funciones->set_function( name = iv_function
boolean = i_boolean ).
CATCH cx_salv_not_found cx_salv_wrong_call.
MESSAGE s000(fb) WITH iv_function TEXT-e01.
ENDTRY.
ENDMETHOD.
METHOD set_header_page.
"Creo el tipo de campo para la cabecera de la página
CALL METHOD me->set_page_field_type
EXPORTING
iv_row = iv_row
iv_column = iv_column
iv_field_type = iv_field_type
iv_text = iv_text.
"Paso los construidos de la cabecera al ALV
mo_alv->set_top_of_list( mo_cabecera ).
"Si se indica que el listado por impresora tendrá el mismo formato
"que el normal, entonces pasa la clase con la cabecera al ALV.
IF iv_list = if_salv_c_bool_sap=>true.
mo_alv->set_top_of_list_print( mo_cabecera ).
ENDIF.
ENDMETHOD.
METHOD set_layout.
CALL METHOD mo_layout->set_initial_layout
EXPORTING
value = iv_layout.
ENDMETHOD.
METHOD set_manag_layout.
"Actualizo la clave de la gestión
mo_layout->set_key( ms_layout_key ).
"E indico las restricciones existentes en la gestion de layout
mo_layout->set_save_restriction( iv_restriction ).
ENDMETHOD.
METHOD set_optimized_cols.
"Ajustar ancho de las columnas al contenido de los campos
mo_columns->set_optimize( cl_salv_display_settings=>true ).
ENDMETHOD.
METHOD set_page_field_type.
"Creo y asocio el tipo de campo de la cabecera o pie de pagina.
CASE iv_field_type.
WHEN cv_header_flow_type.
mo_layout_flow = mo_cabecera->create_flow( row = iv_row
column = iv_column ).
mo_layout_flow->create_text( text = iv_text
tooltip = iv_text ).
WHEN dc_cab_tipo_etiqueta.
mo_label = mo_cabecera->create_label( row = iv_row
column = iv_column
text = iv_text
tooltip = iv_text ).
WHEN dc_cab_tipo_header.
mo_header = mo_cabecera->create_header_information( row = iv_row
column = iv_column
text = iv_text
tooltip = iv_text ).
WHEN dc_cab_tipo_info.
mo_info = mo_cabecera->create_action_information( row = iv_row
column = iv_column
text = iv_text
tooltip = iv_text ).
WHEN dc_cab_tipo_texto.
mo_texto = mo_cabecera->create_text( row = iv_row
column = iv_column
text = iv_text
tooltip = iv_text
rowspan = iv_row colspan = iv_column ).
ENDCASE.
ENDMETHOD.
METHOD set_pfstatus.
DATA: cl_excep TYPE REF TO cx_salv_method_not_supported.
TRY.
"Funciones
mo_alv->set_screen_status( pfstatus = iv_pfstatus
report = mv_repid
set_functions = iv_functions ).
CATCH cx_salv_method_not_supported INTO cl_excep.
MESSAGE e000(fb) WITH cl_excep->key.
ENDTRY.
ENDMETHOD.
METHOD set_screen_popup.
mo_alv->set_screen_popup(
start_column = iv_start_column
end_column = iv_end_column
start_line = iv_start_line
end_line = iv_end_line ).
ENDMETHOD.
METHOD set_selection_mode.
"Los tipos de selección lo indica la interface: IF_SALV_C_SELECTION_MODE
mo_selections->set_selection_mode( iv_method ).
ENDMETHOD.
METHOD set_symbol_field.
"Indico que el campo bloqueo es un icono
mo_column ?= mo_columns->get_column( iv_field ).
mo_column->set_symbol( iv_active ).
ENDMETHOD.
METHOD set_title.
mo_display->set_list_header( iv_title ).
ENDMETHOD.
METHOD set_zebra_mode.
"Patrón de visualización Zebra
mo_display->set_striped_pattern( iv_active ).
ENDMETHOD.
METHOD show_alv.
mo_alv->display( ).
ENDMETHOD.
ENDCLASS.
| [
9,
10097,
23031,
9,
198,
9,
220,
220,
220,
220,
220,
220,
42715,
1168,
5097,
62,
8141,
62,
1847,
53,
5550,
20032,
17941,
198,
9,
10097,
23031,
9,
198,
9,
198,
9,
10097,
23031,
9,
198,
31631,
1976,
565,
62,
6888,
62,
282,
85,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
9,
1,
9,
1171,
6805,
286,
1398,
1168,
5097,
62,
8141,
62,
1847,
53,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
628,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
21680,
85,
62,
66,
62,
9460,
43068,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
21680,
85,
62,
66,
62,
282,
16747,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
21680,
85,
62,
31534,
62,
4658,
62,
11487,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
21680,
85,
62,
31534,
62,
12543,
2733,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
21680,
85,
62,
31534,
62,
4868,
764,
628,
220,
220,
220,
8355,
43429,
1546,
2087,
62,
8818,
198,
220,
220,
220,
220,
220,
7473,
611,
62,
21680,
85,
62,
31534,
62,
12543,
2733,
93,
29373,
62,
8818,
764,
198,
220,
220,
220,
8355,
43429,
1546,
706,
62,
21680,
85,
62,
8818,
198,
220,
220,
220,
220,
220,
7473,
611,
62,
21680,
85,
62,
31534,
62,
12543,
2733,
93,
8499,
62,
21680,
85,
62,
8818,
764,
198,
220,
220,
220,
8355,
43429,
1546,
878,
62,
21680,
85,
62,
8818,
198,
220,
220,
220,
220,
220,
7473,
611,
62,
21680,
85,
62,
31534,
62,
12543,
2733,
93,
19052,
62,
21680,
85,
62,
8818,
764,
198,
220,
220,
220,
8355,
43429,
1546,
4274,
62,
12976,
198,
220,
220,
220,
220,
220,
7473,
611,
62,
21680,
85,
62,
31534,
62,
4658,
62,
11487,
93,
23352,
62,
12976,
764,
198,
220,
220,
220,
8355,
43429,
1546,
886,
62,
1659,
62,
7700,
198,
220,
220,
220,
220,
220,
7473,
611,
62,
21680,
85,
62,
31534,
62,
4868,
93,
437,
62,
1659,
62,
7700,
764,
198,
220,
220,
220,
8355,
43429,
1546,
2792,
62,
12976,
198,
220,
220,
220,
220,
220,
7473,
611,
62,
21680,
85,
62,
31534,
62,
4658,
62,
11487,
93,
8726,
62,
12976,
764,
198,
220,
220,
220,
8355,
43429,
1546,
1353,
62,
1659,
62,
7700,
198,
220,
220,
220,
220,
220,
7473,
611,
62,
21680,
85,
62,
31534,
62,
4868,
93,
4852,
62,
1659,
62,
7700,
764,
628,
220,
220,
220,
42865,
537,
62,
4868,
64,
62,
20786,
295,
274,
41876,
4526,
37,
5390,
537,
62,
21680,
85,
62,
12543,
2733,
62,
4868,
764,
198,
220,
220,
220,
42715,
12,
26947,
30736,
62,
66,
397,
62,
22504,
78,
62,
316,
1557,
17167,
41876,
1312,
26173,
8924,
352,
13,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
764,
198,
220,
220,
220,
42715,
12,
26947,
269,
85,
62,
25677,
62,
11125,
62,
4906,
41876,
1312,
26173,
8924,
362,
13,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
764,
198,
220,
220,
220,
42715,
12,
26947,
30736,
62,
66,
397,
62,
22504,
78,
62,
25677,
41876,
1312,
26173,
8924,
513,
13,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
764,
198,
220,
220,
220,
42715,
12,
26947,
30736,
62,
66,
397,
62,
22504,
78,
62,
10951,
41876,
1312,
26173,
8924,
604,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
764,
198,
220,
220,
220,
42715,
12,
26947,
30736,
62,
66,
397,
62,
22504,
78,
62,
5239,
78,
41876,
1312,
26173,
8924,
642,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
764,
198,
220,
220,
220,
42715,
12,
26947,
30736,
62,
12543,
2733,
62,
439,
41876,
24143,
62,
2934,
62,
9979,
415,
26173,
8924,
362,
13,
25113,
2943,
5626,
13918,
764,
198,
220,
220,
220,
42715,
12,
26947,
30736,
62,
12543,
2733,
62,
12286,
41876,
24143,
62,
2934,
62,
9979,
415,
26173,
8924,
352,
13,
25113,
2943,
5626,
13918,
764,
198,
220,
220,
220,
42715,
12,
26947,
30736,
62,
12543,
2733,
62,
23108,
41876,
24143,
62,
2934,
62,
9979,
415,
26173,
8924,
657,
13,
25113,
2943,
5626,
13918,
764,
628,
220,
220,
220,
337,
36252,
50,
2251,
62,
282,
85,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
4868,
62,
14171,
220,
220,
220,
220,
220,
41876,
31841,
62,
30388,
5550,
38865,
611,
62,
21680,
85,
62,
66,
62,
30388,
62,
82,
499,
14804,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
34924,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
34924,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
34924,
62,
3672,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
23065,
220,
220,
220,
220,
220,
220,
220,
41876,
827,
7856,
312,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
310,
62,
7890,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
3084,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
17953,
62,
282,
85,
764,
198,
220,
220,
220,
337,
36252,
50,
819,
83,
62,
29373,
62,
8818,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7473,
49261,
2087,
62,
8818,
3963,
537,
62,
21680,
85,
62,
31534,
62,
11487,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5145,
68,
62,
21680,
85,
62,
8818,
764,
198,
220,
220,
220,
337,
36252,
50,
819,
83,
62,
8499,
62,
21680,
85,
62,
8818,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7473,
49261,
611,
62,
21680,
85,
62,
31534,
62,
12543,
2733,
93,
8499,
62,
21680,
85,
62,
8818,
3963,
537,
62,
21680,
85,
62,
31534,
62,
11487,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
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 )
( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'W' threshold = 1 ) ).
ENDMETHOD.
METHOD y_if_clean_code_manager~calculate_obj_creation_date.
result = '19000101'.
ENDMETHOD.
ENDCLASS.
CLASS ltd_ref_scan_manager DEFINITION FOR TESTING INHERITING FROM y_scan_manager_double.
PUBLIC SECTION.
METHODS:
set_data_for_ok,
set_data_for_error,
set_pseudo_comment_ok.
ENDCLASS.
CLASS ltd_ref_scan_manager IMPLEMENTATION.
METHOD set_data_for_ok.
convert_code( VALUE #(
( 'REPORT ut_test.' )
( 'CLASS lcl_classname DEFINITION.' )
( ' PUBLIC SECTION.' )
( ' METHODS empty.' )
( 'ENDCLASS.' )
( 'CLASS lcl_classname IMPLEMENTATION.' )
( ' METHOD empty.' )
( ' DATA str TYPE c.' )
( ' ENDMETHOD.' )
( 'ENDCLASS.' )
) ).
ENDMETHOD.
METHOD set_data_for_error.
convert_code( VALUE #(
( 'REPORT ut_test.' )
( 'CLASS lcl_classname DEFINITION.' )
( ' PUBLIC SECTION.' )
( ' METHODS empty.' )
( 'ENDCLASS.' )
( 'CLASS lcl_classname IMPLEMENTATION.' )
( ' METHOD empty.' )
( '* comment' )
( ' "comment' )
( ' ENDMETHOD.' )
( 'ENDCLASS.' )
( 'START-OF-SELECTION.' )
( 'FORM name.' )
( 'ENDFORM.' )
( 'MODULE mod.' )
( 'ENDMODULE.' )
) ).
ENDMETHOD.
METHOD set_pseudo_comment_ok.
convert_code( VALUE #(
( 'REPORT ut_test.' )
( 'CLASS lcl_classname DEFINITION.' )
( ' PUBLIC SECTION.' )
( ' METHODS empty.' )
( 'ENDCLASS.' )
( 'CLASS lcl_classname IMPLEMENTATION.' )
( ' METHOD empty.' )
( ' ENDMETHOD. "#EC EMPTY_PROCEDURE' )
( 'ENDCLASS.' )
( 'START-OF-SELECTION.' )
( 'FORM name.' )
( 'ENDFORM. "#EC EMPTY_PROCEDURE' )
( 'MODULE mod.' )
( 'ENDMODULE. "#EC EMPTY_PROCEDURE' )
) ).
ENDMETHOD.
ENDCLASS.
CLASS ltd_clean_code_exemption_no DEFINITION FOR TESTING
INHERITING FROM y_exemption_handler.
PUBLIC SECTION.
METHODS: is_object_exempted REDEFINITION.
ENDCLASS.
CLASS ltd_clean_code_exemption_no IMPLEMENTATION.
METHOD is_object_exempted.
RETURN.
ENDMETHOD.
ENDCLASS.
CLASS local_test_class DEFINITION FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
DATA: cut TYPE REF TO y_check_empty_procedures,
ref_scan_manager_double TYPE REF TO ltd_ref_scan_manager.
METHODS:
setup,
assert_errors IMPORTING err_cnt TYPE i,
assert_pseudo_comments IMPORTING pc_cnt TYPE i,
is_bound FOR TESTING,
cut_ok FOR TESTING,
cut_error FOR TESTING,
pseudo_comment_ok FOR TESTING.
ENDCLASS.
CLASS y_check_empty_procedures DEFINITION LOCAL FRIENDS local_test_class.
CLASS local_test_class IMPLEMENTATION.
METHOD setup.
cut = NEW y_check_empty_procedures( ).
ref_scan_manager_double = NEW ltd_ref_scan_manager( ).
cut->ref_scan_manager ?= ref_scan_manager_double.
cut->clean_code_manager = NEW ltd_clean_code_manager( ).
cut->clean_code_exemption_handler = NEW ltd_clean_code_exemption_no( ).
cut->attributes_maintained = abap_true.
ENDMETHOD.
METHOD is_bound.
cl_abap_unit_assert=>assert_bound(
EXPORTING
act = cut ).
ENDMETHOD.
METHOD cut_ok.
ref_scan_manager_double->set_data_for_ok( ).
cut->run( ).
assert_errors( 0 ).
assert_pseudo_comments( 0 ).
ENDMETHOD.
METHOD cut_error.
ref_scan_manager_double->set_data_for_error( ).
cut->run( ).
assert_errors( 3 ).
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( 3 ).
ENDMETHOD.
METHOD assert_errors.
cl_abap_unit_assert=>assert_equals(
EXPORTING
act = cut->statistics->get_number_errors( )
exp = err_cnt ).
ENDMETHOD.
METHOD assert_pseudo_comments.
cl_abap_unit_assert=>assert_equals(
EXPORTING
act = cut->statistics->get_number_pseudo_comments( )
exp = pc_cnt ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
8671,
62,
27773,
62,
8189,
62,
37153,
5550,
20032,
17941,
7473,
43001,
2751,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
27773,
62,
8189,
62,
37153,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
93,
961,
62,
9122,
62,
23144,
2890,
13,
198,
220,
220,
220,
1255,
796,
26173,
8924,
1303,
7,
357,
4174,
62,
261,
62,
9288,
8189,
796,
450,
499,
62,
7942,
4174,
62,
261,
62,
27781,
62,
8189,
796,
450,
499,
62,
7942,
1293,
78,
796,
705,
36,
6,
11387,
796,
657,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
4174,
62,
261,
62,
9288,
8189,
796,
450,
499,
62,
7942,
4174,
62,
261,
62,
27781,
62,
8189,
796,
450,
499,
62,
7942,
1293,
78,
796,
705,
54,
6,
11387,
796,
352,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
93,
9948,
3129,
378,
62,
26801,
62,
38793,
62,
4475,
13,
198,
220,
220,
220,
1255,
796,
705,
1129,
18005,
486,
4458,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
5550,
20032,
17941,
7473,
43001,
2751,
3268,
16879,
2043,
2751,
16034,
331,
62,
35836,
62,
37153,
62,
23352,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
900,
62,
7890,
62,
1640,
62,
482,
11,
198,
220,
220,
220,
220,
220,
900,
62,
7890,
62,
1640,
62,
18224,
11,
198,
220,
220,
220,
220,
220,
900,
62,
7752,
12003,
62,
23893,
62,
482,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
482,
13,
198,
220,
220,
220,
10385,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
357,
705,
2200,
15490,
3384,
62,
9288,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
5550,
20032,
17941,
2637,
1267,
198,
220,
220,
220,
357,
705,
44731,
44513,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
337,
36252,
50,
6565,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
31631,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
30023,
2538,
10979,
6234,
2637,
1267,
198,
220,
220,
220,
357,
705,
337,
36252,
6565,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
42865,
965,
41876,
269,
2637,
1267,
198,
220,
220,
220,
357,
705,
23578,
49273,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
31631,
2637,
1267,
198,
220,
220,
220,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
18224,
13,
198,
220,
220,
220,
10385,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
357,
705,
2200,
15490,
3384,
62,
9288,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
5550,
20032,
17941,
2637,
1267,
198,
220,
220,
220,
357,
705,
44731,
44513,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
337,
36252,
50,
6565,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
31631,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
30023,
2538,
10979,
6234,
2637,
1267,
198,
220,
220,
220,
357,
705,
337,
36252,
6565,
2637,
1267,
198,
220,
220,
220,
357,
705,
9,
2912,
6,
1267,
198,
220,
220,
220,
357,
705,
220,
366,
23893,
6,
1267,
198,
220,
220,
220,
357,
705,
23578,
49273,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
31631,
2637,
1267,
628,
220,
220,
220,
357,
705,
2257,
7227,
12,
19238,
12,
46506,
2849,
2637,
1267,
628,
220,
220,
220,
357,
705,
21389,
1438,
2637,
1267,
198,
220,
220,
220,
357,
705,
1677,
8068,
1581,
44,
2637,
1267,
628,
220,
220,
220,
357,
705,
33365,
24212,
953,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
33365,
24212,
2637,
1267,
198,
220,
220,
220,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
900,
62,
7752,
12003,
62,
23893,
62,
482,
13,
198,
220,
220,
220,
10385,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
357,
705,
2200,
15490,
3384,
62,
9288,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
5550,
20032,
17941,
2637,
1267,
198,
220,
220,
220,
357,
705,
44731,
44513,
2637,
1267,
198,
220,
220,
220,
357,
705,
220,
337,
36252,
50,
6565,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
31631,
2637,
1267,
628,
220,
220,
220,
357,
705,
31631,
300,
565,
62,
4871,
3672,
30023,
2538,
10979,
6234,
2637,
1267,
198,
220,
220,
220,
357,
705,
337,
36252,
6565,
2637,
1267,
198,
220,
220,
220,
357,
705,
23578,
49273,
13,
25113,
2943,
38144,
9936,
62,
4805,
4503,
1961,
11335,
6,
1267,
198,
220,
220,
220,
357,
705,
10619,
31631,
2637,
1267,
628,
220,
220,
220,
357,
705,
2257,
7227,
12,
19238,
12,
46506,
2849,
2637,
1267,
628,
220,
220,
220,
357,
705,
21389,
1438,
2637,
1267,
198,
220,
220,
220,
357,
705,
1677,
8068,
1581,
44,
13,
25113,
2943,
38144,
9936,
62,
4805,
4503,
1961,
11335,
6,
1267,
628,
220,
220,
220,
357,
705,
33365,
24212,
953,
2637,
1267,
198,
220,
220,
220,
357,
705,
10619,
33365,
24212,
13,
25113,
2943,
38144,
9936,
62,
4805,
4503,
1961,
11335,
6,
1267,
198,
220,
220,
220,
1267,
6739,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
27773,
62,
8189,
62,
1069,
11221,
62,
3919,
5550,
20032,
17941,
7473,
43001,
2751,
198,
220,
3268,
16879,
2043,
2751,
16034,
331,
62,
1069,
11221,
62,
30281,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
318,
62,
15252,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcx_wd_csv_invalid_delimiter DEFINITION PUBLIC INHERITING FROM zcx_wd_csv_base FINAL CREATE PUBLIC.
PUBLIC SECTION.
CONSTANTS:
BEGIN OF zcx_wd_csv_invalid_delimiter,
msgid TYPE symsgid VALUE 'ZWD_CSV',
msgno TYPE symsgno VALUE '006',
attr1 TYPE scx_attrname VALUE 'DELIMITER',
attr2 TYPE scx_attrname VALUE '',
attr3 TYPE scx_attrname VALUE '',
attr4 TYPE scx_attrname VALUE '',
END OF zcx_wd_csv_invalid_delimiter.
DATA:
delimiter TYPE zcl_wd_csv=>mty_delimiter READ-ONLY.
METHODS:
constructor IMPORTING delimiter TYPE zcl_wd_csv=>mty_delimiter.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcx_wd_csv_invalid_delimiter IMPLEMENTATION.
METHOD constructor ##ADT_SUPPRESS_GENERATION.
* ---------------------------------------------------------------------
super->constructor( previous = previous ).
* ---------------------------------------------------------------------
me->delimiter = delimiter.
* ---------------------------------------------------------------------
CLEAR me->textid.
* ---------------------------------------------------------------------
if_t100_message~t100key = zcx_wd_csv_invalid_delimiter.
* ---------------------------------------------------------------------
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
66,
87,
62,
16993,
62,
40664,
62,
259,
12102,
62,
12381,
320,
2676,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
66,
87,
62,
16993,
62,
40664,
62,
8692,
25261,
29244,
6158,
44731,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1976,
66,
87,
62,
16993,
62,
40664,
62,
259,
12102,
62,
12381,
320,
2676,
11,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
41876,
827,
19662,
312,
26173,
8924,
705,
57,
22332,
62,
7902,
53,
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,
35,
3698,
3955,
2043,
1137,
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,
1976,
66,
87,
62,
16993,
62,
40664,
62,
259,
12102,
62,
12381,
320,
2676,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
46728,
2676,
41876,
1976,
565,
62,
16993,
62,
40664,
14804,
76,
774,
62,
12381,
320,
2676,
20832,
12,
1340,
11319,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
30023,
9863,
2751,
46728,
2676,
41876,
1976,
565,
62,
16993,
62,
40664,
14804,
76,
774,
62,
12381,
320,
2676,
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,
16993,
62,
40664,
62,
259,
12102,
62,
12381,
320,
2676,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
23772,
22492,
2885,
51,
62,
40331,
32761,
62,
35353,
1137,
6234,
13,
198,
9,
16529,
30934,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
2180,
796,
2180,
6739,
198,
198,
9,
16529,
30934,
198,
220,
220,
220,
502,
3784,
12381,
320,
2676,
796,
46728,
2676,
13,
198,
198,
9,
16529,
30934,
198,
220,
220,
220,
30301,
1503,
502,
3784,
5239,
312,
13,
198,
198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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_4_MONSTER_MAKING_MACHINE definition
public
create public
global friends ZCL_MONSTER_OBJECT_FACTORY .
public section.
interfaces ZIF_4_MONSTER_MAKING_MACHINE .
aliases MAKE_MONSTER
for ZIF_4_MONSTER_MAKING_MACHINE~MAKE_MONSTER .
protected section.
private section.
ENDCLASS.
CLASS ZCL_4_MONSTER_MAKING_MACHINE IMPLEMENTATION.
method ZIF_4_MONSTER_MAKING_MACHINE~MAKE_MONSTER.
endmethod.
ENDCLASS.
| [
4871,
1168,
5097,
62,
19,
62,
27857,
41809,
62,
5673,
37286,
62,
44,
16219,
8881,
6770,
198,
220,
1171,
198,
220,
2251,
1171,
628,
220,
3298,
2460,
1168,
5097,
62,
27857,
41809,
62,
9864,
23680,
62,
37,
10659,
15513,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
5064,
62,
19,
62,
27857,
41809,
62,
5673,
37286,
62,
44,
16219,
8881,
764,
628,
220,
47217,
39134,
62,
27857,
41809,
198,
220,
220,
220,
329,
1168,
5064,
62,
19,
62,
27857,
41809,
62,
5673,
37286,
62,
44,
16219,
8881,
93,
5673,
7336,
62,
27857,
41809,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
19,
62,
27857,
41809,
62,
5673,
37286,
62,
44,
16219,
8881,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
1168,
5064,
62,
19,
62,
27857,
41809,
62,
5673,
37286,
62,
44,
16219,
8881,
93,
5673,
7336,
62,
27857,
41809,
13,
628,
220,
886,
24396,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report ZDEMO_TECHED2
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zdemo_teched2.
*******************************
* Data Object declaration *
*******************************
DATA: lo_excel TYPE REF TO zcl_excel,
lo_excel_writer TYPE REF TO zif_excel_writer,
lo_worksheet TYPE REF TO zcl_excel_worksheet.
DATA: lo_style_title TYPE REF TO zcl_excel_style,
lv_style_title_guid TYPE zexcel_cell_style.
DATA: lv_file TYPE xstring,
lv_bytecount TYPE i,
lt_file_tab TYPE solix_tab.
DATA: lv_full_path TYPE string,
lv_workdir TYPE string,
lv_file_separator TYPE c.
CONSTANTS: lv_default_file_name TYPE string VALUE 'TechEd01.xlsx'.
*******************************
* Selection screen management *
*******************************
PARAMETERS: p_path TYPE zexcel_export_dir.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
lv_workdir = p_path.
cl_gui_frontend_services=>directory_browse( EXPORTING initial_folder = lv_workdir
CHANGING selected_folder = lv_workdir ).
p_path = lv_workdir.
INITIALIZATION.
cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = lv_workdir ).
cl_gui_cfw=>flush( ).
p_path = lv_workdir.
START-OF-SELECTION.
IF p_path IS INITIAL.
p_path = lv_workdir.
ENDIF.
cl_gui_frontend_services=>get_file_separator( CHANGING file_separator = lv_file_separator ).
CONCATENATE p_path lv_file_separator lv_default_file_name INTO lv_full_path.
*******************************
* abap2xlsx create XLSX *
*******************************
" Create excel instance
CREATE OBJECT lo_excel.
" Styles
lo_style_title = lo_excel->add_new_style( ).
lo_style_title->font->bold = abap_true.
lo_style_title->font->color-rgb = zcl_excel_style_color=>c_blue.
lv_style_title_guid = lo_style_title->get_guid( ).
" Get active sheet
lo_worksheet = lo_excel->get_active_worksheet( ).
lo_worksheet->set_title( ip_title = 'Demo TechEd' ).
lo_worksheet->set_cell( ip_column = 'B' ip_row = 5 ip_value = 'TechEd demo' ip_style = lv_style_title_guid ).
" Create xlsx stream
CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_2007.
lv_file = lo_excel_writer->write_file( lo_excel ).
*******************************
* Output *
*******************************
" Convert to binary
lt_file_tab = cl_bcs_convert=>xstring_to_solix( iv_xstring = lv_file ).
lv_bytecount = xstrlen( lv_file ).
" Save the file
cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = lv_bytecount
filename = lv_full_path
filetype = 'BIN'
CHANGING data_tab = lt_file_tab ).
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
39429,
46,
62,
51,
25994,
1961,
17,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
198,
2200,
15490,
220,
1976,
9536,
78,
62,
660,
1740,
17,
13,
198,
198,
8412,
46068,
8162,
198,
9,
220,
220,
6060,
9515,
14305,
220,
220,
1635,
198,
8412,
46068,
8162,
198,
198,
26947,
25,
2376,
62,
1069,
5276,
220,
220,
220,
220,
220,
220,
220,
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,
1069,
5276,
62,
16002,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
1069,
5276,
62,
16002,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
5225,
25473,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
5225,
25473,
13,
198,
198,
26947,
25,
2376,
62,
7635,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
7635,
62,
7839,
62,
5162,
312,
220,
220,
220,
220,
220,
41876,
1976,
1069,
5276,
62,
3846,
62,
7635,
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,
10943,
2257,
1565,
4694,
25,
300,
85,
62,
12286,
62,
7753,
62,
3672,
41876,
4731,
26173,
8924,
705,
17760,
7407,
486,
13,
87,
7278,
87,
4458,
198,
198,
8412,
46068,
8162,
198,
9,
29538,
3159,
4542,
1635,
198,
8412,
46068,
8162,
198,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
6978,
41876,
1976,
1069,
5276,
62,
39344,
62,
15908,
13,
198,
198,
1404,
33493,
2849,
12,
6173,
2200,
1677,
6177,
26173,
8924,
12,
2200,
35780,
7473,
279,
62,
6978,
13,
198,
220,
300,
85,
62,
1818,
15908,
796,
279,
62,
6978,
13,
198,
220,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
34945,
62,
25367,
325,
7,
7788,
15490,
2751,
4238,
62,
43551,
220,
796,
300,
85,
62,
1818,
15908,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
6163,
62,
43551,
796,
300,
85,
62,
1818,
15908,
6739,
198,
220,
279,
62,
6978,
796,
300,
85,
62,
1818,
15908,
13,
198,
198,
1268,
2043,
12576,
14887,
6234,
13,
198,
220,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
1136,
62,
82,
499,
48317,
62,
1818,
15908,
7,
5870,
15567,
2751,
31841,
1818,
15908,
796,
300,
85,
62,
1818,
15908,
6739,
198,
220,
537,
62,
48317,
62,
12993,
86,
14804,
25925,
7,
6739,
198,
220,
279,
62,
6978,
796,
300,
85,
62,
1818,
15908,
13,
198,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
628,
220,
16876,
279,
62,
6978,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
279,
62,
6978,
796,
300,
85,
62,
1818,
15908,
13,
198,
220,
23578,
5064,
13,
198,
220,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
1136,
62,
7753,
62,
25512,
1352,
7,
5870,
15567,
2751,
2393,
62,
25512,
1352,
796,
300,
85,
62,
7753,
62,
25512,
1352,
6739,
198,
220,
39962,
1404,
1677,
6158,
279,
62,
6978,
300,
85,
62,
7753,
62,
25512,
1352,
300,
85,
62,
12286,
62,
7753,
62,
3672,
39319,
300,
85,
62,
12853,
62,
6978,
13,
198,
198,
8412,
46068,
8162,
198,
9,
220,
220,
220,
450,
499,
17,
87,
7278,
87,
2251,
1395,
6561,
55,
220,
220,
220,
1635,
198,
8412,
46068,
8162,
628,
220,
366,
13610,
27336,
4554,
198,
220,
29244,
6158,
25334,
23680,
2376,
62,
1069,
5276,
13,
628,
220,
366,
44963,
198,
220,
2376,
62,
7635,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
2376,
62,
1069,
5276,
3784,
2860,
62,
3605,
62,
7635,
7,
6739,
198,
220,
2376,
62,
7635,
62,
7839,
3784,
10331,
3784,
36575,
220,
220,
220,
220,
220,
220,
796,
450,
499,
62,
7942,
13,
198,
220,
2376,
62,
7635,
62,
7839,
3784,
10331,
3784,
8043,
12,
81,
22296,
220,
796,
1976,
565,
62,
1069,
5276,
62,
7635,
62,
8043,
14804,
66,
62,
17585,
13,
198,
220,
300,
85,
62,
7635,
62,
7839,
62,
5162,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
2376,
62,
7635,
62,
7839,
3784,
1136,
62,
5162,
312,
7,
6739,
628,
220,
366,
3497,
4075,
9629,
198,
220,
2376,
62,
5225,
25473,
796,
2376,
62,
1069,
5276,
3784,
1136,
62,
5275,
62,
5225,
25473,
7,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
7839,
7,
20966,
62,
7839,
796,
705,
11522,
78,
9634,
7407,
6,
6739,
198,
220,
2376,
62,
5225,
25473,
3784,
2617,
62,
3846,
7,
20966,
62,
28665,
796,
705,
33,
6,
20966,
62,
808,
796,
642,
20966,
62,
8367,
796,
705,
17760,
7407,
13605,
6,
20966,
62,
7635,
796,
300,
85,
62,
7635,
62,
7839,
62,
5162,
312,
6739,
628,
220,
366,
13610,
2124,
7278,
87,
4269,
198,
220,
29244,
6158,
25334,
23680,
2376,
62,
1069,
5276,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
INTERFACE zif_githubcom PUBLIC.
* Generated by abap-openapi-client
* GitHub v3 REST API, 1.1.4
* 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: 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: 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: 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: 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: 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: application-grant, object
TYPES: BEGIN OF subapplication_grant_app,
client_id TYPE string,
name TYPE string,
url TYPE string,
END OF subapplication_grant_app.
TYPES: BEGIN OF application_grant,
id TYPE i,
url TYPE string,
app TYPE subapplication_grant_app,
created_at TYPE string,
updated_at TYPE string,
scopes TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
user TYPE nullable_simple_user,
END OF application_grant.
* Component schema: nullable-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: 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: 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: 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: 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: runner-application, object
TYPES: BEGIN OF runner_application,
os TYPE string,
architecture TYPE string,
download_url TYPE string,
filename TYPE string,
temp_download_token TYPE string,
sha256_checksum TYPE string,
END OF runner_application.
* Component schema: authentication-token, object
TYPES: BEGIN OF subauthentication_token_permis,
dummy_workaround TYPE i,
END OF subauthentication_token_permis.
TYPES: BEGIN OF authentication_token,
token TYPE string,
expires_at TYPE string,
permissions TYPE subauthentication_token_permis,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
single_file TYPE string,
repository_selection TYPE string,
END OF authentication_token.
* Component schema: audit-log-event, object
TYPES: BEGIN OF subaudit_log_event_data,
dummy_workaround TYPE i,
END OF subaudit_log_event_data.
TYPES: BEGIN OF subaudit_log_event_actor_locat,
country_name TYPE string,
END OF subaudit_log_event_actor_locat.
TYPES: BEGIN OF audit_log_event,
timestamp TYPE i,
action TYPE string,
active TYPE abap_bool,
active_was TYPE abap_bool,
actor TYPE string,
actor_id TYPE i,
actor_location TYPE subaudit_log_event_actor_locat,
data TYPE subaudit_log_event_data,
org_id TYPE i,
blocked_user TYPE string,
business TYPE string,
config TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
config_was TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
content_type TYPE string,
created_at TYPE i,
deploy_key_fingerprint TYPE string,
_document_id TYPE string,
emoji TYPE string,
events TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
events_were TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
explanation TYPE string,
fingerprint TYPE string,
hook_id TYPE i,
limited_availability TYPE abap_bool,
message TYPE string,
name TYPE string,
old_user TYPE string,
openssh_public_key TYPE string,
org TYPE string,
previous_visibility TYPE string,
read_only TYPE abap_bool,
repo TYPE string,
repository TYPE string,
repository_public TYPE abap_bool,
target_login TYPE string,
team TYPE string,
transport_protocol TYPE i,
transport_protocol_name TYPE string,
user TYPE string,
visibility TYPE string,
END OF audit_log_event.
* Component schema: actions-billing-usage, object
TYPES: BEGIN OF subactions_billing_usage_minut,
ubuntu TYPE i,
macos TYPE i,
windows TYPE i,
END OF subactions_billing_usage_minut.
TYPES: BEGIN OF actions_billing_usage,
total_minutes_used TYPE i,
total_paid_minutes_used TYPE i,
included_minutes TYPE i,
minutes_used_breakdown TYPE subactions_billing_usage_minut,
END OF actions_billing_usage.
* Component schema: advanced-security-active-committers-user, object
TYPES: BEGIN OF advanced_security_active_commi,
user_login TYPE string,
last_pushed_date TYPE string,
END OF advanced_security_active_commi.
* Component schema: advanced-security-active-committers-repository, object
TYPES: BEGIN OF advanced_security_active_com01,
name TYPE string,
advanced_security_committers TYPE i,
advanced_security_committers_b TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF advanced_security_active_com01.
* Component schema: advanced-security-active-committers, object
TYPES: BEGIN OF advanced_security_active_com02,
total_advanced_security_commit TYPE i,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF advanced_security_active_com02.
* Component schema: packages-billing-usage, object
TYPES: BEGIN OF packages_billing_usage,
total_gigabytes_bandwidth_used TYPE i,
total_paid_gigabytes_bandwidth TYPE i,
included_gigabytes_bandwidth TYPE i,
END OF packages_billing_usage.
* Component schema: combined-billing-usage, object
TYPES: BEGIN OF combined_billing_usage,
days_left_in_billing_cycle TYPE i,
estimated_paid_storage_for_mon TYPE i,
estimated_storage_for_month TYPE i,
END OF combined_billing_usage.
* 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: 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: author_association, string
TYPES author_association TYPE string.
* 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: 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: 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: 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: 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: marketplace-listing-plan, object
TYPES: BEGIN OF marketplace_listing_plan,
url TYPE string,
accounts_url TYPE string,
id TYPE i,
number TYPE i,
name TYPE string,
description TYPE string,
monthly_price_in_cents TYPE i,
yearly_price_in_cents TYPE i,
price_model TYPE string,
has_free_trial TYPE abap_bool,
unit_name TYPE string,
state TYPE string,
bullets TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF marketplace_listing_plan.
* Component schema: marketplace-purchase, object
TYPES: BEGIN OF submarketplace_purchase_mark01,
billing_cycle TYPE string,
next_billing_date TYPE string,
is_installed TYPE abap_bool,
unit_count TYPE i,
on_free_trial TYPE abap_bool,
free_trial_ends_on TYPE string,
updated_at TYPE string,
plan TYPE marketplace_listing_plan,
END OF submarketplace_purchase_mark01.
TYPES: BEGIN OF submarketplace_purchase_market,
is_installed TYPE abap_bool,
effective_date TYPE string,
unit_count TYPE i,
id TYPE i,
plan TYPE marketplace_listing_plan,
END OF submarketplace_purchase_market.
TYPES: BEGIN OF marketplace_purchase,
url TYPE string,
type TYPE string,
id TYPE i,
login TYPE string,
organization_billing_email TYPE string,
email TYPE string,
marketplace_pending_change TYPE submarketplace_purchase_market,
marketplace_purchase TYPE submarketplace_purchase_mark01,
END OF marketplace_purchase.
* 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,
role_name TYPE string,
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-custom-repository-role, object
TYPES: BEGIN OF organization_custom_repository,
id TYPE i,
name TYPE string,
END OF organization_custom_repository.
* 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: credential-authorization, object
TYPES: BEGIN OF credential_authorization,
login TYPE string,
credential_id TYPE i,
credential_type TYPE string,
token_last_eight TYPE string,
credential_authorized_at TYPE string,
scopes TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
fingerprint TYPE string,
credential_accessed_at TYPE string,
authorized_credential_id TYPE i,
authorized_credential_title TYPE string,
authorized_credential_note TYPE string,
authorized_credential_expires_ TYPE string,
END OF credential_authorization.
* 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: organization-invitation, object
TYPES: BEGIN OF organization_invitation,
id TYPE i,
login TYPE string,
email TYPE string,
role TYPE string,
created_at TYPE string,
failed_at TYPE string,
failed_reason TYPE string,
inviter TYPE simple_user,
team_count TYPE i,
node_id TYPE string,
invitation_teams_url TYPE string,
END OF organization_invitation.
* 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: interaction-group, string
TYPES interaction_group TYPE string.
* Component schema: interaction-limit-response, object
TYPES: BEGIN OF interaction_limit_response,
limit TYPE interaction_group,
origin TYPE string,
expires_at TYPE string,
END OF interaction_limit_response.
* Component schema: interaction-expiry, string
TYPES interaction_expiry TYPE string.
* Component schema: interaction-limit, object
TYPES: BEGIN OF interaction_limit,
limit TYPE interaction_group,
expiry TYPE interaction_expiry,
END OF interaction_limit.
* 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: 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: migration, object
TYPES: BEGIN OF migration,
id TYPE i,
owner TYPE nullable_simple_user,
guid TYPE string,
state TYPE string,
lock_repositories TYPE abap_bool,
exclude_metadata TYPE abap_bool,
exclude_git_data TYPE abap_bool,
exclude_attachments TYPE abap_bool,
exclude_releases TYPE abap_bool,
exclude_owner_projects TYPE abap_bool,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
url TYPE string,
created_at TYPE string,
updated_at TYPE string,
node_id TYPE string,
archive_url TYPE string,
exclude TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF migration.
* Component schema: nullable-minimal-repository, object
TYPES: BEGIN OF subnullable_minimal_reposito01,
key TYPE string,
name TYPE string,
spdx_id TYPE string,
url TYPE string,
node_id TYPE string,
END OF subnullable_minimal_reposito01.
TYPES: BEGIN OF subnullable_minimal_repository,
admin TYPE abap_bool,
maintain TYPE abap_bool,
push TYPE abap_bool,
triage TYPE abap_bool,
pull TYPE abap_bool,
END OF subnullable_minimal_repository.
TYPES: BEGIN OF nullable_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 subnullable_minimal_repository,
role_name TYPE string,
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 subnullable_minimal_reposito01,
forks TYPE i,
open_issues TYPE i,
watchers TYPE i,
allow_forking TYPE abap_bool,
END OF nullable_minimal_repository.
* Component schema: package, object
TYPES: BEGIN OF package,
id TYPE i,
name TYPE string,
package_type TYPE string,
url TYPE string,
html_url TYPE string,
version_count TYPE i,
visibility TYPE string,
owner TYPE nullable_simple_user,
repository TYPE nullable_minimal_repository,
created_at TYPE string,
updated_at TYPE string,
END OF package.
* Component schema: package-version, object
TYPES: BEGIN OF subsubpackage_version_metada01,
tag TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF subsubpackage_version_metada01.
TYPES: BEGIN OF subsubpackage_version_metadata,
tags TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF subsubpackage_version_metadata.
TYPES: BEGIN OF subpackage_version_metadata,
package_type TYPE string,
container TYPE subsubpackage_version_metadata,
docker TYPE subsubpackage_version_metada01,
END OF subpackage_version_metadata.
TYPES: BEGIN OF package_version,
id TYPE i,
name TYPE string,
url TYPE string,
package_html_url TYPE string,
html_url TYPE string,
license TYPE string,
description TYPE string,
created_at TYPE string,
updated_at TYPE string,
deleted_at TYPE string,
metadata TYPE subpackage_version_metadata,
END OF package_version.
* 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: 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: 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: organization-secret-scanning-alert, object
TYPES: BEGIN OF organization_secret_scanning_a,
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,
repository TYPE minimal_repository,
END OF organization_secret_scanning_a.
* Component schema: group-mapping, object
TYPES: BEGIN OF group_mapping,
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF group_mapping.
* 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,
role_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,
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: environment-approvals, object
TYPES: BEGIN OF environment_approvals,
environments TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
state TYPE string,
user TYPE simple_user,
comment TYPE string,
END OF environment_approvals.
* Component schema: deployment-reviewer-type, string
TYPES deployment_reviewer_type TYPE string.
* Component schema: pending-deployment, object
TYPES: BEGIN OF subpending_deployment_environm,
id TYPE i,
node_id TYPE string,
name TYPE string,
url TYPE string,
html_url TYPE string,
END OF subpending_deployment_environm.
TYPES: BEGIN OF pending_deployment,
environment TYPE subpending_deployment_environm,
wait_timer TYPE i,
wait_timer_started_at TYPE string,
current_user_can_approve TYPE abap_bool,
reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF pending_deployment.
* 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: 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-updated-at, string
TYPES alert_updated_at TYPE string.
* Component schema: alert-instances-url, string
TYPES alert_instances_url TYPE string.
* Component schema: code-scanning-alert-fixed-at, string
TYPES code_scanning_alert_fixed_at 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,
updated_at TYPE alert_updated_at,
url TYPE alert_url,
html_url TYPE alert_html_url,
instances_url TYPE alert_instances_url,
state TYPE code_scanning_alert_state,
fixed_at TYPE code_scanning_alert_fixed_at,
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,
updated_at TYPE alert_updated_at,
url TYPE alert_url,
html_url TYPE alert_html_url,
instances_url TYPE alert_instances_url,
state TYPE code_scanning_alert_state,
fixed_at TYPE code_scanning_alert_fixed_at,
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: nullable-codespace-machine, object
TYPES: BEGIN OF nullable_codespace_machine,
name TYPE string,
display_name TYPE string,
operating_system TYPE string,
storage_in_bytes TYPE i,
memory_in_bytes TYPE i,
cpus TYPE i,
prebuild_availability TYPE string,
END OF nullable_codespace_machine.
* Component schema: codespace, object
TYPES: BEGIN OF subcodespace_runtime_constrain,
allowed_port_privacy_settings TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF subcodespace_runtime_constrain.
TYPES: BEGIN OF subcodespace_git_status,
ahead TYPE i,
behind TYPE i,
has_unpushed_changes TYPE abap_bool,
has_uncommitted_changes TYPE abap_bool,
ref TYPE string,
END OF subcodespace_git_status.
TYPES: BEGIN OF codespace,
id TYPE i,
name TYPE string,
environment_id TYPE string,
owner TYPE simple_user,
billable_owner TYPE simple_user,
repository TYPE minimal_repository,
machine TYPE nullable_codespace_machine,
prebuild TYPE abap_bool,
created_at TYPE string,
updated_at TYPE string,
last_used_at TYPE string,
state TYPE string,
url TYPE string,
git_status TYPE subcodespace_git_status,
location TYPE string,
idle_timeout_minutes TYPE i,
web_url TYPE string,
machines_url TYPE string,
start_url TYPE string,
stop_url TYPE string,
pulls_url TYPE string,
recent_folders TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
runtime_constraints TYPE subcodespace_runtime_constrain,
END OF codespace.
* Component schema: codespace-machine, object
TYPES: BEGIN OF codespace_machine,
name TYPE string,
display_name TYPE string,
operating_system TYPE string,
storage_in_bytes TYPE i,
memory_in_bytes TYPE i,
cpus TYPE i,
prebuild_availability TYPE string,
END OF codespace_machine.
* 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,
role_name TYPE string,
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,
role_name TYPE string,
END OF nullable_collaborator.
* Component schema: repository-collaborator-permission, object
TYPES: BEGIN OF repository_collaborator_permis,
permission TYPE string,
role_name 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: nullable-code-of-conduct-simple, object
TYPES: BEGIN OF nullable_code_of_conduct_simpl,
url TYPE string,
key TYPE string,
name TYPE string,
html_url TYPE string,
END OF nullable_code_of_conduct_simpl.
* Component schema: nullable-community-health-file, object
TYPES: BEGIN OF nullable_community_health_file,
url TYPE string,
html_url TYPE string,
END OF nullable_community_health_file.
* Component schema: community-profile, object
TYPES: BEGIN OF subcommunity_profile_files,
code_of_conduct TYPE nullable_code_of_conduct_simpl,
code_of_conduct_file TYPE nullable_community_health_file,
license TYPE nullable_license_simple,
contributing TYPE nullable_community_health_file,
readme TYPE nullable_community_health_file,
issue_template TYPE nullable_community_health_file,
pull_request_template TYPE nullable_community_health_file,
END OF subcommunity_profile_files.
TYPES: BEGIN OF community_profile,
health_percentage TYPE i,
description TYPE string,
documentation TYPE string,
files TYPE subcommunity_profile_files,
updated_at TYPE string,
content_reports_enabled TYPE abap_bool,
END OF community_profile.
* 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-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: wait-timer, integer
TYPES wait_timer TYPE i.
* Component schema: deployment_branch_policy, object
TYPES: BEGIN OF deployment_branch_policy,
protected_branches TYPE abap_bool,
custom_branch_policies TYPE abap_bool,
END OF deployment_branch_policy.
* Component schema: environment, object
TYPES: BEGIN OF environment,
id TYPE i,
node_id TYPE string,
name TYPE string,
url TYPE string,
html_url TYPE string,
created_at TYPE string,
updated_at TYPE string,
protection_rules TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
deployment_branch_policy TYPE deployment_branch_policy,
END OF environment.
* 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: import, object
TYPES: BEGIN OF import,
vcs TYPE string,
use_lfs TYPE abap_bool,
vcs_url TYPE string,
svc_root TYPE string,
tfvc_project TYPE string,
status TYPE string,
status_text TYPE string,
failed_step TYPE string,
error_message TYPE string,
import_percent TYPE i,
commit_count TYPE i,
push_percent TYPE i,
has_large_files TYPE abap_bool,
large_files_size TYPE i,
large_files_count TYPE i,
project_choices TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
message TYPE string,
authors_count TYPE i,
url TYPE string,
html_url TYPE string,
authors_url TYPE string,
repository_url TYPE string,
svn_root TYPE string,
END OF import.
* Component schema: porter-author, object
TYPES: BEGIN OF porter_author,
id TYPE i,
remote_id TYPE string,
remote_name TYPE string,
email TYPE string,
name TYPE string,
url TYPE string,
import_url TYPE string,
END OF porter_author.
* Component schema: porter-large-file, object
TYPES: BEGIN OF porter_large_file,
ref_name TYPE string,
path TYPE string,
oid TYPE string,
size TYPE i,
END OF porter_large_file.
* 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: pages-health-check, object
TYPES: BEGIN OF subpages_health_check_alt_doma,
host TYPE string,
uri TYPE string,
nameservers TYPE string,
dns_resolves TYPE abap_bool,
is_proxied TYPE abap_bool,
is_cloudflare_ip TYPE abap_bool,
is_fastly_ip TYPE abap_bool,
is_old_ip_address TYPE abap_bool,
is_a_record TYPE abap_bool,
has_cname_record TYPE abap_bool,
has_mx_records_present TYPE abap_bool,
is_valid_domain TYPE abap_bool,
is_apex_domain TYPE abap_bool,
should_be_a_record TYPE abap_bool,
is_cname_to_github_user_domain TYPE abap_bool,
is_cname_to_pages_dot_github_d TYPE abap_bool,
is_cname_to_fastly TYPE abap_bool,
is_pointed_to_github_pages_ip TYPE abap_bool,
is_non_github_pages_ip_present TYPE abap_bool,
is_pages_domain TYPE abap_bool,
is_served_by_pages TYPE abap_bool,
is_valid TYPE abap_bool,
reason TYPE string,
responds_to_https TYPE abap_bool,
enforces_https TYPE abap_bool,
https_error TYPE string,
is_https_eligible TYPE abap_bool,
caa_error TYPE string,
END OF subpages_health_check_alt_doma.
TYPES: BEGIN OF subpages_health_check_domain,
host TYPE string,
uri TYPE string,
nameservers TYPE string,
dns_resolves TYPE abap_bool,
is_proxied TYPE abap_bool,
is_cloudflare_ip TYPE abap_bool,
is_fastly_ip TYPE abap_bool,
is_old_ip_address TYPE abap_bool,
is_a_record TYPE abap_bool,
has_cname_record TYPE abap_bool,
has_mx_records_present TYPE abap_bool,
is_valid_domain TYPE abap_bool,
is_apex_domain TYPE abap_bool,
should_be_a_record TYPE abap_bool,
is_cname_to_github_user_domain TYPE abap_bool,
is_cname_to_pages_dot_github_d TYPE abap_bool,
is_cname_to_fastly TYPE abap_bool,
is_pointed_to_github_pages_ip TYPE abap_bool,
is_non_github_pages_ip_present TYPE abap_bool,
is_pages_domain TYPE abap_bool,
is_served_by_pages TYPE abap_bool,
is_valid TYPE abap_bool,
reason TYPE string,
responds_to_https TYPE abap_bool,
enforces_https TYPE abap_bool,
https_error TYPE string,
is_https_eligible TYPE abap_bool,
caa_error TYPE string,
END OF subpages_health_check_domain.
TYPES: BEGIN OF pages_health_check,
domain TYPE subpages_health_check_domain,
alt_domain TYPE subpages_health_check_alt_doma,
END OF pages_health_check.
* 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: release-notes-content, object
TYPES: BEGIN OF release_notes_content,
name TYPE string,
body TYPE string,
END OF release_notes_content.
* 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: secret-scanning-location-commit, object
TYPES: BEGIN OF secret_scanning_location_commi,
path TYPE string,
start_line TYPE f,
end_line TYPE f,
start_column TYPE f,
end_column TYPE f,
blob_sha TYPE string,
blob_url TYPE string,
commit_sha TYPE string,
commit_url TYPE string,
END OF secret_scanning_location_commi.
* Component schema: secret-scanning-location, object
TYPES: BEGIN OF secret_scanning_location,
type TYPE string,
details TYPE string,
END OF secret_scanning_location.
* 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: traffic, object
TYPES: BEGIN OF traffic,
timestamp TYPE string,
uniques TYPE i,
count TYPE i,
END OF traffic.
* Component schema: clone-traffic, object
TYPES: BEGIN OF clone_traffic,
count TYPE i,
uniques TYPE i,
clones TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF clone_traffic.
* Component schema: content-traffic, object
TYPES: BEGIN OF content_traffic,
path TYPE string,
title TYPE string,
count TYPE i,
uniques TYPE i,
END OF content_traffic.
* Component schema: referrer-traffic, object
TYPES: BEGIN OF referrer_traffic,
referrer TYPE string,
count TYPE i,
uniques TYPE i,
END OF referrer_traffic.
* Component schema: view-traffic, object
TYPES: BEGIN OF view_traffic,
count TYPE i,
uniques TYPE i,
views TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF view_traffic.
* 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: scim-user-list-enterprise, object
TYPES: BEGIN OF scim_user_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_user_list_enterprise.
* Component schema: scim-enterprise-user, object
TYPES: BEGIN OF subscim_enterprise_user_meta,
resourcetype TYPE string,
created TYPE string,
lastmodified TYPE string,
location TYPE string,
END OF subscim_enterprise_user_meta.
TYPES: BEGIN OF subscim_enterprise_user_name,
givenname TYPE string,
familyname TYPE string,
END OF subscim_enterprise_user_name.
TYPES: BEGIN OF scim_enterprise_user,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
id TYPE string,
externalid TYPE string,
username TYPE string,
name TYPE subscim_enterprise_user_name,
emails TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
active TYPE abap_bool,
meta TYPE subscim_enterprise_user_meta,
END OF scim_enterprise_user.
* Component schema: scim-user, object
TYPES: BEGIN OF subscim_user_meta,
resourcetype TYPE string,
created TYPE string,
lastmodified TYPE string,
location TYPE string,
END OF subscim_user_meta.
TYPES: BEGIN OF subscim_user_name,
givenname TYPE string,
familyname TYPE string,
formatted TYPE string,
END OF subscim_user_name.
TYPES: BEGIN OF scim_user,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
id TYPE string,
externalid TYPE string,
username TYPE string,
displayname TYPE string,
name TYPE subscim_user_name,
emails TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
active TYPE abap_bool,
meta TYPE subscim_user_meta,
organization_id TYPE i,
operations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF scim_user.
* Component schema: scim-user-list, object
TYPES: BEGIN OF scim_user_list,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
totalresults TYPE i,
itemsperpage TYPE i,
startindex TYPE i,
resources TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF scim_user_list.
* 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: codespaces-secret, object
TYPES: BEGIN OF codespaces_secret,
name TYPE string,
created_at TYPE string,
updated_at TYPE string,
visibility TYPE string,
selected_repositories_url TYPE string,
END OF codespaces_secret.
* Component schema: codespaces-user-public-key, object
TYPES: BEGIN OF codespaces_user_public_key,
key_id TYPE string,
key TYPE string,
END OF codespaces_user_public_key.
* Component schema: email, object
TYPES: BEGIN OF email,
email TYPE string,
primary TYPE abap_bool,
verified TYPE abap_bool,
visibility TYPE string,
END OF email.
* Component schema: gpg-key, object
TYPES: BEGIN OF gpg_key,
id TYPE i,
primary_key_id TYPE i,
key_id TYPE string,
public_key TYPE string,
emails TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
subkeys TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
can_sign TYPE abap_bool,
can_encrypt_comms TYPE abap_bool,
can_encrypt_storage TYPE abap_bool,
can_certify TYPE abap_bool,
created_at TYPE string,
expires_at TYPE string,
raw_key TYPE string,
END OF gpg_key.
* Component schema: key, object
TYPES: BEGIN OF key,
key TYPE string,
id TYPE i,
url TYPE string,
title TYPE string,
created_at TYPE string,
verified TYPE abap_bool,
read_only TYPE abap_bool,
END OF key.
* Component schema: marketplace-account, object
TYPES: BEGIN OF marketplace_account,
url TYPE string,
id TYPE i,
type TYPE string,
node_id TYPE string,
login TYPE string,
email TYPE string,
organization_billing_email TYPE string,
END OF marketplace_account.
* Component schema: user-marketplace-purchase, object
TYPES: BEGIN OF user_marketplace_purchase,
billing_cycle TYPE string,
next_billing_date TYPE string,
unit_count TYPE i,
on_free_trial TYPE abap_bool,
free_trial_ends_on TYPE string,
updated_at TYPE string,
account TYPE marketplace_account,
plan TYPE marketplace_listing_plan,
END OF user_marketplace_purchase.
* 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: 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: bodyapps_scope_token, object
TYPES: BEGIN OF bodyapps_scope_token,
access_token TYPE string,
target TYPE string,
target_id TYPE i,
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_scope_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_org_a, object
TYPES: BEGIN OF bodyenterprise_admin_set_org_a,
selected_organization_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_set_org_a.
* 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: bodyenterprise_admin_add_custo, object
TYPES: BEGIN OF bodyenterprise_admin_add_custo,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_add_custo.
* Component schema: bodyenterprise_admin_set_custo, object
TYPES: BEGIN OF bodyenterprise_admin_set_custo,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_set_custo.
* Component schema: bodyenterprise_admin_remove_al, object
TYPES: BEGIN OF bodyenterprise_admin_remove_al,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_remove_al.
* 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_set_repo_access_to, object
TYPES: BEGIN OF bodyactions_set_repo_access_to,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_set_repo_access_to.
* Component schema: bodyactions_set_self_hosted_ru, object
TYPES: BEGIN OF bodyactions_set_self_hosted_ru,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_set_self_hosted_ru.
* Component schema: bodyactions_add_custom_labels_, object
TYPES: BEGIN OF bodyactions_add_custom_labels_,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_add_custom_labels_.
* Component schema: bodyactions_set_custom_labels_, object
TYPES: BEGIN OF bodyactions_set_custom_labels_,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_set_custom_labels_.
* Component schema: bodyactions_remove_all_custom_, object
TYPES: BEGIN OF bodyactions_remove_all_custom_,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_remove_all_custom_.
* 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_create_invitation, object
TYPES: BEGIN OF bodyorgs_create_invitation,
invitee_id TYPE i,
email TYPE string,
role TYPE string,
team_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyorgs_create_invitation.
* 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: bodymigrations_start_for_org, object
TYPES: BEGIN OF bodymigrations_start_for_org,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
lock_repositories TYPE abap_bool,
exclude_attachments TYPE abap_bool,
exclude_releases TYPE abap_bool,
exclude_owner_projects TYPE abap_bool,
exclude TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodymigrations_start_for_org.
* 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: bodyteams_create_or_update_idp, object
TYPES: BEGIN OF bodyteams_create_or_update_idp,
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyteams_create_or_update_idp.
* 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_add_custom_label01, object
TYPES: BEGIN OF bodyactions_add_custom_label01,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_add_custom_label01.
* Component schema: bodyactions_set_custom_label01, object
TYPES: BEGIN OF bodyactions_set_custom_label01,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_set_custom_label01.
* Component schema: bodyactions_remove_all_custo01, object
TYPES: BEGIN OF bodyactions_remove_all_custo01,
labels TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyactions_remove_all_custo01.
* Component schema: bodyactions_review_pending_dep, object
TYPES: BEGIN OF bodyactions_review_pending_dep,
environment_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
state TYPE string,
comment TYPE string,
END OF bodyactions_review_pending_dep.
* 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: bodyrepos_rename_branch, object
TYPES: BEGIN OF bodyrepos_rename_branch,
new_name TYPE string,
END OF bodyrepos_rename_branch.
* 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: bodycodespaces_create_with_rep, object
TYPES: BEGIN OF bodycodespaces_create_with_rep,
ref TYPE string,
location TYPE string,
machine TYPE string,
working_directory TYPE string,
idle_timeout_minutes TYPE i,
END OF bodycodespaces_create_with_rep.
* 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_dispatch_even, object
TYPES: BEGIN OF subbodyrepos_create_dispatch_e,
dummy_workaround TYPE i,
END OF subbodyrepos_create_dispatch_e.
TYPES: BEGIN OF bodyrepos_create_dispatch_even,
event_type TYPE string,
client_payload TYPE subbodyrepos_create_dispatch_e,
END OF bodyrepos_create_dispatch_even.
* Component schema: bodyrepos_create_or_update_env, object
TYPES: BEGIN OF bodyrepos_create_or_update_env,
wait_timer TYPE wait_timer,
reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
deployment_branch_policy TYPE deployment_branch_policy,
END OF bodyrepos_create_or_update_env.
* Component schema: bodyrepos_delete_an_environmen, object
TYPES: BEGIN OF bodyrepos_delete_an_environmen,
wait_timer TYPE wait_timer,
reviewers TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
deployment_branch_policy TYPE deployment_branch_policy,
END OF bodyrepos_delete_an_environmen.
* 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: bodymigrations_start_import, object
TYPES: BEGIN OF bodymigrations_start_import,
vcs_url TYPE string,
vcs TYPE string,
vcs_username TYPE string,
vcs_password TYPE string,
tfvc_project TYPE string,
END OF bodymigrations_start_import.
* Component schema: bodymigrations_update_import, object
TYPES: BEGIN OF bodymigrations_update_import,
vcs_username TYPE string,
vcs_password TYPE string,
vcs TYPE string,
tfvc_project TYPE string,
END OF bodymigrations_update_import.
* Component schema: bodymigrations_cancel_import, object
TYPES: BEGIN OF bodymigrations_cancel_import,
vcs_username TYPE string,
vcs_password TYPE string,
vcs TYPE string,
tfvc_project TYPE string,
END OF bodymigrations_cancel_import.
* Component schema: bodymigrations_map_commit_auth, object
TYPES: BEGIN OF bodymigrations_map_commit_auth,
email TYPE string,
name TYPE string,
END OF bodymigrations_map_commit_auth.
* Component schema: bodymigrations_set_lfs_prefere, object
TYPES: BEGIN OF bodymigrations_set_lfs_prefere,
use_lfs TYPE string,
END OF bodymigrations_set_lfs_prefere.
* 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: bodycodespaces_create_with_pr_, object
TYPES: BEGIN OF bodycodespaces_create_with_pr_,
location TYPE string,
machine TYPE string,
working_directory TYPE string,
idle_timeout_minutes TYPE i,
END OF bodycodespaces_create_with_pr_.
* 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,
discussion_category_name TYPE string,
generate_release_notes 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_generate_release_not, object
TYPES: BEGIN OF bodyrepos_generate_release_not,
tag_name TYPE string,
target_commitish TYPE string,
previous_tag_name TYPE string,
configuration_file_path TYPE string,
END OF bodyrepos_generate_release_not.
* 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,
discussion_category_name TYPE string,
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,
discussion_category_name TYPE string,
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: bodyactions_create_or_update_e, object
TYPES: BEGIN OF bodyactions_create_or_update_e,
encrypted_value TYPE string,
key_id TYPE string,
END OF bodyactions_create_or_update_e.
* Component schema: bodyactions_delete_environment, object
TYPES: BEGIN OF bodyactions_delete_environment,
encrypted_value TYPE string,
key_id TYPE string,
END OF bodyactions_delete_environment.
* 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: bodyenterprise_admin_provisi01, object
TYPES: BEGIN OF subbodyenterprise_admin_provis,
givenname TYPE string,
familyname TYPE string,
END OF subbodyenterprise_admin_provis.
TYPES: BEGIN OF bodyenterprise_admin_provisi01,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
username TYPE string,
name TYPE subbodyenterprise_admin_provis,
emails TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_provisi01.
* Component schema: bodyenterprise_admin_set_inf01, object
TYPES: BEGIN OF subbodyenterprise_admin_set_in,
givenname TYPE string,
familyname TYPE string,
END OF subbodyenterprise_admin_set_in.
TYPES: BEGIN OF bodyenterprise_admin_set_inf01,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
username TYPE string,
name TYPE subbodyenterprise_admin_set_in,
emails TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyenterprise_admin_set_inf01.
* Component schema: bodyenterprise_admin_update_01, object
TYPES: BEGIN OF bodyenterprise_admin_update_01,
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_01.
* Component schema: bodyenterprise_admin_delete_us, object
TYPES: BEGIN OF bodyenterprise_admin_delete_us,
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_us.
* Component schema: bodyscim_provision_and_invite_, object
TYPES: BEGIN OF subbodyscim_provision_and_invi,
givenname TYPE string,
familyname TYPE string,
formatted TYPE string,
END OF subbodyscim_provision_and_invi.
TYPES: BEGIN OF bodyscim_provision_and_invite_,
username TYPE string,
displayname TYPE string,
name TYPE subbodyscim_provision_and_invi,
emails TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
externalid TYPE string,
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
active TYPE abap_bool,
END OF bodyscim_provision_and_invite_.
* Component schema: bodyscim_set_information_for_p, object
TYPES: BEGIN OF subbodyscim_set_information_fo,
givenname TYPE string,
familyname TYPE string,
formatted TYPE string,
END OF subbodyscim_set_information_fo.
TYPES: BEGIN OF bodyscim_set_information_for_p,
schemas TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
displayname TYPE string,
externalid TYPE string,
groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
active TYPE abap_bool,
username TYPE string,
name TYPE subbodyscim_set_information_fo,
emails TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodyscim_set_information_for_p.
* Component schema: bodyscim_update_attribute_for_, object
TYPES: BEGIN OF bodyscim_update_attribute_for_,
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 bodyscim_update_attribute_for_.
* Component schema: bodyscim_delete_user_from_org, object
TYPES: BEGIN OF bodyscim_delete_user_from_org,
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 bodyscim_delete_user_from_org.
* 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: bodycodespaces_create_or_updat, object
TYPES: BEGIN OF bodycodespaces_create_or_updat,
encrypted_value TYPE string,
key_id TYPE string,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodycodespaces_create_or_updat.
* Component schema: bodycodespaces_delete_secret_f, object
TYPES: BEGIN OF bodycodespaces_delete_secret_f,
encrypted_value TYPE string,
key_id TYPE string,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodycodespaces_delete_secret_f.
* Component schema: bodycodespaces_set_repositorie, object
TYPES: BEGIN OF bodycodespaces_set_repositorie,
selected_repository_ids TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodycodespaces_set_repositorie.
* Component schema: bodycodespaces_update_for_auth, object
TYPES: BEGIN OF bodycodespaces_update_for_auth,
machine TYPE string,
END OF bodycodespaces_update_for_auth.
* Component schema: bodycodespaces_delete_for_auth, object
TYPES: BEGIN OF bodycodespaces_delete_for_auth,
machine TYPE string,
END OF bodycodespaces_delete_for_auth.
* Component schema: bodyusers_set_primary_email_vi, object
TYPES: BEGIN OF bodyusers_set_primary_email_vi,
visibility TYPE string,
END OF bodyusers_set_primary_email_vi.
* 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: bodymigrations_start_for_authe, object
TYPES: BEGIN OF bodymigrations_start_for_authe,
lock_repositories TYPE abap_bool,
exclude_attachments TYPE abap_bool,
exclude_releases TYPE abap_bool,
exclude_owner_projects TYPE abap_bool,
exclude TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF bodymigrations_start_for_authe.
* 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: 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_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_list,
total_count TYPE f,
organizations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_list.
* Component schema: response_enterprise_admin_list_self_hos, object
TYPES: BEGIN OF response_enterprise_admin_li01,
total_count TYPE f,
runner_groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_li01.
* Component schema: response_enterprise_admin_list_org_acce, object
TYPES: BEGIN OF response_enterprise_admin_li02,
total_count TYPE f,
organizations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_li02.
* Component schema: response_enterprise_admin_list_self_h01, object
TYPES: BEGIN OF response_enterprise_admin_li03,
total_count TYPE f,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_li03.
* Component schema: response_enterprise_admin_list_self_h02, object
TYPES: BEGIN OF response_enterprise_admin_li04,
total_count TYPE f,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_enterprise_admin_li04.
* Component schema: response_enterprise_admin_list_runner_a, array
TYPES response_enterprise_admin_li05 TYPE STANDARD TABLE OF runner_application WITH DEFAULT KEY.
* Component schema: response_enterprise_admin_get_audit_log, array
TYPES response_enterprise_admin_get_ TYPE STANDARD TABLE OF audit_log_event WITH DEFAULT KEY.
* Component schema: response_activity_list_public_events, array
TYPES response_activity_list_public_ TYPE STANDARD TABLE OF event WITH DEFAULT KEY.
* Component schema: response_gists_list, array
TYPES response_gists_list TYPE STANDARD TABLE OF base_gist WITH DEFAULT KEY.
* Component schema: response_gists_list_public, array
TYPES response_gists_list_public TYPE STANDARD TABLE OF base_gist WITH DEFAULT KEY.
* Component schema: response_gists_list_starred, array
TYPES response_gists_list_starred TYPE STANDARD TABLE OF base_gist WITH DEFAULT KEY.
* Component schema: response_gists_list_comments, array
TYPES response_gists_list_comments TYPE STANDARD TABLE OF gist_comment WITH DEFAULT KEY.
* Component schema: response_gists_list_commits, array
TYPES response_gists_list_commits TYPE STANDARD TABLE OF gist_commit WITH DEFAULT KEY.
* Component schema: response_gists_list_forks, array
TYPES response_gists_list_forks TYPE STANDARD TABLE OF gist_simple WITH DEFAULT KEY.
* Component schema: response_gists_check_is_starred, object
TYPES: BEGIN OF response_gists_check_is_starre,
dummy_workaround TYPE i,
END OF response_gists_check_is_starre.
* Component schema: response_gitignore_get_all_templates, array
TYPES response_gitignore_get_all_tem TYPE string. " array todo
* Component schema: response_apps_list_repos_accessible_to_, object
TYPES: BEGIN OF response_apps_list_repos_acces,
total_count TYPE i,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
repository_selection TYPE string,
END OF response_apps_list_repos_acces.
* Component schema: response_issues_list, array
TYPES response_issues_list TYPE STANDARD TABLE OF issue WITH DEFAULT KEY.
* Component schema: response_licenses_get_all_commonly_used, array
TYPES response_licenses_get_all_comm TYPE STANDARD TABLE OF license_simple WITH DEFAULT KEY.
* Component schema: response_apps_list_plans, array
TYPES response_apps_list_plans TYPE STANDARD TABLE OF marketplace_listing_plan WITH DEFAULT KEY.
* Component schema: response_apps_list_accounts_for_plan, array
TYPES response_apps_list_accounts_fo TYPE STANDARD TABLE OF marketplace_purchase WITH DEFAULT KEY.
* Component schema: response_apps_list_plans_stubbed, array
TYPES response_apps_list_plans_stubb TYPE STANDARD TABLE OF marketplace_listing_plan WITH DEFAULT KEY.
* Component schema: response_apps_list_accounts_for_plan_st, array
TYPES response_apps_list_accounts_01 TYPE STANDARD TABLE OF marketplace_purchase WITH DEFAULT KEY.
* Component schema: response_activity_list_public_events_fo, array
TYPES response_activity_list_publi01 TYPE STANDARD TABLE OF event WITH DEFAULT KEY.
* Component schema: response_activity_list_notifications_fo, array
TYPES response_activity_list_notific TYPE STANDARD TABLE OF thread WITH DEFAULT KEY.
* Component schema: response_activity_mark_notifications_as, object
TYPES: BEGIN OF response_activity_mark_notific,
message TYPE string,
END OF response_activity_mark_notific.
* Component schema: response_orgs_list, array
TYPES response_orgs_list TYPE STANDARD TABLE OF organization_simple WITH DEFAULT KEY.
* Component schema: response_orgs_list_custom_roles, object
TYPES: BEGIN OF response_orgs_list_custom_role,
total_count TYPE i,
custom_roles TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_orgs_list_custom_role.
* 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_self_hosted_runne, object
TYPES: BEGIN OF response_actions_list_self_hos,
total_count TYPE f,
runner_groups TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_self_hos.
* Component schema: response_actions_list_repo_access_to_se, object
TYPES: BEGIN OF response_actions_list_repo_acc,
total_count TYPE f,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_repo_acc.
* Component schema: response_actions_list_self_hosted_run01, object
TYPES: BEGIN OF response_actions_list_self_h01,
total_count TYPE f,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_self_h01.
* Component schema: response_actions_list_self_hosted_run02, object
TYPES: BEGIN OF response_actions_list_self_h02,
total_count TYPE i,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_self_h02.
* Component schema: response_actions_list_runner_applicatio, array
TYPES response_actions_list_runner_a TYPE STANDARD TABLE OF runner_application WITH DEFAULT KEY.
* 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_get_audit_log, array
TYPES response_orgs_get_audit_log TYPE STANDARD TABLE OF audit_log_event WITH DEFAULT KEY.
* Component schema: response_orgs_list_blocked_users, array
TYPES response_orgs_list_blocked_use TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_orgs_list_saml_sso_authorizati, array
TYPES response_orgs_list_saml_sso_au TYPE STANDARD TABLE OF credential_authorization WITH DEFAULT KEY.
* Component schema: response_activity_list_public_org_event, array
TYPES response_activity_list_publi02 TYPE STANDARD TABLE OF event WITH DEFAULT KEY.
* Component schema: response_orgs_list_failed_invitations, array
TYPES response_orgs_list_failed_invi TYPE STANDARD TABLE OF organization_invitation WITH DEFAULT KEY.
* Component schema: response_orgs_list_webhooks, array
TYPES response_orgs_list_webhooks TYPE STANDARD TABLE OF org_hook WITH DEFAULT KEY.
* Component schema: response_orgs_list_webhook_deliveries, array
TYPES response_orgs_list_webhook_del TYPE STANDARD TABLE OF hook_delivery_item 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_orgs_list_pending_invitations, array
TYPES response_orgs_list_pending_inv TYPE STANDARD TABLE OF organization_invitation WITH DEFAULT KEY.
* Component schema: response_orgs_list_invitation_teams, array
TYPES response_orgs_list_invitation_ TYPE STANDARD TABLE OF team WITH DEFAULT KEY.
* 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_migrations_list_for_org, array
TYPES response_migrations_list_for_o TYPE STANDARD TABLE OF migration WITH DEFAULT KEY.
* Component schema: response_migrations_list_repos_for_org, array
TYPES response_migrations_list_repos TYPE STANDARD TABLE OF minimal_repository 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_packages_list_packages_for_org, array
TYPES response_packages_list_package TYPE STANDARD TABLE OF package WITH DEFAULT KEY.
* Component schema: response_packages_get_all_package_versi, array
TYPES response_packages_get_all_pack TYPE STANDARD TABLE OF package_version WITH DEFAULT KEY.
* Component schema: response_projects_list_for_org, array
TYPES response_projects_list_for_org TYPE STANDARD TABLE OF project WITH DEFAULT KEY.
* Component schema: response_orgs_list_public_members, array
TYPES response_orgs_list_public_memb TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_repos_list_for_org, array
TYPES response_repos_list_for_org TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY.
* Component schema: response_secret_scanning_list_alerts_fo, array
TYPES response_secret_scanning_list_ TYPE STANDARD TABLE OF organization_secret_scanning_a 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_pending_invitations, array
TYPES response_teams_list_pending_in TYPE STANDARD TABLE OF organization_invitation 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_run03, object
TYPES: BEGIN OF response_actions_list_self_h03,
total_count TYPE i,
runners TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_self_h03.
* Component schema: response_actions_list_runner_applicat01, array
TYPES response_actions_list_runner01 TYPE STANDARD TABLE OF runner_application WITH DEFAULT KEY.
* 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_get_reviews_for_run, array
TYPES response_actions_get_reviews_f TYPE STANDARD TABLE OF environment_approvals WITH DEFAULT KEY.
* 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_get_pending_deployment, array
TYPES response_actions_get_pending_d TYPE STANDARD TABLE OF pending_deployment WITH DEFAULT KEY.
* Component schema: response_actions_review_pending_deploym, array
TYPES response_actions_review_pendin TYPE STANDARD TABLE OF deployment WITH DEFAULT KEY.
* 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_codespaces_list_in_repository_, object
TYPES: BEGIN OF response_codespaces_list_in_re,
total_count TYPE i,
codespaces TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_codespaces_list_in_re.
* Component schema: response_codespaces_repo_machines_for_a, object
TYPES: BEGIN OF response_codespaces_repo_machi,
total_count TYPE i,
machines TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_codespaces_repo_machi.
* 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_repos_get_all_environments, object
TYPES: BEGIN OF response_repos_get_all_environ,
total_count TYPE i,
environments TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_repos_get_all_environ.
* 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_migrations_get_commit_authors, array
TYPES response_migrations_get_commit TYPE STANDARD TABLE OF porter_author WITH DEFAULT KEY.
* Component schema: response_migrations_get_large_files, array
TYPES response_migrations_get_large_ TYPE STANDARD TABLE OF porter_large_file 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_01, array
TYPES response_secret_scanning_lis01 TYPE STANDARD TABLE OF secret_scanning_alert WITH DEFAULT KEY.
* Component schema: response_secret_scanning_list_locations, array
TYPES response_secret_scanning_lis02 TYPE STANDARD TABLE OF secret_scanning_location WITH DEFAULT KEY.
* Component schema: response_repos_get_code_frequency_stats, array
TYPES response_repos_get_code_freque TYPE STANDARD TABLE OF code_frequency_stat WITH DEFAULT KEY.
* Component schema: response_repos_get_commit_activity_stat, array
TYPES response_repos_get_commit_acti TYPE STANDARD TABLE OF commit_activity WITH DEFAULT KEY.
* Component schema: response_repos_get_contributors_stats, array
TYPES response_repos_get_contributor TYPE STANDARD TABLE OF contributor_activity WITH DEFAULT KEY.
* Component schema: response_repos_get_punch_card_stats, array
TYPES response_repos_get_punch_card_ TYPE STANDARD TABLE OF code_frequency_stat WITH DEFAULT KEY.
* Component schema: response_activity_list_watchers_for_rep, array
TYPES response_activity_list_watcher TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_repos_list_tags, array
TYPES response_repos_list_tags TYPE STANDARD TABLE OF tag WITH DEFAULT KEY.
* Component schema: response_repos_list_teams, array
TYPES response_repos_list_teams TYPE STANDARD TABLE OF team WITH DEFAULT KEY.
* Component schema: response_repos_get_top_paths, array
TYPES response_repos_get_top_paths TYPE STANDARD TABLE OF content_traffic WITH DEFAULT KEY.
* Component schema: response_repos_get_top_referrers, array
TYPES response_repos_get_top_referre TYPE STANDARD TABLE OF referrer_traffic WITH DEFAULT KEY.
* Component schema: response_repos_list_public, array
TYPES response_repos_list_public TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY.
* Component schema: response_actions_list_environment_secre, object
TYPES: BEGIN OF response_actions_list_environm,
total_count TYPE i,
secrets TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_actions_list_environm.
* 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_blocked_by_authenti, array
TYPES response_users_list_blocked_by TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_codespaces_list_for_authentica, object
TYPES: BEGIN OF response_codespaces_list_for_a,
total_count TYPE i,
codespaces TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_codespaces_list_for_a.
* Component schema: response_codespaces_list_secrets_for_au, object
TYPES: BEGIN OF response_codespaces_list_secre,
total_count TYPE i,
secrets TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_codespaces_list_secre.
* Component schema: response_codespaces_create_or_update_se, object
TYPES: BEGIN OF response_codespaces_create_or_,
dummy_workaround TYPE i,
END OF response_codespaces_create_or_.
* Component schema: response_codespaces_list_repositories_f, object
TYPES: BEGIN OF response_codespaces_list_repos,
total_count TYPE i,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_codespaces_list_repos.
* Component schema: response_codespaces_codespace_machines_, object
TYPES: BEGIN OF response_codespaces_codespace_,
total_count TYPE i,
machines TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_codespaces_codespace_.
* Component schema: response_users_set_primary_email_visibi, array
TYPES response_users_set_primary_ema TYPE STANDARD TABLE OF email WITH DEFAULT KEY.
* Component schema: response_users_list_emails_for_authenti, array
TYPES response_users_list_emails_for TYPE STANDARD TABLE OF email WITH DEFAULT KEY.
* Component schema: response_users_add_email_for_authentica, array
TYPES response_users_add_email_for_a TYPE STANDARD TABLE OF email WITH DEFAULT KEY.
* Component schema: response_users_list_followers_for_authe, array
TYPES response_users_list_followers_ TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_users_list_followed_by_authent, array
TYPES response_users_list_followed_b TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_users_list_gpg_keys_for_authen, array
TYPES response_users_list_gpg_keys_f TYPE STANDARD TABLE OF gpg_key WITH DEFAULT KEY.
* Component schema: response_apps_list_installations_for_au, object
TYPES: BEGIN OF response_apps_list_installat01,
total_count TYPE i,
installations TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_apps_list_installat01.
* Component schema: response_apps_list_installation_repos_f, object
TYPES: BEGIN OF response_apps_list_installat02,
total_count TYPE i,
repository_selection TYPE string,
repositories TYPE STANDARD TABLE OF string WITH DEFAULT KEY, " todo, handle array
END OF response_apps_list_installat02.
* Component schema: response_issues_list_for_authenticated_, array
TYPES response_issues_list_for_authe TYPE STANDARD TABLE OF issue WITH DEFAULT KEY.
* Component schema: response_users_list_public_ssh_keys_for, array
TYPES response_users_list_public_ssh TYPE STANDARD TABLE OF key WITH DEFAULT KEY.
* Component schema: response_apps_list_subscriptions_for_au, array
TYPES response_apps_list_subscriptio TYPE STANDARD TABLE OF user_marketplace_purchase WITH DEFAULT KEY.
* Component schema: response_apps_list_subscriptions_for_01, array
TYPES response_apps_list_subscript01 TYPE STANDARD TABLE OF user_marketplace_purchase 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_migrations_list_for_authentica, array
TYPES response_migrations_list_for_a TYPE STANDARD TABLE OF migration WITH DEFAULT KEY.
* Component schema: response_migrations_list_repos_for_auth, array
TYPES response_migrations_list_rep01 TYPE STANDARD TABLE OF minimal_repository 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_packages_list_packages_for_aut, array
TYPES response_packages_list_packa01 TYPE STANDARD TABLE OF package WITH DEFAULT KEY.
* Component schema: response_packages_get_all_package_ver01, array
TYPES response_packages_get_all_pa01 TYPE STANDARD TABLE OF package_version WITH DEFAULT KEY.
* Component schema: response_users_list_public_emails_for_a, array
TYPES response_users_list_public_ema TYPE STANDARD TABLE OF email WITH DEFAULT KEY.
* Component schema: response_repos_list_for_authenticated_u, array
TYPES response_repos_list_for_authen TYPE STANDARD TABLE OF repository WITH DEFAULT KEY.
* Component schema: response_repos_list_invitations_for_aut, array
TYPES response_repos_list_invitati01 TYPE STANDARD TABLE OF repository_invitation WITH DEFAULT KEY.
* Component schema: response_activity_list_repos_starred_by, array
TYPES response_activity_list_repos_s TYPE STANDARD TABLE OF repository WITH DEFAULT KEY.
* Component schema: response_activity_list_watched_repos_fo, array
TYPES response_activity_list_watched TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY.
* Component schema: response_teams_list_for_authenticated_u, array
TYPES response_teams_list_for_authen TYPE STANDARD TABLE OF team_full WITH DEFAULT KEY.
* Component schema: response_users_list, array
TYPES response_users_list TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_activity_list_events_for_authe, array
TYPES response_activity_list_events_ TYPE STANDARD TABLE OF event WITH DEFAULT KEY.
* Component schema: response_activity_list_org_events_for_a, array
TYPES response_activity_list_org_eve TYPE STANDARD TABLE OF event WITH DEFAULT KEY.
* Component schema: response_activity_list_public_events_01, array
TYPES response_activity_list_publi03 TYPE STANDARD TABLE OF event WITH DEFAULT KEY.
* Component schema: response_users_list_followers_for_user, array
TYPES response_users_list_follower01 TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_users_list_following_for_user, array
TYPES response_users_list_following_ TYPE STANDARD TABLE OF simple_user WITH DEFAULT KEY.
* Component schema: response_gists_list_for_user, array
TYPES response_gists_list_for_user TYPE STANDARD TABLE OF base_gist WITH DEFAULT KEY.
* Component schema: response_users_list_gpg_keys_for_user, array
TYPES response_users_list_gpg_keys01 TYPE STANDARD TABLE OF gpg_key WITH DEFAULT KEY.
* Component schema: response_users_list_public_keys_for_use, array
TYPES response_users_list_public_key TYPE STANDARD TABLE OF key_simple WITH DEFAULT KEY.
* Component schema: response_orgs_list_for_user, array
TYPES response_orgs_list_for_user TYPE STANDARD TABLE OF organization_simple WITH DEFAULT KEY.
* Component schema: response_packages_list_packages_for_use, array
TYPES response_packages_list_packa02 TYPE STANDARD TABLE OF package WITH DEFAULT KEY.
* Component schema: response_packages_get_all_package_ver02, array
TYPES response_packages_get_all_pa02 TYPE STANDARD TABLE OF package_version WITH DEFAULT KEY.
* Component schema: response_projects_list_for_user, array
TYPES response_projects_list_for_use TYPE STANDARD TABLE OF project WITH DEFAULT KEY.
* Component schema: response_activity_list_received_events_, array
TYPES response_activity_list_receive TYPE STANDARD TABLE OF event WITH DEFAULT KEY.
* Component schema: response_activity_list_received_public_, array
TYPES response_activity_list_recei01 TYPE STANDARD TABLE OF event WITH DEFAULT KEY.
* Component schema: response_repos_list_for_user, array
TYPES response_repos_list_for_user TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY.
* Component schema: response_activity_list_repos_watched_by, array
TYPES response_activity_list_repos_w TYPE STANDARD TABLE OF minimal_repository WITH DEFAULT KEY.
* GET - "GitHub API Root"
* Operation id: meta/root
* Response: 200
* application/json, #/components/schemas/response_meta_root
METHODS meta_root
RETURNING
VALUE(return_data) TYPE response_meta_root
RAISING cx_static_check.
* GET - "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.
* POST - "Create a scoped access token"
* Operation id: apps/scope-token
* Parameter: client_id, required, path
* Response: 200
* application/json, #/components/schemas/authorization
* Response: 401
* Response: 403
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyapps_scope_token
METHODS apps_scope_token
IMPORTING
client_id TYPE string
body TYPE bodyapps_scope_token
RETURNING
VALUE(return_data) TYPE authorization
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 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_list
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_li01
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 organization access to a self-hosted runner group in an enterprise"
* Operation id: enterprise-admin/list-org-access-to-self-hosted-runner-group-in-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_org_acce
METHODS enterprise_admin_list_org_acce
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_li02
RAISING cx_static_check.
* PUT - "Set organization access for a self-hosted runner group in an enterprise"
* Operation id: enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyenterprise_admin_set_org_a
METHODS enterprise_admin_set_org_acces
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
body TYPE bodyenterprise_admin_set_org_a
RAISING cx_static_check.
* PUT - "Add organization access to a self-hosted runner group in an enterprise"
* Operation id: enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Parameter: org_id, required, path
* Response: 204
METHODS enterprise_admin_add_org_acces
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
org_id TYPE i
RAISING cx_static_check.
* DELETE - "Remove organization access to a self-hosted runner group in an enterprise"
* Operation id: enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_group_id, required, path
* Parameter: org_id, required, path
* Response: 204
METHODS enterprise_admin_remove_org_ac
IMPORTING
enterprise TYPE string
runner_group_id TYPE i
org_id TYPE i
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_li03
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_li04
RAISING cx_static_check.
* GET - "List runner applications for an enterprise"
* Operation id: enterprise-admin/list-runner-applications-for-enterprise
* Parameter: enterprise, required, path
* Response: 200
* application/json, #/components/schemas/response_enterprise_admin_list_runner_a
METHODS enterprise_admin_list_runner_a
IMPORTING
enterprise TYPE string
RETURNING
VALUE(return_data) TYPE response_enterprise_admin_li05
RAISING cx_static_check.
* POST - "Create a registration token for an enterprise"
* Operation id: enterprise-admin/create-registration-token-for-enterprise
* Parameter: enterprise, required, path
* Response: 201
* application/json, #/components/schemas/authentication-token
METHODS enterprise_admin_create_regist
IMPORTING
enterprise TYPE string
RETURNING
VALUE(return_data) TYPE authentication_token
RAISING cx_static_check.
* POST - "Create a remove token for an enterprise"
* Operation id: enterprise-admin/create-remove-token-for-enterprise
* Parameter: enterprise, required, path
* Response: 201
* application/json, #/components/schemas/authentication-token
METHODS enterprise_admin_create_remove
IMPORTING
enterprise TYPE string
RETURNING
VALUE(return_data) TYPE authentication_token
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 - "List labels for a self-hosted runner for an enterprise"
* Operation id: enterprise-admin/list-labels-for-self-hosted-runner-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
METHODS enterprise_admin_list_labels_f
IMPORTING
enterprise TYPE string
runner_id TYPE i
RAISING cx_static_check.
* POST - "Add custom labels to a self-hosted runner for an enterprise"
* Operation id: enterprise-admin/add-custom-labels-to-self-hosted-runner-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyenterprise_admin_add_custo
METHODS enterprise_admin_add_custom_la
IMPORTING
enterprise TYPE string
runner_id TYPE i
body TYPE bodyenterprise_admin_add_custo
RAISING cx_static_check.
* PUT - "Set custom labels for a self-hosted runner for an enterprise"
* Operation id: enterprise-admin/set-custom-labels-for-self-hosted-runner-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyenterprise_admin_set_custo
METHODS enterprise_admin_set_custom_la
IMPORTING
enterprise TYPE string
runner_id TYPE i
body TYPE bodyenterprise_admin_set_custo
RAISING cx_static_check.
* DELETE - "Remove all custom labels from a self-hosted runner for an enterprise"
* Operation id: enterprise-admin/remove-all-custom-labels-from-self-hosted-runner-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyenterprise_admin_remove_al
METHODS enterprise_admin_remove_all_cu
IMPORTING
enterprise TYPE string
runner_id TYPE i
body TYPE bodyenterprise_admin_remove_al
RAISING cx_static_check.
* DELETE - "Remove a custom label from a self-hosted runner for an enterprise"
* Operation id: enterprise-admin/remove-custom-label-from-self-hosted-runner-for-enterprise
* Parameter: enterprise, required, path
* Parameter: runner_id, required, path
* Parameter: name, required, path
* Response: 200
* Response: 404
* Response: 422
METHODS enterprise_admin_remove_custom
IMPORTING
enterprise TYPE string
runner_id TYPE i
name TYPE string
RAISING cx_static_check.
* GET - "Get the audit log for an enterprise"
* Operation id: enterprise-admin/get-audit-log
* Parameter: enterprise, required, path
* Parameter: phrase, optional, query
* Parameter: include, optional, query
* Parameter: after, optional, query
* Parameter: before, optional, query
* Parameter: order, optional, query
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_enterprise_admin_get_audit_log
METHODS enterprise_admin_get_audit_log
IMPORTING
enterprise TYPE string
phrase TYPE string OPTIONAL
include TYPE string OPTIONAL
after TYPE string OPTIONAL
before TYPE string OPTIONAL
order TYPE string OPTIONAL
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_enterprise_admin_get_
RAISING cx_static_check.
* GET - "Get GitHub Actions billing for an enterprise"
* Operation id: billing/get-github-actions-billing-ghe
* Parameter: enterprise, required, path
* Response: 200
* application/json, #/components/schemas/actions-billing-usage
METHODS billing_get_github_actions_bil
IMPORTING
enterprise TYPE string
RETURNING
VALUE(return_data) TYPE actions_billing_usage
RAISING cx_static_check.
* GET - "Get GitHub Advanced Security active committers for an enterprise"
* Operation id: billing/get-github-advanced-security-billing-ghe
* Parameter: enterprise, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/advanced-security-active-committers
* Response: 403
METHODS billing_get_github_advanced_se
IMPORTING
enterprise TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE advanced_security_active_com02
RAISING cx_static_check.
* GET - "Get GitHub Packages billing for an enterprise"
* Operation id: billing/get-github-packages-billing-ghe
* Parameter: enterprise, required, path
* Response: 200
* application/json, #/components/schemas/packages-billing-usage
METHODS billing_get_github_packages_bi
IMPORTING
enterprise TYPE string
RETURNING
VALUE(return_data) TYPE packages_billing_usage
RAISING cx_static_check.
* GET - "Get shared storage billing for an enterprise"
* Operation id: billing/get-shared-storage-billing-ghe
* Parameter: enterprise, required, path
* Response: 200
* application/json, #/components/schemas/combined-billing-usage
METHODS billing_get_shared_storage_bil
IMPORTING
enterprise TYPE string
RETURNING
VALUE(return_data) TYPE combined_billing_usage
RAISING cx_static_check.
* GET - "List public events"
* Operation id: activity/list-public-events
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_activity_list_public_events
* Response: 304
* Response: 403
* Response: 503
METHODS activity_list_public_events
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_activity_list_public_
RAISING cx_static_check.
* GET - "Get feeds"
* Operation id: activity/get-feeds
* Response: 200
* application/json, #/components/schemas/feed
METHODS activity_get_feeds
RETURNING
VALUE(return_data) TYPE feed
RAISING cx_static_check.
* GET - "List gists for the authenticated user"
* Operation id: gists/list
* Parameter: since, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_gists_list
* Response: 304
* Response: 403
METHODS gists_list
IMPORTING
since TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_gists_list
RAISING cx_static_check.
* POST - "Create a gist"
* Operation id: gists/create
* Response: 201
* application/json, #/components/schemas/gist-simple
* Response: 304
* Response: 403
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodygists_create
METHODS gists_create
IMPORTING
body TYPE bodygists_create
RETURNING
VALUE(return_data) TYPE gist_simple
RAISING cx_static_check.
* GET - "List public gists"
* Operation id: gists/list-public
* Parameter: since, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_gists_list_public
* Response: 304
* Response: 403
* Response: 422
METHODS gists_list_public
IMPORTING
since TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_gists_list_public
RAISING cx_static_check.
* GET - "List starred gists"
* Operation id: gists/list-starred
* Parameter: since, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_gists_list_starred
* Response: 304
* Response: 401
* Response: 403
METHODS gists_list_starred
IMPORTING
since TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_gists_list_starred
RAISING cx_static_check.
* GET - "Get a gist"
* Operation id: gists/get
* Parameter: gist_id, required, path
* Response: 200
* application/json, #/components/schemas/gist-simple
* Response: 304
* Response: 403
* Response: 404
METHODS gists_get
IMPORTING
gist_id TYPE string
RETURNING
VALUE(return_data) TYPE gist_simple
RAISING cx_static_check.
* PATCH - "Update a gist"
* Operation id: gists/update
* Parameter: gist_id, required, path
* Response: 200
* application/json, #/components/schemas/gist-simple
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodygists_update
METHODS gists_update
IMPORTING
gist_id TYPE string
body TYPE bodygists_update
RETURNING
VALUE(return_data) TYPE gist_simple
RAISING cx_static_check.
* DELETE - "Delete a gist"
* Operation id: gists/delete
* Parameter: gist_id, required, path
* Response: 204
* Response: 304
* Response: 403
* Response: 404
* Body ref: #/components/schemas/bodygists_delete
METHODS gists_delete
IMPORTING
gist_id TYPE string
body TYPE bodygists_delete
RAISING cx_static_check.
* GET - "List gist comments"
* Operation id: gists/list-comments
* Parameter: gist_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_gists_list_comments
* Response: 304
* Response: 403
* Response: 404
METHODS gists_list_comments
IMPORTING
gist_id TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_gists_list_comments
RAISING cx_static_check.
* POST - "Create a gist comment"
* Operation id: gists/create-comment
* Parameter: gist_id, required, path
* Response: 201
* application/json, #/components/schemas/gist-comment
* Response: 304
* Response: 403
* Response: 404
* Body ref: #/components/schemas/bodygists_create_comment
METHODS gists_create_comment
IMPORTING
gist_id TYPE string
body TYPE bodygists_create_comment
RETURNING
VALUE(return_data) TYPE gist_comment
RAISING cx_static_check.
* GET - "Get a gist comment"
* Operation id: gists/get-comment
* Parameter: gist_id, required, path
* Parameter: comment_id, required, path
* Response: 200
* application/json, #/components/schemas/gist-comment
* Response: 304
* Response: 403
* Response: 404
METHODS gists_get_comment
IMPORTING
gist_id TYPE string
comment_id TYPE i
RETURNING
VALUE(return_data) TYPE gist_comment
RAISING cx_static_check.
* PATCH - "Update a gist comment"
* Operation id: gists/update-comment
* Parameter: gist_id, required, path
* Parameter: comment_id, required, path
* Response: 200
* application/json, #/components/schemas/gist-comment
* Response: 404
* Body ref: #/components/schemas/bodygists_update_comment
METHODS gists_update_comment
IMPORTING
gist_id TYPE string
comment_id TYPE i
body TYPE bodygists_update_comment
RETURNING
VALUE(return_data) TYPE gist_comment
RAISING cx_static_check.
* DELETE - "Delete a gist comment"
* Operation id: gists/delete-comment
* Parameter: gist_id, required, path
* Parameter: comment_id, required, path
* Response: 204
* Response: 304
* Response: 403
* Response: 404
* Body ref: #/components/schemas/bodygists_delete_comment
METHODS gists_delete_comment
IMPORTING
gist_id TYPE string
comment_id TYPE i
body TYPE bodygists_delete_comment
RAISING cx_static_check.
* GET - "List gist commits"
* Operation id: gists/list-commits
* Parameter: gist_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_gists_list_commits
* Response: 304
* Response: 403
* Response: 404
METHODS gists_list_commits
IMPORTING
gist_id TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_gists_list_commits
RAISING cx_static_check.
* GET - "List gist forks"
* Operation id: gists/list-forks
* Parameter: gist_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_gists_list_forks
* Response: 304
* Response: 403
* Response: 404
METHODS gists_list_forks
IMPORTING
gist_id TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_gists_list_forks
RAISING cx_static_check.
* POST - "Fork a gist"
* Operation id: gists/fork
* Parameter: gist_id, required, path
* Response: 201
* application/json, #/components/schemas/base-gist
* Response: 304
* Response: 403
* Response: 404
* Response: 422
METHODS gists_fork
IMPORTING
gist_id TYPE string
RETURNING
VALUE(return_data) TYPE base_gist
RAISING cx_static_check.
* GET - "Check if a gist is starred"
* Operation id: gists/check-is-starred
* Parameter: gist_id, required, path
* Response: 204
* Response: 304
* Response: 403
* Response: 404
* application/json, #/components/schemas/response_gists_check_is_starred
METHODS gists_check_is_starred
IMPORTING
gist_id TYPE string
RAISING cx_static_check.
* PUT - "Star a gist"
* Operation id: gists/star
* Parameter: gist_id, required, path
* Response: 204
* Response: 304
* Response: 403
* Response: 404
METHODS gists_star
IMPORTING
gist_id TYPE string
RAISING cx_static_check.
* DELETE - "Unstar a gist"
* Operation id: gists/unstar
* Parameter: gist_id, required, path
* Response: 204
* Response: 304
* Response: 403
* Response: 404
METHODS gists_unstar
IMPORTING
gist_id TYPE string
RAISING cx_static_check.
* GET - "Get a gist revision"
* Operation id: gists/get-revision
* Parameter: sha, required, path
* Parameter: gist_id, required, path
* Response: 200
* application/json, #/components/schemas/gist-simple
* Response: 403
* Response: 404
* Response: 422
METHODS gists_get_revision
IMPORTING
sha TYPE string
gist_id TYPE string
RETURNING
VALUE(return_data) TYPE gist_simple
RAISING cx_static_check.
* GET - "Get all gitignore templates"
* Operation id: gitignore/get-all-templates
* Response: 200
* application/json, #/components/schemas/response_gitignore_get_all_templates
* Response: 304
METHODS gitignore_get_all_templates
RETURNING
VALUE(return_data) TYPE response_gitignore_get_all_tem
RAISING cx_static_check.
* GET - "Get a gitignore template"
* Operation id: gitignore/get-template
* Parameter: name, required, path
* Response: 200
* application/json, #/components/schemas/gitignore-template
* Response: 304
METHODS gitignore_get_template
IMPORTING
name TYPE string
RETURNING
VALUE(return_data) TYPE gitignore_template
RAISING cx_static_check.
* GET - "List repositories accessible to the app installation"
* Operation id: apps/list-repos-accessible-to-installation
* Parameter: 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 a subscription plan for an account"
* Operation id: apps/get-subscription-plan-for-account
* Parameter: account_id, required, path
* Response: 200
* application/json, #/components/schemas/marketplace-purchase
* Response: 401
* Response: 404
* application/json, #/components/schemas/basic-error
METHODS apps_get_subscription_plan_for
IMPORTING
account_id TYPE i
RETURNING
VALUE(return_data) TYPE marketplace_purchase
RAISING cx_static_check.
* GET - "List plans"
* Operation id: apps/list-plans
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_apps_list_plans
* Response: 401
* Response: 404
METHODS apps_list_plans
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_apps_list_plans
RAISING cx_static_check.
* GET - "List accounts for a plan"
* Operation id: apps/list-accounts-for-plan
* Parameter: direction, optional, query
* Parameter: plan_id, required, path
* Parameter: sort, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_apps_list_accounts_for_plan
* Response: 401
* Response: 404
* Response: 422
METHODS apps_list_accounts_for_plan
IMPORTING
direction TYPE string OPTIONAL
plan_id TYPE i
sort TYPE string DEFAULT 'created'
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_apps_list_accounts_fo
RAISING cx_static_check.
* GET - "Get a subscription plan for an account (stubbed)"
* Operation id: apps/get-subscription-plan-for-account-stubbed
* Parameter: account_id, required, path
* Response: 200
* application/json, #/components/schemas/marketplace-purchase
* Response: 401
* Response: 404
METHODS apps_get_subscription_plan_f01
IMPORTING
account_id TYPE i
RETURNING
VALUE(return_data) TYPE marketplace_purchase
RAISING cx_static_check.
* GET - "List plans (stubbed)"
* Operation id: apps/list-plans-stubbed
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_apps_list_plans_stubbed
* Response: 401
METHODS apps_list_plans_stubbed
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_apps_list_plans_stubb
RAISING cx_static_check.
* GET - "List accounts for a plan (stubbed)"
* Operation id: apps/list-accounts-for-plan-stubbed
* Parameter: direction, optional, query
* Parameter: plan_id, required, path
* Parameter: sort, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_apps_list_accounts_for_plan_st
* Response: 401
METHODS apps_list_accounts_for_plan_st
IMPORTING
direction TYPE string OPTIONAL
plan_id TYPE i
sort TYPE string DEFAULT 'created'
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_apps_list_accounts_01
RAISING cx_static_check.
* GET - "Get GitHub meta information"
* Operation id: meta/get
* Response: 200
* application/json, #/components/schemas/api-overview
* Response: 304
METHODS meta_get
RETURNING
VALUE(return_data) TYPE api_overview
RAISING cx_static_check.
* GET - "List public events for a network of repositories"
* Operation id: activity/list-public-events-for-repo-network
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_activity_list_public_events_fo
* Response: 301
* Response: 304
* Response: 403
* Response: 404
METHODS activity_list_public_events_fo
IMPORTING
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_activity_list_publi01
RAISING cx_static_check.
* GET - "List notifications for the authenticated user"
* Operation id: activity/list-notifications-for-authenticated-user
* Parameter: all, optional, query
* Parameter: participating, optional, query
* Parameter: since, optional, query
* Parameter: before, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_activity_list_notifications_fo
* Response: 304
* Response: 401
* Response: 403
* Response: 422
METHODS activity_list_notifications_fo
IMPORTING
all TYPE abap_bool DEFAULT abap_false
participating TYPE abap_bool DEFAULT abap_false
since TYPE string OPTIONAL
before TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_activity_list_notific
RAISING cx_static_check.
* PUT - "Mark notifications as read"
* Operation id: activity/mark-notifications-as-read
* Response: 202
* application/json, #/components/schemas/response_activity_mark_notifications_as
* Response: 205
* Response: 304
* Response: 401
* Response: 403
* Body ref: #/components/schemas/bodyactivity_mark_notification
METHODS activity_mark_notifications_as
IMPORTING
body TYPE bodyactivity_mark_notification
RAISING cx_static_check.
* GET - "Get a thread"
* Operation id: activity/get-thread
* Parameter: thread_id, required, path
* Response: 200
* application/json, #/components/schemas/thread
* Response: 304
* Response: 401
* Response: 403
METHODS activity_get_thread
IMPORTING
thread_id TYPE i
RETURNING
VALUE(return_data) TYPE thread
RAISING cx_static_check.
* PATCH - "Mark a thread as read"
* Operation id: activity/mark-thread-as-read
* Parameter: thread_id, required, path
* Response: 205
* Response: 304
* Response: 403
METHODS activity_mark_thread_as_read
IMPORTING
thread_id TYPE i
RAISING cx_static_check.
* GET - "Get a thread subscription for the authenticated user"
* Operation id: activity/get-thread-subscription-for-authenticated-user
* Parameter: thread_id, required, path
* Response: 200
* application/json, #/components/schemas/thread-subscription
* Response: 304
* Response: 401
* Response: 403
METHODS activity_get_thread_subscripti
IMPORTING
thread_id TYPE i
RETURNING
VALUE(return_data) TYPE thread_subscription
RAISING cx_static_check.
* PUT - "Set a thread subscription"
* Operation id: activity/set-thread-subscription
* Parameter: thread_id, required, path
* Response: 200
* application/json, #/components/schemas/thread-subscription
* Response: 304
* Response: 401
* Response: 403
* Body ref: #/components/schemas/bodyactivity_set_thread_subscr
METHODS activity_set_thread_subscripti
IMPORTING
thread_id TYPE i
body TYPE bodyactivity_set_thread_subscr
RETURNING
VALUE(return_data) TYPE thread_subscription
RAISING cx_static_check.
* DELETE - "Delete a thread subscription"
* Operation id: activity/delete-thread-subscription
* Parameter: thread_id, required, path
* Response: 204
* Response: 304
* Response: 401
* Response: 403
* Body ref: #/components/schemas/bodyactivity_delete_thread_sub
METHODS activity_delete_thread_subscri
IMPORTING
thread_id TYPE i
body TYPE bodyactivity_delete_thread_sub
RAISING cx_static_check.
* GET - "Get Octocat"
* Operation id: meta/get-octocat
* Parameter: s, optional, query
* Response: 200
* application/octocat-stream, string
METHODS meta_get_octocat
IMPORTING
s TYPE string OPTIONAL
RAISING cx_static_check.
* GET - "List organizations"
* Operation id: orgs/list
* Parameter: since, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_orgs_list
* Response: 304
METHODS orgs_list
IMPORTING
since TYPE i OPTIONAL
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_orgs_list
RAISING cx_static_check.
* GET - "List custom repository roles in an organization"
* Operation id: orgs/list-custom-roles
* Parameter: organization_id, required, path
* Response: 200
* application/json, #/components/schemas/response_orgs_list_custom_roles
METHODS orgs_list_custom_roles
IMPORTING
organization_id TYPE string
RETURNING
VALUE(return_data) TYPE response_orgs_list_custom_role
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.
* GET - "List self-hosted runner groups for an organization"
* Operation id: actions/list-self-hosted-runner-groups-for-org
* Parameter: org, 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
org 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.
* 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.
* GET - "Get a self-hosted runner group for an organization"
* Operation id: actions/get-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
METHODS actions_get_self_hosted_runner
IMPORTING
org TYPE string
runner_group_id TYPE i
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.
* GET - "List repository access to a self-hosted runner group in an organization"
* Operation id: actions/list-repo-access-to-self-hosted-runner-group-in-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_repo_access_to_se
METHODS actions_list_repo_access_to_se
IMPORTING
org TYPE string
runner_group_id TYPE i
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_actions_list_repo_acc
RAISING cx_static_check.
* PUT - "Set repository access for a self-hosted runner group in an organization"
* Operation id: actions/set-repo-access-to-self-hosted-runner-group-in-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_set_repo_access_to
METHODS actions_set_repo_access_to_sel
IMPORTING
org TYPE string
runner_group_id TYPE i
body TYPE bodyactions_set_repo_access_to
RAISING cx_static_check.
* PUT - "Add repository access to a self-hosted runner group in an organization"
* Operation id: actions/add-repo-access-to-self-hosted-runner-group-in-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Parameter: repository_id, required, path
* Response: 204
METHODS actions_add_repo_access_to_sel
IMPORTING
org TYPE string
runner_group_id TYPE i
repository_id TYPE i
RAISING cx_static_check.
* DELETE - "Remove repository access to a self-hosted runner group in an organization"
* Operation id: actions/remove-repo-access-to-self-hosted-runner-group-in-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Parameter: repository_id, required, path
* Response: 204
METHODS actions_remove_repo_access_to_
IMPORTING
org TYPE string
runner_group_id TYPE i
repository_id TYPE i
RAISING cx_static_check.
* GET - "List self-hosted runners in a group for an organization"
* Operation id: actions/list-self-hosted-runners-in-group-for-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_self_hosted_run01
METHODS actions_list_self_hosted_run01
IMPORTING
org TYPE string
runner_group_id TYPE i
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_self_h01
RAISING cx_static_check.
* PUT - "Set self-hosted runners in a group for an organization"
* Operation id: actions/set-self-hosted-runners-in-group-for-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_set_self_hosted_ru
METHODS actions_set_self_hosted_runner
IMPORTING
org TYPE string
runner_group_id TYPE i
body TYPE bodyactions_set_self_hosted_ru
RAISING cx_static_check.
* PUT - "Add a self-hosted runner to a group for an organization"
* Operation id: actions/add-self-hosted-runner-to-group-for-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Parameter: runner_id, required, path
* Response: 204
METHODS actions_add_self_hosted_runner
IMPORTING
org 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 organization"
* Operation id: actions/remove-self-hosted-runner-from-group-for-org
* Parameter: org, required, path
* Parameter: runner_group_id, required, path
* Parameter: runner_id, required, path
* Response: 204
METHODS actions_remove_self_hosted_run
IMPORTING
org TYPE string
runner_group_id TYPE i
runner_id TYPE i
RAISING cx_static_check.
* GET - "List self-hosted runners for an organization"
* Operation id: actions/list-self-hosted-runners-for-org
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_self_hosted_run02
METHODS actions_list_self_hosted_run02
IMPORTING
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_self_h02
RAISING cx_static_check.
* GET - "List runner applications for an organization"
* Operation id: actions/list-runner-applications-for-org
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/response_actions_list_runner_applicatio
METHODS actions_list_runner_applicatio
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE response_actions_list_runner_a
RAISING cx_static_check.
* POST - "Create a registration token for an organization"
* Operation id: actions/create-registration-token-for-org
* Parameter: org, required, path
* Response: 201
* application/json, #/components/schemas/authentication-token
METHODS actions_create_registration_to
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE authentication_token
RAISING cx_static_check.
* POST - "Create a remove token for an organization"
* Operation id: actions/create-remove-token-for-org
* Parameter: org, required, path
* Response: 201
* application/json, #/components/schemas/authentication-token
METHODS actions_create_remove_token_fo
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE authentication_token
RAISING cx_static_check.
* GET - "Get a self-hosted runner for an organization"
* Operation id: actions/get-self-hosted-runner-for-org
* Parameter: org, required, path
* Parameter: runner_id, required, path
* Response: 200
* application/json, #/components/schemas/runner
METHODS actions_get_self_hosted_runn01
IMPORTING
org TYPE string
runner_id TYPE i
RETURNING
VALUE(return_data) TYPE runner
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 labels for a self-hosted runner for an organization"
* Operation id: actions/list-labels-for-self-hosted-runner-for-org
* Parameter: org, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
METHODS actions_list_labels_for_self_h
IMPORTING
org TYPE string
runner_id TYPE i
RAISING cx_static_check.
* POST - "Add custom labels to a self-hosted runner for an organization"
* Operation id: actions/add-custom-labels-to-self-hosted-runner-for-org
* Parameter: org, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyactions_add_custom_labels_
METHODS actions_add_custom_labels_to_s
IMPORTING
org TYPE string
runner_id TYPE i
body TYPE bodyactions_add_custom_labels_
RAISING cx_static_check.
* PUT - "Set custom labels for a self-hosted runner for an organization"
* Operation id: actions/set-custom-labels-for-self-hosted-runner-for-org
* Parameter: org, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyactions_set_custom_labels_
METHODS actions_set_custom_labels_for_
IMPORTING
org TYPE string
runner_id TYPE i
body TYPE bodyactions_set_custom_labels_
RAISING cx_static_check.
* DELETE - "Remove all custom labels from a self-hosted runner for an organization"
* Operation id: actions/remove-all-custom-labels-from-self-hosted-runner-for-org
* Parameter: org, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Body ref: #/components/schemas/bodyactions_remove_all_custom_
METHODS actions_remove_all_custom_labe
IMPORTING
org TYPE string
runner_id TYPE i
body TYPE bodyactions_remove_all_custom_
RAISING cx_static_check.
* DELETE - "Remove a custom label from a self-hosted runner for an organization"
* Operation id: actions/remove-custom-label-from-self-hosted-runner-for-org
* Parameter: org, required, path
* Parameter: runner_id, required, path
* Parameter: name, required, path
* Response: 200
* Response: 404
* Response: 422
METHODS actions_remove_custom_label_fr
IMPORTING
org TYPE string
runner_id TYPE i
name TYPE string
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 the audit log for an organization"
* Operation id: orgs/get-audit-log
* Parameter: org, required, path
* Parameter: phrase, optional, query
* Parameter: include, optional, query
* Parameter: after, optional, query
* Parameter: before, optional, query
* Parameter: order, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_orgs_get_audit_log
METHODS orgs_get_audit_log
IMPORTING
org TYPE string
phrase TYPE string OPTIONAL
include TYPE string OPTIONAL
after TYPE string OPTIONAL
before TYPE string OPTIONAL
order TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_orgs_get_audit_log
RAISING cx_static_check.
* GET - "List users blocked by an organization"
* Operation id: orgs/list-blocked-users
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/response_orgs_list_blocked_users
* Response: 415
METHODS orgs_list_blocked_users
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE response_orgs_list_blocked_use
RAISING cx_static_check.
* GET - "Check if a user is blocked by an organization"
* Operation id: orgs/check-blocked-user
* Parameter: org, required, path
* Parameter: username, required, path
* Response: 204
* Response: 404
* application/json, #/components/schemas/basic-error
METHODS orgs_check_blocked_user
IMPORTING
org TYPE string
username TYPE string
RAISING cx_static_check.
* PUT - "Block a user from an organization"
* Operation id: orgs/block-user
* Parameter: org, required, path
* Parameter: username, required, path
* Response: 204
* Response: 422
METHODS orgs_block_user
IMPORTING
org TYPE string
username TYPE string
RAISING cx_static_check.
* DELETE - "Unblock a user from an organization"
* Operation id: orgs/unblock-user
* Parameter: org, required, path
* Parameter: username, required, path
* Response: 204
METHODS orgs_unblock_user
IMPORTING
org TYPE string
username TYPE string
RAISING cx_static_check.
* GET - "List SAML SSO authorizations for an organization"
* Operation id: orgs/list-saml-sso-authorizations
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/response_orgs_list_saml_sso_authorizati
METHODS orgs_list_saml_sso_authorizati
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE response_orgs_list_saml_sso_au
RAISING cx_static_check.
* DELETE - "Remove a SAML SSO authorization for an organization"
* Operation id: orgs/remove-saml-sso-authorization
* Parameter: credential_id, required, path
* Parameter: org, required, path
* Response: 204
* Response: 404
METHODS orgs_remove_saml_sso_authoriza
IMPORTING
credential_id TYPE i
org TYPE string
RAISING cx_static_check.
* GET - "List public organization events"
* Operation id: activity/list-public-org-events
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_activity_list_public_org_event
METHODS activity_list_public_org_event
IMPORTING
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_activity_list_publi02
RAISING cx_static_check.
* GET - "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 failed organization invitations"
* Operation id: orgs/list-failed-invitations
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_orgs_list_failed_invitations
* Response: 404
METHODS orgs_list_failed_invitations
IMPORTING
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_orgs_list_failed_invi
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 - "List deliveries for an organization webhook"
* Operation id: orgs/list-webhook-deliveries
* Parameter: org, required, path
* Parameter: hook_id, required, path
* Parameter: per_page, optional, query
* Parameter: cursor, optional, query
* Response: 200
* application/json, #/components/schemas/response_orgs_list_webhook_deliveries
* Response: 400
* Response: 422
METHODS orgs_list_webhook_deliveries
IMPORTING
org TYPE string
hook_id TYPE i
per_page TYPE i DEFAULT 30
cursor TYPE string OPTIONAL
RETURNING
VALUE(return_data) TYPE response_orgs_list_webhook_del
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 - "Get interaction restrictions for an organization"
* Operation id: interactions/get-restrictions-for-org
* Parameter: org, required, path
* Response: 200
* application/json, string
METHODS interactions_get_restrictions_
IMPORTING
org TYPE string
RAISING cx_static_check.
* PUT - "Set interaction restrictions for an organization"
* Operation id: interactions/set-restrictions-for-org
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/interaction-limit-response
* Response: 422
* Body ref: #/components/schemas/interaction-limit
METHODS interactions_set_restrictions_
IMPORTING
org TYPE string
body TYPE interaction_limit
RETURNING
VALUE(return_data) TYPE interaction_limit_response
RAISING cx_static_check.
* DELETE - "Remove interaction restrictions for an organization"
* Operation id: interactions/remove-restrictions-for-org
* Parameter: org, required, path
* Response: 204
METHODS interactions_remove_restrictio
IMPORTING
org TYPE string
RAISING cx_static_check.
* GET - "List pending organization invitations"
* Operation id: orgs/list-pending-invitations
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_orgs_list_pending_invitations
* Response: 404
METHODS orgs_list_pending_invitations
IMPORTING
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_orgs_list_pending_inv
RAISING cx_static_check.
* POST - "Create an organization invitation"
* Operation id: orgs/create-invitation
* Parameter: org, required, path
* Response: 201
* application/json, #/components/schemas/organization-invitation
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyorgs_create_invitation
METHODS orgs_create_invitation
IMPORTING
org TYPE string
body TYPE bodyorgs_create_invitation
RETURNING
VALUE(return_data) TYPE organization_invitation
RAISING cx_static_check.
* DELETE - "Cancel an organization invitation"
* Operation id: orgs/cancel-invitation
* Parameter: org, required, path
* Parameter: invitation_id, required, path
* Response: 204
* Response: 404
* Response: 422
METHODS orgs_cancel_invitation
IMPORTING
org TYPE string
invitation_id TYPE i
RAISING cx_static_check.
* GET - "List organization invitation teams"
* Operation id: orgs/list-invitation-teams
* Parameter: org, required, path
* Parameter: invitation_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_orgs_list_invitation_teams
* Response: 404
METHODS orgs_list_invitation_teams
IMPORTING
org TYPE string
invitation_id TYPE i
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_orgs_list_invitation_
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 organization migrations"
* Operation id: migrations/list-for-org
* Parameter: exclude, optional, query
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_migrations_list_for_org
METHODS migrations_list_for_org
IMPORTING
exclude TYPE string OPTIONAL
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_migrations_list_for_o
RAISING cx_static_check.
* POST - "Start an organization migration"
* Operation id: migrations/start-for-org
* Parameter: org, required, path
* Response: 201
* application/json, #/components/schemas/migration
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodymigrations_start_for_org
METHODS migrations_start_for_org
IMPORTING
org TYPE string
body TYPE bodymigrations_start_for_org
RETURNING
VALUE(return_data) TYPE migration
RAISING cx_static_check.
* GET - "Get an organization migration status"
* Operation id: migrations/get-status-for-org
* Parameter: exclude, optional, query
* Parameter: org, required, path
* Parameter: migration_id, required, path
* Response: 200
* application/json, #/components/schemas/migration
* Response: 404
METHODS migrations_get_status_for_org
IMPORTING
exclude TYPE string OPTIONAL
org TYPE string
migration_id TYPE i
RETURNING
VALUE(return_data) TYPE migration
RAISING cx_static_check.
* GET - "Download an organization migration archive"
* Operation id: migrations/download-archive-for-org
* Parameter: org, required, path
* Parameter: migration_id, required, path
* Response: 302
* Response: 404
METHODS migrations_download_archive_fo
IMPORTING
org TYPE string
migration_id TYPE i
RAISING cx_static_check.
* DELETE - "Delete an organization migration archive"
* Operation id: migrations/delete-archive-for-org
* Parameter: org, required, path
* Parameter: migration_id, required, path
* Response: 204
* Response: 404
METHODS migrations_delete_archive_for_
IMPORTING
org TYPE string
migration_id TYPE i
RAISING cx_static_check.
* DELETE - "Unlock an organization repository"
* Operation id: migrations/unlock-repo-for-org
* Parameter: org, required, path
* Parameter: migration_id, required, path
* Parameter: repo_name, required, path
* Response: 204
* Response: 404
METHODS migrations_unlock_repo_for_org
IMPORTING
org TYPE string
migration_id TYPE i
repo_name TYPE string
RAISING cx_static_check.
* GET - "List repositories in an organization migration"
* Operation id: migrations/list-repos-for-org
* Parameter: org, required, path
* Parameter: migration_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_migrations_list_repos_for_org
* Response: 404
METHODS migrations_list_repos_for_org
IMPORTING
org TYPE string
migration_id TYPE i
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_migrations_list_repos
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 packages for an organization"
* Operation id: packages/list-packages-for-organization
* Parameter: package_type, required, query
* Parameter: org, required, path
* Parameter: visibility, optional, query
* Response: 200
* application/json, #/components/schemas/response_packages_list_packages_for_org
* Response: 401
* Response: 403
METHODS packages_list_packages_for_org
IMPORTING
package_type TYPE string
org TYPE string
visibility TYPE string OPTIONAL
RETURNING
VALUE(return_data) TYPE response_packages_list_package
RAISING cx_static_check.
* GET - "Get a package for an organization"
* Operation id: packages/get-package-for-organization
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/package
METHODS packages_get_package_for_organ
IMPORTING
package_type TYPE string
package_name TYPE string
org TYPE string
RETURNING
VALUE(return_data) TYPE package
RAISING cx_static_check.
* DELETE - "Delete a package for an organization"
* Operation id: packages/delete-package-for-org
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: org, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_delete_package_for_or
IMPORTING
package_type TYPE string
package_name TYPE string
org TYPE string
RAISING cx_static_check.
* POST - "Restore a package for an organization"
* Operation id: packages/restore-package-for-org
* Parameter: token, optional, query
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: org, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_restore_package_for_o
IMPORTING
token TYPE string OPTIONAL
package_type TYPE string
package_name TYPE string
org TYPE string
RAISING cx_static_check.
* GET - "Get all package versions for a package owned by an organization"
* Operation id: packages/get-all-package-versions-for-package-owned-by-org
* Parameter: state, optional, query
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: org, required, path
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_packages_get_all_package_versi
* Response: 401
* Response: 403
* Response: 404
METHODS packages_get_all_package_versi
IMPORTING
state TYPE string DEFAULT 'active'
package_type TYPE string
package_name TYPE string
org TYPE string
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_packages_get_all_pack
RAISING cx_static_check.
* GET - "Get a package version for an organization"
* Operation id: packages/get-package-version-for-organization
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: org, required, path
* Parameter: package_version_id, required, path
* Response: 200
* application/json, #/components/schemas/package-version
METHODS packages_get_package_version_f
IMPORTING
package_type TYPE string
package_name TYPE string
org TYPE string
package_version_id TYPE i
RETURNING
VALUE(return_data) TYPE package_version
RAISING cx_static_check.
* DELETE - "Delete package version for an organization"
* Operation id: packages/delete-package-version-for-org
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: org, required, path
* Parameter: package_version_id, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_delete_package_versio
IMPORTING
package_type TYPE string
package_name TYPE string
org TYPE string
package_version_id TYPE i
RAISING cx_static_check.
* POST - "Restore package version for an organization"
* Operation id: packages/restore-package-version-for-org
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: org, required, path
* Parameter: package_version_id, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_restore_package_versi
IMPORTING
package_type TYPE string
package_name TYPE string
org TYPE string
package_version_id TYPE i
RAISING cx_static_check.
* GET - "List organization projects"
* Operation id: projects/list-for-org
* Parameter: state, optional, query
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_projects_list_for_org
* Response: 422
METHODS projects_list_for_org
IMPORTING
state TYPE string DEFAULT 'open'
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_projects_list_for_org
RAISING cx_static_check.
* POST - "Create an organization project"
* Operation id: projects/create-for-org
* Parameter: org, required, path
* Response: 201
* application/json, #/components/schemas/project
* Response: 401
* Response: 403
* Response: 404
* Response: 410
* Response: 422
* Body ref: #/components/schemas/bodyprojects_create_for_org
METHODS projects_create_for_org
IMPORTING
org TYPE string
body TYPE bodyprojects_create_for_org
RETURNING
VALUE(return_data) TYPE project
RAISING cx_static_check.
* GET - "List public organization members"
* Operation id: orgs/list-public-members
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_orgs_list_public_members
METHODS orgs_list_public_members
IMPORTING
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_orgs_list_public_memb
RAISING cx_static_check.
* GET - "Check public organization membership for a user"
* Operation id: orgs/check-public-membership-for-user
* Parameter: org, required, path
* Parameter: username, required, path
* Response: 204
* Response: 404
METHODS orgs_check_public_membership_f
IMPORTING
org TYPE string
username TYPE string
RAISING cx_static_check.
* PUT - "Set public organization membership for the authenticated user"
* Operation id: orgs/set-public-membership-for-authenticated-user
* Parameter: org, required, path
* Parameter: username, required, path
* Response: 204
* Response: 403
METHODS orgs_set_public_membership_for
IMPORTING
org TYPE string
username TYPE string
RAISING cx_static_check.
* DELETE - "Remove public organization membership for the authenticated user"
* Operation id: orgs/remove-public-membership-for-authenticated-user
* Parameter: org, required, path
* Parameter: username, required, path
* Response: 204
METHODS orgs_remove_public_membership_
IMPORTING
org TYPE string
username TYPE string
RAISING cx_static_check.
* GET - "List organization repositories"
* Operation id: repos/list-for-org
* Parameter: type, optional, query
* Parameter: sort, optional, query
* Parameter: direction, optional, query
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_for_org
METHODS repos_list_for_org
IMPORTING
type TYPE string OPTIONAL
sort TYPE string DEFAULT 'created'
direction TYPE string OPTIONAL
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_repos_list_for_org
RAISING cx_static_check.
* POST - "Create an organization repository"
* Operation id: repos/create-in-org
* Parameter: org, required, path
* Response: 201
* application/json, #/components/schemas/repository
* Response: 403
* Response: 422
* Body ref: #/components/schemas/bodyrepos_create_in_org
METHODS repos_create_in_org
IMPORTING
org TYPE string
body TYPE bodyrepos_create_in_org
RETURNING
VALUE(return_data) TYPE repository
RAISING cx_static_check.
* GET - "List secret scanning alerts for an organization"
* Operation id: secret-scanning/list-alerts-for-org
* Parameter: org, 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
org 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 GitHub Actions billing for an organization"
* Operation id: billing/get-github-actions-billing-org
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/actions-billing-usage
METHODS billing_get_github_actions_b01
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE actions_billing_usage
RAISING cx_static_check.
* GET - "Get GitHub Advanced Security active committers for an organization"
* Operation id: billing/get-github-advanced-security-billing-org
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/advanced-security-active-committers
* Response: 403
METHODS billing_get_github_advanced_01
IMPORTING
org TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE advanced_security_active_com02
RAISING cx_static_check.
* GET - "Get GitHub Packages billing for an organization"
* Operation id: billing/get-github-packages-billing-org
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/packages-billing-usage
METHODS billing_get_github_packages_01
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE packages_billing_usage
RAISING cx_static_check.
* GET - "Get shared storage billing for an organization"
* Operation id: billing/get-shared-storage-billing-org
* Parameter: org, required, path
* Response: 200
* application/json, #/components/schemas/combined-billing-usage
METHODS billing_get_shared_storage_b01
IMPORTING
org TYPE string
RETURNING
VALUE(return_data) TYPE combined_billing_usage
RAISING cx_static_check.
* GET - "List IdP groups for an organization"
* Operation id: teams/list-idp-groups-for-org
* Parameter: page, optional, query
* Parameter: org, required, path
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/group-mapping
METHODS teams_list_idp_groups_for_org
IMPORTING
page TYPE string OPTIONAL
org TYPE string
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE group_mapping
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 pending team invitations"
* Operation id: teams/list-pending-invitations-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_pending_invitations
METHODS teams_list_pending_invitations
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_pending_in
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 IdP groups for a team"
* Operation id: teams/list-idp-groups-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Response: 200
* application/json, #/components/schemas/group-mapping
METHODS teams_list_idp_groups_in_org
IMPORTING
org TYPE string
team_slug TYPE string
RETURNING
VALUE(return_data) TYPE group_mapping
RAISING cx_static_check.
* PATCH - "Create or update IdP group connections"
* Operation id: teams/create-or-update-idp-group-connections-in-org
* Parameter: org, required, path
* Parameter: team_slug, required, path
* Response: 200
* application/json, #/components/schemas/group-mapping
* Body ref: #/components/schemas/bodyteams_create_or_update_idp
METHODS teams_create_or_update_idp_gro
IMPORTING
org TYPE string
team_slug TYPE string
body TYPE bodyteams_create_or_update_idp
RETURNING
VALUE(return_data) TYPE group_mapping
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_run03
METHODS actions_list_self_hosted_run03
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_h03
RAISING cx_static_check.
* GET - "List runner applications for a repository"
* Operation id: actions/list-runner-applications-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/response_actions_list_runner_applicat01
METHODS actions_list_runner_applicat01
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE response_actions_list_runner01
RAISING cx_static_check.
* POST - "Create a registration token for a repository"
* Operation id: actions/create-registration-token-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/authentication-token
METHODS actions_create_registration_01
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE authentication_token
RAISING cx_static_check.
* POST - "Create a remove token for a repository"
* Operation id: actions/create-remove-token-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/authentication-token
METHODS actions_create_remove_token_01
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE authentication_token
RAISING cx_static_check.
* GET - "Get a self-hosted runner for a repository"
* Operation id: actions/get-self-hosted-runner-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: runner_id, required, path
* Response: 200
* application/json, #/components/schemas/runner
METHODS actions_get_self_hosted_runn02
IMPORTING
owner TYPE string
repo TYPE string
runner_id TYPE i
RETURNING
VALUE(return_data) TYPE runner
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 labels for a self-hosted runner for a repository"
* Operation id: actions/list-labels-for-self-hosted-runner-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
METHODS actions_list_labels_for_self01
IMPORTING
owner TYPE string
repo TYPE string
runner_id TYPE i
RAISING cx_static_check.
* POST - "Add custom labels to a self-hosted runner for a repository"
* Operation id: actions/add-custom-labels-to-self-hosted-runner-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyactions_add_custom_label01
METHODS actions_add_custom_labels_to01
IMPORTING
owner TYPE string
repo TYPE string
runner_id TYPE i
body TYPE bodyactions_add_custom_label01
RAISING cx_static_check.
* PUT - "Set custom labels for a self-hosted runner for a repository"
* Operation id: actions/set-custom-labels-for-self-hosted-runner-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyactions_set_custom_label01
METHODS actions_set_custom_labels_fo01
IMPORTING
owner TYPE string
repo TYPE string
runner_id TYPE i
body TYPE bodyactions_set_custom_label01
RAISING cx_static_check.
* DELETE - "Remove all custom labels from a self-hosted runner for a repository"
* Operation id: actions/remove-all-custom-labels-from-self-hosted-runner-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: runner_id, required, path
* Response: 200
* Response: 404
* Body ref: #/components/schemas/bodyactions_remove_all_custo01
METHODS actions_remove_all_custom_la01
IMPORTING
owner TYPE string
repo TYPE string
runner_id TYPE i
body TYPE bodyactions_remove_all_custo01
RAISING cx_static_check.
* DELETE - "Remove a custom label from a self-hosted runner for a repository"
* Operation id: actions/remove-custom-label-from-self-hosted-runner-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: runner_id, required, path
* Parameter: name, required, path
* Response: 200
* Response: 404
* Response: 422
METHODS actions_remove_custom_label_01
IMPORTING
owner TYPE string
repo TYPE string
runner_id TYPE i
name TYPE string
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 - "Get the review history for a workflow run"
* Operation id: actions/get-reviews-for-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 200
* application/json, #/components/schemas/response_actions_get_reviews_for_run
METHODS actions_get_reviews_for_run
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
RETURNING
VALUE(return_data) TYPE response_actions_get_reviews_f
RAISING cx_static_check.
* POST - "Approve a workflow run for a fork pull request"
* Operation id: actions/approve-workflow-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 201
* application/json, #/components/schemas/empty-object
* Response: 403
* Response: 404
METHODS actions_approve_workflow_run
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
RETURNING
VALUE(return_data) TYPE empty_object
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 pending deployments for a workflow run"
* Operation id: actions/get-pending-deployments-for-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 200
* application/json, #/components/schemas/response_actions_get_pending_deployment
METHODS actions_get_pending_deployment
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
RETURNING
VALUE(return_data) TYPE response_actions_get_pending_d
RAISING cx_static_check.
* POST - "Review pending deployments for a workflow run"
* Operation id: actions/review-pending-deployments-for-run
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: run_id, required, path
* Response: 200
* application/json, #/components/schemas/response_actions_review_pending_deploym
* Body ref: #/components/schemas/bodyactions_review_pending_dep
METHODS actions_review_pending_deploym
IMPORTING
owner TYPE string
repo TYPE string
run_id TYPE i
body TYPE bodyactions_review_pending_dep
RETURNING
VALUE(return_data) TYPE response_actions_review_pendin
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.
* PUT - "Enable automated security fixes"
* Operation id: repos/enable-automated-security-fixes
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
METHODS repos_enable_automated_securit
IMPORTING
owner TYPE string
repo TYPE string
RAISING cx_static_check.
* DELETE - "Disable automated security fixes"
* Operation id: repos/disable-automated-security-fixes
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
METHODS repos_disable_automated_securi
IMPORTING
owner TYPE string
repo TYPE string
RAISING cx_static_check.
* GET - "List branches"
* Operation id: repos/list-branches
* Parameter: protected, optional, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_branches
* Response: 404
METHODS repos_list_branches
IMPORTING
protected TYPE abap_bool OPTIONAL
owner TYPE string
repo TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_repos_list_branches
RAISING cx_static_check.
* GET - "Get a branch"
* Operation id: repos/get-branch
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: branch, required, path
* Response: 200
* application/json, #/components/schemas/branch-with-protection
* Response: 301
* Response: 404
* Response: 415
METHODS repos_get_branch
IMPORTING
owner TYPE string
repo TYPE string
branch TYPE string
RETURNING
VALUE(return_data) TYPE branch_with_protection
RAISING cx_static_check.
* GET - "Get branch protection"
* Operation id: repos/get-branch-protection
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: branch, required, path
* Response: 200
* application/json, #/components/schemas/branch-protection
* Response: 404
METHODS repos_get_branch_protection
IMPORTING
owner TYPE string
repo TYPE string
branch TYPE string
RETURNING
VALUE(return_data) TYPE branch_protection
RAISING cx_static_check.
* PUT - "Update branch protection"
* Operation id: repos/update-branch-protection
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: branch, required, path
* Response: 200
* application/json, #/components/schemas/protected-branch
* Response: 403
* Response: 404
* Response: 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 - "Rename a branch"
* Operation id: repos/rename-branch
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: branch, required, path
* Response: 201
* application/json, #/components/schemas/branch-with-protection
* Response: 403
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyrepos_rename_branch
METHODS repos_rename_branch
IMPORTING
owner TYPE string
repo TYPE string
branch TYPE string
body TYPE bodyrepos_rename_branch
RETURNING
VALUE(return_data) TYPE branch_with_protection
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: sort, optional, query
* 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
* Parameter: direction, optional, query
* Response: 200
* application/json, #/components/schemas/response_code_scanning_list_alerts_for_
* Response: 304
* Response: 403
* Response: 404
* Response: 503
METHODS code_scanning_list_alerts_for_
IMPORTING
sort TYPE string DEFAULT 'number'
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
direction TYPE string DEFAULT 'desc'
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: 304
* 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 codespaces in a repository for the authenticated user"
* Operation id: codespaces/list-in-repository-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/response_codespaces_list_in_repository_
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_list_in_repository_
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE response_codespaces_list_in_re
RAISING cx_static_check.
* POST - "Create a codespace in a repository"
* Operation id: codespaces/create-with-repo-for-authenticated-user
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/codespace
* Response: 202
* application/json, #/components/schemas/codespace
* Response: 401
* Response: 403
* Response: 404
* Body ref: #/components/schemas/bodycodespaces_create_with_rep
METHODS codespaces_create_with_repo_fo
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodycodespaces_create_with_rep
RETURNING
VALUE(return_data) TYPE codespace
RAISING cx_static_check.
* GET - "List available machine types for a repository"
* Operation id: codespaces/repo-machines-for-authenticated-user
* Parameter: location, required, query
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/response_codespaces_repo_machines_for_a
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_repo_machines_for_a
IMPORTING
location TYPE string
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE response_codespaces_repo_machi
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 - "Get community profile metrics"
* Operation id: repos/get-community-profile-metrics
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/community-profile
METHODS repos_get_community_profile_me
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE community_profile
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.
* POST - "Create a repository dispatch event"
* Operation id: repos/create-dispatch-event
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Response: 422
* Body ref: #/components/schemas/bodyrepos_create_dispatch_even
METHODS repos_create_dispatch_event
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_create_dispatch_even
RAISING cx_static_check.
* GET - "Get all environments"
* Operation id: repos/get-all-environments
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/response_repos_get_all_environments
METHODS repos_get_all_environments
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE response_repos_get_all_environ
RAISING cx_static_check.
* GET - "Get an environment"
* Operation id: repos/get-environment
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: environment_name, required, path
* Response: 200
* application/json, #/components/schemas/environment
METHODS repos_get_environment
IMPORTING
owner TYPE string
repo TYPE string
environment_name TYPE string
RETURNING
VALUE(return_data) TYPE environment
RAISING cx_static_check.
* PUT - "Create or update an environment"
* Operation id: repos/create-or-update-environment
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: environment_name, required, path
* Response: 200
* application/json, #/components/schemas/environment
* Response: 422
* application/json, #/components/schemas/basic-error
* Body ref: #/components/schemas/bodyrepos_create_or_update_env
METHODS repos_create_or_update_environ
IMPORTING
owner TYPE string
repo TYPE string
environment_name TYPE string
body TYPE bodyrepos_create_or_update_env
RETURNING
VALUE(return_data) TYPE environment
RAISING cx_static_check.
* DELETE - "Delete an environment"
* Operation id: repos/delete-an-environment
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: environment_name, required, path
* Response: 204
* Body ref: #/components/schemas/bodyrepos_delete_an_environmen
METHODS repos_delete_an_environment
IMPORTING
owner TYPE string
repo TYPE string
environment_name TYPE string
body TYPE bodyrepos_delete_an_environmen
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 an import status"
* Operation id: migrations/get-import-status
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/import
* Response: 404
METHODS migrations_get_import_status
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE import
RAISING cx_static_check.
* PUT - "Start an import"
* Operation id: migrations/start-import
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/import
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodymigrations_start_import
METHODS migrations_start_import
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodymigrations_start_import
RETURNING
VALUE(return_data) TYPE import
RAISING cx_static_check.
* PATCH - "Update an import"
* Operation id: migrations/update-import
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/import
* Body ref: #/components/schemas/bodymigrations_update_import
METHODS migrations_update_import
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodymigrations_update_import
RETURNING
VALUE(return_data) TYPE import
RAISING cx_static_check.
* DELETE - "Cancel an import"
* Operation id: migrations/cancel-import
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Body ref: #/components/schemas/bodymigrations_cancel_import
METHODS migrations_cancel_import
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodymigrations_cancel_import
RAISING cx_static_check.
* GET - "Get commit authors"
* Operation id: migrations/get-commit-authors
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: since, optional, query
* Response: 200
* application/json, #/components/schemas/response_migrations_get_commit_authors
* Response: 404
METHODS migrations_get_commit_authors
IMPORTING
owner TYPE string
repo TYPE string
since TYPE i OPTIONAL
RETURNING
VALUE(return_data) TYPE response_migrations_get_commit
RAISING cx_static_check.
* PATCH - "Map a commit author"
* Operation id: migrations/map-commit-author
* Parameter: author_id, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/porter-author
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodymigrations_map_commit_auth
METHODS migrations_map_commit_author
IMPORTING
author_id TYPE i
owner TYPE string
repo TYPE string
body TYPE bodymigrations_map_commit_auth
RETURNING
VALUE(return_data) TYPE porter_author
RAISING cx_static_check.
* GET - "Get large files"
* Operation id: migrations/get-large-files
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/response_migrations_get_large_files
METHODS migrations_get_large_files
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE response_migrations_get_large_
RAISING cx_static_check.
* PATCH - "Update Git LFS preference"
* Operation id: migrations/set-lfs-preference
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/import
* Response: 422
* Body ref: #/components/schemas/bodymigrations_set_lfs_prefere
METHODS migrations_set_lfs_preference
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodymigrations_set_lfs_prefere
RETURNING
VALUE(return_data) TYPE import
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 - "Get interaction restrictions for a repository"
* Operation id: interactions/get-restrictions-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, string
METHODS interactions_get_restriction01
IMPORTING
owner TYPE string
repo TYPE string
RAISING cx_static_check.
* PUT - "Set interaction restrictions for a repository"
* Operation id: interactions/set-restrictions-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/interaction-limit-response
* Response: 409
* Body ref: #/components/schemas/interaction-limit
METHODS interactions_set_restriction01
IMPORTING
owner TYPE string
repo TYPE string
body TYPE interaction_limit
RETURNING
VALUE(return_data) TYPE interaction_limit_response
RAISING cx_static_check.
* DELETE - "Remove interaction restrictions for a repository"
* Operation id: interactions/remove-restrictions-for-repo
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Response: 409
METHODS interactions_remove_restrict01
IMPORTING
owner TYPE string
repo TYPE string
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 Pages site"
* Operation id: repos/get-pages
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/page
* Response: 404
METHODS repos_get_pages
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE page
RAISING cx_static_check.
* POST - "Create a GitHub Pages site"
* Operation id: repos/create-pages-site
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 201
* application/json, #/components/schemas/page
* Response: 409
* Response: 422
* Body ref: #/components/schemas/bodyrepos_create_pages_site
METHODS repos_create_pages_site
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_create_pages_site
RETURNING
VALUE(return_data) TYPE page
RAISING cx_static_check.
* PUT - "Update information about a GitHub Pages site"
* Operation id: repos/update-information-about-pages-site
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Response: 400
* Response: 422
* Body ref: #/components/schemas/bodyrepos_update_information_a
METHODS repos_update_information_about
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_update_information_a
RAISING cx_static_check.
* DELETE - "Delete a GitHub 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 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 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 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 - "Get a DNS health check for GitHub Pages"
* Operation id: repos/get-pages-health-check
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/pages-health-check
* Response: 202
* application/json, #/components/schemas/empty-object
* Response: 400
* Response: 404
* Response: 422
METHODS repos_get_pages_health_check
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE pages_health_check
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.
* POST - "Create a codespace from a pull request"
* Operation id: codespaces/create-with-pr-for-authenticated-user
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: pull_number, required, path
* Response: 201
* application/json, #/components/schemas/codespace
* Response: 202
* application/json, #/components/schemas/codespace
* Response: 401
* Response: 403
* Response: 404
* Body ref: #/components/schemas/bodycodespaces_create_with_pr_
METHODS codespaces_create_with_pr_for_
IMPORTING
owner TYPE string
repo TYPE string
pull_number TYPE i
body TYPE bodycodespaces_create_with_pr_
RETURNING
VALUE(return_data) TYPE codespace
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: 404
* application/json, #/components/schemas/basic-error
* 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.
* POST - "Generate release notes content for a release"
* Operation id: repos/generate-release-notes
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/release-notes-content
* Response: 404
* Body ref: #/components/schemas/bodyrepos_generate_release_not
METHODS repos_generate_release_notes
IMPORTING
owner TYPE string
repo TYPE string
body TYPE bodyrepos_generate_release_not
RETURNING
VALUE(return_data) TYPE release_notes_content
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
* Response: 404
* application/json, #/components/schemas/basic-error
* 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_01
* Response: 404
* Response: 503
METHODS secret_scanning_list_alerts_01
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_lis01
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 locations for a secret scanning alert"
* Operation id: secret-scanning/list-locations-for-alert
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: alert_number, required, path
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_secret_scanning_list_locations
* Response: 404
* Response: 503
METHODS secret_scanning_list_locations
IMPORTING
owner TYPE string
repo TYPE string
alert_number TYPE alert_number
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_secret_scanning_lis02
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.
* GET - "Get repository clones"
* Operation id: repos/get-clones
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per, optional, query
* Response: 200
* application/json, #/components/schemas/clone-traffic
* Response: 403
METHODS repos_get_clones
IMPORTING
owner TYPE string
repo TYPE string
per TYPE string DEFAULT 'day'
RETURNING
VALUE(return_data) TYPE clone_traffic
RAISING cx_static_check.
* GET - "Get top referral paths"
* Operation id: repos/get-top-paths
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/response_repos_get_top_paths
* Response: 403
METHODS repos_get_top_paths
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE response_repos_get_top_paths
RAISING cx_static_check.
* GET - "Get top referral sources"
* Operation id: repos/get-top-referrers
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 200
* application/json, #/components/schemas/response_repos_get_top_referrers
* Response: 403
METHODS repos_get_top_referrers
IMPORTING
owner TYPE string
repo TYPE string
RETURNING
VALUE(return_data) TYPE response_repos_get_top_referre
RAISING cx_static_check.
* GET - "Get page views"
* Operation id: repos/get-views
* Parameter: owner, required, path
* Parameter: repo, required, path
* Parameter: per, optional, query
* Response: 200
* application/json, #/components/schemas/view-traffic
* Response: 403
METHODS repos_get_views
IMPORTING
owner TYPE string
repo TYPE string
per TYPE string DEFAULT 'day'
RETURNING
VALUE(return_data) TYPE view_traffic
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 - "Check if vulnerability alerts are enabled for a repository"
* Operation id: repos/check-vulnerability-alerts
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
* Response: 404
METHODS repos_check_vulnerability_aler
IMPORTING
owner TYPE string
repo TYPE string
RAISING cx_static_check.
* PUT - "Enable vulnerability alerts"
* Operation id: repos/enable-vulnerability-alerts
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
METHODS repos_enable_vulnerability_ale
IMPORTING
owner TYPE string
repo TYPE string
RAISING cx_static_check.
* DELETE - "Disable vulnerability alerts"
* Operation id: repos/disable-vulnerability-alerts
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 204
METHODS repos_disable_vulnerability_al
IMPORTING
owner TYPE string
repo TYPE string
RAISING cx_static_check.
* GET - "Download a repository archive (zip)"
* Operation id: repos/download-zipball-archive
* Parameter: ref, required, path
* Parameter: owner, required, path
* Parameter: repo, required, path
* Response: 302
METHODS repos_download_zipball_archive
IMPORTING
ref TYPE string
owner TYPE string
repo TYPE string
RAISING cx_static_check.
* POST - "Create a repository using a template"
* Operation id: repos/create-using-template
* Parameter: template_owner, required, path
* Parameter: template_repo, required, path
* Response: 201
* application/json, #/components/schemas/repository
* Body ref: #/components/schemas/bodyrepos_create_using_templat
METHODS repos_create_using_template
IMPORTING
template_owner TYPE string
template_repo TYPE string
body TYPE bodyrepos_create_using_templat
RETURNING
VALUE(return_data) TYPE repository
RAISING cx_static_check.
* GET - "List public repositories"
* Operation id: repos/list-public
* Parameter: since, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_public
* Response: 304
* Response: 422
METHODS repos_list_public
IMPORTING
since TYPE i OPTIONAL
RETURNING
VALUE(return_data) TYPE response_repos_list_public
RAISING cx_static_check.
* GET - "List environment secrets"
* Operation id: actions/list-environment-secrets
* Parameter: repository_id, required, path
* Parameter: environment_name, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_actions_list_environment_secre
METHODS actions_list_environment_secre
IMPORTING
repository_id TYPE i
environment_name TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_actions_list_environm
RAISING cx_static_check.
* GET - "Get an environment public key"
* Operation id: actions/get-environment-public-key
* Parameter: repository_id, required, path
* Parameter: environment_name, required, path
* Response: 200
* application/json, #/components/schemas/actions-public-key
METHODS actions_get_environment_public
IMPORTING
repository_id TYPE i
environment_name TYPE string
RETURNING
VALUE(return_data) TYPE actions_public_key
RAISING cx_static_check.
* GET - "Get an environment secret"
* Operation id: actions/get-environment-secret
* Parameter: repository_id, required, path
* Parameter: environment_name, required, path
* Parameter: secret_name, required, path
* Response: 200
* application/json, #/components/schemas/actions-secret
METHODS actions_get_environment_secret
IMPORTING
repository_id TYPE i
environment_name TYPE string
secret_name TYPE string
RETURNING
VALUE(return_data) TYPE actions_secret
RAISING cx_static_check.
* PUT - "Create or update an environment secret"
* Operation id: actions/create-or-update-environment-secret
* Parameter: repository_id, required, path
* Parameter: environment_name, 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_e
METHODS actions_create_or_update_envir
IMPORTING
repository_id TYPE i
environment_name TYPE string
secret_name TYPE string
body TYPE bodyactions_create_or_update_e
RETURNING
VALUE(return_data) TYPE empty_object
RAISING cx_static_check.
* DELETE - "Delete an environment secret"
* Operation id: actions/delete-environment-secret
* Parameter: repository_id, required, path
* Parameter: environment_name, required, path
* Parameter: secret_name, required, path
* Response: 204
* Body ref: #/components/schemas/bodyactions_delete_environment
METHODS actions_delete_environment_sec
IMPORTING
repository_id TYPE i
environment_name TYPE string
secret_name TYPE string
body TYPE bodyactions_delete_environment
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 - "List SCIM provisioned identities for an enterprise"
* Operation id: enterprise-admin/list-provisioned-identities-enterprise
* Parameter: filter, optional, query
* Parameter: enterprise, required, path
* Parameter: startIndex, optional, query
* Parameter: count, optional, query
* Response: 200
* application/json, #/components/schemas/scim-user-list-enterprise
METHODS enterprise_admin_list_provis01
IMPORTING
filter TYPE string OPTIONAL
enterprise TYPE string
startindex TYPE i OPTIONAL
count TYPE i OPTIONAL
RETURNING
VALUE(return_data) TYPE scim_user_list_enterprise
RAISING cx_static_check.
* POST - "Provision and invite a SCIM enterprise user"
* Operation id: enterprise-admin/provision-and-invite-enterprise-user
* Parameter: enterprise, required, path
* Response: 201
* application/json, #/components/schemas/scim-enterprise-user
* Body ref: #/components/schemas/bodyenterprise_admin_provisi01
METHODS enterprise_admin_provision_a01
IMPORTING
enterprise TYPE string
body TYPE bodyenterprise_admin_provisi01
RETURNING
VALUE(return_data) TYPE scim_enterprise_user
RAISING cx_static_check.
* GET - "Get SCIM provisioning information for an enterprise user"
* Operation id: enterprise-admin/get-provisioning-information-for-enterprise-user
* Parameter: enterprise, required, path
* Parameter: scim_user_id, required, path
* Response: 200
* application/json, #/components/schemas/scim-enterprise-user
METHODS enterprise_admin_get_provisi01
IMPORTING
enterprise TYPE string
scim_user_id TYPE string
RETURNING
VALUE(return_data) TYPE scim_enterprise_user
RAISING cx_static_check.
* PUT - "Set SCIM information for a provisioned enterprise user"
* Operation id: enterprise-admin/set-information-for-provisioned-enterprise-user
* Parameter: enterprise, required, path
* Parameter: scim_user_id, required, path
* Response: 200
* application/json, #/components/schemas/scim-enterprise-user
* Body ref: #/components/schemas/bodyenterprise_admin_set_inf01
METHODS enterprise_admin_set_informa01
IMPORTING
enterprise TYPE string
scim_user_id TYPE string
body TYPE bodyenterprise_admin_set_inf01
RETURNING
VALUE(return_data) TYPE scim_enterprise_user
RAISING cx_static_check.
* PATCH - "Update an attribute for a SCIM enterprise user"
* Operation id: enterprise-admin/update-attribute-for-enterprise-user
* Parameter: enterprise, required, path
* Parameter: scim_user_id, required, path
* Response: 200
* application/json, #/components/schemas/scim-enterprise-user
* Body ref: #/components/schemas/bodyenterprise_admin_update_01
METHODS enterprise_admin_update_attr01
IMPORTING
enterprise TYPE string
scim_user_id TYPE string
body TYPE bodyenterprise_admin_update_01
RETURNING
VALUE(return_data) TYPE scim_enterprise_user
RAISING cx_static_check.
* DELETE - "Delete a SCIM user from an enterprise"
* Operation id: enterprise-admin/delete-user-from-enterprise
* Parameter: enterprise, required, path
* Parameter: scim_user_id, required, path
* Response: 204
* Body ref: #/components/schemas/bodyenterprise_admin_delete_us
METHODS enterprise_admin_delete_user_f
IMPORTING
enterprise TYPE string
scim_user_id TYPE string
body TYPE bodyenterprise_admin_delete_us
RAISING cx_static_check.
* GET - "List SCIM provisioned identities"
* Operation id: scim/list-provisioned-identities
* Parameter: startIndex, optional, query
* Parameter: count, optional, query
* Parameter: filter, optional, query
* Parameter: org, required, path
* Response: 200
* application/scim+json, #/components/schemas/scim-user-list
* Response: 304
* Response: 400
* Response: 403
* Response: 404
METHODS scim_list_provisioned_identiti
IMPORTING
startindex TYPE i OPTIONAL
count TYPE i OPTIONAL
filter TYPE string OPTIONAL
org TYPE string
RAISING cx_static_check.
* POST - "Provision and invite a SCIM user"
* Operation id: scim/provision-and-invite-user
* Parameter: org, required, path
* Response: 201
* application/scim+json, #/components/schemas/scim-user
* Response: 304
* Response: 400
* Response: 403
* Response: 404
* Response: 409
* Response: 500
* Body ref: #/components/schemas/bodyscim_provision_and_invite_
METHODS scim_provision_and_invite_user
IMPORTING
org TYPE string
body TYPE bodyscim_provision_and_invite_
RAISING cx_static_check.
* GET - "Get SCIM provisioning information for a user"
* Operation id: scim/get-provisioning-information-for-user
* Parameter: org, required, path
* Parameter: scim_user_id, required, path
* Response: 200
* application/scim+json, #/components/schemas/scim-user
* Response: 304
* Response: 403
* Response: 404
METHODS scim_get_provisioning_informat
IMPORTING
org TYPE string
scim_user_id TYPE string
RAISING cx_static_check.
* PUT - "Update a provisioned organization membership"
* Operation id: scim/set-information-for-provisioned-user
* Parameter: org, required, path
* Parameter: scim_user_id, required, path
* Response: 200
* application/scim+json, #/components/schemas/scim-user
* Response: 304
* Response: 403
* Response: 404
* Body ref: #/components/schemas/bodyscim_set_information_for_p
METHODS scim_set_information_for_provi
IMPORTING
org TYPE string
scim_user_id TYPE string
body TYPE bodyscim_set_information_for_p
RAISING cx_static_check.
* PATCH - "Update an attribute for a SCIM user"
* Operation id: scim/update-attribute-for-user
* Parameter: org, required, path
* Parameter: scim_user_id, required, path
* Response: 200
* application/scim+json, #/components/schemas/scim-user
* Response: 304
* Response: 400
* Response: 403
* Response: 404
* Response: 429
* application/json, #/components/schemas/basic-error
* Body ref: #/components/schemas/bodyscim_update_attribute_for_
METHODS scim_update_attribute_for_user
IMPORTING
org TYPE string
scim_user_id TYPE string
body TYPE bodyscim_update_attribute_for_
RAISING cx_static_check.
* DELETE - "Delete a SCIM user from an organization"
* Operation id: scim/delete-user-from-org
* Parameter: org, required, path
* Parameter: scim_user_id, required, path
* Response: 204
* Response: 304
* Response: 403
* Response: 404
* Body ref: #/components/schemas/bodyscim_delete_user_from_org
METHODS scim_delete_user_from_org
IMPORTING
org TYPE string
scim_user_id TYPE string
body TYPE bodyscim_delete_user_from_org
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 users blocked by the authenticated user"
* Operation id: users/list-blocked-by-authenticated-user
* Response: 200
* application/json, #/components/schemas/response_users_list_blocked_by_authenti
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 415
METHODS users_list_blocked_by_authenti
RETURNING
VALUE(return_data) TYPE response_users_list_blocked_by
RAISING cx_static_check.
* GET - "Check if a user is blocked by the authenticated user"
* Operation id: users/check-blocked
* Parameter: username, required, path
* Response: 204
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* application/json, #/components/schemas/basic-error
METHODS users_check_blocked
IMPORTING
username TYPE string
RAISING cx_static_check.
* PUT - "Block a user"
* Operation id: users/block
* Parameter: username, required, path
* Response: 204
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 422
METHODS users_block
IMPORTING
username TYPE string
RAISING cx_static_check.
* DELETE - "Unblock a user"
* Operation id: users/unblock
* Parameter: username, required, path
* Response: 204
* Response: 304
* Response: 401
* Response: 403
* Response: 404
METHODS users_unblock
IMPORTING
username TYPE string
RAISING cx_static_check.
* GET - "List codespaces for the authenticated user"
* Operation id: codespaces/list-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Parameter: repository_id, optional, query
* Response: 200
* application/json, #/components/schemas/response_codespaces_list_for_authentica
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_list_for_authentica
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
repository_id TYPE i OPTIONAL
RETURNING
VALUE(return_data) TYPE response_codespaces_list_for_a
RAISING cx_static_check.
* POST - "Create a codespace for the authenticated user"
* Operation id: codespaces/create-for-authenticated-user
* Response: 201
* application/json, #/components/schemas/codespace
* Response: 202
* application/json, #/components/schemas/codespace
* Response: 401
* Response: 403
* Response: 404
* Body schema: string
METHODS codespaces_create_for_authenti
IMPORTING
body TYPE string
RETURNING
VALUE(return_data) TYPE codespace
RAISING cx_static_check.
* GET - "List secrets for the authenticated user"
* Operation id: codespaces/list-secrets-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_codespaces_list_secrets_for_au
METHODS codespaces_list_secrets_for_au
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_codespaces_list_secre
RAISING cx_static_check.
* GET - "Get public key for the authenticated user"
* Operation id: codespaces/get-public-key-for-authenticated-user
* Response: 200
* application/json, #/components/schemas/codespaces-user-public-key
METHODS codespaces_get_public_key_for_
RETURNING
VALUE(return_data) TYPE codespaces_user_public_key
RAISING cx_static_check.
* GET - "Get a secret for the authenticated user"
* Operation id: codespaces/get-secret-for-authenticated-user
* Parameter: secret_name, required, path
* Response: 200
* application/json, #/components/schemas/codespaces-secret
METHODS codespaces_get_secret_for_auth
IMPORTING
secret_name TYPE string
RETURNING
VALUE(return_data) TYPE codespaces_secret
RAISING cx_static_check.
* PUT - "Create or update a secret for the authenticated user"
* Operation id: codespaces/create-or-update-secret-for-authenticated-user
* Parameter: secret_name, required, path
* Response: 201
* application/json, #/components/schemas/response_codespaces_create_or_update_se
* Response: 204
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodycodespaces_create_or_updat
METHODS codespaces_create_or_update_se
IMPORTING
secret_name TYPE string
body TYPE bodycodespaces_create_or_updat
RETURNING
VALUE(return_data) TYPE response_codespaces_create_or_
RAISING cx_static_check.
* DELETE - "Delete a secret for the authenticated user"
* Operation id: codespaces/delete-secret-for-authenticated-user
* Parameter: secret_name, required, path
* Response: 204
* Body ref: #/components/schemas/bodycodespaces_delete_secret_f
METHODS codespaces_delete_secret_for_a
IMPORTING
secret_name TYPE string
body TYPE bodycodespaces_delete_secret_f
RAISING cx_static_check.
* GET - "List selected repositories for a user secret"
* Operation id: codespaces/list-repositories-for-secret-for-authenticated-user
* Parameter: secret_name, required, path
* Response: 200
* application/json, #/components/schemas/response_codespaces_list_repositories_f
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_list_repositories_f
IMPORTING
secret_name TYPE string
RETURNING
VALUE(return_data) TYPE response_codespaces_list_repos
RAISING cx_static_check.
* PUT - "Set selected repositories for a user secret"
* Operation id: codespaces/set-repositories-for-secret-for-authenticated-user
* Parameter: secret_name, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
* Response: 500
* Body ref: #/components/schemas/bodycodespaces_set_repositorie
METHODS codespaces_set_repositories_fo
IMPORTING
secret_name TYPE string
body TYPE bodycodespaces_set_repositorie
RAISING cx_static_check.
* PUT - "Add a selected repository to a user secret"
* Operation id: codespaces/add-repository-for-secret-for-authenticated-user
* Parameter: repository_id, required, path
* Parameter: secret_name, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_add_repository_for_
IMPORTING
repository_id TYPE i
secret_name TYPE string
RAISING cx_static_check.
* DELETE - "Remove a selected repository from a user secret"
* Operation id: codespaces/remove-repository-for-secret-for-authenticated-user
* Parameter: repository_id, required, path
* Parameter: secret_name, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_remove_repository_f
IMPORTING
repository_id TYPE i
secret_name TYPE string
RAISING cx_static_check.
* GET - "Get a codespace for the authenticated user"
* Operation id: codespaces/get-for-authenticated-user
* Parameter: codespace_name, required, path
* Response: 200
* application/json, #/components/schemas/codespace
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_get_for_authenticat
IMPORTING
codespace_name TYPE string
RETURNING
VALUE(return_data) TYPE codespace
RAISING cx_static_check.
* PATCH - "Update a codespace for the authenticated user"
* Operation id: codespaces/update-for-authenticated-user
* Parameter: codespace_name, required, path
* Response: 200
* application/json, #/components/schemas/codespace
* Response: 401
* Response: 403
* Response: 404
* Body ref: #/components/schemas/bodycodespaces_update_for_auth
METHODS codespaces_update_for_authenti
IMPORTING
codespace_name TYPE string
body TYPE bodycodespaces_update_for_auth
RETURNING
VALUE(return_data) TYPE codespace
RAISING cx_static_check.
* DELETE - "Delete a codespace for the authenticated user"
* Operation id: codespaces/delete-for-authenticated-user
* Parameter: codespace_name, required, path
* Response: 202
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 500
* Body ref: #/components/schemas/bodycodespaces_delete_for_auth
METHODS codespaces_delete_for_authenti
IMPORTING
codespace_name TYPE string
body TYPE bodycodespaces_delete_for_auth
RAISING cx_static_check.
* GET - "List machine types for a codespace"
* Operation id: codespaces/codespace-machines-for-authenticated-user
* Parameter: codespace_name, required, path
* Response: 200
* application/json, #/components/schemas/response_codespaces_codespace_machines_
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_codespace_machines_
IMPORTING
codespace_name TYPE string
RETURNING
VALUE(return_data) TYPE response_codespaces_codespace_
RAISING cx_static_check.
* POST - "Start a codespace for the authenticated user"
* Operation id: codespaces/start-for-authenticated-user
* Parameter: codespace_name, required, path
* Response: 200
* application/json, #/components/schemas/codespace
* Response: 304
* Response: 400
* Response: 401
* Response: 402
* application/json, #/components/schemas/basic-error
* Response: 403
* Response: 404
* Response: 409
* Response: 500
METHODS codespaces_start_for_authentic
IMPORTING
codespace_name TYPE string
RETURNING
VALUE(return_data) TYPE codespace
RAISING cx_static_check.
* POST - "Stop a codespace for the authenticated user"
* Operation id: codespaces/stop-for-authenticated-user
* Parameter: codespace_name, required, path
* Response: 200
* application/json, #/components/schemas/codespace
* Response: 401
* Response: 403
* Response: 404
* Response: 500
METHODS codespaces_stop_for_authentica
IMPORTING
codespace_name TYPE string
RETURNING
VALUE(return_data) TYPE codespace
RAISING cx_static_check.
* PATCH - "Set primary email visibility for the authenticated user"
* Operation id: users/set-primary-email-visibility-for-authenticated-user
* Response: 200
* application/json, #/components/schemas/response_users_set_primary_email_visibi
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyusers_set_primary_email_vi
METHODS users_set_primary_email_visibi
IMPORTING
body TYPE bodyusers_set_primary_email_vi
RETURNING
VALUE(return_data) TYPE response_users_set_primary_ema
RAISING cx_static_check.
* GET - "List email addresses for the authenticated user"
* Operation id: users/list-emails-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_users_list_emails_for_authenti
* Response: 304
* Response: 401
* Response: 403
* Response: 404
METHODS users_list_emails_for_authenti
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_users_list_emails_for
RAISING cx_static_check.
* POST - "Add an email address for the authenticated user"
* Operation id: users/add-email-for-authenticated-user
* Response: 201
* application/json, #/components/schemas/response_users_add_email_for_authentica
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 422
* Body schema: string
METHODS users_add_email_for_authentica
IMPORTING
body TYPE string
RETURNING
VALUE(return_data) TYPE response_users_add_email_for_a
RAISING cx_static_check.
* DELETE - "Delete an email address for the authenticated user"
* Operation id: users/delete-email-for-authenticated-user
* Response: 204
* Response: 304
* Response: 401
* Response: 403
* Response: 404
* Response: 422
* Body schema: string
METHODS users_delete_email_for_authent
IMPORTING
body TYPE string
RAISING cx_static_check.
* GET - "List followers of the authenticated user"
* Operation id: users/list-followers-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_users_list_followers_for_authe
* Response: 304
* Response: 401
* Response: 403
METHODS users_list_followers_for_authe
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_users_list_followers_
RAISING cx_static_check.
* GET - "List the people the authenticated user follows"
* Operation id: users/list-followed-by-authenticated-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 - "Get interaction restrictions for your public repositories"
* Operation id: interactions/get-restrictions-for-authenticated-user
* Response: 200
* application/json, string
* Response: 204
METHODS interactions_get_restriction02
RAISING cx_static_check.
* PUT - "Set interaction restrictions for your public repositories"
* Operation id: interactions/set-restrictions-for-authenticated-user
* Response: 200
* application/json, #/components/schemas/interaction-limit-response
* Response: 422
* Body ref: #/components/schemas/interaction-limit
METHODS interactions_set_restriction02
IMPORTING
body TYPE interaction_limit
RETURNING
VALUE(return_data) TYPE interaction_limit_response
RAISING cx_static_check.
* DELETE - "Remove interaction restrictions from your public repositories"
* Operation id: interactions/remove-restrictions-for-authenticated-user
* Response: 204
METHODS interactions_remove_restrict02
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 subscriptions for the authenticated user"
* Operation id: apps/list-subscriptions-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_apps_list_subscriptions_for_au
* Response: 304
* Response: 401
* Response: 404
METHODS apps_list_subscriptions_for_au
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_apps_list_subscriptio
RAISING cx_static_check.
* GET - "List subscriptions for the authenticated user (stubbed)"
* Operation id: apps/list-subscriptions-for-authenticated-user-stubbed
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_apps_list_subscriptions_for_01
* Response: 304
* Response: 401
METHODS apps_list_subscriptions_for_01
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_apps_list_subscript01
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 user migrations"
* Operation id: migrations/list-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_migrations_list_for_authentica
* Response: 304
* Response: 401
* Response: 403
METHODS migrations_list_for_authentica
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_migrations_list_for_a
RAISING cx_static_check.
* POST - "Start a user migration"
* Operation id: migrations/start-for-authenticated-user
* Response: 201
* application/json, #/components/schemas/migration
* Response: 304
* Response: 401
* Response: 403
* Response: 422
* Body ref: #/components/schemas/bodymigrations_start_for_authe
METHODS migrations_start_for_authentic
IMPORTING
body TYPE bodymigrations_start_for_authe
RETURNING
VALUE(return_data) TYPE migration
RAISING cx_static_check.
* GET - "Get a user migration status"
* Operation id: migrations/get-status-for-authenticated-user
* Parameter: exclude, optional, query
* Parameter: migration_id, required, path
* Response: 200
* application/json, #/components/schemas/migration
* Response: 304
* Response: 401
* Response: 403
* Response: 404
METHODS migrations_get_status_for_auth
IMPORTING
exclude TYPE string OPTIONAL
migration_id TYPE i
RETURNING
VALUE(return_data) TYPE migration
RAISING cx_static_check.
* GET - "Download a user migration archive"
* Operation id: migrations/get-archive-for-authenticated-user
* Parameter: migration_id, required, path
* Response: 302
* Response: 304
* Response: 401
* Response: 403
METHODS migrations_get_archive_for_aut
IMPORTING
migration_id TYPE i
RAISING cx_static_check.
* DELETE - "Delete a user migration archive"
* Operation id: migrations/delete-archive-for-authenticated-user
* Parameter: migration_id, required, path
* Response: 204
* Response: 304
* Response: 401
* Response: 403
* Response: 404
METHODS migrations_delete_archive_fo01
IMPORTING
migration_id TYPE i
RAISING cx_static_check.
* DELETE - "Unlock a user repository"
* Operation id: migrations/unlock-repo-for-authenticated-user
* Parameter: migration_id, required, path
* Parameter: repo_name, required, path
* Response: 204
* Response: 304
* Response: 401
* Response: 403
* Response: 404
METHODS migrations_unlock_repo_for_aut
IMPORTING
migration_id TYPE i
repo_name TYPE string
RAISING cx_static_check.
* GET - "List repositories for a user migration"
* Operation id: migrations/list-repos-for-authenticated-user
* Parameter: migration_id, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_migrations_list_repos_for_auth
* Response: 404
METHODS migrations_list_repos_for_auth
IMPORTING
migration_id TYPE i
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_migrations_list_rep01
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.
* GET - "List packages for the authenticated user's namespace"
* Operation id: packages/list-packages-for-authenticated-user
* Parameter: package_type, required, query
* Parameter: visibility, optional, query
* Response: 200
* application/json, #/components/schemas/response_packages_list_packages_for_aut
METHODS packages_list_packages_for_aut
IMPORTING
package_type TYPE string
visibility TYPE string OPTIONAL
RETURNING
VALUE(return_data) TYPE response_packages_list_packa01
RAISING cx_static_check.
* GET - "Get a package for the authenticated user"
* Operation id: packages/get-package-for-authenticated-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Response: 200
* application/json, #/components/schemas/package
METHODS packages_get_package_for_authe
IMPORTING
package_type TYPE string
package_name TYPE string
RETURNING
VALUE(return_data) TYPE package
RAISING cx_static_check.
* DELETE - "Delete a package for the authenticated user"
* Operation id: packages/delete-package-for-authenticated-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_delete_package_for_au
IMPORTING
package_type TYPE string
package_name TYPE string
RAISING cx_static_check.
* POST - "Restore a package for the authenticated user"
* Operation id: packages/restore-package-for-authenticated-user
* Parameter: token, optional, query
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_restore_package_for_a
IMPORTING
token TYPE string OPTIONAL
package_type TYPE string
package_name TYPE string
RAISING cx_static_check.
* GET - "Get all package versions for a package owned by the authenticated user"
* Operation id: packages/get-all-package-versions-for-package-owned-by-authenticated-user
* Parameter: state, optional, query
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: page, optional, query
* Parameter: per_page, optional, query
* Response: 200
* application/json, #/components/schemas/response_packages_get_all_package_ver01
* Response: 401
* Response: 403
* Response: 404
METHODS packages_get_all_package_ver01
IMPORTING
state TYPE string DEFAULT 'active'
package_type TYPE string
package_name TYPE string
page TYPE i DEFAULT 1
per_page TYPE i DEFAULT 30
RETURNING
VALUE(return_data) TYPE response_packages_get_all_pa01
RAISING cx_static_check.
* GET - "Get a package version for the authenticated user"
* Operation id: packages/get-package-version-for-authenticated-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: package_version_id, required, path
* Response: 200
* application/json, #/components/schemas/package-version
METHODS packages_get_package_version01
IMPORTING
package_type TYPE string
package_name TYPE string
package_version_id TYPE i
RETURNING
VALUE(return_data) TYPE package_version
RAISING cx_static_check.
* DELETE - "Delete a package version for the authenticated user"
* Operation id: packages/delete-package-version-for-authenticated-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: package_version_id, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_delete_package_vers01
IMPORTING
package_type TYPE string
package_name TYPE string
package_version_id TYPE i
RAISING cx_static_check.
* POST - "Restore a package version for the authenticated user"
* Operation id: packages/restore-package-version-for-authenticated-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: package_version_id, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_restore_package_ver01
IMPORTING
package_type TYPE string
package_name TYPE string
package_version_id TYPE i
RAISING cx_static_check.
* POST - "Create a user project"
* Operation id: projects/create-for-authenticated-user
* Response: 201
* application/json, #/components/schemas/project
* Response: 304
* Response: 401
* Response: 403
* Response: 415
* Response: 422
* Body ref: #/components/schemas/bodyprojects_create_for_authen
METHODS projects_create_for_authentica
IMPORTING
body TYPE bodyprojects_create_for_authen
RETURNING
VALUE(return_data) TYPE project
RAISING cx_static_check.
* GET - "List public email addresses for the authenticated user"
* Operation id: users/list-public-emails-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_users_list_public_emails_for_a
* Response: 304
* Response: 401
* Response: 403
* Response: 404
METHODS users_list_public_emails_for_a
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_users_list_public_ema
RAISING cx_static_check.
* GET - "List repositories for the authenticated user"
* Operation id: repos/list-for-authenticated-user
* Parameter: visibility, optional, query
* Parameter: affiliation, optional, query
* Parameter: type, optional, query
* Parameter: sort, optional, query
* Parameter: direction, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Parameter: since, optional, query
* Parameter: before, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_for_authenticated_u
* Response: 304
* Response: 401
* Response: 403
* Response: 422
METHODS repos_list_for_authenticated_u
IMPORTING
visibility TYPE string DEFAULT 'all'
affiliation TYPE string DEFAULT 'owner,collaborator,organization_member'
type TYPE string DEFAULT 'all'
sort TYPE string DEFAULT 'full_name'
direction TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
since TYPE string OPTIONAL
before TYPE string OPTIONAL
RETURNING
VALUE(return_data) TYPE response_repos_list_for_authen
RAISING cx_static_check.
* POST - "Create a repository for the authenticated user"
* Operation id: repos/create-for-authenticated-user
* Response: 201
* application/json, #/components/schemas/repository
* Response: 304
* Response: 400
* Response: 401
* Response: 403
* Response: 404
* Response: 422
* Body ref: #/components/schemas/bodyrepos_create_for_authentic
METHODS repos_create_for_authenticated
IMPORTING
body TYPE bodyrepos_create_for_authentic
RETURNING
VALUE(return_data) TYPE repository
RAISING cx_static_check.
* GET - "List repository invitations for the authenticated user"
* Operation id: repos/list-invitations-for-authenticated-user
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_invitations_for_aut
* Response: 304
* Response: 401
* Response: 403
* Response: 404
METHODS repos_list_invitations_for_aut
IMPORTING
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_repos_list_invitati01
RAISING cx_static_check.
* PATCH - "Accept a repository invitation"
* Operation id: repos/accept-invitation-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 public events for a user"
* Operation id: activity/list-public-events-for-user
* Parameter: username, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_activity_list_public_events_01
METHODS activity_list_public_events_01
IMPORTING
username TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_activity_list_publi03
RAISING cx_static_check.
* GET - "List followers of a user"
* Operation id: users/list-followers-for-user
* Parameter: username, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_users_list_followers_for_user
METHODS users_list_followers_for_user
IMPORTING
username TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_users_list_follower01
RAISING cx_static_check.
* GET - "List the people a user follows"
* Operation id: users/list-following-for-user
* Parameter: username, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_users_list_following_for_user
METHODS users_list_following_for_user
IMPORTING
username TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_users_list_following_
RAISING cx_static_check.
* GET - "Check if a user follows another user"
* Operation id: users/check-following-for-user
* Parameter: target_user, required, path
* Parameter: username, required, path
* Response: 204
* Response: 404
METHODS users_check_following_for_user
IMPORTING
target_user TYPE string
username TYPE string
RAISING cx_static_check.
* GET - "List gists for a user"
* Operation id: gists/list-for-user
* Parameter: username, required, path
* Parameter: since, optional, query
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_gists_list_for_user
* Response: 422
METHODS gists_list_for_user
IMPORTING
username TYPE string
since TYPE string OPTIONAL
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_gists_list_for_user
RAISING cx_static_check.
* GET - "List GPG keys for a user"
* Operation id: users/list-gpg-keys-for-user
* Parameter: username, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_users_list_gpg_keys_for_user
METHODS users_list_gpg_keys_for_user
IMPORTING
username TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_users_list_gpg_keys01
RAISING cx_static_check.
* GET - "Get contextual information for a user"
* Operation id: users/get-context-for-user
* Parameter: subject_type, optional, query
* Parameter: subject_id, optional, query
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/hovercard
* Response: 404
* Response: 422
METHODS users_get_context_for_user
IMPORTING
subject_type TYPE string OPTIONAL
subject_id TYPE string OPTIONAL
username TYPE string
RETURNING
VALUE(return_data) TYPE hovercard
RAISING cx_static_check.
* GET - "Get a user installation for the authenticated app"
* Operation id: apps/get-user-installation
* Parameter: 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 packages for a user"
* Operation id: packages/list-packages-for-user
* Parameter: package_type, required, query
* Parameter: visibility, optional, query
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/response_packages_list_packages_for_use
* Response: 401
* Response: 403
METHODS packages_list_packages_for_use
IMPORTING
package_type TYPE string
visibility TYPE string OPTIONAL
username TYPE string
RETURNING
VALUE(return_data) TYPE response_packages_list_packa02
RAISING cx_static_check.
* GET - "Get a package for a user"
* Operation id: packages/get-package-for-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/package
METHODS packages_get_package_for_user
IMPORTING
package_type TYPE string
package_name TYPE string
username TYPE string
RETURNING
VALUE(return_data) TYPE package
RAISING cx_static_check.
* DELETE - "Delete a package for a user"
* Operation id: packages/delete-package-for-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: username, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_delete_package_for_us
IMPORTING
package_type TYPE string
package_name TYPE string
username TYPE string
RAISING cx_static_check.
* POST - "Restore a package for a user"
* Operation id: packages/restore-package-for-user
* Parameter: token, optional, query
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: username, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_restore_package_for_u
IMPORTING
token TYPE string OPTIONAL
package_type TYPE string
package_name TYPE string
username TYPE string
RAISING cx_static_check.
* GET - "Get all package versions for a package owned by a user"
* Operation id: packages/get-all-package-versions-for-package-owned-by-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/response_packages_get_all_package_ver02
* Response: 401
* Response: 403
* Response: 404
METHODS packages_get_all_package_ver02
IMPORTING
package_type TYPE string
package_name TYPE string
username TYPE string
RETURNING
VALUE(return_data) TYPE response_packages_get_all_pa02
RAISING cx_static_check.
* GET - "Get a package version for a user"
* Operation id: packages/get-package-version-for-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: package_version_id, required, path
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/package-version
METHODS packages_get_package_version02
IMPORTING
package_type TYPE string
package_name TYPE string
package_version_id TYPE i
username TYPE string
RETURNING
VALUE(return_data) TYPE package_version
RAISING cx_static_check.
* DELETE - "Delete package version for a user"
* Operation id: packages/delete-package-version-for-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: username, required, path
* Parameter: package_version_id, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_delete_package_vers02
IMPORTING
package_type TYPE string
package_name TYPE string
username TYPE string
package_version_id TYPE i
RAISING cx_static_check.
* POST - "Restore package version for a user"
* Operation id: packages/restore-package-version-for-user
* Parameter: package_type, required, path
* Parameter: package_name, required, path
* Parameter: username, required, path
* Parameter: package_version_id, required, path
* Response: 204
* Response: 401
* Response: 403
* Response: 404
METHODS packages_restore_package_ver02
IMPORTING
package_type TYPE string
package_name TYPE string
username TYPE string
package_version_id TYPE i
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 events received by the authenticated user"
* Operation id: activity/list-received-events-for-user
* Parameter: username, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_activity_list_received_events_
METHODS activity_list_received_events_
IMPORTING
username TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_activity_list_receive
RAISING cx_static_check.
* GET - "List public events received by a user"
* Operation id: activity/list-received-public-events-for-user
* Parameter: username, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_activity_list_received_public_
METHODS activity_list_received_public_
IMPORTING
username TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_activity_list_recei01
RAISING cx_static_check.
* GET - "List repositories for a user"
* Operation id: repos/list-for-user
* Parameter: type, optional, query
* Parameter: sort, optional, query
* Parameter: direction, optional, query
* Parameter: username, required, path
* Parameter: per_page, optional, query
* Parameter: page, optional, query
* Response: 200
* application/json, #/components/schemas/response_repos_list_for_user
METHODS repos_list_for_user
IMPORTING
type TYPE string DEFAULT 'owner'
sort TYPE string DEFAULT 'full_name'
direction TYPE string OPTIONAL
username TYPE string
per_page TYPE i DEFAULT 30
page TYPE i DEFAULT 1
RETURNING
VALUE(return_data) TYPE response_repos_list_for_user
RAISING cx_static_check.
* GET - "Get GitHub Actions billing for a user"
* Operation id: billing/get-github-actions-billing-user
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/actions-billing-usage
METHODS billing_get_github_actions_b02
IMPORTING
username TYPE string
RETURNING
VALUE(return_data) TYPE actions_billing_usage
RAISING cx_static_check.
* GET - "Get GitHub Packages billing for a user"
* Operation id: billing/get-github-packages-billing-user
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/packages-billing-usage
METHODS billing_get_github_packages_02
IMPORTING
username TYPE string
RETURNING
VALUE(return_data) TYPE packages_billing_usage
RAISING cx_static_check.
* GET - "Get shared storage billing for a user"
* Operation id: billing/get-shared-storage-billing-user
* Parameter: username, required, path
* Response: 200
* application/json, #/components/schemas/combined-billing-usage
METHODS billing_get_shared_storage_b02
IMPORTING
username TYPE string
RETURNING
VALUE(return_data) TYPE combined_billing_usage
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.
* 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,
785,
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,
9242,
540,
12,
36439,
12,
7220,
11,
2134,
198,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
9242,
540,
62,
36439,
62,
7220,
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,
3053,
41876,
4731,
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,
30919,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9067,
9459,
62,
312,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19016,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27711,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10569,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1708,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
1023,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31636,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
35675,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5745,
62,
6371,
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,
2722,
62,
31534,
62,
6371,
41876,
4731,
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,
2524,
62,
28482,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31636,
62,
265,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
9242,
540,
62,
36439,
62,
7220,
13,
198,
198,
9,
35100,
32815,
25,
11812,
11,
2134,
198,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
850,
18908,
1358,
62,
525,
8481,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2428,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8794,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
20150,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10154,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
40854,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
850,
18908,
1358,
62,
525,
8481,
13,
198,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
11812,
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,
31065,
41876,
4731,
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,
4870,
41876,
9242,
540,
62,
36439,
62,
7220,
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,
6764,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7097,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27711,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2727,
62,
265,
41876,
4731,
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,
21627,
41876,
850,
18908,
1358,
62,
525,
8481,
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,
26162,
62,
9127,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5456,
62,
312,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5456,
62,
21078,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3992,
25480,
62,
21078,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
368,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
11812,
13,
198,
198,
9,
35100,
32815,
25,
4096,
12,
18224,
11,
2134,
198,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
4096,
62,
18224,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10314,
62,
6371,
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,
3722,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
4096,
62,
18224,
13,
198,
198,
9,
35100,
32815,
25,
21201,
12,
18224,
12,
36439,
11,
2134,
198,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
21201,
62,
18224,
62,
36439,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
41876,
4731,
11,
198,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_capi_facade_hcm DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor
IMPORTING
!io_context TYPE REF TO zcl_capi_facade_hcm_abstr_cntx
!it_pernrs TYPE zif_capi_facade_hcm_context=>ty_t_pernrs
!iv_task_class_name TYPE string
!iv_package_size TYPE i DEFAULT 1000 .
METHODS execute
IMPORTING
!iv_server_group TYPE rfcgr DEFAULT 'parallel_generators'
EXPORTING
!et_result TYPE ANY TABLE
RAISING
zcx_capi_tasks_invocation .
PROTECTED SECTION.
PRIVATE SECTION.
DATA mo_context TYPE REF TO zcl_capi_facade_hcm_abstr_cntx .
DATA mt_pernrs TYPE zif_capi_facade_hcm_context=>ty_t_pernrs .
DATA mv_task_class_name TYPE string .
DATA mv_package_size TYPE i .
METHODS error_process
IMPORTING
!io_message_handler TYPE REF TO zif_capi_message_handler .
METHODS results_to_table
IMPORTING
!io_results TYPE REF TO zif_capi_collection
EXPORTING
!et_result TYPE ANY TABLE .
METHODS long_class_name
RETURNING
VALUE(rv_long_class_name) TYPE string .
ENDCLASS.
CLASS ZCL_CAPI_FACADE_HCM IMPLEMENTATION.
METHOD constructor.
mo_context = io_context.
mt_pernrs = it_pernrs.
mv_task_class_name = iv_task_class_name.
mv_package_size = iv_package_size.
ENDMETHOD.
METHOD error_process.
DATA: lt_message_list TYPE zif_capi_message_handler=>ty_message_list_tab,
ls_error_detail_header LIKE LINE OF lt_message_list.
FIELD-SYMBOLS: <ls_message_list> LIKE LINE OF lt_message_list.
FORMAT HOTSPOT ON.
FORMAT COLOR 6.
WRITE: / 'Errors occurred when tasks were executed in parallel. The data is inconsistent.'(001).
WRITE: / 'Please restart the report.'(002).
WRITE: / 'If the error persists after restarting, contact support.'(003).
FORMAT HOTSPOT OFF.
FORMAT RESET INTENSIFIED ON.
SKIP.
WRITE: / 'Details of errors:'(004).
ls_error_detail_header-task_name = 'Task name'(005).
ls_error_detail_header-rfcmsg = 'Error description'(006).
WRITE: / ls_error_detail_header-task_name, ls_error_detail_header-rfcmsg.
lt_message_list = io_message_handler->get_message_list( ).
LOOP AT lt_message_list ASSIGNING <ls_message_list>.
WRITE: / <ls_message_list>-task_name, <ls_message_list>-rfcmsg.
ENDLOOP.
ENDMETHOD.
METHOD execute.
DATA: lv_pos_till TYPE i,
lv_number_of_pernrs TYPE i,
lt_pernrs LIKE mt_pernrs,
lt_pernrs_part LIKE mt_pernrs,
lv_long_class_name TYPE string.
DATA: lo_tasks TYPE REF TO zcl_capi_collection,
lo_task TYPE REF TO zcl_capi_facade_hcm_abstr_task,
lo_executor TYPE REF TO zif_capi_executor_service,
lo_message_handler TYPE REF TO zcl_capi_message_handler,
lo_results TYPE REF TO zif_capi_collection.
DATA: lv_max_no_of_tasks TYPE i.
* The execute( ) method is an implementation of the Facade structural pattern.
* It is designed to simplify the parallelization process and use the Abap Concurrency API.
CLEAR et_result.
lv_long_class_name = long_class_name( ).
lt_pernrs = mt_pernrs.
CREATE OBJECT lo_tasks.
lv_number_of_pernrs = lines( lt_pernrs ).
* Divide personnel numbers into parts for each task
DO.
* Out of personnel numbers?
IF lv_number_of_pernrs IS INITIAL.
EXIT. " Yes
ENDIF.
IF lv_number_of_pernrs < mv_package_size.
lv_pos_till = lv_number_of_pernrs.
ELSE.
lv_pos_till = mv_package_size.
ENDIF.
APPEND LINES OF lt_pernrs FROM 1 TO lv_pos_till TO lt_pernrs_part.
DELETE lt_pernrs FROM 1 TO lv_pos_till.
TRY.
mo_context->zif_capi_facade_hcm_context~set_pernrs( lt_pernrs_part ).
CREATE OBJECT lo_task TYPE (lv_long_class_name)
EXPORTING
io_context = mo_context.
lo_tasks->zif_capi_collection~add( lo_task ).
CATCH cx_root.
MESSAGE 'The task object could not be created'(000) TYPE 'E'.
ENDTRY.
lv_number_of_pernrs = lines( lt_pernrs ).
CLEAR: lt_pernrs_part.
ENDDO.
CREATE OBJECT lo_message_handler.
lv_max_no_of_tasks = zcl_capi_thread_pool_executor=>max_no_of_tasks( iv_server_group ).
lo_executor = zcl_capi_executors=>new_fixed_thread_pool( iv_server_group = iv_server_group
iv_n_threads = lv_max_no_of_tasks
iv_no_resubmission_on_error = abap_false
io_capi_message_handler = lo_message_handler ).
* Let's start the tasks for execution.
lo_results = lo_executor->invoke_all( lo_tasks ).
IF lo_message_handler->zif_capi_message_handler~has_messages( ) = abap_true.
error_process( lo_message_handler ).
ELSE.
results_to_table( EXPORTING io_results = lo_results
IMPORTING et_result = et_result ).
ENDIF.
ENDMETHOD.
METHOD long_class_name.
DATA: lo_class TYPE REF TO cl_oo_class,
lv_class_name TYPE seoclsname.
* This is a global class?
TRY.
lv_class_name = mv_task_class_name.
lo_class ?= cl_oo_class=>get_instance( lv_class_name ).
* Yes
rv_long_class_name = mv_task_class_name.
CATCH cx_root.
* Nope
CONCATENATE '\' 'PROGRAM=' sy-cprog '\CLASS=' mv_task_class_name INTO rv_long_class_name.
ENDTRY.
ENDMETHOD.
METHOD results_to_table.
DATA: lo_data TYPE REF TO data,
lo_results_iterator TYPE REF TO zif_capi_iterator,
lo_result TYPE REF TO zif_capi_facade_hcm_result.
FIELD-SYMBOLS: <lt_any> TYPE ANY TABLE.
CLEAR et_result.
lo_results_iterator = io_results->get_iterator( ).
CREATE DATA lo_data LIKE et_result.
ASSIGN lo_data->* TO <lt_any>.
IF <lt_any> IS ASSIGNED.
WHILE lo_results_iterator->has_next( ) = abap_true.
lo_result ?= lo_results_iterator->next( ).
CLEAR <lt_any>.
lo_result->get( IMPORTING et_result = <lt_any> ).
INSERT LINES OF <lt_any> INTO TABLE et_result.
ENDWHILE.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
11128,
72,
62,
38942,
671,
62,
71,
11215,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
22866,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
11128,
72,
62,
38942,
671,
62,
71,
11215,
62,
397,
2536,
62,
66,
429,
87,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
525,
77,
3808,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
11128,
72,
62,
38942,
671,
62,
71,
11215,
62,
22866,
14804,
774,
62,
83,
62,
525,
77,
3808,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
35943,
62,
4871,
62,
3672,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
62,
7857,
220,
220,
220,
41876,
1312,
5550,
38865,
8576,
764,
198,
220,
220,
220,
337,
36252,
50,
12260,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
15388,
62,
8094,
41876,
374,
16072,
2164,
5550,
38865,
705,
1845,
29363,
62,
8612,
2024,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
316,
62,
20274,
220,
220,
220,
220,
220,
220,
41876,
15529,
43679,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
11128,
72,
62,
83,
6791,
62,
16340,
5040,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
6941,
62,
22866,
41876,
4526,
37,
5390,
1976,
565,
62,
11128,
72,
62,
38942,
671,
62,
71,
11215,
62,
397,
2536,
62,
66,
429,
87,
764,
198,
220,
220,
220,
42865,
45079,
62,
525,
77,
3808,
41876,
1976,
361,
62,
11128,
72,
62,
38942,
671,
62,
71,
11215,
62,
22866,
14804,
774,
62,
83,
62,
525,
77,
3808,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
35943,
62,
4871,
62,
3672,
41876,
4731,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
26495,
62,
7857,
41876,
1312,
764,
628,
220,
220,
220,
337,
36252,
50,
4049,
62,
14681,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
20500,
62,
30281,
41876,
4526,
37,
5390,
1976,
361,
62,
11128,
72,
62,
20500,
62,
30281,
764,
198,
220,
220,
220,
337,
36252,
50,
2482,
62,
1462,
62,
11487,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
43420,
41876,
4526,
37,
5390,
1976,
361,
62,
11128,
72,
62,
43681,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
316,
62,
20274,
220,
41876,
15529,
43679,
764,
198,
220,
220,
220,
337,
36252,
50,
890,
62,
4871,
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,
6511,
62,
4871,
62,
3672,
8,
41876,
4731,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
34,
17614,
62,
37,
2246,
19266,
62,
16045,
44,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
6941,
62,
22866,
796,
33245,
62,
22866,
13,
198,
220,
220,
220,
45079,
62,
525,
77,
3808,
796,
340,
62,
525,
77,
3808,
13,
198,
220,
220,
220,
285,
85,
62,
35943,
62,
4871,
62,
3672,
796,
21628,
62,
35943,
62,
4871,
62,
3672,
13,
198,
220,
220,
220,
285,
85,
62,
26495,
62,
7857,
796,
21628,
62,
26495,
62,
7857,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
4049,
62,
14681,
13,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
20500,
62,
4868,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
11128,
72,
62,
20500,
62,
30281,
14804,
774,
62,
20500,
62,
4868,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
18224,
62,
49170,
62,
25677,
34178,
48920,
3963,
300,
83,
62,
20500,
62,
4868,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
20500,
62,
4868,
29,
34178,
48920,
3963,
300,
83,
62,
20500,
62,
4868,
13,
628,
220,
220,
220,
7473,
41636,
44607,
4303,
2394,
6177,
13,
198,
220,
220,
220,
7473,
41636,
20444,
1581,
718,
13,
628,
220,
220,
220,
44423,
25,
1220,
705,
9139,
5965,
5091,
618,
8861,
547,
10945,
287,
10730,
13,
383,
1366,
318,
18326,
2637,
7,
8298,
737,
198,
220,
220,
220,
44423,
25,
1220,
705,
5492,
15765,
262,
989,
2637,
7,
21601,
737,
198,
220,
220,
220,
44423,
25,
1220,
705,
1532,
262,
4049,
35545,
706,
15765,
278,
11,
2800,
1104,
2637,
7,
11245,
737,
628,
220,
220,
220,
7473,
41636,
44607,
4303,
2394,
18562,
13,
198,
220,
220,
220,
7473,
41636,
15731,
2767,
17828,
16938,
28343,
6177,
13,
198,
220,
220,
220,
14277,
4061,
13,
628,
220,
220,
220,
44423,
25,
1220,
705,
24259,
286,
8563,
32105,
7,
22914,
737,
198,
220,
220,
220,
43979,
62,
18224,
62,
49170,
62,
25677,
12,
35943,
62,
3672,
796,
705,
25714,
1438,
6,
7,
22544,
737,
198,
220,
220,
220,
43979,
62,
18224,
62,
49170,
62,
25677,
12,
81,
16072,
19662,
796,
705,
12331,
6764,
6,
7,
28041,
737,
198,
220,
220,
220,
44423,
25,
1220,
43979,
62,
18224,
62,
49170,
62,
25677,
12,
35943,
62,
3672,
11,
43979,
62,
18224,
62,
49170,
62,
25677,
12,
81,
16072,
19662,
13,
628,
220,
220,
220,
300,
83,
62,
20500,
62,
4868,
796,
33245,
62,
20500,
62,
30281,
3784,
1136,
62,
20500,
62,
4868,
7,
6739,
198,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
20500,
62,
4868,
24994,
3528,
15871,
1279,
7278,
62,
20500,
62,
4868,
28401,
198,
220,
220,
220,
220,
220,
44423,
25,
1220,
1279,
7278,
62,
20500
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.
INTERFACES: zif_adv_check.
ALIASES: is_valid FOR zif_adv_check~is_valid.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ADV_DATE_CHECK IMPLEMENTATION.
METHOD zif_adv_check~is_valid.
DATA(string_date) = CONV string( data ).
IF NOT contains( val = string_date regex = '^\d{8}$' ).
RETURN.
ENDIF.
DATA(date) = CONV datum( string_date ).
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
date = date
EXCEPTIONS
plausibility_check_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
RETURN.
ENDIF.
valid = abap_true.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
32225,
62,
4475,
62,
9122,
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,
1976,
361,
62,
32225,
62,
9122,
13,
198,
220,
220,
220,
8355,
43429,
1546,
25,
318,
62,
12102,
7473,
1976,
361,
62,
32225,
62,
9122,
93,
271,
62,
12102,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
2885,
53,
62,
35,
6158,
62,
50084,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
32225,
62,
9122,
93,
271,
62,
12102,
13,
628,
220,
220,
220,
42865,
7,
8841,
62,
4475,
8,
796,
7102,
53,
4731,
7,
1366,
6739,
628,
220,
220,
220,
16876,
5626,
4909,
7,
1188,
796,
4731,
62,
4475,
40364,
796,
705,
61,
59,
67,
90,
23,
92,
3,
6,
6739,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
42865,
7,
4475,
8,
796,
7102,
53,
4818,
388,
7,
4731,
62,
4475,
6739,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
35,
6158,
62,
50084,
62,
45710,
2937,
40,
25382,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3128,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
3128,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
48923,
2247,
62,
9122,
62,
47904,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
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,
4938,
796,
450,
499,
62,
7942,
13,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_aoc_check_47 DEFINITION
PUBLIC
INHERITING FROM zcl_aoc_super
CREATE PUBLIC.
PUBLIC SECTION.
METHODS constructor.
METHODS check
REDEFINITION.
METHODS get_message_text
REDEFINITION.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_AOC_CHECK_47 IMPLEMENTATION.
METHOD check.
* abapOpenChecks
* https://github.com/larshp/abapOpenChecks
* MIT License
DATA: lv_include TYPE sobj_name,
lv_count TYPE i,
lv_fourth TYPE string,
lv_statement TYPE string.
FIELD-SYMBOLS: <ls_statement> LIKE LINE OF it_statements,
<ls_token> LIKE LINE OF it_tokens.
LOOP AT it_statements ASSIGNING <ls_statement>
WHERE type <> scan_stmnt_type-empty
AND type <> scan_stmnt_type-comment
AND type <> scan_stmnt_type-comment_in_stmnt
AND type <> scan_stmnt_type-macro_definition
AND type <> scan_stmnt_type-pragma.
CLEAR lv_statement.
CLEAR lv_fourth.
lv_count = 0.
LOOP AT it_tokens ASSIGNING <ls_token>
FROM <ls_statement>-from TO <ls_statement>-to
WHERE type = scan_token_type-identifier
OR type = scan_token_type-literal.
lv_count = lv_count + 1.
IF lv_count = 4.
lv_fourth = <ls_token>-str.
ENDIF.
IF lv_statement IS INITIAL.
lv_statement = <ls_token>-str.
ELSE.
CONCATENATE lv_statement <ls_token>-str
INTO lv_statement SEPARATED BY space.
ENDIF.
ENDLOOP.
IF lv_fourth <> 'DESTINATION'
OR lv_statement CP '* EXCEPTIONS * MESSAGE *'
OR lv_statement CP '* DESTINATION ''NONE'' *'.
CONTINUE. " to next statement
ENDIF.
lv_include = get_include( p_level = <ls_statement>-level ).
inform( p_sub_obj_type = c_type_include
p_sub_obj_name = lv_include
p_line = <ls_token>-row
p_kind = mv_errty
p_test = myname
p_code = '001' ).
ENDLOOP.
ENDMETHOD.
METHOD constructor.
super->constructor( ).
description = 'RFC call error handling'. "#EC NOTEXT
category = 'ZCL_AOC_CATEGORY'.
version = '001'.
position = '047'.
has_attributes = abap_true.
attributes_ok = abap_true.
enable_rfc( ).
mv_errty = c_error.
ENDMETHOD. "CONSTRUCTOR
METHOD get_message_text.
CLEAR p_text.
CASE p_code.
WHEN '001'.
p_text = 'Add RFC call error handling'. "#EC NOTEXT
WHEN OTHERS.
super->get_message_text( EXPORTING p_test = p_test
p_code = p_code
IMPORTING p_text = p_text ).
ENDCASE.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
64,
420,
62,
9122,
62,
2857,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
64,
420,
62,
16668,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
20500,
62,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
32,
4503,
62,
50084,
62,
2857,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2198,
13,
198,
198,
9,
450,
499,
11505,
7376,
4657,
198,
9,
3740,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
397,
499,
11505,
7376,
4657,
198,
9,
17168,
13789,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
17256,
220,
220,
41876,
27355,
73,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
9127,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
49393,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
26090,
41876,
4731,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
26090,
29,
34178,
48920,
3963,
340,
62,
14269,
3196,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
30001,
29,
220,
220,
220,
220,
34178,
48920,
3963,
340,
62,
83,
482,
641,
13,
628,
198,
220,
220,
220,
17579,
3185,
5161,
340,
62,
14269,
3196,
24994,
3528,
15871,
1279,
7278,
62,
26090,
29,
198,
220,
220,
220,
220,
220,
220,
220,
33411,
2099,
1279,
29,
9367,
62,
301,
76,
429,
62,
4906,
12,
28920,
198,
220,
220,
220,
220,
220,
220,
220,
5357,
2099,
1279,
29,
9367,
62,
301,
76,
429,
62,
4906,
12,
23893,
198,
220,
220,
220,
220,
220,
220,
220,
5357,
2099,
1279,
29,
9367,
62,
301,
76,
429,
62,
4906,
12,
23893,
62,
259,
62,
301,
76,
429,
198,
220,
220,
220,
220,
220,
220,
220,
5357,
2099,
1279,
29,
9367,
62,
301,
76,
429,
62,
4906,
12,
20285,
305,
62,
46758,
198,
220,
220,
220,
220,
220,
220,
220,
5357,
2099,
1279,
29,
9367,
62,
301,
76,
429,
62,
4906,
12,
1050,
363,
2611,
13,
628,
220,
220,
220,
220,
220,
30301,
1503,
300,
85,
62,
26090,
13,
198,
220,
220,
220,
220,
220,
30301,
1503,
300,
85,
62,
49393,
13,
198,
220,
220,
220,
220,
220,
300,
85,
62,
9127,
796,
657,
13,
628,
220,
220,
220,
220,
220,
17579,
3185,
5161,
340,
62,
83,
482,
641,
24994,
3528,
15871,
1279,
7278,
62,
30001,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
1279,
7278,
62,
26090,
29,
12,
6738,
5390,
1279,
7278,
62,
26090,
29,
12,
1462,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33411,
2099,
796,
9367,
62,
30001,
62,
4906,
12,
738,
7483,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6375,
2099,
796,
9367,
62,
30001,
62,
4906,
12,
18250,
1691,
13,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
9127,
796,
300,
85,
62,
9127,
1343,
352,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16876,
300,
85,
62,
9127,
796,
604,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
49393,
796,
1279,
7278,
62,
30001,
29,
12,
2536,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16876,
300,
85,
62,
26090,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
26090,
796,
1279,
7278,
62,
30001,
29,
12,
2536,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39962,
1404,
1677,
6158,
300,
85,
62,
26090,
1279,
7278,
62,
30001,
29,
12,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39319,
300,
85,
62,
26090,
7946,
27082,
11617,
11050,
2272,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
220,
220,
220,
220,
16876,
300,
85,
62,
49393,
1279,
29,
705,
35,
6465,
1268,
6234,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6375,
300,
85,
62,
26090,
16932,
705,
9,
7788,
42006,
11053,
1635,
337,
1546,
4090,
8264,
1635,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6375,
300,
85,
62,
26090,
16932,
705,
9,
360,
6465,
1268,
6234,
10148,
45,
11651,
7061,
1635,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
366,
284,
1306,
2643,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
300,
85,
62,
17256,
796,
651,
62,
17256,
7,
279,
62,
5715,
796,
1279,
7278,
62,
26090,
29,
12,
5715,
6739,
198,
220,
220,
220,
220,
220,
4175,
7,
279,
62,
7266,
62,
26801,
62,
4906,
796,
269,
62,
4906,
62,
17256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
7266,
62,
26801,
62,
3672,
796,
300,
85,
62,
17256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
1370,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1279,
7278,
62,
30001,
29,
12,
808,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
11031,
220,
220,
220,
220,
220,
220,
220,
220,
796,
285,
85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
1,
1,
1,
1,
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 zab_chapter11.
"Listing 11.1
DATA: my_string TYPE string.
my_string = 'Hello World'.
"Listing 11.2
my_string = |Hello World|.
"Listing 11.3
DATA: my_number TYPE i VALUE 123.
my_string = |{ my_number } gadgets ordered|.
"Listing 11.4
my_string = |some text| &&
| some more text|.
"Listing 11.5
my_string = |{ 'left' WIDTH = 10 ALIGN = LEFT PAD = '1' }|.
WRITE: / my_string.
my_string = |{ 'center' WIDTH = 10 ALIGN = CENTER PAD = '2' }|.
WRITE: / my_string.
my_string = |{ 'right' WIDTH = 10 ALIGN = RIGHT PAD = '3' }|.
WRITE: / my_string.
"Listing 11.6
my_string = |{ 'aBc' CASE = UPPER }|.
my_string = |{ 'aBc' CASE = LOWER }|.
"Listing 11.7
DATA: my_decimal TYPE decfloat16 VALUE '1.236'.
my_string = |{ my_decimal DECIMALS = 2 }|.
"Listing 11.8
DATA(my_string1) = |{ 'left' WIDTH = 10 ALIGN = LEFT PAD = '1' }|.
"Listing 11.9
DATA: my_length TYPE i.
my_length = strlen( my_string ).
"Listing 11.10
DATA: string_table TYPE TABLE OF string.
APPEND 'Thing One' TO string_table.
APPEND 'Thing Two' TO string_table.
my_string = concat_lines_of( table = string_table sep = ` ` ).
"Listing 11.11
my_string = substring( val = 'this is the whole string'
off = 8 len = 3 ).
"Listing 11.12
my_string = substring_from( val = 'the whole string' sub = 'whole' ).
my_string = substring_after( val = 'the whole string' sub = 'whole' ).
my_string = substring_before( val = 'the whole string' sub = 'whole' ).
my_string = substring_to( val = 'the whole string' sub = 'whole' ).
"Listing 11.13
my_string = text-001.
my_string = |symbol: { text-001 }|.
"Listing 11.14
my_string = 'Some Text'(001).
"Listing 11.15
"Skipped, not executable example
"Listing 11.16
DATA: my_string2 TYPE string VALUE 'two',
my_string3 TYPE string VALUE 'three',
my_result TYPE string.
"old way
CONCATENATE my_string1 my_string2 my_string3
INTO my_result SEPARATED BY ' '.
"new way
my_result = |{ my_string1 } { my_string2 } { my_string3 }|.
"Listing 11.17
"old way
my_string = 'aBc'.
TRANSLATE my_string TO UPPER CASE.
"new way
my_string = |{ 'aBc' CASE = UPPER }|.
"Listing 11.18 - 11.21
"Included in ZAB_PRODUCT_MAINT_11
"Listing 11.22
"Included in ZCL_AB_SHOPPING_CART_11
| [
2200,
15490,
1976,
397,
62,
43582,
1157,
13,
198,
198,
1,
8053,
278,
1367,
13,
16,
198,
26947,
25,
616,
62,
8841,
41876,
4731,
13,
198,
1820,
62,
8841,
796,
705,
15496,
2159,
4458,
198,
198,
1,
8053,
278,
1367,
13,
17,
198,
1820,
62,
8841,
796,
930,
15496,
2159,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
18,
198,
26947,
25,
616,
62,
17618,
41876,
1312,
26173,
8924,
17031,
13,
198,
1820,
62,
8841,
796,
930,
90,
616,
62,
17618,
1782,
35281,
6149,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
19,
198,
1820,
62,
8841,
796,
930,
11246,
2420,
91,
11405,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
617,
517,
2420,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
20,
198,
1820,
62,
8841,
796,
930,
90,
705,
9464,
6,
370,
2389,
4221,
796,
838,
8355,
16284,
796,
12509,
9792,
350,
2885,
796,
705,
16,
6,
1782,
91,
13,
198,
18564,
12709,
25,
1220,
616,
62,
8841,
13,
198,
198,
1820,
62,
8841,
796,
930,
90,
705,
16159,
6,
370,
2389,
4221,
796,
838,
8355,
16284,
796,
33269,
1137,
350,
2885,
796,
705,
17,
6,
1782,
91,
13,
198,
18564,
12709,
25,
1220,
616,
62,
8841,
13,
198,
198,
1820,
62,
8841,
796,
930,
90,
705,
3506,
6,
370,
2389,
4221,
796,
838,
8355,
16284,
796,
33621,
350,
2885,
796,
705,
18,
6,
1782,
91,
13,
198,
18564,
12709,
25,
1220,
616,
62,
8841,
13,
198,
198,
1,
8053,
278,
1367,
13,
21,
198,
1820,
62,
8841,
796,
930,
90,
705,
64,
33,
66,
6,
42001,
796,
471,
10246,
1137,
1782,
91,
13,
198,
1820,
62,
8841,
796,
930,
90,
705,
64,
33,
66,
6,
42001,
796,
406,
36048,
1782,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
22,
198,
26947,
25,
616,
62,
12501,
4402,
41876,
875,
22468,
1433,
26173,
8924,
705,
16,
13,
24940,
4458,
198,
1820,
62,
8841,
796,
930,
90,
616,
62,
12501,
4402,
27196,
3955,
23333,
796,
362,
1782,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
23,
198,
26947,
7,
1820,
62,
8841,
16,
8,
796,
930,
90,
705,
9464,
6,
370,
2389,
4221,
796,
838,
8355,
16284,
796,
12509,
9792,
350,
2885,
796,
705,
16,
6,
1782,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
24,
198,
26947,
25,
616,
62,
13664,
41876,
1312,
13,
198,
1820,
62,
13664,
796,
965,
11925,
7,
616,
62,
8841,
6739,
198,
198,
1,
8053,
278,
1367,
13,
940,
198,
26947,
25,
4731,
62,
11487,
41876,
43679,
3963,
4731,
13,
198,
198,
24805,
10619,
705,
51,
722,
1881,
6,
5390,
4731,
62,
11487,
13,
198,
24805,
10619,
705,
51,
722,
4930,
6,
5390,
4731,
62,
11487,
13,
198,
1820,
62,
8841,
796,
1673,
265,
62,
6615,
62,
1659,
7,
3084,
796,
4731,
62,
11487,
41767,
796,
4600,
4600,
6739,
198,
198,
1,
8053,
278,
1367,
13,
1157,
198,
1820,
62,
8841,
796,
3293,
1806,
7,
1188,
796,
705,
5661,
318,
262,
2187,
4731,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
572,
796,
807,
18896,
796,
513,
6739,
198,
198,
1,
8053,
278,
1367,
13,
1065,
198,
1820,
62,
8841,
796,
3293,
1806,
62,
6738,
7,
1188,
796,
705,
1169,
2187,
4731,
6,
850,
796,
705,
1929,
2305,
6,
6739,
198,
1820,
62,
8841,
796,
3293,
1806,
62,
8499,
7,
1188,
796,
705,
1169,
2187,
4731,
6,
850,
796,
705,
1929,
2305,
6,
6739,
198,
1820,
62,
8841,
796,
3293,
1806,
62,
19052,
7,
1188,
796,
705,
1169,
2187,
4731,
6,
850,
796,
705,
1929,
2305,
6,
6739,
198,
1820,
62,
8841,
796,
3293,
1806,
62,
1462,
7,
1188,
796,
705,
1169,
2187,
4731,
6,
850,
796,
705,
1929,
2305,
6,
6739,
198,
198,
1,
8053,
278,
1367,
13,
1485,
198,
1820,
62,
8841,
796,
2420,
12,
8298,
13,
198,
1820,
62,
8841,
796,
930,
1837,
23650,
25,
1391,
2420,
12,
8298,
1782,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
1415,
198,
1820,
62,
8841,
796,
705,
4366,
8255,
6,
7,
8298,
737,
198,
198,
1,
8053,
278,
1367,
13,
1314,
198,
1,
15739,
3949,
11,
407,
28883,
1672,
198,
198,
1,
8053,
278,
1367,
13,
1433,
198,
26947,
25,
616,
62,
8841,
17,
41876,
4731,
26173,
8924,
705,
11545,
3256,
198,
1820,
62,
8841,
18,
41876,
4731,
26173,
8924,
705,
15542,
3256,
198,
1820,
62,
20274,
41876,
4731,
13,
198,
1,
727,
835,
198,
10943,
34,
1404,
1677,
6158,
616,
62,
8841,
16,
616,
62,
8841,
17,
616,
62,
8841,
18,
198,
1268,
10468,
616,
62,
20274,
7946,
27082,
11617,
11050,
705,
45302,
198,
1,
3605,
835,
198,
1820,
62,
20274,
796,
930,
90,
616,
62,
8841,
16,
1782,
1391,
616,
62,
8841,
17,
1782,
1391,
616,
62,
8841,
18,
1782,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
1558,
198,
1,
727,
835,
198,
1820,
62,
8841,
796,
705,
64,
33,
66,
4458,
198,
5446,
1565,
8634,
6158,
616,
62,
8841,
5390,
471,
10246,
1137,
42001,
13,
198,
1,
3605,
835,
198,
1820,
62,
8841,
796,
930,
90,
705,
64,
33,
66,
6,
42001,
796,
471,
10246,
1137,
1782,
91,
13,
198,
198,
1,
8053,
278,
1367,
13,
1507,
532,
1367,
13,
2481,
198,
1,
818,
10341,
287,
1168,
6242,
62,
4805,
28644,
62,
5673,
12394,
62,
1157,
198,
198,
1,
8053,
278,
1367,
13,
1828,
198,
1,
818,
10341,
287,
1168,
5097,
62,
6242,
62,
9693,
3185,
47,
2751,
62,
34,
7227,
62,
1157,
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,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ASS ycl_a2g_json_pivotgrouprule DEFINITION
PUBLIC
INHERITING FROM ycl_a2g_jsonbase
CREATE PUBLIC .
PUBLIC SECTION.
"! Build the class
"! @parameter if_msg_manager | message managere where soter alla message triggered by the applicaition
METHODS constructor
IMPORTING if_msg_manager TYPE REF TO yif_a2g_msg_manager.
TYPES: BEGIN OF ty_s_json_pivotgrouprule,
manualrule TYPE ycl_a2g_json_manualrule=>ty_s_json_manualrule,
histogramrule TYPE ycl_a2g_json_histogramrule=>ty_s_json_histogramrule,
datetimerule TYPE ycl_a2g_json_datetimerule=>ty_s_json_datetimerule,
END OF ty_s_json_pivotgrouprule.
TYPES ty_t_json_pivotgrouprule TYPE STANDARD TABLE OF ty_s_json_pivotgrouprule WITH NON-UNIQUE DEFAULT KEY.
PROTECTED SECTION.
METHODS generate_rules REDEFINITION.
METHODS rebuild_data REDEFINITION.
METHODS push_data REDEFINITION.
DATA: gs_pivotgrouprule TYPE ty_s_json_pivotgrouprule.
PRIVATE SECTION.
ENDCLASS.
CLASS ycl_a2g_json_pivotgrouprule IMPLEMENTATION.
METHOD push_data.
ENDMETHOD.
METHOD rebuild_data.
ENDMETHOD.
METHOD constructor.
super->constructor( if_msg_manager ).
me->gv_data = REF #( me->gs_pivotgrouprule ).
ENDMETHOD.
METHOD generate_rules.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
79,
45785,
8094,
25135,
5550,
20032,
17941,
198,
220,
44731,
198,
3268,
16879,
2043,
2751,
16034,
331,
565,
62,
64,
17,
70,
62,
17752,
8692,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
366,
0,
10934,
262,
1398,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
611,
62,
19662,
62,
37153,
930,
3275,
6687,
260,
810,
264,
19543,
477,
64,
3275,
13973,
416,
262,
2161,
64,
653,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
611,
62,
19662,
62,
37153,
41876,
4526,
37,
5390,
331,
361,
62,
64,
17,
70,
62,
19662,
62,
37153,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
82,
62,
17752,
62,
79,
45785,
8094,
25135,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10107,
25135,
220,
220,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
805,
723,
25135,
14804,
774,
62,
82,
62,
17752,
62,
805,
723,
25135,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1554,
21857,
25135,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
10034,
21857,
25135,
14804,
774,
62,
82,
62,
17752,
62,
10034,
21857,
25135,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
316,
22723,
2261,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
19608,
316,
22723,
2261,
14804,
774,
62,
82,
62,
17752,
62,
19608,
316,
22723,
2261,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
82,
62,
17752,
62,
79,
45785,
8094,
25135,
13,
198,
220,
220,
220,
24412,
47,
1546,
1259,
62,
83,
62,
17752,
62,
79,
45785,
8094,
25135,
41876,
49053,
9795,
43679,
3963,
1259,
62,
82,
62,
17752,
62,
79,
45785,
8094,
25135,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
7716,
62,
38785,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
17884,
62,
7890,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
4574,
62,
7890,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
628,
220,
220,
220,
42865,
25,
308,
82,
62,
79,
45785,
8094,
25135,
220,
41876,
1259,
62,
82,
62,
17752,
62,
79,
45785,
8094,
25135,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
79,
45785,
8094,
25135,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
4574,
62,
7890,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
17884,
62,
7890,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
611,
62,
19662,
62,
37153,
6739,
198,
220,
220,
220,
502,
3784,
70,
85,
62,
7890,
796,
4526,
37,
1303,
7,
502,
3784,
14542,
62,
79,
45785,
8094,
25135,
220,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
7716,
62,
38785,
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,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1,
1,
1,
1,
1,
1,
1,
1,
1,
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_factory DEFINITION
PUBLIC
CREATE PRIVATE
GLOBAL FRIENDS zcl_abapgit_ui_injector.
PUBLIC SECTION.
CLASS-METHODS:
get_popups
RETURNING
VALUE(ri_popups) TYPE REF TO zif_abapgit_popups,
get_tag_popups
RETURNING
VALUE(ri_tag_popups) TYPE REF TO zif_abapgit_tag_popups.
PRIVATE SECTION.
CLASS-DATA:
mi_popups TYPE REF TO zif_abapgit_popups,
mi_tag_popups TYPE REF TO zif_abapgit_tag_popups.
ENDCLASS.
CLASS zcl_abapgit_ui_factory IMPLEMENTATION.
METHOD get_popups.
IF mi_popups IS INITIAL.
CREATE OBJECT mi_popups TYPE zcl_abapgit_popups.
ENDIF.
ri_popups = mi_popups.
ENDMETHOD.
METHOD get_tag_popups.
IF mi_tag_popups IS INITIAL.
CREATE OBJECT mi_tag_popups TYPE zcl_abapgit_tag_popups.
ENDIF.
ri_tag_popups = mi_tag_popups.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
4810,
3824,
6158,
198,
220,
10188,
9864,
1847,
48167,
1677,
5258,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
259,
752,
273,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
12924,
4739,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
12924,
4739,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
11,
628,
220,
220,
220,
220,
220,
651,
62,
12985,
62,
12924,
4739,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
12985,
62,
12924,
4739,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
12985,
62,
12924,
4739,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42715,
12,
26947,
25,
198,
220,
220,
220,
220,
220,
21504,
62,
12924,
4739,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
12924,
4739,
11,
198,
220,
220,
220,
220,
220,
21504,
62,
12985,
62,
12924,
4739,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
12985,
62,
12924,
4739,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
9019,
62,
69,
9548,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
651,
62,
12924,
4739,
13,
628,
220,
220,
220,
16876,
21504,
62,
12924,
4739,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
29244,
6158,
25334,
23680,
21504,
62,
12924,
4739,
41876,
1976,
565,
62,
397,
499,
18300,
62,
12924,
4739,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
374,
72,
62,
12924,
4739,
796,
21504,
62,
12924,
4739,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
12985,
62,
12924,
4739,
13,
628,
220,
220,
220,
16876,
21504,
62,
12985,
62,
12924,
4739,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
29244,
6158,
25334,
23680,
21504,
62,
12985,
62,
12924,
4739,
41876,
1976,
565,
62,
397,
499,
18300,
62,
12985,
62,
12924,
4739,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
374,
72,
62,
12985,
62,
12924,
4739,
796,
21504,
62,
12985,
62,
12924,
4739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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_08 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 put_attributes
REDEFINITION.
METHODS if_ci_test~query_attributes
REDEFINITION.
PROTECTED SECTION.
DATA mv_001 TYPE flag .
DATA mv_002 TYPE flag .
DATA mv_003 TYPE flag .
DATA mv_004 TYPE flag .
DATA mv_005 TYPE flag .
DATA mv_006 TYPE flag .
DATA mv_007 TYPE flag .
DATA mv_008 TYPE flag .
DATA mv_009 TYPE flag .
DATA mv_010 TYPE flag .
DATA mv_011 TYPE flag .
DATA mv_012 TYPE flag .
DATA mv_013 TYPE flag .
DATA mv_014 TYPE flag .
DATA mv_015 TYPE flag .
DATA mv_016 TYPE flag .
DATA mv_017 TYPE flag .
DATA mv_018 TYPE flag .
DATA mv_019 TYPE flag .
DATA mv_020 TYPE flag .
DATA mv_021 TYPE flag .
DATA mv_022 TYPE flag .
DATA mv_023 TYPE flag .
DATA mv_024 TYPE flag .
METHODS is_old
IMPORTING
!iv_statement TYPE string
RETURNING
VALUE(rv_old) TYPE abap_bool .
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_AOC_CHECK_08 IMPLEMENTATION.
METHOD check.
* abapOpenChecks
* https://github.com/larshp/abapOpenChecks
* MIT License
DATA: lv_position TYPE i,
lv_include TYPE sobj_name,
lv_code TYPE sci_errc,
lv_token TYPE string,
lv_statement TYPE string.
FIELD-SYMBOLS: <ls_token> LIKE LINE OF io_scan->tokens,
<ls_statement> LIKE LINE OF io_scan->statements.
LOOP AT io_scan->statements ASSIGNING <ls_statement>.
lv_position = sy-tabix.
CLEAR lv_statement.
LOOP AT io_scan->tokens ASSIGNING <ls_token>
FROM <ls_statement>-from TO <ls_statement>-to.
IF <ls_token>-type <> io_scan->gc_token-identifier.
lv_token = 'SOMETHING'.
ELSE.
lv_token = <ls_token>-str.
ENDIF.
IF lv_statement IS INITIAL.
lv_statement = lv_token.
ELSE.
CONCATENATE lv_statement lv_token INTO lv_statement SEPARATED BY space.
ENDIF.
ENDLOOP.
CLEAR lv_code.
IF mv_001 = abap_true AND lv_statement CP 'REFRESH *'.
lv_code = '001'.
ELSEIF mv_002 = abap_true AND lv_statement CP '* IS REQUESTED*'.
lv_code = '002'.
ELSEIF mv_003 = abap_true AND lv_statement = 'LEAVE'.
lv_code = '003'.
ELSEIF mv_004 = abap_true AND lv_statement CP 'COMPUTE *'.
lv_code = '004'.
ELSEIF mv_005 = abap_true
AND lv_statement CP 'MOVE *'
AND lv_statement NP 'MOVE EXACT *'.
lv_code = '005'.
ELSEIF mv_006 = abap_true
AND ( lv_statement CP '* >< *'
OR lv_statement CP '* =< *'
OR lv_statement CP '* => *' ).
lv_code = '006'.
ELSEIF mv_007 = abap_true AND is_old( lv_statement ) = abap_true.
lv_code = '007'.
ELSEIF mv_008 = abap_true AND lv_statement CP 'DEMAND *'.
lv_code = '008'.
ELSEIF mv_009 = abap_true AND lv_statement CP 'SUPPLY *'.
lv_code = '009'.
ELSEIF mv_010 = abap_true AND lv_statement CP 'CONTEXTS *'.
lv_code = '010'.
ELSEIF mv_011 = abap_true AND lv_statement CP 'ADD *'.
lv_code = '011'.
ELSEIF mv_012 = abap_true AND lv_statement CP 'SUBTRACT *'.
lv_code = '012'.
ELSEIF mv_013 = abap_true AND lv_statement CP 'MULTIPLY *'.
lv_code = '013'.
ELSEIF mv_014 = abap_true AND lv_statement CP 'DIVIDE *'.
lv_code = '014'.
ELSEIF mv_015 = abap_true AND lv_statement CP 'CALL DIALOG *'.
lv_code = '015'.
ELSEIF mv_016 = abap_true AND lv_statement CP '* OCCURS *'
AND NOT lv_statement CP '* OCCURS TYPE *'.
lv_code = '016'.
ELSEIF mv_017 = abap_true AND lv_statement CP '* WITH HEADER LINE*'.
lv_code = '017'.
ELSEIF mv_018 = abap_true AND lv_statement CP 'RANGES *'.
lv_code = '018'.
ELSEIF mv_019 = abap_true
AND ( lv_statement CP 'ADD-CORRESPONDING *'
OR lv_statement CP 'SUBTRACT-CORRESPONDING *'
OR lv_statement CP 'MULTIPLY-CORRESPONDING *'
OR lv_statement CP 'DIVIDE-CORRESPONDING *' ).
lv_code = '019'.
ELSEIF mv_020 = abap_true AND lv_statement CP 'SET EXTENDED CHECK *'.
lv_code = '020'.
ELSEIF mv_021 = abap_true AND lv_statement CP 'LOCAL *'.
lv_code = '021'.
ELSEIF mv_022 = abap_true AND lv_statement CP 'DO 1 TIMES*'.
lv_code = '022'.
ELSEIF mv_023 = abap_true AND lv_statement CP 'DO * VARYING *'.
lv_code = '023'.
ELSEIF mv_024 = abap_true AND lv_statement CP 'CATCH SYSTEM-EXCEPTIONS *'.
lv_code = '024'.
ENDIF.
IF NOT lv_code IS INITIAL.
lv_include = io_scan->get_include( <ls_statement>-level ).
inform( p_sub_obj_name = lv_include
p_position = lv_position
p_line = <ls_token>-row
p_kind = mv_errty
p_test = myname
p_code = lv_code ).
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD constructor.
super->constructor( ).
version = '004'.
position = '008'.
has_attributes = abap_true.
attributes_ok = abap_true.
enable_rfc( ).
set_uses_checksum( ).
mv_001 = abap_true.
mv_002 = abap_true.
mv_003 = abap_true.
mv_004 = abap_true.
mv_005 = abap_true.
mv_006 = abap_true.
mv_007 = abap_true.
mv_008 = abap_true.
mv_009 = abap_true.
mv_010 = abap_true.
mv_011 = abap_true.
mv_012 = abap_true.
mv_013 = abap_true.
mv_014 = abap_true.
mv_015 = abap_true.
mv_016 = abap_true.
mv_017 = abap_true.
mv_018 = abap_true.
mv_019 = abap_true.
mv_020 = abap_true.
mv_021 = abap_true.
mv_022 = abap_true.
mv_023 = abap_true.
mv_024 = abap_true.
ENDMETHOD.
METHOD get_attributes.
EXPORT
mv_errty = mv_errty
mv_001 = mv_001
mv_002 = mv_002
mv_003 = mv_003
mv_004 = mv_004
mv_005 = mv_005
mv_006 = mv_006
mv_007 = mv_007
mv_008 = mv_008
mv_009 = mv_009
mv_010 = mv_010
mv_011 = mv_011
mv_012 = mv_012
mv_013 = mv_013
mv_014 = mv_014
mv_015 = mv_015
mv_016 = mv_016
mv_017 = mv_017
mv_018 = mv_018
mv_019 = mv_019
mv_020 = mv_020
mv_021 = mv_021
mv_022 = mv_022
mv_023 = mv_023
mv_024 = mv_024
TO DATA BUFFER p_attributes.
ENDMETHOD.
METHOD get_message_text.
CLEAR p_text.
CASE p_code.
WHEN '001'.
p_text = 'REFRESH is obsolete'. "#EC NOTEXT
WHEN '002'.
p_text = 'IS REQUESTED is obsolete'. "#EC NOTEXT
WHEN '003'.
p_text = 'LEAVE is obsolete'. "#EC NOTEXT
WHEN '004'.
p_text = 'COMPUTE is obsolete'. "#EC NOTEXT
WHEN '005'.
p_text = 'MOVE is obsolete'. "#EC NOTEXT
WHEN '006'.
p_text = 'Obsolete operator'. "#EC NOTEXT
WHEN '007'.
p_text = 'Use new operator'. "#EC NOTEXT
WHEN '008'.
p_text = 'DEMAND is obsolete'. "#EC NOTEXT
WHEN '009'.
p_text = 'SUPPLY is obsolete'. "#EC NOTEXT
WHEN '010'.
p_text = 'CONTEXTS is obsolete'. "#EC NOTEXT
WHEN '011'.
p_text = 'ADD is obsolete'. "#EC NOTEXT
WHEN '012'.
p_text = 'SUBTRACT is obsolete'. "#EC NOTEXT
WHEN '013'.
p_text = 'MULTIPLY is obsolete'. "#EC NOTEXT
WHEN '014'.
p_text = 'DIVIDE is obsolete'. "#EC NOTEXT
WHEN '015'.
p_text = 'CALL DIALOG is obsolete'. "#EC NOTEXT
WHEN '016'.
p_text = 'OCCURS is obsolete'. "#EC NOTEXT
WHEN '017'.
p_text = 'WITH HEADER LINE is obsolete'. "#EC NOTEXT
WHEN '018'.
p_text = 'RANGES declarations is obsolete'. "#EC NOTEXT
WHEN '019'.
p_text = 'Arithmetic CORRESPONDING is obsolete'. "#EC NOTEXT
WHEN '020'.
p_text = 'Do not use SET EXTENDED CHECK'. "#EC NOTEXT
WHEN '021'.
p_text = 'LOCAL is obsolete'. "#EC NOTEXT
WHEN '022'.
p_text = 'DO 1 TIMES'. "#EC NOTEXT
WHEN '023'.
p_text = 'DO ... VARYING ...'. "#EC NOTEXT
WHEN '024'.
p_text = 'CATCH SYSTEM-EXCEPTIONS is obsolete'. "#EC NOTEXT
WHEN OTHERS.
super->get_message_text( EXPORTING p_test = p_test
p_code = p_code
IMPORTING p_text = p_text ).
ENDCASE.
ENDMETHOD. "GET_MESSAGE_TEXT
METHOD if_ci_test~query_attributes.
zzaoc_top.
zzaoc_fill_att mv_errty 'Error Type' ''. "#EC NOTEXT
zzaoc_fill_att mv_001 'REFRESH' ''. "#EC NOTEXT
zzaoc_fill_att mv_002 'IS REQUESTED' ''. "#EC NOTEXT
zzaoc_fill_att mv_003 'LEAVE' ''. "#EC NOTEXT
zzaoc_fill_att mv_004 'COMPUTE' ''. "#EC NOTEXT
zzaoc_fill_att mv_005 'MOVE' ''. "#EC NOTEXT
zzaoc_fill_att mv_006 '>< =< =>' ''. "#EC NOTEXT
zzaoc_fill_att mv_007 'EQ NE LT GT LE GE' ''. "#EC NOTEXT
zzaoc_fill_att mv_008 'DEMAND' ''. "#EC NOTEXT
zzaoc_fill_att mv_009 'SUPPLY' ''. "#EC NOTEXT
zzaoc_fill_att mv_010 'CONTEXTS' ''. "#EC NOTEXT
zzaoc_fill_att mv_011 'ADD' ''. "#EC NOTEXT
zzaoc_fill_att mv_012 'SUBTRACT' ''. "#EC NOTEXT
zzaoc_fill_att mv_013 'MULTIPLY' ''. "#EC NOTEXT
zzaoc_fill_att mv_014 'DIVIDE' ''. "#EC NOTEXT
zzaoc_fill_att mv_015 'CALL DIALOG' ''. "#EC NOTEXT
zzaoc_fill_att mv_016 'OCCURS' ''. "#EC NOTEXT
zzaoc_fill_att mv_017 'WITH HEADER LINE' ''. "#EC NOTEXT
zzaoc_fill_att mv_018 'RANGES' ''. "#EC NOTEXT
zzaoc_fill_att mv_019 'Arithmetic CORRESPONDING' ''. "#EC NOTEXT
zzaoc_fill_att mv_020 'SET EXTENDED CHECK' ''. "#EC NOTEXT
zzaoc_fill_att mv_021 'LOCAL' ''. "#EC NOTEXT
zzaoc_fill_att mv_022 'DO 1 TIMES' ''. "#EC NOTEXT
zzaoc_fill_att mv_023 'DO ... VARYING' ''. "#EC NOTEXT
zzaoc_fill_att mv_024 'CATCH SYSTEM-EXCEPTIONS' ''. "#EC NOTEXT
zzaoc_popup.
ENDMETHOD.
METHOD is_old.
rv_old = abap_false.
IF iv_statement CP '* EQ *' AND NOT iv_statement CP '* EQ TYPE *'.
rv_old = abap_true.
ENDIF.
IF iv_statement CP '* NE *' AND NOT iv_statement CP '* NE TYPE *'.
rv_old = abap_true.
ENDIF.
IF iv_statement CP '* LT *' AND NOT iv_statement CP '* LT TYPE *'.
rv_old = abap_true.
ENDIF.
IF iv_statement CP '* GT *' AND NOT iv_statement CP '* GT TYPE *'.
rv_old = abap_true.
ENDIF.
IF iv_statement CP '* LE *' AND NOT iv_statement CP '* LE TYPE *'.
rv_old = abap_true.
ENDIF.
IF iv_statement CP '* GE *' AND NOT iv_statement CP '* GE TYPE *'.
rv_old = abap_true.
ENDIF.
ENDMETHOD.
METHOD put_attributes.
IMPORT
mv_errty = mv_errty
mv_001 = mv_001
mv_002 = mv_002
mv_003 = mv_003
mv_004 = mv_004
mv_005 = mv_005
mv_006 = mv_006
mv_007 = mv_007
mv_008 = mv_008
mv_009 = mv_009
mv_010 = mv_010
mv_011 = mv_011
mv_012 = mv_012
mv_013 = mv_013
mv_014 = mv_014
mv_015 = mv_015
mv_016 = mv_016
mv_017 = mv_017
mv_018 = mv_018
mv_019 = mv_019
mv_020 = mv_020
mv_021 = mv_021
mv_022 = mv_022
mv_023 = mv_023
mv_024 = mv_024
FROM DATA BUFFER p_attributes. "#EC CI_USE_WANTED
ASSERT sy-subrc = 0.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
64,
420,
62,
9122,
62,
2919,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
64,
420,
62,
16668,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
20500,
62,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
1234,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
611,
62,
979,
62,
9288,
93,
22766,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
42865,
285,
85,
62,
8298,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
21601,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
11245,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
22914,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
22544,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
28041,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
25816,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
25257,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
28694,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
20943,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
28555,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
30206,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
30273,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
28645,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
25150,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
27037,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
29326,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
29159,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
30484,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
33618,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
46821,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
44087,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
45310,
41876,
6056,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
40839,
41876,
6056,
764,
628,
220,
220,
220,
337,
36252,
50,
318,
62,
727,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26090,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
727,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
32,
4503,
62,
50084,
62,
2919,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2198,
13,
198,
198,
9,
450,
499,
11505,
7376,
4657,
198,
9,
3740,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
397,
499,
11505,
7376,
4657,
198,
9,
17168,
13789,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
9150,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
17256,
220,
220,
41876,
27355,
73,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
8189,
220,
220,
220,
220,
220,
41876,
20681,
62,
263,
6015,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
30001,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
26090,
41876,
4731,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
30001,
29,
220,
220,
220,
220,
34178,
48920,
3963,
33245,
62,
35836,
3784,
83,
482,
641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
26090,
29,
34178,
48920,
3963,
33245,
62,
35836,
3784,
14269,
3196,
13,
628,
198,
220,
220,
220,
17579,
3185,
5161,
33245,
62,
35836,
3784,
14269,
3196,
24994,
3528,
15871,
1279,
7278,
62,
26090,
28401,
628,
220,
220,
220,
220,
220,
300,
85,
62,
9150,
796,
827,
12,
8658,
844,
13,
198,
220,
220,
220,
220,
220,
30301,
1503,
300,
85,
62,
26090,
13,
628,
220,
220,
220,
220,
220,
17579,
3185,
5161,
33245,
62,
35836,
3784,
83,
482,
641,
24994,
3528,
15871,
1279,
7278,
62,
30001,
29,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
1279,
7278,
62,
26090,
29,
12,
6738,
5390,
1279,
7278,
62,
26090,
29,
12,
1462,
13,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
1279,
7278,
62,
30001,
29,
12,
4906,
1279,
29,
33245,
62,
35836,
3784,
36484,
62,
30001,
12,
738,
7483,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
30001,
796,
705,
50,
2662,
20702,
2751,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
30001,
796,
1279,
7278,
62,
30001,
29,
12,
2536,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
220,
220,
16876,
300,
85,
62,
26090,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
26090,
796,
300,
85,
62,
30001,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39962,
1404,
1677,
6158,
300
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class ZCX_ABAK_DATA definition
public
inheriting from ZCX_ABAK
final
create public .
public section.
constants:
begin of INVALID_SIGN,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '002',
attr1 type scx_attrname value 'SIGN',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of INVALID_SIGN .
constants:
begin of INVALID_OPTION,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '003',
attr1 type scx_attrname value 'OPTION',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of INVALID_OPTION .
constants:
begin of HIGH_MUST_BE_EMPTY,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '004',
attr1 type scx_attrname value 'OPTION',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of HIGH_MUST_BE_EMPTY .
constants:
begin of LOW_HIGH_MUST_BE_FILLED,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '005',
attr1 type scx_attrname value 'OPTION',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of LOW_HIGH_MUST_BE_FILLED .
constants:
begin of HIGH_MUST_BE_GT_LOW,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '006',
attr1 type scx_attrname value 'OPTION',
attr2 type scx_attrname value 'HIGH',
attr3 type scx_attrname value 'LOW',
attr4 type scx_attrname value '',
end of HIGH_MUST_BE_GT_LOW .
constants:
begin of MULTI_OPTION_NOT_EQ,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '014',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of MULTI_OPTION_NOT_EQ .
constants:
begin of MULTI_SIGN_NOT_I,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '015',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of MULTI_SIGN_NOT_I .
constants:
begin of MULTI_MANY_VALUES,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '016',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of MULTI_MANY_VALUES .
constants:
begin of MULTI_HIGH_FILLED,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '017',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of MULTI_HIGH_FILLED .
constants:
begin of MULTI_FIELDNAME_VALUE_MISMATCH,
msgid type symsgid value 'ZABAK',
msgno type symsgno value '018',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of MULTI_FIELDNAME_VALUE_MISMATCH .
data SIGN type BAPISIGN .
data OPTION type BAPIOPTION .
data LOW type ZABAK_LOW .
data HIGH type ZABAK_HIGH .
methods CONSTRUCTOR
importing
!TEXTID like IF_T100_MESSAGE=>T100KEY optional
!PREVIOUS like PREVIOUS optional
!PREVIOUS_FROM_SYST type FLAG optional
!SIGN type BAPISIGN optional
!OPTION type BAPIOPTION optional
!LOW type ZABAK_LOW optional
!HIGH type ZABAK_HIGH optional .
protected section.
private section.
ENDCLASS.
CLASS ZCX_ABAK_DATA IMPLEMENTATION.
method CONSTRUCTOR.
CALL METHOD SUPER->CONSTRUCTOR
EXPORTING
PREVIOUS = PREVIOUS
PREVIOUS_FROM_SYST = PREVIOUS_FROM_SYST
.
me->SIGN = SIGN .
me->OPTION = OPTION .
me->LOW = LOW .
me->HIGH = HIGH .
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.
| [
4871,
1168,
34,
55,
62,
32,
4339,
42,
62,
26947,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
34,
55,
62,
32,
4339,
42,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
3268,
23428,
2389,
62,
46224,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
34892,
4339,
42,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
21601,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
46224,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
3268,
23428,
2389,
62,
46224,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
3268,
23428,
2389,
62,
3185,
24131,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
34892,
4339,
42,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
11245,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3185,
24131,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
3268,
23428,
2389,
62,
3185,
24131,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
34677,
62,
44,
7759,
62,
12473,
62,
39494,
9936,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
34892,
4339,
42,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
22914,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3185,
24131,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
34677,
62,
44,
7759,
62,
12473,
62,
39494,
9936,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
46663,
62,
39,
18060,
62,
44,
7759,
62,
12473,
62,
37,
8267,
1961,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
34892,
4339,
42,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
22544,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3185,
24131,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
46663,
62,
39,
18060,
62,
44,
7759,
62,
12473,
62,
37,
8267,
1961,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
34677,
62,
44,
7759,
62,
12473,
62,
19555,
62,
43,
3913,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
34892,
4339,
42,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
28041,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3185,
24131,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
39,
18060,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
43,
3913,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
34677,
62,
44,
7759,
62,
12473,
62,
19555,
62,
43,
3913,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
16724,
40,
62,
3185,
24131,
62,
11929,
62,
36,
48,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
34892,
4339,
42,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
28645,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
337,
16724,
40,
62,
3185,
24131,
62,
11929,
62,
36,
48,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
16724,
40,
62,
46224,
62,
11929,
62,
40,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
34892,
4339,
42,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
25150,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*"* use this source file for any macro definitions you need
*"* in the implementation part of the class
DEFINE mac_field_exists.
READ TABLE lt_fields WITH KEY name = &1 TRANSPORTING NO FIELDS.
ASSERT sy-subrc = 0.
END-OF-DEFINITION.
DEFINE mac_assign.
"Usage: mac_assign <structure> <field-position> <name> <type>
FIELD-SYMBOLS &3 TYPE &4.
ASSIGN COMPONENT &2 OF STRUCTURE &1 TO &3.
END-OF-DEFINITION.
DEFINE mac_check_type.
READ TABLE lt_fields WITH KEY name = &1 INTO ls_low.
READ TABLE lt_fields WITH KEY name = &2 INTO ls_high.
ASSERT ls_low-type->type_kind = ls_high-type->type_kind.
CASE ls_low-type->type_kind.
WHEN cl_abap_typedescr=>typekind_class "not allowed types in SELTAB
OR cl_abap_typedescr=>typekind_dref
OR cl_abap_typedescr=>typekind_iref
OR cl_abap_typedescr=>typekind_oref
OR cl_abap_typedescr=>typekind_intf
OR cl_abap_typedescr=>typekind_struct1
OR cl_abap_typedescr=>typekind_struct2
OR cl_abap_typedescr=>typekind_table
OR cl_abap_typedescr=>typekind_bref.
ASSERT ls_low-type->type_kind IS NOT INITIAL.
WHEN cl_abap_typedescr=>typekind_char "char-like types
OR cl_abap_typedescr=>typekind_clike
OR cl_abap_typedescr=>typekind_csequence
OR cl_abap_typedescr=>typekind_string.
_mv_quote_l = `'`.
_mv_quote_r = `'`.
_mv_clike = abap_true.
WHEN cl_abap_typedescr=>typekind_any
OR cl_abap_typedescr=>typekind_data
OR cl_abap_typedescr=>typekind_date
OR cl_abap_typedescr=>typekind_num
OR cl_abap_typedescr=>typekind_time
OR cl_abap_typedescr=>typekind_xstring.
_mv_quote_l = `'`.
_mv_quote_r = `'`.
WHEN cl_abap_typedescr=>typekind_hex "hexadecimal types
OR cl_abap_typedescr=>typekind_xsequence.
_mv_quote_l = `'`.
_mv_quote_r = `'`.
WHEN cl_abap_typedescr=>typekind_decfloat "numeric types
OR cl_abap_typedescr=>typekind_decfloat16
OR cl_abap_typedescr=>typekind_decfloat34
OR cl_abap_typedescr=>typekind_float
OR cl_abap_typedescr=>typekind_int
OR cl_abap_typedescr=>typekind_int1
OR cl_abap_typedescr=>typekind_int2
OR cl_abap_typedescr=>typekind_numeric
OR cl_abap_typedescr=>typekind_packed
OR cl_abap_typedescr=>typekind_simple
OR cl_abap_typedescr=>typekind_w.
CLEAR: _mv_quote_l, _mv_quote_r.
ENDCASE.
END-OF-DEFINITION.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
597,
15021,
17336,
345,
761,
198,
9,
1,
9,
287,
262,
7822,
636,
286,
262,
1398,
198,
220,
23449,
8881,
220,
8352,
62,
3245,
62,
1069,
1023,
13,
198,
220,
220,
220,
20832,
43679,
300,
83,
62,
25747,
13315,
35374,
1438,
796,
1222,
16,
48213,
4303,
9863,
2751,
8005,
18930,
3698,
5258,
13,
198,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
23578,
12,
19238,
12,
7206,
20032,
17941,
13,
628,
220,
23449,
8881,
8352,
62,
562,
570,
13,
198,
220,
220,
220,
366,
28350,
25,
8352,
62,
562,
570,
1279,
301,
5620,
29,
1279,
3245,
12,
9150,
29,
1279,
3672,
29,
1279,
4906,
29,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1222,
18,
41876,
1222,
19,
13,
198,
220,
220,
220,
24994,
16284,
24301,
1340,
3525,
1222,
17,
3963,
19269,
18415,
11335,
1222,
16,
5390,
1222,
18,
13,
198,
220,
23578,
12,
19238,
12,
7206,
20032,
17941,
13,
628,
220,
23449,
8881,
8352,
62,
9122,
62,
4906,
13,
198,
220,
220,
220,
20832,
43679,
300,
83,
62,
25747,
13315,
35374,
1438,
796,
1222,
16,
39319,
43979,
62,
9319,
13,
198,
220,
220,
220,
20832,
43679,
300,
83,
62,
25747,
13315,
35374,
1438,
796,
1222,
17,
39319,
43979,
62,
8929,
13,
198,
220,
220,
220,
24994,
17395,
43979,
62,
9319,
12,
4906,
3784,
4906,
62,
11031,
796,
43979,
62,
8929,
12,
4906,
3784,
4906,
62,
11031,
13,
198,
220,
220,
220,
42001,
43979,
62,
9319,
12,
4906,
3784,
4906,
62,
11031,
13,
198,
220,
220,
220,
220,
220,
42099,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
4871,
220,
220,
220,
220,
220,
220,
220,
366,
1662,
3142,
3858,
287,
311,
3698,
5603,
33,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
67,
5420,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
557,
69,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
382,
69,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
600,
69,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
7249,
16,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
7249,
17,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
4679,
69,
13,
198,
220,
220,
220,
220,
220,
220,
220,
24994,
17395,
43979,
62,
9319,
12,
4906,
3784,
4906,
62,
11031,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
42099,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
10641,
220,
220,
220,
220,
220,
220,
220,
220,
366,
10641,
12,
2339,
3858,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
565,
522,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
66,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
8841,
13,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
76,
85,
62,
22708,
62,
75,
796,
4600,
6,
44646,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
76,
85,
62,
22708,
62,
81,
796,
4600,
6,
44646,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
76,
85,
62,
565,
522,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
42099,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
1092,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
7890,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
4475,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
22510,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
2435,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
87,
8841,
13,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
76,
85,
62,
22708,
62,
75,
796,
4600,
6,
44646,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
76,
85,
62,
22708,
62,
81,
796,
4600,
6,
44646,
198,
220,
220,
220,
220,
220,
42099,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
33095,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
33095,
671,
66,
4402,
3858,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
87,
43167,
13,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
76,
85,
62,
22708,
62,
75,
796,
4600,
6,
44646,
198,
220,
220,
220,
220,
220,
220,
220,
4808,
76,
85,
62,
22708,
62,
81,
796,
4600,
6,
44646,
628,
220,
220,
220,
220,
220,
42099,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
12501,
22468,
220,
220,
220,
220,
366,
77,
39223,
3858,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
4906,
11031,
62,
12501,
22468,
1433,
198,
220,
220,
220,
220,
220,
220,
220,
6375,
537,
62,
397,
499,
62,
774,
9124
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
INTERFACE zif_abapgit_definitions PUBLIC.
TYPES:
ty_type TYPE c LENGTH 6 .
TYPES:
ty_bitbyte TYPE c LENGTH 8 .
TYPES:
ty_sha1 TYPE c LENGTH 40 .
TYPES: ty_adler32 TYPE x LENGTH 4.
TYPES:
BEGIN OF ty_file_signature,
path TYPE string,
filename TYPE string,
sha1 TYPE zif_abapgit_definitions=>ty_sha1,
END OF ty_file_signature .
TYPES:
ty_file_signatures_tt TYPE STANDARD TABLE OF
ty_file_signature WITH DEFAULT KEY .
TYPES:
ty_file_signatures_ts TYPE SORTED TABLE OF
ty_file_signature WITH UNIQUE KEY path filename .
TYPES:
BEGIN OF ty_file.
INCLUDE TYPE ty_file_signature.
TYPES: data TYPE xstring,
END OF ty_file .
TYPES:
ty_files_tt TYPE STANDARD TABLE OF ty_file WITH DEFAULT KEY .
TYPES:
ty_string_tt TYPE STANDARD TABLE OF string WITH DEFAULT KEY .
TYPES: ty_repo_ref_tt TYPE STANDARD TABLE OF REF TO zcl_abapgit_repo WITH DEFAULT KEY.
TYPES ty_git_branch_type TYPE char2 .
TYPES:
BEGIN OF ty_git_branch,
sha1 TYPE zif_abapgit_definitions=>ty_sha1,
name TYPE string,
type TYPE ty_git_branch_type,
is_head TYPE abap_bool,
display_name TYPE string,
END OF ty_git_branch .
TYPES:
ty_git_branch_list_tt TYPE STANDARD TABLE OF ty_git_branch WITH DEFAULT KEY .
TYPES:
BEGIN OF ty_git_tag,
sha1 TYPE zif_abapgit_definitions=>ty_sha1,
object TYPE zif_abapgit_definitions=>ty_sha1,
name TYPE string,
type TYPE ty_git_branch_type,
display_name TYPE string,
tagger_name TYPE string,
tagger_email TYPE string,
message TYPE string,
body TYPE string,
END OF ty_git_tag .
TYPES:
ty_git_tag_list_tt TYPE STANDARD TABLE OF ty_git_tag WITH DEFAULT KEY .
TYPES:
BEGIN OF ty_hotkey,
sequence TYPE string,
action TYPE string,
END OF ty_hotkey,
tty_hotkey TYPE STANDARD TABLE OF ty_hotkey
WITH NON-UNIQUE DEFAULT KEY.
CONSTANTS:
BEGIN OF c_git_branch_type,
branch TYPE ty_git_branch_type VALUE 'HD',
lightweight_tag TYPE ty_git_branch_type VALUE 'TG',
annotated_tag TYPE ty_git_branch_type VALUE 'AT',
other TYPE ty_git_branch_type VALUE 'ZZ',
END OF c_git_branch_type .
CONSTANTS c_head_name TYPE string VALUE 'HEAD' ##NO_TEXT.
TYPES:
BEGIN OF ty_git_user,
name TYPE string,
email TYPE string,
END OF ty_git_user .
TYPES:
BEGIN OF ty_comment,
committer TYPE ty_git_user,
author TYPE ty_git_user,
comment TYPE string,
END OF ty_comment .
TYPES:
BEGIN OF ty_item,
obj_type TYPE tadir-object,
obj_name TYPE tadir-obj_name,
devclass TYPE devclass,
inactive TYPE abap_bool,
END OF ty_item .
TYPES:
ty_items_tt TYPE STANDARD TABLE OF ty_item WITH DEFAULT KEY .
TYPES:
ty_items_ts TYPE SORTED TABLE OF ty_item WITH UNIQUE KEY obj_type obj_name .
TYPES:
BEGIN OF ty_file_item,
file TYPE zif_abapgit_definitions=>ty_file,
item TYPE ty_item,
END OF ty_file_item .
TYPES:
ty_files_item_tt TYPE STANDARD TABLE OF ty_file_item WITH DEFAULT KEY .
TYPES: ty_yes_no TYPE c LENGTH 1.
TYPES: BEGIN OF ty_overwrite.
INCLUDE TYPE ty_item.
TYPES: decision TYPE ty_yes_no,
END OF ty_overwrite.
TYPES: ty_overwrite_tt TYPE STANDARD TABLE OF ty_overwrite WITH DEFAULT KEY.
TYPES: BEGIN OF ty_requirements,
met TYPE ty_yes_no,
decision TYPE ty_yes_no,
END OF ty_requirements.
TYPES: BEGIN OF ty_transport_type,
request TYPE trfunction,
task TYPE trfunction,
END OF ty_transport_type.
TYPES: BEGIN OF ty_transport,
required TYPE abap_bool,
transport TYPE trkorr,
type TYPE ty_transport_type,
END OF ty_transport.
TYPES: BEGIN OF ty_deserialize_checks,
overwrite TYPE ty_overwrite_tt,
warning_package TYPE ty_overwrite_tt,
requirements TYPE ty_requirements,
transport TYPE ty_transport,
END OF ty_deserialize_checks,
BEGIN OF ty_delete_checks,
transport TYPE ty_transport,
END OF ty_delete_checks.
TYPES:
BEGIN OF ty_metadata,
class TYPE string,
version TYPE string,
late_deser TYPE abap_bool,
delete_tadir TYPE abap_bool,
ddic TYPE abap_bool,
END OF ty_metadata .
TYPES:
BEGIN OF ty_repo_file,
path TYPE string,
filename TYPE string,
is_changed TYPE abap_bool,
rstate TYPE char1,
lstate TYPE char1,
END OF ty_repo_file .
TYPES:
tt_repo_files TYPE STANDARD TABLE OF ty_repo_file WITH DEFAULT KEY .
TYPES:
BEGIN OF ty_stage_files,
local TYPE zif_abapgit_definitions=>ty_files_item_tt,
remote TYPE zif_abapgit_definitions=>ty_files_tt,
END OF ty_stage_files .
TYPES:
ty_chmod TYPE c LENGTH 6 .
TYPES:
BEGIN OF ty_object,
sha1 TYPE zif_abapgit_definitions=>ty_sha1,
type TYPE zif_abapgit_definitions=>ty_type,
data TYPE xstring,
adler32 TYPE ty_adler32,
index TYPE i,
END OF ty_object .
TYPES:
ty_objects_tt TYPE STANDARD TABLE OF ty_object WITH DEFAULT KEY
WITH NON-UNIQUE SORTED KEY sha COMPONENTS sha1
WITH NON-UNIQUE SORTED KEY type COMPONENTS type sha1.
TYPES:
BEGIN OF ty_tadir,
pgmid TYPE tadir-pgmid,
object TYPE tadir-object,
obj_name TYPE tadir-obj_name,
devclass TYPE tadir-devclass,
korrnum TYPE tadir-korrnum,
delflag TYPE tadir-delflag,
path TYPE string,
END OF ty_tadir .
TYPES:
ty_tadir_tt TYPE STANDARD TABLE OF ty_tadir WITH DEFAULT KEY .
TYPES:
BEGIN OF ty_result,
obj_type TYPE tadir-object,
obj_name TYPE tadir-obj_name,
inactive TYPE abap_bool,
path TYPE string,
filename TYPE string,
package TYPE devclass,
match TYPE sap_bool,
lstate TYPE char1,
rstate TYPE char1,
END OF ty_result .
TYPES:
ty_results_tt TYPE STANDARD TABLE OF ty_result WITH DEFAULT KEY .
TYPES:
ty_sval_tt TYPE STANDARD TABLE OF sval WITH DEFAULT KEY .
TYPES:
ty_seocompotx_tt TYPE STANDARD TABLE OF seocompotx WITH DEFAULT KEY.
TYPES:
BEGIN OF ty_tpool.
INCLUDE TYPE textpool.
TYPES: split TYPE c LENGTH 8.
TYPES: END OF ty_tpool .
TYPES:
ty_tpool_tt TYPE STANDARD TABLE OF ty_tpool WITH DEFAULT KEY .
TYPES:
BEGIN OF ty_sotr,
header TYPE sotr_head,
entries TYPE sotr_text_tt,
END OF ty_sotr .
TYPES:
ty_sotr_tt TYPE STANDARD TABLE OF ty_sotr WITH DEFAULT KEY .
TYPES:
BEGIN OF ty_obj_attribute,
cmpname TYPE seocmpname,
attkeyfld TYPE seokeyfld,
attbusobj TYPE seobusobj,
END OF ty_obj_attribute,
ty_obj_attribute_tt TYPE STANDARD TABLE OF ty_obj_attribute WITH DEFAULT KEY
WITH NON-UNIQUE SORTED KEY cmpname COMPONENTS cmpname.
TYPES:
BEGIN OF ty_transport_to_branch,
branch_name TYPE string,
commit_text TYPE string,
END OF ty_transport_to_branch .
TYPES: BEGIN OF ty_create,
name TYPE string,
parent TYPE string,
END OF ty_create.
TYPES: BEGIN OF ty_commit,
sha1 TYPE ty_sha1,
parent1 TYPE ty_sha1,
parent2 TYPE ty_sha1,
author TYPE string,
email TYPE string,
time TYPE string,
message TYPE string,
body TYPE stringtab,
branch TYPE string,
merge TYPE string,
tags TYPE stringtab,
create TYPE STANDARD TABLE OF ty_create WITH DEFAULT KEY,
compressed TYPE abap_bool,
END OF ty_commit.
TYPES: ty_commit_tt TYPE STANDARD TABLE OF ty_commit WITH DEFAULT KEY.
CONSTANTS: BEGIN OF c_diff,
insert TYPE c LENGTH 1 VALUE 'I',
delete TYPE c LENGTH 1 VALUE 'D',
update TYPE c LENGTH 1 VALUE 'U',
END OF c_diff.
TYPES: BEGIN OF ty_diff,
patch_flag TYPE abap_bool,
new_num TYPE c LENGTH 6,
new TYPE string,
result TYPE c LENGTH 1,
old_num TYPE c LENGTH 6,
old TYPE string,
short TYPE abap_bool,
beacon TYPE i,
END OF ty_diff.
TYPES: ty_diffs_tt TYPE STANDARD TABLE OF ty_diff WITH DEFAULT KEY.
TYPES: BEGIN OF ty_count,
insert TYPE i,
delete TYPE i,
update TYPE i,
END OF ty_count.
TYPES:
BEGIN OF ty_expanded,
path TYPE string,
name TYPE string,
sha1 TYPE ty_sha1,
chmod TYPE ty_chmod,
END OF ty_expanded .
TYPES:
ty_expanded_tt TYPE STANDARD TABLE OF ty_expanded WITH DEFAULT KEY .
TYPES: BEGIN OF ty_ancestor,
commit TYPE ty_sha1,
tree TYPE ty_sha1,
time TYPE string,
body TYPE string,
END OF ty_ancestor.
TYPES: BEGIN OF ty_merge,
repo TYPE REF TO zcl_abapgit_repo_online,
source TYPE ty_git_branch,
target TYPE ty_git_branch,
common TYPE ty_ancestor,
stree TYPE ty_expanded_tt,
ttree TYPE ty_expanded_tt,
ctree TYPE ty_expanded_tt,
result TYPE ty_expanded_tt,
stage TYPE REF TO zcl_abapgit_stage,
conflict TYPE string,
END OF ty_merge.
TYPES: BEGIN OF ty_merge_conflict,
path TYPE string,
filename TYPE string,
source_sha1 TYPE zif_abapgit_definitions=>ty_sha1,
source_data TYPE xstring,
target_sha1 TYPE zif_abapgit_definitions=>ty_sha1,
target_data TYPE xstring,
result_sha1 TYPE zif_abapgit_definitions=>ty_sha1,
result_data TYPE xstring,
END OF ty_merge_conflict,
tt_merge_conflict TYPE STANDARD TABLE OF ty_merge_conflict WITH DEFAULT KEY.
TYPES: BEGIN OF ty_repo_item,
obj_type TYPE tadir-object,
obj_name TYPE tadir-obj_name,
inactive TYPE abap_bool,
sortkey TYPE i,
path TYPE string,
is_dir TYPE abap_bool,
changes TYPE i,
lstate TYPE char1,
rstate TYPE char1,
files TYPE tt_repo_files,
END OF ty_repo_item.
TYPES tt_repo_items TYPE STANDARD TABLE OF ty_repo_item WITH DEFAULT KEY.
TYPES: BEGIN OF ty_s_user_settings,
max_lines TYPE i,
adt_jump_enabled TYPE abap_bool,
show_default_repo TYPE abap_bool,
link_hints_enabled TYPE abap_bool,
link_hint_key TYPE char01,
link_hint_background_color TYPE string,
hotkeys TYPE tty_hotkey,
END OF ty_s_user_settings.
TYPES:
tty_dokil TYPE STANDARD TABLE OF dokil
WITH NON-UNIQUE DEFAULT KEY.
TYPES: tty_lines TYPE STANDARD TABLE OF i
WITH NON-UNIQUE DEFAULT KEY,
BEGIN OF ty_patch,
filename TYPE string,
lines_new TYPE tty_lines,
lines_old TYPE tty_lines,
END OF ty_patch,
tty_patch TYPE HASHED TABLE OF ty_patch
WITH UNIQUE KEY filename.
CONSTANTS:
BEGIN OF c_type,
commit TYPE zif_abapgit_definitions=>ty_type VALUE 'commit', "#EC NOTEXT
tree TYPE zif_abapgit_definitions=>ty_type VALUE 'tree', "#EC NOTEXT
ref_d TYPE zif_abapgit_definitions=>ty_type VALUE 'ref_d', "#EC NOTEXT
tag TYPE zif_abapgit_definitions=>ty_type VALUE 'tag', "#EC NOTEXT
blob TYPE zif_abapgit_definitions=>ty_type VALUE 'blob', "#EC NOTEXT
END OF c_type .
CONSTANTS:
BEGIN OF c_state, " https://git-scm.com/docs/git-status
unchanged TYPE char1 VALUE '',
added TYPE char1 VALUE 'A',
modified TYPE char1 VALUE 'M',
deleted TYPE char1 VALUE 'D', "For future use
mixed TYPE char1 VALUE '*',
END OF c_state .
CONSTANTS:
BEGIN OF c_chmod,
file TYPE ty_chmod VALUE '100644',
executable TYPE ty_chmod VALUE '100755',
dir TYPE ty_chmod VALUE '40000 ',
END OF c_chmod .
CONSTANTS:
BEGIN OF c_event_state,
not_handled VALUE 0,
re_render VALUE 1,
new_page VALUE 2,
go_back VALUE 3,
no_more_act VALUE 4,
new_page_w_bookmark VALUE 5,
go_back_to_bookmark VALUE 6,
new_page_replacing VALUE 7,
END OF c_event_state .
CONSTANTS:
BEGIN OF c_html_opt,
strong TYPE c VALUE 'E',
cancel TYPE c VALUE 'C',
crossout TYPE c VALUE 'X',
END OF c_html_opt .
CONSTANTS:
BEGIN OF c_action_type,
sapevent TYPE c VALUE 'E',
url TYPE c VALUE 'U',
onclick TYPE c VALUE 'C',
separator TYPE c VALUE 'S',
dummy TYPE c VALUE '_',
END OF c_action_type .
CONSTANTS c_crlf TYPE abap_cr_lf VALUE cl_abap_char_utilities=>cr_lf ##NO_TEXT.
CONSTANTS c_newline TYPE abap_char1 VALUE cl_abap_char_utilities=>newline ##NO_TEXT.
CONSTANTS c_english TYPE spras VALUE 'E' ##NO_TEXT.
CONSTANTS c_root_dir TYPE string VALUE '/' ##NO_TEXT.
CONSTANTS c_dot_abapgit TYPE string VALUE '.abapgit.xml' ##NO_TEXT.
CONSTANTS c_author_regex TYPE string VALUE '^([\\\w\s\.\*\,\#@\-_1-9\(\) ]+) <(.*)> (\d{10})\s?.\d{4}$' ##NO_TEXT.
CONSTANTS:
BEGIN OF c_action,
repo_refresh TYPE string VALUE 'repo_refresh',
repo_remove TYPE string VALUE 'repo_remove',
repo_settings TYPE string VALUE 'repo_settings',
repo_purge TYPE string VALUE 'repo_purge',
repo_newonline TYPE string VALUE 'repo_newonline',
repo_newoffline TYPE string VALUE 'repo_newoffline',
repo_remote_attach TYPE string VALUE 'repo_remote_attach',
repo_remote_detach TYPE string VALUE 'repo_remote_detach',
repo_remote_change TYPE string VALUE 'repo_remote_change',
repo_refresh_checksums TYPE string VALUE 'repo_refresh_checksums',
repo_toggle_fav TYPE string VALUE 'repo_toggle_fav',
repo_transport_to_branch TYPE string VALUE 'repo_transport_to_branch',
repo_syntax_check TYPE string VALUE 'repo_syntax_check',
repo_code_inspector TYPE string VALUE 'repo_code_inspector',
repo_open_in_master_lang TYPE string VALUE 'repo_open_in_master_lang',
abapgit_home TYPE string VALUE 'abapgit_home',
abapgit_install TYPE string VALUE 'abapgit_install',
zip_import TYPE string VALUE 'zip_import',
zip_export TYPE string VALUE 'zip_export',
zip_package TYPE string VALUE 'zip_package',
zip_transport TYPE string VALUE 'zip_transport',
zip_object TYPE string VALUE 'zip_object',
git_pull TYPE string VALUE 'git_pull',
git_reset TYPE string VALUE 'git_reset',
git_branch_create TYPE string VALUE 'git_branch_create',
git_branch_switch TYPE string VALUE 'git_branch_switch',
git_branch_delete TYPE string VALUE 'git_branch_delete',
git_tag_create TYPE string VALUE 'git_tag_create',
git_tag_delete TYPE string VALUE 'git_tag_delete',
git_tag_switch TYPE string VALUE 'git_tag_switch',
git_commit TYPE string VALUE 'git_commit',
db_display TYPE string VALUE 'db_display',
db_edit TYPE string VALUE 'db_edit',
bg_update TYPE string VALUE 'bg_update',
go_main TYPE string VALUE 'go_main',
go_explore TYPE string VALUE 'go_explore',
go_repo_overview TYPE string VALUE 'go_repo_overview',
go_db TYPE string VALUE 'go_db',
go_background TYPE string VALUE 'go_background',
go_background_run TYPE string VALUE 'go_background_run',
go_diff TYPE string VALUE 'go_diff',
go_stage TYPE string VALUE 'go_stage',
go_commit TYPE string VALUE 'go_commit',
go_branch_overview TYPE string VALUE 'go_branch_overview',
go_tag_overview TYPE string VALUE 'go_tag_overview',
go_playground TYPE string VALUE 'go_playground',
go_debuginfo TYPE string VALUE 'go_debuginfo',
go_settings TYPE string VALUE 'go_settings',
go_tutorial TYPE string VALUE 'go_tutorial',
go_patch TYPE string VALUE 'go_patch',
jump TYPE string VALUE 'jump',
jump_pkg TYPE string VALUE 'jump_pkg',
jump_transport TYPE string VALUE 'jump_transport',
url TYPE string VALUE 'url',
END OF c_action .
CONSTANTS:
BEGIN OF c_version,
active TYPE r3state VALUE 'A',
inactive TYPE r3state VALUE 'I',
END OF c_version .
CONSTANTS c_tag_prefix TYPE string VALUE 'refs/tags/' ##NO_TEXT.
CONSTANTS c_spagpa_param_repo_key TYPE char20 VALUE 'REPO_KEY'.
CONSTANTS c_spagpa_param_package TYPE char20 VALUE 'PACKAGE'.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
44731,
13,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
4906,
220,
220,
220,
41876,
269,
406,
49494,
718,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
2545,
26327,
41876,
269,
406,
49494,
807,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
26270,
16,
220,
220,
220,
41876,
269,
406,
49494,
2319,
764,
198,
220,
24412,
47,
1546,
25,
1259,
62,
324,
1754,
2624,
41876,
2124,
406,
49494,
604,
13,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
7753,
62,
12683,
1300,
11,
198,
220,
220,
220,
220,
220,
3108,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
29472,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
427,
64,
16,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
7753,
62,
12683,
1300,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
7753,
62,
12683,
6691,
62,
926,
41876,
49053,
9795,
43679,
3963,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1259,
62,
7753,
62,
12683,
1300,
13315,
5550,
38865,
35374,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
7753,
62,
12683,
6691,
62,
912,
41876,
311,
9863,
1961,
43679,
3963,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1259,
62,
7753,
62,
12683,
1300,
13315,
4725,
33866,
8924,
35374,
3108,
29472,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
7753,
13,
198,
220,
220,
220,
220,
220,
3268,
5097,
52,
7206,
41876,
1259,
62,
7753,
62,
12683,
1300,
13,
198,
220,
24412,
47,
1546,
25,
1366,
41876,
2124,
8841,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
7753,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
16624,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
7753,
13315,
5550,
38865,
35374,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
8841,
62,
926,
41876,
49053,
9795,
43679,
3963,
4731,
13315,
5550,
38865,
35374,
764,
628,
220,
24412,
47,
1546,
25,
1259,
62,
260,
7501,
62,
5420,
62,
926,
41876,
49053,
9795,
43679,
3963,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
13315,
5550,
38865,
35374,
13,
628,
220,
24412,
47,
1546,
1259,
62,
18300,
62,
1671,
3702,
62,
4906,
41876,
1149,
17,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
18300,
62,
1671,
3702,
11,
198,
220,
220,
220,
220,
220,
427,
64,
16,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
11,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
18300,
62,
1671,
3702,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
318,
62,
2256,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
3359,
62,
3672,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
18300,
62,
1671,
3702,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
18300,
62,
1671,
3702,
62,
4868,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
18300,
62,
1671,
3702,
13315,
5550,
38865,
35374,
764,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
18300,
62,
12985,
11,
198,
220,
220,
220,
220,
220,
427,
64,
16,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
11,
198,
220,
220,
220,
220,
220,
2134,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
11,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
18300,
62,
1671,
3702,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
3359,
62,
3672,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
7621,
1362,
62,
3672,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
7621,
1362,
62,
12888,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
3275,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
1767,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
18300,
62,
12985,
764,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
1259,
62,
18300,
62,
12985,
62,
4868,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
18300,
62,
12985,
13315,
5550,
38865,
35374,
764,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
8940,
2539,
11,
198,
220,
220,
220,
220,
220,
8379,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2223,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
8940,
2539,
11,
198,
220,
220,
220,
256,
774,
62,
8940,
2539,
41876,
49053,
9795,
43679,
3963,
1259,
62,
8940,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
13,
628,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
347,
43312,
3963,
269,
62,
18300,
62,
1671,
3702,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
8478,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
18300,
62,
1671,
3702,
62,
4906,
26173,
8924,
705,
10227,
3256,
198,
220,
220,
220,
220,
220,
18700,
62,
12985,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 transaction_abort.
RETURN.
ENDFUNCTION. | [
42296,
4177,
2849,
8611,
62,
397,
419,
13,
198,
220,
30826,
27064,
13,
198,
1677,
8068,
4944,
4177,
2849,
13
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zvgc_cl_test_cadcall DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES if_rap_query_provider .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zvgc_cl_test_cadcall IMPLEMENTATION.
METHOD if_rap_query_provider~select.
" Info:
" Casos para estudiar...
TYPES: t_header TYPE HASHED TABLE OF zvgc_cds_cadcall_h
WITH UNIQUE KEY HeaderId.
TYPES: t_items TYPE HASHED TABLE OF zvgc_cds_cadcall_i
WITH UNIQUE KEY HeaderId PosId.
TYPES :BEGIN OF MESH mh_data,
header TYPE t_header
ASSOCIATION _Item TO items ON HeaderId = HeaderId,
items TYPE t_items,
END OF MESH mh_data.
DATA: lt_mesh TYPE mh_data.
" https://help.sap.com/viewer/923180ddb98240829d935862025004d6/Cloud/en-US/254f68c7d5374e94a88241b7ce3bd414.html
" https://help.sap.com/viewer/923180ddb98240829d935862025004d6/Cloud/en-US/5ab5677116664c31b4a397493d61485e.html
DATA: ex_time_zone TYPE string,
ex_date TYPE string,
ex_time TYPE string,
lt_data TYPE TABLE OF zvgc_cds_cadcall.
TRY.
CALL FUNCTION 'ZVGC_FM_TEST_CADCALL'
IMPORTING
ex_time_zone = ex_time_zone
ex_date = ex_date
ex_time = ex_time.
lt_data = VALUE #( ( ex_time_zone = ex_time_zone ex_date = ex_date ex_time = ex_time ) ).
CATCH cx_root.
ENDTRY.
DATA(lv_top) = io_request->get_paging( )->get_page_size( ).
DATA(lv_skip) = io_request->get_paging( )->get_offset( ).
DATA(lt_clause) = io_request->get_filter( )->get_as_sql_string( ).
DATA(lt_fields) = io_request->get_requested_elements( ).
DATA(lt_sort) = io_request->get_sort_elements( ).
DATA(lv_max_rows) = COND #( WHEN lv_top = if_rap_query_paging=>page_size_unlimited THEN 0
ELSE lv_top ).
TRY.
DATA(lt_filter_cond) = io_request->get_filter( )->get_as_ranges( ).
CATCH cx_rap_query_filter_no_range INTO DATA(lx_no_sel_option).
ENDTRY.
CASE io_request->get_entity_id( ).
WHEN 'ZVGC_CDS_CADCALL' .
DATA(lv_search_string) = io_request->get_search_expression( ).
DATA(lv_search_sql) = |DESCRIPTION LIKE '%{ cl_abap_dyn_prg=>escape_quotes( lv_search_string ) }%'|.
IF io_request->is_data_requested( ).
io_response->set_total_number_of_records( lines( lt_data ) ).
io_response->set_data( lt_data ).
ELSEIF io_request->is_total_numb_of_rec_requested( ).
io_response->set_total_number_of_records( lines( lt_data ) ).
ENDIF.
WHEN 'ZVGC_CDS_CADCALL_H'.
SELECT * FROM zvgc_cds_cadcall_h INTO TABLE @lt_mesh-header.
SELECT \_item-headerid , \_item-posid,
\_item-servcode , \_item-servdescr,
\_item-itemstatus, \_item-partcost,
\_item-labourcode, \_item-labourcat,
\_item-labstarttime, \_item-labendtime
FROM zvgc_cds_cadcall_h INTO TABLE @lt_mesh-items.
DATA(lt_h_f) = lt_mesh-header\_Item[ lt_mesh-header[ HeaderId = '0000000001' ] ].
io_response->set_total_number_of_records( lines( lt_mesh-header ) ).
DATA: lt_h TYPE STANDARD TABLE OF zvgc_T_cadcall_h.
lt_h = VALUE #( FOR line IN lt_mesh-header ( CORRESPONDING #( line ) ) ).
io_response->set_data( lt_h ).
WHEN 'ZVGC_CDS_CADCALL_I'.
SELECT * FROM zvgc_cds_cadcall_i INTO TABLE @DATA(lit_cds_i).
SELECT * FROM zvgc_t_cadcall_i
INTO TABLE @DATA(lt_i).
io_response->set_total_number_of_records( lines( lt_mesh-items ) ).
io_response->set_data( lt_i ).
WHEN OTHERS.
ENDCASE.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
85,
36484,
62,
565,
62,
9288,
62,
66,
324,
13345,
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,
611,
62,
2416,
62,
22766,
62,
15234,
1304,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
85,
36484,
62,
565,
62,
9288,
62,
66,
324,
13345,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
611,
62,
2416,
62,
22766,
62,
15234,
1304,
93,
19738,
13,
628,
220,
220,
220,
366,
14151,
25,
198,
220,
220,
220,
366,
11294,
418,
31215,
1556,
463,
12571,
986,
628,
220,
220,
220,
24412,
47,
1546,
25,
256,
62,
25677,
220,
220,
220,
41876,
367,
11211,
1961,
43679,
3963,
1976,
85,
36484,
62,
66,
9310,
62,
66,
324,
13345,
62,
71,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
35374,
48900,
7390,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
256,
62,
23814,
220,
220,
220,
41876,
367,
11211,
1961,
43679,
3963,
1976,
85,
36484,
62,
66,
9310,
62,
66,
324,
13345,
62,
72,
198,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
35374,
48900,
7390,
18574,
7390,
13,
198,
220,
220,
220,
24412,
47,
1546,
1058,
33,
43312,
3963,
337,
44011,
285,
71,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13639,
41876,
256,
62,
25677,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24994,
4503,
40,
6234,
4808,
7449,
5390,
3709,
6177,
48900,
7390,
796,
48900,
7390,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3709,
220,
41876,
256,
62,
23814,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
337,
44011,
285,
71,
62,
7890,
13,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
76,
5069,
41876,
285,
71,
62,
7890,
13,
628,
220,
220,
220,
366,
3740,
1378,
16794,
13,
82,
499,
13,
785,
14,
1177,
263,
14,
24,
1954,
15259,
1860,
65,
4089,
1731,
2919,
1959,
67,
24,
2327,
4521,
1238,
1495,
22914,
67,
21,
14,
18839,
14,
268,
12,
2937,
14,
24970,
69,
3104,
66,
22,
67,
20,
31020,
68,
5824,
64,
3459,
28872,
65,
22,
344,
18,
17457,
37309,
13,
6494,
198,
220,
220,
220,
366,
3740,
1378,
16794,
13,
82,
499,
13,
785,
14,
1177,
263,
14,
24,
1954,
15259,
1860,
65,
4089,
1731,
2919,
1959,
67,
24,
2327,
4521,
1238,
1495,
22914,
67,
21,
14,
18839,
14,
268,
12,
2937,
14,
20,
397,
20,
40179,
1157,
2791,
2414,
66,
3132,
65,
19,
64,
33372,
43134,
67,
46841,
5332,
68,
13,
6494,
628,
220,
220,
220,
42865,
25,
409,
62,
2435,
62,
11340,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
409,
62,
4475,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
409,
62,
2435,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
7890,
220,
220,
220,
220,
220,
41876,
43679,
3963,
1976,
85,
36484,
62,
66,
9310,
62,
66,
324,
13345,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
57,
53,
15916,
62,
23264,
62,
51,
6465,
62,
34,
2885,
34,
7036,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
409,
62,
2435,
62,
11340,
796,
409,
62,
2435,
62,
11340,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
409,
62,
4475,
220,
220,
220,
220,
220,
796,
409,
62,
4475,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
409,
62,
2435,
220,
220,
220,
220,
220,
796,
409,
62,
2435,
13,
628,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
7890,
796,
26173,
8924,
1303,
7,
357,
409,
62,
2435,
62,
11340,
796,
409,
62,
2435,
62,
11340,
409,
62,
4475,
796,
409,
62,
4475,
220,
409,
62,
2435,
796,
220,
409,
62,
2435,
1267,
6739,
628,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
15763,
13,
628,
220,
220,
220,
23578,
40405,
13,
628,
220,
220,
220,
42865,
7,
6780,
62,
4852,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
33245,
62,
25927,
3784,
1136,
62,
79,
3039,
7,
1267,
3784,
1136,
62,
7700,
62,
7857,
7,
6739,
198,
220,
220,
220,
42865,
7,
6780,
62,
48267,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
33245,
62,
25927,
3784,
1136,
62,
79,
3039,
7,
1267,
3784,
1136,
62,
28968,
7,
6739,
198,
220,
220,
220,
42865,
7,
2528,
62,
565,
682,
8,
220,
220,
220,
220,
220,
220,
220,
796,
33245,
62,
25927,
3784,
1136,
62,
24455,
7,
1267,
3784,
1136,
62,
292,
62,
25410,
62,
8841,
7,
6739,
198,
220,
220,
220,
42865,
7,
2528,
62,
25747,
8,
220,
220,
220,
220,
220,
220,
220,
796,
33245,
62,
25927,
3784,
1136,
62,
25927,
276,
62,
68,
3639,
7,
6739,
198,
220,
220,
220,
42865,
7,
2528,
62,
30619,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
33245,
62,
25927,
3784,
1136,
62,
30619,
62,
68,
3639,
7,
6739,
628,
220,
220,
220,
42865,
7,
6780,
62,
9806,
62,
8516,
8,
220,
796,
7102,
35,
1303,
7,
42099,
300,
85,
62,
4852,
796,
611,
62,
2416,
62,
22766,
62,
79,
3039,
14804,
7700,
62,
7857,
62,
403,
10698,
42243,
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,
17852,
5188,
300,
85,
62,
4852,
6739,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220
] | [
1,
1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ASS zcl_abapgit_object_enhs_hook_d DEFINITION PUBLIC.
PUBLIC SECTION.
INTERFACES: zif_abapgit_object_enhs.
PRIVATE SECTION.
TYPES: BEGIN OF ty_hook_defifnition,
pgmid TYPE pgmid,
obj_name TYPE trobj_name,
obj_type TYPE trobjtype,
main_type TYPE trobjtype,
main_name TYPE eu_aname,
program TYPE progname,
def_hooks TYPE enh_hook_def_ext_it,
END OF ty_hook_defifnition.
ENDCLASS.
CLASS zcl_abapgit_object_enhs_hook_d IMPLEMENTATION.
METHOD zif_abapgit_object_enhs~deserialize.
DATA: lv_enh_shorttext TYPE string,
ls_enh_hook_definition TYPE enh_hook_def,
ls_hook_definition TYPE ty_hook_defifnition,
li_enh_object TYPE REF TO if_enh_object,
li_enh_object_docu TYPE REF TO if_enh_object_docu,
lo_hookdef_tool TYPE REF TO cl_enh_tool_hook_def,
lx_error TYPE REF TO cx_enh_root,
lv_text TYPE string.
FIELD-SYMBOLS: <ls_hook_definition> TYPE enh_hook_def_ext.
io_xml->read( EXPORTING iv_name = 'SHORTTEXT'
CHANGING cg_data = lv_enh_shorttext ).
io_xml->read( EXPORTING iv_name = 'BADI_DATA'
CHANGING cg_data = ls_hook_definition ).
li_enh_object ?= ii_enh_spot_tool.
li_enh_object_docu ?= ii_enh_spot_tool.
TRY.
li_enh_object_docu->set_shorttext( lv_enh_shorttext ).
lo_hookdef_tool ?= ii_enh_spot_tool.
lo_hookdef_tool->set_original_object( pgmid = ls_hook_definition-pgmid
obj_name = ls_hook_definition-obj_name
obj_type = ls_hook_definition-obj_type
program = ls_hook_definition-program
main_type = ls_hook_definition-main_type
main_name = ls_hook_definition-main_name ).
LOOP AT ls_hook_definition-def_hooks ASSIGNING <ls_hook_definition>.
MOVE-CORRESPONDING <ls_hook_definition> TO ls_enh_hook_definition.
lo_hookdef_tool->add_hook_def( ls_enh_hook_definition ).
ENDLOOP.
li_enh_object->save( ).
li_enh_object->activate( ).
li_enh_object->unlock( ).
CATCH cx_enh_root INTO lx_error.
lv_text = lx_error->get_text( ).
zcx_abapgit_exception=>raise( lv_text ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object_enhs~serialize.
DATA: lo_hookdef_tool TYPE REF TO cl_enh_tool_hook_def,
lv_enh_shorttext TYPE string,
li_enh_object_docu TYPE REF TO if_enh_object_docu,
ls_hook_definition TYPE ty_hook_defifnition.
lo_hookdef_tool ?= ii_enh_spot_tool.
li_enh_object_docu ?= ii_enh_spot_tool.
lv_enh_shorttext = li_enh_object_docu->get_shorttext( ).
ls_hook_definition-def_hooks = lo_hookdef_tool->get_hook_defs( ).
lo_hookdef_tool->get_original_object(
IMPORTING
pgmid = ls_hook_definition-pgmid
obj_name = ls_hook_definition-obj_name
obj_type = ls_hook_definition-obj_type
main_type = ls_hook_definition-main_type
main_name = ls_hook_definition-main_name
program = ls_hook_definition-program ).
io_xml->add( ig_data = ii_enh_spot_tool->get_tool( )
iv_name = 'TOOL' ).
io_xml->add( ig_data = lv_enh_shorttext
iv_name = 'SHORTTEXT' ).
io_xml->add( ig_data = ls_hook_definition
iv_name = 'BADI_DATA' ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
268,
11994,
62,
25480,
62,
67,
5550,
20032,
17941,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
1976,
361,
62,
397,
499,
18300,
62,
15252,
62,
268,
11994,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
25480,
62,
4299,
361,
77,
653,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23241,
13602,
220,
220,
220,
220,
41876,
23241,
13602,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
3672,
220,
41876,
4161,
50007,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
4906,
220,
41876,
4161,
50007,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1388,
62,
4906,
41876,
4161,
50007,
4906,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1388,
62,
3672,
41876,
304,
84,
62,
272,
480,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1430,
220,
220,
41876,
1172,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
825,
62,
25480,
82,
41876,
5881,
62,
25480,
62,
4299,
62,
2302,
62,
270,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
25480,
62,
4299,
361,
77,
653,
13,
198,
198,
10619,
31631,
13,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
268,
11994,
62,
25480,
62,
67,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
62,
268,
11994,
93,
8906,
48499,
1096,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
16550,
62,
19509,
5239,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
16550,
62,
25480,
62,
46758,
41876,
5881,
62,
25480,
62,
4299,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
25480,
62,
46758,
220,
220,
220,
220,
41876,
1259,
62,
25480,
62,
4299,
361,
77,
653,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
16550,
62,
15252,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
16550,
62,
15252,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
16550,
62,
15252,
62,
15390,
84,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
16550,
62,
15252,
62,
15390,
84,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
25480,
4299,
62,
25981,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
16550,
62,
25981,
62,
25480,
62,
4299,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
87,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
43213,
62,
16550,
62,
15763,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
5239,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
25480,
62,
46758,
29,
41876,
5881,
62,
25480,
62,
4299,
62,
2302,
13,
628,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
9693,
9863,
32541,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
70,
62,
7890,
796,
300,
85,
62,
16550,
62,
19509,
5239,
6739,
628,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
33,
2885,
40,
62,
26947,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
70,
62,
7890,
796,
43979,
62,
25480,
62,
46758,
6739,
628,
220,
220,
220,
7649,
62,
16550,
62,
15252,
5633,
28,
21065,
62,
16550,
62,
20485,
62,
25981,
13,
198,
220,
220,
220,
7649,
62,
16550,
62,
15252,
62,
15390,
84,
5633,
28,
21065,
62,
16550,
62,
20485,
62,
25981,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
7649,
62,
16550,
62,
15252,
62,
15390,
84,
3784,
2617,
62,
19509,
5239,
7,
300,
85,
62,
16550,
62,
19509,
5239,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
25480,
4299,
62,
25981,
5633,
28,
21065,
62,
16550,
62,
20485,
62,
25981,
13,
628,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
25480,
4299,
62,
25981,
3784,
2617,
62,
14986,
62,
15252,
7,
23241,
13602,
220,
220,
220,
220,
796,
43979,
62,
25480,
62,
46758,
12,
6024,
13602,
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,
26181,
62,
3672,
220,
796,
43979,
62,
25480,
62,
46758,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
62,
4906,
220,
796,
43979,
62,
25480,
62,
46758,
12,
26801,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1430,
220,
220,
796,
43979,
62,
25480,
62,
46758,
12,
23065,
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,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S-METHODS read_tadir_sicf
IMPORTING
!iv_pgmid TYPE tadir-pgmid DEFAULT 'R3TR'
!iv_obj_name TYPE tadir-obj_name
RETURNING
VALUE(rs_tadir) TYPE zif_abapgit_definitions=>ty_tadir
RAISING
zcx_abapgit_exception .
CLASS-METHODS read_sicf_url
IMPORTING
!iv_obj_name TYPE tadir-obj_name
RETURNING
VALUE(rv_hash) TYPE ty_hash
RAISING
zcx_abapgit_exception .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
ty_icfhandler_tt TYPE STANDARD TABLE OF icfhandler WITH DEFAULT KEY .
TYPES:
BEGIN OF ty_sicf_key,
icf_name TYPE icfservice-icf_name,
icfparguid TYPE icfservice-icfparguid,
END OF ty_sicf_key .
METHODS read
IMPORTING
!iv_clear TYPE abap_bool DEFAULT abap_true
EXPORTING
!es_icfservice TYPE icfservice
!es_icfdocu TYPE icfdocu
!et_icfhandler TYPE ty_icfhandler_tt
!ev_url TYPE string
RAISING
zcx_abapgit_exception .
METHODS insert_sicf
IMPORTING
!is_icfservice TYPE icfservice
!is_icfdocu TYPE icfdocu
!it_icfhandler TYPE ty_icfhandler_tt
!iv_package TYPE devclass
!iv_url TYPE string
RAISING
zcx_abapgit_exception .
METHODS change_sicf
IMPORTING
!is_icfservice TYPE icfservice
!is_icfdocu TYPE icfdocu
!it_icfhandler TYPE ty_icfhandler_tt
!iv_package TYPE devclass
!iv_parent TYPE icfparguid
RAISING
zcx_abapgit_exception .
METHODS to_icfhndlist
IMPORTING
!it_list TYPE ty_icfhandler_tt
RETURNING
VALUE(rt_list) TYPE icfhndlist .
METHODS find_parent
IMPORTING
!iv_url TYPE string
RETURNING
VALUE(rv_parent) TYPE icfparguid
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_SICF IMPLEMENTATION.
METHOD change_sicf.
DATA: lt_icfhndlist TYPE icfhndlist,
lt_existing TYPE TABLE OF icfhandler,
ls_icfserdesc TYPE icfserdesc.
FIELD-SYMBOLS: <ls_existing> LIKE LINE OF lt_existing.
lt_icfhndlist = to_icfhndlist( it_icfhandler ).
* Do not add handlers if they already exist, it will make the below
* call to SAP standard code raise an exception
SELECT * FROM icfhandler INTO TABLE lt_existing
WHERE icf_name = is_icfservice-icf_name.
LOOP AT lt_existing ASSIGNING <ls_existing>.
DELETE TABLE lt_icfhndlist FROM <ls_existing>-icfhandler.
ENDLOOP.
MOVE-CORRESPONDING is_icfservice TO ls_icfserdesc.
cl_icf_tree=>if_icf_tree~change_node(
EXPORTING
icf_name = is_icfservice-orig_name
icfparguid = iv_parent
icfdocu = is_icfdocu
doculang = mv_language
icfhandlst = lt_icfhndlist
package = iv_package
application = space
icfserdesc = ls_icfserdesc
icfactive = abap_true
EXCEPTIONS
empty_icf_name = 1
no_new_virtual_host = 2
special_service_error = 3
parent_not_existing = 4
enqueue_error = 5
node_already_existing = 6
empty_docu = 7
doculang_not_installed = 8
security_info_error = 9
user_password_error = 10
password_encryption_error = 11
invalid_url = 12
invalid_otr_concept = 13
formflg401_error = 14
handler_error = 15
transport_error = 16
tadir_error = 17
package_not_found = 18
wrong_application = 19
not_allow_application = 20
no_application = 21
invalid_icfparguid = 22
alt_name_invalid = 23
alternate_name_exist = 24
wrong_icf_name = 25
no_authority = 26
OTHERS = 27 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |SICF - error from change_node. Subrc = { sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD find_parent.
cl_icf_tree=>if_icf_tree~service_from_url(
EXPORTING
url = iv_url
hostnumber = 0
IMPORTING
icfnodguid = rv_parent
EXCEPTIONS
wrong_application = 1
no_application = 2
not_allow_application = 3
wrong_url = 4
no_authority = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |SICF - error from service_from_url. Subrc = { sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD insert_sicf.
DATA: lt_icfhndlist TYPE icfhndlist,
ls_icfserdesc TYPE icfserdesc,
ls_icfdocu TYPE icfdocu,
lv_parent TYPE icfparguid.
lt_icfhndlist = to_icfhndlist( it_icfhandler ).
lv_parent = find_parent( iv_url ).
* nice, it seems that the structure should be mistreated
ls_icfdocu = is_icfdocu-icf_docu.
MOVE-CORRESPONDING is_icfservice TO ls_icfserdesc.
cl_icf_tree=>if_icf_tree~insert_node(
EXPORTING
icf_name = is_icfservice-orig_name
icfparguid = lv_parent
icfdocu = ls_icfdocu
doculang = mv_language
icfhandlst = lt_icfhndlist
package = iv_package
application = space
icfserdesc = ls_icfserdesc
icfactive = abap_true
icfaltnme = is_icfservice-icfaltnme
EXCEPTIONS
empty_icf_name = 1
no_new_virtual_host = 2
special_service_error = 3
parent_not_existing = 4
enqueue_error = 5
node_already_existing = 6
empty_docu = 7
doculang_not_installed = 8
security_info_error = 9
user_password_error = 10
password_encryption_error = 11
invalid_url = 12
invalid_otr_concept = 13
formflg401_error = 14
handler_error = 15
transport_error = 16
tadir_error = 17
package_not_found = 18
wrong_application = 19
not_allow_application = 20
no_application = 21
invalid_icfparguid = 22
alt_name_invalid = 23
alternate_name_exist = 24
wrong_icf_name = 25
no_authority = 26
OTHERS = 27 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |SICF - error from insert_node: { sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD read.
DATA: lt_serv_info TYPE icfservtbl,
ls_serv_info LIKE LINE OF lt_serv_info,
ls_key TYPE ty_sicf_key.
FIELD-SYMBOLS: <ls_icfhandler> LIKE LINE OF et_icfhandler.
CLEAR es_icfservice.
CLEAR es_icfdocu.
CLEAR et_icfhandler.
CLEAR ev_url.
ls_key = read_tadir_sicf( ms_item-obj_name )-obj_name.
cl_icf_tree=>if_icf_tree~get_info_from_serv(
EXPORTING
icf_name = ls_key-icf_name
icfparguid = ls_key-icfparguid
icf_langu = mv_language
IMPORTING
serv_info = lt_serv_info
icfdocu = es_icfdocu
url = ev_url
EXCEPTIONS
wrong_name = 1
wrong_parguid = 2
incorrect_service = 3
no_authority = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |SICF - error from get_info_from_serv. Subrc = { sy-subrc }| ).
ENDIF.
ASSERT lines( lt_serv_info ) = 1.
READ TABLE lt_serv_info INDEX 1 INTO ls_serv_info.
ASSERT sy-subrc = 0.
MOVE-CORRESPONDING ls_serv_info-service TO es_icfservice.
IF iv_clear = abap_true.
CLEAR es_icfservice-icf_cuser.
CLEAR es_icfservice-icf_cdate.
CLEAR es_icfservice-icf_muser.
CLEAR es_icfservice-icf_mdate.
ENDIF.
CLEAR es_icfdocu-icfparguid.
APPEND LINES OF ls_serv_info-handlertbl TO et_icfhandler.
LOOP AT et_icfhandler ASSIGNING <ls_icfhandler>.
CLEAR <ls_icfhandler>-icfparguid.
ENDLOOP.
ENDMETHOD.
METHOD read_sicf_url.
* note: this method is called dynamically from some places
DATA: lv_name TYPE icfname,
lv_url TYPE string,
lv_parguid TYPE icfparguid.
lv_name = iv_obj_name.
lv_parguid = iv_obj_name+15.
cl_icf_tree=>if_icf_tree~get_info_from_serv(
EXPORTING
icf_name = lv_name
icfparguid = lv_parguid
IMPORTING
url = lv_url
EXCEPTIONS
wrong_name = 1
wrong_parguid = 2
incorrect_service = 3
no_authority = 4
OTHERS = 5 ).
IF sy-subrc = 0.
rv_hash = zcl_abapgit_hash=>sha1_raw( zcl_abapgit_convert=>string_to_xstring_utf8( lv_url ) ).
ENDIF.
ENDMETHOD.
METHOD read_tadir_sicf.
* note: this method is called dynamically from some places
DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt,
lv_hash TYPE ty_hash,
lv_obj_name TYPE tadir-obj_name.
FIELD-SYMBOLS: <ls_tadir> LIKE LINE OF lt_tadir.
lv_hash = iv_obj_name+15.
CONCATENATE iv_obj_name(15) '%' INTO lv_obj_name.
SELECT * FROM tadir INTO CORRESPONDING FIELDS OF TABLE lt_tadir
WHERE pgmid = iv_pgmid
AND object = 'SICF'
AND obj_name LIKE lv_obj_name
ORDER BY PRIMARY KEY. "#EC CI_GENBUFF
LOOP AT lt_tadir ASSIGNING <ls_tadir>.
IF read_sicf_url( <ls_tadir>-obj_name ) = lv_hash.
rs_tadir = <ls_tadir>.
RETURN.
ENDIF.
ENDLOOP.
IF lines( lt_tadir ) = 1.
READ TABLE lt_tadir INDEX 1 ASSIGNING <ls_tadir>.
ASSERT sy-subrc = 0.
rs_tadir = <ls_tadir>.
ENDIF.
ENDMETHOD.
METHOD to_icfhndlist.
FIELD-SYMBOLS: <ls_list> LIKE LINE OF it_list.
* convert to sorted table
LOOP AT it_list ASSIGNING <ls_list>.
INSERT <ls_list>-icfhandler INTO TABLE rt_list.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
DATA: ls_icfservice TYPE icfservice.
read( EXPORTING iv_clear = abap_false
IMPORTING es_icfservice = ls_icfservice ).
rv_user = ls_icfservice-icf_muser.
IF rv_user IS INITIAL.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: ls_icfservice TYPE icfservice.
read( IMPORTING es_icfservice = ls_icfservice ).
IF ls_icfservice IS INITIAL.
" It seems that the ICF service doesn't exist anymore.
" But that's ok, because some objects like SAPC manage
" the lifecycle of its ICF service by itself and already
" deleted the service.
RETURN.
ENDIF.
IF ls_icfservice-icfparguid CO '0'.
" not supported by the SAP standard API
zcx_abapgit_exception=>raise( 'SICF - cannot delete root node, delete node manually' ).
ENDIF.
" Delete Application Customizing Data the hard way, as it isn't done by the API.
" If we wouldn't we would get errors from the API if entrys exist.
" Transaction SICF does the same.
DELETE FROM icfapplcust
WHERE icf_name = ls_icfservice-icf_name
AND icfparguid = ls_icfservice-icfparguid.
cl_icf_tree=>if_icf_tree~delete_node(
EXPORTING
icfparguid = ls_icfservice-icfparguid
CHANGING
icf_name = ls_icfservice-icf_name
EXCEPTIONS
no_virtual_host_delete = 1
special_service_error = 2
enqueue_error = 3
node_not_existing = 4
node_has_childs = 5
node_is_aliased = 6
node_not_in_original_system = 7
transport_error = 8
tadir_error = 9
db_error = 10
no_authority = 11
OTHERS = 12 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |SICF - error from delete_node. Subrc = { sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: ls_icfservice TYPE icfservice,
ls_read TYPE icfservice,
ls_icfdocu TYPE icfdocu,
lv_url TYPE string,
lv_exists TYPE abap_bool,
lt_icfhandler TYPE TABLE OF icfhandler.
io_xml->read( EXPORTING iv_name = 'URL'
CHANGING cg_data = lv_url ).
io_xml->read( EXPORTING iv_name = 'ICFSERVICE'
CHANGING cg_data = ls_icfservice ).
io_xml->read( EXPORTING iv_name = 'ICFDOCU'
CHANGING cg_data = ls_icfdocu ).
io_xml->read( EXPORTING iv_name = 'ICFHANDLER_TABLE'
CHANGING cg_data = lt_icfhandler ).
lv_exists = zif_abapgit_object~exists( ).
IF lv_exists = abap_false.
insert_sicf( is_icfservice = ls_icfservice
is_icfdocu = ls_icfdocu
it_icfhandler = lt_icfhandler
iv_package = iv_package
iv_url = lv_url ).
ELSE.
read( IMPORTING es_icfservice = ls_read ).
change_sicf( is_icfservice = ls_icfservice
is_icfdocu = ls_icfdocu
it_icfhandler = lt_icfhandler
iv_package = iv_package
iv_parent = ls_read-icfparguid ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: ls_tadir TYPE zif_abapgit_definitions=>ty_tadir,
ls_key TYPE ty_sicf_key.
ls_tadir = read_tadir_sicf( ms_item-obj_name ).
rv_bool = boolc( NOT ls_tadir IS INITIAL ).
IF rv_bool = abap_true.
ls_key = ls_tadir-obj_name.
SELECT SINGLE icfaltnme FROM icfservice INTO ls_key-icf_name
WHERE icf_name = ls_key-icf_name
AND icfparguid = ls_key-icfparguid.
rv_bool = boolc( sy-subrc = 0 ).
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_argument TYPE seqg3-garg.
lv_argument = ms_item-obj_name(15).
lv_argument+15(1) = '*'.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESICFSER'
iv_argument = lv_argument ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
DATA: ls_bcdata TYPE bdcdata,
lt_bcdata TYPE STANDARD TABLE OF bdcdata.
ls_bcdata-program = 'RSICFTREE'.
ls_bcdata-dynpro = '1000'.
ls_bcdata-dynbegin = 'X'.
APPEND ls_bcdata TO lt_bcdata.
ls_bcdata-dynpro = space.
ls_bcdata-dynbegin = space.
ls_bcdata-fnam = 'ICF_SERV'.
ls_bcdata-fval = ms_item-obj_name.
APPEND ls_bcdata TO lt_bcdata.
ls_bcdata-fnam = 'BDC_OKCODE'.
ls_bcdata-fval = '=ONLI'.
APPEND ls_bcdata TO lt_bcdata.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
STARTING NEW TASK 'GIT'
EXPORTING
tcode = 'SICF'
mode_val = 'E'
TABLES
using_tab = lt_bcdata
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from ABAP4_CALL_TRANSACTION, SICF' ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: ls_icfservice TYPE icfservice,
ls_icfdocu TYPE icfdocu,
lv_url TYPE string,
lt_icfhandler TYPE TABLE OF icfhandler.
read( IMPORTING es_icfservice = ls_icfservice
es_icfdocu = ls_icfdocu
et_icfhandler = lt_icfhandler
ev_url = lv_url ).
IF ls_icfservice IS INITIAL.
RETURN.
ENDIF.
CLEAR ls_icfservice-icf_mandt.
CLEAR ls_icfservice-icfnodguid.
CLEAR ls_icfservice-icfparguid.
CLEAR ls_icfservice-icf_user.
CLEAR ls_icfservice-icf_cclnt.
CLEAR ls_icfservice-icf_mclnt.
CLEAR ls_icfservice-icfaltnme_orig.
io_xml->add( iv_name = 'URL'
ig_data = lv_url ).
io_xml->add( iv_name = 'ICFSERVICE'
ig_data = ls_icfservice ).
io_xml->add( iv_name = 'ICFDOCU'
ig_data = ls_icfdocu ).
io_xml->add( iv_name = 'ICFHANDLER_TABLE'
ig_data = lt_icfhandler ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
21383,
69,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
764,
628,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
764,
628,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
17831,
41876,
269,
406,
49494,
1679,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
1100,
62,
83,
324,
343,
62,
21383,
69,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
6024,
13602,
220,
220,
220,
220,
220,
220,
41876,
36264,
343,
12,
6024,
13602,
5550,
38865,
705,
49,
18,
5446,
6,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26801,
62,
3672,
220,
220,
220,
41876,
36264,
343,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
83,
324,
343,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
83,
324,
343,
198,
220,
220,
220,
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,
1100,
62,
21383,
69,
62,
6371,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26801,
62,
3672,
220,
220,
41876,
36264,
343,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
17831,
8,
41876,
1259,
62,
17831,
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,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
291,
69,
30281,
62,
926,
41876,
49053,
9795,
43679,
3963,
14158,
69,
30281,
13315,
5550,
38865,
35374,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
21383,
69,
62,
2539,
11,
198,
220,
220,
220,
220,
220,
220,
220,
14158,
69,
62,
3672,
220,
220,
41876,
14158,
69,
15271,
12,
291,
69,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
14158,
46428,
853,
27112,
41876,
14158,
69,
15271,
12,
291,
46428,
853,
27112,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
21383,
69,
62,
2539,
764,
628,
220,
220,
220,
337,
36252,
50,
1100,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
20063,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
274,
62,
291,
69,
15271,
41876,
14158,
69,
15271,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
274,
62,
291,
69,
15390,
84,
220,
220,
220,
41876,
14158,
69,
15390,
84,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
316,
62,
291,
69,
30281,
41876,
1259,
62,
291,
69,
30281,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
1990,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
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,
7550,
62,
21383,
69,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
291,
69,
15271,
41876,
14158,
69,
15271,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
291,
69,
15390,
84,
220,
220,
220,
41876,
14158,
69,
15390,
84,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
291,
69,
30281,
41876,
1259,
62,
291,
69,
30281,
62,
926,
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,
452,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
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,
1487,
62,
21383,
69,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
291,
69,
15271,
41876,
14158,
69,
15271,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
291,
69,
15390,
84,
220,
220,
220,
41876,
14158,
69,
15390,
84,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
291,
69,
30281,
41876,
1259,
62,
291,
69,
30281,
62,
926,
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,
452,
62,
8000,
220,
220,
220,
220,
41876,
14158,
46428,
853,
27112,
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,
291,
69,
71,
358,
4868,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
4868,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
291,
69,
30281,
62,
926,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ZSFBH
*&---------------------------------------------------------------------*
*&
*& SAPscript forms breakdown helper
*&
*& latest developer version
*&
*& written by Michael Keller
*&
*& This tool helps analysing SAPscript forms. Have a look at my blog
*& on SAP Community Network for more details.
*&
*& Disclaimer: I do not take any responsibility and I am not liable for
*& any damage caused through use of this tool.
*&
*&---------------------------------------------------------------------*
REPORT zsfbh MESSAGE-ID sy.
TYPE-POOLS: icon,
vrm.
INCLUDE <cl_alv_control>.
TABLES sscrfields.
CONSTANTS gc_vinfo TYPE text30 VALUE '2018.x-01 (xx.xx.2018)'.
CONSTANTS: gc_burl1(23) TYPE c VALUE 'https://blogs.sap.com',
gc_burl2(32) TYPE c VALUE '/2016/09/19/',
gc_burl3(32) TYPE c VALUE 'sapscript-forms-breakdown-tool/'.
CONSTANTS: gc_yes TYPE xfeld VALUE 'X',
gc_no TYPE xfeld VALUE space.
CONSTANTS: gc_enabled TYPE char1 VALUE '1',
gc_disabled TYPE char1 VALUE '0'.
CONSTANTS: gc_rc_error TYPE sysubrc VALUE 4.
CLASS lcl_event_handler DEFINITION DEFERRED.
TYPES: BEGIN OF operand,
operand TYPE tdline,
END OF operand.
TYPES: operands TYPE TABLE OF operand.
TYPES: BEGIN OF operator,
operator TYPE tdline,
END OF operator.
TYPES: operators TYPE TABLE OF operator.
TYPES: BEGIN OF symbol,
symbol TYPE tdsymbname,
type TYPE char4,
tabclass TYPE tabclass,
tabname TYPE tabname,
tabart TYPE tabart,
ddtext TYPE ddtext,
END OF symbol.
TYPES: symbols TYPE TABLE OF symbol.
DATA: gt_fcat TYPE lvc_t_fcat,
gt_filter TYPE lvc_t_filt,
gr_grid TYPE REF TO cl_gui_alv_grid,
gr_evhdl TYPE REF TO lcl_event_handler,
gt_dd02v TYPE TABLE OF dd02v,
gt_dd09l TYPE TABLE OF dd09l.
DATA: gv_nobr_space TYPE c LENGTH 1.
DATA: BEGIN OF gs_form,
header TYPE thead,
lines TYPE TABLE OF tline,
pages TYPE TABLE OF itctg,
pwins TYPE TABLE OF itcth,
paras TYPE TABLE OF itcdp,
strings TYPE TABLE OF itcds,
tabs TYPE TABLE OF itcdq,
windows TYPE TABLE OF itctw,
symbols TYPE symbols,
END OF gs_form.
DATA: BEGIN OF gt_data OCCURS 100,
mark TYPE xfeld,
row TYPE tdrow,
window TYPE tdwindow,
format TYPE tdformat,
colexpic TYPE icon_d,
colexpfn TYPE uffilter,
adapted TYPE tdline,
acomment TYPE text1024, " auto comment
ucomment TYPE text1024, " user comment
original TYPE tdline,
symbol1 TYPE tdline,
symbol2 TYPE tdline,
symbol3 TYPE tdline,
symbol4 TYPE tdline,
symbol5 TYPE tdline,
symbol6 TYPE tdline,
symbol7 TYPE tdline,
symbol8 TYPE tdline,
symbol9 TYPE tdline,
level TYPE i,
mccabe1 TYPE numc5,
mccabe2 TYPE numc5,
color TYPE lvc_t_scol,
style TYPE lvc_t_styl.
DATA: END OF gt_data.
DATA: BEGIN OF gt_mark OCCURS 5,
tabix TYPE sytabix.
DATA: END OF gt_mark.
DATA: BEGIN OF gs_stats,
locphy TYPE numc5, " number of physical lines
locpro TYPE numc5, " number of program lines
locprp TYPE numc3,
loccom TYPE numc5, " number of commented lines
loccop TYPE numc3,
locbl TYPE numc5, " number of blank lines
locblp TYPE numc3,
numwin TYPE numc3, " number of windows
numtel TYPE numc3, " number of text elements
ssyst TYPE numc3, " number of system symbols
sstnd TYPE numc3, " number of standard symbols
sprog TYPE numc3, " number of program symbols
sform TYPE numc3, " number of symbols defined in form
mccab1 TYPE numc5, " cyclomatic complexity (single precision)
mccab2 TYPE numc5, " cyclomatic complexity (double precision)
hsopt TYPE operators, " Halstead operators
hsopd TYPE operands, " Halstead operands
hsln1 TYPE numc5, " Halstead n1
hsln2 TYPE numc5, " Halstead n2
hsbn1 TYPE numc5, " Halstead N1
hsbn2 TYPE numc5, " Halstead N2
hsprv TYPE numc5, " Halstead program vocabulary
hsprl TYPE numc5, " Halstead program length
hsvol TYPE numc5, " Halstead volume
hsdif TYPE numc5, " Halstead difficulty
hseff TYPE numc5, " Halstead effort
hstti TYPE numc5, " Halstead time to implement
END OF gs_stats.
* commands used in SAPscript
DATA: BEGIN OF gt_sscmd OCCURS 40,
command TYPE tdline.
DATA: END OF gt_sscmd.
* form selection
SELECTION-SCREEN: BEGIN OF BLOCK bl_form WITH FRAME TITLE gv_tx005,
BEGIN OF LINE,
COMMENT 1(20) gv_tx000,
POSITION 25.
PARAMETERS: pa_mandt LIKE gs_form-header-mandt
DEFAULT sy-mandt
MATCHCODE OBJECT salv_bs_mandt.
SELECTION-SCREEN: END OF LINE,
BEGIN OF LINE,
COMMENT 1(20) gv_tx001,
POSITION 25.
PARAMETERS: pa_fname TYPE tdform
MEMORY ID txf
VISIBLE LENGTH 15.
SELECTION-SCREEN: PUSHBUTTON 44(20) pb_fshow USER-COMMAND form_show
VISIBLE LENGTH 4,
PUSHBUTTON 50(20) pb_fedit USER-COMMAND form_edit
VISIBLE LENGTH 4,
END OF LINE,
BEGIN OF LINE,
COMMENT 1(20) gv_tx002,
POSITION 25.
PARAMETERS: pa_flang TYPE tdspras
MEMORY ID txl
DEFAULT sy-langu
MATCHCODE OBJECT h_t002.
SELECTION-SCREEN: END OF LINE,
BEGIN OF LINE,
COMMENT 1(20) gv_tx003,
POSITION 25.
PARAMETERS: pa_wname TYPE txline.
SELECTION-SCREEN: END OF LINE,
BEGIN OF LINE,
COMMENT 1(20) gv_tx004,
POSITION 25.
PARAMETERS: pa_tname TYPE txline.
SELECTION-SCREEN: END OF LINE,
BEGIN OF LINE,
COMMENT 1(20) gv_tx026,
POSITION 25.
PARAMETERS: pa_prprg TYPE syrepid
MEMORY ID zsfbh_prprg.
SELECTION-SCREEN: END OF LINE,
END OF BLOCK bl_form.
* color selection
SELECTION-SCREEN: BEGIN OF BLOCK bl_colors WITH FRAME TITLE gv_tx006,
BEGIN OF LINE,
COMMENT 1(10) gv_tx007,
POSITION 11.
PARAMETERS: pa_form1 TYPE tdformat DEFAULT '/W'.
SELECTION-SCREEN: COMMENT 16(5) gv_tx008,
POSITION 22.
PARAMETERS: pa_clrp1 TYPE text12
DEFAULT '500'
AS LISTBOX
VISIBLE LENGTH 12
USER-COMMAND clrp1.
SELECTION-SCREEN: COMMENT 36(10) gv_tx019,
POSITION 47.
PARAMETERS: pa_colr1 TYPE numc3 DEFAULT '500'.
SELECTION-SCREEN: END OF LINE,
BEGIN OF LINE,
COMMENT 1(10) gv_tx009,
POSITION 11.
PARAMETERS: pa_form2 TYPE tdformat DEFAULT '/E'.
SELECTION-SCREEN: COMMENT 16(5) gv_tx010,
POSITION 22.
PARAMETERS: pa_clrp2 TYPE text12
DEFAULT '100'
AS LISTBOX
VISIBLE LENGTH 12
USER-COMMAND clrp2.
SELECTION-SCREEN: COMMENT 36(10) gv_tx020,
POSITION 47.
PARAMETERS: pa_colr2 TYPE numc3 DEFAULT '100'.
SELECTION-SCREEN: END OF LINE,
BEGIN OF LINE,
COMMENT 1(10) gv_tx011,
POSITION 11.
PARAMETERS: pa_form3 TYPE tdformat DEFAULT '/:'.
SELECTION-SCREEN: COMMENT 16(5) gv_tx012,
POSITION 22.
PARAMETERS: pa_clrp3 TYPE text12
DEFAULT '200'
AS LISTBOX
VISIBLE LENGTH 12
USER-COMMAND clrp3.
SELECTION-SCREEN: COMMENT 36(10) gv_tx021,
POSITION 47.
PARAMETERS: pa_colr3 TYPE numc3 DEFAULT '200'.
SELECTION-SCREEN: END OF LINE,
BEGIN OF LINE,
COMMENT 1(10) gv_tx013,
POSITION 11.
PARAMETERS: pa_form4 TYPE tdformat DEFAULT '/*'.
SELECTION-SCREEN: COMMENT 16(5) gv_tx014,
POSITION 22.
PARAMETERS: pa_clrp4 TYPE text12
DEFAULT '210'
AS LISTBOX
VISIBLE LENGTH 12
USER-COMMAND clrp4.
SELECTION-SCREEN: COMMENT 36(10) gv_tx022,
POSITION 47.
PARAMETERS: pa_colr4 TYPE numc3 DEFAULT '210'.
SELECTION-SCREEN: END OF LINE,
END OF BLOCK bl_colors.
* ALV-layout
SELECTION-SCREEN: BEGIN OF BLOCK bl_vari WITH FRAME TITLE gv_tx015,
BEGIN OF LINE,
COMMENT 1(13) gv_tx016.
PARAMETERS: pa_varia TYPE slis_vari.
SELECTION-SCREEN: END OF LINE,
BEGIN OF LINE,
COMMENT 1(13) gv_tx023.
PARAMETERS: pa_idtcn TYPE n LENGTH 1 DEFAULT '3'.
SELECTION-SCREEN: COMMENT 17(20) gv_tx024,
END OF LINE,
BEGIN OF LINE.
PARAMETERS: pa_colev TYPE xfeld AS CHECKBOX.
SELECTION-SCREEN: COMMENT 3(60) gv_tx025,
END OF LINE,
END OF BLOCK bl_vari.
* update
SELECTION-SCREEN: BEGIN OF BLOCK bl_update WITH FRAME TITLE gv_tx017,
BEGIN OF LINE,
COMMENT 1(36) gv_tx018,
PUSHBUTTON 37(50) pb_updck USER-COMMAND updcheck
VISIBLE LENGTH 22.
SELECTION-SCREEN: END OF LINE,
END OF BLOCK bl_update.
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2,
FUNCTION KEY 3,
FUNCTION KEY 4,
FUNCTION KEY 5.
DEFINE bdc-add.
CLEAR ls_bdcdt.
ls_bdcdt-dynbegin = &1.
IF &1 EQ 'X'.
ls_bdcdt-program = &2.
ls_bdcdt-dynpro = &3.
ELSE.
ls_bdcdt-fnam = &2.
ls_bdcdt-fval = &3.
ENDIF.
APPEND ls_bdcdt TO lt_bdcdt.
END-OF-DEFINITION.
DEFINE sscmd_add.
APPEND &1 TO gt_sscmd.
END-OF-DEFINITION.
*----------------------------------------------------------------------*
* CLASS lcl_event_handler DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS handle_after_user_command
FOR EVENT after_user_command OF cl_gui_alv_grid
IMPORTING e_ucomm
e_saved
e_not_processed.
CLASS-METHODS handle_after_refresh
FOR EVENT after_refresh OF cl_gui_alv_grid.
CLASS-METHODS handle_context_menu_request
FOR EVENT context_menu_request OF cl_gui_alv_grid
IMPORTING e_object
sender.
CLASS-METHODS handle_onf4
FOR EVENT onf4 OF cl_gui_alv_grid
IMPORTING e_fieldname
e_fieldvalue
es_row_no
er_event_data
et_bad_cells
e_display.
CLASS-METHODS handle_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
ENDCLASS. "lcl_event_handler DEFINITION
*----------------------------------------------------------------------*
* CLASS lcl_event_handler IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_event_handler IMPLEMENTATION.
METHOD handle_after_refresh.
DATA ls_stable TYPE lvc_s_stbl.
* Using IMPORT-parameter IT_FILTER_LVC of REUSE_ALV_GRID_DISPLAY_LVC
* is useless to collapse everything when ALV is shown for the first
* time because a default layout has priority thus own filter will
* be discarded. But at this point in program flow, we can set our
* filter.
IF pa_colev = gc_yes.
CLEAR pa_colev.
PERFORM alv_collapse_before_show.
IF gt_filter IS NOT INITIAL.
CALL METHOD gr_grid->set_filter_criteria
EXPORTING
it_filter = gt_filter
EXCEPTIONS
no_fieldcatalog_available = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE 'Error while collapsing rows.' TYPE 'I'.
RETURN.
ELSE.
CALL METHOD gr_grid->refresh_table_display
EXPORTING
is_stable = ls_stable
i_soft_refresh = space
EXCEPTIONS
finished = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD handle_after_user_command.
DATA ls_data LIKE LINE OF gt_data.
IF e_ucomm = '&DELETE_FILTER'.
* reset collapse/expand icons
ls_data-colexpic = icon_collapse.
MODIFY gt_data FROM ls_data
TRANSPORTING colexpic
WHERE colexpic = icon_expand.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD handle_context_menu_request.
CALL METHOD e_object->add_separator.
CALL METHOD e_object->add_function
EXPORTING
fcode = '©'
text = 'Copy to clipboard'
icon = icon_system_copy.
* ftype =
* disabled =
* hidden =
* checked =
* accelerator =
* insert_at_the_top = SPACE
CALL METHOD e_object->add_function
EXPORTING
fcode = '&COLLAPSE_ALL'
text = 'Collapse all'.
* icon =
* ftype =
* disabled =
* hidden =
* checked =
* accelerator =
* insert_at_the_top = SPACE
CALL METHOD e_object->add_function
EXPORTING
fcode = '&EXPAND_ALL'
text = 'Expand all'.
* icon =
* ftype =
* disabled =
* hidden =
* checked =
* accelerator =
* insert_at_the_top = SPACE
CALL METHOD e_object->add_function
EXPORTING
fcode = '&EDIT_SAME_WINDOW'
text = 'Edit line in same window'
icon = icon_change.
* ftype =
* disabled =
* hidden =
* checked =
* accelerator =
* insert_at_the_top = SPACE
CALL METHOD e_object->add_function
EXPORTING
fcode = '&EDIT_NEW_WINDOW'
text = 'Edit line in new window'
icon = icon_change.
* ftype =
* disabled =
* hidden =
* checked =
* accelerator =
* insert_at_the_top = SPACE
CALL METHOD e_object->add_function
EXPORTING
fcode = '&SHOW_STATS'
text = 'Show stats'
icon = icon_display.
* ftype =
* disabled =
* hidden =
* checked =
* accelerator =
* insert_at_the_top = SPACE
ENDMETHOD. "handle_context_menu_req
METHOD handle_onf4.
ENDMETHOD. "handle_onf4
METHOD handle_user_command.
DATA: ls_rowid TYPE lvc_s_row,
ls_colid TYPE lvc_s_col,
ls_data LIKE LINE OF gt_data,
lv_refresh TYPE xfeld,
ls_stable TYPE lvc_s_stbl.
CALL METHOD gr_grid->get_current_cell
IMPORTING
* e_row =
* e_value =
* e_col =
es_row_id = ls_rowid
es_col_id = ls_colid.
* es_row_no =
IF ls_rowid IS NOT INITIAL.
READ TABLE gt_data INTO ls_data INDEX ls_rowid-index.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
CASE e_ucomm.
WHEN '©'.
PERFORM alv_copy_to_clipboard.
WHEN '&COLLAPSE_ALL'.
PERFORM alv_collapse_all
CHANGING lv_refresh.
WHEN '&EXPAND_ALL'.
PERFORM alv_expand_all
CHANGING lv_refresh.
WHEN '&EDIT_SAME_WINDOW'.
PERFORM form_edit USING '1' ls_data.
WHEN '&EDIT_NEW_WINDOW'.
PERFORM form_edit USING '2' ls_data.
WHEN '&SHOW_STATS'.
PERFORM form_stats_show.
WHEN OTHERS.
ENDCASE.
IF lv_refresh = gc_yes.
CALL METHOD gr_grid->refresh_table_display
EXPORTING
is_stable = ls_stable
i_soft_refresh = space
EXCEPTIONS
finished = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDMETHOD. "handle_user_command
ENDCLASS. "lcl_event_handler IMPLEMENTATION
INITIALIZATION.
PERFORM initialization.
AT SELECTION-SCREEN.
PERFORM at_selection_screen.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_fname.
PERFORM form_f4.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_wname.
PERFORM form_window_f4.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_tname.
PERFORM form_text_element_f4.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_prprg.
PERFORM print_program_f4.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_varia.
PERFORM alv_variant_f4.
AT SELECTION-SCREEN OUTPUT.
PERFORM at_selection_screen_output.
START-OF-SELECTION.
PERFORM main.
*&---------------------------------------------------------------------*
*& Form main
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM main.
DATA lv_subrc TYPE sysubrc.
CLEAR: gs_form,
gs_stats,
gt_fcat.
PERFORM prechecks CHANGING lv_subrc.
IF lv_subrc <> 0.
RETURN.
ENDIF.
PERFORM form_read USING space
CHANGING lv_subrc.
IF lv_subrc <> 0.
RETURN.
ENDIF.
PERFORM alv_data_prepare CHANGING lv_subrc.
IF lv_subrc <> 0.
RETURN.
ENDIF.
PERFORM alv_fcat_prepare CHANGING lv_subrc.
IF lv_subrc <> 0.
RETURN.
ENDIF.
PERFORM alv_show CHANGING lv_subrc.
IF lv_subrc <> 0.
RETURN.
ENDIF.
ENDFORM. "main
*&---------------------------------------------------------------------*
*& Form ALV_PREPARE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM alv_fcat_prepare CHANGING cv_subrc TYPE sysubrc.
DATA ls_fcat TYPE lvc_s_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = 1.
ls_fcat-fieldname = 'ROW'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Line'.
ls_fcat-scrtext_m = 'Line'.
ls_fcat-scrtext_l = 'Line'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'WINDOW'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Window'.
ls_fcat-scrtext_m = 'Window'.
ls_fcat-scrtext_l = 'Window'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'FORMAT'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Format'.
ls_fcat-scrtext_m = 'Format'.
ls_fcat-scrtext_l = 'Format'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'COLEXPIC'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-icon = gc_yes.
ls_fcat-scrtext_s = 'C./E. Icon'.
ls_fcat-scrtext_m = 'Col./Exp. Icon'.
ls_fcat-scrtext_l = 'Collapse/Expand Icon'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'COLEXPFN'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-no_out = gc_yes.
ls_fcat-scrtext_s = 'C./E. Id'.
ls_fcat-scrtext_m = 'Col./Exp. Id'.
ls_fcat-scrtext_l = 'Collapse/Expand Id'.
ls_fcat-ref_field = 'FILTER_ID'.
ls_fcat-ref_table = 'DF55L'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'ADAPTED'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Adapted'.
ls_fcat-scrtext_m = 'Adapted'.
ls_fcat-scrtext_l = 'Adapted'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'ACOMMENT'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'auto comm.'.
ls_fcat-scrtext_m = 'auto comment'.
ls_fcat-scrtext_l = 'auto comment'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'UCOMMENT'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'user comm.'.
ls_fcat-scrtext_m = 'user comment'.
ls_fcat-scrtext_l = 'user comment'.
ls_fcat-tech = gc_yes.
ls_fcat-no_out = gc_yes.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'ORIGINAL'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Original'.
ls_fcat-scrtext_m = 'Original'.
ls_fcat-scrtext_l = 'Original'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL1'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 1'.
ls_fcat-scrtext_m = 'Symbol 1'.
ls_fcat-scrtext_l = 'Symbol 1'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL2'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 2'.
ls_fcat-scrtext_m = 'Symbol 2'.
ls_fcat-scrtext_l = 'Symbol 2'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL3'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 3'.
ls_fcat-scrtext_m = 'Symbol 3'.
ls_fcat-scrtext_l = 'Symbol 3'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL4'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 4'.
ls_fcat-scrtext_m = 'Symbol 4'.
ls_fcat-scrtext_l = 'Symbol 4'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL5'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 5'.
ls_fcat-scrtext_m = 'Symbol 5'.
ls_fcat-scrtext_l = 'Symbol 5'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL6'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 6'.
ls_fcat-scrtext_m = 'Symbol 6'.
ls_fcat-scrtext_l = 'Symbol 6'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL7'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 7'.
ls_fcat-scrtext_m = 'Symbol 7'.
ls_fcat-scrtext_l = 'Symbol 7'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL8'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 8'.
ls_fcat-scrtext_m = 'Symbol 8'.
ls_fcat-scrtext_l = 'Symbol 8'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'SYMBOL9'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Symbol 9'.
ls_fcat-scrtext_m = 'Symbol 9'.
ls_fcat-scrtext_l = 'Symbol 9'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'LEVEL'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'Level'.
ls_fcat-scrtext_m = 'Level'.
ls_fcat-scrtext_l = 'Level'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'MCCABE1'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'McCabe'.
ls_fcat-scrtext_m = 'McCabe (SP)'.
ls_fcat-scrtext_l = 'McCabe (single precision)'.
APPEND ls_fcat TO gt_fcat.
CLEAR ls_fcat.
ls_fcat-col_pos = ls_fcat-col_pos + 1.
ls_fcat-fieldname = 'MCCABE2'.
ls_fcat-tabname = 'GT_DATA'.
ls_fcat-scrtext_s = 'McCabe'.
ls_fcat-scrtext_m = 'McCabe (DP)'.
ls_fcat-scrtext_l = 'McCabe (double precision)'.
APPEND ls_fcat TO gt_fcat.
ENDFORM. " ALV_PREPARE
*&---------------------------------------------------------------------*
*& Form ALV_DATA_PREPARE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_LV_SUBRC text
*----------------------------------------------------------------------*
FORM alv_data_prepare CHANGING cv_subrc TYPE sysubrc.
DATA: ls_data LIKE LINE OF gt_data,
lv_count TYPE i,
lt_parts TYPE TABLE OF tdline,
ls_parts TYPE tdline,
lv_row TYPE i,
lt_lines TYPE TABLE OF tline,
ls_lines TYPE tline,
lt_symbols TYPE TABLE OF itcst,
lv_window TYPE tdwindow,
lv_when TYPE xfeld,
lv_level TYPE i,
lv_begin TYPE sytabix,
lv_copy TYPE xfeld,
lv_tabix TYPE sytabix.
FIELD-SYMBOLS: <fs_lines> TYPE tline,
<fs_symbols> TYPE itcst.
IF pa_wname IS NOT INITIAL.
* reduce to relevant window data
READ TABLE gs_form-lines TRANSPORTING NO FIELDS
WITH KEY tdformat = '/W'
tdline = pa_wname.
IF sy-subrc <> 0.
cv_subrc = sy-subrc.
RETURN.
ENDIF.
lv_begin = sy-tabix.
LOOP AT gs_form-lines INTO ls_lines FROM lv_begin.
IF ls_lines-tdformat = '/W' AND ls_lines-tdline <> pa_wname.
EXIT.
ENDIF.
IF pa_tname IS INITIAL.
APPEND ls_lines TO lt_lines.
ELSE.
IF ls_lines-tdformat = '/E' AND ls_lines-tdline = pa_tname.
lv_copy = 'X'.
ENDIF.
IF ls_lines-tdformat = '/E' AND ls_lines-tdline <> pa_tname.
CLEAR lv_copy.
ENDIF.
IF lv_copy = 'X'.
APPEND ls_lines TO lt_lines.
ENDIF.
ENDIF.
ENDLOOP.
IF lt_lines IS NOT INITIAL.
CLEAR gs_form-lines.
gs_form-lines = lt_lines.
ENDIF.
ENDIF.
LOOP AT gs_form-lines ASSIGNING <fs_lines>.
CLEAR: ls_data,
lt_lines.
lv_tabix = sy-tabix.
ls_data-format = <fs_lines>-tdformat.
ls_data-original = <fs_lines>-tdline.
ls_data-adapted = <fs_lines>-tdline.
ls_data-window = lv_window.
PERFORM alv_color_set CHANGING ls_data.
IF <fs_lines>-tdformat = '/W'.
CLEAR: lv_row,
ls_data-window.
lv_window = <fs_lines>-tdline.
ENDIF.
IF <fs_lines>-tdformat = '/:'.
SPLIT <fs_lines>-tdline AT space INTO TABLE lt_parts.
IF sy-subrc = 0.
DELETE lt_parts WHERE table_line = space.
ENDIF.
READ TABLE lt_parts INTO ls_parts INDEX 1.
IF sy-subrc <> 0.
ENDIF.
APPEND <fs_lines>-tdline TO lt_lines.
CALL FUNCTION 'TEXT_SYMBOL_COLLECT'
TABLES
lines = lt_lines
symbols = lt_symbols.
LOOP AT lt_symbols ASSIGNING <fs_symbols>.
* only nine symbols are taken into account for ALV
IF sy-tabix < 10.
CASE sy-tabix.
WHEN '1'.
ls_data-symbol1 = <fs_symbols>-name.
WHEN '2'.
ls_data-symbol2 = <fs_symbols>-name.
WHEN '3'.
ls_data-symbol3 = <fs_symbols>-name.
WHEN '4'.
ls_data-symbol4 = <fs_symbols>-name.
WHEN '5'.
ls_data-symbol5 = <fs_symbols>-name.
WHEN '6'.
ls_data-symbol5 = <fs_symbols>-name.
WHEN '7'.
ls_data-symbol5 = <fs_symbols>-name.
WHEN '8'.
ls_data-symbol5 = <fs_symbols>-name.
WHEN '9'.
ls_data-symbol5 = <fs_symbols>-name.
ENDCASE.
ENDIF.
* get more information about actual symbol
PERFORM symbol_info_collect USING <fs_symbols>
CHANGING ls_data.
ENDLOOP.
ENDIF.
IF <fs_lines>-tdformat = '/:'.
IF ls_parts CS 'ENDIF' OR ls_parts CS 'ELSE'.
lv_count = lv_count - pa_idtcn.
ENDIF.
IF ls_parts CS 'ENDCASE'.
lv_count = lv_count - ( pa_idtcn * 2 ).
ENDIF.
IF ls_parts CS 'WHEN'.
lv_count = lv_count - pa_idtcn.
ENDIF.
ENDIF.
IF lv_count < 0.
lv_count = 0.
ENDIF.
IF lv_count <> 0.
DO lv_count TIMES.
CONCATENATE gv_nobr_space ls_data-adapted INTO ls_data-adapted.
ENDDO.
ls_data-level = lv_count / pa_idtcn.
ENDIF.
IF <fs_lines>-tdformat = '/:'.
IF ls_parts = 'IF'.
lv_count = lv_count + pa_idtcn.
ls_data-colexpic = icon_collapse.
ENDIF.
IF ls_parts = 'ELSE' OR ls_parts = 'ELSE.' OR ls_parts = 'ELSEIF'.
lv_count = lv_count + pa_idtcn. "3.
ENDIF.
IF ls_parts = 'CASE'.
lv_count = lv_count + ( pa_idtcn * 2 ).
ls_data-colexpic = icon_collapse.
ENDIF.
IF ls_parts = 'WHEN'.
lv_count = lv_count + pa_idtcn.
ENDIF.
ENDIF.
PERFORM form_stats_collect
USING lt_parts
ls_parts
lv_tabix
CHANGING ls_data.
ls_data-row = lv_row.
APPEND ls_data TO gt_data.
lv_row = lv_row + 1.
ENDLOOP.
PERFORM form_stats_calculate.
DELETE gt_data WHERE window = '%%DOCU'.
ENDFORM. " ALV_DATA_PREPARE
*&---------------------------------------------------------------------*
*& Form ALV_SHOW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_LV_SUBRC text
*----------------------------------------------------------------------*
FORM alv_show CHANGING cv_subrc TYPE sysubrc.
DATA: ls_layout TYPE lvc_s_layo,
lt_events TYPE slis_t_event,
lt_evexit TYPE slis_t_event_exit,
ls_evexit TYPE slis_event_exit,
lt_excl TYPE slis_t_extab,
ls_vari TYPE disvariant,
lv_cbpfs TYPE slis_formname,
lv_msg TYPE text200.
FIELD-SYMBOLS <fs_events> TYPE slis_alv_event.
ls_layout-box_fname = 'MARK'.
ls_layout-ctab_fname = 'COLOR'.
ls_layout-stylefname = 'STYLE'.
ls_layout-col_opt = 'X'.
ls_vari-report = sy-repid.
ls_vari-handle = 'SFBH'.
ls_vari-username = sy-uname.
ls_vari-variant = pa_varia.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 4
IMPORTING
et_events = lt_events
EXCEPTIONS
list_type_wrong = 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.
LOOP AT lt_events ASSIGNING <fs_events>.
CASE <fs_events>-name.
WHEN 'CALLER_EXIT'.
<fs_events>-form = 'ALV_CALLER_EXIT'.
WHEN OTHERS.
ENDCASE.
ENDLOOP.
ls_evexit-ucomm = '&INFO'.
ls_evexit-after = 'X'.
APPEND ls_evexit TO lt_evexit.
PERFORM alv_exclude_fcodes CHANGING lt_excl.
MESSAGE 'Form loaded.' TYPE 'S'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
* I_INTERFACE_CHECK = ' '
i_bypassing_buffer = 'X'
* I_BUFFER_ACTIVE =
i_callback_program = sy-repid
i_callback_pf_status_set = lv_cbpfs
i_callback_user_command = 'ALV_USER_COMMAND'
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
is_layout_lvc = ls_layout
it_fieldcat_lvc = gt_fcat
it_excluding = lt_excl
* IT_SPECIAL_GROUPS_LVC =
* IT_SORT_LVC =
* IT_FILTER_LVC =
* IT_HYPERLINK =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
i_save = 'A'
is_variant = ls_vari
it_events = lt_events
it_event_exit = lt_evexit
* IS_PRINT_LVC =
* IS_REPREP_ID_LVC =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP =
* I_HTML_HEIGHT_END =
* IT_ALV_GRAPHICS =
* IT_EXCEPT_QINFO_LVC =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
cv_subrc = sy-subrc.
RETURN.
ENDIF.
ENDFORM. " ALV_SHOW
*&---------------------------------------------------------------------*
*& Form INITIALIZATION
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM initialization.
DATA: ls_dyntxt TYPE smp_dyntxt,
lt_excl TYPE TABLE OF rsexfcode WITH HEADER LINE,
ls_excl TYPE rsexfcode.
sy-title = 'SAPscript forms breakdown helper'.
gv_tx000 = 'Client'.
gv_tx001 = 'Form'.
gv_tx002 = 'Language'.
gv_tx003 = 'Window'.
gv_tx004 = 'Text element'.
gv_tx005 = 'Form selection'.
gv_tx006 = 'Color selection'.
gv_tx007 = 'Format 1'.
gv_tx008 = 'Color'.
gv_tx009 = 'Format 2'.
gv_tx010 = 'Color'.
gv_tx011 = 'Format 3'.
gv_tx012 = 'Color'.
gv_tx013 = 'Format 4'.
gv_tx014 = 'Color'.
gv_tx015 = 'Layout'.
gv_tx016 = 'ALV Layout'.
gv_tx017 = 'Update check'.
gv_tx019 = 'Color code'.
gv_tx020 = 'Color code'.
gv_tx021 = 'Color code'.
gv_tx022 = 'Color code'.
gv_tx023 = 'Indentation'.
gv_tx024 = 'times blank (max. 4)'.
gv_tx025 = 'start with collapsed IF/CASE statements to reduce complexity'.
gv_tx026 = 'Print program'.
CONCATENATE 'Your version:' gc_vinfo INTO gv_tx018 SEPARATED BY space.
* no-break space is needed for indentation (ALT+0160)
gv_nobr_space = cl_abap_conv_in_ce=>uccpi( 160 ).
CLEAR ls_dyntxt.
ls_dyntxt-icon_id = icon_information.
ls_dyntxt-quickinfo = 'Show documentation'.
ls_dyntxt-path = 'T'.
sscrfields-functxt_01 = ls_dyntxt.
CLEAR ls_dyntxt.
ls_dyntxt-text = 'Form Painter'.
ls_dyntxt-icon_id = icon_protocol.
ls_dyntxt-icon_text = 'Form Painter'.
ls_dyntxt-quickinfo = 'Call SE71'.
ls_dyntxt-path = 'T'.
sscrfields-functxt_02 = ls_dyntxt.
CLEAR ls_dyntxt.
ls_dyntxt-text = 'Style'.
ls_dyntxt-icon_id = icon_align.
ls_dyntxt-icon_text = 'Styles'.
ls_dyntxt-quickinfo = 'Call SE72'.
ls_dyntxt-path = 'T'.
sscrfields-functxt_03 = ls_dyntxt.
CLEAR ls_dyntxt.
ls_dyntxt-text = 'Graphics'.
ls_dyntxt-icon_id = icon_tif.
ls_dyntxt-icon_text = 'Graphics'.
ls_dyntxt-quickinfo = 'Call SE78'.
ls_dyntxt-path = 'T'.
sscrfields-functxt_04 = ls_dyntxt.
CLEAR ls_dyntxt.
ls_dyntxt-text = 'Standard Text'.
ls_dyntxt-icon_id = icon_change_text.
ls_dyntxt-icon_text = 'Standard Text'.
ls_dyntxt-quickinfo = 'Call SO10'.
ls_dyntxt-path = 'T'.
sscrfields-functxt_05 = ls_dyntxt.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_check
text = 'Check for new version'
info = 'Show blog on SCN'
* ADD_STDINF = 'X'
IMPORTING
result = pb_updck
EXCEPTIONS
icon_not_found = 1
outputfield_too_short = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_display
text = ' '
info = 'Show form'
* ADD_STDINF = 'X'
IMPORTING
result = pb_fshow
EXCEPTIONS
icon_not_found = 1
outputfield_too_short = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_change
text = ' '
info = 'Edit form'
* ADD_STDINF = 'X'
IMPORTING
result = pb_fedit
EXCEPTIONS
icon_not_found = 1
outputfield_too_short = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
PERFORM color_preset.
PERFORM sscmds_fill.
ENDFORM. " INITIALIZATION
*&---------------------------------------------------------------------*
*& Form AT_SELECTION_SCREEN
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM at_selection_screen.
IF sy-dynnr <> '1000'.
RETURN.
ENDIF.
CASE sy-ucomm.
WHEN 'FC01'.
PERFORM show_version_info.
WHEN 'FC02'.
CALL TRANSACTION 'SE71'.
WHEN 'FC03'.
CALL TRANSACTION 'SE72'.
WHEN 'FC04'.
CALL TRANSACTION 'SE78'.
WHEN 'FC05'.
CALL TRANSACTION 'SO10'.
WHEN 'UPDCHECK'.
PERFORM update_check.
WHEN 'FORM_SHOW'.
PERFORM form_show_simple.
WHEN 'FORM_EDIT'.
PERFORM form_edit_simple.
WHEN 'CLRP1'. " color preset 1
pa_colr1 = pa_clrp1.
WHEN 'CLRP2'. " color preset 2
pa_colr2 = pa_clrp2.
WHEN 'CLRP3'. " color preset 3
pa_colr3 = pa_clrp3.
WHEN 'CLRP4'. " color preset 4
pa_colr4 = pa_clrp4.
WHEN OTHERS.
ENDCASE.
ENDFORM. " AT_SELECTION_SCREEN
*&---------------------------------------------------------------------*
*& Form AT_SELECTION_SCREEN_OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM at_selection_screen_output.
LOOP AT SCREEN.
IF screen-name = 'PA_COLR1'.
IF pa_clrp1 = 'IND'.
screen-input = gc_enabled.
ELSE.
screen-input = gc_disabled.
ENDIF.
ENDIF.
IF screen-name = 'PA_COLR2'.
IF pa_clrp2 = 'IND'.
screen-input = gc_enabled.
ELSE.
screen-input = gc_disabled.
ENDIF.
ENDIF.
IF screen-name = 'PA_COLR3'.
IF pa_clrp3 = 'IND'.
screen-input = gc_enabled.
ELSE.
screen-input = gc_disabled.
ENDIF.
ENDIF.
IF screen-name = 'PA_COLR4'.
IF pa_clrp4 = 'IND'.
screen-input = gc_enabled.
ELSE.
screen-input = gc_disabled.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDFORM. " AT_SELECTION_SCREEN_OUTPUT
*&---------------------------------------------------------------------*
*& Form COLOR_SET
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_LS_DATA text
*----------------------------------------------------------------------*
FORM alv_color_set CHANGING cs_data LIKE LINE OF gt_data.
DATA: ls_scol TYPE lvc_s_scol,
ls_color TYPE lvc_s_colo.
CLEAR ls_scol.
IF cs_data-format = pa_form1 AND pa_colr1 IS NOT INITIAL.
ls_color-col = pa_colr1+0(1).
ls_color-int = pa_colr1+1(1).
ls_color-inv = pa_colr1+2(1).
ls_scol-color = ls_color.
ENDIF.
IF cs_data-format = pa_form2.
ls_color-col = pa_colr2+0(1).
ls_color-int = pa_colr2+1(1).
ls_color-inv = pa_colr2+2(1).
ls_scol-color = ls_color.
ENDIF.
IF cs_data-format = pa_form3.
ls_color-col = pa_colr3+0(1).
ls_color-int = pa_colr3+1(1).
ls_color-inv = pa_colr3+2(1).
ls_scol-color = ls_color.
ENDIF.
IF cs_data-format = pa_form4.
ls_color-col = pa_colr4+0(1).
ls_color-int = pa_colr4+1(1).
ls_color-inv = pa_colr4+2(1).
ls_scol-color = ls_color.
ENDIF.
IF ls_scol IS NOT INITIAL.
APPEND ls_scol TO cs_data-color.
ENDIF.
ENDFORM. " COLOR_SET
*&---------------------------------------------------------------------*
*& Form alv_user_command
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->UV_UCOMM text
* -->US_SELFIELD text
*----------------------------------------------------------------------*
FORM alv_user_command USING uv_ucomm TYPE syucomm
us_selfield TYPE slis_selfield.
DATA ls_stable TYPE lvc_s_stbl.
FIELD-SYMBOLS <fs_data> LIKE LINE OF gt_data.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
* EXPORTING
* IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
* ET_EXCLUDING =
* E_REPID =
* E_CALLBACK_PROGRAM =
* E_CALLBACK_ROUTINE =
e_grid = gr_grid.
* ET_FIELDCAT_LVC =
* ER_TRACE =
* E_FLG_NO_HTML =
* ES_LAYOUT_KKBLO =
* ES_SEL_HIDE =
* ET_EVENT_EXIT =
* ER_FORM_TOL =
* ER_FORM_EOL =
IF gr_grid IS NOT BOUND.
RETURN.
ENDIF.
IF us_selfield-tabindex IS NOT INITIAL.
READ TABLE gt_data ASSIGNING <fs_data> INDEX us_selfield-tabindex.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ELSE.
RETURN.
ENDIF.
CALL METHOD gr_grid->check_changed_data.
* IMPORTING
* e_valid =
* CHANGING
* c_refresh = 'X'
CASE uv_ucomm.
WHEN '&IC1'.
PERFORM alv_handle_double_click
CHANGING us_selfield
<fs_data>.
WHEN '&INFO'.
PERFORM show_version_info.
WHEN OTHERS.
ENDCASE.
* refresh output
IF us_selfield-refresh = gc_yes.
CLEAR us_selfield-refresh.
ls_stable-col = 'X'.
ls_stable-row = 'X'.
CALL METHOD gr_grid->refresh_table_display
EXPORTING
is_stable = ls_stable
i_soft_refresh = space
EXCEPTIONS
finished = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE 'Error while refreshing ALV.' TYPE 'I'.
ENDIF.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form alv_caller_exit
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->US_DATA text
*----------------------------------------------------------------------*
FORM alv_caller_exit USING us_data TYPE slis_data_caller_exit.
DATA: lt_f4 TYPE lvc_t_f4,
ls_f4 TYPE lvc_s_f4,
lr_functions TYPE REF TO cl_salv_functions,
lv_title LIKE sy-title.
CONCATENATE gs_form-header-tdform
'/'
gs_form-header-tdspras
'/'
gs_form-header-mandt INTO lv_title.
CONCATENATE 'SAPscript forms breakdown helper on'
lv_title
INTO sy-title SEPARATED BY space.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
* EXPORTING
* IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
* ET_EXCLUDING =
* E_REPID =
* E_CALLBACK_PROGRAM =
* E_CALLBACK_ROUTINE =
e_grid = gr_grid.
* ET_FIELDCAT_LVC =
* ER_TRACE =
* E_FLG_NO_HTML =
* ES_LAYOUT_KKBLO =
* ES_SEL_HIDE =
* ET_EVENT_EXIT =
* ER_FORM_TOL =
* ER_FORM_EOL =
IF gr_grid IS NOT BOUND.
RETURN.
ENDIF.
CALL METHOD gr_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
CALL METHOD gr_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified
EXCEPTIONS
error = 1
OTHERS = 2.
IF sy-subrc <> 0. " without error handling
ENDIF.
SET HANDLER lcl_event_handler=>handle_after_refresh
FOR gr_grid.
SET HANDLER lcl_event_handler=>handle_after_user_command
FOR gr_grid.
SET HANDLER lcl_event_handler=>handle_context_menu_request
FOR gr_grid.
SET HANDLER lcl_event_handler=>handle_onf4
FOR gr_grid.
SET HANDLER lcl_event_handler=>handle_user_command
FOR gr_grid.
ENDFORM. "alv_caller_exit
*&---------------------------------------------------------------------*
*& Form ALV_HANDLE_DOUBLE_CLICK
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_US_SELFIELD text
* <--P_<FS_DATA> text
*----------------------------------------------------------------------*
FORM alv_handle_double_click CHANGING cs_sfield TYPE slis_selfield
cs_data LIKE LINE OF gt_data.
IF cs_sfield-fieldname = 'ADAPTED' AND cs_data-format = '/:'.
IF cs_data-original CS 'IF' OR cs_data-original CS 'ELSEIF' OR
cs_data-original CS 'ELSE' OR cs_data-original CS 'ENDIF' OR
cs_data-original CS 'CASE' OR cs_data-original CS 'WHEN' OR
cs_data-original CS 'ENDCASE'.
PERFORM alv_accentuation
CHANGING cs_sfield
cs_data.
ELSEIF cs_data-original CS 'INCLUDE'.
PERFORM form_include_show
CHANGING cs_sfield
cs_data.
ELSEIF cs_data-original CS 'PERFORM' AND
cs_data-original NS 'ENDPERFORM'.
PERFORM form_subroutine_show
CHANGING cs_sfield
cs_data.
ENDIF.
ELSEIF cs_sfield-fieldname = 'COLEXPIC' AND
cs_data-colexpic = icon_collapse.
PERFORM alv_collapse_single
CHANGING cs_sfield
cs_data.
ELSEIF cs_sfield-fieldname = 'COLEXPIC' AND
cs_data-colexpic = icon_expand.
PERFORM alv_expand
CHANGING cs_sfield
cs_data.
ELSEIF cs_sfield-fieldname CS 'SYMBOL'.
PERFORM form_symbol_definition
CHANGING cs_sfield
cs_data.
ENDIF.
ENDFORM. " ALV_HANDLE_DOUBLE_CLICK
*&---------------------------------------------------------------------*
*& Form MARK_BLOCK
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_CS_SFIELD text
* <--P_CS_DATA text
*----------------------------------------------------------------------*
FORM alv_accentuation CHANGING cs_sfield TYPE slis_selfield
cs_data LIKE LINE OF gt_data.
DATA: ls_style TYPE lvc_s_styl,
lv_tabix TYPE sytabix,
lv_level TYPE i,
lv_case TYPE xfeld,
ls_mark LIKE LINE OF gt_mark.
FIELD-SYMBOLS: <fs_data> LIKE LINE OF gt_data,
<fs_mark> LIKE LINE OF gt_mark.
* use current table index as starting point
IF cs_data-original CS 'IF' OR
( cs_data-original CS 'CASE' AND cs_data-original NS 'ENDCASE' ).
lv_tabix = cs_sfield-tabindex.
lv_level = cs_data-level.
IF cs_data-original CS 'CASE'.
lv_case = gc_yes.
ENDIF.
ENDIF.
* search for starting point backwards
IF cs_data-original CS 'ELSEIF' OR
cs_data-original CS 'ELSE' OR
cs_data-original CS 'ENDIF' OR
cs_data-original CS 'WHEN' OR
cs_data-original CS 'ENDCASE'.
lv_tabix = cs_sfield-tabindex.
lv_level = cs_data-level.
IF cs_data-original CS 'WHEN' OR cs_data-original CS 'ENDCASE'.
lv_case = gc_yes.
ENDIF.
DO.
READ TABLE gt_data ASSIGNING <fs_data> INDEX lv_tabix.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF lv_case = gc_no AND <fs_data>-level <> lv_level.
lv_tabix = lv_tabix - 1.
CONTINUE.
ENDIF.
IF lv_case = gc_yes AND <fs_data>-level < lv_level - 1.
lv_tabix = lv_tabix - 1.
CONTINUE.
ENDIF.
IF cs_data-original CS 'ELSEIF' OR
cs_data-original CS 'ELSE' OR
cs_data-original CS 'ENDIF'.
IF <fs_data>-original CS 'IF' AND
<fs_data>-original NS 'ENDIF' AND
<fs_data>-original NS 'ELSEIF'.
lv_level = <fs_data>-level.
EXIT.
ENDIF.
ENDIF.
IF cs_data-original CS 'WHEN' OR cs_data-original CS 'ENDCASE'.
IF <fs_data>-original CS 'CASE' AND
<fs_data>-original NS 'ENDCASE'.
lv_level = <fs_data>-level.
lv_case = gc_yes.
EXIT.
ENDIF.
ENDIF.
lv_tabix = lv_tabix - 1.
ENDDO.
ENDIF.
IF lv_tabix IS INITIAL.
MESSAGE 'Block not detected.' TYPE 'I'.
RETURN.
ENDIF.
* clear old marks
IF gt_mark[] IS NOT INITIAL.
LOOP AT gt_mark ASSIGNING <fs_mark>.
READ TABLE gt_data ASSIGNING <fs_data> INDEX <fs_mark>-tabix.
IF sy-subrc = 0.
CLEAR <fs_data>-style.
ENDIF.
ENDLOOP.
ENDIF.
* mark key words
LOOP AT gt_data ASSIGNING <fs_data> FROM lv_tabix.
ls_mark-tabix = sy-tabix.
IF lv_case = gc_no AND <fs_data>-level <> lv_level.
CONTINUE.
ENDIF.
IF lv_case = gc_yes AND <fs_data>-level > lv_level + 1.
CONTINUE.
ENDIF.
IF <fs_data>-original CS 'IF' OR
<fs_data>-original CS 'ELSEIF' OR
<fs_data>-original CS 'ELSE' OR
<fs_data>-original CS 'ENDIF' OR
<fs_data>-original CS 'CASE' OR
<fs_data>-original CS 'WHEN' OR
<fs_data>-original CS 'ENDCASE'.
CLEAR: ls_style,
<fs_data>-style.
ls_style-fieldname = 'ADAPTED'.
ls_style-style = alv_style_font_bold.
APPEND ls_style TO <fs_data>-style.
APPEND ls_mark TO gt_mark.
IF cs_sfield-refresh = gc_no.
cs_sfield-refresh = gc_yes.
ENDIF.
ENDIF.
IF <fs_data>-original CS 'ENDIF' OR
<fs_data>-original CS 'ENDCASE'.
EXIT.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form SHOW_VERSION_INFO
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM show_version_info.
DATA: lv_text TYPE text80.
CONCATENATE 'Version' gc_vinfo INTO lv_text SEPARATED BY space.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'Version information'
txt1 = 'SAPscript forms breakdown helper'
txt2 = lv_text
txt3 = 'written by Michael Keller'
txt4 = 'use it, improve it, share it ...'.
ENDFORM. " SHOW_VERSION_INFO
*&---------------------------------------------------------------------*
*& Form ALV_EXCLUDE_FCODES
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_LT_EXCL text
*----------------------------------------------------------------------*
FORM alv_exclude_fcodes CHANGING ct_excl TYPE slis_t_extab.
DATA ls_excl TYPE slis_extab.
ls_excl-fcode = '&ABC'.
APPEND ls_excl TO ct_excl.
ls_excl-fcode = '&GRAPH'.
APPEND ls_excl TO ct_excl.
ls_excl-fcode = '&AQW'.
APPEND ls_excl TO ct_excl.
ls_excl-fcode = '%SL'.
APPEND ls_excl TO ct_excl.
ls_excl-fcode = '&VEXCEL'.
APPEND ls_excl TO ct_excl.
ENDFORM. " ALV_EXCLUDE_FCODES
*&---------------------------------------------------------------------*
*& Form alv_variant_f4
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM alv_variant_f4.
DATA ls_varia TYPE disvariant.
ls_varia-report = sy-repid.
ls_varia-handle = 'SFBH'.
ls_varia-username = sy-uname.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = ls_varia
* I_TABNAME_HEADER =
* I_TABNAME_ITEM =
* IT_DEFAULT_FIELDCAT =
i_save = 'A'
* I_DISPLAY_VIA_GRID = ' '
IMPORTING
* E_EXIT =
es_variant = ls_varia
EXCEPTIONS
not_found = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
pa_varia = ls_varia-variant.
ENDIF.
ENDFORM. " ALV_VARIANT_F4
*&---------------------------------------------------------------------*
*& Form FORMULAR_F4
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM form_f4.
DATA: lv_fname TYPE tdform,
lv_flang TYPE spras,
lt_dynpf TYPE TABLE OF dynpread,
ls_dynpf TYPE dynpread,
lv_answer TYPE char1.
* user decides which f4 help
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'F4-Help selection'
* DIAGNOSE_OBJECT = ' '
text_question = 'Please choose your F4-Help.'
text_button_1 = 'Properties'
icon_button_1 = '@3D@'
text_button_2 = 'Tree'
icon_button_2 = '@JG@'
* DEFAULT_BUTTON = '1'
* DISPLAY_CANCEL_BUTTON = 'X'
* USERDEFINED_F1_HELP = ' '
* START_COLUMN = 25
* START_ROW = 6
* POPUP_TYPE =
iv_quickinfo_button_1 = 'Select by properties'
iv_quickinfo_button_2 = 'Select by tree'
IMPORTING
answer = lv_answer
* TABLES
* PARAMETER =
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE 'Error showing F4-Help selection.' TYPE 'I'.
RETURN.
ENDIF.
IF lv_answer = 'A'.
MESSAGE 'F4-Help selection aborted.' TYPE 'S'.
RETURN.
ENDIF.
IF lv_answer = '1'. " by properties
SUBMIT rstxfcat VIA SELECTION-SCREEN AND RETURN.
GET PARAMETER ID 'TXF' FIELD lv_fname.
GET PARAMETER ID 'TXL' FIELD lv_flang.
ELSEIF lv_answer = '2'. " by tree
CALL FUNCTION 'DISPLAY_FORM_TREE_F4'
EXPORTING
p_tree_name = 'SAP_ALL'
p_display_mode = 'D'
* I_FORM_NAME =
IMPORTING
p_form_name = lv_fname
p_form_language = lv_flang
EXCEPTIONS
cancelled = 1
parameter_error = 2
not_found = 3
OTHERS = 4.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDIF.
ls_dynpf-fieldname = 'PA_FLANG'.
ls_dynpf-stepl = sy-stepl.
ls_dynpf-fieldvalue = lv_flang.
APPEND ls_dynpf TO lt_dynpf.
ls_dynpf-fieldname = 'PA_FNAME'.
ls_dynpf-stepl = sy-stepl.
ls_dynpf-fieldvalue = lv_fname.
APPEND ls_dynpf TO lt_dynpf.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = lt_dynpf
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDFORM. " FORMULAR_F4
*&---------------------------------------------------------------------*
*& Form WINDOW_F4
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM form_window_f4.
TYPES: BEGIN OF values,
wname TYPE tdwindow,
wdesc TYPE tdtext,
wtype TYPE tdwtype,
END OF values.
DATA: lt_values TYPE TABLE OF values,
ls_values TYPE values,
lt_return TYPE TABLE OF ddshretval,
lv_subrc TYPE sysubrc.
FIELD-SYMBOLS <fs_windows> TYPE itctw.
CLEAR gs_form-lines.
PERFORM form_read
USING gc_yes
CHANGING lv_subrc.
IF lv_subrc <> 0 OR gs_form-lines IS INITIAL.
RETURN.
ENDIF.
LOOP AT gs_form-windows ASSIGNING <fs_windows>.
ls_values-wname = <fs_windows>-tdwindow.
ls_values-wdesc = <fs_windows>-tdtext.
ls_values-wtype = <fs_windows>-tdwtype.
APPEND ls_values TO lt_values.
ENDLOOP.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'WNAME'
* PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'PA_WNAME'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* CALLBACK_METHOD =
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
value_tab = lt_values
* FIELD_TAB =
return_tab = lt_return
* DYNPFLD_MAPPING =
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDFORM. " WINDOW_F4
*&---------------------------------------------------------------------*
*& Form FORMULAR_READ
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_CV_SUBRC text
* <--P_LT_LINES text
*----------------------------------------------------------------------*
FORM form_read USING uv_selsc TYPE xfeld
CHANGING cv_subrc TYPE sysubrc.
DATA: lt_fields TYPE TABLE OF dynpread,
ls_fields TYPE dynpread,
lv_found TYPE char1.
CLEAR gs_form.
IF uv_selsc = gc_yes.
* get current values from selection screen
ls_fields-fieldname = 'PA_MANDT'.
APPEND ls_fields TO lt_fields.
ls_fields-fieldname = 'PA_FNAME'.
APPEND ls_fields TO lt_fields.
ls_fields-fieldname = 'PA_FLANG'.
APPEND ls_fields TO lt_fields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = '1000'
* TRANSLATE_TO_UPPER = ' '
* REQUEST = ' '
* PERFORM_CONVERSION_EXITS = ' '
* PERFORM_INPUT_CONVERSION = ' '
* DETERMINE_LOOP_INDEX = ' '
* START_SEARCH_IN_CURRENT_SCREEN = ' '
* START_SEARCH_IN_MAIN_SCREEN = ' '
* START_SEARCH_IN_STACKED_SCREEN = ' '
* START_SEARCH_ON_SCR_STACKPOS = ' '
* SEARCH_OWN_SUBSCREENS_FIRST = ' '
* SEARCHPATH_OF_SUBSCREEN_AREAS = ' '
TABLES
dynpfields = lt_fields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc <> 0.
cv_subrc = sy-subrc.
RETURN.
ENDIF.
LOOP AT lt_fields INTO ls_fields.
IF ls_fields-fieldname = 'PA_MANDT'.
pa_mandt = ls_fields-fieldvalue.
ELSEIF ls_fields-fieldname = 'PA_FNAME'.
pa_fname = ls_fields-fieldvalue.
TRANSLATE pa_fname TO UPPER CASE.
ELSEIF ls_fields-fieldname = 'PA_FLANG'.
pa_flang = ls_fields-fieldvalue.
TRANSLATE pa_flang TO UPPER CASE.
ENDIF.
ENDLOOP.
ENDIF.
CALL FUNCTION 'READ_FORM'
EXPORTING
client = pa_mandt
form = pa_fname
language = pa_flang
* OLANGUAGE = ' '
* OSTATUS = ' '
* STATUS = ' '
* THROUGHCLIENT = ' '
* READ_ONLY_HEADER = ' '
* THROUGHLANGUAGE = ' '
IMPORTING
* FORM_HEADER =
found = lv_found
header = gs_form-header
* OLANGUAGE =
TABLES
form_lines = gs_form-lines
pages = gs_form-pages
page_windows = gs_form-pwins
paragraphs = gs_form-paras
strings = gs_form-strings
tabs = gs_form-tabs
windows = gs_form-windows.
IF lv_found = gc_yes.
IF gs_form-header IS NOT INITIAL.
RETURN.
ELSE.
cv_subrc = 4.
MESSAGE 'Error while reading form.' TYPE 'I'.
RETURN.
ENDIF.
ELSE.
cv_subrc = 4.
MESSAGE 'Form not found.' TYPE 'I'.
RETURN.
ENDIF.
ENDFORM. " FORMULAR_READ
*&---------------------------------------------------------------------*
*& Form FORMULAR_ELEMENT_F4
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM form_text_element_f4.
TYPES: BEGIN OF values,
wname TYPE tdwindow,
tname TYPE txfistring,
END OF values.
DATA: lt_values TYPE TABLE OF values,
ls_values TYPE values,
lt_return TYPE TABLE OF ddshretval,
lv_subrc TYPE sysubrc,
lv_tabix TYPE sytabix,
lt_dynpf TYPE TABLE OF dynpread,
ls_dynpf TYPE dynpread,
lt_fields TYPE TABLE OF dfies,
lt_dselc TYPE TABLE OF dselc,
ls_dselc TYPE dselc.
FIELD-SYMBOLS <fs_lines> TYPE tline.
PERFORM form_read
USING gc_yes
CHANGING lv_subrc.
IF lv_subrc <> 0 OR gs_form-lines IS INITIAL.
RETURN.
ENDIF.
ls_dynpf-fieldname = 'PA_WNAME'.
APPEND ls_dynpf TO lt_dynpf.
* get current values from selection screen
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = '1000'
* TRANSLATE_TO_UPPER = ' '
* REQUEST = ' '
* PERFORM_CONVERSION_EXITS = ' '
* PERFORM_INPUT_CONVERSION = ' '
* DETERMINE_LOOP_INDEX = ' '
* START_SEARCH_IN_CURRENT_SCREEN = ' '
* START_SEARCH_IN_MAIN_SCREEN = ' '
* START_SEARCH_IN_STACKED_SCREEN = ' '
* START_SEARCH_ON_SCR_STACKPOS = ' '
* SEARCH_OWN_SUBSCREENS_FIRST = ' '
* SEARCHPATH_OF_SUBSCREEN_AREAS = ' '
TABLES
dynpfields = lt_dynpf
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc <> 0.
RETURN.
ENDIF.
READ TABLE lt_dynpf INTO ls_dynpf
WITH KEY fieldname = 'PA_WNAME'.
IF sy-subrc = 0 AND ls_dynpf-fieldvalue IS NOT INITIAL.
TRANSLATE ls_dynpf-fieldvalue TO UPPER CASE.
READ TABLE gs_form-lines TRANSPORTING NO FIELDS
WITH KEY tdformat = '/W'
tdline = ls_dynpf-fieldvalue.
IF sy-subrc = 0.
lv_tabix = sy-tabix + 1.
ELSE.
MESSAGE 'Window not found.' TYPE 'I'.
RETURN.
ENDIF.
* text elements of a specific window
ls_values-wname = ls_dynpf-fieldvalue.
LOOP AT gs_form-lines ASSIGNING <fs_lines> FROM lv_tabix
WHERE tdformat = '/W'
OR tdformat = '/E'.
IF <fs_lines>-tdformat = '/E'.
ls_values-tname = <fs_lines>-tdline.
APPEND ls_values TO lt_values.
ELSEIF <fs_lines>-tdformat = '/W'.
EXIT.
ENDIF.
ENDLOOP.
ELSE.
* all text elements of form
LOOP AT gs_form-lines ASSIGNING <fs_lines> WHERE tdformat = '/W'
OR tdformat = '/E'.
IF <fs_lines>-tdformat = '/W'.
ls_values-wname = <fs_lines>-tdline.
ENDIF.
IF <fs_lines>-tdformat = '/E'.
ls_values-tname = <fs_lines>-tdline.
APPEND ls_values TO lt_values.
ENDIF.
ENDLOOP.
ENDIF.
ls_dselc-fldname = 'F0001'.
ls_dselc-dyfldname = 'PA_WNAME'.
APPEND ls_dselc TO lt_dselc.
ls_dselc-fldname = 'F0002'.
ls_dselc-dyfldname = 'PA_TNAME'.
APPEND ls_dselc TO lt_dselc.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'TNAME'
* PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'PA_TNAME'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* CALLBACK_METHOD =
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
value_tab = lt_values
field_tab = lt_fields
return_tab = lt_return
dynpfld_mapping = lt_dselc
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDFORM. " FORMULAR_ELEMENT_F4
*&---------------------------------------------------------------------*
*& Form ALV_COPY_TO_CLIPBOARD
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM alv_copy_to_clipboard.
DATA: lt_data TYPE TABLE OF tdline,
ls_data TYPE tdline,
lv_rc TYPE i,
lv_lines TYPE i,
lv_msg TYPE text50.
FIELD-SYMBOLS <fs_data> LIKE LINE OF gt_data.
LOOP AT gt_data ASSIGNING <fs_data> WHERE mark = gc_yes.
CLEAR ls_data.
ls_data = <fs_data>-adapted.
APPEND ls_data TO lt_data.
ENDLOOP.
IF sy-subrc <> 0.
MESSAGE 'Please mark one or more lines.' TYPE 'I'.
RETURN.
ENDIF.
IF lt_data IS INITIAL.
MESSAGE 'No lines were found to copy.' TYPE 'I'.
RETURN.
ENDIF.
CALL METHOD cl_gui_frontend_services=>clipboard_export
* EXPORTING
* no_auth_check = SPACE
IMPORTING
data = lt_data
CHANGING
rc = lv_rc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0 OR lv_rc <> 0.
MESSAGE 'An error occured.' TYPE 'I'.
ENDIF.
lv_lines = lines( lt_data ).
WRITE lv_lines TO lv_msg LEFT-JUSTIFIED.
IF lv_lines = 1.
CONCATENATE lv_msg 'line was copied to clipboard.'
INTO lv_msg SEPARATED BY space.
ELSEIF lv_lines > 1.
CONCATENATE lv_msg 'lines were copied to clipboard.'
INTO lv_msg SEPARATED BY space.
ENDIF.
MESSAGE lv_msg TYPE 'S'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_COLLAPSE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_CS_SFIELD text
* <--P_CS_DATA text
*----------------------------------------------------------------------*
FORM alv_collapse CHANGING cs_sfield TYPE slis_selfield
cs_data LIKE LINE OF gt_data.
DATA: "lt_filter TYPE lvc_t_filt,
ls_filter TYPE lvc_s_filt,
lv_rint TYPE qfranint,
lv_rnumc TYPE numc4.
FIELD-SYMBOLS <fs_data> LIKE LINE OF gt_data.
* CALL METHOD gr_grid->get_filter_criteria
* IMPORTING
* et_filter = lt_filter.
* create individual value for filter
CALL FUNCTION 'QF05_RANDOM_INTEGER'
EXPORTING
ran_int_max = 1024
ran_int_min = 1
IMPORTING
ran_int = lv_rint
EXCEPTIONS
invalid_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE 'Error while collapsing rows.' TYPE 'I'.
RETURN.
ENDIF.
lv_rnumc = lv_rint.
CONCATENATE sy-uzeit '-' lv_rnumc INTO ls_filter-low.
LOOP AT gt_data ASSIGNING <fs_data> FROM cs_sfield-tabindex.
IF sy-tabix = cs_sfield-tabindex. " not to filter
CONCATENATE 'B-' ls_filter-low INTO <fs_data>-colexpfn.
ELSE. " filter
IF <fs_data>-colexpfn IS NOT INITIAL.
* delete older filter if exists
READ TABLE gt_filter TRANSPORTING NO FIELDS
WITH KEY low = <fs_data>-colexpfn.
IF sy-subrc = 0.
DELETE gt_filter INDEX sy-tabix.
ENDIF.
IF <fs_data>-colexpic = icon_expand.
<fs_data>-colexpic = icon_collapse.
ENDIF.
ENDIF.
* set new value for filter
CONCATENATE 'F-' ls_filter-low INTO <fs_data>-colexpfn.
IF <fs_data>-format = '/:' AND <fs_data>-level = cs_data-level.
IF cs_data-original CS 'IF' AND
<fs_data>-original CS 'ENDIF'.
EXIT.
ENDIF.
IF cs_data-original CS 'CASE' AND
<fs_data>-original CS 'ENDCASE'.
EXIT.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
IF sy-subrc <> 0.
MESSAGE 'Error while collapsing rows.' TYPE 'I'.
RETURN.
ENDIF.
ls_filter-tabname = 'GT_DATA'.
ls_filter-fieldname = 'COLEXPFN'.
ls_filter-ref_field = 'COLEXPFN'.
ls_filter-sign = 'E'.
ls_filter-option = 'EQ'.
CONCATENATE 'F-' ls_filter-low INTO ls_filter-low.
ls_filter-order = lines( gt_filter ) + 1.
APPEND ls_filter TO gt_filter.
* CALL METHOD gr_grid->set_filter_criteria
* EXPORTING
* it_filter = lt_filter
* EXCEPTIONS
* no_fieldcatalog_available = 1
* OTHERS = 2.
*
* IF sy-subrc <> 0.
* MESSAGE 'Error while collapsing rows.' TYPE 'I'.
* RETURN.
* ENDIF.
cs_sfield-refresh = gc_yes.
cs_data-colexpic = icon_expand.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_EXPAND
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_CS_SFIELD text
* <--P_CS_DATA text
*----------------------------------------------------------------------*
FORM alv_expand CHANGING cs_sfield TYPE slis_selfield
cs_data LIKE LINE OF gt_data.
DATA: lt_filter TYPE lvc_t_filt,
ls_filter TYPE lvc_s_filt,
ls_data LIKE LINE OF gt_data,
ls_sfield TYPE slis_selfield.
FIELD-SYMBOLS <fs_data> LIKE LINE OF gt_data.
IF cs_data-colexpfn IS INITIAL.
MESSAGE 'Error while expanding rows.' TYPE 'I'.
RETURN.
ENDIF.
ls_filter-low = cs_data-colexpfn.
ls_filter-low+0(1) = 'F'.
CLEAR cs_data-colexpfn.
CALL METHOD gr_grid->get_filter_criteria
IMPORTING
et_filter = lt_filter.
* remove filter from list of all filter
DELETE lt_filter WHERE low = ls_filter-low.
IF sy-subrc <> 0.
MESSAGE 'Error while expanding rows.' TYPE 'I'.
RETURN.
ENDIF.
CALL METHOD gr_grid->set_filter_criteria
EXPORTING
it_filter = lt_filter
EXCEPTIONS
no_fieldcatalog_available = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE 'Error while expanding rows.' TYPE 'I'.
RETURN.
ENDIF.
* for better overview, hide every path within the old filter
LOOP AT gt_data ASSIGNING <fs_data>
WHERE format = '/:'
AND colexpic IS NOT INITIAL
AND colexpfn = ls_filter-low.
ls_sfield-tabindex = sy-tabix.
PERFORM alv_collapse_single USING ls_sfield
<fs_data>.
ENDLOOP.
* remove filter from memory
MODIFY gt_data FROM ls_data
TRANSPORTING colexpfn
WHERE colexpfn = ls_filter-low.
IF sy-subrc <> 0.
MESSAGE 'Error while expanding rows.' TYPE 'I'.
RETURN.
ENDIF.
cs_sfield-refresh = gc_yes.
cs_data-colexpic = icon_collapse.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form UPDATE_CHECK
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM update_check.
DATA lv_url TYPE string.
* build url to open blog on scn via internet browser
CONCATENATE gc_burl1 gc_burl2 gc_burl3 INTO lv_url.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = lv_url
* application =
* parameter =
* default_directory =
* maximized =
* minimized =
* synchronous =
* operation = 'OPEN'
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.
MESSAGE 'Failed to show blog via internet browser.' TYPE 'I'.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form COLOR_PRESET
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM color_preset.
DATA: ls_values TYPE vrm_value,
lt_values TYPE TABLE OF vrm_value,
lt_id TYPE TABLE OF vrm_id,
ls_id TYPE vrm_id.
ls_values-key = '100'.
ls_values-text = 'grey blue'.
APPEND ls_values TO lt_values.
ls_values-key = '200'.
ls_values-text = 'light grey'.
APPEND ls_values TO lt_values.
ls_values-key = '210'.
ls_values-text = 'grey'.
APPEND ls_values TO lt_values.
ls_values-key = '300'.
ls_values-text = 'light yellow'.
APPEND ls_values TO lt_values.
ls_values-key = '310'.
ls_values-text = 'yellow'.
APPEND ls_values TO lt_values.
ls_values-key = '410'.
ls_values-text = 'blue'.
APPEND ls_values TO lt_values.
ls_values-key = '500'.
ls_values-text = 'light green'.
APPEND ls_values TO lt_values.
ls_values-key = '510'.
ls_values-text = 'green'.
APPEND ls_values TO lt_values.
ls_values-key = '600'.
ls_values-text = 'light red'.
APPEND ls_values TO lt_values.
ls_values-key = '610'.
ls_values-text = 'red'.
APPEND ls_values TO lt_values.
ls_values-key = '700'.
ls_values-text = 'light orange'.
APPEND ls_values TO lt_values.
ls_values-key = '710'.
ls_values-text = 'orange'.
APPEND ls_values TO lt_values.
ls_values-key = 'IND'.
ls_values-text = 'individual'.
APPEND ls_values TO lt_values.
ls_id = 'PA_CLRP1'.
APPEND ls_id TO lt_id.
ls_id = 'PA_CLRP2'.
APPEND ls_id TO lt_id.
ls_id = 'PA_CLRP3'.
APPEND ls_id TO lt_id.
ls_id = 'PA_CLRP4'.
APPEND ls_id TO lt_id.
LOOP AT lt_id INTO ls_id.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = ls_id
values = lt_values
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FORM_EDIT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_0768 text
*----------------------------------------------------------------------*
FORM form_edit USING uv_type TYPE char1
us_data LIKE LINE OF gt_data.
DATA: lv_subrc TYPE sysubrc,
lt_bdcdt TYPE bdcdata OCCURS 20,
ls_bdcdt TYPE bdcdata,
lt_msgs TYPE bdcmsgcoll OCCURS 10,
lv_wname TYPE tdwindow,
lv_row TYPE tdrow,
lv_line TYPE txlinenr,
lt_fcont TYPE dyfatc_tab,
ls_fcont TYPE rpy_dyfatc,
lv_gedit TYPE tdlineed,
lv_fpain TYPE tdfpainter.
* check if batch input will work (depends on SAP Basis release
* and SE71 functions)
CALL FUNCTION 'RPY_DYNPRO_READ'
EXPORTING
progname = 'SAPMSSCF'
dynnr = '1102'
* SUPPRESS_EXIST_CHECKS = ' '
* SUPPRESS_CORR_CHECKS = ' '
* IMPORTING
* HEADER =
TABLES
* CONTAINERS =
fields_to_containers = lt_fcont
* FLOW_LOGIC =
* PARAMS =
EXCEPTIONS
cancelled = 1
not_found = 2
permission_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE 'Checks on dynpro failed.' TYPE 'I'.
RETURN.
ENDIF.
READ TABLE lt_fcont INTO ls_fcont
WITH KEY cont_type = 'RADIOGROUP'
type = 'RADIO'
name = 'RSSCF-TDWINOB'.
IF sy-subrc <> 0 OR ls_fcont-invisible IS NOT INITIAL.
MESSAGE 'Function is currently not supported.' TYPE 'I'.
RETURN.
ENDIF.
* check if SAPscript editor is active and form painter is not
SELECT SINGLE gra_fpaint gra_editor
FROM rseumod
INTO ( lv_fpain, lv_gedit )
WHERE uname = sy-uname.
IF sy-subrc <> 0.
MESSAGE 'Prechecks failed.' TYPE 'I'.
RETURN.
ENDIF.
IF lv_gedit = gc_no.
MESSAGE 'Please use SAPscript editor as standard editor.' TYPE 'I'.
RETURN.
ENDIF.
IF lv_fpain = gc_yes.
MESSAGE 'Please do not use form painter.' TYPE 'I'.
RETURN.
ENDIF.
IF us_data-window IS INITIAL.
IF us_data-format = '/W'.
lv_wname = us_data-original.
ENDIF.
ELSE.
lv_wname = us_data-window.
ENDIF.
IF lv_wname IS INITIAL.
MESSAGE 'Please select a line with a window.' TYPE 'I'.
RETURN.
ENDIF.
IF us_data-row IS NOT INITIAL.
lv_line = us_data-row.
ENDIF.
bdc-add gc_yes 'SAPMSSCF' '1102'.
bdc-add space 'BDC_CURSOR' 'RSSCF-TDFORM'.
bdc-add space 'BDC_OKCODE' '=EDIT'.
bdc-add space 'RSSCF-TDFORM' pa_fname.
bdc-add space 'RSSCF-TDSPRAS' pa_flang.
bdc-add space 'RSSCF-TDWINOB' gc_yes.
bdc-add gc_yes 'SAPMSSCF' '1140'.
bdc-add space 'BDC_CURSOR' 'ITCTW-TDWINDOW'.
bdc-add space 'BDC_OKCODE' '/00'.
bdc-add space 'ITCTW-TDWINDOW' lv_wname.
bdc-add gc_yes 'SAPMSSCF' '1140'.
bdc-add space 'BDC_CURSOR' 'ITCTW-TDWINDOW'.
bdc-add space 'BDC_OKCODE' '=WIED'.
bdc-add gc_yes 'SAPLSTXX' '1100'.
bdc-add space 'BDC_CURSOR' 'RSTXT-TXLINE(00)'.
bdc-add space 'BDC_OKCODE' '=EDPO'.
bdc-add gc_yes 'SAPLSTXX' '1155'.
bdc-add space 'BDC_CURSOR' 'RSTXT-TXLINENR'.
IF lv_line IS NOT INITIAL.
bdc-add space 'RSTXT-TXLINENR' lv_line.
ELSE.
bdc-add space 'RSTXT-TXLINENR' '1'.
ENDIF.
IF uv_type = '1'.
* in same window
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
EXPORTING
tcode = 'SE71'
* SKIP_SCREEN = ' '
mode_val = 'E'
* UPDATE_VAL = 'A'
IMPORTING
subrc = lv_subrc
TABLES
using_tab = lt_bdcdt
* SPAGPA_TAB =
mess_tab = lt_msgs
EXCEPTIONS
call_transaction_denied = 1
tcode_invalid = 2
OTHERS = 3.
ELSEIF uv_type = '2'.
* open new window
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
STARTING NEW TASK 'ZSFBH'
EXPORTING
tcode = 'SE71'
* SKIP_SCREEN = ' '
mode_val = 'E'
* UPDATE_VAL = 'A'
* IMPORTING
* subrc =
TABLES
using_tab = lt_bdcdt
* SPAGPA_TAB =
mess_tab = lt_msgs
EXCEPTIONS
call_transaction_denied = 1
tcode_invalid = 2
OTHERS = 3.
ENDIF.
IF sy-subrc <> 0.
MESSAGE 'An error occured while starting SE71.' TYPE 'I'.
RETURN.
ENDIF.
IF uv_type = '2'.
MESSAGE 'Transaction SE71 started in new window.' TYPE 'S'.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FORM_EDIT_EASY
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM form_edit_simple.
DATA: lt_bdcdt TYPE bdcdata OCCURS 20,
ls_bdcdt TYPE bdcdata.
IF pa_fname IS INITIAL.
RETURN.
ENDIF.
SELECT SINGLE tdname
FROM stxh CLIENT SPECIFIED
INTO pa_fname
WHERE mandt = pa_mandt
AND tdobject = 'FORM'
AND tdname = pa_fname
AND tdid = 'TXT'
AND tdspras = pa_flang.
IF sy-subrc <> 0.
MESSAGE 'Form does not exist.' TYPE 'I'.
RETURN.
ENDIF.
bdc-add gc_yes 'SAPMSSCF' '1102'.
bdc-add space 'BDC_CURSOR' 'RSSCF-TDFORM'.
bdc-add space 'BDC_OKCODE' '=EDIT'.
bdc-add space 'RSSCF-TDFORM' pa_fname.
bdc-add space 'RSSCF-TDSPRAS' pa_flang.
bdc-add space 'RSSCF-TDHEADEROB' gc_yes.
CALL TRANSACTION 'SE71' USING lt_bdcdt MODE 'E'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FORM_SHOW_SIMPLE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM form_show_simple.
DATA: lt_bdcdt TYPE bdcdata OCCURS 20,
ls_bdcdt TYPE bdcdata.
IF pa_fname IS INITIAL.
RETURN.
ENDIF.
SELECT SINGLE tdname
FROM stxh CLIENT SPECIFIED
INTO pa_fname
WHERE mandt = pa_mandt
AND tdobject = 'FORM'
AND tdname = pa_fname
AND tdid = 'TXT'
AND tdspras = pa_flang.
IF sy-subrc <> 0.
MESSAGE 'Form does not exist.' TYPE 'I'.
RETURN.
ENDIF.
bdc-add gc_yes 'SAPMSSCF' '1102'.
bdc-add space 'BDC_CURSOR' 'RSSCF-TDFORM'.
bdc-add space 'BDC_OKCODE' '=SHOW'.
bdc-add space 'RSSCF-TDFORM' pa_fname.
bdc-add space 'RSSCF-TDSPRAS' pa_flang.
bdc-add space 'RSSCF-TDHEADEROB' gc_yes.
CALL TRANSACTION 'SE71' USING lt_bdcdt MODE 'E'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form PRECHECKS
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_LV_SUBRC text
*----------------------------------------------------------------------*
FORM prechecks CHANGING cv_subrc TYPE sysubrc.
IF pa_idtcn < 1 OR pa_idtcn > 4.
MESSAGE 'Please use 1 to 4 blanks for indentation only.' TYPE 'I'.
cv_subrc = gc_rc_error.
RETURN.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FORM_INCLUDE_SHOW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_CS_SFIELD text
* <--P_CS_DATA text
*----------------------------------------------------------------------*
FORM form_include_show CHANGING cs_sfield TYPE slis_selfield
cs_data LIKE LINE OF gt_data.
DATA: lt_parts TYPE TABLE OF tdline,
ls_parts TYPE tdline,
lv_tabix TYPE sytabix,
lv_name TYPE tdobname,
lv_id TYPE tdid,
lv_spras TYPE tdspras,
lt_bdcdt TYPE bdcdata OCCURS 20,
ls_bdcdt TYPE bdcdata,
lv_count TYPE i.
TRANSLATE cs_data-original TO UPPER CASE.
SPLIT cs_data-original AT space INTO TABLE lt_parts.
IF sy-subrc <> 0.
MESSAGE 'INCLUDE not parsed.' TYPE 'I'.
RETURN.
ENDIF.
* find name of include
READ TABLE lt_parts TRANSPORTING NO FIELDS
WITH KEY table_line = 'INCLUDE'.
IF sy-subrc <> 0.
MESSAGE 'INCLUDE not parsed.' TYPE 'I'.
RETURN.
ELSE.
lv_tabix = sy-tabix + 1.
READ TABLE lt_parts INTO ls_parts INDEX lv_tabix.
IF sy-subrc <> 0.
MESSAGE 'INCLUDE not parsed.' TYPE 'I'.
RETURN.
ELSE.
* check if dynamic include
IF ls_parts CA '&'.
MESSAGE 'INCLUDE is dynamic.' TYPE 'I'.
RETURN.
ENDIF.
* check how many quotes we have
FIND ALL OCCURRENCES OF ''''
IN ls_parts
MATCH COUNT lv_count.
IF lv_count = 1.
* name consists of different parts
DO.
CONCATENATE lv_name ls_parts INTO lv_name
SEPARATED BY space.
lv_tabix = lv_tabix + 1.
READ TABLE lt_parts INTO ls_parts INDEX lv_tabix.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF ls_parts CA ''''.
CONCATENATE lv_name ls_parts INTO lv_name
SEPARATED BY space.
EXIT.
ENDIF.
ENDDO.
ELSE.
lv_name = ls_parts.
ENDIF.
REPLACE ALL OCCURRENCES OF '''' IN lv_name WITH space.
SHIFT lv_name LEFT DELETING LEADING space.
ENDIF.
ENDIF.
* find id
READ TABLE lt_parts TRANSPORTING NO FIELDS
WITH KEY table_line = 'ID'.
IF sy-subrc <> 0.
lv_id = 'ST'.
ELSE.
lv_tabix = sy-tabix + 1.
READ TABLE lt_parts INTO ls_parts INDEX lv_tabix.
IF sy-subrc <> 0.
lv_id = gs_form-header-tdid.
ELSE.
REPLACE ALL OCCURRENCES OF '''' IN ls_parts WITH space.
SHIFT ls_parts LEFT DELETING LEADING space.
lv_id = ls_parts.
ENDIF.
ENDIF.
* find language
READ TABLE lt_parts TRANSPORTING NO FIELDS
WITH KEY table_line = 'LANGUAGE'.
IF sy-subrc <> 0.
lv_spras = gs_form-header-tdspras.
ELSE.
lv_tabix = sy-tabix + 1.
READ TABLE lt_parts INTO ls_parts INDEX lv_tabix.
IF sy-subrc <> 0.
ELSE.
IF ls_parts CA '&'.
MESSAGE 'INCLUDE is dynamic.' TYPE 'I'.
RETURN.
ENDIF.
REPLACE ALL OCCURRENCES OF '''' IN ls_parts WITH space.
SHIFT ls_parts LEFT DELETING LEADING space.
lv_spras = ls_parts.
ENDIF.
ENDIF.
bdc-add gc_yes 'SAPMSSCE' '1100'.
bdc-add space 'BDC_CURSOR' 'RSSCE-TDNAME'.
bdc-add space 'BDC_OKCODE' ''.
bdc-add space 'RSSCE-TDNAME' lv_name.
bdc-add space 'RSSCE-TDID' lv_id.
bdc-add space 'RSSCE-TDSPRAS' lv_spras.
CALL TRANSACTION 'SO10' USING lt_bdcdt MODE 'E'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form COMPLEXITY_MEASURE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_LS_DATA text
*----------------------------------------------------------------------*
FORM form_stats_collect USING ut_parts TYPE tsfotabl
us_parts TYPE tdline
uv_tabix TYPE sytabix
CHANGING cs_data LIKE LINE OF gt_data.
DATA: lt_parts TYPE TABLE OF tdline,
ls_parts TYPE tdline,
lv_lines TYPE i,
lv_tabix TYPE i.
* number of physical lines
gs_stats-locphy = gs_stats-locphy + 1.
IF cs_data-format <> '/*' AND cs_data-original IS INITIAL.
* number of blank lines
gs_stats-locbl = gs_stats-locbl + 1.
ENDIF.
IF cs_data-format = '/*'.
* number of commented lines
gs_stats-loccom = gs_stats-loccom + 1.
ELSE.
IF cs_data-original IS NOT INITIAL.
* number of program lines
gs_stats-locpro = gs_stats-locpro + 1.
ENDIF.
ENDIF.
IF cs_data-format = '/W'.
* number of windows
gs_stats-numwin = gs_stats-numwin + 1.
ENDIF.
IF cs_data-format = '/E'.
* number of text elements
gs_stats-numtel = gs_stats-numtel + 1.
ENDIF.
* collect data for McCabe metric (cyclomatic complexity)
IF cs_data-format = '/:'.
IF gs_stats-mccab1 IS INITIAL.
gs_stats-mccab1 = 1.
gs_stats-mccab2 = 1.
cs_data-mccabe1 = gs_stats-mccab1.
cs_data-mccabe2 = gs_stats-mccab2.
SHIFT cs_data-mccabe1 LEFT DELETING LEADING '0'.
SHIFT cs_data-mccabe2 LEFT DELETING LEADING '0'.
ENDIF.
IF us_parts = 'IF' OR us_parts = 'ELSEIF' OR us_parts = 'CASE'.
gs_stats-mccab1 = gs_stats-mccab1 + 1.
cs_data-mccabe1 = gs_stats-mccab1.
SHIFT cs_data-mccabe1 LEFT DELETING LEADING '0'.
ENDIF.
IF us_parts = 'IF' OR us_parts = 'ELSEIF'.
gs_stats-mccab2 = gs_stats-mccab2 + 1.
LOOP AT ut_parts TRANSPORTING NO FIELDS
WHERE table_line = 'AND'
OR table_line = 'OR'.
* count every condition
gs_stats-mccab2 = gs_stats-mccab2 + 1.
ENDLOOP.
cs_data-mccabe2 = gs_stats-mccab2.
SHIFT cs_data-mccabe2 LEFT DELETING LEADING '0'.
ENDIF.
ENDIF.
* collect data for Halstead metric
SPLIT cs_data-original AT space INTO TABLE lt_parts.
lv_lines = lines( lt_parts ).
LOOP AT lt_parts INTO ls_parts.
lv_tabix = sy-tabix.
TRANSLATE ls_parts TO UPPER CASE.
IF cs_data-format <> '/:'.
* should be operand
APPEND ls_parts TO gs_stats-hsopd.
CONTINUE.
ENDIF.
IF lv_tabix = lv_lines.
REPLACE ALL OCCURRENCES OF '.' IN ls_parts WITH space.
ENDIF.
READ TABLE gt_sscmd TRANSPORTING NO FIELDS
WITH KEY command = ls_parts.
IF sy-subrc = 0.
* should be operator
APPEND ls_parts TO gs_stats-hsopt.
CONTINUE.
ELSE.
IF ls_parts IS NOT INITIAL.
* should be operand
APPEND ls_parts TO gs_stats-hsopd.
CONTINUE.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FORM_SUBROUTINE_SHOW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_CS_SFIELD text
* <--P_CS_DATA text
*----------------------------------------------------------------------*
FORM form_subroutine_show CHANGING cs_sfield TYPE slis_selfield
cs_data LIKE LINE OF gt_data.
DATA: lt_parts TYPE TABLE OF tdline,
ls_parts TYPE tdline,
ls_vhead TYPE scwb_version_header,
lt_scode TYPE bcwbd_abaptext_lines,
lv_subr TYPE abaptxt255,
lv_line TYPE n LENGTH 6.
* reduce SAPscript command
SPLIT cs_data-original AT space INTO TABLE lt_parts.
DELETE lt_parts WHERE table_line = 'PERFORM' OR
table_line = 'IN' OR
table_line = 'PROGRAM'.
IF sy-subrc <> 0.
MESSAGE 'Subroutine could not be shown.' TYPE 'I'.
RETURN.
ENDIF.
READ TABLE lt_parts INTO lv_subr INDEX 1.
IF sy-subrc <> 0.
MESSAGE 'Subroutine could not be shown.' TYPE 'I'.
RETURN.
ENDIF.
READ TABLE lt_parts INTO ls_vhead-objname INDEX 2.
IF sy-subrc <> 0.
MESSAGE 'Subroutine could not be shown.' TYPE 'I'.
RETURN.
ENDIF.
ls_vhead-pgmid = 'LIMU'.
ls_vhead-objtype = 'REPS'.
CALL FUNCTION 'SCWB_GET_ABAP_CODE_OF_OBJECT'
EXPORTING
is_version_header = ls_vhead
* IV_CASE = ' '
* IV_CONDENSE_REQUIRED = ' '
* IV_IGNORE_COMMENTS = ' '
IMPORTING
* ES_RAW_INCLUDE =
* ET_CODE_RAW =
et_code_normalized = lt_scode
EXCEPTIONS
rfc_error = 1
not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE 'Subroutine could not be shown.' TYPE 'I'.
RETURN.
ENDIF.
CLEAR lv_line.
FIND FIRST OCCURRENCE OF lv_subr
IN TABLE lt_scode
IGNORING CASE
MATCH LINE lv_line.
IF sy-subrc <> 0.
MESSAGE 'Subroutine could not be shown.' TYPE 'I'.
RETURN.
ENDIF.
CALL FUNCTION 'EDITOR_PROGRAM'
EXPORTING
* APPID = ' '
display = gc_yes
* FBNAME = ' '
line = lv_line
* MESSAGE = ' '
* OFFSET = '00'
program = ls_vhead-objname
topline = lv_line
* VARIED = ' '
* TRDIR_INF = ' '
* STATUS = ' '
* ORIGINAL_POS_FLAG = 'X'
* IMPORTING
* DYNPRO =
* EVENT =
* FCODE =
* MODULE =
* SUBRC =
EXCEPTIONS
application = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE 'Subroutine could not be shown.' TYPE 'I'.
RETURN.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FORM_STATS_SHOW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM form_stats_show.
DATA: lt_msgs TYPE bapiret2_t,
ls_msgs TYPE bapiret2,
lv_perc TYPE char15,
lv_text TYPE tdline.
* general information
MESSAGE s499 WITH 'General information' INTO ls_msgs-message.
sy-vline = gc_yes.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Number of window elements:'
gs_stats-numwin
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Number of text elements:'
gs_stats-numtel
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
IF gs_stats-ssyst CO space.
MESSAGE s499 WITH 'Number of system symbols: 0'
INTO ls_msgs-message.
ELSE.
MESSAGE s499 WITH 'Number of system symbols:'
gs_stats-ssyst
INTO ls_msgs-message.
ENDIF.
PERFORM messages_collect CHANGING lt_msgs.
IF gs_stats-sstnd CO space.
MESSAGE s499 WITH 'Number of standard symbols: 0'
INTO ls_msgs-message.
ELSE.
MESSAGE s499 WITH 'Number of standard symbols:'
gs_stats-sstnd
INTO ls_msgs-message.
ENDIF.
PERFORM messages_collect CHANGING lt_msgs.
IF gs_stats-sprog CO space.
MESSAGE s499 WITH 'Number of program symbols: 0'
INTO ls_msgs-message.
ELSE.
MESSAGE s499 WITH 'Number of program symbols:'
gs_stats-sprog
INTO ls_msgs-message.
ENDIF.
PERFORM messages_collect CHANGING lt_msgs.
IF gs_stats-sform CO space.
MESSAGE s499 WITH 'Number of form symbols: 0'
INTO ls_msgs-message.
ELSE.
MESSAGE s499 WITH 'Number of form symbols:'
gs_stats-sform
INTO ls_msgs-message.
ENDIF.
PERFORM messages_collect CHANGING lt_msgs.
* source lines of code
MESSAGE s499 WITH 'Source lines of code' INTO ls_msgs-message.
sy-vline = gc_yes.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Number of physical lines:'
gs_stats-locphy
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
CONCATENATE '(~' gs_stats-locprp '%)' INTO lv_perc.
MESSAGE s499 WITH 'Number of program lines:'
gs_stats-locpro
lv_perc
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
CLEAR lv_perc.
CONCATENATE '(~' gs_stats-loccop '%)' INTO lv_perc.
MESSAGE s499 WITH 'Number of commented lines:'
gs_stats-loccom
lv_perc
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
CLEAR lv_perc.
CONCATENATE '(~' gs_stats-locblp '%)' INTO lv_perc.
MESSAGE s499 WITH 'Number of blanks lines:'
gs_stats-locbl
lv_perc
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
* McCabe metric
MESSAGE s499 WITH 'McCabe metric' INTO ls_msgs-message.
sy-vline = gc_yes.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'McCabe (single precision):'
gs_stats-mccab1
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'McCabe (double precision):'
gs_stats-mccab2
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
* Halstead metric
MESSAGE s499 WITH 'Halstead metric' INTO ls_msgs-message.
sy-vline = gc_yes.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Number of distinct operators:'
gs_stats-hsln1
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Number of distinct operands:'
gs_stats-hsln2
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Total number of operators:'
gs_stats-hsbn1
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Total number of operands:'
gs_stats-hsbn2
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Halstead program vocabulary:'
gs_stats-hsprv
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Halstead program length:'
gs_stats-hsprl
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Halstead volume:'
gs_stats-hsvol
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Halstead difficulty:'
gs_stats-hsdif
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Halstead effort to implement:'
gs_stats-hseff
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
MESSAGE s499 WITH 'Halstead time to implement:'
gs_stats-hstti
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
* operator list
MESSAGE s499 WITH 'Operator list' INTO ls_msgs-message.
sy-vline = gc_yes.
PERFORM messages_collect CHANGING lt_msgs.
FIELD-SYMBOLS: <fs_hsopt> TYPE operator.
DATA: lv_count TYPE numc5,
lt_hsopt LIKE gs_stats-hsopt.
lt_hsopt = gs_stats-hsopt.
SORT lt_hsopt.
DELETE ADJACENT DUPLICATES FROM lt_hsopt.
LOOP AT lt_hsopt ASSIGNING <fs_hsopt>.
CLEAR: lv_count,
lv_text.
LOOP AT gs_stats-hsopt TRANSPORTING NO FIELDS
WHERE table_line = <fs_hsopt>-operator.
lv_count = lv_count + 1.
ENDLOOP.
CONCATENATE '"' <fs_hsopt>-operator '":' INTO lv_text.
SHIFT lv_count LEFT DELETING LEADING '0'.
MESSAGE s499 WITH 'Number of statement'
lv_text
lv_count
INTO ls_msgs-message.
PERFORM messages_collect CHANGING lt_msgs.
ENDLOOP.
* output in window
PERFORM messages_show USING lt_msgs.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form MESSAGES_COLLECT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_LT_MSGS text
*----------------------------------------------------------------------*
FORM messages_collect CHANGING ct_msgs TYPE bapiret2_t.
DATA ls_msgs TYPE bapiret2.
ls_msgs-id = sy-msgid.
ls_msgs-type = sy-msgty.
ls_msgs-number = sy-msgno.
ls_msgs-message_v1 = sy-msgv1.
ls_msgs-message_v2 = sy-msgv2.
ls_msgs-message_v3 = sy-msgv3.
ls_msgs-message_v4 = sy-msgv4.
* mark line as headline for later use
IF sy-vline = gc_yes.
CLEAR sy-vline.
ls_msgs-parameter = 'HL'.
ENDIF.
APPEND ls_msgs TO ct_msgs.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form MESSAGES_SHOW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_LT_MSGS text
*----------------------------------------------------------------------*
FORM messages_show USING ut_msgs TYPE bapiret2_t.
DATA: ls_msgs TYPE bapiret2,
lv_zeile TYPE numc3.
CALL FUNCTION 'MESSAGES_INITIALIZE'
EXPORTING
* COLLECT_AND_SEND = ' '
* RESET = 'X'
* LINE_FROM = ' '
* LINE_TO = ' '
* I_STORE_DUPLICATES = 'X'
i_no_duplicate_count = 0
* I_IDENTIFICATION =
* CHECK_ON_COMMIT = 'X'
* I_ALLOW_FOREIGN_RESET = 'X'
* I_RESET_LINE = 'X'
* IMPORTING
* E_IDENTIFICATION =
EXCEPTIONS
log_not_active = 1
wrong_identification = 2
OTHERS = 3.
IF sy-subrc <> 0.
RETURN.
ENDIF.
lv_zeile = '001'.
LOOP AT ut_msgs INTO ls_msgs.
IF ls_msgs-parameter = 'HL'.
CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE'
EXPORTING
arbgb = ls_msgs-id
msgty = ls_msgs-type
msgv1 = ls_msgs-message_v1
msgv2 = ls_msgs-message_v2
msgv3 = ls_msgs-message_v3
msgv4 = ls_msgs-message_v4
txtnr = ls_msgs-number
zeile = lv_zeile
* MODIFY =
EXCEPTIONS
not_active = 1
OTHERS = 2.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ELSE.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = 'SY'
* EXCEPTION_IF_NOT_ACTIVE = 'X'
msgty = 'S'
msgv1 = ls_msgs-message_v1
msgv2 = ls_msgs-message_v2
msgv3 = ls_msgs-message_v3
msgv4 = ls_msgs-message_v4
txtnr = '499'
* zeile =
* IMPORTING
* ACT_SEVERITY =
* MAX_SEVERITY =
EXCEPTIONS
message_type_not_valid = 1
not_active = 2
OTHERS = 3.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDIF.
lv_zeile = lv_zeile + 1.
ENDLOOP.
CALL FUNCTION 'MESSAGES_SHOW'
EXPORTING
* CORRECTIONS_OPTION = ' '
* CORRECTIONS_FUNC_TEXT = ' '
* MSG_SELECT_FUNC = ' '
* MSG_SELECT_FUNC_TEXT = ' '
* LINE_FROM = ' '
* LINE_TO = ' '
object = 'Stats'
* SEND_IF_ONE = ' '
* BATCH_LIST_TYPE = 'J'
show_linno = gc_no
* SHOW_LINNO_TEXT = ' '
* SHOW_LINNO_TEXT_LEN = '3'
i_use_grid = gc_yes
* I_AMODAL_WINDOW = ' '
* IMPORTING
* CORRECTIONS_WANTED =
* MSG_SELECTED =
* E_EXIT_COMMAND =
EXCEPTIONS
inconsistent_range = 1
no_messages = 2
OTHERS = 3.
IF sy-subrc <> 0.
RETURN.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FORM_STATS_CALCULATE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM form_stats_calculate.
DATA: lt_hsopd LIKE gs_stats-hsopd,
lt_hsopt LIKE gs_stats-hsopt.
* number of program lines as percentage value
gs_stats-locprp = ( gs_stats-locpro / gs_stats-locphy ) * 100.
SHIFT gs_stats-locprp LEFT DELETING LEADING '0'.
* number of commented lines as percentage value
gs_stats-loccop = ( gs_stats-loccom / gs_stats-locphy ) * 100.
SHIFT gs_stats-loccop LEFT DELETING LEADING '0'.
* number of blank lines as percentage value
gs_stats-locblp = ( gs_stats-locbl / gs_stats-locphy ) * 100.
SHIFT gs_stats-locblp LEFT DELETING LEADING '0'.
* number of distinct operators
lt_hsopt = gs_stats-hsopt.
SORT lt_hsopt.
DELETE ADJACENT DUPLICATES FROM lt_hsopt.
gs_stats-hsln1 = lines( lt_hsopt ).
* number of distinct operands
lt_hsopd = gs_stats-hsopd.
SORT lt_hsopd.
DELETE ADJACENT DUPLICATES FROM lt_hsopd.
gs_stats-hsln2 = lines( lt_hsopd ).
* total number of operators
gs_stats-hsbn1 = lines( gs_stats-hsopt ).
* total number of operands
gs_stats-hsbn2 = lines( gs_stats-hsopd ).
gs_stats-hsprv = gs_stats-hsln1 + gs_stats-hsln2.
gs_stats-hsprl = gs_stats-hsbn1 + gs_stats-hsbn2.
gs_stats-hsvol = gs_stats-hsprl * log( gs_stats-hsprv ).
gs_stats-hsdif = ( gs_stats-hsln1 / 2 ) *
( gs_stats-hsbn2 / gs_stats-hsln2 ).
gs_stats-hseff = gs_stats-hsdif * gs_stats-hsvol.
gs_stats-hstti = gs_stats-hseff / 18.
SHIFT gs_stats-locphy LEFT DELETING LEADING '0'.
SHIFT gs_stats-locpro LEFT DELETING LEADING '0'.
SHIFT gs_stats-loccom LEFT DELETING LEADING '0'.
SHIFT gs_stats-locbl LEFT DELETING LEADING '0'.
SHIFT gs_stats-numwin LEFT DELETING LEADING '0'.
SHIFT gs_stats-numtel LEFT DELETING LEADING '0'.
SHIFT gs_stats-mccab1 LEFT DELETING LEADING '0'.
SHIFT gs_stats-mccab2 LEFT DELETING LEADING '0'.
SHIFT gs_stats-hsln1 LEFT DELETING LEADING '0'.
SHIFT gs_stats-hsln2 LEFT DELETING LEADING '0'.
SHIFT gs_stats-hsbn1 LEFT DELETING LEADING '0'.
SHIFT gs_stats-hsbn2 LEFT DELETING LEADING '0'.
SHIFT gs_stats-hsprv LEFT DELETING LEADING '0'.
SHIFT gs_stats-hsprl LEFT DELETING LEADING '0'.
SHIFT gs_stats-hsvol LEFT DELETING LEADING '0'.
SHIFT gs_stats-hsdif LEFT DELETING LEADING '0'.
SHIFT gs_stats-hseff LEFT DELETING LEADING '0'.
SHIFT gs_stats-hstti LEFT DELETING LEADING '0'.
SHIFT gs_stats-ssyst LEFT DELETING LEADING '0'.
SHIFT gs_stats-sstnd LEFT DELETING LEADING '0'.
SHIFT gs_stats-sprog LEFT DELETING LEADING '0'.
SHIFT gs_stats-sform LEFT DELETING LEADING '0'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form SSCR_EXPR_FILL
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM sscmds_fill.
* build a global internal table with all known SAPscript commands
sscmd_add 'NEW-PAGE'.
sscmd_add 'PROTECT'.
sscmd_add 'ENDPROTECT'.
sscmd_add 'NEW-WINDOW'.
sscmd_add 'DEFINE'.
sscmd_add 'SET'.
sscmd_add 'DATE'.
sscmd_add 'TIME'.
sscmd_add 'MASK'.
sscmd_add 'COUNTRY'.
sscmd_add 'SIGN'.
sscmd_add 'LEFT'.
sscmd_add 'RIGHT'.
sscmd_add 'RESET'.
sscmd_add 'INCLUDE'.
sscmd_add 'OBJECT'.
sscmd_add 'ID'.
sscmd_add 'LANGUAGE'.
sscmd_add 'PARAGRAPH'.
sscmd_add 'NEW-PARAGRAPH'.
sscmd_add 'STYLE'.
sscmd_add 'DOMINANT'.
sscmd_add 'ADDRESS'.
sscmd_add 'DELIVERY'.
sscmd_add 'TYPE'.
sscmd_add 'PRIORITY'.
sscmd_add 'LINES'.
sscmd_add 'TITLE'.
sscmd_add 'NAME'.
sscmd_add 'PERSON'.
sscmd_add 'PERSONNUMBER'.
sscmd_add 'DEPARTMENT'.
sscmd_add 'STREET'.
sscmd_add 'HOUSE'.
sscmd_add 'LOCATION'.
sscmd_add 'POBOX'.
sscmd_add 'CODE'.
sscmd_add 'CITY'.
sscmd_add 'POSTCODE'.
sscmd_add 'NO_UPPERCASE_FOR_CITY'.
sscmd_add 'REGION'.
sscmd_add 'COUNTRY'.
sscmd_add 'COUNTRY_IN_REC_LANG'.
sscmd_add 'LANG_FOR_COUNTRY'.
sscmd_add 'FROMCOUNTRY'.
sscmd_add 'ADDRESSNUMBER'.
sscmd_add 'ENDADDRESS'.
sscmd_add 'TOP'.
sscmd_add 'ENDTOP'.
sscmd_add 'BOTTOM'.
sscmd_add 'ENDBOTTOM'.
sscmd_add 'IF'.
sscmd_add 'ELSEIF'.
sscmd_add 'ELSE'.
sscmd_add 'ENDIF'.
sscmd_add 'NOT'.
sscmd_add 'AND'.
sscmd_add 'OR'.
sscmd_add 'EQ'.
sscmd_add 'LT'.
sscmd_add 'GT'.
sscmd_add 'LE'.
sscmd_add 'GE'.
sscmd_add 'NE'.
sscmd_add '='.
sscmd_add '<'.
sscmd_add '>'.
sscmd_add '<='.
sscmd_add '>='.
sscmd_add '<>'.
sscmd_add 'CASE'.
sscmd_add 'WHEN'.
sscmd_add 'OTHERS'.
sscmd_add 'ENDCASE'.
sscmd_add 'PERFORM'.
sscmd_add 'IN'.
sscmd_add 'PROGRAM'.
sscmd_add 'USING'.
sscmd_add 'CHANGING'.
sscmd_add 'ENDPERFORM'.
sscmd_add 'PRINT-CONTROL'.
sscmd_add 'BOX'.
sscmd_add 'XPOS'.
sscmd_add 'YPOS'.
sscmd_add 'WIDTH'.
sscmd_add 'HEIGHT'.
sscmd_add 'FRAME'.
sscmd_add 'INTENSITY'.
sscmd_add 'POSITION'.
sscmd_add 'XORIGIN'.
sscmd_add 'YORIGIN'.
sscmd_add 'WINDOW'.
sscmd_add 'PAGE'.
sscmd_add 'SIZE'.
sscmd_add 'HEX'.
sscmd_add 'TYPE'.
sscmd_add 'ENDHEX'.
sscmd_add 'SUMMING'.
sscmd_add 'INTO'.
sscmd_add 'PARAGRAPH'.
sscmd_add 'TEXT'.
sscmd_add 'STRING'.
sscmd_add 'PAGE'.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_COLLAPSE_ALL
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM alv_collapse_all CHANGING cv_refresh TYPE xfeld.
DATA ls_sfield TYPE slis_selfield.
FIELD-SYMBOLS <fs_data> LIKE LINE OF gt_data.
IF gr_grid IS INITIAL.
MESSAGE 'Error while collapsing rows.' TYPE 'I'.
RETURN.
ENDIF.
CALL METHOD gr_grid->get_filter_criteria
IMPORTING
et_filter = gt_filter.
LOOP AT gt_data ASSIGNING <fs_data>
WHERE format = '/:'
AND colexpic IS NOT INITIAL
AND level = 0.
ls_sfield-tabindex = sy-tabix.
PERFORM alv_collapse USING ls_sfield
<fs_data>.
ENDLOOP.
CALL METHOD gr_grid->set_filter_criteria
EXPORTING
it_filter = gt_filter
EXCEPTIONS
no_fieldcatalog_available = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE 'Error while collapsing rows.' TYPE 'I'.
RETURN.
ENDIF.
IF sy-subrc = 0.
cv_refresh = gc_yes.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_EXPAND_ALL
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_LV_REFRESH text
*----------------------------------------------------------------------*
FORM alv_expand_all CHANGING cv_refresh TYPE xfeld.
DATA ls_sfield TYPE slis_selfield.
FIELD-SYMBOLS <fs_data> LIKE LINE OF gt_data.
LOOP AT gt_data ASSIGNING <fs_data>
WHERE format = '/:'
AND colexpic = icon_expand.
PERFORM alv_expand USING ls_sfield
<fs_data>.
ENDLOOP.
IF sy-subrc = 0.
cv_refresh = gc_yes.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_COLLAPSE_SINGLE
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_CS_SFIELD text
* <--P_CS_DATA text
*----------------------------------------------------------------------*
FORM alv_collapse_single CHANGING cs_sfield TYPE slis_selfield
cs_data LIKE LINE OF gt_data.
IF gr_grid IS INITIAL.
MESSAGE 'Error while collapsing rows.' TYPE 'I'.
RETURN.
ENDIF.
CALL METHOD gr_grid->get_filter_criteria
IMPORTING
et_filter = gt_filter.
PERFORM alv_collapse CHANGING cs_sfield cs_data.
CALL METHOD gr_grid->set_filter_criteria
EXPORTING
it_filter = gt_filter
EXCEPTIONS
no_fieldcatalog_available = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE 'Error while collapsing rows.' TYPE 'I'.
RETURN.
ENDIF.
* cs_sfield-refresh = gc_yes.
* cs_data-colexpic = icon_expand.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form ALV_COLLAPSE_BEFORE_SHOW
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM alv_collapse_before_show.
DATA ls_sfield TYPE slis_selfield.
FIELD-SYMBOLS <fs_data> LIKE LINE OF gt_data.
LOOP AT gt_data ASSIGNING <fs_data>
WHERE format = '/:'
AND colexpic IS NOT INITIAL
AND level = 0.
ls_sfield-tabindex = sy-tabix.
PERFORM alv_collapse USING ls_sfield
<fs_data>.
ENDLOOP.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form FORM_SYMBOL_GOTO
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* <--P_CS_SFIELD text
* <--P_CS_DATA text
*----------------------------------------------------------------------*
FORM form_symbol_definition CHANGING cs_sfield TYPE slis_selfield
cs_data LIKE LINE OF gt_data.
DATA: ls_col TYPE lvc_s_col,
ls_row TYPE lvc_s_row,
ls_ctrl TYPE REF TO cl_gui_control,
ls_lcont TYPE tline,
lv_name TYPE tdform.
FIELD-SYMBOLS: <fs_symbol> TYPE tdline,
<fs_data> LIKE LINE OF gt_data.
ASSIGN COMPONENT cs_sfield-fieldname OF STRUCTURE cs_data
TO <fs_symbol>.
IF sy-subrc <> 0.
MESSAGE 'Symbol definition not found.' TYPE 'I'.
RETURN.
ENDIF.
IF <fs_symbol> IS INITIAL.
MESSAGE 'No symbol found.' TYPE 'I'.
RETURN.
ENDIF.
* find definition in SAPscript
LOOP AT gt_data ASSIGNING <fs_data>
WHERE format = '/:'
AND original CS 'DEFINE'
AND original CS <fs_symbol>.
ls_row-index = sy-tabix.
EXIT.
ENDLOOP.
* go to definition in SAPscript
IF sy-subrc = 0.
ls_col-fieldname = 'ADAPTED'.
CALL METHOD gr_grid->set_current_cell_via_id
EXPORTING
is_row_id = ls_row
is_column_id = ls_col.
* is_row_no =
CALL METHOD cl_gui_alv_grid=>get_focus
IMPORTING
control = ls_ctrl
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE 'Symbol definition not found.' TYPE 'I'.
RETURN.
ENDIF.
CALL METHOD gr_grid->set_focus
EXPORTING
control = ls_ctrl
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE 'Symbol definition not found.' TYPE 'I'.
RETURN.
ENDIF.
RETURN.
ENDIF.
CONCATENATE '&' <fs_symbol> '&' INTO ls_lcont-tdline.
lv_name = gs_form-header-tdname.
* symbol is defined in printer program
CALL FUNCTION 'SAPSCRIPT_SYMBOL_DEFINITION'
EXPORTING
line_contents = ls_lcont
cursor_position = 2
layout_set = lv_name
* DIALOG = 'X'
* LINE_EDITOR = ' '
EXCEPTIONS
no_symbol_in_line = 1
cursor_before_first_symbol = 2
cursor_not_on_symbol = 3
not_executed = 4
OTHERS = 5.
IF sy-subrc = 0 OR sy-subrc = 4.
RETURN.
ELSE.
MESSAGE 'Symbol definition not found.' TYPE 'I'.
RETURN.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form SYMBOL_TABLE_CHECK
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_<FS_SYMBOLS>_NAME text
* <--P_LS_DATA text
*----------------------------------------------------------------------*
FORM symbol_info_collect USING us_symbol TYPE itcst
CHANGING cs_data LIKE LINE OF gt_data.
DATA: lv_tname TYPE tabname,
ls_dd02v TYPE dd02v,
ls_dd09l TYPE dd09l,
lt_parts TYPE TABLE OF tdsymbname,
ls_parts TYPE tdsymbname,
ls_symbol TYPE symbol,
lv_syst TYPE xfeld,
lv_prog TYPE xfeld,
lv_stnd TYPE xfeld.
* check if symbol is already known
READ TABLE gs_form-symbols INTO ls_symbol
WITH KEY symbol = us_symbol-name.
IF sy-subrc = 0.
* create comment about symbol
PERFORM auto_comment_symbol
USING ls_symbol
CHANGING cs_data.
RETURN.
ENDIF.
ls_symbol-symbol = us_symbol-name.
* otherwise have a look if it is a structure defined by TABLES
SPLIT us_symbol-name AT '-' INTO TABLE lt_parts.
IF sy-subrc = 0.
READ TABLE lt_parts INTO ls_parts INDEX 1.
IF sy-subrc = 0.
lv_tname = ls_parts.
* check global memory with database table information first
READ TABLE gt_dd09l INTO ls_dd09l
WITH KEY tabname = lv_tname.
IF sy-subrc <> 0.
* read technical information about database table
CALL FUNCTION 'DD_INT_TABL_GET'
EXPORTING
tabname = lv_tname
* LANGU = SY-LANGU
IMPORTING
* GOTSTATE =
* GOTSTATE_T =
dd02v_a = ls_dd02v
* DD02V_N =
dd09l_a = ls_dd09l
* DD09L_N =
* TABLES
* DD03P_A =
* DD03P_N =
* DD05M_A =
* DD05M_N =
* DD08V_A =
* DD08V_N =
* DD35V_A =
* DD35V_N =
* DD36M_A =
* DD36M_N =
EXCEPTIONS
internal_error = 1
OTHERS = 2.
IF sy-subrc = 0.
APPEND ls_dd02v TO gt_dd02v.
APPEND ls_dd09l TO gt_dd09l.
ENDIF.
ENDIF.
IF ls_dd02v IS INITIAL.
READ TABLE gt_dd02v INTO ls_dd02v
WITH KEY tabname = lv_tname
ddlanguage = sy-langu.
IF sy-subrc <> 0. " no error handling
ENDIF.
ENDIF.
ls_symbol-tabname = lv_tname.
ls_symbol-tabart = ls_dd09l-tabart.
ls_symbol-tabclass = ls_dd02v-tabclass.
ls_symbol-ddtext = ls_dd02v-ddtext.
ENDIF.
ENDIF.
* check the origin of the symbol
IF pa_prprg IS NOT INITIAL.
CALL FUNCTION 'GET_TEXTSYMBOL_TYPE'
EXPORTING
i_symbolname = us_symbol-name
i_language = pa_flang
IMPORTING
e_is_systemsymbol = lv_syst
e_is_programsymbol = lv_prog
e_is_standardsymbol = lv_stnd
CHANGING
c_program = pa_prprg.
IF lv_syst = gc_yes.
ls_symbol-type = 'SYST'.
gs_stats-ssyst = gs_stats-ssyst + 1.
ELSEIF lv_prog = gc_yes.
ls_symbol-type = 'PROG'.
gs_stats-sprog = gs_stats-sprog + 1.
ELSEIF lv_stnd = gc_yes.
ls_symbol-type = 'STND'.
gs_stats-sstnd = gs_stats-sstnd + 1.
ELSE.
ls_symbol-type = 'FORM'.
gs_stats-sform = gs_stats-sform + 1.
ENDIF.
ENDIF.
APPEND ls_symbol TO gs_form-symbols.
* create comment about symbol
PERFORM auto_comment_symbol
USING ls_symbol
CHANGING cs_data.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form PRINT_PROGRAM_F4
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM print_program_f4.
DATA: lt_dynpf TYPE TABLE OF dynpread,
ls_dynpf TYPE dynpread,
lv_fname LIKE pa_fname.
ls_dynpf-fieldname = 'PA_FNAME'.
APPEND ls_dynpf TO lt_dynpf.
* get current values from selection screen
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = '1000'
* TRANSLATE_TO_UPPER = ' '
* REQUEST = ' '
* PERFORM_CONVERSION_EXITS = ' '
* PERFORM_INPUT_CONVERSION = ' '
* DETERMINE_LOOP_INDEX = ' '
* START_SEARCH_IN_CURRENT_SCREEN = ' '
* START_SEARCH_IN_MAIN_SCREEN = ' '
* START_SEARCH_IN_STACKED_SCREEN = ' '
* START_SEARCH_ON_SCR_STACKPOS = ' '
* SEARCH_OWN_SUBSCREENS_FIRST = ' '
* SEARCHPATH_OF_SUBSCREEN_AREAS = ' '
TABLES
dynpfields = lt_dynpf
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc <> 0.
MESSAGE 'Error showing F4-Help.' TYPE 'I'.
RETURN.
ENDIF.
READ TABLE lt_dynpf INTO ls_dynpf
WITH KEY fieldname = 'PA_FNAME'.
IF sy-subrc <> 0.
MESSAGE 'Error showing F4-Help.' TYPE 'I'.
RETURN.
ENDIF.
IF ls_dynpf-fieldvalue IS INITIAL.
MESSAGE 'Please choose a form first.' TYPE 'I'.
RETURN.
ENDIF.
lv_fname = ls_dynpf-fieldvalue.
CALL FUNCTION 'SAPSCRIPT_SELECT_PROGRAM'
EXPORTING
form = lv_fname
IMPORTING
program = pa_prprg
EXCEPTIONS
no_form = 1
cancel = 2
OTHERS = 3.
CASE sy-subrc.
WHEN 0 OR 2.
RETURN.
WHEN 1.
MESSAGE 'Please choose a valid form.' TYPE 'I'.
WHEN OTHERS.
MESSAGE 'Error showing F4-Help.' TYPE 'I'.
ENDCASE.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form AUTO_COMMENT_SYMBOL
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_LS_SYMBOL text
* <--P_CS_DATA text
*----------------------------------------------------------------------*
FORM auto_comment_symbol USING us_symbol TYPE symbol
CHANGING cs_data LIKE LINE OF gt_data.
DATA lv_comment TYPE text1024.
* check if comment is already generated
IF cs_data-acomment CS us_symbol-tabname.
RETURN.
ENDIF.
* comments can only be 128 characters long, pay attention
* to note 422660
IF us_symbol-tabclass = 'TRANSP'.
IF us_symbol-tabart = 'APPL0'.
lv_comment = 'master data table'.
ELSEIF us_symbol-tabart = 'APPL1'.
lv_comment = 'transaction data table'.
ELSEIF us_symbol-tabart = 'APPL2'.
lv_comment = 'organizational table'.
ELSE.
lv_comment = 'table'.
ENDIF.
ELSEIF us_symbol-tabclass = 'VIEW'.
lv_comment = 'view'.
ELSEIF us_symbol-tabclass = 'INTTAB'.
lv_comment = 'structure'.
ENDIF.
IF lv_comment IS INITIAL.
RETURN.
ENDIF.
CONCATENATE lv_comment
us_symbol-tabname
'('
INTO lv_comment
SEPARATED BY space.
CONCATENATE lv_comment
us_symbol-ddtext
')'
INTO lv_comment.
IF cs_data-acomment IS INITIAL.
cs_data-acomment = lv_comment.
ELSE.
CONCATENATE cs_data-acomment
'||'
lv_comment
INTO cs_data-acomment
SEPARATED BY space.
ENDIF.
ENDFORM.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1168,
20802,
33,
39,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
48323,
12048,
5107,
14608,
31904,
198,
9,
5,
198,
9,
5,
3452,
8517,
2196,
198,
9,
5,
198,
9,
5,
3194,
416,
3899,
35999,
198,
9,
5,
198,
9,
5,
770,
2891,
5419,
11090,
278,
48323,
12048,
5107,
13,
8192,
257,
804,
379,
616,
4130,
198,
9,
5,
319,
48323,
8108,
7311,
329,
517,
3307,
13,
198,
9,
5,
198,
9,
5,
3167,
17111,
25,
314,
466,
407,
1011,
597,
5798,
290,
314,
716,
407,
17583,
329,
198,
9,
5,
597,
2465,
4073,
832,
779,
286,
428,
2891,
13,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
198,
2200,
15490,
1976,
82,
21855,
71,
337,
1546,
4090,
8264,
12,
2389,
827,
13,
198,
198,
25216,
12,
16402,
3535,
50,
25,
7196,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
410,
26224,
13,
198,
198,
1268,
5097,
52,
7206,
1279,
565,
62,
282,
85,
62,
13716,
28401,
198,
198,
5603,
9148,
1546,
264,
1416,
81,
25747,
13,
198,
198,
10943,
2257,
1565,
4694,
308,
66,
62,
7114,
6513,
41876,
2420,
1270,
26173,
8924,
705,
7908,
13,
87,
12,
486,
357,
5324,
13,
5324,
13,
7908,
8,
4458,
198,
198,
10943,
2257,
1565,
4694,
25,
308,
66,
62,
6236,
75,
16,
7,
1954,
8,
41876,
269,
26173,
8924,
705,
5450,
1378,
49096,
13,
82,
499,
13,
785,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
66,
62,
6236,
75,
17,
7,
2624,
8,
41876,
269,
26173,
8924,
31051,
5304,
14,
2931,
14,
1129,
14,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
66,
62,
6236,
75,
18,
7,
2624,
8,
41876,
269,
26173,
8924,
705,
82,
499,
12048,
12,
23914,
12,
9032,
2902,
12,
25981,
14,
4458,
198,
198,
10943,
2257,
1565,
4694,
25,
308,
66,
62,
8505,
41876,
2124,
16265,
26173,
8924,
705,
55,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
66,
62,
3919,
220,
41876,
2124,
16265,
26173,
8924,
2272,
13,
198,
198,
10943,
2257,
1565,
4694,
25,
308,
66,
62,
25616,
220,
41876,
1149,
16,
26173,
8924,
705,
16,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
66,
62,
47730,
41876,
1149,
16,
26173,
8924,
705,
15,
4458,
198,
198,
10943,
2257,
1565,
4694,
25,
308,
66,
62,
6015,
62,
18224,
41876,
827,
7266,
6015,
26173,
8924,
604,
13,
198,
198,
31631,
300,
565,
62,
15596,
62,
30281,
5550,
20032,
17941,
23449,
1137,
22083,
13,
198,
198,
9936,
47,
1546,
25,
347,
43312,
3963,
1515,
392,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
1515,
392,
41876,
41560,
1370,
11,
198,
220,
220,
220,
220,
220,
220,
23578,
3963,
1515,
392,
13,
198,
198,
9936,
47,
1546,
25,
1515,
1746,
41876,
43679,
3963,
1515,
392,
13,
198,
198,
9936,
47,
1546,
25,
347,
43312,
3963,
10088,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
10088,
41876,
41560,
1370,
11,
198,
220,
220,
220,
220,
220,
220,
23578,
3963,
10088,
13,
198,
198,
9936,
47,
1546,
25,
12879,
41876,
43679,
3963,
10088,
13,
198,
198,
9936,
47,
1546,
25,
347,
43312,
3963,
6194,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
6194,
220,
220,
41876,
41560,
1837,
2022,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
41876,
1149,
19,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
7400,
4871,
41876,
7400,
4871,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
7400,
3672,
220,
41876,
7400,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
7400,
433,
220,
220,
41876,
7400,
433,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
49427,
5239,
220,
220,
41876,
49427,
5239,
11,
198,
220,
220,
220,
220,
220,
220,
23578,
3963,
6194,
13,
198,
198,
9936,
47,
1546,
25,
14354,
41876,
43679,
3963,
6194,
13,
198,
198,
26947,
25,
308,
83,
62,
69,
9246,
220,
220,
41876,
300,
28435,
62,
83,
62,
69,
9246,
11,
198,
220,
220,
220,
220,
220,
308,
83,
62,
24455,
41876,
300,
28435,
62,
83,
62,
69,
2326,
11,
198,
220,
220,
220,
220,
220,
1036,
62,
25928,
220,
220,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
282,
85,
62,
25928,
11,
198,
220,
220,
220,
220,
220,
1036,
62,
1990,
71,
25404,
220,
41876,
4526,
37,
5390,
300,
565,
62,
15596,
62,
30281,
11,
198,
220,
220,
220,
220,
220,
308,
83,
62,
1860,
2999,
85,
220,
41876,
43679,
3963,
49427,
2999,
85,
11,
198,
220,
220,
220,
220,
220,
308,
83,
62,
1860,
2931,
75,
220,
41876,
43679,
3963,
49427,
2931,
75,
13,
198,
198,
26947,
25,
308,
85,
62,
34952,
81,
62,
13200,
41876,
269,
406,
49494,
352,
13,
198,
198,
26947,
25,
347,
43312,
3963,
308,
82,
62,
687,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13639,
220,
41876,
262,
324,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3951,
220,
220,
41876,
43679,
3963,
256,
1370,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5468,
220,
220,
41876,
43679,
3963,
340,
310,
70,
11,
198,
220,
220,
220,
220,
220,
220,
220,
279,
86,
1040,
220,
220,
41876,
43679,
3963,
340,
310,
71,
11,
198,
220,
220,
220,
220,
220,
220,
220,
17850,
220,
220,
41876,
43679,
3963,
340,
10210,
79,
11,
198,
220,
220,
220,
220,
220,
220,
220,
13042,
41876,
43679,
3963,
340,
66,
9310,
11,
198,
220,
220,
220,
220,
220,
220,
220,
22524,
220,
220,
220,
41876,
43679,
3963,
340,
10210,
80,
11,
198,
220,
220,
220,
220,
220,
220,
220,
9168,
41876,
43679,
3963,
340,
310,
86,
11,
198,
220,
220,
220,
220,
220,
220,
220,
14354,
41876,
14354,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
308,
82,
62,
687,
13,
198,
198,
26947,
25,
347,
43312,
3963,
308,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS /dmo/cl_flight_amdp01 DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES if_amdp_marker_hdb.
CLASS-METHODS convert_currency IMPORTING VALUE(iv_amount) TYPE /dmo/total_price01
VALUE(iv_currency_code_source) TYPE /dmo/currency_code01
VALUE(iv_currency_code_target) TYPE /dmo/currency_code01
VALUE(iv_exchange_rate_date) TYPE d
EXPORTING VALUE(ev_amount) TYPE /dmo/total_price01.
ENDCLASS.
CLASS /dmo/cl_flight_amdp01 IMPLEMENTATION.
METHOD convert_currency BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT OPTIONS READ-ONLY .
tab = SELECT CONVERT_CURRENCY( amount => :iv_amount,
source_unit => :iv_currency_code_source,
target_unit => :iv_currency_code_target,
reference_date => :iv_exchange_rate_date,
schema => CURRENT_SCHEMA,
error_handling => 'set to null',
steps => 'shift,convert,shift_back',
client => SESSION_CONTEXT( 'CLIENT' )
) AS target_value
FROM dummy ;
ev_amount = :tab.target_value[1];
ENDMETHOD.
ENDCLASS.
| [
31631,
1220,
67,
5908,
14,
565,
62,
22560,
62,
321,
26059,
486,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
611,
62,
321,
26059,
62,
4102,
263,
62,
71,
9945,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
10385,
62,
34415,
30023,
9863,
2751,
26173,
8924,
7,
452,
62,
17287,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
23350,
62,
20888,
486,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
34415,
62,
8189,
62,
10459,
8,
41876,
1220,
67,
5908,
14,
34415,
62,
8189,
486,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
34415,
62,
8189,
62,
16793,
8,
41876,
1220,
67,
5908,
14,
34415,
62,
8189,
486,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
1069,
3803,
62,
4873,
62,
4475,
8,
220,
220,
41876,
288,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
26173,
8924,
7,
1990,
62,
17287,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
23350,
62,
20888,
486,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1220,
67,
5908,
14,
565,
62,
22560,
62,
321,
26059,
486,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
10385,
62,
34415,
11050,
360,
1404,
6242,
11159,
41755,
1961,
11335,
7473,
5572,
33,
406,
15567,
52,
11879,
16363,
6173,
46023,
39852,
11053,
20832,
12,
1340,
11319,
764,
198,
220,
220,
220,
7400,
796,
33493,
7102,
15858,
62,
34,
31302,
45155,
7,
2033,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
1058,
452,
62,
17287,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2723,
62,
20850,
220,
220,
220,
5218,
1058,
452,
62,
34415,
62,
8189,
62,
10459,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
62,
20850,
220,
220,
220,
5218,
1058,
452,
62,
34415,
62,
8189,
62,
16793,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4941,
62,
4475,
5218,
1058,
452,
62,
1069,
3803,
62,
4873,
62,
4475,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
32815,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
327,
39237,
62,
50,
3398,
27630,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
4993,
1359,
5218,
705,
2617,
284,
9242,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4831,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
705,
30846,
11,
1102,
1851,
11,
30846,
62,
1891,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5456,
220,
220,
220,
220,
220,
220,
220,
220,
5218,
311,
47621,
62,
10943,
32541,
7,
705,
5097,
28495,
6,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
7054,
2496,
62,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16034,
31548,
2162,
198,
220,
220,
220,
819,
62,
17287,
796,
1058,
8658,
13,
16793,
62,
8367,
58,
16,
11208,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
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_BG_OBJECTS definition
public
create public .
public section.
interfaces ZIF_BG_OBJECTS .
protected section.
private section.
ENDCLASS.
CLASS ZCL_BG_OBJECTS IMPLEMENTATION.
METHOD zif_bg_objects~to_r3tr.
LOOP AT it_list INTO DATA(ls_list).
IF ls_list-pgmid = 'R3TR'.
APPEND ls_list TO rt_list.
ELSE.
DATA(ls_tadir) = cl_wb_object_type=>get_tadir_from_limu(
p_object = ls_list-object
p_obj_name = ls_list-obj_name ).
APPEND CORRESPONDING #( ls_tadir ) TO rt_list.
ENDIF.
ENDLOOP.
SORT rt_list BY pgmid object obj_name.
DELETE ADJACENT DUPLICATES FROM rt_list COMPARING pgmid object obj_name.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
40469,
62,
9864,
41,
2943,
4694,
6770,
198,
220,
1171,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
5064,
62,
40469,
62,
9864,
41,
2943,
4694,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
40469,
62,
9864,
41,
2943,
4694,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
35904,
62,
48205,
93,
1462,
62,
81,
18,
2213,
13,
628,
220,
220,
220,
17579,
3185,
5161,
340,
62,
4868,
39319,
42865,
7,
7278,
62,
4868,
737,
198,
220,
220,
220,
220,
220,
16876,
43979,
62,
4868,
12,
6024,
13602,
796,
705,
49,
18,
5446,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
43504,
10619,
43979,
62,
4868,
5390,
374,
83,
62,
4868,
13,
198,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
7278,
62,
83,
324,
343,
8,
796,
537,
62,
39346,
62,
15252,
62,
4906,
14804,
1136,
62,
83,
324,
343,
62,
6738,
62,
2475,
84,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
15252,
220,
220,
796,
43979,
62,
4868,
12,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
26801,
62,
3672,
796,
43979,
62,
4868,
12,
26801,
62,
3672,
6739,
628,
220,
220,
220,
220,
220,
220,
220,
43504,
10619,
23929,
19535,
47,
18672,
2751,
1303,
7,
43979,
62,
83,
324,
343,
1267,
5390,
374,
83,
62,
4868,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
220,
220,
311,
9863,
374,
83,
62,
4868,
11050,
23241,
13602,
2134,
26181,
62,
3672,
13,
198,
220,
220,
220,
5550,
2538,
9328,
5984,
41,
2246,
3525,
35480,
31484,
29462,
16034,
374,
83,
62,
4868,
24301,
1503,
2751,
23241,
13602,
2134,
26181,
62,
3672,
13,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! Test
class Z2MSE_TEST_CL_B2 definition
public
final
create public .
public section.
interfaces Z2MSE_TEST_IF_A_00000000000000 .
methods METHOD_A .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS Z2MSE_TEST_CL_B2 IMPLEMENTATION.
METHOD method_a.
DATA(b1) = NEW z2mse_test_cl_b1( ).
b1->method_a( ).
ENDMETHOD.
method Z2MSE_TEST_IF_A_00000000000000~METHOD_A_000000000000000000000.
" A Dummy implementation
endmethod.
ENDCLASS.
| [
198,
40484,
6208,
198,
4871,
1168,
17,
44,
5188,
62,
51,
6465,
62,
5097,
62,
33,
17,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
20314,
1168,
17,
44,
5188,
62,
51,
6465,
62,
5064,
62,
32,
62,
8269,
10535,
764,
628,
220,
5050,
337,
36252,
62,
32,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
17,
44,
5188,
62,
51,
6465,
62,
5097,
62,
33,
17,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2446,
62,
64,
13,
198,
220,
220,
220,
42865,
7,
65,
16,
8,
796,
12682,
1976,
17,
76,
325,
62,
9288,
62,
565,
62,
65,
16,
7,
6739,
198,
220,
220,
220,
275,
16,
3784,
24396,
62,
64,
7,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
2446,
1168,
17,
44,
5188,
62,
51,
6465,
62,
5064,
62,
32,
62,
8269,
10535,
93,
49273,
62,
32,
62,
25645,
20483,
13,
198,
220,
220,
220,
366,
317,
360,
13513,
7822,
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
] |
class ltc_results_container definition
for testing
duration short
risk level harmless
inheriting from zcl_assert.
public section.
data:
self_test type guid_32 value 'SELFTEST',
begin of default_test_entry,
name type sobj_name value 'ZCL_ADASH_RESULTS_CONTAINER',
type type trobjtype value 'CLAS',
package_own type devclass value 'ZADASH_RESULTS',
parent_package type devclass value 'ZADASH',
end of default_test_entry.
private section.
data o_cut type ref to zif_adash_results_container.
methods:
setup,
it_returns_a_full_result for testing,
it_captures_test_results for testing,
it_adds_results_to_parent_pkgs for testing,
it_considers_existing_results for testing,
it_detects_no_coverage_run for testing,
it_captures_test_coverage for testing,
it_captures_test_methods_resul for testing,
"@TODO: avoid multiple adds for the same entry
"@TODO: avoid package entries
then_should_have_adash_summary
importing
execution_guid type guid_32
name type c
total_tests type i optional
total_success type i optional
total_failed type i optional
message type c
statements_covered type i optional
statements_count type i optional
statements_uncovered type i optional
check_change_data type abap_bool optional
returning
value(adash_results_summary) type zsbc_adash_result_summary_t,
then_test_method_results_has
importing
method_result type ztbc_au_tests,
given_an_existing_result
importing
entry type zsbc_program_entry
total_tests type i optional
total_failed type i optional
statements_count type i optional
statements_covered type i optional
statements_uncovered type i optional
total_success type i optional.
endclass.
class ltc_results_container implementation.
method setup.
o_cut = new zcl_adash_results_container( self_test ).
default_test_entry = zcl_adash_entry_info_provider=>populate_package_data( default_test_entry ).
delete from ztbc_au_results where execution = me->self_test.
delete from ztbc_au_tests where execution = me->self_test.
endmethod.
method it_returns_a_full_result.
data(result_entry) = value zsbc_test_summary(
entry = default_test_entry
total_tests = 100
total_failed = 60
total_success = 40
).
o_cut->add_test_summary(
result_entry
).
data(results) = o_cut->get_adash_results_summary( ).
data(my_result) = results[ 1 ].
assert_not_initial(
act = my_Result-package_own
msg = 'Should return package data'
).
assert_not_initial(
act = my_Result-entry-parent_package
msg = 'Should return package data'
).
assert_not_initial(
act = my_Result-change_date
msg = 'Should return last change data'
).
assert_not_initial(
act = my_Result-change_time
msg = 'Should return last change data'
).
assert_not_initial(
act = my_Result-change_author
msg = 'Should return last change data'
).
assert_not_initial(
act = my_Result-change_id
msg = 'Should return last change data'
).
endmethod.
method it_captures_test_results.
data(result_entry) = value zsbc_test_summary(
entry = default_test_entry
total_tests = 100
total_failed = 60
total_success = 40
).
o_cut->add_test_summary(
result_entry
).
then_should_have_adash_summary(
name = default_test_entry-name
execution_guid = self_test
total_tests = 100
total_failed = 60
total_success = 40
message = 'Should have captured a test summary.' ).
endmethod.
method it_adds_results_to_parent_pkgs.
data(result_entry) = value zsbc_test_summary(
entry = default_test_entry
total_tests = 100
total_failed = 60
total_success = 40
).
o_cut->add_test_summary(
result_entry
).
then_should_have_adash_summary(
name = default_test_entry-name
execution_guid = self_test
total_tests = 100
total_success = 40
total_failed = 60
message = 'Should have added to self ' ).
then_should_have_adash_summary(
name = default_test_entry-package_own
execution_guid = self_test
total_tests = 100
total_success = 40
total_failed = 60
message = 'Should have added to own package ' ).
then_should_have_adash_summary(
name = default_test_entry-parent_package
execution_guid = self_test
total_tests = 100
total_success = 40
total_failed = 60
message = 'Should have added to parent package ' ).
"change data
then_should_have_adash_summary(
name = default_test_entry-package_own
execution_guid = self_test
check_change_data = abap_true
message = 'Should have added to own package ' ).
then_should_have_adash_summary(
name = default_test_entry-parent_package
execution_guid = self_test
check_change_data = abap_true
message = 'Should have added to parent package ' ).
endmethod.
method it_considers_existing_results.
"the idea here is that I might do a partial execution of the tests
"but I still want the full tree updated
data(my_package_data) = zcl_adash_entry_info_provider=>populate_package_data( default_test_entry ).
"An existing run of Our tested entry, a class
given_an_existing_result(
entry = default_test_entry
total_tests = 50
total_failed = 30
total_success = 20 ).
"The existing summary of the Package of class with results from someone else
given_an_existing_result(
entry = value #(
name = my_package_data-package_own
type = 'DEVC'
package_own = my_package_data-package_own
parent_package = my_package_data-parent_package )
total_tests = 70
total_failed = 40
total_success = 30 ).
"But now a new execution has happened at our class
data(new_test) = value zsbc_test_summary(
entry = default_test_entry
total_tests = 100
total_failed = 60
total_success = 40
).
o_cut->add_test_summary(
new_test
).
"For our class, is our new value
"total 100
then_should_have_adash_summary(
name = default_test_entry-name
execution_guid = self_test
total_tests = 100
total_failed = 60
total_success = 40
message = 'Should have added to self ' ).
"For everyone else is X
"X = my existing + delta
"where delta = new test entry - existing result
"x = 70 + ( 100 - 50 ) = 120
then_should_have_adash_summary(
name = my_package_data-package_own
execution_guid = self_test
total_tests = 120
total_failed = 70
total_success = 50
message = 'Should have added to own package entry' ).
"same applies for parent packages
endmethod.
method it_detects_no_coverage_run.
"first run with coverage -> count is 100
"second run, no coverage, don't do a delta take existing -> count still 100
"An existing run of Our tested entry, a class
given_an_existing_result(
entry = default_test_entry
statements_count = 50
statements_covered = 30
statements_uncovered = 20 ).
"The existing summary of the Package of class with results from someone else
given_an_existing_result(
entry = value #(
name = default_test_entry-package_own
type = 'DEVC'
package_own = default_test_entry-package_own
parent_package = default_test_entry-parent_package )
statements_count = 70
statements_covered = 40
statements_uncovered = 30 ).
"But now a new execution has happened at our class,
"and the test summary comes first (was zero in DB)
data(new_test) = value zsbc_test_summary(
entry = default_test_entry
total_tests = 12
total_failed = 2
total_success = 10
).
o_cut->add_test_summary(
new_test
).
"now whoever is calling is deciding to add blank coverages
"at least it is what the adapter is doing ;)
o_cut->add_coverage_summary(
value zsbc_coverage_summary(
entry = default_test_entry
)
).
"What we want is to have previous run that have coverage to stay as they are
"There is a very awkward scenario where maybe your tests aren't covering anything anymore
"and (somehow) your tests are still passing.
"this implementation would false accuse as covered
then_should_have_adash_summary(
name = default_test_entry-name
execution_guid = self_test
total_tests = 12
total_failed = 2
total_success = 10
statements_count = 50
statements_covered = 30
statements_uncovered = 20
message = 'Should keep self coverage' ).
"For everyone else is X
"X = my existing + delta
"where delta = new test entry - existing result
"x = 70 + ( 100 - 50 ) = 120
then_should_have_adash_summary(
name = default_test_entry-package_own
execution_guid = self_test
total_tests = 12
total_failed = 2
total_success = 10
statements_count = 70
statements_covered = 40
statements_uncovered = 30
message = 'Should have kept parent coverage' ).
"The same for all parents of parent of parent of parent...
endmethod.
method it_captures_test_coverage.
data(coverage_entry) = value zsbc_coverage_summary(
entry = default_test_entry
statements_count = 200
statements_covered = 180
statements_uncovered = 20
).
o_cut->add_coverage_summary( coverage_entry ).
then_should_have_adash_summary(
name = default_test_entry-name
execution_guid = self_test
message = 'Should have captured coverage'
statements_count = 200
statements_covered = 180
statements_uncovered = 20
).
data(test_entry) = value zsbc_test_summary(
entry = default_test_entry
total_tests = 100
total_failed = 60
total_success = 40
).
o_cut->add_test_summary(
test_entry
).
then_should_have_adash_summary(
name = default_test_entry-name
execution_guid = self_test
message = 'Should work together with add test sumarry'
statements_count = 200
statements_covered = 180
statements_uncovered = 20
total_tests = 100
total_success = 40
total_failed = 60 ).
then_should_have_adash_summary(
name = default_test_entry-package_own
execution_guid = self_test
message = 'Should have added coverage to own package'
statements_count = 200
statements_covered = 180
statements_uncovered = 20
total_tests = 100
total_success = 40
total_failed = 60 ).
then_should_have_adash_summary(
name = default_test_entry-parent_package
execution_guid = self_test
message = 'Should have added coverage to parent'
statements_count = 200
statements_covered = 180
statements_uncovered = 20
total_tests = 100
total_success = 40
total_failed = 60 ).
endmethod.
method it_captures_test_methods_resul.
data(a_method_result) = value ztbc_au_tests(
name = default_test_entry-name
type = default_test_entry-type
test_class = 'LTC_TESTING_CLASS'
test_method = 'IT_TEST_SOMETHING'
status = -1
failure_header = 'Should have tested something.'
failure_details = 'Here goes the details of what went wrong.'
).
o_cut->add_test_method_result( a_method_result ).
data(another_method_result) = value ztbc_au_tests(
name = default_test_entry-name
type = default_test_entry-type
test_class = 'LTC_TESTING_CLASS'
test_method = 'IT_TEST_OTHER'
status = -1
failure_header = 'Should have tested something else .'
failure_details = 'Here goes the details of what went wrong.'
).
o_cut->add_test_method_result( another_method_result ).
then_test_method_results_has( value #(
base a_method_result
package_own = default_test_entry-package_own "Should populate package data
parent_package = default_test_entry-parent_package
execution = self_test
)
).
then_test_method_results_has( value #(
base another_method_result
package_own = default_test_entry-package_own "Should populate package data
parent_package = default_test_entry-parent_package
execution = self_test
)
).
endmethod.
method then_should_have_adash_summary.
adash_results_summary = o_cut->get_adash_results_summary( ).
data(a_row) = value #( adash_results_summary[
name = name
execution = execution_guid
] optional ).
if a_row is initial.
fail( message ).
endif.
if total_tests is supplied.
assert_equals(
exp = total_tests
act = a_row-total_tests
msg = `Total tests for ` && name && ` not the expected.`
).
endif.
if total_failed is supplied.
assert_equals(
exp = total_failed
act = a_row-total_failed
msg = `Total failed for ` && name && ` not the expected.`
).
endif.
if total_success is supplied.
assert_equals(
exp = total_success
act = a_row-total_success
msg = `Total success for ` && name && ` not the expected.`
).
endif.
if statements_covered is supplied.
assert_equals(
exp = statements_covered
act = a_row-statements_covered
msg = `Covered statements for ` && name && ` not the expected.`
).
endif.
if statements_count is supplied.
assert_equals(
exp = statements_count
act = a_row-statements_count
msg = `Total statements for ` && name && ` not the expected.`
).
endif.
if statements_uncovered is supplied.
assert_equals(
exp = statements_uncovered
act = a_row-statements_uncovered
msg = `Uncovered statements for ` && name && ` not the expected.`
).
endif.
if check_change_data eq abap_true.
assert_not_initial(
act = a_row-change_date
msg = `Could not find chage information for ` && name
).
assert_not_initial(
act = a_row-change_time
msg = 'Could not find chage information for ' && name
).
assert_not_initial(
act = a_row-change_author
msg = 'Could not find chage information for ' && name
).
endif.
endmethod.
method then_test_method_results_has.
data(test_method_results) = o_cut->get_adash_test_method_results( ).
assert_table_contains(
line = method_result
table = test_method_results
msg = 'Should have stored the test method results'
).
endmethod.
method given_an_existing_result.
data(existing) = value ztbc_au_results(
execution = self_test
entry = entry
total_tests = total_tests
total_failed = total_failed
total_success = total_success
statements_count = statements_count
statements_covered = statements_covered
statements_uncovered = statements_uncovered
).
modify ztbc_au_results from existing.
endmethod.
endclass.
| [
4871,
300,
23047,
62,
43420,
62,
34924,
6770,
198,
1640,
4856,
198,
32257,
1790,
198,
19121,
1241,
23585,
198,
259,
372,
1780,
422,
1976,
565,
62,
30493,
13,
628,
220,
1171,
2665,
13,
198,
220,
220,
220,
1366,
25,
198,
220,
220,
220,
220,
220,
2116,
62,
9288,
2099,
10103,
62,
2624,
1988,
705,
50,
3698,
9792,
6465,
3256,
198,
220,
220,
220,
220,
220,
2221,
286,
4277,
62,
9288,
62,
13000,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
27355,
73,
62,
3672,
1988,
705,
57,
5097,
62,
2885,
11211,
62,
46274,
62,
10943,
30339,
1137,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4161,
50007,
4906,
1988,
705,
5097,
1921,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
5301,
62,
593,
220,
220,
220,
2099,
1614,
4871,
1988,
705,
57,
2885,
11211,
62,
46274,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2560,
62,
26495,
2099,
1614,
4871,
1988,
705,
57,
2885,
11211,
3256,
198,
220,
220,
220,
220,
220,
886,
286,
4277,
62,
9288,
62,
13000,
13,
628,
220,
2839,
2665,
13,
198,
220,
220,
220,
1366,
267,
62,
8968,
2099,
1006,
284,
1976,
361,
62,
324,
1077,
62,
43420,
62,
34924,
13,
628,
628,
220,
220,
220,
5050,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
198,
220,
220,
220,
220,
220,
340,
62,
7783,
82,
62,
64,
62,
12853,
62,
20274,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
340,
62,
27144,
942,
62,
9288,
62,
43420,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
340,
62,
2860,
82,
62,
43420,
62,
1462,
62,
8000,
62,
35339,
82,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
340,
62,
5936,
4157,
62,
25687,
62,
43420,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
340,
62,
15255,
478,
82,
62,
3919,
62,
1073,
1857,
62,
5143,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
340,
62,
27144,
942,
62,
9288,
62,
1073,
1857,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
340,
62,
27144,
942,
62,
9288,
62,
24396,
82,
62,
411,
377,
329,
4856,
11,
198,
220,
220,
220,
220,
220,
44212,
51,
3727,
46,
25,
3368,
3294,
6673,
329,
262,
976,
5726,
198,
220,
220,
220,
220,
220,
44212,
51,
3727,
46,
25,
3368,
5301,
12784,
198,
220,
220,
220,
220,
220,
788,
62,
21754,
62,
14150,
62,
324,
1077,
62,
49736,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9706,
62,
5162,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
10103,
62,
2624,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
269,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2472,
62,
41989,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2472,
62,
13138,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2472,
62,
47904,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
269,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6299,
62,
32111,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6299,
62,
9127,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6299,
62,
19524,
2557,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2198,
62,
3803,
62,
7890,
2099,
450,
499,
62,
30388,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
7,
324,
1077,
62,
43420,
62,
49736,
8,
2099,
1976,
82,
15630,
62,
324,
1077,
62,
20274,
62,
49736,
62,
83,
11,
198,
220,
220,
220,
220,
220,
788,
62,
9288,
62,
24396,
62,
43420,
62,
10134,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
62,
20274,
2099,
1976,
83,
15630,
62,
559,
62,
41989,
11,
198,
220,
220,
220,
220,
220,
1813,
62,
272,
62,
25687,
62,
20274,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5726,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1976,
82,
15630,
62,
23065,
62,
13000,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2472,
62,
41989,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2472,
62,
47904,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6299,
62,
9127,
220,
220,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6299,
62,
32111,
220,
220,
2099,
1312,
11902,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6299,
62,
19524,
2557,
2099,
1312,
11902,
198,
220,
220,
220,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
FUNCTION-POOL zaoc_naming. "MESSAGE-ID ..
* INCLUDE LZAOC_NAMINGD... " Local class definition
SELECTION-SCREEN BEGIN OF SCREEN 2000 TITLE TEXT-001 AS WINDOW.
SELECTION-SCREEN:
BEGIN OF TABBED BLOCK main_tab FOR 28 LINES,
TAB (30) button_1 USER-COMMAND to_3000 DEFAULT SCREEN 3000,
TAB (30) button_2 USER-COMMAND to_4000 DEFAULT SCREEN 4000,
TAB (30) button_3 USER-COMMAND to_5000 DEFAULT SCREEN 5000,
TAB (30) button_4 USER-COMMAND to_6000 DEFAULT SCREEN 6000,
TAB (30) button_5 USER-COMMAND to_7000 DEFAULT SCREEN 7000,
TAB (30) button_6 USER-COMMAND to_8000 DEFAULT SCREEN 8000,
END OF BLOCK main_tab.
SELECTION-SCREEN END OF SCREEN 2000.
* Prefixes
SELECTION-SCREEN BEGIN OF SCREEN 3000 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK prefixes WITH FRAME TITLE TEXT-pre.
PARAMETERS:
p_elemen TYPE text40 MODIF ID ro,
p_generi TYPE text40 MODIF ID ro,
p_struct TYPE text40 MODIF ID ro,
p_tany TYPE text40 MODIF ID ro,
p_thash TYPE text40 MODIF ID ro,
p_tindex TYPE text40 MODIF ID ro,
p_tstand TYPE text40 MODIF ID ro,
p_tsort TYPE text40 MODIF ID ro,
p_rdata TYPE text40 MODIF ID ro,
p_rclass TYPE text40 MODIF ID ro,
p_rbadi TYPE text40 MODIF ID ro,
p_rexcep TYPE text40 MODIF ID ro,
p_rinter TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK prefixes.
SELECTION-SCREEN END OF SCREEN 3000.
* Globals
SELECTION-SCREEN BEGIN OF SCREEN 4000 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK globals WITH FRAME TITLE TEXT-glo.
PARAMETERS:
p_nspace TYPE text40 MODIF ID ro,
p_fugr TYPE text40 MODIF ID ro,
p_prog TYPE text40 MODIF ID ro,
p_clas TYPE text40 MODIF ID ro,
p_clasx TYPE text40 MODIF ID ro,
p_clast TYPE text40 MODIF ID ro,
p_clasa TYPE text40 MODIF ID ro,
p_intf TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK globals.
SELECTION-SCREEN END OF SCREEN 4000.
* Locals
SELECTION-SCREEN BEGIN OF SCREEN 5000 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK locals WITH FRAME TITLE TEXT-loc.
PARAMETERS:
p_data TYPE text40 MODIF ID ro,
p_static TYPE text40 MODIF ID ro,
p_fsymbo TYPE text40 MODIF ID ro,
p_lconst TYPE text40 MODIF ID ro,
p_ltypes TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK locals.
SELECTION-SCREEN END OF SCREEN 5000.
* Procedural
SELECTION-SCREEN BEGIN OF SCREEN 6000 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK fugr WITH FRAME TITLE TEXT-fug.
PARAMETERS:
p_fimpor TYPE text40 MODIF ID ro,
p_fexpor TYPE text40 MODIF ID ro,
p_fchang TYPE text40 MODIF ID ro,
p_ftable TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK fugr.
SELECTION-SCREEN BEGIN OF BLOCK form WITH FRAME TITLE TEXT-for.
PARAMETERS:
p_fousin TYPE text40 MODIF ID ro,
p_fochan TYPE text40 MODIF ID ro,
p_fotabl TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK form.
SELECTION-SCREEN BEGIN OF BLOCK pglob WITH FRAME TITLE TEXT-pgl.
PARAMETERS:
p_pgdata TYPE text40 MODIF ID ro,
p_pgfisy TYPE text40 MODIF ID ro,
p_pgcons TYPE text40 MODIF ID ro,
p_pgtype TYPE text40 MODIF ID ro,
p_pgselo TYPE text40 MODIF ID ro,
p_pgpara TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK pglob.
SELECTION-SCREEN END OF SCREEN 6000.
* Object Oriented
SELECTION-SCREEN BEGIN OF SCREEN 7000 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK ood WITH FRAME TITLE TEXT-ood.
PARAMETERS:
p_oodata TYPE text40 MODIF ID ro,
p_oocdat TYPE text40 MODIF ID ro,
p_oocons TYPE text40 MODIF ID ro,
p_ootype TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK ood.
SELECTION-SCREEN BEGIN OF BLOCK methods WITH FRAME TITLE TEXT-met.
PARAMETERS:
p_ooimpo TYPE text40 MODIF ID ro,
p_ooexpo TYPE text40 MODIF ID ro,
p_oochan TYPE text40 MODIF ID ro,
p_ooretu TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK methods.
SELECTION-SCREEN BEGIN OF BLOCK loo WITH FRAME TITLE TEXT-loo.
PARAMETERS:
p_oolcla TYPE text40 MODIF ID ro,
p_ooltcl TYPE text40 MODIF ID ro,
p_oolxcl TYPE text40 MODIF ID ro,
p_oolint TYPE text40 MODIF ID ro.
SELECTION-SCREEN END OF BLOCK loo.
SELECTION-SCREEN END OF SCREEN 7000.
* Other Settings
SELECTION-SCREEN BEGIN OF SCREEN 8000 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK other WITH FRAME TITLE TEXT-oth.
PARAMETERS:
p_errty TYPE sci_errty MODIF ID ro OBLIGATORY,
p_syntax TYPE c AS CHECKBOX MODIF ID ro.
SELECTION-SCREEN END OF BLOCK other.
SELECTION-SCREEN BEGIN OF BLOCK gexcep WITH FRAME TITLE TEXT-gex.
PARAMETERS: p_excpar TYPE c AS CHECKBOX MODIF ID ro,
p_excatt TYPE c AS CHECKBOX MODIF ID ro,
p_exccon TYPE c AS CHECKBOX MODIF ID ro.
SELECTION-SCREEN END OF BLOCK gexcep.
SELECTION-SCREEN BEGIN OF BLOCK fmsig WITH FRAME TITLE TEXT-fsi.
PARAMETERS: p_cfunc TYPE c AS CHECKBOX MODIF ID ro,
p_idocfm TYPE c AS CHECKBOX MODIF ID ro,
p_bwext TYPE c AS CHECKBOX MODIF ID ro,
p_shlp TYPE c AS CHECKBOX MODIF ID ro.
SELECTION-SCREEN END OF BLOCK fmsig.
SELECTION-SCREEN BEGIN OF BLOCK mmsig WITH FRAME TITLE TEXT-msi.
PARAMETERS: p_pmeth TYPE c AS CHECKBOX MODIF ID ro.
SELECTION-SCREEN END OF BLOCK mmsig.
SELECTION-SCREEN END OF SCREEN 8000.
************************
CLASS lcl_screen2000 DEFINITION FINAL.
PUBLIC SECTION.
CLASS-DATA:
gv_cancel TYPE abap_bool.
CLASS-METHODS:
initialize
IMPORTING
iv_read_only TYPE abap_bool
is_data TYPE zaoc_naming,
get_data
RETURNING
VALUE(rs_data) TYPE zaoc_naming,
at_output,
handle_command.
PRIVATE SECTION.
CLASS-DATA:
gv_read_only TYPE abap_bool.
CLASS-METHODS:
modify_screen,
set_read_only
IMPORTING
iv_only TYPE abap_bool,
set_data
IMPORTING
is_data TYPE zaoc_naming,
read_structure
RETURNING
VALUE(rt_data) TYPE dd03ptab,
set_texts
IMPORTING
iv_prefix TYPE clike.
ENDCLASS.
| [
42296,
4177,
2849,
12,
16402,
3535,
1976,
64,
420,
62,
77,
3723,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
44,
1546,
4090,
8264,
12,
2389,
11485,
198,
198,
9,
3268,
5097,
52,
7206,
406,
34892,
4503,
62,
45,
2390,
2751,
35,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
10714,
1398,
6770,
198,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
6374,
2200,
1677,
4751,
37977,
2538,
40383,
12,
8298,
7054,
370,
12115,
3913,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
25,
198,
220,
347,
43312,
3963,
309,
6242,
33,
1961,
9878,
11290,
1388,
62,
8658,
7473,
2579,
43277,
1546,
11,
198,
220,
220,
220,
309,
6242,
357,
1270,
8,
4936,
62,
16,
1294,
1137,
12,
9858,
44,
6981,
284,
62,
23924,
5550,
38865,
6374,
2200,
1677,
20343,
11,
198,
220,
220,
220,
309,
6242,
357,
1270,
8,
4936,
62,
17,
1294,
1137,
12,
9858,
44,
6981,
284,
62,
27559,
5550,
38865,
6374,
2200,
1677,
30123,
11,
198,
220,
220,
220,
309,
6242,
357,
1270,
8,
4936,
62,
18,
1294,
1137,
12,
9858,
44,
6981,
284,
62,
27641,
5550,
38865,
6374,
2200,
1677,
23336,
11,
198,
220,
220,
220,
309,
6242,
357,
1270,
8,
4936,
62,
19,
1294,
1137,
12,
9858,
44,
6981,
284,
62,
43434,
5550,
38865,
6374,
2200,
1677,
39064,
11,
198,
220,
220,
220,
309,
6242,
357,
1270,
8,
4936,
62,
20,
1294,
1137,
12,
9858,
44,
6981,
284,
62,
22,
830,
5550,
38865,
6374,
2200,
1677,
50205,
11,
198,
220,
220,
220,
309,
6242,
357,
1270,
8,
4936,
62,
21,
1294,
1137,
12,
9858,
44,
6981,
284,
62,
33942,
5550,
38865,
6374,
2200,
1677,
38055,
11,
198,
220,
23578,
3963,
9878,
11290,
1388,
62,
8658,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
6374,
2200,
1677,
4751,
13,
198,
198,
9,
3771,
42624,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
6374,
2200,
1677,
20343,
7054,
13558,
4462,
43387,
1677,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
21231,
274,
13315,
8782,
10067,
37977,
2538,
40383,
12,
3866,
13,
198,
27082,
2390,
2767,
4877,
25,
198,
220,
279,
62,
11129,
3653,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
8612,
72,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
7249,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
83,
1092,
220,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
400,
1077,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
83,
9630,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
83,
1481,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
912,
419,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
4372,
1045,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
81,
4871,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
26145,
9189,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
21510,
344,
79,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
81,
3849,
41876,
2420,
1821,
19164,
5064,
4522,
686,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
9878,
11290,
21231,
274,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
6374,
2200,
1677,
20343,
13,
198,
198,
9,
40713,
874,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
6374,
2200,
1677,
30123,
7054,
13558,
4462,
43387,
1677,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
15095,
874,
13315,
8782,
10067,
37977,
2538,
40383,
12,
4743,
78,
13,
198,
27082,
2390,
2767,
4877,
25,
198,
220,
279,
62,
77,
13200,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
69,
1018,
81,
220,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
1676,
70,
220,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
565,
292,
220,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
565,
292,
87,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
565,
459,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
565,
15462,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
600,
69,
220,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
9878,
11290,
15095,
874,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
6374,
2200,
1677,
30123,
13,
198,
198,
9,
15181,
874,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
6374,
2200,
1677,
23336,
7054,
13558,
4462,
43387,
1677,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
17205,
13315,
8782,
10067,
37977,
2538,
40383,
12,
17946,
13,
198,
27082,
2390,
2767,
4877,
25,
198,
220,
279,
62,
7890,
220,
220,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
12708,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
69,
1837,
2022,
78,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
75,
9979,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279,
62,
75,
19199,
41876,
2420,
1821,
19164,
5064,
4522,
686,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
9878,
11290,
17205,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
23578,
3963,
6374,
2200,
1677,
23336,
13,
198,
198,
9,
23652,
1523,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
6374,
2200,
1677,
39064,
7054,
13558,
4462,
43387,
1677,
13,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
31497,
81,
13315,
8782,
10067,
37977,
2538,
40383,
12,
69,
1018,
13,
198,
27082,
2390,
2767,
4877,
25,
198,
220,
279,
62,
69,
320,
1819,
41876,
2420,
1821,
19164,
5064,
4522,
686,
11,
198,
220,
279
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
*&---------------------------------------------------------------------*
*& Report ZABAP4GIT_DEMO3
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT ZABAP4GIT_DEMO3.
Write 'This is another demo'.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1168,
6242,
2969,
19,
38,
2043,
62,
39429,
46,
18,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1168,
6242,
2969,
19,
38,
2043,
62,
39429,
46,
18,
13,
198,
198,
16594,
705,
1212,
318,
1194,
13605,
4458,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_ARE_LOGGER definition
public
final
create public .
public section.
types:
BEGIN OF gtys_layout,
objkey TYPE char32,
risk_level TYPE i,
msg TYPE char256,
END OF gtys_layout .
types:
gtyt_layout TYPE TABLE OF gtys_layout WITH KEY objkey .
constants GC_NOTICE type I value 3 ##NO_TEXT.
constants GC_WARNING type I value 2 ##NO_TEXT.
constants GC_ERROR type I value 1 ##NO_TEXT.
methods LOG_ERROR
importing
!I_MSG type STRING .
methods LOG_HEADER_MSG
importing
!I_MSG type STRING .
methods LOG_NOTICE
importing
!I_MSG type STRING .
methods LOG_WARNING
importing
!I_MSG type STRING .
methods NEW_OBJECT
importing
!I_OBJKEY type STRING .
methods WRITE .
methods GET_LOG
RETURNING
VALUE(rt_log) TYPE gtyt_layout.
PROTECTED SECTION.
PRIVATE SECTION.
DATA: t_log TYPE TABLE OF gtys_layout.
DATA: t_log_header TYPE TABLE OF string with EMPTY KEY.
DATA: current_object TYPE string.
METHODS set_color
IMPORTING
i_log_entry_risk_level TYPE i.
endclass.
class ZCL_ARE_LOGGER implementation.
METHOD get_log.
rt_log = t_log.
ENDMETHOD.
METHOD log_error.
APPEND VALUE #( objkey = current_object
risk_level = gc_error
msg = i_msg ) TO t_log.
ENDMETHOD.
METHOD log_header_msg.
APPEND i_msg TO t_log_header.
ENDMETHOD.
METHOD log_notice.
APPEND VALUE #( objkey = current_object
risk_level = gc_notice
msg = i_msg ) TO t_log.
ENDMETHOD.
METHOD log_warning.
APPEND VALUE #( objkey = current_object
risk_level = gc_warning
msg = i_msg ) TO t_log.
ENDMETHOD.
METHOD new_object.
current_object = i_objkey.
ENDMETHOD.
METHOD write.
DATA: l_last_objkey TYPE string.
LOOP AT t_log_header REFERENCE INTO DATA(lr_header_entry).
WRITE / lr_header_entry->*.
ENDLOOP.
LOOP AT t_log REFERENCE INTO DATA(lr_log_entry).
IF lr_log_entry->objkey NE l_last_objkey.
WRITE / space.
ENDIF.
set_color( lr_log_entry->risk_level ).
WRITE: / |{ CONV string( lr_log_entry->objkey ) },{ COND string( WHEN lr_log_entry->risk_level EQ 1
THEN |[ERROR]|
WHEN lr_log_entry->risk_level EQ 2
THEN |[WARNING]|
WHEN lr_log_entry->risk_level EQ 3
THEN |[NOTICE]| ) },{ CONV string( lr_log_entry->msg ) }|.
l_last_objkey = lr_log_entry->objkey.
ENDLOOP.
ENDMETHOD.
METHOD set_color.
CASE i_log_entry_risk_level.
WHEN 1.
FORMAT COLOR COL_NEGATIVE. "red
WHEN 2.
FORMAT COLOR COL_TOTAL. "yellow
WHEN 3.
FORMAT COLOR COL_NORMAL. "light grey
WHEN OTHERS.
FORMAT COLOR COL_BACKGROUND. "background color
ENDCASE.
ENDMETHOD.
endclass.
| [
4871,
1168,
5097,
62,
12203,
62,
25294,
30373,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
308,
774,
82,
62,
39786,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26181,
2539,
41876,
1149,
2624,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2526,
62,
5715,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
41876,
1149,
11645,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
308,
774,
82,
62,
39786,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
308,
774,
83,
62,
39786,
41876,
43679,
3963,
308,
774,
82,
62,
39786,
13315,
35374,
26181,
2539,
764,
628,
220,
38491,
20145,
62,
11929,
8476,
2099,
314,
1988,
513,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
20145,
62,
31502,
2099,
314,
1988,
362,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
20145,
62,
24908,
2099,
314,
1988,
352,
22492,
15285,
62,
32541,
13,
628,
220,
5050,
41605,
62,
24908,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
40,
62,
5653,
38,
2099,
19269,
2751,
764,
198,
220,
5050,
41605,
62,
37682,
1137,
62,
5653,
38,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
40,
62,
5653,
38,
2099,
19269,
2751,
764,
198,
220,
5050,
41605,
62,
11929,
8476,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
40,
62,
5653,
38,
2099,
19269,
2751,
764,
198,
220,
5050,
41605,
62,
31502,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
40,
62,
5653,
38,
2099,
19269,
2751,
764,
198,
220,
5050,
12682,
62,
9864,
23680,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
40,
62,
9864,
41,
20373,
2099,
19269,
2751,
764,
198,
220,
5050,
44423,
764,
198,
220,
5050,
17151,
62,
25294,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
6404,
8,
41876,
308,
774,
83,
62,
39786,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
25,
256,
62,
6404,
41876,
43679,
3963,
308,
774,
82,
62,
39786,
13,
198,
220,
220,
220,
42865,
25,
256,
62,
6404,
62,
25677,
41876,
43679,
3963,
4731,
351,
38144,
9936,
35374,
13,
628,
220,
220,
220,
42865,
25,
1459,
62,
15252,
41876,
4731,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
8043,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
6404,
62,
13000,
62,
19121,
62,
5715,
41876,
1312,
13,
198,
198,
437,
4871,
13,
628,
198,
198,
4871,
1168,
5097,
62,
12203,
62,
25294,
30373,
7822,
13,
628,
220,
337,
36252,
651,
62,
6404,
13,
628,
220,
220,
220,
374,
83,
62,
6404,
796,
256,
62,
6404,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2604,
62,
18224,
13,
628,
220,
220,
220,
43504,
10619,
26173,
8924,
1303,
7,
26181,
2539,
796,
1459,
62,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2526,
62,
5715,
796,
308,
66,
62,
18224,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
1312,
62,
19662,
1267,
5390,
256,
62,
6404,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2604,
62,
25677,
62,
19662,
13,
628,
220,
220,
220,
43504,
10619,
1312,
62,
19662,
5390,
256,
62,
6404,
62,
25677,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2604,
62,
42138,
13,
628,
220,
220,
220,
43504,
10619,
26173,
8924,
1303,
7,
26181,
2539,
796,
1459,
62,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2526,
62,
5715,
796,
308,
66,
62,
42138,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
1312,
62,
19662,
1267,
5390,
256,
62,
6404,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2604,
62,
43917,
13,
628,
220,
220,
220,
43504,
10619,
26173,
8924,
1303,
7,
26181,
2539,
796,
1459,
62,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2526,
62,
5715,
796,
308,
66,
62,
43917,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
796,
1312,
62,
19662,
1267,
5390,
256,
62,
6404,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
649,
62,
15252,
13,
628,
220,
220,
220,
1459,
62,
15252,
796,
1312,
62,
26801,
2539,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
3551,
13,
628,
220,
220,
220,
42865,
25,
300,
62,
12957,
62,
26801,
2539,
41876,
4731,
13,
628,
220,
220,
220,
17579,
3185,
5161,
256,
62,
6404,
62,
25677,
4526,
24302,
18310,
39319,
42865,
7,
14050,
62,
25677,
62,
13000,
737,
628,
220,
220,
220,
220,
220,
220,
220,
44423,
1220,
300,
81,
62,
25677,
62,
13000,
3784,
24620,
628,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
220,
220,
17579,
3185,
5161,
256,
62,
6404,
4526,
24302,
18310,
39319,
42865,
7,
14050,
62,
6404,
62,
13000,
737,
628,
220,
220,
220,
220,
220,
220,
220,
16876,
300,
81,
62,
6404,
62,
13000,
3784,
26801,
2539,
10635,
300,
62,
12957,
62,
26801,
2539,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
44423,
1220,
2272,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
220,
220,
900,
62,
8043,
7,
300,
81,
62,
6404,
62,
13000,
3784,
19121,
62,
5715,
6739,
628,
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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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_page_patch DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_page_diff
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_hotkeys.
METHODS:
constructor
IMPORTING
iv_key TYPE zif_abapgit_persistence=>ty_repo-key
is_file TYPE zif_abapgit_definitions=>ty_file OPTIONAL
is_object TYPE zif_abapgit_definitions=>ty_item OPTIONAL
it_files TYPE zif_abapgit_definitions=>ty_stage_tt OPTIONAL
iv_patch_mode TYPE abap_bool OPTIONAL
RAISING
zcx_abapgit_exception,
zif_abapgit_gui_event_handler~on_event REDEFINITION.
CLASS-METHODS:
get_patch_data
IMPORTING
iv_patch TYPE string
EXPORTING
ev_filename TYPE string
ev_line_index TYPE string
RAISING
zcx_abapgit_exception.
PROTECTED SECTION.
METHODS:
render_content REDEFINITION,
add_menu_end REDEFINITION,
add_menu_begin REDEFINITION,
render_table_head_non_unified REDEFINITION,
render_beacon_begin_of_row REDEFINITION,
render_diff_head_after_state REDEFINITION,
insert_nav REDEFINITION,
render_line_split_row REDEFINITION.
PRIVATE SECTION.
TYPES ty_patch_action TYPE string .
CONSTANTS:
BEGIN OF c_actions,
stage TYPE string VALUE 'patch_stage',
refresh TYPE string VALUE 'patch_refresh',
refresh_local TYPE string VALUE 'patch_refresh_local',
refresh_local_object TYPE string VALUE 'patch_refresh_local_object',
END OF c_actions .
CONSTANTS:
BEGIN OF c_patch_action,
add TYPE ty_patch_action VALUE 'add',
remove TYPE ty_patch_action VALUE 'remove',
END OF c_patch_action .
DATA mo_stage TYPE REF TO zcl_abapgit_stage .
DATA mv_section_count TYPE i .
DATA mv_pushed TYPE abap_bool .
DATA mo_repo_online TYPE REF TO zcl_abapgit_repo_online .
METHODS render_patch
IMPORTING
!ii_html TYPE REF TO zif_abapgit_html
!iv_filename TYPE string
!is_diff_line TYPE zif_abapgit_definitions=>ty_diff
!iv_index TYPE sy-tabix
RAISING
zcx_abapgit_exception .
METHODS render_patch_head
IMPORTING
!ii_html TYPE REF TO zif_abapgit_html
!is_diff TYPE ty_file_diff .
METHODS start_staging
IMPORTING
!ii_event TYPE REF TO zif_abapgit_gui_event
RAISING
zcx_abapgit_exception .
METHODS apply_patch_from_form_fields
IMPORTING
!ii_event TYPE REF TO zif_abapgit_gui_event
RAISING
zcx_abapgit_exception .
METHODS restore_patch_flags
IMPORTING
!it_diff_files_old TYPE ty_file_diffs
RAISING
zcx_abapgit_exception .
METHODS add_to_stage
RAISING
zcx_abapgit_exception .
METHODS refresh
IMPORTING
!iv_action TYPE clike
RAISING
zcx_abapgit_exception .
METHODS refresh_full
RAISING
zcx_abapgit_exception .
METHODS refresh_local
RAISING
zcx_abapgit_exception .
METHODS refresh_local_object
IMPORTING
!iv_action TYPE clike
RAISING
zcx_abapgit_exception .
METHODS apply_patch_all
IMPORTING
!iv_patch TYPE string
!iv_patch_flag TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS are_all_lines_patched
IMPORTING
!it_diff TYPE zif_abapgit_definitions=>ty_diffs_tt
RETURNING
VALUE(rv_are_all_lines_patched) TYPE abap_bool .
METHODS apply_patch_for
IMPORTING
!iv_filename TYPE string
!iv_line_index TYPE string
!iv_patch_flag TYPE abap_bool
RAISING
zcx_abapgit_exception .
METHODS get_diff_object
IMPORTING
!iv_filename TYPE string
RETURNING
VALUE(ro_diff) TYPE REF TO zcl_abapgit_diff
RAISING
zcx_abapgit_exception .
METHODS get_diff_line
IMPORTING
!io_diff TYPE REF TO zcl_abapgit_diff
!iv_line_index TYPE string
RETURNING
VALUE(rs_diff) TYPE zif_abapgit_definitions=>ty_diff
RAISING
zcx_abapgit_exception .
CLASS-METHODS is_patch_line_possible
IMPORTING
!is_diff_line TYPE zif_abapgit_definitions=>ty_diff
RETURNING
VALUE(rv_is_patch_line_possible) TYPE abap_bool .
METHODS render_scripts
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS zcl_abapgit_gui_page_patch IMPLEMENTATION.
METHOD add_menu_begin.
io_menu->add(
iv_txt = |Refresh Local|
iv_typ = zif_abapgit_html=>c_action_type-dummy
iv_act = c_actions-refresh_local
iv_id = c_actions-refresh_local
iv_title = |Refresh all local objects, without refreshing the remote| ).
io_menu->add(
iv_txt = |Refresh|
iv_typ = zif_abapgit_html=>c_action_type-dummy
iv_act = c_actions-refresh
iv_id = c_actions-refresh
iv_title = |Complete refresh of all objects, local and remote| ).
ENDMETHOD.
METHOD add_menu_end.
io_menu->add( iv_txt = 'Stage'
iv_act = c_actions-stage
iv_id = 'stage'
iv_typ = zif_abapgit_html=>c_action_type-dummy ).
ENDMETHOD.
METHOD add_to_stage.
DATA: lt_diff TYPE zif_abapgit_definitions=>ty_diffs_tt,
lv_something_patched TYPE abap_bool,
ls_status TYPE zif_abapgit_definitions=>ty_result,
lv_patch TYPE xstring,
lo_git_add_patch TYPE REF TO zcl_abapgit_git_add_patch.
FIELD-SYMBOLS: <ls_diff_file> TYPE ty_file_diff.
LOOP AT mt_diff_files ASSIGNING <ls_diff_file>.
IF <ls_diff_file>-o_diff IS NOT BOUND.
" When we deal with binary files we don't have a diff object.
" There's nothing to do because they cannot be patched
CONTINUE.
ENDIF.
lt_diff = <ls_diff_file>-o_diff->get( ).
READ TABLE lt_diff TRANSPORTING NO FIELDS
WITH KEY patch_flag = abap_true.
CHECK sy-subrc = 0.
lv_something_patched = abap_true.
CREATE OBJECT lo_git_add_patch
EXPORTING
it_diff = <ls_diff_file>-o_diff->get( ).
lv_patch = lo_git_add_patch->get_patch_binary( ).
IF <ls_diff_file>-lstate = 'D' AND are_all_lines_patched( lt_diff ) = abap_true.
ls_status-lstate = zif_abapgit_definitions=>c_state-deleted.
mo_stage->rm(
iv_path = <ls_diff_file>-path
is_status = ls_status
iv_filename = <ls_diff_file>-filename ).
ELSE.
IF <ls_diff_file>-lstate = 'A' AND are_all_lines_patched( lt_diff ) = abap_true.
ls_status-lstate = zif_abapgit_definitions=>c_state-added.
ELSE.
ls_status-lstate = zif_abapgit_definitions=>c_state-modified.
ENDIF.
mo_stage->add(
iv_path = <ls_diff_file>-path
iv_filename = <ls_diff_file>-filename
is_status = ls_status
iv_data = lv_patch ).
ENDIF.
ENDLOOP.
IF lv_something_patched = abap_false.
zcx_abapgit_exception=>raise( |Nothing added| ).
ENDIF.
ENDMETHOD.
METHOD apply_patch_all.
DATA: lv_filename TYPE string,
lt_patch TYPE string_table,
lv_line_index TYPE string.
FIELD-SYMBOLS: <lv_patch> TYPE LINE OF string_table.
SPLIT iv_patch AT ',' INTO TABLE lt_patch.
LOOP AT lt_patch ASSIGNING <lv_patch>.
get_patch_data(
EXPORTING
iv_patch = <lv_patch>
IMPORTING
ev_filename = lv_filename
ev_line_index = lv_line_index ).
apply_patch_for( iv_filename = lv_filename
iv_line_index = lv_line_index
iv_patch_flag = iv_patch_flag ).
ENDLOOP.
ENDMETHOD.
METHOD apply_patch_for.
DATA: lo_diff TYPE REF TO zcl_abapgit_diff,
ls_diff_line TYPE zif_abapgit_definitions=>ty_diff,
lv_line TYPE i.
lo_diff = get_diff_object( iv_filename ).
ls_diff_line = get_diff_line( io_diff = lo_diff
iv_line_index = iv_line_index ).
CASE ls_diff_line-result.
WHEN zif_abapgit_definitions=>c_diff-update
OR zif_abapgit_definitions=>c_diff-insert.
lv_line = ls_diff_line-new_num.
lo_diff->set_patch_new( iv_line_new = lv_line
iv_patch_flag = iv_patch_flag ).
WHEN zif_abapgit_definitions=>c_diff-delete.
lv_line = ls_diff_line-old_num.
lo_diff->set_patch_old( iv_line_old = lv_line
iv_patch_flag = iv_patch_flag ).
ENDCASE.
ENDMETHOD.
METHOD apply_patch_from_form_fields.
DATA:
lv_add TYPE string,
lv_remove TYPE string.
lv_add = ii_event->form_data( )->get( c_patch_action-add ).
lv_remove = ii_event->form_data( )->get( c_patch_action-remove ).
apply_patch_all( iv_patch = lv_add
iv_patch_flag = abap_true ).
apply_patch_all( iv_patch = lv_remove
iv_patch_flag = abap_false ).
ENDMETHOD.
METHOD are_all_lines_patched.
DATA: lv_patch_count TYPE i.
FIELD-SYMBOLS: <ls_diff> TYPE zif_abapgit_definitions=>ty_diff.
LOOP AT it_diff ASSIGNING <ls_diff>
WHERE patch_flag = abap_true.
lv_patch_count = lv_patch_count + 1.
ENDLOOP.
rv_are_all_lines_patched = boolc( lv_patch_count = lines( it_diff ) ).
ENDMETHOD.
METHOD constructor.
super->constructor(
iv_key = iv_key
is_file = is_file
is_object = is_object
it_files = it_files ).
IF mo_repo->is_offline( ) = abap_true.
zcx_abapgit_exception=>raise( |Patching is only possible for online repositories.| ).
ENDIF.
mo_repo_online ?= mo_repo.
" While patching we always want to be in split mode
CLEAR: mv_unified.
set_layout( ).
CREATE OBJECT mo_stage.
ms_control-page_title = 'Patch'.
ms_control-page_menu = build_menu( ).
ENDMETHOD.
METHOD get_diff_line.
DATA: lt_diff TYPE zif_abapgit_definitions=>ty_diffs_tt,
lv_line_index TYPE sy-tabix.
lv_line_index = iv_line_index.
lt_diff = io_diff->get( ).
READ TABLE lt_diff INTO rs_diff
INDEX lv_line_index.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Invalid line index { lv_line_index }| ).
ENDIF.
ENDMETHOD.
METHOD get_diff_object.
FIELD-SYMBOLS: <ls_diff_file> LIKE LINE OF mt_diff_files.
LOOP AT mt_diff_files ASSIGNING <ls_diff_file>.
IF get_normalized_fname_with_path( <ls_diff_file> ) = iv_filename.
ro_diff = <ls_diff_file>-o_diff.
EXIT.
ENDIF.
ENDLOOP.
IF ro_diff IS NOT BOUND.
zcx_abapgit_exception=>raise( |Invalid filename { iv_filename }| ).
ENDIF.
ENDMETHOD.
METHOD get_patch_data.
DATA: lv_section TYPE string.
CLEAR: ev_filename, ev_line_index.
FIND FIRST OCCURRENCE OF REGEX `patch_line` && `_(.*)_(\d)+_(\d+)`
IN iv_patch
SUBMATCHES ev_filename lv_section ev_line_index.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Invalid patch| ).
ENDIF.
ENDMETHOD.
METHOD insert_nav.
" add beacon at beginning of file
rv_insert_nav = abap_true.
ENDMETHOD.
METHOD is_patch_line_possible.
IF is_diff_line-result = zif_abapgit_definitions=>c_diff-update
OR is_diff_line-result = zif_abapgit_definitions=>c_diff-insert
OR is_diff_line-result = zif_abapgit_definitions=>c_diff-delete.
rv_is_patch_line_possible = abap_true.
ENDIF.
ENDMETHOD.
METHOD refresh.
DATA:
lt_diff_files_old TYPE ty_file_diffs,
lt_files TYPE zif_abapgit_definitions=>ty_stage_tt,
ls_file LIKE LINE OF lt_files.
FIELD-SYMBOLS: <ls_diff_file_old> TYPE zcl_abapgit_gui_page_diff=>ty_file_diff.
lt_diff_files_old = mt_diff_files.
CASE iv_action.
WHEN c_actions-refresh.
refresh_full( ).
WHEN c_actions-refresh_local.
refresh_local( ).
WHEN OTHERS.
refresh_local_object( iv_action ).
ENDCASE.
" We need to supply files again in calculate_diff. Because
" we only want to refresh the visible files. Otherwise all
" diff files would appear.
" Which is not wanted when we previously only selected particular files.
LOOP AT lt_diff_files_old ASSIGNING <ls_diff_file_old>.
CLEAR: ls_file.
MOVE-CORRESPONDING <ls_diff_file_old> TO ls_file-file.
INSERT ls_file INTO TABLE lt_files.
ENDLOOP.
calculate_diff( it_files = lt_files ).
restore_patch_flags( lt_diff_files_old ).
ENDMETHOD.
METHOD refresh_full.
mo_repo->refresh( abap_true ).
ENDMETHOD.
METHOD refresh_local.
mo_repo->refresh_local_objects( ).
ENDMETHOD.
METHOD refresh_local_object.
DATA:
lv_regex TYPE string,
lv_obj_type TYPE tadir-object,
lv_obj_name TYPE tadir-obj_name.
lv_regex = c_actions-refresh_local_object && `_(\w{4})_(.*)`.
FIND FIRST OCCURRENCE OF REGEX lv_regex
IN iv_action
SUBMATCHES lv_obj_type lv_obj_name.
IF sy-subrc = 0.
mo_repo->refresh_local_object(
iv_obj_type = lv_obj_type
iv_obj_name = lv_obj_name ).
ELSE.
zcx_abapgit_exception=>raise( |Invalid refresh action { iv_action }| ).
ENDIF.
ENDMETHOD.
METHOD render_beacon_begin_of_row.
mv_section_count = mv_section_count + 1.
ii_html->add( |<th class="patch">| ).
ii_html->add_checkbox( iv_id = |patch_section_{ get_normalized_fname_with_path( is_diff ) }_{ mv_section_count }| ).
ii_html->add( '</th>' ).
ENDMETHOD.
METHOD render_content.
CLEAR: mv_section_count.
IF mv_pushed = abap_true.
refresh_full( ).
calculate_diff( ).
CLEAR: mv_pushed.
ENDIF.
gui_services( )->get_hotkeys_ctl( )->register_hotkeys( zif_abapgit_gui_hotkeys~get_hotkey_actions( ) ).
ri_html = super->render_content( ).
register_deferred_script( render_scripts( ) ).
ENDMETHOD.
METHOD render_diff_head_after_state.
DATA: lv_act_id TYPE string.
IF is_diff-obj_type IS NOT INITIAL AND is_diff-obj_name IS NOT INITIAL.
lv_act_id = |{ c_actions-refresh_local_object }_{ is_diff-obj_type }_{ is_diff-obj_name }|.
ii_html->add_a(
iv_txt = |Refresh|
iv_typ = zif_abapgit_html=>c_action_type-dummy
iv_act = lv_act_id
iv_id = lv_act_id
iv_title = |Local refresh of this object| ).
ENDIF.
super->render_diff_head_after_state(
ii_html = ii_html
is_diff = is_diff ).
ENDMETHOD.
METHOD render_line_split_row.
render_patch( ii_html = ii_html
iv_filename = iv_filename
is_diff_line = is_diff_line
iv_index = iv_index ).
super->render_line_split_row(
ii_html = ii_html
iv_filename = iv_filename
is_diff_line = is_diff_line
iv_index = iv_index
iv_fstate = iv_fstate
iv_new = iv_new
iv_old = iv_old ).
ENDMETHOD.
METHOD render_patch.
CONSTANTS:
BEGIN OF lc_css_class,
patch TYPE string VALUE `patch`,
END OF lc_css_class.
DATA:
lv_id TYPE string,
lv_patched TYPE abap_bool,
lv_is_patch_possible TYPE abap_bool.
lv_patched = get_diff_object( iv_filename )->is_line_patched( iv_index ).
lv_is_patch_possible = is_patch_line_possible( is_diff_line ).
IF lv_is_patch_possible = abap_true.
lv_id = |{ iv_filename }_{ mv_section_count }_{ iv_index }|.
ii_html->add( |<td class="{ lc_css_class-patch }">| ).
ii_html->add_checkbox(
iv_id = |patch_line_{ lv_id }|
iv_checked = lv_patched ).
ii_html->add( |</td>| ).
ELSE.
ii_html->add( |<td class="{ lc_css_class-patch }">| ).
ii_html->add( |</td>| ).
ENDIF.
ENDMETHOD.
METHOD render_patch_head.
ii_html->add( |<th class="patch">| ).
ii_html->add_checkbox( |patch_file_{ get_normalized_fname_with_path( is_diff ) }| ).
ii_html->add( '</th>' ).
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( 'preparePatch();' ).
ri_html->add( 'registerStagePatch();' ).
ENDMETHOD.
METHOD render_table_head_non_unified.
render_patch_head( ii_html = ii_html
is_diff = is_diff ).
super->render_table_head_non_unified(
ii_html = ii_html
is_diff = is_diff ).
ENDMETHOD.
METHOD restore_patch_flags.
DATA:
lt_diff_old TYPE zif_abapgit_definitions=>ty_diffs_tt.
FIELD-SYMBOLS:
<ls_diff_file> TYPE ty_file_diff,
<ls_diff_file_old> TYPE ty_file_diff,
<ls_diff_old> TYPE zif_abapgit_definitions=>ty_diff.
LOOP AT mt_diff_files ASSIGNING <ls_diff_file>.
READ TABLE it_diff_files_old ASSIGNING <ls_diff_file_old>
WITH KEY secondary
COMPONENTS path = <ls_diff_file>-path
filename = <ls_diff_file>-filename.
IF sy-subrc <> 0.
CONTINUE. " e.g. new objects
ENDIF.
lt_diff_old = <ls_diff_file_old>-o_diff->get( ).
LOOP AT lt_diff_old ASSIGNING <ls_diff_old>
WHERE patch_flag = abap_true.
<ls_diff_file>-o_diff->set_patch_by_old_diff(
is_diff_old = <ls_diff_old>
iv_patch_flag = abap_true ).
ENDLOOP.
ENDLOOP.
ENDMETHOD.
METHOD start_staging.
apply_patch_from_form_fields( ii_event ).
add_to_stage( ).
ENDMETHOD.
METHOD zif_abapgit_gui_event_handler~on_event.
CASE ii_event->mv_action.
WHEN c_actions-stage.
start_staging( ii_event ).
CREATE OBJECT rs_handled-page TYPE zcl_abapgit_gui_page_commit
EXPORTING
io_repo = mo_repo_online
io_stage = mo_stage.
rs_handled-state = zcl_abapgit_gui=>c_event_state-new_page.
WHEN OTHERS.
FIND FIRST OCCURRENCE OF REGEX |^{ c_actions-refresh }| IN ii_event->mv_action.
IF sy-subrc = 0.
apply_patch_from_form_fields( ii_event ).
refresh( ii_event->mv_action ).
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
ELSE.
rs_handled = super->zif_abapgit_gui_event_handler~on_event( ii_event ).
ENDIF.
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_gui_hotkeys~get_hotkey_actions.
DATA: ls_hotkey_action LIKE LINE OF rt_hotkey_actions.
ls_hotkey_action-ui_component = 'Patch'.
ls_hotkey_action-description = |Stage changes|.
ls_hotkey_action-action = |stagePatch|.
ls_hotkey_action-hotkey = |s|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Refresh local|.
ls_hotkey_action-action = |refreshLocal|.
ls_hotkey_action-hotkey = |r|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
17147,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
26069,
198,
220,
29244,
6158,
44731,
764,
628,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
8940,
13083,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
7753,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
7753,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
15252,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
16624,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
14247,
62,
926,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
17147,
62,
14171,
41876,
450,
499,
62,
30388,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
93,
261,
62,
15596,
23848,
36,
20032,
17941,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
17147,
62,
7890,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
17147,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
34345,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
819,
62,
1370,
62,
9630,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
8543,
62,
11299,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
751,
62,
26272,
62,
437,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
751,
62,
26272,
62,
27471,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
8543,
62,
11487,
62,
2256,
62,
13159,
62,
403,
1431,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
8543,
62,
1350,
7807,
62,
27471,
62,
1659,
62,
808,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
8543,
62,
26069,
62,
2256,
62,
8499,
62,
5219,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
7550,
62,
28341,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
8543,
62,
1370,
62,
35312,
62,
808,
23848,
36,
20032,
17941,
13,
628,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
1259,
62,
17147,
62,
2673,
41876,
4731,
764,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
4658,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3800,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
17147,
62,
14247,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
14976,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
17147,
62,
5420,
3447,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
14976,
62,
12001,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
17147,
62,
5420,
3447,
62,
12001,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
14976,
62,
12001,
62,
15252,
41876,
4731,
26173,
8924,
705,
17147,
62,
5420,
3447,
62,
12001,
62,
15252,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
4658,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
17147,
62,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
751,
220,
220,
220,
41876,
1259,
62,
17147,
62,
2673,
26173,
8924,
705,
2860,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4781,
41876,
1259,
62,
17147,
62,
2673,
26173,
8924,
705,
28956,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
17147,
62,
2673,
764,
198,
220,
220,
220,
42865,
6941,
62,
14247,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
14247,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
5458,
62,
9127,
41876,
1312,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
79,
7474,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
42865,
6941,
62,
260,
7501,
62,
25119,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
764,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
17147,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
6494,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
34345,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
26069,
62,
1370,
41876,
1976,
361,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_abapgit_syntax_xml DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA:
mo_cut TYPE REF TO zcl_abapgit_syntax_xml.
METHODS:
setup,
sole_closing_xml_tag FOR TESTING RAISING cx_static_check,
complete_xml_tag FOR TESTING RAISING cx_static_check,
complete_xml_tag_with_closing FOR TESTING RAISING cx_static_check,
empty_attributes FOR TESTING RAISING cx_static_check,
open_tags FOR TESTING RAISING cx_static_check,
attributes_only FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_abapgit_syntax_xml IMPLEMENTATION.
METHOD setup.
CREATE OBJECT mo_cut.
ENDMETHOD.
METHOD sole_closing_xml_tag.
cl_abap_unit_assert=>assert_equals(
exp = |<span class="xml_tag">></span>|
act = mo_cut->process_line( |>| ) ).
ENDMETHOD.
METHOD complete_xml_tag.
cl_abap_unit_assert=>assert_equals(
exp = |<span class="xml_tag"><tag></span>|
act = mo_cut->process_line( |<tag>| ) ).
ENDMETHOD.
METHOD complete_xml_tag_with_closing.
cl_abap_unit_assert=>assert_equals(
exp = |<span class="xml_tag"><tag/></span>|
act = mo_cut->process_line( |<tag/>| ) ).
ENDMETHOD.
METHOD empty_attributes.
cl_abap_unit_assert=>assert_equals(
exp = |<span class="xml_tag"><ECTD</span>|
&& |<span class="attr"> SAPRL</span>=|
&& |<span class="attr_val">"751"</span>|
&& |<span class="attr"> VERSION</span>=|
&& |<span class="attr_val">"1.5"</span>|
&& |<span class="attr"> DOWNLOADDATE</span>=<span class="attr_val">""</span>|
&& |<span class="attr"> DOWNLOADTIME</span>=<span class="attr_val">""</span>|
&& |<span class="xml_tag">></span>|
act = mo_cut->process_line( |<ECTD SAPRL="751" VERSION="1.5" DOWNLOADDATE="" DOWNLOADTIME="">| ) ).
ENDMETHOD.
METHOD attributes_only.
cl_abap_unit_assert=>assert_equals(
exp = |<span class="attr"> SAPRL</span>=|
&& |<span class="attr_val">"751"</span>|
&& |<span class="attr"> VERSION</span>=|
&& |<span class="attr_val">">1.5"</span>|
act = mo_cut->process_line( | SAPRL="751" VERSION=">1.5"| ) ).
cl_abap_unit_assert=>assert_equals(
exp = |<span class="attr">SAPRL</span>=|
&& |<span class="attr_val">"751"</span>|
&& |<span class="attr"> VERSION</span>=|
&& |<span class="attr_val">'>1.5'</span>|
act = mo_cut->process_line( |SAPRL="751" VERSION='>1.5'| ) ).
ENDMETHOD.
METHOD open_tags.
cl_abap_unit_assert=>assert_equals(
exp = |<span class="xml_tag"><ECTD</span>|
act = mo_cut->process_line( |<ECTD| ) ).
cl_abap_unit_assert=>assert_equals(
exp = |<span class="xml_tag"><ECTD</span>|
&& |<span class="attr"> SAPRL</span>=|
&& |<span class="attr_val">"751"</span>|
&& |<span class="attr"> VERSION</span>=|
&& |<span class="attr_val">"1.5"</span>|
act = mo_cut->process_line( |<ECTD SAPRL="751" VERSION="1.5"| ) ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
19875,
5550,
20032,
17941,
25261,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
6941,
62,
8968,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
19875,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
198,
220,
220,
220,
220,
220,
6195,
62,
565,
2752,
62,
19875,
62,
12985,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1844,
62,
19875,
62,
12985,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1844,
62,
19875,
62,
12985,
62,
4480,
62,
565,
2752,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
6565,
62,
1078,
7657,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
1280,
62,
31499,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
12608,
62,
8807,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
397,
499,
18300,
62,
1837,
41641,
62,
19875,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
9058,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
6941,
62,
8968,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
6195,
62,
565,
2752,
62,
19875,
62,
12985,
13,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
1033,
796,
930,
27,
12626,
1398,
2625,
19875,
62,
12985,
5320,
5,
13655,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
719,
796,
6941,
62,
8968,
3784,
14681,
62,
1370,
7,
930,
29,
91,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1844,
62,
19875,
62,
12985,
13,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
1033,
796,
930,
27,
12626,
1398,
2625,
19875,
62,
12985,
5320,
5,
2528,
26,
12985,
5,
13655,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
719,
796,
6941,
62,
8968,
3784,
14681,
62,
1370,
7,
930,
27,
12985,
29,
91,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1844,
62,
19875,
62,
12985,
62,
4480,
62,
565,
2752,
13,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
1033,
796,
930,
27,
12626,
1398,
2625,
19875,
62,
12985,
5320,
5,
2528,
26,
12985,
14,
5,
13655,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
719,
796,
6941,
62,
8968,
3784,
14681,
62,
1370,
7,
930,
27,
12985,
15913,
91,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
6565,
62,
1078,
7657,
13,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
1033,
796,
930,
27,
12626,
1398,
2625,
19875,
62,
12985,
5320,
5,
2528,
26,
9782,
35,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
5320,
48323,
7836,
3556,
12626,
29,
28,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
62,
2100,
5320,
5,
421,
313,
26,
48365,
5,
421,
313,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
5320,
44156,
2849,
3556,
12626,
29,
28,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
62,
2100,
5320,
5,
421,
313,
26,
16,
13,
20,
5,
421,
313,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
5320,
30320,
21982,
29266,
6158,
3556,
12626,
29,
28,
27,
12626,
1398,
2625,
35226,
62,
2100,
5320,
5,
421,
313,
26,
5,
421,
313,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
5320,
30320,
35613,
34694,
3556,
12626,
29,
28,
27,
12626,
1398,
2625,
35226,
62,
2100,
5320,
5,
421,
313,
26,
5,
421,
313,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
19875,
62,
12985,
5320,
5,
13655,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
719,
796,
6941,
62,
8968,
3784,
14681,
62,
1370,
7,
930,
27,
9782,
35,
48323,
7836,
2625,
48365,
1,
44156,
2849,
2625,
16,
13,
20,
1,
30320,
21982,
29266,
6158,
33151,
30320,
35613,
34694,
2625,
5320,
91,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
12608,
62,
8807,
13,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
1033,
796,
930,
27,
12626,
1398,
2625,
35226,
5320,
48323,
7836,
3556,
12626,
29,
28,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
62,
2100,
5320,
5,
421,
313,
26,
48365,
5,
421,
313,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
5320,
44156,
2849,
3556,
12626,
29,
28,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
11405,
930,
27,
12626,
1398,
2625,
35226,
62,
2100,
5320,
5,
421,
313,
26,
5,
13655,
26,
16,
13,
20,
5,
421,
313,
26,
3556,
12626,
29,
91,
198,
220,
220,
220,
220,
220,
719,
796,
6941,
62,
8968,
3784,
14681,
62,
1370,
7,
930
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class ZBP_I_AF_DEMOLEVEL2_01 definition
public
abstract
final
for behavior of ZI_AF_DEMOLEVEL1_01 .
public section.
protected section.
private section.
ENDCLASS.
CLASS ZBP_I_AF_DEMOLEVEL2_01 IMPLEMENTATION.
ENDCLASS.
| [
4871,
1168,
20866,
62,
40,
62,
8579,
62,
39429,
46,
2538,
18697,
17,
62,
486,
6770,
198,
220,
1171,
198,
220,
12531,
198,
220,
2457,
198,
220,
329,
4069,
286,
1168,
40,
62,
8579,
62,
39429,
46,
2538,
18697,
16,
62,
486,
764,
198,
198,
11377,
2665,
13,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
20866,
62,
40,
62,
8579,
62,
39429,
46,
2538,
18697,
17,
62,
486,
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
] |
*"* use this source file for your ABAP unit test classes
CLASS lcl_test DEFINITION
INHERITING FROM zcl_glds_demo_range_tests
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
534,
9564,
2969,
4326,
1332,
6097,
198,
31631,
300,
565,
62,
9288,
5550,
20032,
17941,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
70,
335,
82,
62,
9536,
78,
62,
9521,
62,
41989,
198,
220,
7473,
43001,
2751,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
360,
4261,
6234,
6006,
9863,
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
] |
CLASS zcl_abapgit_gui_page_bkg DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_page
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor
IMPORTING
iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RAISING zcx_abapgit_exception.
METHODS zif_abapgit_gui_event_handler~on_event
REDEFINITION .
PROTECTED SECTION.
METHODS read_persist
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo_online
RETURNING
VALUE(rs_persist) TYPE zcl_abapgit_persist_background=>ty_background
RAISING
zcx_abapgit_exception .
METHODS render_methods
IMPORTING
!is_per TYPE zcl_abapgit_persist_background=>ty_background
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html .
METHODS render_settings
IMPORTING
!is_per TYPE zcl_abapgit_persist_background=>ty_background
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html .
METHODS build_menu
RETURNING
VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar .
CLASS-METHODS update
IMPORTING
!is_bg_task TYPE zcl_abapgit_persist_background=>ty_background
RAISING
zcx_abapgit_exception .
METHODS render
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS decode
IMPORTING
!iv_getdata TYPE clike
RETURNING
VALUE(rs_fields) TYPE zcl_abapgit_persist_background=>ty_background .
METHODS render_content
REDEFINITION .
PRIVATE SECTION.
DATA mv_key TYPE zif_abapgit_persistence=>ty_repo-key .
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE_BKG IMPLEMENTATION.
METHOD build_menu.
CREATE OBJECT ro_menu.
ro_menu->add( iv_txt = 'Run background logic'
iv_act = zif_abapgit_definitions=>c_action-go_background_run ) ##NO_TEXT.
ENDMETHOD.
METHOD constructor.
super->constructor( ).
mv_key = iv_key.
ms_control-page_title = 'Background'.
ms_control-page_menu = build_menu( ).
ENDMETHOD.
METHOD decode.
DATA: lt_fields TYPE tihttpnvp.
FIELD-SYMBOLS: <ls_setting> LIKE LINE OF rs_fields-settings.
rs_fields-key = mv_key.
lt_fields = zcl_abapgit_html_action_utils=>parse_fields_upper_case_name( iv_getdata ).
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = 'METHOD'
it_field = lt_fields
CHANGING
cg_field = rs_fields ).
IF rs_fields-method IS INITIAL.
RETURN.
ENDIF.
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = 'USERNAME'
it_field = lt_fields
CHANGING
cg_field = rs_fields ).
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = 'PASSWORD'
it_field = lt_fields
CHANGING
cg_field = rs_fields ).
CALL METHOD (rs_fields-method)=>zif_abapgit_background~get_settings
CHANGING
ct_settings = rs_fields-settings.
LOOP AT rs_fields-settings ASSIGNING <ls_setting>.
zcl_abapgit_html_action_utils=>get_field(
EXPORTING
iv_name = <ls_setting>-key
it_field = lt_fields
CHANGING
cg_field = <ls_setting>-value ).
ENDLOOP.
ASSERT NOT rs_fields IS INITIAL.
ENDMETHOD.
METHOD read_persist.
DATA: lo_per TYPE REF TO zcl_abapgit_persist_background,
lt_per TYPE zcl_abapgit_persist_background=>tt_background.
CREATE OBJECT lo_per.
lt_per = lo_per->list( ).
READ TABLE lt_per INTO rs_persist WITH KEY key = io_repo->get_key( ).
IF sy-subrc <> 0.
CLEAR rs_persist.
ENDIF.
ENDMETHOD.
METHOD render.
DATA: lo_repo TYPE REF TO zcl_abapgit_repo_online,
ls_per TYPE zcl_abapgit_persist_background=>ty_background.
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( mv_key ).
ls_per = read_persist( lo_repo ).
CREATE OBJECT ro_html.
ro_html->add( '<div id="toc" class="settings_container">' ).
ro_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top( lo_repo ) ).
ro_html->add( '<br>' ).
ro_html->add( render_methods( ls_per ) ).
ro_html->add( '<u>HTTP Authentication, optional</u><br>' ) ##NO_TEXT.
ro_html->add( '(password will be saved in clear text)<br>' ) ##NO_TEXT.
ro_html->add( '<table>' ).
ro_html->add( '<tr>' ).
ro_html->add( '<td>Username:</td>' ).
ro_html->add( '<td><input type="text" name="username" value="' && ls_per-username && '"></td>' ).
ro_html->add( '</tr>' ).
ro_html->add( '<tr>' ).
ro_html->add( '<td>Password:</td>' ).
ro_html->add( '<td><input type="text" name="password" value="' && ls_per-password && '"></td>' ).
ro_html->add( '</tr>' ).
ro_html->add( '</table>' ).
ro_html->add( '<br>' ).
ro_html->add( render_settings( ls_per ) ).
ro_html->add( '<br>' ).
ro_html->add( '<input type="submit" value="Save">' ).
ro_html->add( '</form>' ).
ro_html->add( '<br>' ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD render_content.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( render( ) ).
ENDMETHOD.
METHOD render_methods.
DATA: lt_methods TYPE zcl_abapgit_background=>ty_methods_tt,
ls_method LIKE LINE OF lt_methods,
lv_checked TYPE string.
CREATE OBJECT ro_html.
lt_methods = zcl_abapgit_background=>list_methods( ).
ro_html->add( '<u>Method</u><br>' ) ##NO_TEXT.
ro_html->add( |<form method="get" action="sapevent:{ zif_abapgit_definitions=>c_action-bg_update }">| ).
IF is_per-method IS INITIAL.
lv_checked = ' checked' ##NO_TEXT.
ENDIF.
ro_html->add( '<input type="radio" name="method" value=""' && lv_checked && '>Do nothing<br>' ) ##NO_TEXT.
LOOP AT lt_methods INTO ls_method.
CLEAR lv_checked.
IF is_per-method = ls_method-class.
lv_checked = ' checked' ##NO_TEXT.
ENDIF.
ro_html->add( '<input type="radio" name="method" value="' &&
ls_method-class && '"' &&
lv_checked && '>' &&
ls_method-description && '<br>' ) ##NO_TEXT.
ENDLOOP.
ro_html->add( '<br>' ).
ENDMETHOD.
METHOD render_settings.
DATA: lt_settings LIKE is_per-settings,
ls_setting LIKE LINE OF lt_settings.
CREATE OBJECT ro_html.
IF is_per-method IS INITIAL.
RETURN.
ENDIF.
lt_settings = is_per-settings.
* skip invalid values, from old background logic
IF is_per-method <> 'push' AND is_per-method <> 'pull' AND is_per-method <> 'nothing'.
CALL METHOD (is_per-method)=>zif_abapgit_background~get_settings
CHANGING
ct_settings = lt_settings.
ENDIF.
IF lines( lt_settings ) = 0.
RETURN.
ENDIF.
ro_html->add( '<table>' ).
LOOP AT lt_settings INTO ls_setting.
ro_html->add( '<tr>' ).
ro_html->add( '<td>' && ls_setting-key && ':</td>' ).
ro_html->add( '<td><input type="text" name="' &&
ls_setting-key && '" value="' &&
ls_setting-value && '"></td>' ).
ro_html->add( '</tr>' ).
ENDLOOP.
ro_html->add( '</table>' ).
ENDMETHOD.
METHOD update.
DATA lo_persistence TYPE REF TO zcl_abapgit_persist_background.
CREATE OBJECT lo_persistence.
IF is_bg_task-method IS INITIAL.
lo_persistence->delete( is_bg_task-key ).
ELSE.
lo_persistence->modify( is_bg_task ).
ENDIF.
MESSAGE 'Saved' TYPE 'S' ##NO_TEXT.
COMMIT WORK.
ENDMETHOD.
METHOD zif_abapgit_gui_event_handler~on_event.
CASE iv_action.
WHEN zif_abapgit_definitions=>c_action-bg_update.
update( decode( iv_getdata ) ).
ev_state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN OTHERS.
super->zif_abapgit_gui_event_handler~on_event(
EXPORTING
iv_action = iv_action
iv_getdata = iv_getdata
it_postdata = it_postdata
IMPORTING
ei_page = ei_page
ev_state = ev_state ).
ENDCASE.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
65,
10025,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
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,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
93,
261,
62,
15596,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
1100,
62,
19276,
396,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
260,
7501,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
25119,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
19276,
396,
8,
41876,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
25249,
14804,
774,
62,
25249,
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,
24396,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
525,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
25249,
14804,
774,
62,
25249,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
33692,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
525,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
25249,
14804,
774,
62,
25249,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
764,
198,
220,
220,
220,
337,
36252,
50,
1382,
62,
26272,
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,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4296,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
35904,
62,
35943,
41876,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
25249,
14804,
774,
62,
25249,
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,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
36899,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
1136,
7890,
220,
220,
220,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
25747,
8,
41876,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
25249,
14804,
774,
62,
25249,
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,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
285,
85,
62,
2539,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
40156,
62,
4537,
8264,
62,
33,
42,
38,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1382,
62,
26272,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
26272,
13,
628,
220,
220,
220,
686,
62,
26272,
3784,
2860,
7,
21628,
62,
14116,
796,
705,
10987,
4469,
9156,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
529,
796,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
66,
62,
2673,
12,
2188,
62,
25249,
62,
5143,
1267,
22492,
15285,
62,
32541,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
628,
220,
220,
220,
285,
85,
62,
2539,
796,
21628,
62,
2539,
13,
198,
220,
220,
220,
13845,
62,
13716,
12,
7700,
62,
7839,
796,
705,
21756,
4458,
198,
220,
220,
220,
13845,
62,
13716,
12,
7700,
62,
26272,
220,
796,
1382,
62,
26272,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
36899,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
25747,
41876,
46668,
4023,
77,
36133,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
class ZCX_AGS_ERROR definition
public
inheriting from CX_STATIC_CHECK
create public .
public section.
interfaces IF_T100_MESSAGE .
constants:
begin of ZCX_AGS_ERROR,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '000',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of ZCX_AGS_ERROR .
constants:
begin of M001,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '001',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M001 .
constants:
begin of M002,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '002',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M002 .
constants:
begin of M004,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '004',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M004 .
constants:
begin of M005,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '005',
attr1 type scx_attrname value 'SHA1',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M005 .
constants:
begin of M008,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '008',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M008 .
constants:
begin of M009,
msgid type symsgid value 'ZABAPGITSERVER',
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 M009 .
constants:
begin of M011,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '011',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M011 .
constants:
begin of M012,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '012',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M012 .
constants:
begin of M013,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '013',
attr1 type scx_attrname value 'REPO_NAME',
attr2 type scx_attrname value 'ID',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M013 .
constants:
begin of M014,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '014',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M014 .
constants:
begin of M003,
msgid type symsgid value 'ZABAPGITSERVER',
msgno type symsgno value '003',
attr1 type scx_attrname value '',
attr2 type scx_attrname value '',
attr3 type scx_attrname value '',
attr4 type scx_attrname value '',
end of M003 .
data SHA1 type ZAGS_SHA1 .
data STRING type STRING .
data REPO_NAME type ZAGS_REPO_NAME .
data ID type ZAGS_MERGE_REQUEST_ID .
methods CONSTRUCTOR
importing
!TEXTID like IF_T100_MESSAGE=>T100KEY optional
!PREVIOUS like PREVIOUS optional
!SHA1 type ZAGS_SHA1 optional
!STRING type STRING optional
!REPO_NAME type ZAGS_REPO_NAME optional
!ID type ZAGS_MERGE_REQUEST_ID optional .
protected section.
private section.
ENDCLASS.
CLASS ZCX_AGS_ERROR IMPLEMENTATION.
method CONSTRUCTOR ##ADT_SUPPRESS_GENERATION.
CALL METHOD SUPER->CONSTRUCTOR
EXPORTING
PREVIOUS = PREVIOUS
.
me->SHA1 = SHA1 .
me->STRING = STRING .
me->REPO_NAME = REPO_NAME .
me->ID = ID .
clear me->textid.
if textid is initial.
IF_T100_MESSAGE~T100KEY = ZCX_AGS_ERROR .
else.
IF_T100_MESSAGE~T100KEY = TEXTID.
endif.
endmethod.
ENDCLASS.
| [
4871,
1168,
34,
55,
62,
4760,
50,
62,
24908,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
327,
55,
62,
35744,
2149,
62,
50084,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
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,
4760,
50,
62,
24908,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
57,
6242,
2969,
38,
29722,
1137,
5959,
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,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
1168,
34,
55,
62,
4760,
50,
62,
24908,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
8298,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
57,
6242,
2969,
38,
29722,
1137,
5959,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
8298,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
337,
8298,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
21601,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
57,
6242,
2969,
38,
29722,
1137,
5959,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
21601,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
337,
21601,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
22914,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
57,
6242,
2969,
38,
29722,
1137,
5959,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
22914,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
337,
22914,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
22544,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
57,
6242,
2969,
38,
29722,
1137,
5959,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
22544,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
37596,
16,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
337,
22544,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
25257,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
57,
6242,
2969,
38,
29722,
1137,
5959,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
25257,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
337,
25257,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
28694,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
57,
6242,
2969,
38,
29722,
1137,
5959,
3256,
198,
220,
220,
220,
220,
220,
31456,
3919,
2099,
827,
19662,
3919,
1988,
705,
28694,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
16,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
17,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
18,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
220,
220,
708,
81,
19,
2099,
629,
87,
62,
35226,
3672,
1988,
705,
3256,
198,
220,
220,
220,
886,
286,
337,
28694,
764,
198,
220,
38491,
25,
198,
220,
220,
220,
2221,
286,
337,
28555,
11,
198,
220,
220,
220,
220,
220,
31456,
312,
2099,
827,
19662,
312,
1988,
705,
57,
6242,
2969,
38,
29722,
1137,
5959,
3256,
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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