openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDL_SCHEDULE_JOBS:
    post:
      tags:
      - BDL3
      summary: Schedule the collect and/or transfer job(s) for a SDCC session
      operationId: /rfc/BDL_SCHEDULE_JOBS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONTRACT:
                  type: string
                  maxLength: 8
                  description: session contract type
                DATE:
                  type: string
                  format: date
                  default: '19000101'
                  description: 'if not immediate: schedule date'
                DESCR:
                  type: string
                  maxLength: 8
                  description: session type description
                DO_COLLECT:
                  type: string
                  default: X
                  maxLength: 1
                  description: schedule collect job flag
                DO_TRANSFER:
                  type: string
                  default: X
                  maxLength: 1
                  description: schedule transfer job flag (non internal sess)
                EXTENSION:
                  type: string
                  maxLength: 3
                  description: session number extension
                IMMEDIATE:
                  type: string
                  default: X
                  maxLength: 1
                  description: schedule immediate flag
                SESSNO:
                  type: string
                  maxLength: 10
                  description: session number
                TIME:
                  type: string
                  default: '000000'
                  maxLength: 6
                  description: 'if not immediate: schedule time'
              required:
              - CONTRACT
              - DESCR
              - EXTENSION
              - SESSNO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  JOBNAME:
                    type: string
                    maxLength: 32
                    description: Background job name
                  JOBNUMBER:
                    type: string
                    maxLength: 8
                    description: Background job number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
