openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/S391_GET_SQL_SOURCE_REF:
    post:
      tags:
      - S391
      summary: Returns ABAP source reference of SQL statement
      operationId: /rfc/S391_GET_SQL_SOURCE_REF
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DB2_MEMBER:
                  type: string
                  maxLength: 8
                  description: Name of the data sharing group member
                STMT_TOKEN:
                  type: integer
                  format: int32
                  description: Natural number
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SOURCE_REF:
                    type: object
                    properties:
                      PROG_NAME:
                        type: string
                        maxLength: 40
                        description: 'ABAP Program: Current Main Program'
                      CONT_OFFS:
                        type: integer
                        format: int32
                        description: Offset of a Processing Control Block
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
