Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 134 additions & 0 deletions src/zif_aff_aifa_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
INTERFACE zif_aff_aifa_v1
PUBLIC.

"! $values { @link zif_aff_aifa_v1.data:co_field_type }
"! $default { @link zif_aff_aifa_v1.data:co_field_type.source_structure }
TYPES ty_field_type TYPE c LENGTH 5.
CONSTANTS:
BEGIN OF co_field_type,
"! <p class="shorttext">Source Structure</p>
"! Field is in source structure
source_structure TYPE c LENGTH 5 VALUE 'SRC_S',
"! <p class="shorttext">Destination Structure</p>
"! Field is in desctination structure
destination_structure TYPE c LENGTH 5 VALUE 'DST_S',
"! <p class="shorttext">Constant</p>
"! Field is constant value
constant TYPE c LENGTH 5 VALUE 'CONST',
"! <p class="shorttext">System Field</p>
"! Field is system field
system_field TYPE c LENGTH 5 VALUE 'SYSTF',
"! <p class="shorttext">Sending System</p>
"! Field is in sending systemte
sending_system TYPE c LENGTH 5 VALUE 'SND_S',
"! <p class="shorttext">Current Line Number</p>
"! Field is current line number
current_line_number TYPE c LENGTH 5 VALUE 'LINEN',
"! <p class="shorttext">Hierarchical Mapping</p>
"! Fieldpath is starting from a parant node
hierarchical_mapping TYPE c LENGTH 5 VALUE 'MAP_H',
END OF co_field_type.

"! $values { @link zif_aff_aifa_v1.data:co_error_handling_type }
"! $default { @link zif_aff_aifa_v1.data:co_error_handling_type.ignore_data }
TYPES ty_error_handling_type TYPE c LENGTH 1.
CONSTANTS:
BEGIN OF co_error_handling_type,
"! <p class="shorttext">Treat As Error</p>
"! Treat as error if check is not successful
treat_as_error TYPE c LENGTH 1 VALUE '',
"! <p class="shorttext">Ignore Data</p>
"! Ignore data if check is not successful
ignore_data TYPE c LENGTH 1 VALUE 'I',
END OF co_error_handling_type.

TYPES:
"! <p class="shorttext">Fields To Check</p>
"! Field to check
BEGIN OF ty_field_to_check,
"! <p class="shorttext">Type</p>
"! Type
type TYPE ty_field_type,
"! <p class="shorttext">Name/Value</p>
"! Name/Value
name TYPE string,
END OF ty_field_to_check,
"! <p class="shorttext">Fields To Check</p>
"! Fields to check
ty_fields_to_check TYPE STANDARD TABLE OF ty_field_to_check WITH DEFAULT KEY.

TYPES:
"! <p class="shorttext">General Information</p>
"! General information
BEGIN OF ty_general_information,
"! <p class="shorttext">Namespace</p>
"! Namespace
"! $required
namespace TYPE c LENGTH 15,
"! <p class="shorttext">AIF Action</p>
"! AIF action
"! $required
aif_action TYPE c LENGTH 20,
"! <p class="shorttext">Main Component Type</p>
"! Main component type
main_component_type TYPE zif_aff_types_v1=>ty_object_name_30,
"! <p class="shorttext">Implementing Class</p>
"! Implementing class
implementing_class TYPE zif_aff_types_v1=>ty_object_name_30,
END OF ty_general_information,

"! <p class="shorttext">Check Details</p>
"! Check details
BEGIN OF ty_check_details,
"! <p class="shorttext">ID</p>
"! ID
"! $required
id TYPE n LENGTH 3,
"! <p class="shorttext">Check</p>
"! Check
"! $required
check TYPE zif_aff_types_v1=>ty_object_name_30,
"! <p class="shorttext">Check Behavior</p>
"! Check behavior
check_behaviour TYPE ty_error_handling_type,
"! <p class="shorttext">Fields</p>
"! Fields
fields TYPE ty_fields_to_check,
END OF ty_check_details,
"! <p class="shorttext">Checks</p>
"! Checks
ty_checks TYPE STANDARD TABLE OF ty_check_details WITH DEFAULT KEY,

