openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ARCHIV_PROCESS_RFCINPUT:
    post:
      tags:
      - OA01
      operationId: /rfc/ARCHIV_PROCESS_RFCINPUT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DOCUMENT_ENTRY:
                  type: object
                  properties:
                    ARCHIV_ID:
                      type: string
                      maxLength: 2
                      description: Content Repository Identification
                    ARC_DOC_ID:
                      type: string
                      maxLength: 40
                      description: 'SAP ArchiveLink: Document ID'
                    AR_OBJECT:
                      type: string
                      maxLength: 10
                      description: Document type
                    DOC_TYPE:
                      type: string
                      maxLength: 20
                      description: 'SAP ArchiveLink: Document class'
                    BARCODE:
                      type: string
                      maxLength: 40
                      description: 'SAP ArchiveLink: Document ID'
                    LATE:
                      type: string
                      maxLength: 1
                      description: Control for External Start of Workflows
                ORGOBJECT:
                  type: object
                  properties:
                    OTYPE:
                      type: string
                      maxLength: 2
                      description: Object Type
                    OBJID:
                      type: string
                      maxLength: 12
                      description: Agent ID in Organizational Management
                DOCUMENT_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 255
                        description: Char255
                      WERT:
                        type: string
                        maxLength: 255
                        description: Char255
              required:
              - DOCUMENT_ENTRY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGESTRING:
                    type: string
                    description: Error message
                  OKCODE:
                    type: string
                    maxLength: 20
                    description: ABAP Program, Current Transaction Code
                  DOCUMENT_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 255
                          description: Char255
                        WERT:
                          type: string
                          maxLength: 255
                          description: Char255
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
