Merge branch 'main' into Fix-timestamp-comparisons-in-ZCL_ABAPGIT_FIELD_RULES

This commit is contained in:
Marc Bernard 2024-09-16 12:51:16 -04:00 committed by GitHub
commit b398a206f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
64 changed files with 529 additions and 424 deletions

View File

@ -11,11 +11,43 @@
"folder": "/deps" "folder": "/deps"
}, },
{ {
"url": "https://github.com/abaplint/deps",
"files": "/src/**/*.*", "files": "/src/**/*.*",
"folder": "/lint_deps", "folder": "/lint_deps"
"url": "https://github.com/abaplint/deps"
} }
], ],
"syntax": {
"errorNamespace": "^(Z|Y|LT?CL_|TY_|LIF_|C_|.*ABAPGIT)",
"globalConstants": [
"abap_func_exporting",
"abap_func_tables",
"cssf_formtype_text",
"seok_access_free",
"seok_access_modify",
"sews_c_vif_version",
"skwfc_obtype_folder",
"skwfc_obtype_loio",
"so2_controller",
"srext_ext_class_pool",
"srext_ext_interface_pool",
"ststc_c_type_dialog",
"ststc_c_type_object",
"ststc_c_type_parameters",
"ststc_c_type_report",
"swbm_c_op_delete_no_dialog",
"swbm_c_type_ddic_db_tabxinx",
"swbm_c_type_wdy_application",
"swbm_version_active",
"swbm_version_inactive",
"swfco_org_standard_task",
"swfco_org_workflow_template",
"wbmr_c_skwf_folder_class",
"wdyn_limu_component_controller",
"wdyn_limu_component_definition",
"wdyn_limu_component_view"
],
"version": "v702"
},
"rules": { "rules": {
"7bit_ascii": { "7bit_ascii": {
"exclude": [ "exclude": [
@ -25,6 +57,7 @@
] ]
}, },
"abapdoc": false, "abapdoc": false,
"align_type_expressions": true,
"align_pseudo_comments": false, "align_pseudo_comments": false,
"invalid_table_index": true, "invalid_table_index": true,
"tables_declared_locally": true, "tables_declared_locally": true,
@ -259,7 +292,7 @@
"/json/", "/json/",
"zcl_abapgit_object_pdts.clas.testclasses.abap" "zcl_abapgit_object_pdts.clas.testclasses.abap"
], ],
"length": 120 "length": 125
}, },
"line_only_punc": { "line_only_punc": {
"ignoreExceptions": true "ignoreExceptions": true
@ -468,37 +501,5 @@
"when_others_last": true, "when_others_last": true,
"whitespace_end": true, "whitespace_end": true,
"xml_consistency": true "xml_consistency": true
},
"syntax": {
"errorNamespace": "^(Z|Y|LT?CL_|TY_|LIF_|C_|.*ABAPGIT)",
"globalConstants": [
"abap_func_exporting",
"abap_func_tables",
"cssf_formtype_text",
"seok_access_free",
"seok_access_modify",
"sews_c_vif_version",
"skwfc_obtype_folder",
"skwfc_obtype_loio",
"so2_controller",
"srext_ext_class_pool",
"srext_ext_interface_pool",
"ststc_c_type_dialog",
"ststc_c_type_object",
"ststc_c_type_parameters",
"ststc_c_type_report",
"swbm_c_op_delete_no_dialog",
"swbm_c_type_ddic_db_tabxinx",
"swbm_c_type_wdy_application",
"swbm_version_active",
"swbm_version_inactive",
"swfco_org_standard_task",
"swfco_org_workflow_template",
"wbmr_c_skwf_folder_class",
"wdyn_limu_component_controller",
"wdyn_limu_component_definition",
"wdyn_limu_component_view"
],
"version": "v702"
} }
} }

View File

@ -23,7 +23,7 @@ CLASS zcl_abapgit_data_utils DEFINITION
VALUE(rv_filename) TYPE string. VALUE(rv_filename) TYPE string.
CLASS-METHODS jump CLASS-METHODS jump
IMPORTING IMPORTING
!is_item TYPE zif_abapgit_definitions=>ty_item !is_item TYPE zif_abapgit_definitions=>ty_item
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.
CLASS-METHODS does_table_exist CLASS-METHODS does_table_exist

View File

@ -481,9 +481,10 @@ CLASS zcl_abapgit_git_pack IMPLEMENTATION.
ls_node-chmod = lv_chmod. ls_node-chmod = lv_chmod.
IF ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-dir IF ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-dir
AND ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-file AND ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-file
AND ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-symbolic_link
AND ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-executable AND ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-executable
AND ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-submodule. AND ls_node-chmod <> zif_abapgit_git_definitions=>c_chmod-submodule.
zcx_abapgit_exception=>raise( |Unknown chmod| ). zcx_abapgit_exception=>raise( |Unknown chmod { ls_node-chmod }| ).
ENDIF. ENDIF.
lv_offset = lv_match + 1. lv_offset = lv_match + 1.

View File

@ -809,6 +809,7 @@ CLASS zcl_abapgit_git_porcelain IMPLEMENTATION.
CASE <ls_node>-chmod. CASE <ls_node>-chmod.
WHEN zif_abapgit_git_definitions=>c_chmod-file WHEN zif_abapgit_git_definitions=>c_chmod-file
OR zif_abapgit_git_definitions=>c_chmod-executable OR zif_abapgit_git_definitions=>c_chmod-executable
OR zif_abapgit_git_definitions=>c_chmod-symbolic_link
OR zif_abapgit_git_definitions=>c_chmod-submodule. OR zif_abapgit_git_definitions=>c_chmod-submodule.
APPEND INITIAL LINE TO rt_expanded ASSIGNING <ls_exp>. APPEND INITIAL LINE TO rt_expanded ASSIGNING <ls_exp>.
<ls_exp>-path = iv_base. <ls_exp>-path = iv_base.
@ -822,7 +823,7 @@ CLASS zcl_abapgit_git_porcelain IMPLEMENTATION.
iv_base = iv_base && <ls_node>-name && '/' ). iv_base = iv_base && <ls_node>-name && '/' ).
APPEND LINES OF lt_expanded TO rt_expanded. APPEND LINES OF lt_expanded TO rt_expanded.
WHEN OTHERS. WHEN OTHERS.
zcx_abapgit_exception=>raise( 'walk_tree: unknown chmod' ). zcx_abapgit_exception=>raise( |walk_tree: unknown chmod { <ls_node>-chmod }| ).
ENDCASE. ENDCASE.
ENDLOOP. ENDLOOP.

View File

@ -78,10 +78,11 @@ INTERFACE zif_abapgit_git_definitions
CONSTANTS: CONSTANTS:
BEGIN OF c_chmod, BEGIN OF c_chmod,
file TYPE ty_chmod VALUE '100644', file TYPE ty_chmod VALUE '100644',
executable TYPE ty_chmod VALUE '100755', executable TYPE ty_chmod VALUE '100755',
dir TYPE ty_chmod VALUE '40000 ', dir TYPE ty_chmod VALUE '40000 ',
submodule TYPE ty_chmod VALUE '160000', submodule TYPE ty_chmod VALUE '160000',
symbolic_link TYPE ty_chmod VALUE '120000',
END OF c_chmod . END OF c_chmod .
TYPES: TYPES:

View File

@ -30,11 +30,11 @@ CLASS zcl_abapgit_where_used_tools DEFINITION
" here: https://github.com/sbcgua/crossdeps " here: https://github.com/sbcgua/crossdeps
METHODS select_external_usages METHODS select_external_usages
IMPORTING IMPORTING
iv_package TYPE tadir-devclass iv_package TYPE tadir-devclass
iv_ignore_subpackages TYPE abap_bool DEFAULT abap_false iv_ignore_subpackages TYPE abap_bool DEFAULT abap_false
ir_package_scope TYPE ty_devc_range OPTIONAL ir_package_scope TYPE ty_devc_range OPTIONAL
RETURNING RETURNING
VALUE(rt_objs) TYPE ty_dependency_tt VALUE(rt_objs) TYPE ty_dependency_tt
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.

View File

@ -55,25 +55,25 @@ CLASS zcl_abapgit_ajson DEFINITION
!ii_custom_mapping TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL !ii_custom_mapping TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL
!iv_keep_item_order TYPE abap_bool DEFAULT abap_false !iv_keep_item_order TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_ajson VALUE(ro_instance) TYPE REF TO zcl_abapgit_ajson
RAISING RAISING
zcx_abapgit_ajson_error . zcx_abapgit_ajson_error .
CLASS-METHODS create_empty " Might be deprecated, prefer using new( ) or create object CLASS-METHODS create_empty " Might be deprecated, prefer using new( ) or create object
IMPORTING IMPORTING
!ii_custom_mapping TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL !ii_custom_mapping TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL
iv_keep_item_order TYPE abap_bool DEFAULT abap_false iv_keep_item_order TYPE abap_bool DEFAULT abap_false
iv_format_datetime TYPE abap_bool DEFAULT abap_true iv_format_datetime TYPE abap_bool DEFAULT abap_true
iv_to_abap_corresponding_only TYPE abap_bool DEFAULT abap_false iv_to_abap_corresponding_only TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_ajson. VALUE(ro_instance) TYPE REF TO zcl_abapgit_ajson.
" Experimental ! May change " Experimental ! May change
CLASS-METHODS create_from " TODO, rename to 'from' ? CLASS-METHODS create_from " TODO, rename to 'from' ?
IMPORTING IMPORTING
!ii_source_json TYPE REF TO zif_abapgit_ajson !ii_source_json TYPE REF TO zif_abapgit_ajson
!ii_filter TYPE REF TO zif_abapgit_ajson_filter OPTIONAL " Might be deprecated, use filter() instead !ii_filter TYPE REF TO zif_abapgit_ajson_filter OPTIONAL " Might be deprecated, use filter() instead
!ii_mapper TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL " Might be deprecated, use map() instead !ii_mapper TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL " Might be deprecated, use map() instead
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_ajson VALUE(ro_instance) TYPE REF TO zcl_abapgit_ajson
RAISING RAISING
@ -81,16 +81,16 @@ CLASS zcl_abapgit_ajson DEFINITION
METHODS constructor METHODS constructor
IMPORTING IMPORTING
iv_keep_item_order TYPE abap_bool DEFAULT abap_false iv_keep_item_order TYPE abap_bool DEFAULT abap_false
iv_format_datetime TYPE abap_bool DEFAULT abap_true iv_format_datetime TYPE abap_bool DEFAULT abap_true
iv_to_abap_corresponding_only TYPE abap_bool DEFAULT abap_false. iv_to_abap_corresponding_only TYPE abap_bool DEFAULT abap_false.
CLASS-METHODS new CLASS-METHODS new
IMPORTING IMPORTING
iv_keep_item_order TYPE abap_bool DEFAULT abap_false iv_keep_item_order TYPE abap_bool DEFAULT abap_false
iv_format_datetime TYPE abap_bool DEFAULT abap_true iv_format_datetime TYPE abap_bool DEFAULT abap_true
iv_to_abap_corresponding_only TYPE abap_bool DEFAULT abap_false iv_to_abap_corresponding_only TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_ajson. VALUE(ro_instance) TYPE REF TO zcl_abapgit_ajson.
PROTECTED SECTION. PROTECTED SECTION.
@ -108,16 +108,16 @@ CLASS zcl_abapgit_ajson DEFINITION
VALUE(rv_item) TYPE REF TO zif_abapgit_ajson_types=>ty_node. VALUE(rv_item) TYPE REF TO zif_abapgit_ajson_types=>ty_node.
METHODS prove_path_exists METHODS prove_path_exists
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rr_end_node) TYPE REF TO zif_abapgit_ajson_types=>ty_node VALUE(rr_end_node) TYPE REF TO zif_abapgit_ajson_types=>ty_node
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS delete_subtree METHODS delete_subtree
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_name TYPE string iv_name TYPE string
ir_parent TYPE REF TO zif_abapgit_ajson_types=>ty_node OPTIONAL ir_parent TYPE REF TO zif_abapgit_ajson_types=>ty_node OPTIONAL
RETURNING RETURNING
VALUE(rs_top_node) TYPE zif_abapgit_ajson_types=>ty_node. VALUE(rs_top_node) TYPE zif_abapgit_ajson_types=>ty_node.
METHODS read_only_watchdog METHODS read_only_watchdog

