diff --git a/file-formats/sito/README.md b/file-formats/sito/README.md new file mode 100644 index 000000000..c57dc39d4 --- /dev/null +++ b/file-formats/sito/README.md @@ -0,0 +1,5 @@ +# SITO File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.sito.json` | 1 | [`zif_aff_sito_v1.intf.abap`](./type/zif_aff_sito_v1.intf.abap) | [`sito-v1.json`](./sito-v1.json) | [`zmo_sito_test.sito.json`](./examples/zmo_sito_test.sito.json) diff --git a/file-formats/sito/examples/zmo_sito_test.sito.json b/file-formats/sito/examples/zmo_sito_test.sito.json new file mode 100644 index 000000000..670e86f74 --- /dev/null +++ b/file-formats/sito/examples/zmo_sito_test.sito.json @@ -0,0 +1,256 @@ +{ + "formatVersion": "1", + "header": { + "description": "Flight (Demo Object)", + "originalLanguage": "en" + }, + "situationObject": { + "reusable": false, + "scope": "SAP", + "sapObjectType": "BusinessSituationDemoFlight", + "extensible": false, + "text": { + "name": "Flight (Demo Object)", + "description": "The flight object is used in the demo scenario Flight Profitability (SITDEMO_FLIGHT_PROFITABILITY)." + }, + "structures": [ + { + "id": "SITDEMO_CDS_FLIGHT", + "name": "I_SITN2DEMOFLIGHT", + "type": "CDS", + "reusable": false, + "scope": "SAP", + "sapObjectNodeType": "BusinessSituationDemoFlight", + "text": { + "description": "CDS view of flight (demo object)" + }, + "semanticKeys": [ + { + "field": "SITNDEMOCARRIERID", + "fieldOrder": "01" + }, + { + "field": "SITNDEMOCONNECTIONID", + "fieldOrder": "02" + }, + { + "field": "SITNDEMOFLIGHTDATE", + "fieldOrder": "03" + } + ], + "valueHelpMappings": [ + { + "fieldName": "SITNDEMOCARRIERID", + "appType": "allApps", + "type": "service", + "scope": "SAP" + }, + { + "fieldName": "SITNDEMOPLANETYPE", + "appType": "allApps", + "type": "service", + "scope": "SAP" + }, + { + "fieldName": "SITNDEMOCARRIERREGION", + "appType": "allApps", + "type": "service", + "scope": "SAP" + }, + { + "fieldName": "SITNDEMOCONNECTIONID", + "appType": "allApps", + "type": "service", + "scope": "SAP" + } + ], + "services": [ + { + "id": "SITDEMO_VH", + "fieldName": "SITNDEMOCARRIERID", + "type": "allApps", + "entitySet": "C_Sitn2DemoFlightVH", + "property": "SitnDemoCarrierID" + }, + { + "id": "SITDEMO_VH", + "fieldName": "SITNDEMOPLANETYPE", + "type": "allApps", + "entitySet": "C_Sitn2DemoFlightVH", + "property": "SitnDemoPlaneType" + }, + { + "id": "SITDEMO_VH", + "fieldName": "SITNDEMOCARRIERREGION", + "type": "allApps", + "entitySet": "C_Sitn2DemoFlightVH", + "property": "SitnDemoRegionCode" + }, + { + "id": "SITDEMO_VH", + "fieldName": "SITNDEMOCONNECTIONID", + "type": "allApps", + "entitySet": "C_Sitn2DemoFlightVH", + "property": "SitnDemoConnectionID" + } + ] + } + ], + "endUserActions": [ + { + "id": "SITDEMO_ACT_CANCEL_FLIGHT", + "type": "callbackAction", + "reusable": false, + "scope": "SAP", + "text": { + "name": "Cancel Flight", + "description": "Set flight status to unscheduled" + }, + "callback": { + "id": "SITDEMO_CB_CANCEL_FLIGHT" + } + }, + { + "id": "SITDEMO_ACT_CHANGE_PLANE", + "type": "callbackAction", + "reusable": false, + "scope": "SAP", + "text": { + "name": "Change Plane", + "description": "Assign another plane to the flight" + }, + "callback": { + "id": "SITDEMO_CB_CHANGE_PLANE" + } + }, + { + "id": "SITDEMO_ACT_MANAGE_AIRLINE", + "type": "navigationAction", + "reusable": false, + "scope": "SAP", + "text": { + "name": "Display Airline", + "description": "Show contact details" + }, + "navigation": { + "id": "SITDEMO_NAV_MANAGE_AIRLINE" + } + }, + { + "id": "SITDEMO_ACT_MANAGE_FLIGHT", + "type": "navigationAction", + "reusable": false, + "scope": "SAP", + "text": { + "name": "Manage Flight", + "description": "Maintain bookings and flight details" + }, + "navigation": { + "id": "SITDEMO_NAV_MANAGE_FLIGHT" + } + } + ], + "navigations": [ + { + "id": "SITDEMO_NAV_MANAGE_FLIGHT", + "reusable": false, + "scope": "SAP", + "semanticObject": "SituationDemoFlight", + "semanticObjectAction": "maintain", + "parameters": [ + { + "name": "SitnDemoCarrierID" + }, + { + "name": "SitnDemoConnectionID" + }, + { + "name": "SitnDemoFlightDate" + } + ] + }, + { + "id": "SITDEMO_NAV_MANAGE_AIRLINE", + "reusable": false, + "scope": "SAP", + "semanticObject": "SituationDemoFlight", + "semanticObjectAction": "maintain", + "parameters": [ + { + "name": "SitnDemoCarrierID" + } + ] + } + ], + "callbacks": [ + { + "id": "SITDEMO_CB_CHANGE_PLANE", + "reusable": false, + "scope": "SAP", + "className": "CL_SIT2_DEMO_CB_CHANGE_PLANE", + "parameters": [ + { + "name": "CARRID" + }, + { + "name": "PLANETYPE" + }, + { + "name": "CONNID" + }, + { + "name": "FLDATE" + } + ] + }, + { + "id": "SITDEMO_CB_CANCEL_FLIGHT", + "reusable": false, + "scope": "SAP", + "className": "CL_SIT2_DEMO_CB_CANCEL_FLIGHT", + "parameters": [ + { + "name": "CARRID" + }, + { + "name": "CONNID" + }, + { + "name": "FLDATE" + } + ] + } + ], + "valueHelpServices": [ + { + "id": "SITDEMO_VH", + "reusable": false, + "scope": "SAP", + "protocolVersion": "V2", + "pathType": "standard", + "customPath": "", + "binding": "C_SITN2DEMOFLIGHTVH_CDS", + "definition": "", + "version": "0001", + "valueHelpServiceProviders": [ + { + "entitySet": "C_Sitn2DemoFlightVH", + "property": "SitnDemoCarrierID" + }, + { + "entitySet": "C_Sitn2DemoFlightVH", + "property": "SitnDemoConnectionID" + }, + { + "entitySet": "C_Sitn2DemoFlightVH", + "property": "SitnDemoPlaneType" + }, + { + "entitySet": "C_Sitn2DemoFlightVH", + "property": "SitnDemoRegionCode" + } + ] + } + ] + } +} diff --git a/file-formats/sito/sito-v1.json b/file-formats/sito/sito-v1.json new file mode 100644 index 000000000..5423bb1ed --- /dev/null +++ b/file-formats/sito/sito-v1.json @@ -0,0 +1,928 @@ +{ + "$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/sito/sito-v1.json", + "title": "Situation Object Properties", + "description": "Situation Object properties", + "type": "object", + "properties": { + "formatVersion": { + "title": "Format version", + "description": "Format version", + "type": "string", + "const": "1" + }, + "header": { + "title": "Header", + "description": "Header", + "type": "object", + "properties": { + "description": { + "title": "Description", + "description": "Description of the ABAP object", + "type": "string", + "maxLength": 60 + }, + "originalLanguage": { + "title": "Original Language", + "description": "Original language of the ABAP object", + "type": "string", + "minLength": 2, + "maxLength": 2, + "pattern": "^[a-z]+$" + }, + "abapLanguageVersion": { + "title": "ABAP Language Version", + "description": "ABAP language version", + "type": "string", + "enum": [ + "standard", + "keyUser", + "cloudDevelopment" + ], + "enumTitles": [ + "Standard", + "ABAP for Key Users", + "ABAP Cloud Development" + ], + "enumDescriptions": [ + "Standard", + "ABAP for key user extensibility", + "ABAP cloud development" + ], + "default": "standard" + } + }, + "additionalProperties": false, + "required": [ + "description", + "originalLanguage" + ] + }, + "situationObject": { + "title": "Situation Object", + "description": "Situation Object", + "type": "object", + "properties": { + "reusable": { + "title": "Reusable", + "description": "Object reusable", + "type": "boolean" + }, + "scope": { + "title": "Scope", + "description": "Scope", + "type": "string", + "enum": [ + "SAP", + "customer" + ], + "enumTitles": [ + "SAP", + "Customer" + ], + "enumDescriptions": [ + "SAP", + "Customer" + ] + }, + "sapObjectType": { + "title": "SAP Object Type", + "description": "SAP object type", + "type": "string", + "maxLength": 30 + }, + "extensible": { + "title": "Extensible", + "description": "Object extensible", + "type": "boolean" + }, + "text": { + "title": "Text", + "description": "Text for ituation object", + "type": "object", + "properties": { + "name": { + "title": "Name", + "description": "Situation object name", + "type": "string", + "maxLength": 40 + }, + "description": { + "title": "Description", + "description": "Description", + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "name", + "description" + ] + }, + "structures": { + "title": "Structures", + "description": "Situation object structures", + "type": "array", + "items": { + "title": "Structure Details", + "description": "Situation object structure", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Situation object structure id", + "type": "string", + "maxLength": 32 + }, + "name": { + "title": "Name", + "description": "Name", + "type": "string", + "maxLength": 30 + }, + "type": { + "title": "Type", + "description": "Situation object structure type", + "type": "string", + "enum": [ + "CDS", + "inMemory" + ], + "enumTitles": [ + "CDS", + "In Memory" + ], + "enumDescriptions": [ + "CDS", + "In memory" + ] + }, + "reusable": { + "title": "Reusable", + "description": "Object reusable", + "type": "boolean" + }, + "scope": { + "title": "Scope", + "description": "Scope", + "type": "string", + "enum": [ + "SAP", + "customer" + ], + "enumTitles": [ + "SAP", + "Customer" + ], + "enumDescriptions": [ + "SAP", + "Customer" + ] + }, + "sapObjectNodeType": { + "title": "SAP Object Node Type", + "description": "SAP object node type", + "type": "string", + "maxLength": 30 + }, + "text": { + "title": "Text", + "description": "Text for situation object structure", + "type": "object", + "properties": { + "description": { + "title": "Description", + "description": "Situation object structure description", + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "description" + ] + }, + "semanticKeys": { + "title": "Semantic Keys", + "description": "Semantic keys of an object structure", + "type": "array", + "uniqueItems": true, + "items": { + "title": "Semantic Key Details", + "description": "Semantic key of an object structure", + "type": "object", + "properties": { + "field": { + "title": "Field", + "description": "Object field", + "type": "string", + "maxLength": 30 + }, + "fieldOrder": { + "title": "Field Order", + "description": "Object field order for situation", + "type": "string", + "maxLength": 2, + "pattern": "^[0-9]+$" + } + }, + "additionalProperties": false, + "required": [ + "field", + "fieldOrder" + ] + } + }, + "valueHelpMappings": { + "title": "Value Help Mappings", + "description": "Value help mappings for situation object structure", + "type": "array", + "items": { + "title": "Value Help Mapping Details", + "description": "Value help mapping for situation object structure", + "type": "object", + "properties": { + "fieldName": { + "title": "Field Name", + "description": "Object field", + "type": "string", + "maxLength": 30 + }, + "appType": { + "title": "App Type", + "description": "App for value help", + "type": "string", + "enum": [ + "allApps" + ], + "enumTitles": [ + "All Apps" + ], + "enumDescriptions": [ + "All apps" + ] + }, + "type": { + "title": "Type", + "description": "Type of value help", + "type": "string", + "enum": [ + "service" + ], + "enumTitles": [ + "Service" + ], + "enumDescriptions": [ + "Service" + ] + }, + "scope": { + "title": "Scope", + "description": "Scope", + "type": "string", + "enum": [ + "SAP", + "customer" + ], + "enumTitles": [ + "SAP", + "Customer" + ], + "enumDescriptions": [ + "SAP", + "Customer" + ] + } + }, + "additionalProperties": false, + "required": [ + "fieldName", + "appType", + "type", + "scope" + ] + } + }, + "services": { + "title": "Services", + "description": "Value help mapping for situation object structure - services", + "type": "array", + "items": { + "title": "Service Details", + "description": "Value help mapping for situation object structure - service", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Service id for value help", + "type": "string", + "maxLength": 32 + }, + "fieldName": { + "title": "Field Name", + "description": "Field name", + "type": "string", + "maxLength": 30 + }, + "type": { + "title": "Type", + "description": "App for value help", + "type": "string", + "enum": [ + "allApps" + ], + "enumTitles": [ + "All Apps" + ], + "enumDescriptions": [ + "All apps" + ] + }, + "entitySet": { + "title": "Entity Set", + "description": "Entity set", + "type": "string", + "maxLength": 40 + }, + "property": { + "title": "Property", + "description": "Property", + "type": "string", + "maxLength": 40 + } + }, + "additionalProperties": false, + "required": [ + "id", + "fieldName", + "type", + "entitySet", + "property" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "reusable", + "scope", + "sapObjectNodeType", + "text" + ] + } + }, + "events": { + "title": "Events", + "description": "Situation object events", + "type": "array", + "items": { + "title": "Event Details", + "description": "Situation object event", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Situation event id", + "type": "string", + "maxLength": 32 + }, + "object": { + "title": "Object", + "description": "Object", + "type": "string", + "maxLength": 32 + }, + "type": { + "title": "Type", + "description": "Type", + "type": "string", + "maxLength": 32 + }, + "reusable": { + "title": "Reusable", + "description": "Object reusable", + "type": "boolean" + }, + "scope": { + "title": "Scope", + "description": "Scope", + "type": "string", + "enum": [ + "SAP", + "customer" + ], + "enumTitles": [ + "SAP", + "Customer" + ], + "enumDescriptions": [ + "SAP", + "Customer" + ] + }, + "category": { + "title": "Category", + "description": "Object type category", + "type": "string", + "enum": [ + "businessClass", + "borObjectType", + "abapClass", + "businessObjectType", + "xmlObjectType" + ], + "enumTitles": [ + "Business Class", + "BOR Object Type", + "ABAP Class", + "Business Object Type", + "XML Object Type" + ], + "enumDescriptions": [ + "Business class", + "BOR object type", + "ABAP class", + "Business object type", + "XML object type" + ] + }, + "parameterStructureId": { + "title": "Parameter Structure ID", + "description": "Parameter structure id for situation object", + "type": "string", + "maxLength": 32 + }, + "text": { + "title": "Text", + "description": "Text for situation object event", + "type": "object", + "properties": { + "description": { + "title": "Description", + "description": "Description", + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "description" + ] + } + }, + "additionalProperties": false, + "required": [ + "id", + "object", + "type", + "reusable", + "scope", + "category", + "parameterStructureId", + "text" + ] + } + }, + "endUserActions": { + "title": "End User Actions", + "description": "Situation object end user actions", + "type": "array", + "items": { + "title": "End User Action Details", + "description": "Situation object action", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Action id", + "type": "string", + "maxLength": 32 + }, + "type": { + "title": "Type", + "description": "Action type of situation", + "type": "string", + "enum": [ + "navigationAction", + "callbackAction" + ], + "enumTitles": [ + "Navigation Action", + "Callback Action" + ], + "enumDescriptions": [ + "Navigation action", + "Callback action" + ] + }, + "reusable": { + "title": "Reusable", + "description": "Object reusable", + "type": "boolean" + }, + "scope": { + "title": "Scope", + "description": "Scope", + "type": "string", + "enum": [ + "SAP", + "customer" + ], + "enumTitles": [ + "SAP", + "Customer" + ], + "enumDescriptions": [ + "SAP", + "Customer" + ] + }, + "text": { + "title": "Text", + "description": "Text for situation object action", + "type": "object", + "properties": { + "name": { + "title": "Name", + "description": "Name of action", + "type": "string", + "maxLength": 40 + }, + "description": { + "title": "Description", + "description": "Description of action", + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "name", + "description" + ] + }, + "navigation": { + "title": "Navigation Details", + "description": "Situation object action - navigation", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Navigation id", + "type": "string", + "maxLength": 32 + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + }, + "callback": { + "title": "Callback Details", + "description": "Situation object action - callback", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Callback id", + "type": "string", + "maxLength": 32 + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + "additionalProperties": false, + "required": [ + "id", + "type", + "reusable", + "scope", + "text" + ] + } + }, + "navigations": { + "title": "Navigations", + "description": "Situation object navigations", + "type": "array", + "items": { + "title": "Navigation Details", + "description": "Situation object navigation", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Navigation id", + "type": "string", + "maxLength": 32 + }, + "reusable": { + "title": "Reusable", + "description": "Object reusable", + "type": "boolean" + }, + "scope": { + "title": "Scope", + "description": "Scope", + "type": "string", + "enum": [ + "SAP", + "customer" + ], + "enumTitles": [ + "SAP", + "Customer" + ], + "enumDescriptions": [ + "SAP", + "Customer" + ] + }, + "semanticObject": { + "title": "Semantic Object", + "description": "Semantic object", + "type": "string", + "maxLength": 50 + }, + "semanticObjectAction": { + "title": "Semantic Object Action", + "description": "Semantic object action", + "type": "string", + "maxLength": 50 + }, + "parameters": { + "title": "Parameters", + "description": "Parameters", + "type": "array", + "items": { + "title": "Parameter Details", + "description": "Parameter", + "type": "object", + "properties": { + "name": { + "title": "Name", + "description": "Name of parameter", + "type": "string", + "maxLength": 30 + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "id", + "reusable", + "scope", + "semanticObject", + "semanticObjectAction" + ] + } + }, + "callbacks": { + "title": "Callbacks", + "description": "Situation object callbacks", + "type": "array", + "items": { + "title": "Callback Details", + "description": "Situation object callback", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Callback id", + "type": "string", + "maxLength": 32 + }, + "reusable": { + "title": "Reusable", + "description": "Object reusable", + "type": "boolean" + }, + "scope": { + "title": "Scope", + "description": "Scope", + "type": "string", + "enum": [ + "SAP", + "customer" + ], + "enumTitles": [ + "SAP", + "Customer" + ], + "enumDescriptions": [ + "SAP", + "Customer" + ] + }, + "className": { + "title": "Class Name", + "description": "Class name", + "type": "string", + "maxLength": 30 + }, + "parameters": { + "title": "Parameters", + "description": "Parameters", + "type": "array", + "items": { + "title": "Parameter Details", + "description": "Parameter", + "type": "object", + "properties": { + "name": { + "title": "Name", + "description": "Name of parameter", + "type": "string", + "maxLength": 30 + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "id", + "reusable", + "scope", + "className" + ] + } + }, + "valueHelpServices": { + "title": "Value Help Services", + "description": "Value help services for situation object", + "type": "array", + "items": { + "title": "Value Help Service Details", + "description": "Value help service for situation object", + "type": "object", + "properties": { + "id": { + "title": "ID", + "description": "Service id for value help", + "type": "string", + "maxLength": 32 + }, + "reusable": { + "title": "Reusable", + "description": "Object reusable", + "type": "boolean" + }, + "scope": { + "title": "Scope", + "description": "Scope", + "type": "string", + "enum": [ + "SAP", + "customer" + ], + "enumTitles": [ + "SAP", + "Customer" + ], + "enumDescriptions": [ + "SAP", + "Customer" + ] + }, + "protocolVersion": { + "title": "Protocol Version", + "description": "Service protocol version for value help", + "type": "string", + "enum": [ + "V2", + "V4" + ], + "enumTitles": [ + "V2", + "V4" + ], + "enumDescriptions": [ + "V2", + "V4" + ] + }, + "pathType": { + "title": "Path Type", + "description": "Service path type for value help", + "type": "string", + "enum": [ + "standard", + "custom" + ], + "enumTitles": [ + "Standard", + "Custom" + ], + "enumDescriptions": [ + "Standard", + "Custom" + ] + }, + "customPath": { + "title": "Custom Path", + "description": "Service custom path for value help", + "type": "string", + "maxLength": 255 + }, + "binding": { + "title": "Binding", + "description": "Service binding for value help", + "type": "string", + "maxLength": 40 + }, + "definition": { + "title": "Definition", + "description": "Service definition for value help", + "type": "string", + "maxLength": 30 + }, + "version": { + "title": "Version", + "description": "Service version for value help", + "type": "string", + "maxLength": 4, + "pattern": "^[0-9]+$" + }, + "valueHelpServiceProviders": { + "title": "Value Help Service Providers", + "description": "Providers of value help service for situation object", + "type": "array", + "items": { + "title": "Value Help Service Provider Details", + "description": "Provider of value help service for situation object", + "type": "object", + "properties": { + "entitySet": { + "title": "Entity Set", + "description": "Entity set", + "type": "string", + "maxLength": 40 + }, + "property": { + "title": "Property", + "description": "Property", + "type": "string", + "maxLength": 40 + } + }, + "additionalProperties": false, + "required": [ + "entitySet", + "property" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "id", + "reusable", + "scope", + "protocolVersion", + "pathType", + "customPath", + "binding", + "definition", + "version" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "reusable", + "scope", + "sapObjectType", + "extensible", + "text" + ] + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header", + "situationObject" + ] +} diff --git a/file-formats/sito/type/zif_aff_sito_v1.intf.abap b/file-formats/sito/type/zif_aff_sito_v1.intf.abap new file mode 100644 index 000000000..6a6a05c6c --- /dev/null +++ b/file-formats/sito/type/zif_aff_sito_v1.intf.abap @@ -0,0 +1,551 @@ +INTERFACE zif_aff_sito_v1 + PUBLIC. + + "! SIT2_DO_SCOPE + "! $values {@link zif_aff_sito_v1.data:co_sit2_do_scope} + TYPES ty_sit2_do_scope TYPE n LENGTH 2. + + CONSTANTS: + "! SIT2_DO_SCOPE + BEGIN OF co_sit2_do_scope, + "!

