openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SMSS_SYST_SETUP:
    post:
      tags:
      - MSSPROCS
      summary: 'MSSQL : Check or create monitor schema and content'
      operationId: /rfc/SMSS_SYST_SETUP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONN:
                  type: object
                  properties:
                    RFCDEST:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    CON_NAME:
                      type: string
                      maxLength: 30
                      description: Logical name for a database connection
                    DBSCHEMA:
                      type: string
                      maxLength: 128
                      description: 'MSSQL Multiconnect : Object source schema'
                    HOSTNAME:
                      type: string
                      maxLength: 128
                      description: 'MSSQL Multiconnect : SQL Server name'
                    DBNAME:
                      type: string
                      maxLength: 128
                      description: Database name
                    DBUSER:
                      type: string
                      maxLength: 128
                      description: 'MSSQL Multiconnect : DB user'
                    RFC_OK:
                      type: string
                      maxLength: 1
                      description: RFC connection successful ('X' / ' ')
                    UNUSED1:
                      type: string
                      maxLength: 3
                      description: Fill bytes (RFC compatibility)
                    DBCON_OK:
                      type: string
                      maxLength: 1
                      description: DBCON connection successful ('X' / ' ')
                    UNUSED2:
                      type: string
                      maxLength: 3
                      description: Fill bytes (RFC compatibility)
                    DBO_OK:
                      type: string
                      maxLength: 1
                      description: Incarnated as dbo ('X' / ' ')
                    UNUSED3:
                      type: string
                      maxLength: 3
                      description: Fill bytes (RFC compatibility)
                    UNUSED4:
                      type: string
                      maxLength: 4
                      description: Fill bytes (RFC compatibility)
                    SCH_EXISTS:
                      type: string
                      maxLength: 1
                      description: Object source schema exists in database ('X' / ' ')
                    LOCALSYS:
                      type: string
                      maxLength: 1
                      description: Local SAP system or not ('X' / ' ')
                    IS_ABAP:
                      type: string
                      maxLength: 1
                      description: DB schema contains ABAP objects ('X' / ' ')
                    SAPRELEASE:
                      type: string
                      maxLength: 10
                      description: SAP Release
                    EXTRELEASE:
                      type: string
                      maxLength: 10
                      description: Support Package Level of a Software Component
                    SQLRELEASE:
                      type: string
                      maxLength: 16
                      description: 'MSSQL : SQL Server Release string  >> XX.YYY.ZZZZ <<'
                    DB_VERS:
                      type: string
                      maxLength: 16
                      description: 'MSSQL Multiconnect : Version of SAP TSQL layer'
                    ERRCODE:
                      type: integer
                      format: int32
                      description: Return Value of ABAP Statements
                    MSGTY:
                      type: string
                      maxLength: 1
                      description: Message Type
                    MSGID:
                      type: string
                      maxLength: 20
                      description: Message Class
                    MSGNO:
                      type: integer
                      format: int64
                      description: Message Number
                    MSGV1:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV2:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV3:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV4:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    USER_NAME:
                      type: string
                      maxLength: 30
                      description: Database User
                    RAT_EXISTS:
                      type: string
                      maxLength: 1
                      description: sap_tf_version exists in object source schema ('X' / ' ')
                    LOGIN_EXISTS:
                      type: string
                      maxLength: 1
                      description: Object source schema has an associated login ('X' / ' ')
                    RFC_VERSION:
                      type: string
                      maxLength: 10
                      description: Version of SMSS_TEST_CONNECTION / SAPLSMSSCONNECT
                DBRELEASE:
                  type: string
                  maxLength: 3
                  description: MSSPROCS database release
                FUNCLEV:
                  type: string
                  default: '1'
                  maxLength: 1
                  description: 'MSSQL MSSPROCS: Funktionale Ebene'
                IGNORE_WARNINGS:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Perform steps II and III, even if checks returned warnings
                I_CREATE_SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'Step II : create schema if necessary'
                I_POPULATE_SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'Step III : create monitor object(s)'
                PROCNAME:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: 'MS SQL Server : Stored Procedure Name'
                MSGS:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
              required:
              - CONN
              - DBRELEASE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_ALL_CHECKS:
                    type: string
                    maxLength: 1
                    description: S / W / E / SPACE = skipped
                  E_CREATE_SCHEMA:
                    type: string
                    maxLength: 1
                    description: S / W / E / SPACE = skipped
                  E_POPULATE_SCHEMA:
                    type: string
                    maxLength: 1
                    description: S / W / E / SPACE = skipped
                  MSGS:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
