|
| 1 | +INTERFACE zif_aff_srvd_v1 |
| 2 | + PUBLIC. |
| 3 | + |
| 4 | + "! <p class="shorttext">Source Type</p> |
| 5 | + "! States which statement is used in the service definition |
| 6 | + "! $values {@link zif_aff_srvd_v1.data:co_source_type} |
| 7 | + "! $default {@link zif_aff_srvd_v1.data:co_source_type.definition} |
| 8 | + TYPES ty_source_type TYPE c LENGTH 1. |
| 9 | + |
| 10 | + "! <p class="shorttext">Source Origin</p> |
| 11 | + "! States which tool was used to create the service definition |
| 12 | + "! $values {@link zif_aff_srvd_v1.data:co_source_origin} |
| 13 | + "! $default {@link zif_aff_srvd_v1.data:co_source_origin.abap_development_tools} |
| 14 | + TYPES ty_source_origin TYPE c LENGTH 1. |
| 15 | + |
| 16 | + CONSTANTS: |
| 17 | + "! <p class="shorttext">Source Type Values</p> |
| 18 | + "! Allowed values for source type |
| 19 | + BEGIN OF co_source_type, |
| 20 | + "! <p class="shorttext">Definition</p> |
| 21 | + "! Definition |
| 22 | + definition TYPE ty_source_type VALUE 'S', |
| 23 | + "! <p class="shorttext">Extension</p> |
| 24 | + "! Extension |
| 25 | + extension TYPE ty_source_type VALUE 'X', |
| 26 | + END OF co_source_type, |
| 27 | + |
| 28 | + "! <p class="shorttext">Source Origin Values</p> |
| 29 | + "! Allowed values for source origin |
| 30 | + BEGIN OF co_source_origin, |
| 31 | + "! <p class="shorttext">ABAP Development Tools</p> |
| 32 | + "! ABAP Development Tools |
| 33 | + abap_development_tools TYPE ty_source_origin VALUE '0', |
| 34 | + "! <p class="shorttext">Custom CDS Views</p> |
| 35 | + "! Custom CDS views |
| 36 | + custom_cds_views TYPE ty_source_origin VALUE '1', |
| 37 | + "! <p class="shorttext">Custom Analytical Queries</p> |
| 38 | + "! Custom analytical queries |
| 39 | + custom_analytical_queries TYPE ty_source_origin VALUE '2', |
| 40 | + "! <p class="shorttext">Custom Business Object</p> |
| 41 | + "! Custom business object |
| 42 | + custom_business_object TYPE ty_source_origin VALUE '3', |
| 43 | + "! <p class="shorttext">Custom Code List</p> |
| 44 | + "! Custom code list |
| 45 | + custom_code_list TYPE ty_source_origin VALUE '4', |
| 46 | + "! <p class="shorttext">Custom CDS Views for Variant Configurations</p> |
| 47 | + "! Custom CDS views for variant configurations |
| 48 | + custom_cds_views_variant_confg TYPE ty_source_origin VALUE '5', |
| 49 | + "! <p class="shorttext">Custom Fields</p> |
| 50 | + "! Custom fields |
| 51 | + custom_fields TYPE ty_source_origin VALUE '6', |
| 52 | + "! <p class="shorttext">Extensions for Data Sources</p> |
| 53 | + "! Extensions for data sources |
| 54 | + extensions_for_data_sources TYPE ty_source_origin VALUE '7', |
| 55 | + "! <p class="shorttext">Custom Search Modeler</p> |
| 56 | + "! Custom search modeler |
| 57 | + custom_search_modeler TYPE ty_source_origin VALUE '8', |
| 58 | + "! <p class="shorttext">Service Consumption Model</p> |
| 59 | + "! Service Consumption Model |
| 60 | + service_consumption_model TYPE ty_source_origin VALUE '9', |
| 61 | + END OF co_source_origin. |
| 62 | + |
| 63 | + |
| 64 | + TYPES: |
| 65 | + "! <p class="shorttext">General Information</p> |
| 66 | + "! Metadata for the service definition |
| 67 | + BEGIN OF ty_general_information, |
| 68 | + "! <p class="shorttext">Source Origin</p> |
| 69 | + "! Source Origin states which tool was used to create the service definition |
| 70 | + "! $values {@link zif_aff_srvd_v1.data:co_source_origin} |
| 71 | + "! $default {@link zif_aff_srvd_v1.data:co_source_origin.abap_development_tools} |
| 72 | + source_origin TYPE ty_source_origin, |
| 73 | + "! <p class="shorttext">Source Type</p> |
| 74 | + "! Source type states which statement is in the service definition. |
| 75 | + "! $values {@link zif_aff_srvd_v1.data:co_source_type} |
| 76 | + "! $default {@link zif_aff_srvd_v1.data:co_source_type.definition} |
| 77 | + source_type TYPE ty_source_type, |
| 78 | + END OF ty_general_information, |
| 79 | + |
| 80 | + "! <p class="shorttext">Service Definition Properties</p> |
| 81 | + "! Properties of a Service Definition |
| 82 | + BEGIN OF ty_main, |
| 83 | + "! $required |
| 84 | + format_version TYPE zif_aff_types_v1=>ty_format_version, |
| 85 | + "! <p class="shorttext">Header</p> |
| 86 | + "! Header |
| 87 | + "! $required |
| 88 | + header TYPE zif_aff_types_v1=>ty_header_60, |
| 89 | + "! <p class="shorttext">General Information</p> |
| 90 | + "! General information |
| 91 | + "! $required |
| 92 | + general_information TYPE ty_general_information, |
| 93 | + |
| 94 | + END OF ty_main. |
| 95 | + |
| 96 | +ENDINTERFACE. |
0 commit comments