SAP

+ "! SAP + "! $enumValue 'SAP' + sap TYPE ty_sit2_do_scope VALUE '01', + "!

Customer

+ "! Customer + customer TYPE ty_sit2_do_scope VALUE '02', + END OF co_sit2_do_scope. + + "! SIT2_DO_OBJ_STRUC_TYPE + "! $values {@link zif_aff_sito_v1.data:co_sit2_do_obj_struc_type} + TYPES ty_sit2_do_obj_struc_type TYPE n LENGTH 2. + + CONSTANTS: + "! SIT2_DO_OBJ_STRUC_TYPE + BEGIN OF co_sit2_do_obj_struc_type, + "!

CDS

+ "! CDS + "! $enumValue 'CDS' + cds TYPE ty_sit2_do_obj_struc_type VALUE '01', + "!

In Memory

+ "! In memory + in_memory TYPE ty_sit2_do_obj_struc_type VALUE '02', + END OF co_sit2_do_obj_struc_type. + + "! SWFECLSTYP + "! $values {@link zif_aff_sito_v1.data:co_swfeclstyp} + TYPES ty_swfeclstyp TYPE c LENGTH 2. + + CONSTANTS: + "! SWFECLSTYP + BEGIN OF co_swfeclstyp, + "!

Business Class

+ "! Business class + business_class TYPE ty_swfeclstyp VALUE 'BC', + "!

