openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BP_REMOTE_JOB_SELECT:
    post:
      tags:
      - BTCH
      operationId: /rfc/BP_REMOTE_JOB_SELECT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EXTERNAL_USER_NAME:
                  type: string
                  maxLength: 16
                  description: Name of the SAP-External User
                JOB_SELECT_PARAM:
                  type: object
                  properties:
                    JOBNAME:
                      type: string
                      maxLength: 32
                      description: Background job name
                    JOBCOUNT:
                      type: string
                      maxLength: 8
                      description: Job ID
                    JOBGROUP:
                      type: string
                      maxLength: 12
                      description: Summary of jobs for a group
                    USERNAME:
                      type: string
                      maxLength: 12
                      description: Initiator of job/step scheduling
                    FROM_DATE:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                    FROM_TIME:
                      type: string
                      maxLength: 6
                      description: Planned start time for background Job
                    TO_DATE:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                    TO_TIME:
                      type: string
                      maxLength: 6
                      description: Planned start time for background Job
                    NO_DATE:
                      type: string
                      maxLength: 1
                      description: Selection flag for jobs without start date
                    WITH_PRED:
                      type: string
                      maxLength: 1
                      description: Selection flag for jobs with start after predecessor
                    EVENTID:
                      type: string
                      maxLength: 32
                      description: Background Processing Event
                    EVENTPARM:
                      type: string
                      maxLength: 64
                      description: Background Event Parameters (Such as, Jobname/Jobcount)
                    PRELIM:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    SCHEDUL:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    READY:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    RUNNING:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    FINISHED:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    ABORTED:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                SYSTEMID:
                  type: string
                  maxLength: 8
                JOB_HEAD:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBNAME:
                        type: string
                        maxLength: 32
                        description: Background job name
                      JOBCOUNT:
                        type: string
                        maxLength: 8
                        description: Job ID
                      STEPCOUNT:
                        type: integer
                        format: int32
                        description: Job step ID number.
                      SDLSTRTDT:
                        type: string
                        format: date
                        description: Planned Start Date for Background Job
                      SDLSTRTTM:
                        type: string
                        maxLength: 6
                        description: Planned start time for background Job
                      BTCSYSTEM:
                        type: string
                        maxLength: 32
                        description: Target System to Run Background Job
                      SDLDATE:
                        type: string
                        format: date
                        description: Date of job/step scheduling
                      SDLTIME:
                        type: string
                        maxLength: 6
                        description: Time of a scheduled job/step
                      SDLUNAME:
                        type: string
                        maxLength: 12
                        description: Initiator of job/step scheduling
                      LASTCHDATE:
                        type: string
                        format: date
                        description: Date of last job change
                      LASTCHTIME:
                        type: string
                        maxLength: 6
                        description: Time of last job change
                      LASTCHNAME:
                        type: string
                        maxLength: 12
                        description: Last job change made by
                      RELDATE:
                        type: string
                        format: date
                        description: Release Date for Background Scheduling
                      RELTIME:
                        type: string
                        maxLength: 6
                        description: Release time of scheduled background job
                      RELUNAME:
                        type: string
                        maxLength: 12
                        description: User that released scheduled batch job
                      STRTDATE:
                        type: string
                        format: date
                        description: Job start date
                      STRTTIME:
                        type: string
                        maxLength: 6
                        description: Batch job start time
                      ENDDATE:
                        type: string
                        format: date
                        description: Job start date
                      ENDTIME:
                        type: string
                        maxLength: 6
                        description: Batch job start time
                      PERIODIC:
                        type: string
                        maxLength: 1
                        description: Periodic jobs indicator ('X')
                      STATUS:
                        type: string
                        maxLength: 1
                        description: State of Background Job
                      AUTHCKNAM:
                        type: string
                        maxLength: 12
                        description: Background User Name for Authorization Check
                      AUTHCKMAN:
                        type: string
                        maxLength: 3
                        description: Background client for authorization check
                      SUCCNUM:
                        type: integer
                        format: int32
                        description: Number of successor job(s)
                      PREDNUM:
                        type: integer
                        format: int32
                        description: Number of previous jobs
                      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
                      WPNUMBER:
                        type: integer
                        format: int32
                        description: Work process number
                      WPPROCID:
                        type: integer
                        format: int32
                        description: Work process ID
                      EVENTID:
                        type: string
                        maxLength: 32
                        description: Background Processing Event
                      EVENTPARM:
                        type: string
                        maxLength: 64
                        description: Background Event Parameters (Such as, Jobname/Jobcount)
                      JOBCLASS:
                        type: string
                        maxLength: 1
                        description: Job classification
                      CALENDARID:
                        type: string
                        maxLength: 2
                        description: Factory calendar ID for background processing
                      EXECSERVER:
                        type: string
                        maxLength: 20
                        description: Server name
                      REAXSERVER:
                        type: string
                        maxLength: 20
                        description: Server name
                SELECTED_JOBS:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBNAME:
                        type: string
                        maxLength: 32
                        description: Background job name
                      JOBCOUNT:
                        type: string
                        maxLength: 8
                        description: Job ID
              required:
              - EXTERNAL_USER_NAME
              - JOB_SELECT_PARAM
      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
                  JOB_HEAD:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBNAME:
                          type: string
                          maxLength: 32
                          description: Background job name
                        JOBCOUNT:
                          type: string
                          maxLength: 8
                          description: Job ID
                        STEPCOUNT:
                          type: integer
                          format: int32
                          description: Job step ID number.
                        SDLSTRTDT:
                          type: string
                          format: date
                          description: Planned Start Date for Background Job
                        SDLSTRTTM:
                          type: string
                          maxLength: 6
                          description: Planned start time for background Job
                        BTCSYSTEM:
                          type: string
                          maxLength: 32
                          description: Target System to Run Background Job
                        SDLDATE:
                          type: string
                          format: date
                          description: Date of job/step scheduling
                        SDLTIME:
                          type: string
                          maxLength: 6
                          description: Time of a scheduled job/step
                        SDLUNAME:
                          type: string
                          maxLength: 12
                          description: Initiator of job/step scheduling
                        LASTCHDATE:
                          type: string
                          format: date
                          description: Date of last job change
                        LASTCHTIME:
                          type: string
                          maxLength: 6
                          description: Time of last job change
                        LASTCHNAME:
                          type: string
                          maxLength: 12
                          description: Last job change made by
                        RELDATE:
                          type: string
                          format: date
                          description: Release Date for Background Scheduling
                        RELTIME:
                          type: string
                          maxLength: 6
                          description: Release time of scheduled background job
                        RELUNAME:
                          type: string
                          maxLength: 12
                          description: User that released scheduled batch job
                        STRTDATE:
                          type: string
                          format: date
                          description: Job start date
                        STRTTIME:
                          type: string
                          maxLength: 6
                          description: Batch job start time
                        ENDDATE:
                          type: string
                          format: date
                          description: Job start date
                        ENDTIME:
                          type: string
                          maxLength: 6
                          description: Batch job start time
                        PERIODIC:
                          type: string
                          maxLength: 1
                          description: Periodic jobs indicator ('X')
                        STATUS:
                          type: string
                          maxLength: 1
                          description: State of Background Job
                        AUTHCKNAM:
                          type: string
                          maxLength: 12
                          description: Background User Name for Authorization Check
                        AUTHCKMAN:
                          type: string
                          maxLength: 3
                          description: Background client for authorization check
                        SUCCNUM:
                          type: integer
                          format: int32
                          description: Number of successor job(s)
                        PREDNUM:
                          type: integer
                          format: int32
                          description: Number of previous jobs
                        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
                        WPNUMBER:
                          type: integer
                          format: int32
                          description: Work process number
                        WPPROCID:
                          type: integer
                          format: int32
                          description: Work process ID
                        EVENTID:
                          type: string
                          maxLength: 32
                          description: Background Processing Event
                        EVENTPARM:
                          type: string
                          maxLength: 64
                          description: Background Event Parameters (Such as, Jobname/Jobcount)
                        JOBCLASS:
                          type: string
                          maxLength: 1
                          description: Job classification
                        CALENDARID:
                          type: string
                          maxLength: 2
                          description: Factory calendar ID for background processing
                        EXECSERVER:
                          type: string
                          maxLength: 20
                          description: Server name
                        REAXSERVER:
                          type: string
                          maxLength: 20
                          description: Server name
                  SELECTED_JOBS:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBNAME:
                          type: string
                          maxLength: 32
                          description: Background job name
                        JOBCOUNT:
                          type: string
                          maxLength: 8
                          description: Job ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