View File

@ -59,25 +59,25 @@ CLASS lcl_utils DEFINITION FINAL.
CLASS-METHODS normalize_path CLASS-METHODS normalize_path
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_path) TYPE string. VALUE(rv_path) TYPE string.
CLASS-METHODS split_path CLASS-METHODS split_path
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_path_name) TYPE zif_abapgit_ajson_types=>ty_path_name. VALUE(rv_path_name) TYPE zif_abapgit_ajson_types=>ty_path_name.
CLASS-METHODS validate_array_index CLASS-METHODS validate_array_index
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_index TYPE string iv_index TYPE string
RETURNING RETURNING
VALUE(rv_index) TYPE i VALUE(rv_index) TYPE i
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
CLASS-METHODS string_to_xstring_utf8 CLASS-METHODS string_to_xstring_utf8
IMPORTING IMPORTING
iv_str TYPE string iv_str TYPE string
RETURNING RETURNING
VALUE(rv_xstr) TYPE xstring. VALUE(rv_xstr) TYPE xstring.
@ -188,8 +188,8 @@ CLASS lcl_json_parser DEFINITION FINAL.
METHODS parse METHODS parse
IMPORTING IMPORTING
iv_json TYPE string iv_json TYPE string
iv_keep_item_order TYPE abap_bool DEFAULT abap_false iv_keep_item_order TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(rt_json_tree) TYPE zif_abapgit_ajson_types=>ty_nodes_tt VALUE(rt_json_tree) TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
@ -212,7 +212,7 @@ CLASS lcl_json_parser DEFINITION FINAL.
METHODS _parse METHODS _parse
IMPORTING IMPORTING
iv_json TYPE string iv_json TYPE string
RETURNING RETURNING
VALUE(rt_json_tree) TYPE zif_abapgit_ajson_types=>ty_nodes_tt VALUE(rt_json_tree) TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
@ -406,9 +406,9 @@ CLASS lcl_json_serializer DEFINITION FINAL CREATE PRIVATE.
CLASS-METHODS stringify CLASS-METHODS stringify
IMPORTING IMPORTING
it_json_tree TYPE zif_abapgit_ajson_types=>ty_nodes_ts it_json_tree TYPE zif_abapgit_ajson_types=>ty_nodes_ts
iv_indent TYPE i DEFAULT 0 iv_indent TYPE i DEFAULT 0
iv_keep_item_order TYPE abap_bool DEFAULT abap_false iv_keep_item_order TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(rv_json_string) TYPE string VALUE(rv_json_string) TYPE string
RAISING RAISING
@ -428,7 +428,7 @@ CLASS lcl_json_serializer DEFINITION FINAL CREATE PRIVATE.
CLASS-METHODS escape_string CLASS-METHODS escape_string
IMPORTING IMPORTING
iv_unescaped TYPE string iv_unescaped TYPE string
RETURNING RETURNING
VALUE(rv_escaped) TYPE string. VALUE(rv_escaped) TYPE string.
@ -447,7 +447,7 @@ CLASS lcl_json_serializer DEFINITION FINAL CREATE PRIVATE.
METHODS stringify_set METHODS stringify_set
IMPORTING IMPORTING
iv_parent_path TYPE string iv_parent_path TYPE string
iv_array TYPE abap_bool iv_array TYPE abap_bool
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
@ -650,7 +650,7 @@ CLASS lcl_json_to_abap DEFINITION FINAL.
METHODS to_abap METHODS to_abap
IMPORTING IMPORTING
it_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_ts it_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_ts
CHANGING CHANGING
c_container TYPE any c_container TYPE any
RAISING RAISING
@ -698,16 +698,16 @@ CLASS lcl_json_to_abap DEFINITION FINAL.
METHODS any_to_abap METHODS any_to_abap
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
is_parent_type TYPE ty_type_cache OPTIONAL is_parent_type TYPE ty_type_cache OPTIONAL
i_container_ref TYPE REF TO data i_container_ref TYPE REF TO data
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS value_to_abap METHODS value_to_abap
IMPORTING IMPORTING
is_node TYPE zif_abapgit_ajson_types=>ty_node is_node TYPE zif_abapgit_ajson_types=>ty_node
is_node_type TYPE ty_type_cache is_node_type TYPE ty_type_cache
i_container_ref TYPE REF TO data i_container_ref TYPE REF TO data
RAISING RAISING
zcx_abapgit_ajson_error zcx_abapgit_ajson_error
@ -715,9 +715,9 @@ CLASS lcl_json_to_abap DEFINITION FINAL.
METHODS get_node_type METHODS get_node_type
IMPORTING IMPORTING
is_node TYPE zif_abapgit_ajson_types=>ty_node OPTIONAL " Empty for root is_node TYPE zif_abapgit_ajson_types=>ty_node OPTIONAL " Empty for root
is_parent_type TYPE ty_type_cache OPTIONAL is_parent_type TYPE ty_type_cache OPTIONAL
i_container_ref TYPE REF TO data OPTIONAL i_container_ref TYPE REF TO data OPTIONAL
RETURNING RETURNING
VALUE(rs_node_type) TYPE ty_type_cache VALUE(rs_node_type) TYPE ty_type_cache
RAISING RAISING
@ -1141,12 +1141,12 @@ CLASS lcl_abap_to_json DEFINITION FINAL.
CLASS-METHODS convert CLASS-METHODS convert
IMPORTING IMPORTING
iv_data TYPE any iv_data TYPE any
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name OPTIONAL is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name OPTIONAL
iv_array_index TYPE i DEFAULT 0 iv_array_index TYPE i DEFAULT 0
ii_custom_mapping TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL ii_custom_mapping TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL
is_opts TYPE zif_abapgit_ajson=>ty_opts OPTIONAL is_opts TYPE zif_abapgit_ajson=>ty_opts OPTIONAL
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
RETURNING RETURNING
VALUE(rt_nodes) TYPE zif_abapgit_ajson_types=>ty_nodes_tt VALUE(rt_nodes) TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
@ -1154,13 +1154,13 @@ CLASS lcl_abap_to_json DEFINITION FINAL.
CLASS-METHODS insert_with_type CLASS-METHODS insert_with_type
IMPORTING IMPORTING
iv_data TYPE any iv_data TYPE any
iv_type TYPE zif_abapgit_ajson_types=>ty_node_type iv_type TYPE zif_abapgit_ajson_types=>ty_node_type
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name OPTIONAL is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name OPTIONAL
iv_array_index TYPE i DEFAULT 0 iv_array_index TYPE i DEFAULT 0
ii_custom_mapping TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL ii_custom_mapping TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL
is_opts TYPE zif_abapgit_ajson=>ty_opts OPTIONAL is_opts TYPE zif_abapgit_ajson=>ty_opts OPTIONAL
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
RETURNING RETURNING
VALUE(rt_nodes) TYPE zif_abapgit_ajson_types=>ty_nodes_tt VALUE(rt_nodes) TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
@ -1168,17 +1168,17 @@ CLASS lcl_abap_to_json DEFINITION FINAL.
CLASS-METHODS format_date CLASS-METHODS format_date
IMPORTING IMPORTING
iv_date TYPE d iv_date TYPE d
RETURNING RETURNING
VALUE(rv_str) TYPE string. VALUE(rv_str) TYPE string.
CLASS-METHODS format_time CLASS-METHODS format_time
IMPORTING IMPORTING
iv_time TYPE t iv_time TYPE t
RETURNING RETURNING
VALUE(rv_str) TYPE string. VALUE(rv_str) TYPE string.
CLASS-METHODS format_timestamp CLASS-METHODS format_timestamp
IMPORTING IMPORTING
iv_ts TYPE timestamp iv_ts TYPE timestamp
RETURNING RETURNING
VALUE(rv_str) TYPE string. VALUE(rv_str) TYPE string.
@ -1193,84 +1193,84 @@ CLASS lcl_abap_to_json DEFINITION FINAL.
METHODS convert_any METHODS convert_any
IMPORTING IMPORTING
iv_data TYPE any iv_data TYPE any
io_type TYPE REF TO cl_abap_typedescr io_type TYPE REF TO cl_abap_typedescr
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name
iv_index TYPE i DEFAULT 0 iv_index TYPE i DEFAULT 0
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
CHANGING CHANGING
ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS convert_ajson METHODS convert_ajson
IMPORTING IMPORTING
io_json TYPE REF TO zif_abapgit_ajson io_json TYPE REF TO zif_abapgit_ajson
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name
iv_index TYPE i DEFAULT 0 iv_index TYPE i DEFAULT 0
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
CHANGING CHANGING
ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS convert_value METHODS convert_value
IMPORTING IMPORTING
iv_data TYPE any iv_data TYPE any
io_type TYPE REF TO cl_abap_typedescr io_type TYPE REF TO cl_abap_typedescr
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name
iv_index TYPE i DEFAULT 0 iv_index TYPE i DEFAULT 0
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
CHANGING CHANGING
ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS convert_ref METHODS convert_ref
IMPORTING IMPORTING
iv_data TYPE any iv_data TYPE any
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name
iv_index TYPE i DEFAULT 0 iv_index TYPE i DEFAULT 0
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
CHANGING CHANGING
ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS convert_struc METHODS convert_struc
IMPORTING IMPORTING
iv_data TYPE any iv_data TYPE any
io_type TYPE REF TO cl_abap_typedescr io_type TYPE REF TO cl_abap_typedescr
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name
iv_index TYPE i DEFAULT 0 iv_index TYPE i DEFAULT 0
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
CHANGING CHANGING
ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS convert_table METHODS convert_table
IMPORTING IMPORTING
iv_data TYPE any iv_data TYPE any
io_type TYPE REF TO cl_abap_typedescr io_type TYPE REF TO cl_abap_typedescr
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name
iv_index TYPE i DEFAULT 0 iv_index TYPE i DEFAULT 0
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
CHANGING CHANGING
ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS insert_value_with_type METHODS insert_value_with_type
IMPORTING IMPORTING
iv_data TYPE any iv_data TYPE any
iv_type TYPE zif_abapgit_ajson_types=>ty_node_type iv_type TYPE zif_abapgit_ajson_types=>ty_node_type
io_type TYPE REF TO cl_abap_typedescr io_type TYPE REF TO cl_abap_typedescr
is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name is_prefix TYPE zif_abapgit_ajson_types=>ty_path_name
iv_index TYPE i DEFAULT 0 iv_index TYPE i DEFAULT 0
iv_item_order TYPE i DEFAULT 0 iv_item_order TYPE i DEFAULT 0
CHANGING CHANGING
ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt ct_nodes TYPE zif_abapgit_ajson_types=>ty_nodes_tt
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
@ -1751,7 +1751,7 @@ INTERFACE lif_mutator_runner.
IMPORTING IMPORTING
it_source_tree TYPE zif_abapgit_ajson_types=>ty_nodes_ts it_source_tree TYPE zif_abapgit_ajson_types=>ty_nodes_ts
EXPORTING EXPORTING
et_dest_tree TYPE zif_abapgit_ajson_types=>ty_nodes_ts et_dest_tree TYPE zif_abapgit_ajson_types=>ty_nodes_ts
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
ENDINTERFACE. ENDINTERFACE.
@ -1765,7 +1765,7 @@ CLASS lcl_filter_runner DEFINITION FINAL.
INTERFACES lif_mutator_runner. INTERFACES lif_mutator_runner.
CLASS-METHODS new CLASS-METHODS new
IMPORTING IMPORTING
ii_filter TYPE REF TO zif_abapgit_ajson_filter ii_filter TYPE REF TO zif_abapgit_ajson_filter
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO lcl_filter_runner. VALUE(ro_instance) TYPE REF TO lcl_filter_runner.
METHODS constructor METHODS constructor
@ -1779,7 +1779,7 @@ CLASS lcl_filter_runner DEFINITION FINAL.
METHODS walk METHODS walk
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
CHANGING CHANGING
cs_parent TYPE zif_abapgit_ajson_types=>ty_node OPTIONAL cs_parent TYPE zif_abapgit_ajson_types=>ty_node OPTIONAL
RAISING RAISING
@ -1877,7 +1877,7 @@ CLASS lcl_mapper_runner DEFINITION FINAL.
INTERFACES lif_mutator_runner. INTERFACES lif_mutator_runner.
CLASS-METHODS new CLASS-METHODS new
IMPORTING IMPORTING
ii_mapper TYPE REF TO zif_abapgit_ajson_mapping ii_mapper TYPE REF TO zif_abapgit_ajson_mapping
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO lcl_mapper_runner. VALUE(ro_instance) TYPE REF TO lcl_mapper_runner.
METHODS constructor METHODS constructor
@ -1991,7 +1991,7 @@ CLASS lcl_mutator_queue DEFINITION FINAL.
VALUE(ro_instance) TYPE REF TO lcl_mutator_queue. VALUE(ro_instance) TYPE REF TO lcl_mutator_queue.
METHODS add METHODS add
IMPORTING IMPORTING
ii_mutator TYPE REF TO lif_mutator_runner ii_mutator TYPE REF TO lif_mutator_runner
RETURNING RETURNING
VALUE(ro_self) TYPE REF TO lcl_mutator_queue. VALUE(ro_self) TYPE REF TO lcl_mutator_queue.

