openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_XBP_JOB_HEADER_MODIFY:
    post:
      tags:
      - SXBP
      operationId: /rfc/BAPI_XBP_JOB_HEADER_MODIFY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DONT_RELEASE:
                  type: string
                  maxLength: 1
                  description: Single-character flag
                EXTERNAL_USER_NAME:
                  type: string
                  maxLength: 16
                  description: 'XMI logging: Name of user in external management tool'
                JOBCOUNT:
                  type: string
                  maxLength: 8
                  description: Job ID
                JOBNAME:
                  type: string
                  maxLength: 32
                  description: Background job name
                JOB_HEADER:
                  type: object
                  properties:
                    SDLSTRTDT:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                    SDLSTRTTM:
                      type: string
                      maxLength: 6
                      description: Planned start time for background Job
                    LASTSTRTDT:
                      type: string
                      format: date
                      description: Latest Execution Date for a Background Job
                    LASTSTRTTM:
                      type: string
                      maxLength: 6
                      description: Latest Execution Time for Background Job
                    PREDJOB:
                      type: string
                      maxLength: 32
                      description: Name of previous job
                    PREDJOBCNT:
                      type: string
                      maxLength: 8
                      description: Job ID
                    CHECKSTAT:
                      type: string
                      maxLength: 1
                      description: Job status check indicator for subsequent job start
                    EVENTID:
                      type: string
                      maxLength: 32
                      description: Background Processing Event
                    EVENTPARM:
                      type: string
                      maxLength: 64
                      description: Background Event Parameters (Such as, Jobname/Jobcount)
                    PRDMINS:
                      type: integer
                      format: int64
                      description: Duration period (in minutes) for a batch job
                    PRDHOURS:
                      type: integer
                      format: int64
                      description: Duration period (in hours) for a batch job
                    PRDDAYS:
                      type: integer
                      format: int64
                      description: Duration (in days) of DBA action
                    PRDWEEKS:
                      type: integer
                      format: int64
                      description: Duration period (in weeks) for a batch job
                    PRDMONTHS:
                      type: integer
                      format: int64
                      description: Duration period (in months) for a batch job
                    PERIODIC:
                      type: string
                      maxLength: 1
                      description: Periodic jobs indicator ('X')
                    CALENDARID:
                      type: string
                      maxLength: 2
                      description: Factory calendar ID for background processing
                    IMSTRTPOS:
                      type: string
                      maxLength: 1
                      description: Flag indicating whether job can be started immediately
                    PRDBEHAV:
                      type: string
                      maxLength: 1
                      description: Period behavior of jobs on non-workdays
                    WDAYNO:
                      type: integer
                      format: int64
                      description: No. of workday on which a job is to start
                    WDAYCDIR:
                      type: integer
                      format: int64
                      description: Count direction for 'on workday' start date of a job
                    NOTBEFORE:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                    OPMODE:
                      type: string
                      maxLength: 20
                      description: Operation Mode
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical system
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object key
                    DESCRIBE:
                      type: string
                      maxLength: 10
                      description: Describe flag
                    TSERVER:
                      type: string
                      maxLength: 20
                      description: Server name
                    THOST:
                      type: string
                      maxLength: 32
                      description: Target System to Run Background Job
                    TSRVGRP:
                      type: string
                      maxLength: 20
                      description: Server Group Name Background Processing
                MASK:
                  type: object
                  properties:
                    STARTCOND:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    THOST:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    TSERVER:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    TSRVGRP:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    RECIPLNT:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
              required:
              - EXTERNAL_USER_NAME
              - JOBCOUNT
              - JOBNAME
              - JOB_HEADER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
