openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SCMB/DF_GET_RELATION_TYPE:
    post:
      tags:
      - /SCMB/DF_CUSTOMIZING
      operationId: /rfc/SCMB/DF_GET_RELATION_TYPE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_LANGUAGE:
                  type: string
                  maxLength: 1
                IV_RELATION_TYPE:
                  type: string
                  maxLength: 10
                ET_RELATION:
                  type: array
                  items:
                    type: object
                    properties:
                      RELATION_TYPE:
                        type: string
                        maxLength: 10
                        description: Relationship type
                      ROLETYPE_A:
                        type: string
                        maxLength: 10
                        description: Role That an Object Takes in the Relationship
                      ROLETYPE_B:
                        type: string
                        maxLength: 10
                        description: Role That an Object Takes in the Relationship
                      CARD_A:
                        type: string
                        maxLength: 1
                        description: 'Role Cardinality  enumValues: 1=One Instance Exactly,N=At Least One Instance,""=Any Number of Instances'
                        enum:
                        - '1'
                        - N
                        - ''
                      CARD_B:
                        type: string
                        maxLength: 1
                        description: 'Role Cardinality  enumValues: 1=One Instance Exactly,N=At Least One Instance,""=Any Number of Instances'
                        enum:
                        - '1'
                        - N
                        - ''
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      HASPROP:
                        type: string
                        maxLength: 1
                        description: 'Specifies Whether a Relationship Type Has an Attribute  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                ET_RELATION_DESCR:
                  type: array
                  items:
                    type: object
                    properties:
                      RELATION_TYPE:
                        type: string
                        maxLength: 10
                        description: Relationship type
                      DESCR_AB:
                        type: string
                        maxLength: 60
                        description: Descriptive Text for Relationships or Roles
                      DESCR_BA:
                        type: string
                        maxLength: 60
                        description: Descriptive Text for Relationships or Roles
                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
                IT_RELATION_TYPE:
                  type: array
                  items:
                    type: object
                    properties:
                      RELATION_TYPE:
                        type: string
                        maxLength: 10
                        description: Relationship type
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_RELATION:
                    type: array
                    items:
                      type: object
                      properties:
                        RELATION_TYPE:
                          type: string
                          maxLength: 10
                          description: Relationship type
                        ROLETYPE_A:
                          type: string
                          maxLength: 10
                          description: Role That an Object Takes in the Relationship
                        ROLETYPE_B:
                          type: string
                          maxLength: 10
                          description: Role That an Object Takes in the Relationship
                        CARD_A:
                          type: string
                          maxLength: 1
                          description: 'Role Cardinality  enumValues: 1=One Instance Exactly,N=At Least One Instance,""=Any Number of Instances'
                          enum:
                          - '1'
                          - N
                          - ''
                        CARD_B:
                          type: string
                          maxLength: 1
                          description: 'Role Cardinality  enumValues: 1=One Instance Exactly,N=At Least One Instance,""=Any Number of Instances'
                          enum:
                          - '1'
                          - N
                          - ''
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        HASPROP:
                          type: string
                          maxLength: 1
                          description: 'Specifies Whether a Relationship Type Has an Attribute  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                  ET_RELATION_DESCR:
                    type: array
                    items:
                      type: object
                      properties:
                        RELATION_TYPE:
                          type: string
                          maxLength: 10
                          description: Relationship type
                        DESCR_AB:
                          type: string
                          maxLength: 60
                          description: Descriptive Text for Relationships or Roles
                        DESCR_BA:
                          type: string
                          maxLength: 60
                          description: Descriptive Text for Relationships or Roles
                  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
                  IT_RELATION_TYPE:
                    type: array
                    items:
                      type: object
                      properties:
                        RELATION_TYPE:
                          type: string
                          maxLength: 10
                          description: Relationship type
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
