openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_JOBS_FOR_CURR_DISPLAY:
    post:
      tags:
      - SFMSS_JOBS
      summary: Function to get jobs scheduled in DB13 Display
      operationId: /rfc/GET_JOBS_FOR_CURR_DISPLAY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CALWEEK:
                  type: integer
                  format: int32
                  description: 'Runtime: Current line of an internal table'
                CURRENTWEEK:
                  type: integer
                  format: int32
                  description: 'Runtime: Current line of an internal table'
                DBNAME:
                  type: string
                  maxLength: 255
                  description: The name of the database in SQL Server instance.
                FIRSTMONDAY:
                  type: string
                  maxLength: 14
                  description: Timestamp when the job is to run first
                BPLANLIST:
                  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:
              - CALWEEK
              - CURRENTWEEK
              - DBNAME
              - FIRSTMONDAY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BPLANLIST:
                    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.
