openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SMSS_RAT_DOWNLOAD:
    post:
      tags:
      - SMSSRAT
      operationId: /rfc/SMSS_RAT_DOWNLOAD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical Name for a Database Connection
                OBJNAME:
                  type: string
                  maxLength: 64
                  description: Object Name (2nd Hierarchy Level)
                INPARAMS:
                  type: array
                  items:
                    type: object
                    properties:
                      VALUE:
                        type: string
                        maxLength: 255
                        description: Value in Output Format
                NEUSTRUK:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 64
                        description: Column Name
                      DDICTYPE:
                        type: string
                        maxLength: 64
                        description: Data Type (SQL Server or DDIC)
                      LENGTH:
                        type: integer
                        format: int32
                        description: Display length
                      PREC:
                        type: integer
                        format: int32
                        description: Accuracy of Numerical Data
                      SCALE:
                        type: integer
                        format: int32
                        description: Number of decimal places
                      OBJNAME:
                        type: string
                        maxLength: 64
                        description: Single-Click Object
                      PARNAME:
                        type: string
                        maxLength: 64
                        description: Input Parameters for Single-Click Object
                      SORTIER:
                        type: integer
                        format: int32
                        description: Sort Field (0:no, 1:first, 2:second, and so on)
                OUTTABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      VALUE:
                        type: string
                        maxLength: 255
                        description: Value in Output Format
                STRUKTUR:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 64
                        description: Column Name
                      DDICTYPE:
                        type: string
                        maxLength: 64
                        description: Data Type (SQL Server or DDIC)
                      LENGTH:
                        type: integer
                        format: int32
                        description: Display length
                      PREC:
                        type: integer
                        format: int32
                        description: Accuracy of Numerical Data
                      SCALE:
                        type: integer
                        format: int32
                        description: Number of decimal places
              required:
              - OBJNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  INPARAMS:
                    type: array
                    items:
                      type: object
                      properties:
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Value in Output Format
                  NEUSTRUK:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 64
                          description: Column Name
                        DDICTYPE:
                          type: string
                          maxLength: 64
                          description: Data Type (SQL Server or DDIC)
                        LENGTH:
                          type: integer
                          format: int32
                          description: Display length
                        PREC:
                          type: integer
                          format: int32
                          description: Accuracy of Numerical Data
                        SCALE:
                          type: integer
                          format: int32
                          description: Number of decimal places
                        OBJNAME:
                          type: string
                          maxLength: 64
                          description: Single-Click Object
                        PARNAME:
                          type: string
                          maxLength: 64
                          description: Input Parameters for Single-Click Object
                        SORTIER:
                          type: integer
                          format: int32
                          description: Sort Field (0:no, 1:first, 2:second, and so on)
                  OUTTABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Value in Output Format
                  STRUKTUR:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 64
                          description: Column Name
                        DDICTYPE:
                          type: string
                          maxLength: 64
                          description: Data Type (SQL Server or DDIC)
                        LENGTH:
                          type: integer
                          format: int32
                          description: Display length
                        PREC:
                          type: integer
                          format: int32
                          description: Accuracy of Numerical Data
                        SCALE:
                          type: integer
                          format: int32
                          description: Number of decimal places
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