BOR Object Type

+ "! BOR object type + bor_object_type TYPE ty_swfeclstyp VALUE 'BO', + "!

ABAP Class

+ "! ABAP class + abap_class TYPE ty_swfeclstyp VALUE 'CL', + "!

Business Object Type

+ "! Business object type + business_object_type TYPE ty_swfeclstyp VALUE 'EO', + "!

XML Object Type

+ "! XML object type + xml_object_type TYPE ty_swfeclstyp VALUE 'XC', + END OF co_swfeclstyp. + + "! SIT2_DO_ACTION_TYPE + "! $values {@link zif_aff_sito_v1.data:co_sit2_do_action_type} + TYPES ty_sit2_do_action_type TYPE n LENGTH 2. + + CONSTANTS: + "! SIT2_DO_ACTION_TYPE + BEGIN OF co_sit2_do_action_type, + "!

Navigation Action

+ "! Navigation action + navigation_action TYPE ty_sit2_do_action_type VALUE '01', + "!

Callback Action

+ "! Callback action + callback_action TYPE ty_sit2_do_action_type VALUE '02', + END OF co_sit2_do_action_type. + + "! SIT2_DO_VH_SRV_PROTOCOL_VER + "! $values {@link zif_aff_sito_v1.data:co_sit2_do_vh_srv_protocol_ver} + TYPES ty_sit2_do_vh_srv_protocol_ver TYPE n LENGTH 2. + + CONSTANTS: + "! SIT2_DO_VH_SRV_PROTOCOL_VER + BEGIN OF co_sit2_do_vh_srv_protocol_ver, + "!

