openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/STU3_GET_LONG_STATEMENT_TEXT:
    post:
      tags:
      - STU3
      operationId: /rfc/STU3_GET_LONG_STATEMENT_TEXT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DS_MEMBER_SPEC:
                  type: string
                  maxLength: 8
                  description: Name of the data sharing group member
                FB_DSCNAME:
                  type: string
                  format: byte
                  description: DB2 statement name
                FB_STMTID:
                  type: integer
                  format: int32
                  description: Statement ID
                USE_ALERT_USER:
                  type: integer
                  format: int32
                  description: Retrieve SQL text using alert user ID
                FB_STATEMENT_TEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: The SQL statement text
                PREPARE_ATTRIB:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: The SQL statement text
              required:
              - FB_STMTID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FB_QW0317LN:
                    type: integer
                    format: int32
                    description: Retrieve SQL text using alert user ID
                  STMT_TEXT:
                    type: string
                    maxLength: 30720
                    description: SQL statement text
                  FB_STATEMENT_TEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: The SQL statement text
                  PREPARE_ATTRIB:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: The SQL statement text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
