openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_PHIO_LOAD_CONTENT:
    post:
      tags:
      - SDCL
      summary: Load Content of a Physical Object into an Internal Table
      operationId: /rfc/SDOK_PHIO_LOAD_CONTENT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AS_IS_MODE:
                  type: string
                  maxLength: 1
                  description: '''X'' --> Binary Test Transfer Allowed'
                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
                RAW_MODE:
                  type: string
                  maxLength: 1
                  description: '''X'' --> Text Components Requested in Binary Format'
                TEXT_AS_STREAM:
                  type: string
                  maxLength: 1
                  description: '''X'' --> Compact Text Display with CR-LF'
                FILE_ACCESS_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      FILE_SIZE:
                        type: integer
                        format: int64
                        description: File size (in bytes)
                      BINARY_FLG:
                        type: string
                        maxLength: 1
                        description: 'Flag for binary files  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      FIRST_LINE:
                        type: integer
                        format: int64
                        description: Line number in internal table
                      LAST_LINE:
                        type: integer
                        format: int64
                        description: Line number in internal table
                      FILE_NAME:
                        type: string
                        maxLength: 255
                        description: Relative storage location of physical document
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: HTML content type
                      PROPERTY:
                        type: string
                        maxLength: 4
                        description: Component attribute for the application
                FILE_CONTENT_ASCII:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 1022
                        description: Line for text document contents, length as during upload
                FILE_CONTENT_BINARY:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: Line for binary document contents, length for upload
              required:
              - OBJECT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FILE_ACCESS_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        FILE_SIZE:
                          type: integer
                          format: int64
                          description: File size (in bytes)
                        BINARY_FLG:
                          type: string
                          maxLength: 1
                          description: 'Flag for binary files  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        FIRST_LINE:
                          type: integer
                          format: int64
                          description: Line number in internal table
                        LAST_LINE:
                          type: integer
                          format: int64
                          description: Line number in internal table
                        FILE_NAME:
                          type: string
                          maxLength: 255
                          description: Relative storage location of physical document
                        MIMETYPE:
                          type: string
                          maxLength: 128
                          description: HTML content type
                        PROPERTY:
                          type: string
                          maxLength: 4
                          description: Component attribute for the application
                  FILE_CONTENT_ASCII:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 1022
                          description: Line for text document contents, length as during upload
                  FILE_CONTENT_BINARY:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: Line for binary document contents, length for upload
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
