openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/XDA_SCHEDULE_JOB:
    post:
      tags:
      - ARCXDA
      summary: Schedule Data Archiving Job
      operationId: /rfc/XDA_SCHEDULE_JOB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                APP_SERVER_NAME:
                  type: string
                  maxLength: 40
                  description: New Application Server Name Length (Since 6.10)
                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'
                CLEANUP_JOB_TABLE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: '''X'': Remove Entries for Non-Existent Jobs from ADMI_JOBS/ADMI_RJOBS'
                DELETE_FAILED_JOB:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: '''X'': Delete the Job if Scheduling Not Successful'
                DONT_RELEASE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: '''X'': Schedule without Releasing'
                EXT_USER:
                  type: string
                  maxLength: 16
                  description: Name of a User in an External Management Tool
                FILE_KEY:
                  type: string
                  maxLength: 20
                  description: Key for Archive File
                JOBTYPE:
                  type: string
                  maxLength: 3
                  description: Category of Data Archiving 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'
                READ_OR_INDEX_PROG:
                  type: string
                  maxLength: 40
                  description: ABAP Program Name
                SESSION:
                  type: integer
                  format: int64
                  description: Archiving Session Number
                SUB_JOB_SUCCESSOR:
                  type: string
                  maxLength: 3
                  description: Category of Data Archiving Job
                TARGETGROUP:
                  type: string
                  maxLength: 20
                  description: Server Group Name Background Processing
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: Name of the User for Authorization Check
                VARIANT:
                  type: string
                  maxLength: 14
                  description: 'ABAP: Name of Variant (Without Program Name)'
                FILES_TO_BE_READ:
                  type: array
                  items:
                    type: object
                    properties:
                      ARCHIV_KEY:
                        type: string
                        maxLength: 20
                        description: Key for Archive File
              required:
              - JOBTYPE
              - OBJECT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  JOBCOUNT:
                    type: string
                    maxLength: 8
                    description: Identification Number of the Archive Job
                  JOBNAME:
                    type: string
                    maxLength: 32
                    description: Name of the Archive Job
                  FILES_TO_BE_READ:
                    type: array
                    items:
                      type: object
                      properties:
                        ARCHIV_KEY:
                          type: string
                          maxLength: 20
                          description: Key for Archive File
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
