openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_SQLCODE:
    post:
      tags:
      - SFMSS_MISC
      summary: Get sql code for MSS object
      operationId: /rfc/MSS_GET_SQLCODE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: DB connection
                NO_PAR:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                NO_QUOTES:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                OBJECT_NAME:
                  type: string
                  maxLength: 128
                  description: Object name
                OBJ_DB:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Db where object is located
                OBJ_SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema where object is located
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Target Schema
                WITH_CREATEPROC:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-character flag
                SPPARAMS:
                  type: array
                  items:
                    type: object
                    properties:
                      PAR_NAME:
                        type: string
                        maxLength: 30
                        description: MS SQL server - stored procedure parameter name
                      PAR_TYPE:
                        type: string
                        maxLength: 30
                        description: MS SQL server - stored procedure parameter type
                      PAR_VALUE:
                        type: string
                        maxLength: 255
                        description: MS SQL server  stored procedure parameter value
                SQLCODE:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: MS sql server - stored procedure text line
              required:
              - OBJECT_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ABLOCAT:
                    type: integer
                    format: int32
                    description: Offset of a processing control block
                  ABNAME:
                    type: string
                    maxLength: 40
                    description: ABAP program name
                  TABNAME:
                    type: string
                    maxLength: 128
                    description: description of the SAP generated stored proc.
                  SPPARAMS:
                    type: array
                    items:
                      type: object
                      properties:
                        PAR_NAME:
                          type: string
                          maxLength: 30
                          description: MS SQL server - stored procedure parameter name
                        PAR_TYPE:
                          type: string
                          maxLength: 30
                          description: MS SQL server - stored procedure parameter type
                        PAR_VALUE:
                          type: string
                          maxLength: 255
                          description: MS SQL server  stored procedure parameter value
                  SQLCODE:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 255
                          description: MS sql server - stored procedure text line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
