openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DML_OBJECT_TYPE_DEFINITION:
    post:
      tags:
      - COM_DML_OBJECT_TYPE_DEF
      operationId: /rfc/DML_OBJECT_TYPE_DEFINITION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_OBJTYPE:
                  type: object
                  properties:
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: MDF Object Type
                    STRUCTURE_KEY:
                      type: string
                      maxLength: 30
                      description: Structure of the Key Fields of an MDF Object
                IS_SERVICE:
                  type: object
                  properties:
                    CLIENT:
                      type: string
                      maxLength: 3
                      description: Client
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: MDF Object Type
                    OBJTYPE_BOR:
                      type: string
                      maxLength: 10
                      description: Object Type
                    NUMBER_RANGE:
                      type: string
                      maxLength: 10
                      description: Name of Number Range Object
                    STATUS:
                      type: string
                      maxLength: 1
                      description: 'Status Management  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    STATUS_SCHEMA:
                      type: string
                      maxLength: 8
                      description: Status Profile
                    PROTOCOL:
                      type: string
                      maxLength: 1
                      description: 'Processing Log  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    ECM:
                      type: string
                      maxLength: 1
                      description: 'Change Management  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    SIMPLE_VAL:
                      type: string
                      maxLength: 1
                      description: 'Simple Time-Based Validity  enumValues: 2=No Overlap,1=No Restriction,3=No Gaps,""=None,4=No Overlap and No Gaps'
                      enum:
                      - '2'
                      - '1'
                      - '3'
                      - ''
                      - '4'
                    VERSION:
                      type: string
                      maxLength: 1
                      description: 'Version Creation  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    DOCUMENTS:
                      type: string
                      maxLength: 1
                      description: 'Document Management  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    DRAFT:
                      type: string
                      maxLength: 1
                      description: 'Save Temporary Version  enumValues: 2=User-Dependent,1=Global'
                      enum:
                      - '2'
                      - '1'
                    APPROVAL:
                      type: string
                      maxLength: 1
                      description: 'Change Permission  enumValues: 1=Use Approval Procedure'
                      enum:
                      - '1'
                IT_GROUP:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: MDF Object Type
                      OBJGROUP:
                        type: string
                        maxLength: 10
                        description: Group
                IT_GROUP_TEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: MDF Object Type
                      OBJGROUP:
                        type: string
                        maxLength: 10
                        description: Group
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      DESCRIPTION:
                        type: string
                        maxLength: 255
                        description: Description
                IT_OBJTYPE_TEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: MDF Object Type
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      DESCRIPTION:
                        type: string
                        maxLength: 255
                        description: Description
                IT_RELTYPE:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_TYPE:
                        type: string
                        maxLength: 10
                        description: MDF Object Type
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      RELTYPE:
                        type: string
                        maxLength: 6
                        description: Relationship Type
                      OWNER:
                        type: string
                        format: byte
                        description: Owner
                      TIGHT:
                        type: string
                        maxLength: 1
                        description: Tight Relationship
                      HIERARCHY:
                        type: string
                        maxLength: 1
                        description: Hierarchy
                      ACTION_SOURCE:
                        type: string
                        maxLength: 2
                        description: Activity for Source Object Type
                      ACTION_DESTIN:
                        type: string
                        maxLength: 2
                        description: Activity for Target Object Type
                IT_SETTYPE:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      OBJECT_TYPE:
                        type: string
                        maxLength: 10
                        description: MDF Object Type
                      SETTYPE:
                        type: string
                        maxLength: 16
                        description: Set Type
                      OBLIGATORY:
                        type: string
                        maxLength: 1
                        description: Obligatory
                      OWNER:
                        type: string
                        format: byte
                        description: Owner
                      CHECK_ORDER:
                        type: integer
                        format: int32
                        description: Check Sequence
                      DOCUMENTS:
                        type: string
                        maxLength: 1
                        description: Document Management
                      TEXT_SET:
                        type: string
                        maxLength: 16
                        description: Identification of a Set Type
                IT_TEXTTYPEOBJ:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: MDF Object Type
                      ELEMENT:
                        type: string
                        maxLength: 30
                        description: MDF Text Element, like Set Type
                      SUBELEMENT:
                        type: string
                        maxLength: 30
                        description: Subelement (Attribute of Set Type)
                      TEXTTYPE:
                        type: string
                        maxLength: 10
                        description: MDF Text Type
                      MAIN_TEXT:
                        type: string
                        maxLength: 1
                        description: Main Description
                I_COMMIT:
                  type: string
                  default: CL_DML_CONST=>TRUE
                  maxLength: 1
                I_COMPLETE:
                  type: string
                  default: CL_DML_CONST=>TRUE
                  maxLength: 1
                I_CREATE_ONLY:
                  type: string
                  default: CL_DML_CONST=>FALSE
                  maxLength: 1
                I_OBJECT_TYPE:
                  type: string
                  maxLength: 10
              required:
              - I_OBJECT_TYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  E_ERROR:
                    type: string
                    maxLength: 1
                  E_WARNINGS:
                    type: string
                    maxLength: 1
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