V2

+ "! V2 + "! $enumValue 'V2' + v2 TYPE ty_sit2_do_vh_srv_protocol_ver VALUE '01', + "!

V4

+ "! V4 + "! $enumValue 'V4' + v4 TYPE ty_sit2_do_vh_srv_protocol_ver VALUE '02', + END OF co_sit2_do_vh_srv_protocol_ver. + + "! SIT2_DO_VH_SRV_PATH_TYPE + "! $values {@link zif_aff_sito_v1.data:co_sit2_do_vh_srv_path_type} + TYPES ty_sit2_do_vh_srv_path_type TYPE n LENGTH 2. + + CONSTANTS: + "! SIT2_DO_VH_SRV_PATH_TYPE + BEGIN OF co_sit2_do_vh_srv_path_type, + "!

Standard

+ "! Standard + standard TYPE ty_sit2_do_vh_srv_path_type VALUE '01', + "!

Custom

+ "! Custom + custom TYPE ty_sit2_do_vh_srv_path_type VALUE '02', + END OF co_sit2_do_vh_srv_path_type. + + "! SIT2_DO_VH_APP_TYPE + "! $values {@link zif_aff_sito_v1.data:co_sit2_do_vh_app_type} + TYPES ty_sit2_do_vh_app_type TYPE n LENGTH 2. + + CONSTANTS: + "! SIT2_DO_VH_APP_TYPE + BEGIN OF co_sit2_do_vh_app_type, + "!

