openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_PHIO_FROM_RELATIONS_GET:
    post:
      tags:
      - SDCL
      summary: Identify Incoming Relationships for a Physical Document
      operationId: /rfc/SDOK_PHIO_FROM_RELATIONS_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                OBJECT_ID:
                  type: object
                  properties:
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                RELATION_CLASS:
                  type: string
                  maxLength: 10
                  description: Relationship Class
                CLASS_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      RE_CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      PRTN_CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                RESULT:
                  type: array
                  items:
                    type: object
                    properties:
                      REIO_ID:
                        type: string
                        maxLength: 32
                        description: Relationship between logical and physical documents
                      RE_CLASS:
                        type: string
                        maxLength: 10
                        description: Relationship class
                      PRTN_ID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      PRTN_CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
              required:
              - OBJECT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CLASS_FILTER:
                    type: array
                    items:
                      type: object
                      properties:
                        RE_CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                        PRTN_CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                  RESULT:
                    type: array
                    items:
                      type: object
                      properties:
                        REIO_ID:
                          type: string
                          maxLength: 32
                          description: Relationship between logical and physical documents
                        RE_CLASS:
                          type: string
                          maxLength: 10
                          description: Relationship class
                        PRTN_ID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        PRTN_CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