View File

@ -65,7 +65,7 @@ CLASS ltcl_parser_test DEFINITION FINAL
CLASS-METHODS sample_json CLASS-METHODS sample_json
IMPORTING IMPORTING
iv_separator TYPE string OPTIONAL iv_separator TYPE string OPTIONAL
RETURNING RETURNING
VALUE(rv_json) TYPE string. VALUE(rv_json) TYPE string.
@ -1395,17 +1395,17 @@ CLASS ltcl_json_to_abap DEFINITION
tty_struc_sorted TYPE SORTED TABLE OF ty_struc WITH UNIQUE KEY a, tty_struc_sorted TYPE SORTED TABLE OF ty_struc WITH UNIQUE KEY a,
tty_struc_hashed TYPE HASHED TABLE OF ty_struc WITH UNIQUE KEY a, tty_struc_hashed TYPE HASHED TABLE OF ty_struc WITH UNIQUE KEY a,
BEGIN OF ty_complex, BEGIN OF ty_complex,
str TYPE string, str TYPE string,
int TYPE i, int TYPE i,
float TYPE f, float TYPE f,
bool TYPE abap_bool, bool TYPE abap_bool,
obj TYPE ty_struc, obj TYPE ty_struc,
tab TYPE tty_struc, tab TYPE tty_struc,
tab_plain TYPE string_table, tab_plain TYPE string_table,
tab_hashed TYPE tty_struc_hashed, tab_hashed TYPE tty_struc_hashed,
oref TYPE REF TO object, oref TYPE REF TO object,
date1 TYPE d, date1 TYPE d,
date2 TYPE d, date2 TYPE d,
timestamp1 TYPE timestamp, timestamp1 TYPE timestamp,
timestamp2 TYPE timestamp, timestamp2 TYPE timestamp,
timestamp3 TYPE timestamp, timestamp3 TYPE timestamp,
@ -2416,9 +2416,9 @@ CLASS ltcl_writer_test DEFINITION FINAL
METHODS set_with_type_slice METHODS set_with_type_slice
IMPORTING IMPORTING
io_json_in TYPE REF TO zcl_abapgit_ajson io_json_in TYPE REF TO zcl_abapgit_ajson
io_json_out TYPE REF TO zif_abapgit_ajson io_json_out TYPE REF TO zif_abapgit_ajson
iv_path TYPE string iv_path TYPE string
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
@ -3724,22 +3724,22 @@ CLASS ltcl_integrated DEFINITION
col TYPE i, col TYPE i,
END OF ty_loc, END OF ty_loc,
BEGIN OF ty_issue, BEGIN OF ty_issue,
message TYPE string, message TYPE string,
key TYPE string, key TYPE string,
filename TYPE string, filename TYPE string,
start TYPE ty_loc, start TYPE ty_loc,
end TYPE ty_loc, end TYPE ty_loc,
END OF ty_issue, END OF ty_issue,
tt_issues TYPE STANDARD TABLE OF ty_issue WITH KEY message key, tt_issues TYPE STANDARD TABLE OF ty_issue WITH KEY message key,
BEGIN OF ty_target, BEGIN OF ty_target,
string TYPE string, string TYPE string,
number TYPE i, number TYPE i,
float TYPE f, float TYPE f,
boolean TYPE abap_bool, boolean TYPE abap_bool,
false TYPE abap_bool, false TYPE abap_bool,
null TYPE string, null TYPE string,
date TYPE string, " ??? TODO date TYPE string, " ??? TODO
issues TYPE tt_issues, issues TYPE tt_issues,
END OF ty_target. END OF ty_target.
METHODS reader FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS reader FOR TESTING RAISING zcx_abapgit_ajson_error.

View File

@ -12,16 +12,16 @@ CLASS zcl_abapgit_ajson_filter_lib DEFINITION
zcx_abapgit_ajson_error . zcx_abapgit_ajson_error .
CLASS-METHODS create_path_filter CLASS-METHODS create_path_filter
IMPORTING IMPORTING
!it_skip_paths TYPE string_table OPTIONAL !it_skip_paths TYPE string_table OPTIONAL
!iv_skip_paths TYPE string OPTIONAL !iv_skip_paths TYPE string OPTIONAL
!iv_pattern_search TYPE abap_bool DEFAULT abap_false !iv_pattern_search TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(ri_filter) TYPE REF TO zif_abapgit_ajson_filter VALUE(ri_filter) TYPE REF TO zif_abapgit_ajson_filter
RAISING RAISING
zcx_abapgit_ajson_error . zcx_abapgit_ajson_error .
CLASS-METHODS create_and_filter CLASS-METHODS create_and_filter
IMPORTING IMPORTING
!it_filters TYPE zif_abapgit_ajson_filter=>ty_filter_tab !it_filters TYPE zif_abapgit_ajson_filter=>ty_filter_tab
RETURNING RETURNING
VALUE(ri_filter) TYPE REF TO zif_abapgit_ajson_filter VALUE(ri_filter) TYPE REF TO zif_abapgit_ajson_filter
RAISING RAISING

View File

@ -27,8 +27,8 @@ CLASS lcl_paths_filter DEFINITION FINAL.
INTERFACES zif_abapgit_ajson_filter. INTERFACES zif_abapgit_ajson_filter.
METHODS constructor METHODS constructor
IMPORTING IMPORTING
it_skip_paths TYPE string_table OPTIONAL it_skip_paths TYPE string_table OPTIONAL
iv_skip_paths TYPE string OPTIONAL iv_skip_paths TYPE string OPTIONAL
iv_pattern_search TYPE abap_bool iv_pattern_search TYPE abap_bool
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.

View File

@ -40,17 +40,17 @@ CLASS zcl_abapgit_ajson_mapping DEFINITION
CLASS-METHODS create_rename CLASS-METHODS create_rename
IMPORTING IMPORTING
it_rename_map TYPE zif_abapgit_ajson_mapping=>tty_rename_map it_rename_map TYPE zif_abapgit_ajson_mapping=>tty_rename_map
iv_rename_by TYPE i DEFAULT rename_by-attr_name iv_rename_by TYPE i DEFAULT rename_by-attr_name
RETURNING RETURNING
VALUE(ri_mapping) TYPE REF TO zif_abapgit_ajson_mapping. VALUE(ri_mapping) TYPE REF TO zif_abapgit_ajson_mapping.
CLASS-METHODS create_compound_mapper CLASS-METHODS create_compound_mapper
IMPORTING IMPORTING
ii_mapper1 TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL ii_mapper1 TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL
ii_mapper2 TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL ii_mapper2 TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL
ii_mapper3 TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL ii_mapper3 TYPE REF TO zif_abapgit_ajson_mapping OPTIONAL
it_more TYPE zif_abapgit_ajson_mapping=>ty_table_of OPTIONAL it_more TYPE zif_abapgit_ajson_mapping=>ty_table_of OPTIONAL
RETURNING RETURNING
VALUE(ri_mapping) TYPE REF TO zif_abapgit_ajson_mapping. VALUE(ri_mapping) TYPE REF TO zif_abapgit_ajson_mapping.
@ -62,7 +62,7 @@ CLASS zcl_abapgit_ajson_mapping DEFINITION
IMPORTING IMPORTING
iv_first_json_upper TYPE abap_bool DEFAULT abap_false iv_first_json_upper TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(ri_mapping) TYPE REF TO zif_abapgit_ajson_mapping. VALUE(ri_mapping) TYPE REF TO zif_abapgit_ajson_mapping.
PROTECTED SECTION. PROTECTED SECTION.

View File

@ -22,7 +22,7 @@ CLASS lcl_rename DEFINITION.
METHODS constructor METHODS constructor
IMPORTING IMPORTING
it_rename_map TYPE zif_abapgit_ajson_mapping~tty_rename_map it_rename_map TYPE zif_abapgit_ajson_mapping~tty_rename_map
iv_rename_by TYPE i. iv_rename_by TYPE i.
PROTECTED SECTION. PROTECTED SECTION.

View File

@ -41,10 +41,10 @@ CLASS zcl_abapgit_ajson_utilities DEFINITION
zcx_abapgit_ajson_error . zcx_abapgit_ajson_error .
METHODS is_equal METHODS is_equal
IMPORTING IMPORTING
!iv_json_a TYPE string OPTIONAL !iv_json_a TYPE string OPTIONAL
!iv_json_b TYPE string OPTIONAL !iv_json_b TYPE string OPTIONAL
!ii_json_a TYPE REF TO zif_abapgit_ajson OPTIONAL !ii_json_a TYPE REF TO zif_abapgit_ajson OPTIONAL
!ii_json_b TYPE REF TO zif_abapgit_ajson OPTIONAL !ii_json_b TYPE REF TO zif_abapgit_ajson OPTIONAL
RETURNING RETURNING
VALUE(rv_yes) TYPE abap_bool VALUE(rv_yes) TYPE abap_bool
RAISING RAISING

View File

