openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ARCHIV_INSERT_TOADL:
    post:
      tags:
      - OPTF
      operationId: /rfc/ARCHIV_INSERT_TOADL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CFBC_STRUCT:
                  type: object
                  properties:
                    FUNCTION:
                      type: string
                      maxLength: 4
                      description: SAP ArchiveLink name of function to be called
                    SIGN:
                      type: string
                      maxLength: 40
                      description: 'SAP ArchiveLink: Reference character'
                    RET_CODE:
                      type: string
                      maxLength: 5
                      description: SAP ArchiveLink return code
                    MANDANT:
                      type: string
                      maxLength: 3
                      description: Client
                    DEL_DATE:
                      type: string
                      format: date
                      description: Expiry Date
                    SAP_OBJECT:
                      type: string
                      maxLength: 10
                      description: 'SAP ArchiveLink: Object type of business object'
                    AR_OBJECT:
                      type: string
                      maxLength: 10
                      description: Document type
                    OBJECT_ID:
                      type: string
                      maxLength: 50
                      description: 'SAP ArchiveLink: Object ID (object identifier)'
                    RESERVE:
                      type: string
                      maxLength: 27
                      description: 'SAP ArchiveLink: Reserved for future application'
                    ARCHIV_ID:
                      type: string
                      maxLength: 10
                      description: 'SAP ArchiveLink: Storage system ID'
                    ARC_DOC_ID:
                      type: string
                      maxLength: 40
                      description: 'SAP ArchiveLink: Document ID'
                    DATALENGTH:
                      type: integer
                      format: int64
                      description: Numeric field 12
                    DESCLENGTH:
                      type: integer
                      format: int64
                      description: Numeric field 12
                    D_ARC_D_ID:
                      type: string
                      maxLength: 40
                      description: 'SAP ArchiveLink: Document ID'
                HANDLE_FLAG:
                  type: string
                  default: ' '
                  maxLength: 1
                MANDANT:
                  type: string
                  default: ' '
                  maxLength: 3
                  description: Client
                SIGN:
                  type: string
                  default: ' '
                  maxLength: 40
                SPOOL_STRUCT:
                  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'
              required:
              - CFBC_STRUCT
              - SPOOL_STRUCT
      responses:
        '200':
          description: OK
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