All Apps

+ "! All apps + all_apps TYPE ty_sit2_do_vh_app_type VALUE '01', + END OF co_sit2_do_vh_app_type. + + "! SIT2_DO_VH_TYPE + "! $values {@link zif_aff_sito_v1.data:co_sit2_do_vh_type} + TYPES ty_sit2_do_vh_type TYPE n LENGTH 2. + + CONSTANTS: + "! SIT2_DO_VH_TYPE + BEGIN OF co_sit2_do_vh_type, + "!

Service

+ "! Service + service TYPE ty_sit2_do_vh_type VALUE '01', + END OF co_sit2_do_vh_type. + + TYPES: + "!

Text

+ "! Text for situation object structure + BEGIN OF ty_sit2_obj_struc_t, + "!

Description

+ "! Situation object structure description + "! $required + description TYPE c LENGTH 255, + END OF ty_sit2_obj_struc_t, + + "!

Semantic Key Details

+ "! Semantic key of an object structure + BEGIN OF ty_sit2_obj_str_sk, + "!

Field

+ "! Object field + "! $required + field TYPE c LENGTH 30, + "!

Field Order

+ "! Object field order for situation + "! $required + field_order TYPE n LENGTH 2, + END OF ty_sit2_obj_str_sk, + + "!

Semantic Keys