@ -7,9 +7,9 @@ INTERFACE zif_abapgit_ajson
TYPES: TYPES:
BEGIN OF ty_opts, BEGIN OF ty_opts,
read_only TYPE abap_bool, read_only TYPE abap_bool,
keep_item_order TYPE abap_bool, keep_item_order TYPE abap_bool,
format_datetime TYPE abap_bool, format_datetime TYPE abap_bool,
to_abap_corresponding_only TYPE abap_bool, to_abap_corresponding_only TYPE abap_bool,
END OF ty_opts. END OF ty_opts.
@ -26,14 +26,14 @@ INTERFACE zif_abapgit_ajson
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS filter METHODS filter
IMPORTING IMPORTING
ii_filter TYPE REF TO zif_abapgit_ajson_filter ii_filter TYPE REF TO zif_abapgit_ajson_filter
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS map METHODS map
IMPORTING IMPORTING
ii_mapper TYPE REF TO zif_abapgit_ajson_mapping ii_mapper TYPE REF TO zif_abapgit_ajson_mapping
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -47,12 +47,12 @@ INTERFACE zif_abapgit_ajson
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson. VALUE(ri_json) TYPE REF TO zif_abapgit_ajson.
METHODS format_datetime METHODS format_datetime
IMPORTING IMPORTING
iv_use_iso TYPE abap_bool DEFAULT abap_true iv_use_iso TYPE abap_bool DEFAULT abap_true
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson. VALUE(ri_json) TYPE REF TO zif_abapgit_ajson.
METHODS to_abap_corresponding_only METHODS to_abap_corresponding_only
IMPORTING IMPORTING
iv_enable TYPE abap_bool DEFAULT abap_true iv_enable TYPE abap_bool DEFAULT abap_true
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson. VALUE(ri_json) TYPE REF TO zif_abapgit_ajson.
METHODS opts METHODS opts
@ -67,67 +67,67 @@ INTERFACE zif_abapgit_ajson
METHODS exists METHODS exists
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_exists) TYPE abap_bool. VALUE(rv_exists) TYPE abap_bool.
METHODS members METHODS members
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rt_members) TYPE string_table. VALUE(rt_members) TYPE string_table.
METHODS get METHODS get
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_value) TYPE string. VALUE(rv_value) TYPE string.
METHODS get_node_type METHODS get_node_type
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_node_type) TYPE zif_abapgit_ajson_types=>ty_node_type. VALUE(rv_node_type) TYPE zif_abapgit_ajson_types=>ty_node_type.
METHODS get_boolean METHODS get_boolean
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_value) TYPE abap_bool. VALUE(rv_value) TYPE abap_bool.
METHODS get_integer METHODS get_integer
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_value) TYPE i. VALUE(rv_value) TYPE i.
METHODS get_number METHODS get_number
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_value) TYPE f. VALUE(rv_value) TYPE f.
METHODS get_date METHODS get_date
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_value) TYPE d. VALUE(rv_value) TYPE d.
METHODS get_timestamp METHODS get_timestamp
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_value) TYPE timestamp. VALUE(rv_value) TYPE timestamp.
METHODS get_string METHODS get_string
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rv_value) TYPE string. VALUE(rv_value) TYPE string.
METHODS slice METHODS slice
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson. VALUE(ri_json) TYPE REF TO zif_abapgit_ajson.
@ -135,13 +135,13 @@ INTERFACE zif_abapgit_ajson
IMPORTING IMPORTING
iv_corresponding TYPE abap_bool DEFAULT abap_false iv_corresponding TYPE abap_bool DEFAULT abap_false
EXPORTING EXPORTING
ev_container TYPE any ev_container TYPE any
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS array_to_string_table METHODS array_to_string_table
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(rt_string_table) TYPE string_table VALUE(rt_string_table) TYPE string_table
RAISING RAISING
@ -155,18 +155,18 @@ INTERFACE zif_abapgit_ajson
METHODS set METHODS set
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_val TYPE any iv_val TYPE any
iv_ignore_empty TYPE abap_bool DEFAULT abap_true iv_ignore_empty TYPE abap_bool DEFAULT abap_true
iv_node_type TYPE zif_abapgit_ajson_types=>ty_node_type OPTIONAL iv_node_type TYPE zif_abapgit_ajson_types=>ty_node_type OPTIONAL
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
zcx_abapgit_ajson_error. zcx_abapgit_ajson_error.
METHODS setx METHODS setx
IMPORTING IMPORTING
iv_param TYPE string iv_param TYPE string
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -174,8 +174,8 @@ INTERFACE zif_abapgit_ajson
METHODS set_boolean METHODS set_boolean
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_val TYPE any iv_val TYPE any
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -183,8 +183,8 @@ INTERFACE zif_abapgit_ajson
METHODS set_string METHODS set_string
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_val TYPE clike iv_val TYPE clike
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -192,8 +192,8 @@ INTERFACE zif_abapgit_ajson
METHODS set_integer METHODS set_integer
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_val TYPE i iv_val TYPE i
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -201,8 +201,8 @@ INTERFACE zif_abapgit_ajson
METHODS set_date METHODS set_date
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_val TYPE d iv_val TYPE d
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -210,8 +210,8 @@ INTERFACE zif_abapgit_ajson
METHODS set_timestamp METHODS set_timestamp
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_val TYPE timestamp iv_val TYPE timestamp
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -219,7 +219,7 @@ INTERFACE zif_abapgit_ajson
METHODS set_null METHODS set_null
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -227,7 +227,7 @@ INTERFACE zif_abapgit_ajson
METHODS delete METHODS delete
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -235,8 +235,8 @@ INTERFACE zif_abapgit_ajson
METHODS touch_array METHODS touch_array
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_clear TYPE abap_bool DEFAULT abap_false iv_clear TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -244,8 +244,8 @@ INTERFACE zif_abapgit_ajson
METHODS push METHODS push
IMPORTING IMPORTING
iv_path TYPE string iv_path TYPE string
iv_val TYPE any iv_val TYPE any
RETURNING RETURNING
VALUE(ri_json) TYPE REF TO zif_abapgit_ajson VALUE(ri_json) TYPE REF TO zif_abapgit_ajson
RAISING RAISING
@ -253,7 +253,7 @@ INTERFACE zif_abapgit_ajson
METHODS stringify METHODS stringify
IMPORTING IMPORTING
iv_indent TYPE i DEFAULT 0 iv_indent TYPE i DEFAULT 0
RETURNING RETURNING
VALUE(rv_json) TYPE string VALUE(rv_json) TYPE string
RAISING RAISING

View File

@ -13,8 +13,8 @@ INTERFACE zif_abapgit_ajson_filter
METHODS keep_node METHODS keep_node
IMPORTING IMPORTING
is_node TYPE zif_abapgit_ajson_types=>ty_node is_node TYPE zif_abapgit_ajson_types=>ty_node
iv_visit TYPE ty_visit_type DEFAULT visit_type-value iv_visit TYPE ty_visit_type DEFAULT visit_type-value
RETURNING RETURNING
VALUE(rv_keep) TYPE abap_bool VALUE(rv_keep) TYPE abap_bool
RAISING RAISING

View File

@ -13,7 +13,7 @@ INTERFACE zif_abapgit_ajson_mapping
TYPES: TYPES:
BEGIN OF ty_rename, BEGIN OF ty_rename,
from TYPE string, from TYPE string,
to TYPE string, to TYPE string,
END OF ty_rename, END OF ty_rename,
tty_rename_map TYPE STANDARD TABLE OF ty_rename tty_rename_map TYPE STANDARD TABLE OF ty_rename
WITH UNIQUE SORTED KEY by_name COMPONENTS from. WITH UNIQUE SORTED KEY by_name COMPONENTS from.

View File

@ -16,12 +16,12 @@ INTERFACE zif_abapgit_ajson_types
TYPES: TYPES:
BEGIN OF ty_node, BEGIN OF ty_node,
path TYPE string, path TYPE string,
name TYPE string, name TYPE string,
type TYPE ty_node_type, type TYPE ty_node_type,
value TYPE string, value TYPE string,
index TYPE i, index TYPE i,
order TYPE i, order TYPE i,
children TYPE i, children TYPE i,
END OF ty_node. END OF ty_node.
TYPES: TYPES:

View File

@ -8,8 +8,8 @@ CLASS zcl_abapgit_object_cdbo DEFINITION
METHODS constructor METHODS constructor
IMPORTING IMPORTING
!is_item TYPE zif_abapgit_definitions=>ty_item !is_item TYPE zif_abapgit_definitions=>ty_item
!iv_language TYPE spras !iv_language TYPE spras
!io_files TYPE REF TO zcl_abapgit_objects_files OPTIONAL !io_files TYPE REF TO zcl_abapgit_objects_files OPTIONAL
!io_i18n_params TYPE REF TO zcl_abapgit_i18n_params OPTIONAL !io_i18n_params TYPE REF TO zcl_abapgit_i18n_params OPTIONAL
RAISING RAISING

View File

@ -7,9 +7,9 @@ INTERFACE zif_abapgit_aff_type_mapping
"! @parameter iv_object_name | Name of object "! @parameter iv_object_name | Name of object
"! @parameter es_data | ABAP data as abapGit type "! @parameter es_data | ABAP data as abapGit type
to_abapgit to_abapgit
IMPORTING iv_data TYPE data IMPORTING iv_data TYPE data
iv_object_name TYPE sobj_name iv_object_name TYPE sobj_name
EXPORTING es_data TYPE data, EXPORTING es_data TYPE data,
"! Converts to AFF specific meta data "! Converts to AFF specific meta data
"! "!

View File

@ -58,8 +58,8 @@ INTERFACE zif_abapgit_aff_types_v1 PUBLIC.
TYPES: TYPES:
BEGIN OF ty_header_60_no_abap_lv, BEGIN OF ty_header_60_no_abap_lv,
description TYPE ty_description_60, description TYPE ty_description_60,
original_language TYPE ty_original_language, original_language TYPE ty_original_language,
END OF ty_header_60_no_abap_lv. END OF ty_header_60_no_abap_lv.
TYPES: TYPES:

View File

@ -46,7 +46,7 @@ CLASS zcl_abapgit_objects_activation DEFINITION
CONSTANTS: CONSTANTS:
c_domain TYPE c LENGTH 9 VALUE 'DOMA DOMD', c_domain TYPE c LENGTH 9 VALUE 'DOMA DOMD',
c_types TYPE c LENGTH 50 VALUE 'DTEL DTED TABL TABD SQLT SQLD TTYP TTYD VIEW VIED', c_types TYPE c LENGTH 55 VALUE 'DTEL DTED TABL TABD SQLT SQLD TTYP TTYD VIEW VIED DRTY',
c_technset TYPE c LENGTH 24 VALUE 'TABT VIET SQTT INDX XINX', c_technset TYPE c LENGTH 24 VALUE 'TABT VIET SQTT INDX XINX',
c_f4_objects TYPE c LENGTH 35 VALUE 'SHLP SHLD MCOB MCOD MACO MACD MCID', c_f4_objects TYPE c LENGTH 35 VALUE 'SHLP SHLD MCOB MCOD MACO MACD MCID',
c_enqueue TYPE c LENGTH 9 VALUE 'ENQU ENQD', c_enqueue TYPE c LENGTH 9 VALUE 'ENQU ENQD',

View File

@ -16,7 +16,7 @@ CLASS zcl_abapgit_adt_link DEFINITION
CLASS-METHODS link_transport CLASS-METHODS link_transport
IMPORTING IMPORTING
iv_transport TYPE trkorr iv_transport TYPE trkorr
RETURNING RETURNING
VALUE(rv_link) TYPE string. VALUE(rv_link) TYPE string.

View File

@ -6,12 +6,12 @@ INTERFACE zif_abapgit_gui_jumper
METHODS jump METHODS jump
IMPORTING IMPORTING
!is_item TYPE zif_abapgit_definitions=>ty_item !is_item TYPE zif_abapgit_definitions=>ty_item
!is_sub_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL !is_sub_item TYPE zif_abapgit_definitions=>ty_item OPTIONAL
!iv_line_number TYPE i OPTIONAL !iv_line_number TYPE i OPTIONAL
!iv_new_window TYPE abap_bool DEFAULT abap_true !iv_new_window TYPE abap_bool DEFAULT abap_true
RETURNING RETURNING
VALUE(rv_exit) TYPE abap_bool VALUE(rv_exit) TYPE abap_bool
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.

View File

@ -9,7 +9,7 @@ CLASS lcl_tabl_xml DEFINITION FINAL.
CLASS-METHODS read CLASS-METHODS read
IMPORTING IMPORTING
io_xml TYPE REF TO zif_abapgit_xml_input io_xml TYPE REF TO zif_abapgit_xml_input
RETURNING RETURNING
VALUE(rs_internal) TYPE zif_abapgit_object_tabl=>ty_internal VALUE(rs_internal) TYPE zif_abapgit_object_tabl=>ty_internal
RAISING RAISING

View File

@ -15,7 +15,7 @@ CLASS zcl_abapgit_i18n_params DEFINITION
!iv_use_lxe TYPE abap_bool DEFAULT abap_false !iv_use_lxe TYPE abap_bool DEFAULT abap_false
!is_params TYPE zif_abapgit_definitions=>ty_i18n_params OPTIONAL !is_params TYPE zif_abapgit_definitions=>ty_i18n_params OPTIONAL
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_i18n_params . VALUE(ro_instance) TYPE REF TO zcl_abapgit_i18n_params .
METHODS constructor METHODS constructor
IMPORTING IMPORTING
!iv_main_language TYPE spras DEFAULT zif_abapgit_definitions=>c_english !iv_main_language TYPE spras DEFAULT zif_abapgit_definitions=>c_english
@ -32,7 +32,7 @@ CLASS zcl_abapgit_i18n_params DEFINITION
VALUE(rt_language_filter) TYPE zif_abapgit_environment=>ty_system_language_filter . VALUE(rt_language_filter) TYPE zif_abapgit_environment=>ty_system_language_filter .
METHODS trim_saplang_list METHODS trim_saplang_list
CHANGING CHANGING
ct_sap_langs TYPE zif_abapgit_definitions=>ty_sap_langu_tab ct_sap_langs TYPE zif_abapgit_definitions=>ty_sap_langu_tab
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.
METHODS trim_saplang_keyed_table METHODS trim_saplang_keyed_table
@ -50,7 +50,7 @@ CLASS zcl_abapgit_i18n_params DEFINITION
CLASS-METHODS iso_langs_to_lang_filter CLASS-METHODS iso_langs_to_lang_filter
IMPORTING IMPORTING
it_iso_filter TYPE zif_abapgit_definitions=>ty_languages it_iso_filter TYPE zif_abapgit_definitions=>ty_languages
RETURNING RETURNING
VALUE(rt_language_filter) TYPE zif_abapgit_environment=>ty_system_language_filter. VALUE(rt_language_filter) TYPE zif_abapgit_environment=>ty_system_language_filter.

