openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ARCHIVE_ADMIN_GET_JOB_INFO:
    post:
      tags:
      - AADM
      summary: Determine Status of the Last or Active Job in a File or in a Session
      operationId: /rfc/ARCHIVE_ADMIN_GET_JOB_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                JOB_STATES:
                  type: object
                  properties:
                    PRELIM:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    SCHED:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    READY:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    RUN:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    FIN:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                    ABORT:
                      type: string
                      maxLength: 1
                      description: State of Background Job
                INFO_REQUESTS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCUMENT:
                        type: integer
                        format: int64
                        description: Archiving Session Number
                      ARCHIV_KEY:
                        type: string
                        maxLength: 20
                        description: Key for Archive File
                      JOBTYPE:
                        type: string
                        maxLength: 3
                        description: 'Category of Data Archiving Job  enumValues: PRE=Preprocessing Job,RET=Retrieval Job,STO=Storage Job,WRP=Write Job from Parallel Process Scheduling,SUB=Schedule Job,FIN=Postprocessing Job (from SARA),DEL=Delete Job,END=Postprocessing Job (from ADK),IDX=Index Job,CON=Conversion Job,REL=Reload Job,REA=Write Job,WRC=Continuation Write Job (Only Used as Subtype)'
                        enum:
                        - PRE
                        - RET
                        - STO
                        - WRP
                        - SUB
                        - FIN
                        - DEL
                        - END
                        - IDX
                        - CON
                        - REL
                        - REA
                        - WRC
                      EXT_USER:
                        type: string
                        maxLength: 16
                        description: 'XMI logging: Name of user in external management tool'
                      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
                      INTREPORT:
                        type: string
                        maxLength: 40
                        description: Name of internal report for batch job
                      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
                      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')
                      DELANFREP:
                        type: string
                        maxLength: 1
                        description: Job deletion indicator after processing
                      EMERGMODE:
                        type: string
                        maxLength: 1
                        description: Emergency Job operation indicator (content 'X')
                      STATUS:
                        type: string
                        maxLength: 1
                        description: State of Background Job
                      NEWFLAG:
                        type: string
                        maxLength: 1
                        description: New job ID creation flag
                      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
                      JOBLOG:
                        type: string
                        maxLength: 20
                        description: TemSe object name
                      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)
                      BTCSYSREAX:
                        type: string
                        maxLength: 32
                        description: Target System to Run Background Job
                      JOBCLASS:
                        type: string
                        maxLength: 1
                        description: Job classification
                      PRIORITY:
                        type: integer
                        format: int32
                        description: Job priority
                      EVENTCOUNT:
                        type: string
                        maxLength: 8
                        description: Event number
                      CHECKSTAT:
                        type: string
                        maxLength: 1
                        description: Job status check indicator for subsequent job start
                      CALENDARID:
                        type: string
                        maxLength: 2
                        description: Factory calendar ID for background processing
                      PRDBEHAV:
                        type: string
                        maxLength: 1
                        description: Period behavior of jobs on non-workdays
                      EXECSERVER:
                        type: string
                        maxLength: 20
                        description: Server name
                      EOMCORRECT:
                        type: integer
                        format: int32
                        description: Correction field for calc. job execution (end-of-mth, cal.)
                      CALCORRECT:
                        type: integer
                        format: int32
                        description: Correction field for calc. job execution (end-of-mth, cal.)
                      REAXSERVER:
                        type: string
                        maxLength: 20
                        description: Server name
                      RECLOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      RECOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      RECOBJKEY:
                        type: string
                        maxLength: 70
                        description: Object key
                      RECDESCRIB:
                        type: string
                        maxLength: 10
                        description: Describe flag
                      TGTSRVGRP:
                        type: string
                        maxLength: 40
                        description: Server Group Name Background Processing
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  INFO_REQUESTS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCUMENT:
                          type: integer
                          format: int64
                          description: Archiving Session Number
                        ARCHIV_KEY:
                          type: string
                          maxLength: 20
                          description: Key for Archive File
                        JOBTYPE:
                          type: string
                          maxLength: 3
                          description: 'Category of Data Archiving Job  enumValues: PRE=Preprocessing Job,RET=Retrieval Job,STO=Storage Job,WRP=Write Job from Parallel Process Scheduling,SUB=Schedule Job,FIN=Postprocessing Job (from SARA),DEL=Delete Job,END=Postprocessing Job (from ADK),IDX=Index Job,CON=Conversion Job,REL=Reload Job,REA=Write Job,WRC=Continuation Write Job (Only Used as Subtype)'
                          enum:
                          - PRE
                          - RET
                          - STO
                          - WRP
                          - SUB
                          - FIN
                          - DEL
                          - END
                          - IDX
                          - CON
                          - REL
                          - REA
                          - WRC
                        EXT_USER:
                          type: string
                          maxLength: 16
                          description: 'XMI logging: Name of user in external management tool'
                        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
                        INTREPORT:
                          type: string
                          maxLength: 40
                          description: Name of internal report for batch job
                        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
                        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')
                        DELANFREP:
                          type: string
                          maxLength: 1
                          description: Job deletion indicator after processing
                        EMERGMODE:
                          type: string
                          maxLength: 1
                          description: Emergency Job operation indicator (content 'X')
                        STATUS:
                          type: string
                          maxLength: 1
                          description: State of Background Job
                        NEWFLAG:
                          type: string
                          maxLength: 1
                          description: New job ID creation flag
                        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
                        JOBLOG:
                          type: string
                          maxLength: 20
                          description: TemSe object name
                        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)
                        BTCSYSREAX:
                          type: string
                          maxLength: 32
                          description: Target System to Run Background Job
                        JOBCLASS:
                          type: string
                          maxLength: 1
                          description: Job classification
                        PRIORITY:
                          type: integer
                          format: int32
                          description: Job priority
                        EVENTCOUNT:
                          type: string
                          maxLength: 8
                          description: Event number
                        CHECKSTAT:
                          type: string
                          maxLength: 1
                          description: Job status check indicator for subsequent job start
                        CALENDARID:
                          type: string
                          maxLength: 2
                          description: Factory calendar ID for background processing
                        PRDBEHAV:
                          type: string
                          maxLength: 1
                          description: Period behavior of jobs on non-workdays
                        EXECSERVER:
                          type: string
                          maxLength: 20
                          description: Server name
                        EOMCORRECT:
                          type: integer
                          format: int32
                          description: Correction field for calc. job execution (end-of-mth, cal.)
                        CALCORRECT:
                          type: integer
                          format: int32
                          description: Correction field for calc. job execution (end-of-mth, cal.)
                        REAXSERVER:
                          type: string
                          maxLength: 20
                          description: Server name
                        RECLOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                        RECOBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        RECOBJKEY:
                          type: string
                          maxLength: 70
                          description: Object key
                        RECDESCRIB:
                          type: string
                          maxLength: 10
                          description: Describe flag
                        TGTSRVGRP:
                          type: string
                          maxLength: 40
                          description: Server Group Name Background Processing
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
