openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPI_PS_ASSEMBLE_ASYNCH:
    post:
      tags:
      - SPI31
      operationId: /rfc/SPI_PS_ASSEMBLE_ASYNCH
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IP_CONTAINER:
                  type: string
                  format: byte
                  description: Data Container
                IP_FIRST_STEP:
                  type: string
                  maxLength: 32
                IP_LAST_RUN:
                  type: integer
                  format: int64
                IP_MODE:
                  type: integer
                  format: int32
                IP_PROCTYPE:
                  type: string
                  maxLength: 32
                  description: 'SPI: Process Type ID'
                IP_TASKNAME:
                  type: string
                  maxLength: 26
                IP_THIS_RUN:
                  type: integer
                  format: int64
                IS_PROCVAR:
                  type: object
                  properties:
                    PROCVAR:
                      type: string
                      maxLength: 10
                      description: 'SPI: Process Variant'
                    MONLEVEL:
                      type: integer
                      format: int64
                      description: 'SPI: Monitoring Level'
                IT_CALLBACK_DEST:
                  type: array
                  items:
                    type: object
                    properties:
                      STEPID:
                        type: string
                        maxLength: 32
                        description: 'SPI: Process Step ID'
                      RFCDEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
              required:
              - IP_CONTAINER
              - IP_FIRST_STEP
              - IP_LAST_RUN
              - IP_MODE
              - IP_PROCTYPE
              - IP_THIS_RUN
              - IS_PROCVAR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_PROC_STAT:
                    type: object
                    properties:
                      STEPID:
                        type: string
                        maxLength: 32
                        description: 'SPI: Process Step ID'
                      PROC_OPEN:
                        type: integer
                        format: int32
                        description: No. of Open Processes
                      PROC_NEW:
                        type: integer
                        format: int32
                        description: Number of New Processes
                      INSERTED:
                        type: integer
                        format: int32
                        description: Number Inserted
                      UPDATED:
                        type: integer
                        format: int32
                        description: Number Updated
                      LOADED:
                        type: integer
                        format: int32
                        description: Number Loaded
                      SERVER:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                  ET_STEP_STAT:
                    type: array
                    items:
                      type: object
                      properties:
                        STEPID:
                          type: string
                          maxLength: 32
                          description: 'SPI: Process Step ID'
                        PROC_OPEN:
                          type: integer
                          format: int32
                          description: No. of Open Processes
                        PROC_NEW:
                          type: integer
                          format: int32
                          description: Number of New Processes
                        INSERTED:
                          type: integer
                          format: int32
                          description: Number Inserted
                        UPDATED:
                          type: integer
                          format: int32
                          description: Number Updated
                        LOADED:
                          type: integer
                          format: int32
                          description: Number Loaded
                        SERVER:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
