openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SO_HISTORY_CORRESPONDEND_GET:
    post:
      tags:
      - SOB5
      operationId: /rfc/SO_HISTORY_CORRESPONDEND_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OBJECT_ID:
                  type: object
                  properties:
                    OBJTP:
                      type: string
                      maxLength: 3
                      description: Code for document class
                    OBJYR:
                      type: string
                      maxLength: 2
                      description: 'Object: Year from ID'
                    OBJNO:
                      type: string
                      maxLength: 12
                      description: 'Object: Number from ID'
                OWNER:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: Name of object
                RECEIVER:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: Recipient
                RECNO:
                  type: string
                  maxLength: 12
                  description: Recipient
                RECTP:
                  type: string
                  maxLength: 3
                  description: Recipient
                RECYR:
                  type: string
                  maxLength: 2
                  description: Recipient
                SNDNO:
                  type: string
                  maxLength: 12
                  description: Recipient
                SNDTP:
                  type: string
                  maxLength: 3
                  description: Recipient
                SNDYR:
                  type: string
                  maxLength: 2
                  description: Recipient
                USR_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      USRTP:
                        type: string
                        maxLength: 3
                        description: User type from ID
                      USRYR:
                        type: string
                        maxLength: 2
                        description: User year from the ID
                      USRNO:
                        type: string
                        maxLength: 12
                        description: User number from the ID
                      USRNAM:
                        type: string
                        maxLength: 12
                        description: SAPoffice user name
                      ADRNAME:
                        type: string
                        maxLength: 35
                        description: 'SAPoffice: Recipient name'
                      DISPFIELD:
                        type: string
                        maxLength: 15
                        description: 'SAPoffice: Display field for correspondence (optional)'
                      DISPF2:
                        type: string
                        maxLength: 15
                        description: 'SAPoffice: Display field for correspondence (optional)'
                      OBJTP:
                        type: string
                        maxLength: 3
                        description: Code for document class
                      OBJYR:
                        type: string
                        maxLength: 2
                        description: 'Object: Year from ID'
                      OBJNO:
                        type: string
                        maxLength: 12
                        description: 'Object: Number from ID'
                      FORTP:
                        type: string
                        maxLength: 3
                        description: 'Forwarder: Object type from ID'
                      FORYR:
                        type: string
                        maxLength: 2
                        description: 'Forwarder: year from the ID'
                      FORNO:
                        type: string
                        maxLength: 12
                        description: 'Forwarder: number from the ID'
                      RECTP:
                        type: string
                        maxLength: 3
                        description: Recipient type from ID
                      RECYR:
                        type: string
                        maxLength: 2
                        description: Recipient year from the ID
                      RECNO:
                        type: string
                        maxLength: 12
                        description: Recipient number from ID
              required:
              - OBJECT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  USR_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        USRTP:
                          type: string
                          maxLength: 3
                          description: User type from ID
                        USRYR:
                          type: string
                          maxLength: 2
                          description: User year from the ID
                        USRNO:
                          type: string
                          maxLength: 12
                          description: User number from the ID
                        USRNAM:
                          type: string
                          maxLength: 12
                          description: SAPoffice user name
                        ADRNAME:
                          type: string
                          maxLength: 35
                          description: 'SAPoffice: Recipient name'
                        DISPFIELD:
                          type: string
                          maxLength: 15
                          description: 'SAPoffice: Display field for correspondence (optional)'
                        DISPF2:
                          type: string
                          maxLength: 15
                          description: 'SAPoffice: Display field for correspondence (optional)'
                        OBJTP:
                          type: string
                          maxLength: 3
                          description: Code for document class
                        OBJYR:
                          type: string
                          maxLength: 2
                          description: 'Object: Year from ID'
                        OBJNO:
                          type: string
                          maxLength: 12
                          description: 'Object: Number from ID'
                        FORTP:
                          type: string
                          maxLength: 3
                          description: 'Forwarder: Object type from ID'
                        FORYR:
                          type: string
                          maxLength: 2
                          description: 'Forwarder: year from the ID'
                        FORNO:
                          type: string
                          maxLength: 12
                          description: 'Forwarder: number from the ID'
                        RECTP:
                          type: string
                          maxLength: 3
                          description: Recipient type from ID
                        RECYR:
                          type: string
                          maxLength: 2
                          description: Recipient year from the ID
                        RECNO:
                          type: string
                          maxLength: 12
                          description: Recipient number from ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
