openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDS_BUSINESSDOCUMENT_CRE_NV_T:
    post:
      tags:
      - BDS_BAPI
      operationId: /rfc/BDS_BUSINESSDOCUMENT_CRE_NV_T
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BINARY_FLAG:
                  type: string
                  default: X
                  maxLength: 1
                CLASSNAME:
                  type: string
                  maxLength: 30
                CLASSTYPE:
                  type: string
                  maxLength: 2
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                DOC_ID:
                  type: string
                  maxLength: 42
                DOC_VAR_ID:
                  type: integer
                  format: int64
                DOC_VER_NO:
                  type: integer
                  format: int64
                LOGICAL_SYSTEM:
                  type: string
                  maxLength: 10
                OBJECT_KEY:
                  type: string
                  maxLength: 70
                ASCII_CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 1022
                        description: Line for text document contents, length as during upload
                COMPONENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNT:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Document counter'
                      COMP_COUNT:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Component counter'
                      COMP_ID:
                        type: string
                        maxLength: 255
                        description: 'Business Document Service: Component ID'
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: 'Business Document Service: MIME type'
                      COMP_SIZE:
                        type: integer
                        format: int64
                        description: 'Business Document Service: Component size'
                CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: Line for binary document contents, length for upload
                PROPERTIES:
                  type: array
                  items:
                    type: object
                    properties:
                      PROP_NAME:
                        type: string
                        maxLength: 25
                        description: 'Business Document Service: Attribute Name'
                      PROP_VALUE:
                        type: string
                        maxLength: 64
                        description: 'Business Document Service: Attribute value'
              required:
              - CLASSNAME
              - CLASSTYPE
              - DOC_ID
              - DOC_VAR_ID
              - DOC_VER_NO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_DOC_VER_NO:
                    type: integer
                    format: int64
                  ASCII_CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 1022
                          description: Line for text document contents, length as during upload
                  COMPONENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNT:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Document counter'
                        COMP_COUNT:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Component counter'
                        COMP_ID:
                          type: string
                          maxLength: 255
                          description: 'Business Document Service: Component ID'
                        MIMETYPE:
                          type: string
                          maxLength: 128
                          description: 'Business Document Service: MIME type'
                        COMP_SIZE:
                          type: integer
                          format: int64
                          description: 'Business Document Service: Component size'
                  CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: Line for binary document contents, length for upload
                  PROPERTIES:
                    type: array
                    items:
                      type: object
                      properties:
                        PROP_NAME:
                          type: string
                          maxLength: 25
                          description: 'Business Document Service: Attribute Name'
                        PROP_VALUE:
                          type: string
                          maxLength: 64
                          description: 'Business Document Service: Attribute value'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