+ "! Semantic keys of an object structure + ty_sit2_obj_str_sk_list TYPE SORTED TABLE OF ty_sit2_obj_str_sk WITH UNIQUE KEY field_order, + + "!

Value Help Mapping Details

+ "! Value help mapping for situation object structure + BEGIN OF ty_sit2_os_vh_map, + "!

Field Name

+ "! Object field + "! $required + field_name TYPE c LENGTH 30, + "!

App Type

+ "! App for value help + "! $required + app_type TYPE ty_sit2_do_vh_app_type, + "!

Type

+ "! Type of value help + "! $required + type TYPE ty_sit2_do_vh_type, + "!

Scope

+ "! Scope + "! $required + scope TYPE ty_sit2_do_scope, + END OF ty_sit2_os_vh_map, + + "!

Value Help Mappings

+ "! Value help mappings for situation object structure + ty_sit2_os_vh_map_list TYPE STANDARD TABLE OF ty_sit2_os_vh_map WITH DEFAULT KEY, + + "!

Service Details

+ "! Value help mapping for situation object structure - service + BEGIN OF ty_sit2_os_vh_map_s, + "!

ID

+ "! Service id for value help + "! $required + id TYPE c LENGTH 32, + "!

Field Name

+ "! Field name + "! $required + field_name TYPE c LENGTH 30, + "!

Type

+ "! App for value help + "! $required + type TYPE ty_sit2_do_vh_app_type, + "!

Entity Set

+ "! Entity set + "! $required + entity_set TYPE c LENGTH 40, + "!

Property

+ "! Property + "! $required + property TYPE c LENGTH 40, + END OF ty_sit2_os_vh_map_s, + + "!

Services

+ "! Value help mapping for situation object structure - services + ty_sit2_os_vh_map_s_list TYPE STANDARD TABLE OF ty_sit2_os_vh_map_s WITH DEFAULT KEY, + + "!

Text

+ "! Text for situation object event + BEGIN OF ty_sit2_obj_event_t, + "!

