openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PLAN_GET_BATCHLOG:
    post:
      tags:
      - SDB6PLAN
      summary: 'DB6: get message list of job related to planned action'
      operationId: /rfc/DB6_PLAN_GET_BATCHLOG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: object
                  properties:
                    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
                    CRETSTMP:
                      type: string
                      maxLength: 14
                      description: Date and time (timestamp) of schedule
                    SYSID:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    BTYPE:
                      type: string
                      maxLength: 5
                      description: Type of DBA action
                    PERIOD:
                      type: integer
                      format: int64
                      description: Duration (in days) of DBA action
                    DELTSTMP:
                      type: string
                      maxLength: 14
                      description: Timestamp for deletion of DBA action
                    STARTTSTMP:
                      type: string
                      maxLength: 14
                      description: Timestamp for first run of DBA action
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client ID of Current User
                    EXEHOST:
                      type: string
                      maxLength: 30
                      description: Name of the server where the DBA action is to be executed
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                PLAN_DATE:
                  type: string
                  format: date
                  description: 'SYSTEM: Current date'
                PLAN_TIME:
                  type: string
                  maxLength: 6
                  description: 'SYSTEM: Time'
                RECURRENCE:
                  type: object
                  properties:
                    PERIOD:
                      type: integer
                      format: int32
                      description: Recurrence Period
                    UNIT:
                      type: string
                      maxLength: 1
                      description: 'Unit of Period: H=Hour,D=Day,W=Week,M=Month'
                    DAYOFWEEK:
                      type: string
                      maxLength: 7
                      description: Day (for Collector)
                    HOUROFDAY:
                      type: string
                      maxLength: 24
                      description: Time in Hours (for Collector)
                    TIMEOFDAY:
                      type: string
                      maxLength: 6
                      description: Current Time of Application Server
                MESSAGES:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTERTIME:
                        type: string
                        maxLength: 6
                        description: Job log entry time
                      ENTERDATE:
                        type: string
                        format: date
                        description: Date of entry into job log
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGTYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      TEXT:
                        type: string
                        maxLength: 200
                        description: Message text uncoded, that is, parameters inserted and text
                      RABAXKEY:
                        type: string
                        maxLength: 64
                        description: DB key of an ABAP RABAX message
                      RABAXKEYLN:
                        type: integer
                        format: int32
                        description: Actual length of DB key of an ABAP RABAX message
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PROGRAM:
                        type: string
                        maxLength: 40
                        description: 'ABAP Program: Current Main Program'
                      PFKEY:
                        type: string
                        maxLength: 20
                        description: Current GUI Status
                      DYNPRO:
                        type: string
                        maxLength: 4
                        description: Current Screen Number
              required:
              - ACTION
              - PLAN_DATE
              - PLAN_TIME
              - RECURRENCE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGES:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTERTIME:
                          type: string
                          maxLength: 6
                          description: Job log entry time
                        ENTERDATE:
                          type: string
                          format: date
                          description: Date of entry into job log
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGTYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        TEXT:
                          type: string
                          maxLength: 200
                          description: Message text uncoded, that is, parameters inserted and text
                        RABAXKEY:
                          type: string
                          maxLength: 64
                          description: DB key of an ABAP RABAX message
                        RABAXKEYLN:
                          type: integer
                          format: int32
                          description: Actual length of DB key of an ABAP RABAX message
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PROGRAM:
                          type: string
                          maxLength: 40
                          description: 'ABAP Program: Current Main Program'
                        PFKEY:
                          type: string
                          maxLength: 20
                          description: Current GUI Status
                        DYNPRO:
                          type: string
                          maxLength: 4
                          description: Current Screen Number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