View File

@ -47,7 +47,7 @@ CLASS zcl_abapgit_lxe_texts DEFINITION
IMPORTING IMPORTING
iv_object_type TYPE tadir-object iv_object_type TYPE tadir-object
RETURNING RETURNING
VALUE(rv_yes) TYPE abap_bool. VALUE(rv_yes) TYPE abap_bool.
PROTECTED SECTION. PROTECTED SECTION.
PRIVATE SECTION. PRIVATE SECTION.
@ -85,8 +85,8 @@ CLASS zcl_abapgit_lxe_texts DEFINITION
METHODS serialize_as_po METHODS serialize_as_po
IMPORTING IMPORTING
!iv_object_type TYPE tadir-object !iv_object_type TYPE tadir-object
!iv_object_name TYPE tadir-obj_name !iv_object_name TYPE tadir-obj_name
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
@ -101,8 +101,8 @@ CLASS zcl_abapgit_lxe_texts DEFINITION
METHODS deserialize_from_po METHODS deserialize_from_po
IMPORTING IMPORTING
!iv_object_type TYPE tadir-object !iv_object_type TYPE tadir-object
!iv_object_name TYPE tadir-obj_name !iv_object_name TYPE tadir-obj_name
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .

View File

@ -17,14 +17,14 @@ CLASS zcl_abapgit_sotr_handler DEFINITION
CLASS-METHODS read_sotr CLASS-METHODS read_sotr
IMPORTING IMPORTING
!iv_pgmid TYPE pgmid DEFAULT 'R3TR' !iv_pgmid TYPE pgmid DEFAULT 'R3TR'
!iv_object TYPE trobjtype !iv_object TYPE trobjtype
!iv_obj_name TYPE csequence !iv_obj_name TYPE csequence
!io_xml TYPE REF TO zif_abapgit_xml_output OPTIONAL !io_xml TYPE REF TO zif_abapgit_xml_output OPTIONAL
!io_i18n_params TYPE REF TO zcl_abapgit_i18n_params !io_i18n_params TYPE REF TO zcl_abapgit_i18n_params
EXPORTING EXPORTING
!et_sotr TYPE ty_sotr_tt !et_sotr TYPE ty_sotr_tt
!et_sotr_use TYPE ty_sotr_use_tt !et_sotr_use TYPE ty_sotr_use_tt
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
CLASS-METHODS create_sotr CLASS-METHODS create_sotr

View File

@ -17,14 +17,14 @@ CLASS zcl_abapgit_sots_handler DEFINITION
CLASS-METHODS read_sots CLASS-METHODS read_sots
IMPORTING IMPORTING
!iv_pgmid TYPE pgmid DEFAULT 'R3TR' !iv_pgmid TYPE pgmid DEFAULT 'R3TR'
!iv_object TYPE trobjtype !iv_object TYPE trobjtype
!iv_obj_name TYPE csequence !iv_obj_name TYPE csequence
!io_xml TYPE REF TO zif_abapgit_xml_output OPTIONAL !io_xml TYPE REF TO zif_abapgit_xml_output OPTIONAL
!io_i18n_params TYPE REF TO zcl_abapgit_i18n_params !io_i18n_params TYPE REF TO zcl_abapgit_i18n_params
EXPORTING EXPORTING
!et_sots TYPE ty_sots_tt !et_sots TYPE ty_sots_tt
!et_sots_use TYPE ty_sots_use_tt !et_sots_use TYPE ty_sots_use_tt
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.

View File

@ -15,20 +15,20 @@ INTERFACE zif_abapgit_lxe_texts
METHODS serialize METHODS serialize
IMPORTING IMPORTING
!iv_object_type TYPE tadir-object !iv_object_type TYPE tadir-object
!iv_object_name TYPE tadir-obj_name !iv_object_name TYPE tadir-obj_name
!io_i18n_params TYPE REF TO zcl_abapgit_i18n_params !io_i18n_params TYPE REF TO zcl_abapgit_i18n_params
!ii_xml TYPE REF TO zif_abapgit_xml_output !ii_xml TYPE REF TO zif_abapgit_xml_output
!io_files TYPE REF TO zcl_abapgit_objects_files !io_files TYPE REF TO zcl_abapgit_objects_files
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
METHODS deserialize METHODS deserialize
IMPORTING IMPORTING
!iv_object_type TYPE tadir-object OPTIONAL !iv_object_type TYPE tadir-object OPTIONAL
!iv_object_name TYPE tadir-obj_name OPTIONAL !iv_object_name TYPE tadir-obj_name OPTIONAL
!io_i18n_params TYPE REF TO zcl_abapgit_i18n_params !io_i18n_params TYPE REF TO zcl_abapgit_i18n_params
!ii_xml TYPE REF TO zif_abapgit_xml_input !ii_xml TYPE REF TO zif_abapgit_xml_input
!io_files TYPE REF TO zcl_abapgit_objects_files !io_files TYPE REF TO zcl_abapgit_objects_files
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .

View File

@ -1,7 +1,11 @@
CLASS zcl_abapgit_object_fugr DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_program FINAL. CLASS zcl_abapgit_object_fugr DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_program
CREATE PUBLIC .
PUBLIC SECTION. PUBLIC SECTION.
INTERFACES zif_abapgit_object.
INTERFACES zif_abapgit_object .
PROTECTED SECTION. PROTECTED SECTION.
PRIVATE SECTION. PRIVATE SECTION.
@ -945,7 +949,6 @@ CLASS zcl_abapgit_object_fugr IMPLEMENTATION.
FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes. FIELD-SYMBOLS: <lv_include> LIKE LINE OF lt_includes.
lt_includes = includes( ). lt_includes = includes( ).
LOOP AT lt_includes ASSIGNING <lv_include>. LOOP AT lt_includes ASSIGNING <lv_include>.

View File

@ -0,0 +1,17 @@
CLASS zcl_abapgit_object_fugs DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_object_fugr
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_abapgit_object_fugs IMPLEMENTATION.
ENDCLASS.

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_CLAS" serializer_version="v1.0.0">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<VSEOCLASS>
<CLSNAME>ZCL_ABAPGIT_OBJECT_FUGS</CLSNAME>
<LANGU>E</LANGU>
<DESCRIPT>abapGit - FUGS</DESCRIPT>
<STATE>1</STATE>
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>
<UNICODE>X</UNICODE>
</VSEOCLASS>
</asx:values>
</asx:abap>
</abapGit>

View File

@ -27,9 +27,9 @@ CLASS zcl_abapgit_object_udmo DEFINITION
" You are reminded that the text serialisation / de-serialisation methods depend upon a common type. " You are reminded that the text serialisation / de-serialisation methods depend upon a common type.
" To make the dependency explicit, there is one common definition. " To make the dependency explicit, there is one common definition.
BEGIN OF ty_udmo_text_type. BEGIN OF ty_udmo_text_type.
TYPES sprache TYPE dm40t-sprache. TYPES sprache TYPE dm40t-sprache.
TYPES dmoid TYPE dm40t-dmoid. TYPES dmoid TYPE dm40t-dmoid.
TYPES langbez TYPE dm40t-langbez. TYPES langbez TYPE dm40t-langbez.
TYPES as4local TYPE dm40t-as4local. TYPES as4local TYPE dm40t-as4local.
TYPES END OF ty_udmo_text_type . TYPES END OF ty_udmo_text_type .

View File

@ -26,8 +26,8 @@ CLASS zcl_abapgit_object_ueno DEFINITION
TYPES BEGIN OF ty_docu. TYPES BEGIN OF ty_docu.
TYPES language TYPE dm40t-sprache. TYPES language TYPE dm40t-sprache.
TYPES header TYPE thead. TYPES header TYPE thead.
TYPES content TYPE xstring. TYPES content TYPE xstring.
TYPES itf TYPE tsftext. TYPES itf TYPE tsftext.
TYPES END OF ty_docu. TYPES END OF ty_docu.
TYPES ty_docu_lines TYPE STANDARD TABLE OF ty_docu WITH DEFAULT KEY. TYPES ty_docu_lines TYPE STANDARD TABLE OF ty_docu WITH DEFAULT KEY.
@ -124,8 +124,8 @@ CLASS zcl_abapgit_object_ueno IMPLEMENTATION.
METHOD build_text_name. METHOD build_text_name.
TYPES BEGIN OF ty_text_name. TYPES BEGIN OF ty_text_name.
TYPES id TYPE c LENGTH 4. TYPES id TYPE c LENGTH 4.
TYPES entity TYPE c LENGTH 26. TYPES entity TYPE c LENGTH 26.
TYPES modifier TYPE c LENGTH 2. TYPES modifier TYPE c LENGTH 2.
TYPES END OF ty_text_name. TYPES END OF ty_text_name.

View File

