openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/PLAN_IMMED_START:
    post:
      tags:
      - SDBE
      operationId: /rfc/PLAN_IMMED_START
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FIRST_MONDAY:
                  type: string
                  maxLength: 14
                NOWTSTMP:
                  type: string
                  maxLength: 14
                TODAYSDAY:
                  type: integer
                  format: int64
                WORKDAY:
                  type: integer
                  format: int64
                WORKTSTMP:
                  type: string
                  maxLength: 14
                WORKWEEK:
                  type: integer
                  format: int64
                WPLAN:
                  type: array
                  items:
                    type: object
                    properties:
                      WEEK:
                        type: integer
                        format: int64
                        description: Week for calendar display of backup scheduling
                      DAYE:
                        type: integer
                        format: int64
                        description: 'Day of the week for DBA action  enumValues: 1=Monday,4=Thursday,5=Friday,7=Sunday,3=Wednesday,2=Tuesday,6=Saturday'
                        enum:
                        - '1'
                        - '4'
                        - '5'
                        - '7'
                        - '3'
                        - '2'
                        - '6'
                      TIMEE:
                        type: string
                        maxLength: 6
                        description: Time (24 hour clock) for DBA action to run
                      BTYPE:
                        type: string
                        maxLength: 5
                        description: Type of DBA action
                      PERIOD:
                        type: integer
                        format: int64
                        description: Duration (in days) of DBA action
                      MAXRC:
                        type: integer
                        format: int64
                        description: 'Return code for DBA action  enumValues: 0001=Warning,0002=General error,0000=Everything OK,0003=Detailed error'
                        enum:
                        - '0001'
                        - '0002'
                        - '0000'
                        - '0003'
                      STATE:
                        type: string
                        maxLength: 1
                        description: 'Status of the DBA Action  enumValues: W=Warning,U=Unknown,R=Running,E=Error,P=Planned,S=Success'
                        enum:
                        - W
                        - U
                        - R
                        - E
                        - P
                        - S
                      NRPROTS:
                        type: integer
                        format: int64
                        description: Number of logs for DBA action
                      UPDFLAG:
                        type: string
                        maxLength: 1
                        description: Change flag for editing schedule
                      STARTTSTMP:
                        type: string
                        maxLength: 14
                        description: Timestamp for first run of DBA action
                      CRETSTMP:
                        type: string
                        maxLength: 14
                        description: Date and time (timestamp) of schedule
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      RESUPD:
                        type: string
                        maxLength: 1
                        description: Change flag for editing schedule
                      VOLUME:
                        type: string
                        maxLength: 10
                        description: Name of backup volume
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
              required:
              - FIRST_MONDAY
              - NOWTSTMP
              - TODAYSDAY
              - WORKDAY
              - WORKTSTMP
              - WORKWEEK
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  WPLAN:
                    type: array
                    items:
                      type: object
                      properties:
                        WEEK:
                          type: integer
                          format: int64
                          description: Week for calendar display of backup scheduling
                        DAYE:
                          type: integer
                          format: int64
                          description: 'Day of the week for DBA action  enumValues: 1=Monday,4=Thursday,5=Friday,7=Sunday,3=Wednesday,2=Tuesday,6=Saturday'
                          enum:
                          - '1'
                          - '4'
                          - '5'
                          - '7'
                          - '3'
                          - '2'
                          - '6'
                        TIMEE:
                          type: string
                          maxLength: 6
                          description: Time (24 hour clock) for DBA action to run
                        BTYPE:
                          type: string
                          maxLength: 5
                          description: Type of DBA action
                        PERIOD:
                          type: integer
                          format: int64
                          description: Duration (in days) of DBA action
                        MAXRC:
                          type: integer
                          format: int64
                          description: 'Return code for DBA action  enumValues: 0001=Warning,0002=General error,0000=Everything OK,0003=Detailed error'
                          enum:
                          - '0001'
                          - '0002'
                          - '0000'
                          - '0003'
                        STATE:
                          type: string
                          maxLength: 1
                          description: 'Status of the DBA Action  enumValues: W=Warning,U=Unknown,R=Running,E=Error,P=Planned,S=Success'
                          enum:
                          - W
                          - U
                          - R
                          - E
                          - P
                          - S
                        NRPROTS:
                          type: integer
                          format: int64
                          description: Number of logs for DBA action
                        UPDFLAG:
                          type: string
                          maxLength: 1
                          description: Change flag for editing schedule
                        STARTTSTMP:
                          type: string
                          maxLength: 14
                          description: Timestamp for first run of DBA action
                        CRETSTMP:
                          type: string
                          maxLength: 14
                          description: Date and time (timestamp) of schedule
                        SYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        RESUPD:
                          type: string
                          maxLength: 1
                          description: Change flag for editing schedule
                        VOLUME:
                          type: string
                          maxLength: 10
                          description: Name of backup volume
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