"! <p class="shorttext">Field To Restore</p>
"! Field to restore
BEGIN OF ty_field_to_restore,
"! <p class="shorttext">Name</p>
"! Name
name TYPE string,
END OF ty_field_to_restore,
"! <p class="shorttext">Fields To Restore</p>
"! Fields to restore
ty_fields_to_restore TYPE STANDARD TABLE OF ty_field_to_restore WITH DEFAULT KEY,

"! <p class="shorttext">Action</p>
"! Action
BEGIN OF ty_main,
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60_cloud,
"! <p class="shorttext">General Information</p>
"! General information
"! $required
general_information TYPE ty_general_information,
"! <p class="shorttext">Fields To Restore</p>
"! Fields to restore
fields_to_restore TYPE ty_fields_to_restore,
"! <p class="shorttext">Checks</p>
"! Checks
checks TYPE ty_checks,
END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions src/zif_aff_aifa_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "AFF Type for AIFA (Action)",
"originalLanguage": "en"
}
}
105 changes: 105 additions & 0 deletions src/zif_aff_edoi_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
INTERFACE zif_aff_edoi_v1 PUBLIC.

"! <p class="shorttext">Direction</p>
"! Interface direction
"! $values {@link zif_aff_edoi_v1.data:co_interface_direction}
"! $default {@link zif_aff_edoi_v1.data:co_interface_direction.outbound}
TYPES ty_direction TYPE c LENGTH 1.
CONSTANTS:
"! <p class="shorttext">Direction</p>
"! Interface direction
BEGIN OF co_interface_direction,
"! <p class="shorttext">Outbound</p>
"! Outbound
outbound TYPE ty_direction VALUE 'O',
"! <p class="shorttext">Inbound</p>
"! Inbound
inbound TYPE ty_direction VALUE 'I',
END OF co_interface_direction.

TYPES:
"! <p class="shorttext">General Information</p>
"! General information
BEGIN OF ty_general_information,
"! <p class="shorttext">Direction</p>
"! Interface direction
"! $required
direction TYPE ty_direction,
END OF ty_general_information.

TYPES:
"! <p class="shorttext">Communication Integration Attributes</p>
"! Communication integration attributes
BEGIN OF ty_communication_attributes,
"! <p class="shorttext">Process Type</p>
"! DRC process type
process_type TYPE c LENGTH 50,
"! <p class="shorttext">Process Version</p>
"! DRC process version
process_version TYPE c LENGTH 20,
"! <p class="shorttext">Process Subtype</p>
"! DRC process subtype
process_subtype TYPE c LENGTH 50,
"! <p class="shorttext">Action</p>
"! DRC process action
drc_action TYPE c LENGTH 30,
"! <p class="shorttext">Response Interface</p>
"! eDoc response interface
response_interface TYPE c LENGTH 30,
"! <p class="shorttext">Response Interface Version</p>
"! Response interface version
"! $minimum 1
"! $maximum 9999
response_interface_version TYPE i,
END OF ty_communication_attributes.

TYPES:
"! <p class="shorttext">Version Details</p>
"! eDocument interface version details
BEGIN OF ty_version_details,
"! <p class="shorttext">Version</p>
"! Version
"! $required
"! $minimum 1
"! $maximum 9999
version TYPE i,
"! <p class="shorttext">Description</p>
"! Description
"! $required
description TYPE c LENGTH 30,
"! <p class="shorttext">Active From</p>
"! Active from
"! $required
active_from TYPE sy-datum,
"! <p class="shorttext">Communication Integration Attributes</p>
"! Communication integration attributes
communication_attributes TYPE ty_communication_attributes,
END OF ty_version_details.
"! <p class="shorttext">Versions</p>
"! Interface versions
TYPES ty_versions TYPE SORTED TABLE OF ty_version_details WITH UNIQUE KEY version.

TYPES:
"! <p class="shorttext">eDocument Interface</p>
"! eDocument interface
BEGIN OF ty_main,
"! <p class="shorttext">Format Version</p>
"! Format version
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_100_cloud,
"! <p class="shorttext">General Information</p>
"! General information
"! $required
general_information TYPE ty_general_information,
"! <p class="shorttext">Versions</p>
"! Interface versions
"! $required
versions TYPE ty_versions,