@ -154,6 +154,7 @@ CLASS zcl_abapgit_objects_program DEFINITION
!it_source TYPE abaptxt255_tab !it_source TYPE abaptxt255_tab
!iv_title TYPE repti !iv_title TYPE repti
!iv_package TYPE devclass !iv_package TYPE devclass
!iv_state TYPE progdir-state DEFAULT c_state-inactive
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
METHODS update_program METHODS update_program
@ -161,8 +162,22 @@ CLASS zcl_abapgit_objects_program DEFINITION
!is_progdir TYPE zif_abapgit_sap_report=>ty_progdir !is_progdir TYPE zif_abapgit_sap_report=>ty_progdir
!it_source TYPE abaptxt255_tab !it_source TYPE abaptxt255_tab
!iv_title TYPE repti !iv_title TYPE repti
!iv_state TYPE progdir-state DEFAULT c_state-inactive
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
METHODS is_exit_include
IMPORTING
!iv_program TYPE syrepid
RETURNING
VALUE(rv_is_exit_include) TYPE abap_bool.
METHODS deserialize_exit_include
IMPORTING
!is_progdir TYPE zif_abapgit_sap_report=>ty_progdir
!it_source TYPE abaptxt255_tab
!it_tpool TYPE textpool_table
!iv_package TYPE devclass
RAISING
zcx_abapgit_exception.
ENDCLASS. ENDCLASS.
@ -456,12 +471,53 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
ENDMETHOD. ENDMETHOD.
METHOD deserialize_exit_include.
DATA:
lv_progname TYPE reposrc-progname,
lv_title TYPE rglif-title.
" Includes in SAP exit function groups must be processed in active state only
" (check in RS_INSERT_INTO_WORKING_AREA)
lv_title = get_program_title( it_tpool ).
SELECT SINGLE progname FROM reposrc INTO lv_progname
WHERE progname = is_progdir-name
AND r3state = c_state-active.
IF sy-subrc = 0.
update_program(
is_progdir = is_progdir
it_source = it_source
iv_title = lv_title
iv_state = '' ).
ELSE.
insert_program(
is_progdir = is_progdir
it_source = it_source
iv_title = lv_title
iv_package = iv_package
iv_state = '' ).
ENDIF.
ENDMETHOD.
METHOD deserialize_program. METHOD deserialize_program.
DATA: DATA:
lv_progname TYPE reposrc-progname, lv_progname TYPE reposrc-progname,
lv_title TYPE rglif-title. lv_title TYPE rglif-title.
IF is_exit_include( is_progdir-name ) = abap_true.
deserialize_exit_include(
is_progdir = is_progdir
it_source = it_source
it_tpool = it_tpool
iv_package = iv_package ).
RETURN.
ENDIF.
zcl_abapgit_factory=>get_cts_api( )->insert_transport_object( zcl_abapgit_factory=>get_cts_api( )->insert_transport_object(
iv_object = 'ABAP' iv_object = 'ABAP'
iv_obj_name = is_progdir-name iv_obj_name = is_progdir-name
@ -579,7 +635,7 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
program_name = is_progdir-name program_name = is_progdir-name
program_type = is_progdir-subc program_type = is_progdir-subc
title_string = iv_title title_string = iv_title
save_inactive = c_state-inactive save_inactive = iv_state
suppress_dialog = abap_true suppress_dialog = abap_true
uccheck = is_progdir-uccheck " does not exist on lower releases uccheck = is_progdir-uccheck " does not exist on lower releases
TABLES TABLES
@ -597,7 +653,7 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
program_name = is_progdir-name program_name = is_progdir-name
program_type = is_progdir-subc program_type = is_progdir-subc
title_string = iv_title title_string = iv_title
save_inactive = c_state-inactive save_inactive = iv_state
suppress_dialog = abap_true suppress_dialog = abap_true
TABLES TABLES
source_extended = it_source source_extended = it_source
@ -674,6 +730,13 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
ENDMETHOD. ENDMETHOD.
METHOD is_exit_include.
rv_is_exit_include = boolc(
iv_program CP 'LX*' OR iv_program CP 'SAPLX*' OR
iv_program+1 CP '/LX*' OR iv_program+1 CP '/SAPLX*' ).
ENDMETHOD.
METHOD is_text_locked. METHOD is_text_locked.
DATA: lv_object TYPE eqegraarg. DATA: lv_object TYPE eqegraarg.
@ -1062,7 +1125,7 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
EXPORTING EXPORTING
program_name = is_progdir-name program_name = is_progdir-name
title_string = iv_title title_string = iv_title
save_inactive = c_state-inactive save_inactive = iv_state
TABLES TABLES
source_extended = it_source source_extended = it_source
EXCEPTIONS EXCEPTIONS
@ -1080,7 +1143,9 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
" for generated table maintenance function groups, the author is set to SAP* instead of the user which " for generated table maintenance function groups, the author is set to SAP* instead of the user which
" generates the function group. This hits some standard checks, pulling new code again sets the author " generates the function group. This hits some standard checks, pulling new code again sets the author
" to the current user which avoids the check " to the current user which avoids the check
zcx_abapgit_exception=>raise( |Delete function group and pull again, { is_progdir-name } (EU522)| ). IF is_exit_include( is_progdir-name ) = abap_false.
zcx_abapgit_exception=>raise( |Delete function group and pull again, { is_progdir-name } (EU522)| ).
ENDIF.
ELSE. ELSE.
zcx_abapgit_exception=>raise_t100( ). zcx_abapgit_exception=>raise_t100( ).
ENDIF. ENDIF.

View File

@ -73,7 +73,7 @@ CLASS zcl_abapgit_persistence_db DEFINITION
zcx_abapgit_exception . zcx_abapgit_exception .
CLASS-METHODS validate_entry_type CLASS-METHODS validate_entry_type
IMPORTING IMPORTING
!iv_type TYPE zif_abapgit_persistence=>ty_type !iv_type TYPE zif_abapgit_persistence=>ty_type
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .

View File

@ -3,7 +3,7 @@ INTERFACE zif_abapgit_persist_repo_cs
METHODS update METHODS update
IMPORTING IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_key TYPE zif_abapgit_persistence=>ty_repo-key
!iv_cs_blob TYPE zif_abapgit_persistence=>ty_content-data_str !iv_cs_blob TYPE zif_abapgit_persistence=>ty_content-data_str
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
@ -14,7 +14,7 @@ INTERFACE zif_abapgit_persist_repo_cs
zcx_abapgit_exception . zcx_abapgit_exception .
METHODS read METHODS read
IMPORTING IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RETURNING RETURNING
VALUE(rv_cs_blob) TYPE zif_abapgit_persistence=>ty_content-data_str VALUE(rv_cs_blob) TYPE zif_abapgit_persistence=>ty_content-data_str
RAISING RAISING

View File

@ -34,7 +34,7 @@ CLASS zcl_abapgit_repo_checksums DEFINITION
METHODS build_checksums_from_files METHODS build_checksums_from_files
IMPORTING IMPORTING
it_local TYPE ty_local_files_by_item_tt it_local TYPE ty_local_files_by_item_tt
RETURNING RETURNING
VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt. VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt.

View File

@ -129,11 +129,11 @@ CLASS lcl_update_calculator DEFINITION
CLASS-METHODS calculate_updated CLASS-METHODS calculate_updated
IMPORTING IMPORTING
it_updated_files TYPE zif_abapgit_git_definitions=>ty_file_signatures_tt it_updated_files TYPE zif_abapgit_git_definitions=>ty_file_signatures_tt
it_current_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt it_current_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt
it_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt it_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt
RETURNING RETURNING
VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt. VALUE(rt_checksums) TYPE zif_abapgit_persistence=>ty_local_checksum_tt.
PRIVATE SECTION. PRIVATE SECTION.

View File

@ -18,7 +18,7 @@ CLASS ltcl_test_checksum_serializer DEFINITION FINAL
ev_str TYPE string. ev_str TYPE string.
CLASS-METHODS space_to_separator CLASS-METHODS space_to_separator
IMPORTING IMPORTING
iv_str TYPE string iv_str TYPE string
RETURNING RETURNING
VALUE(rv_str) TYPE string. VALUE(rv_str) TYPE string.
ENDCLASS. ENDCLASS.

View File

@ -3,8 +3,8 @@ INTERFACE zif_abapgit_repo_listener
METHODS on_meta_change METHODS on_meta_change
IMPORTING IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key !iv_key TYPE zif_abapgit_persistence=>ty_repo-key
!is_meta TYPE zif_abapgit_persistence=>ty_repo_xml !is_meta TYPE zif_abapgit_persistence=>ty_repo_xml
!is_change_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask !is_change_mask TYPE zif_abapgit_persistence=>ty_repo_meta_mask
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .

View File

@ -27,16 +27,16 @@ CLASS zcl_abapgit_gui_html_processor DEFINITION
METHODS patch_html METHODS patch_html
IMPORTING IMPORTING
iv_html TYPE string iv_html TYPE string
EXPORTING EXPORTING
ev_html TYPE string ev_html TYPE string
et_css_urls TYPE string_table et_css_urls TYPE string_table
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.
METHODS is_preserved METHODS is_preserved
IMPORTING IMPORTING
!iv_css_url TYPE string !iv_css_url TYPE string
RETURNING RETURNING
VALUE(rv_yes) TYPE abap_bool. VALUE(rv_yes) TYPE abap_bool.

View File

@ -7,12 +7,12 @@ CLASS zcl_abapgit_gui_utils DEFINITION
CLASS-METHODS is_renderable CLASS-METHODS is_renderable
IMPORTING IMPORTING
!io_obj TYPE REF TO object !io_obj TYPE REF TO object
RETURNING RETURNING
VALUE(rv_yes) TYPE abap_bool . VALUE(rv_yes) TYPE abap_bool .
CLASS-METHODS is_event_handler CLASS-METHODS is_event_handler
IMPORTING IMPORTING
!io_obj TYPE REF TO object !io_obj TYPE REF TO object
RETURNING RETURNING
VALUE(rv_yes) TYPE abap_bool . VALUE(rv_yes) TYPE abap_bool .

View File

@ -31,7 +31,7 @@ CLASS zcl_abapgit_html DEFINITION
VALUE(rv_html) TYPE string . VALUE(rv_html) TYPE string .
CLASS-METHODS parse_data_attr CLASS-METHODS parse_data_attr
IMPORTING IMPORTING
iv_str TYPE string OPTIONAL iv_str TYPE string OPTIONAL
RETURNING RETURNING
VALUE(rs_data_attr) TYPE zif_abapgit_html=>ty_data_attr . VALUE(rs_data_attr) TYPE zif_abapgit_html=>ty_data_attr .
CLASS-METHODS set_debug_mode CLASS-METHODS set_debug_mode

View File

@ -8,10 +8,10 @@ CLASS zcl_abapgit_html_parts DEFINITION
METHODS add_part METHODS add_part
IMPORTING IMPORTING
!iv_collection TYPE string !iv_collection TYPE string
!ii_part TYPE REF TO zif_abapgit_html . !ii_part TYPE REF TO zif_abapgit_html .
METHODS get_parts METHODS get_parts
IMPORTING IMPORTING
!iv_collection TYPE string !iv_collection TYPE string
RETURNING RETURNING
VALUE(rt_parts) TYPE zif_abapgit_html=>ty_table_of . VALUE(rt_parts) TYPE zif_abapgit_html=>ty_table_of .
METHODS get_collection_names METHODS get_collection_names
@ -37,10 +37,10 @@ CLASS zcl_abapgit_html_parts DEFINITION
METHODS get_collection METHODS get_collection
IMPORTING IMPORTING
!iv_collection TYPE string !iv_collection TYPE string
!iv_create_if_missing TYPE abap_bool DEFAULT abap_false !iv_create_if_missing TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(rr_collection) TYPE REF TO ty_named_collection . VALUE(rr_collection) TYPE REF TO ty_named_collection .
ENDCLASS. ENDCLASS.

View File

@ -9,7 +9,7 @@ INTERFACE zif_abapgit_gui_event_handler
METHODS on_event METHODS on_event
IMPORTING IMPORTING
ii_event TYPE REF TO zif_abapgit_gui_event ii_event TYPE REF TO zif_abapgit_gui_event
RETURNING RETURNING
VALUE(rs_handled) TYPE ty_handling_result VALUE(rs_handled) TYPE ty_handling_result
RAISING RAISING

View File

@ -3,10 +3,10 @@ INTERFACE zif_abapgit_gui_html_processor
METHODS process METHODS process
IMPORTING IMPORTING
!iv_html TYPE string !iv_html TYPE string
!ii_gui_services TYPE REF TO zif_abapgit_gui_services !ii_gui_services TYPE REF TO zif_abapgit_gui_services
RETURNING RETURNING
VALUE(rv_html) TYPE string VALUE(rv_html) TYPE string
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.

View File

@ -2,7 +2,7 @@ INTERFACE zif_abapgit_html PUBLIC.
TYPES: TYPES:
BEGIN OF ty_data_attr, BEGIN OF ty_data_attr,
name TYPE string, name TYPE string,
value TYPE string, value TYPE string,
END OF ty_data_attr, END OF ty_data_attr,
ty_data_attrs TYPE STANDARD TABLE OF ty_data_attr WITH KEY name. ty_data_attrs TYPE STANDARD TABLE OF ty_data_attr WITH KEY name.
@ -29,20 +29,20 @@ INTERFACE zif_abapgit_html PUBLIC.
METHODS set_title METHODS set_title
IMPORTING IMPORTING
iv_title TYPE string iv_title TYPE string
RETURNING RETURNING
VALUE(ri_self) TYPE REF TO zif_abapgit_html. VALUE(ri_self) TYPE REF TO zif_abapgit_html.
METHODS add METHODS add
IMPORTING IMPORTING
!ig_chunk TYPE any !ig_chunk TYPE any
RETURNING RETURNING
VALUE(ri_self) TYPE REF TO zif_abapgit_html. VALUE(ri_self) TYPE REF TO zif_abapgit_html.
METHODS render METHODS render
IMPORTING IMPORTING
!iv_no_indent_jscss TYPE abap_bool DEFAULT abap_false !iv_no_indent_jscss TYPE abap_bool DEFAULT abap_false
!iv_no_line_breaks TYPE abap_bool DEFAULT abap_false !iv_no_line_breaks TYPE abap_bool DEFAULT abap_false
RETURNING RETURNING
VALUE(rv_html) TYPE string . VALUE(rv_html) TYPE string .
@ -52,22 +52,22 @@ INTERFACE zif_abapgit_html PUBLIC.
METHODS add_a METHODS add_a
IMPORTING IMPORTING
!iv_txt TYPE string !iv_txt TYPE string
!iv_act TYPE string !iv_act TYPE string
!iv_query TYPE string OPTIONAL !iv_query TYPE string OPTIONAL
!iv_typ TYPE c DEFAULT c_action_type-sapevent !iv_typ TYPE c DEFAULT c_action_type-sapevent
!iv_opt TYPE clike OPTIONAL !iv_opt TYPE clike OPTIONAL
!iv_class TYPE string OPTIONAL !iv_class TYPE string OPTIONAL
!iv_id TYPE string OPTIONAL !iv_id TYPE string OPTIONAL
!iv_style TYPE string OPTIONAL !iv_style TYPE string OPTIONAL
!iv_title TYPE string OPTIONAL !iv_title TYPE string OPTIONAL
RETURNING RETURNING
VALUE(ri_self) TYPE REF TO zif_abapgit_html. VALUE(ri_self) TYPE REF TO zif_abapgit_html.
METHODS add_checkbox METHODS add_checkbox
IMPORTING IMPORTING
iv_id TYPE string iv_id TYPE string
iv_checked TYPE abap_bool OPTIONAL iv_checked TYPE abap_bool OPTIONAL
RETURNING RETURNING
VALUE(ri_self) TYPE REF TO zif_abapgit_html. VALUE(ri_self) TYPE REF TO zif_abapgit_html.
@ -96,62 +96,62 @@ INTERFACE zif_abapgit_html PUBLIC.
METHODS add_icon METHODS add_icon
IMPORTING IMPORTING
!iv_name TYPE string !iv_name TYPE string
!iv_hint TYPE string OPTIONAL !iv_hint TYPE string OPTIONAL
!iv_class TYPE string OPTIONAL !iv_class TYPE string OPTIONAL
!iv_onclick TYPE string OPTIONAL !iv_onclick TYPE string OPTIONAL
RETURNING RETURNING
VALUE(ri_self) TYPE REF TO zif_abapgit_html. VALUE(ri_self) TYPE REF TO zif_abapgit_html.
METHODS wrap METHODS wrap
IMPORTING IMPORTING
!iv_tag TYPE string !iv_tag TYPE string
!iv_content TYPE string OPTIONAL !iv_content TYPE string OPTIONAL
!ii_content TYPE REF TO zif_abapgit_html OPTIONAL !ii_content TYPE REF TO zif_abapgit_html OPTIONAL
!iv_id TYPE string OPTIONAL !iv_id TYPE string OPTIONAL
!iv_class TYPE string OPTIONAL !iv_class TYPE string OPTIONAL
!iv_hint TYPE string OPTIONAL !iv_hint TYPE string OPTIONAL
!iv_format_single_line TYPE abap_bool DEFAULT abap_false !iv_format_single_line TYPE abap_bool DEFAULT abap_false
!is_data_attr TYPE ty_data_attr OPTIONAL !is_data_attr TYPE ty_data_attr OPTIONAL
!it_data_attrs TYPE ty_data_attrs OPTIONAL !it_data_attrs TYPE ty_data_attrs OPTIONAL
RETURNING RETURNING
VALUE(ri_self) TYPE REF TO zif_abapgit_html. VALUE(ri_self) TYPE REF TO zif_abapgit_html.
METHODS td METHODS td
IMPORTING IMPORTING
!iv_content TYPE string OPTIONAL !iv_content TYPE string OPTIONAL
!ii_content TYPE REF TO zif_abapgit_html OPTIONAL !ii_content TYPE REF TO zif_abapgit_html OPTIONAL
!iv_id TYPE string OPTIONAL !iv_id TYPE string OPTIONAL
!iv_class TYPE string OPTIONAL !iv_class TYPE string OPTIONAL
!iv_hint TYPE string OPTIONAL !iv_hint TYPE string OPTIONAL
!iv_format_single_line TYPE abap_bool DEFAULT abap_true !iv_format_single_line TYPE abap_bool DEFAULT abap_true
!is_data_attr TYPE ty_data_attr OPTIONAL !is_data_attr TYPE ty_data_attr OPTIONAL
!it_data_attrs TYPE ty_data_attrs OPTIONAL !it_data_attrs TYPE ty_data_attrs OPTIONAL
PREFERRED PARAMETER iv_content PREFERRED PARAMETER iv_content
RETURNING RETURNING
VALUE(ri_self) TYPE REF TO zif_abapgit_html. VALUE(ri_self) TYPE REF TO zif_abapgit_html.
METHODS th METHODS th
IMPORTING IMPORTING
!iv_content TYPE string OPTIONAL !iv_content TYPE string OPTIONAL
!ii_content TYPE REF TO zif_abapgit_html OPTIONAL !ii_content TYPE REF TO zif_abapgit_html OPTIONAL
!iv_id TYPE string OPTIONAL !iv_id TYPE string OPTIONAL
!iv_class TYPE string OPTIONAL !iv_class TYPE string OPTIONAL
!iv_hint TYPE string OPTIONAL !iv_hint TYPE string OPTIONAL
!iv_format_single_line TYPE abap_bool DEFAULT abap_true !iv_format_single_line TYPE abap_bool DEFAULT abap_true
!is_data_attr TYPE ty_data_attr OPTIONAL !is_data_attr TYPE ty_data_attr OPTIONAL
!it_data_attrs TYPE ty_data_attrs OPTIONAL !it_data_attrs TYPE ty_data_attrs OPTIONAL
PREFERRED PARAMETER iv_content PREFERRED PARAMETER iv_content
RETURNING RETURNING
VALUE(ri_self) TYPE REF TO zif_abapgit_html. VALUE(ri_self) TYPE REF TO zif_abapgit_html.
METHODS div METHODS div
IMPORTING IMPORTING
!iv_content TYPE string OPTIONAL !iv_content TYPE string OPTIONAL
!ii_content TYPE REF TO zif_abapgit_html OPTIONAL !ii_content TYPE REF TO zif_abapgit_html OPTIONAL
!iv_id TYPE string OPTIONAL !iv_id TYPE string OPTIONAL
!iv_class TYPE string OPTIONAL !iv_class TYPE string OPTIONAL
!is_data_attr TYPE ty_data_attr OPTIONAL !is_data_attr TYPE ty_data_attr OPTIONAL
!it_data_attrs TYPE ty_data_attrs OPTIONAL !it_data_attrs TYPE ty_data_attrs OPTIONAL
PREFERRED PARAMETER iv_content PREFERRED PARAMETER iv_content
RETURNING RETURNING

View File

@ -21,9 +21,9 @@ CLASS zcl_abapgit_gui_chunk_lib DEFINITION
VALUE(ri_html) TYPE REF TO zif_abapgit_html . VALUE(ri_html) TYPE REF TO zif_abapgit_html .
CLASS-METHODS render_success CLASS-METHODS render_success
IMPORTING IMPORTING
iv_message TYPE string iv_message TYPE string
RETURNING RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html . VALUE(ri_html) TYPE REF TO zif_abapgit_html .
CLASS-METHODS render_repo_top CLASS-METHODS render_repo_top
IMPORTING IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo !io_repo TYPE REF TO zcl_abapgit_repo
@ -189,7 +189,7 @@ CLASS zcl_abapgit_gui_chunk_lib DEFINITION
CLASS-METHODS render_help_hint CLASS-METHODS render_help_hint
IMPORTING IMPORTING
iv_text_to_wrap TYPE string iv_text_to_wrap TYPE string
iv_add_class TYPE string OPTIONAL iv_add_class TYPE string OPTIONAL
RETURNING RETURNING
VALUE(rv_html) TYPE string. VALUE(rv_html) TYPE string.

View File

@ -8,11 +8,11 @@ CLASS zcl_abapgit_html_table DEFINITION
CLASS-METHODS create CLASS-METHODS create
IMPORTING IMPORTING
!ii_renderer TYPE REF TO zif_abapgit_html_table OPTIONAL " Can be passed to renderer !ii_renderer TYPE REF TO zif_abapgit_html_table OPTIONAL " Can be passed to renderer
!is_initial_sorting_state TYPE zif_abapgit_html_table=>ty_sorting_state OPTIONAL !is_initial_sorting_state TYPE zif_abapgit_html_table=>ty_sorting_state OPTIONAL
PREFERRED PARAMETER ii_renderer PREFERRED PARAMETER ii_renderer
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_html_table . VALUE(ro_instance) TYPE REF TO zcl_abapgit_html_table .
" maybe also th css_class " maybe also th css_class
METHODS define_column METHODS define_column
IMPORTING IMPORTING
@ -21,41 +21,41 @@ CLASS zcl_abapgit_html_table DEFINITION
!iv_from_field TYPE abap_compname OPTIONAL !iv_from_field TYPE abap_compname OPTIONAL
!iv_sortable TYPE abap_bool DEFAULT abap_true !iv_sortable TYPE abap_bool DEFAULT abap_true
RETURNING RETURNING
VALUE(ro_self) TYPE REF TO zcl_abapgit_html_table . VALUE(ro_self) TYPE REF TO zcl_abapgit_html_table .
METHODS define_column_group METHODS define_column_group
IMPORTING IMPORTING
!iv_group_id TYPE string OPTIONAL " not mandatory, but can be used for CSS (TODO data-gid) !iv_group_id TYPE string OPTIONAL " not mandatory, but can be used for CSS (TODO data-gid)
!iv_group_title TYPE string OPTIONAL " can be empty ! !iv_group_title TYPE string OPTIONAL " can be empty !
PREFERRED PARAMETER iv_group_title PREFERRED PARAMETER iv_group_title
RETURNING RETURNING
VALUE(ro_self) TYPE REF TO zcl_abapgit_html_table VALUE(ro_self) TYPE REF TO zcl_abapgit_html_table
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
" Maybe also data_provider " Maybe also data_provider
" TODO record Limiter " TODO record Limiter
METHODS render METHODS render
IMPORTING IMPORTING
!ii_renderer TYPE REF TO zif_abapgit_html_table OPTIONAL !ii_renderer TYPE REF TO zif_abapgit_html_table OPTIONAL
!it_data TYPE ANY TABLE !it_data TYPE ANY TABLE
!iv_id TYPE csequence OPTIONAL !iv_id TYPE csequence OPTIONAL
!iv_css_class TYPE csequence OPTIONAL !iv_css_class TYPE csequence OPTIONAL
!iv_with_cids TYPE abap_bool DEFAULT abap_false !iv_with_cids TYPE abap_bool DEFAULT abap_false
!is_sorting_state TYPE zif_abapgit_html_table=>ty_sorting_state OPTIONAL !is_sorting_state TYPE zif_abapgit_html_table=>ty_sorting_state OPTIONAL
!iv_wrap_in_div TYPE string OPTIONAL " div class name !iv_wrap_in_div TYPE string OPTIONAL " div class name
RETURNING RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
" Sorting utils " Sorting utils
CLASS-METHODS detect_sorting_request CLASS-METHODS detect_sorting_request
IMPORTING IMPORTING
iv_event TYPE string iv_event TYPE string
RETURNING RETURNING
VALUE(rs_sorting_request) TYPE zif_abapgit_html_table=>ty_sorting_state. VALUE(rs_sorting_request) TYPE zif_abapgit_html_table=>ty_sorting_state.
METHODS process_sorting_request METHODS process_sorting_request
IMPORTING IMPORTING
iv_event TYPE string iv_event TYPE string
RETURNING RETURNING
VALUE(rv_processed) TYPE abap_bool. VALUE(rv_processed) TYPE abap_bool.
@ -101,13 +101,13 @@ CLASS zcl_abapgit_html_table DEFINITION
METHODS render_row METHODS render_row
IMPORTING IMPORTING
iv_row_index TYPE i iv_row_index TYPE i
is_row TYPE any is_row TYPE any
RAISING RAISING
zcx_abapgit_exception . zcx_abapgit_exception .
METHODS render_column_title METHODS render_column_title
IMPORTING IMPORTING
is_col TYPE ty_column is_col TYPE ty_column
RETURNING RETURNING
VALUE(rv_text) TYPE string VALUE(rv_text) TYPE string
RAISING RAISING
@ -115,13 +115,13 @@ CLASS zcl_abapgit_html_table DEFINITION
CLASS-METHODS cid_attr CLASS-METHODS cid_attr
IMPORTING IMPORTING
iv_column_id TYPE string iv_column_id TYPE string
RETURNING RETURNING
VALUE(rs_data_attr) TYPE zif_abapgit_html=>ty_data_attr. VALUE(rs_data_attr) TYPE zif_abapgit_html=>ty_data_attr.
CLASS-METHODS gid_attr CLASS-METHODS gid_attr
IMPORTING IMPORTING
iv_column_id TYPE string iv_column_id TYPE string
RETURNING RETURNING
VALUE(rs_data_attr) TYPE zif_abapgit_html=>ty_data_attr. VALUE(rs_data_attr) TYPE zif_abapgit_html=>ty_data_attr.

View File

@ -6,7 +6,7 @@ CLASS zcl_abapgit_html_toolbar DEFINITION
CLASS-METHODS create CLASS-METHODS create
IMPORTING IMPORTING
!iv_id TYPE string OPTIONAL !iv_id TYPE string OPTIONAL
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_html_toolbar. VALUE(ro_instance) TYPE REF TO zcl_abapgit_html_toolbar.
METHODS constructor METHODS constructor

View File

@ -4,27 +4,27 @@ INTERFACE zif_abapgit_html_table
TYPES: TYPES:
BEGIN OF ty_row_attrs, BEGIN OF ty_row_attrs,
css_class TYPE string, css_class TYPE string,
data TYPE zif_abapgit_html=>ty_data_attr, data TYPE zif_abapgit_html=>ty_data_attr,
END OF ty_row_attrs. END OF ty_row_attrs.
TYPES: TYPES:
BEGIN OF ty_cell_render, BEGIN OF ty_cell_render,
css_class TYPE string, css_class TYPE string,
content TYPE string, content TYPE string,
html TYPE REF TO zif_abapgit_html, html TYPE REF TO zif_abapgit_html,
END OF ty_cell_render. END OF ty_cell_render.
TYPES: TYPES:
BEGIN OF ty_sorting_state, BEGIN OF ty_sorting_state,
column_id TYPE string, column_id TYPE string,
descending TYPE abap_bool, descending TYPE abap_bool,
END OF ty_sorting_state. END OF ty_sorting_state.
METHODS get_row_attrs METHODS get_row_attrs
IMPORTING IMPORTING
iv_table_id TYPE string iv_table_id TYPE string
iv_row_index TYPE i iv_row_index TYPE i
is_row TYPE any is_row TYPE any
RETURNING RETURNING
VALUE(rs_attrs) TYPE ty_row_attrs VALUE(rs_attrs) TYPE ty_row_attrs
RAISING RAISING
@ -32,11 +32,11 @@ INTERFACE zif_abapgit_html_table
METHODS render_cell METHODS render_cell
IMPORTING IMPORTING
iv_table_id TYPE string iv_table_id TYPE string
iv_row_index TYPE i iv_row_index TYPE i
is_row TYPE any is_row TYPE any
iv_column_id TYPE string iv_column_id TYPE string
iv_value TYPE any iv_value TYPE any
RETURNING RETURNING
VALUE(rs_render) TYPE ty_cell_render VALUE(rs_render) TYPE ty_cell_render
RAISING RAISING

View File

@ -37,9 +37,9 @@ CLASS zcl_abapgit_gui_page_codi_base DEFINITION
zcx_abapgit_exception. zcx_abapgit_exception.
METHODS render_head METHODS render_head
IMPORTING IMPORTING
!ii_html TYPE REF TO zif_abapgit_html !ii_html TYPE REF TO zif_abapgit_html
!iv_variant TYPE sci_chkv !iv_variant TYPE sci_chkv
!iv_summary TYPE string. !iv_summary TYPE string.
METHODS render_detail METHODS render_detail
IMPORTING IMPORTING
!ii_html TYPE REF TO zif_abapgit_html !ii_html TYPE REF TO zif_abapgit_html
@ -54,7 +54,7 @@ CLASS zcl_abapgit_gui_page_codi_base DEFINITION
zcx_abapgit_exception. zcx_abapgit_exception.
METHODS render_success METHODS render_success
IMPORTING IMPORTING
ii_html TYPE REF TO zif_abapgit_html ii_html TYPE REF TO zif_abapgit_html
iv_message TYPE string. iv_message TYPE string.
METHODS build_base_menu METHODS build_base_menu
RETURNING RETURNING
@ -80,7 +80,7 @@ CLASS zcl_abapgit_gui_page_codi_base DEFINITION
METHODS convert_result_to_view METHODS convert_result_to_view
IMPORTING IMPORTING
it_result TYPE zif_abapgit_code_inspector=>ty_results it_result TYPE zif_abapgit_code_inspector=>ty_results
RETURNING RETURNING
VALUE(rt_view) TYPE ty_view_tab. VALUE(rt_view) TYPE ty_view_tab.
METHODS explain_include METHODS explain_include
@ -116,10 +116,10 @@ CLASS zcl_abapgit_gui_page_codi_base DEFINITION
zcx_abapgit_exception. zcx_abapgit_exception.
METHODS render_stat METHODS render_stat
IMPORTING IMPORTING
!ii_html TYPE REF TO zif_abapgit_html !ii_html TYPE REF TO zif_abapgit_html
!iv_count TYPE i !iv_count TYPE i
!iv_type TYPE string !iv_type TYPE string
!iv_title TYPE string !iv_title TYPE string
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.

View File

@ -15,8 +15,8 @@ CLASS zcl_abapgit_gui_page_whereused DEFINITION
CLASS-METHODS create CLASS-METHODS create
IMPORTING IMPORTING
iv_package TYPE devclass OPTIONAL iv_package TYPE devclass OPTIONAL
ii_repo TYPE REF TO zif_abapgit_repo OPTIONAL ii_repo TYPE REF TO zif_abapgit_repo OPTIONAL
PREFERRED PARAMETER iv_package PREFERRED PARAMETER iv_package
RETURNING RETURNING
VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable

View File

@ -71,7 +71,7 @@ CLASS zcl_abapgit_gui_page_sett_glob DEFINITION
CLASS-METHODS read_proxy_bypass CLASS-METHODS read_proxy_bypass
IMPORTING IMPORTING
io_form_data TYPE REF TO zcl_abapgit_string_map io_form_data TYPE REF TO zcl_abapgit_string_map
io_settings TYPE REF TO zcl_abapgit_settings io_settings TYPE REF TO zcl_abapgit_settings
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.
METHODS save_proxy_bypass METHODS save_proxy_bypass

View File

@ -12,7 +12,7 @@ CLASS lcl_table_scheme DEFINITION FINAL.
iv_title TYPE string OPTIONAL iv_title TYPE string OPTIONAL
iv_allow_order_by TYPE any OPTIONAL iv_allow_order_by TYPE any OPTIONAL
RETURNING RETURNING
VALUE(ro_me) TYPE REF TO lcl_table_scheme. VALUE(ro_me) TYPE REF TO lcl_table_scheme.
ENDCLASS. ENDCLASS.

View File

@ -21,22 +21,22 @@ CLASS zcl_abapgit_gui_page_stage DEFINITION
CLASS-METHODS create CLASS-METHODS create
IMPORTING IMPORTING
io_repo TYPE REF TO zcl_abapgit_repo_online io_repo TYPE REF TO zcl_abapgit_repo_online
iv_seed TYPE string OPTIONAL iv_seed TYPE string OPTIONAL
iv_sci_result TYPE zif_abapgit_definitions=>ty_sci_result DEFAULT zif_abapgit_definitions=>c_sci_result-no_run iv_sci_result TYPE zif_abapgit_definitions=>ty_sci_result DEFAULT zif_abapgit_definitions=>c_sci_result-no_run
ii_obj_filter TYPE REF TO zif_abapgit_object_filter OPTIONAL ii_obj_filter TYPE REF TO zif_abapgit_object_filter OPTIONAL
ii_force_refresh TYPE abap_bool DEFAULT abap_true ii_force_refresh TYPE abap_bool DEFAULT abap_true
RETURNING RETURNING
VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.
METHODS constructor METHODS constructor
IMPORTING IMPORTING
io_repo TYPE REF TO zcl_abapgit_repo_online io_repo TYPE REF TO zcl_abapgit_repo_online
iv_seed TYPE string OPTIONAL iv_seed TYPE string OPTIONAL
iv_sci_result TYPE zif_abapgit_definitions=>ty_sci_result DEFAULT zif_abapgit_definitions=>c_sci_result-no_run iv_sci_result TYPE zif_abapgit_definitions=>ty_sci_result DEFAULT zif_abapgit_definitions=>c_sci_result-no_run
ii_obj_filter TYPE REF TO zif_abapgit_object_filter OPTIONAL ii_obj_filter TYPE REF TO zif_abapgit_object_filter OPTIONAL
ii_force_refresh TYPE abap_bool DEFAULT abap_true ii_force_refresh TYPE abap_bool DEFAULT abap_true
RAISING RAISING
zcx_abapgit_exception. zcx_abapgit_exception.

View File

@ -72,7 +72,7 @@ CLASS zcl_abapgit_gui_router DEFINITION
zcx_abapgit_exception. zcx_abapgit_exception.
METHODS go_stage_transport METHODS go_stage_transport
IMPORTING IMPORTING
iv_key TYPE zif_abapgit_persistence=>ty_repo-key iv_key TYPE zif_abapgit_persistence=>ty_repo-key
RETURNING RETURNING
VALUE(ro_filter) TYPE REF TO zcl_abapgit_object_filter_tran VALUE(ro_filter) TYPE REF TO zcl_abapgit_object_filter_tran
RAISING RAISING

View File

@ -12,7 +12,7 @@ CLASS zcl_abapgit_log DEFINITION
CLASS-METHODS from_exception CLASS-METHODS from_exception
IMPORTING IMPORTING
io_x TYPE REF TO cx_root io_x TYPE REF TO cx_root
RETURNING RETURNING
VALUE(ro_log) TYPE REF TO zcl_abapgit_log. VALUE(ro_log) TYPE REF TO zcl_abapgit_log.

View File

@ -68,7 +68,7 @@ CLASS zcl_abapgit_string_map DEFINITION
METHODS freeze . METHODS freeze .
METHODS merge METHODS merge
IMPORTING IMPORTING
!io_string_map TYPE REF TO zcl_abapgit_string_map !io_string_map TYPE REF TO zcl_abapgit_string_map
RETURNING RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_string_map VALUE(ro_instance) TYPE REF TO zcl_abapgit_string_map
RAISING RAISING

View File

@ -29,8 +29,8 @@ INTERFACE zif_abapgit_log
WITH NON-UNIQUE DEFAULT KEY . WITH NON-UNIQUE DEFAULT KEY .
TYPES: TYPES:
BEGIN OF ty_msg, BEGIN OF ty_msg,
text TYPE string, text TYPE string,
type TYPE sy-msgty, type TYPE sy-msgty,
level TYPE i, level TYPE i,
END OF ty_msg . END OF ty_msg .
TYPES: TYPES:
@ -93,13 +93,13 @@ INTERFACE zif_abapgit_log
VALUE(rv_title) TYPE string . VALUE(rv_title) TYPE string .
METHODS set_title METHODS set_title
IMPORTING IMPORTING
!iv_title TYPE csequence !iv_title TYPE csequence
RETURNING RETURNING
VALUE(ri_log) TYPE REF TO zif_abapgit_log. VALUE(ri_log) TYPE REF TO zif_abapgit_log.
METHODS merge_with METHODS merge_with
IMPORTING IMPORTING
ii_log TYPE REF TO zif_abapgit_log ii_log TYPE REF TO zif_abapgit_log
iv_min_level TYPE i DEFAULT 0 iv_min_level TYPE i DEFAULT 0
RETURNING RETURNING
VALUE(ri_log) TYPE REF TO zif_abapgit_log. VALUE(ri_log) TYPE REF TO zif_abapgit_log.
METHODS clone METHODS clone

View File

@ -2,7 +2,7 @@ CLASS zcl_abapgit_gitea DEFINITION PUBLIC.
PUBLIC SECTION. PUBLIC SECTION.
CLASS-METHODS create_repo CLASS-METHODS create_repo
IMPORTING IMPORTING
iv_name TYPE string iv_name TYPE string
RETURNING RETURNING
VALUE(rv_url) TYPE string VALUE(rv_url) TYPE string
RAISING RAISING

View File

@ -2,7 +2,7 @@ INTERFACE zif_abapgit_web_request PUBLIC.
METHODS get_header_field METHODS get_header_field
IMPORTING IMPORTING
iv_name TYPE string iv_name TYPE string
RETURNING RETURNING
VALUE(rv_value) TYPE string. VALUE(rv_value) TYPE string.