openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ARCHIVE_ADMIN_SCHEDULE_WRI_JOB:
    post:
      tags:
      - AADM
      summary: Schedule Write Job for Parallel, Partial Archiving
      operationId: /rfc/ARCHIVE_ADMIN_SCHEDULE_WRI_JOB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ARCH_PARAMETERS:
                  type: object
                  properties:
                    SAP_OBJECT:
                      type: string
                      maxLength: 10
                      description: 'SAP ArchiveLink: Object type of business object'
                    AR_OBJECT:
                      type: string
                      maxLength: 10
                      description: Document type
                    ARCHIV_ID:
                      type: string
                      maxLength: 2
                      description: 'SAP ArchiveLink: Target storage system'
                    DOC_TYPE:
                      type: string
                      maxLength: 20
                      description: 'SAP ArchiveLink: Document class'
                    RPC_HOST:
                      type: string
                      maxLength: 32
                      description: SAP ArchiveLink RPC host
                    RPC_SERVIC:
                      type: string
                      maxLength: 32
                      description: 'SAP ArchiveLink: RPC service / RFC destination'
                    INTERFACE:
                      type: string
                      maxLength: 14
                      description: 'SAP ArchiveLink: Name of communication connection component'
                    MANDANT:
                      type: string
                      maxLength: 3
                      description: Client
                    REPORT:
                      type: string
                      maxLength: 40
                      description: SAP ArchiveLink Report Name
                    INFO:
                      type: string
                      maxLength: 3
                      description: 'SAP ArchiveLink: Info field'
                    ARCTEXT:
                      type: string
                      maxLength: 40
                      description: 'SAP ArchiveLink: Text information field'
                    DATUM:
                      type: string
                      maxLength: 8
                      description: 'SAP ArchiveLink: Archiving date'
                    ARCUSER:
                      type: string
                      maxLength: 12
                      description: Data element for user
                    PRINTER:
                      type: string
                      maxLength: 4
                      description: 'SAP ArchiveLink: Specify target printer'
                    FORMULAR:
                      type: string
                      maxLength: 16
                      description: 'SAP ArchiveLink: Output format'
                    ARCHIVPATH:
                      type: string
                      maxLength: 70
                      description: 'SAP ArchiveLink: Standard archive path'
                    PROTOKOLL:
                      type: string
                      maxLength: 8
                      description: 'SAP ArchiveLink: Storage connection protocol'
                    VERSION:
                      type: string
                      maxLength: 4
                      description: 'SAP ArchiveLink: Version number  enumValues: 0031=SAP ArchiveLink Interface 3.1,*=SAP ArchiveLink Interface Default Version ''*'',0045=SAP ArchiveLink HTTP Content Server Interface 4.5,0046=SAP ArchiveLink HTTP Content Server Interface 4.6'
                      enum:
                      - '0031'
                      - '*'
                      - '0045'
                      - '0046'
                    ACHECK:
                      type: integer
                      format: int32
                      description: 'Print: Check sum for print and archiving parameters'
                JOB_START:
                  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)
                    STARTDTTYP:
                      type: string
                      maxLength: 1
                      description: Start date type ID
                    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')
                    INSTNAME:
                      type: string
                      maxLength: 20
                      description: Server name
                    CALENDARID:
                      type: string
                      maxLength: 2
                      description: Factory calendar ID for background processing
                    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.)
                    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
                OBJECT:
                  type: string
                  maxLength: 10
                  description: Archiving Object
                PRINT_PARAMETERS:
                  type: object
                  properties:
                    PDEST:
                      type: string
                      maxLength: 4
                      description: Output Device (Print Parameters)
                    PRCOP:
                      type: integer
                      format: int64
                      description: Number of Copies (Print Parameters)
                    PLIST:
                      type: string
                      maxLength: 12
                      description: Name of Spool Request (Print Parameters)
                    PRTXT:
                      type: string
                      maxLength: 68
                      description: Text for Cover Page (Print Parameters)
                    PRIMM:
                      type: string
                      maxLength: 1
                      description: Print Immediately (Print Parameters)
                    PRREL:
                      type: string
                      maxLength: 1
                      description: Delete After Printing (Print Parameters)
                    PRNEW:
                      type: string
                      maxLength: 1
                      description: New Spool Request (Print Parameters)
                    PEXPI:
                      type: integer
                      format: int64
                      description: Spool Retention Period (Print Parameters)
                    LINCT:
                      type: integer
                      format: int32
                      description: Page Length of List
                    LINSZ:
                      type: integer
                      format: int32
                      description: Line width of list
                    PAART:
                      type: string
                      maxLength: 16
                      description: Print Format (Print Parameters)
                    PRBIG:
                      type: string
                      maxLength: 1
                      description: Selection Cover Page (Print Parameters)
                    PRSAP:
                      type: string
                      maxLength: 1
                      description: 'Print: SAP cover page  enumValues: X=Print,""=Do Not Print,D=Default (Printer Setting)'
                      enum:
                      - X
                      - ''
                      - D
                    PRREC:
                      type: string
                      maxLength: 12
                      description: Recipient (Print Parameters)
                    PRABT:
                      type: string
                      maxLength: 12
                      description: Department on Cover Page (Print Parameters)
                    PRBER:
                      type: string
                      maxLength: 12
                      description: 'Print: Authorization'
                    PRDSN:
                      type: string
                      maxLength: 6
                      description: Name of Spool File
                    PTYPE:
                      type: string
                      maxLength: 12
                      description: 'Print: Type of spool request'
                    ARMOD:
                      type: string
                      maxLength: 1
                      description: 'Print: Archiving mode  enumValues: 1=Print only,2=Archive only,3=Print and archive'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                    FOOTL:
                      type: string
                      maxLength: 1
                      description: 'Print: Output footer'
                    PRIOT:
                      type: integer
                      format: int64
                      description: 'PRINT: Spool request priority'
                    PRUNX:
                      type: string
                      maxLength: 1
                      description: 'PRINT: Host spool cover page  enumValues: X=Print,""=Do Not Print,D=Default (Printer Setting)'
                      enum:
                      - X
                      - ''
                      - D
                    PRKEYEXT:
                      type: string
                      maxLength: 16
                      description: Key for print parameters
                    PRCHK:
                      type: integer
                      format: int32
                      description: 'Print: Check sum for print and archiving parameters'
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: Background User Name for Authorization Check
                VARIANT:
                  type: string
                  default: ' '
                  maxLength: 14
                  description: Variant Name
                SELECTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      SELNAME:
                        type: string
                        maxLength: 8
                        description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                      KIND:
                        type: string
                        maxLength: 1
                        description: 'ABAP: Type of selection'
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'ABAP: ID: I/E (include/exclude values)'
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'ABAP: Selection option (EQ/BT/CP/...)'
                      LOW:
                        type: string
                        maxLength: 45
                        description: 'ABAP/4: Selection value (LOW or HIGH value, external format)'
                      HIGH:
                        type: string
                        maxLength: 45
                        description: 'ABAP/4: Selection value (LOW or HIGH value, external format)'
              required:
              - OBJECT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  JOBCOUNT:
                    type: string
                    maxLength: 8
                    description: Background Job Number
                  JOBNAME:
                    type: string
                    maxLength: 32
                    description: Background Job Name
                  SELECTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        SELNAME:
                          type: string
                          maxLength: 8
                          description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                        KIND:
                          type: string
                          maxLength: 1
                          description: 'ABAP: Type of selection'
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'ABAP: ID: I/E (include/exclude values)'
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'ABAP: Selection option (EQ/BT/CP/...)'
                        LOW:
                          type: string
                          maxLength: 45
                          description: 'ABAP/4: Selection value (LOW or HIGH value, external format)'
                        HIGH:
                          type: string
                          maxLength: 45
                          description: 'ABAP/4: Selection value (LOW or HIGH value, external format)'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