Description

+ "! Description + "! $required + description TYPE c LENGTH 255, + END OF ty_sit2_obj_event_t, + + "!

Text

+ "! Text for situation object action + BEGIN OF ty_sit2_obj_act_t, + "!

Name

+ "! Name of action + "! $required + name TYPE c LENGTH 40, + "!

Description

+ "! Description of action + "! $required + description TYPE c LENGTH 255, + END OF ty_sit2_obj_act_t, + + "!

Navigation Details

+ "! Situation object action - navigation + BEGIN OF ty_sit2_obj_act_nav, + "!

ID

+ "! Navigation id + "! $required + id TYPE c LENGTH 32, + END OF ty_sit2_obj_act_nav, + + "!

Callback Details

+ "! Situation object action - callback + BEGIN OF ty_sit2_obj_act_cb, + "!

ID

+ "! Callback id + "! $required + id TYPE c LENGTH 32, + END OF ty_sit2_obj_act_cb, + + "!

Parameter Details

+ "! Parameter + BEGIN OF ty_sit2_obj_par, + "!

Name

+ "! Name of parameter + "! $required + name TYPE c LENGTH 30, + END OF ty_sit2_obj_par, + + "!

Parameters

+ "! Parameters + ty_sit2_obj_par_list TYPE STANDARD TABLE OF ty_sit2_obj_par WITH DEFAULT KEY, + + "!

Value Help Service Provider Details

+ "! Provider of value help service for situation object + BEGIN OF ty_sit2_obj_vh_s_p, + "!

Entity Set

+ "! Entity set + "! $required + entity_set TYPE c LENGTH 40, + "!

Property

+ "! Property + "! $required + property TYPE c LENGTH 40, + END OF ty_sit2_obj_vh_s_p, + + "!

Value Help Service Providers

+ "! Providers of value help service for situation object + ty_sit2_obj_vh_s_p_list TYPE STANDARD TABLE OF ty_sit2_obj_vh_s_p WITH DEFAULT KEY, + + "!

Text

+ "! Text for ituation object + BEGIN OF ty_sit2_object_t, + "!

Name

+ "! Situation object name + "! $required + name TYPE c LENGTH 40, + "!

Description

+ "! Description + "! $required + description TYPE c LENGTH 255, + END OF ty_sit2_object_t, + + "!

Structure Details

+ "! Situation object structure + BEGIN OF ty_sit2_obj_struc, + "!

ID

+ "! Situation object structure id + "! $required + id TYPE c LENGTH 32, + "!

Name

+ "! Name + "! $required + name TYPE c LENGTH 30, + "!

Type

+ "! Situation object structure type + "! $required + type TYPE ty_sit2_do_obj_struc_type, + "!

Reusable

+ "! Object reusable + "! $required + reusable TYPE abap_bool, + "!

Scope

+ "! Scope + "! $required + scope TYPE ty_sit2_do_scope, + "!

SAP Object Node Type

+ "! SAP object node type + "! $required + sap_object_node_type TYPE c LENGTH 30, + "! $required + text TYPE ty_sit2_obj_struc_t, + semantic_keys TYPE ty_sit2_obj_str_sk_list, + value_help_mappings TYPE ty_sit2_os_vh_map_list, + services TYPE ty_sit2_os_vh_map_s_list, + END OF ty_sit2_obj_struc, + + "!

Structures

+ "! Situation object structures + ty_sit2_obj_struc_list TYPE STANDARD TABLE OF ty_sit2_obj_struc WITH DEFAULT KEY, + + "!

Event Details

+ "! Situation object event + BEGIN OF ty_sit2_obj_events, + "!

ID

+ "! Situation event id + "! $required + id TYPE c LENGTH 32, + "!

Object

+ "! Object + "! $required + object TYPE c LENGTH 32, + "!

Type

+ "! Type + "! $required + type TYPE c LENGTH 32, + "!

Reusable

+ "! Object reusable + "! $required + reusable TYPE abap_bool, + "!

Scope

+ "! Scope + "! $required + scope TYPE ty_sit2_do_scope, + "!

Category

+ "! Object type category + "! $required + category TYPE ty_swfeclstyp, + "!

Parameter Structure ID

+ "! Parameter structure id for situation object + "! $required + parameter_structure_id TYPE c LENGTH 32, + "! $required + text TYPE ty_sit2_obj_event_t, + END OF ty_sit2_obj_events, + + "!

Events

+ "! Situation object events + ty_sit2_obj_events_list TYPE STANDARD TABLE OF ty_sit2_obj_events WITH DEFAULT KEY, + + "!

End User Action Details

+ "! Situation object action + BEGIN OF ty_sit2_obj_act, + "!

ID

+ "! Action id + "! $required + id TYPE c LENGTH 32, + "!

Type

+ "! Action type of situation + "! $required + type TYPE ty_sit2_do_action_type, + "!

Reusable

+ "! Object reusable + "! $required + reusable TYPE abap_bool, + "!

Scope

+ "! Scope + "! $required + scope TYPE ty_sit2_do_scope, + "! $required + text TYPE ty_sit2_obj_act_t, + navigation TYPE ty_sit2_obj_act_nav, + callback TYPE ty_sit2_obj_act_cb, + END OF ty_sit2_obj_act, + + "!

