|
1 | | -INTERFACE zif_aff_smtg_v1 |
2 | | - PUBLIC. |
| 1 | +interface zif_aff_smtg_v1 |
| 2 | + public. |
3 | 3 |
|
4 | | - TYPES: |
| 4 | + types: |
5 | 5 | "! <p class="shorttext">General Information</p> |
6 | 6 | "! Combines template header and administrative data. |
7 | | - BEGIN OF ty_general_information, |
| 7 | + begin of ty_general_information, |
8 | 8 | "! <p class="shorttext">Template Description</p> |
9 | 9 | "! Long description to that email template |
10 | | - template_description TYPE c LENGTH 255, |
| 10 | + template_description type c length 255, |
11 | 11 | "! <p class="shorttext">CDS View</p> |
12 | 12 | "! The corresponding CDS view name for the template |
13 | 13 | "! $required |
14 | | - cds_view TYPE zif_aff_types_v1=>ty_object_name_30, |
| 14 | + cds_view type zif_aff_types_v1=>ty_object_name_30, |
15 | 15 | "! <p class="shorttext">Predelivered</p> |
16 | 16 | "! Indicator if the template is predelivered |
17 | | - is_predelivered TYPE abap_bool, |
| 17 | + is_predelivered type abap_bool, |
18 | 18 | "! <p class="shorttext">Subject</p> |
19 | 19 | "! The subject of the email template |
20 | 20 | "! $required |
21 | | - email_subject TYPE c LENGTH 255, |
| 21 | + email_subject type c length 255, |
22 | 22 | "! <p class="shorttext">Generate Plain Text from HTML</p> |
23 | 23 | "! Indicator if the template text body is generated automatically from html body |
24 | | - is_plaintext_auto_generated TYPE abap_bool, |
25 | | - END OF ty_general_information. |
| 24 | + is_plaintext_auto_generated type abap_bool, |
| 25 | + end of ty_general_information. |
26 | 26 | " Corresponding content ist stored in a separate file and implemented as action |
27 | 27 |
|
| 28 | + types: |
| 29 | + "! <p class="shorttext">Email Template Content</p> |
| 30 | + "! Displays the HTML und plain text template content. |
| 31 | + begin of ty_template_content, |
| 32 | + "! <p class="shorttext">Name</p> |
| 33 | + "! Name |
| 34 | + name type string, |
| 35 | + end of ty_template_content. |
| 36 | + types: |
| 37 | + tyt_template_content type standard table of ty_template_content with empty key. |
28 | 38 |
|
29 | | - TYPES: |
| 39 | + types: |
30 | 40 | "! <p class="shorttext">Email Template</p> |
31 | 41 | "! Email Template |
32 | | - BEGIN OF ty_main, |
| 42 | + begin of ty_main, |
33 | 43 | "! <p class="shorttext">Format Version</p> |
34 | 44 | "! Format version |
35 | 45 | "! $required |
36 | | - format_version TYPE zif_aff_types_v1=>ty_format_version, |
| 46 | + format_version type zif_aff_types_v1=>ty_format_version, |
37 | 47 | "! <p class="shorttext">Header</p> |
38 | 48 | "! Header |
39 | 49 | "! $required |
40 | | - header TYPE zif_aff_types_v1=>ty_header_60, |
| 50 | + header type zif_aff_types_v1=>ty_header_60, |
41 | 51 | "! <p class="shorttext">General Information</p> |
42 | 52 | "! General information |
43 | 53 | "! $required |
44 | | - general_information TYPE ty_general_information, |
45 | | - END OF ty_main. |
| 54 | + general_information type ty_general_information, |
| 55 | + "! <p class="shorttext">Email Template Content</p> |
| 56 | + "! Email Template Content |
| 57 | + email_template_content type tyt_template_content, |
| 58 | + end of ty_main. |
46 | 59 |
|
47 | | -ENDINTERFACE. |
| 60 | +endinterface. |
0 commit comments