END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions src/zif_aff_edoi_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "AFF for eDocument Interface (EDOI)",
"originalLanguage": "en"
}
}
62 changes: 62 additions & 0 deletions src/zif_aff_smtg_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
INTERFACE zif_aff_smtg_v1
PUBLIC.

TYPES:
"! <p class="shorttext">General Information</p>
"! Combines template header and administrative data.
BEGIN OF ty_general_information,
"! <p class="shorttext">Template Description</p>
"! Long description to that email template
template_description TYPE c LENGTH 255,
"! <p class="shorttext">CDS View</p>
"! The corresponding CDS view name for the template
"! $required
cds_view TYPE zif_aff_types_v1=>ty_object_name_30,
"! <p class="shorttext">Predelivered</p>
"! Indicator if the template is predelivered
is_predelivered TYPE abap_bool,
"! <p class="shorttext">Subject</p>
"! The subject of the email template
"! $required
email_subject TYPE c LENGTH 255,
"! <p class="shorttext">Generate Plain Text from HTML</p>
"! Indicator if the template text body is generated automatically from html body
is_plaintext_auto_generated TYPE abap_bool,
END OF ty_general_information.
" Corresponding content ist stored in a separate file and implemented as action

TYPES:
"! <p class="shorttext">Email Template Content</p>
"! Displays the HTML und plain text template content.
BEGIN OF ty_template_content,
"! <p class="shorttext">Name</p>
"! Name
name TYPE string,
END OF ty_template_content.

"! <p class="shorttext">Table of Template Content Types</p>
"! Table of template content types
TYPES ty_template_contents TYPE STANDARD TABLE OF ty_template_content WITH DEFAULT KEY.

TYPES:
"! <p class="shorttext">Email Template</p>
"! Email Template
BEGIN OF ty_main,
"! <p class="shorttext">Format Version</p>
"! Format version
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60,
"! <p class="shorttext">General Information</p>
"! General information
"! $required
general_information TYPE ty_general_information,
"! <p class="shorttext">Template Content</p>
"! Template Content
template_content TYPE ty_template_contents,
END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions src/zif_aff_smtg_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "test email template file format",
"originalLanguage": "en"
}
}
59 changes: 59 additions & 0 deletions src/zif_aff_sxtg_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
INTERFACE zif_aff_sxtg_v1
PUBLIC.

TYPES:
"! <p class="shorttext">Transaction Codes</p>
"! Transaction codes
BEGIN OF ty_transaction_code,
"! <p class="shorttext">Name</p>
"! Name of transaction code
name TYPE c LENGTH 20,
END OF ty_transaction_code.

"! <p class="shorttext">Transaction Codes</p>
"! Transaction codes
TYPES ty_transaction_codes TYPE STANDARD TABLE OF ty_transaction_code WITH KEY name.

TYPES:
"! <p class="shorttext">General Information</p>
"! General information
BEGIN OF ty_general_information,
"! <p class="shorttext">Extension Include</p>
"! Extension include with persisted custom fields
"! $required
extension_include TYPE zif_aff_types_v1=>ty_object_name_30,

"! <p class="shorttext">Application Data Structure</p>
"! Structure with application data
"! $required
application_data_structure TYPE zif_aff_types_v1=>ty_object_name_30,

"! <p class="shorttext">UI Extension Entity</p>
"! Abstract entity with ui definition
"! $required
ui_extension_entity TYPE zif_aff_types_v1=>ty_object_name_30,
END OF ty_general_information.

TYPES:
"! <p class="shorttext">SAP GUI Extension Point</p>
"! SAP GUI extension point for developer extensibility
BEGIN OF ty_main,
"! <p class="shorttext">Format Version</p>
"! Format version
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60_no_abap_lv,

"! <p class="shorttext">General Information</p>
"! General information
general_information TYPE ty_general_information,

"! <p class="shorttext">Transaction Codes</p>
"! Transaction codes of extensible application
transaction_codes TYPE ty_transaction_codes,
END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions src/zif_aff_sxtg_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "SXTG: SAP GUI Extension Point AFF Type",
"originalLanguage": "en"
}
}
Loading