End User Actions

+ "! Situation object end user actions + ty_sit2_obj_act_list TYPE STANDARD TABLE OF ty_sit2_obj_act WITH DEFAULT KEY, + + "!

Navigation Details

+ "! Situation object navigation + BEGIN OF ty_sit2_obj_nav, + "!

ID

+ "! Navigation id + "! $required + id TYPE c LENGTH 32, + "!

Reusable

+ "! Object reusable + "! $required + reusable TYPE abap_bool, + "!

Scope

+ "! Scope + "! $required + scope TYPE ty_sit2_do_scope, + "!

Semantic Object

+ "! Semantic object + "! $required + semantic_object TYPE c LENGTH 50, + "!

Semantic Object Action

+ "! Semantic object action + "! $required + semantic_object_action TYPE c LENGTH 50, + parameters TYPE ty_sit2_obj_par_list, + END OF ty_sit2_obj_nav, + + "!

Navigations

+ "! Situation object navigations + ty_sit2_obj_nav_list TYPE STANDARD TABLE OF ty_sit2_obj_nav WITH DEFAULT KEY, + + "!

Callback Details

+ "! Situation object callback + BEGIN OF ty_sit2_obj_cb, + "!

ID

+ "! Callback id + "! $required + id TYPE c LENGTH 32, + "!

Reusable

+ "! Object reusable + "! $required + reusable TYPE abap_bool, + "!

Scope

+ "! Scope + "! $required + scope TYPE ty_sit2_do_scope, + "!

Class Name

+ "! Class name + "! $required + class_name TYPE c LENGTH 30, + parameters TYPE ty_sit2_obj_par_list, + END OF ty_sit2_obj_cb, + + "!

Callbacks

+ "! Situation object callbacks + ty_sit2_obj_cb_list TYPE STANDARD TABLE OF ty_sit2_obj_cb WITH DEFAULT KEY, + + "!

Value Help Service Details

+ "! Value help service for situation object + BEGIN OF ty_sit2_obj_vh_s, + "!

ID

+ "! Service id for value help + "! $required + id TYPE c LENGTH 32, + "!

Reusable

+ "! Object reusable + "! $required + reusable TYPE abap_bool, + "!

Scope

+ "! Scope + "! $required + scope TYPE ty_sit2_do_scope, + "!

Protocol Version

+ "! Service protocol version for value help + "! $required + protocol_version TYPE ty_sit2_do_vh_srv_protocol_ver, + "!

Path Type

+ "! Service path type for value help + "! $required + path_type TYPE ty_sit2_do_vh_srv_path_type, + "!

Custom Path

+ "! Service custom path for value help + "! $required + custom_path TYPE c LENGTH 255, + "!

Binding

+ "! Service binding for value help + "! $required + binding TYPE c LENGTH 40, + "!

Definition

+ "! Service definition for value help + "! $required + definition TYPE c LENGTH 30, + "!

Version

+ "! Service version for value help + "! $required + version TYPE n LENGTH 4, + value_help_service_providers TYPE ty_sit2_obj_vh_s_p_list, + END OF ty_sit2_obj_vh_s, + + "!

Value Help Services

+ "! Value help services for situation object + ty_sit2_obj_vh_s_list TYPE STANDARD TABLE OF ty_sit2_obj_vh_s WITH DEFAULT KEY, + + "!

Situation Object

+ "! Situation object + BEGIN OF ty_sit2_object, + "!

Reusable

+ "! Object reusable + "! $required + reusable TYPE abap_bool, + "!

Scope

+ "! Scope + "! $required + scope TYPE ty_sit2_do_scope, + "!

SAP Object Type

+ "! SAP object type + "! $required + sap_object_type TYPE c LENGTH 30, + "!

Extensible

+ "! Object extensible + "! $required + extensible TYPE abap_bool, + "! $required + text TYPE ty_sit2_object_t, + structures TYPE ty_sit2_obj_struc_list, + events TYPE ty_sit2_obj_events_list, + end_user_actions TYPE ty_sit2_obj_act_list, + navigations TYPE ty_sit2_obj_nav_list, + callbacks TYPE ty_sit2_obj_cb_list, + value_help_services TYPE ty_sit2_obj_vh_s_list, + END OF ty_sit2_object, + + + + "!

Situation Object Properties

+ "! Situation Object properties + BEGIN OF ty_main, + "!

Format version

+ "! Format version + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + "!

Header

+ "! Header + "! $required + header TYPE zif_aff_types_v1=>ty_header_60, + "!

Situation Object

+ "! Situation Object + "! $required + situation_object TYPE ty_sit2_object, + END OF ty_main. + +ENDINTERFACE. diff --git a/file-formats/sito/type/zif_aff_sito_v1.intf.json b/file-formats/sito/type/zif_aff_sito_v1.intf.json new file mode 100644 index 000000000..97e07af1b --- /dev/null +++ b/file-formats/sito/type/zif_aff_sito_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "SITO AFF Types", + "originalLanguage": "en" + } +}