openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/S_TWB_CATT_START:
    post:
      tags:
      - S_TWB_D
      operationId: /rfc/S_TWB_CATT_START
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_REMOTE:
                  type: string
                  maxLength: 1
                IV_START_OPTIONS:
                  type: object
                  properties:
                    VORG:
                      type: string
                      maxLength: 12
                      description: CATT - Process description
                    INTR:
                      type: string
                      maxLength: 1
                      description: 'CATT: Termination flag'
                    LMAX:
                      type: integer
                      format: int64
                      description: Time requirement
                    PROT:
                      type: string
                      maxLength: 1
                      description: 'Log selection  enumValues: S=Short log with display,""=(Empty) Short log without display,L=Long log with display,M=Long log without display'
                      enum:
                      - S
                      - ''
                      - L
                      - M
                    MODE:
                      type: string
                      maxLength: 1
                      description: 'Processing Mode  enumValues: Y=Process in Background, Synchron. Not Local,""=(Empty) Use Default,N=Process in Background, Synchronous Local,A=Process in Foreground, Synchronous Local,E=Display Errors Only, Synchronous Local,X=Process in Background, Asynchronous Update'
                      enum:
                      - Y
                      - ''
                      - N
                      - A
                      - E
                      - X
                    RFCD:
                      type: string
                      maxLength: 32
                      description: RFC connection type
                    RF2D:
                      type: string
                      maxLength: 32
                      description: RFC connection type
                    PKNZ:
                      type: string
                      maxLength: 1
                      description: 'CATT: Test status  enumValues: .='
                      enum:
                      - .
                    SPEC:
                      type: string
                      maxLength: 1
                      description: CATT - Special operation
                    ARCH:
                      type: string
                      maxLength: 1
                      description: CATT - Archiving flag
                    KTXT:
                      type: string
                      maxLength: 50
                      description: 'CATT: Short Text'
                IV_STRUCTURE_ID:
                  type: string
                  maxLength: 32
                IV_SUPPRESS_DIALOG:
                  type: string
                  maxLength: 1
                IV_TITLE:
                  type: string
                  maxLength: 75
                IV_UPDATE_STATUS:
                  type: string
                  maxLength: 1
                LIST_OF_CATTS:
                  type: array
                  items:
                    type: object
                    properties:
                      TC_NAME:
                        type: string
                        maxLength: 30
                        description: Test
                      TC_VARIANT:
                        type: string
                        maxLength: 8
                        description: CATT - Test case variant
                      TC_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Test case attributes: Type  enumValues: L=Referring to,C=CATT,M=Manual Test Case,S=Training Test,X=External application,F=Function module test,R=Remote test R/2'
                        enum:
                        - L
                        - C
                        - M
                        - S
                        - X
                        - F
                        - R
                      ECATT_VAR_ID:
                        type: string
                        maxLength: 30
                        description: Variant name
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Technical Description of Logical Components
                      NODE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      STATUS_ID:
                        type: string
                        maxLength: 32
                        description: Unique identifier for status information
                      STATUS:
                        type: string
                        maxLength: 10
                        description: Processing status
                      RET_CODE:
                        type: integer
                        format: int32
                        description: Return Value of ABAP Statements
                      LOG_NUMBER:
                        type: integer
                        format: int64
                        description: eCATT - Sequence Number
                      RFC_DEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                LIST_OF_DESTINATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Technical Description of Logical Components
                      RFCDEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      SYSYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      SYMANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_LVNR:
                    type: string
                    maxLength: 8
                    description: Procedure serial number after completed execution
                  EV_SUBRC:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  EV_UPDATE_STATUS:
                    type: string
                    maxLength: 1
                    description: Procedure serial number after completed execution
                  LIST_OF_CATTS:
                    type: array
                    items:
                      type: object
                      properties:
                        TC_NAME:
                          type: string
                          maxLength: 30
                          description: Test
                        TC_VARIANT:
                          type: string
                          maxLength: 8
                          description: CATT - Test case variant
                        TC_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Test case attributes: Type  enumValues: L=Referring to,C=CATT,M=Manual Test Case,S=Training Test,X=External application,F=Function module test,R=Remote test R/2'
                          enum:
                          - L
                          - C
                          - M
                          - S
                          - X
                          - F
                          - R
                        ECATT_VAR_ID:
                          type: string
                          maxLength: 30
                          description: Variant name
                        COMPONENT:
                          type: string
                          maxLength: 30
                          description: Technical Description of Logical Components
                        NODE_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        STATUS_ID:
                          type: string
                          maxLength: 32
                          description: Unique identifier for status information
                        STATUS:
                          type: string
                          maxLength: 10
                          description: Processing status
                        RET_CODE:
                          type: integer
                          format: int32
                          description: Return Value of ABAP Statements
                        LOG_NUMBER:
                          type: integer
                          format: int64
                          description: eCATT - Sequence Number
                        RFC_DEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                  LIST_OF_DESTINATIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPONENT:
                          type: string
                          maxLength: 30
                          description: Technical Description of Logical Components
                        RFCDEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        LOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                        SYSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        SYMANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
