openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSCR_CR_SAVE:
    post:
      tags:
      - RSCR
      operationId: /rfc/RSCR_CR_SAVE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_FILESIZE:
                  type: integer
                  format: int32
                I_LANGUAGES:
                  type: string
                  maxLength: 255
                I_MASTERLANGU:
                  type: string
                  maxLength: 1
                I_OBJUID:
                  type: string
                  maxLength: 40
                I_PUBLISH:
                  type: string
                  default: X
                  maxLength: 1
                I_RPTID:
                  type: string
                  maxLength: 25
                I_SYSID:
                  type: string
                  maxLength: 8
                I_URLPATTERN:
                  type: string
                  maxLength: 255
                I_VERSION:
                  type: integer
                  format: int32
                I_T_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: Line for binary document contents, length for upload
                I_T_RPTTEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      RPTID:
                        type: string
                        maxLength: 25
                        description: CR Report ID
                      OBJVERS:
                        type: string
                        maxLength: 1
                        description: 'Object version  enumValues: N=New,A=Active,M=Revised,D=Content,H=Historic,T=Transport'
                        enum:
                        - N
                        - A
                        - M
                        - D
                        - H
                        - T
                      SUBREPORT:
                        type: string
                        maxLength: 120
                        description: char120
                      OBJECT_TYPE:
                        type: string
                        maxLength: 2
                        description: Version Number Component
                      TEXT_TYPE:
                        type: string
                        maxLength: 2
                        description: CR Text Type
                      OBJECT_NAME:
                        type: string
                        maxLength: 64
                        description: Character field, length 64
                      TEXT_ORDNUMC:
                        type: integer
                        format: int64
                        description: CR Textord
                      MAX_LEN:
                        type: integer
                        format: int64
                        description: CR maximum length of a string
                      CRLF:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      TEXT:
                        type: string
                        maxLength: 255
                        description: CR Text
                I_T_USED_QUERIES:
                  type: array
                  items:
                    type: object
                    properties:
                      SUBNR:
                        type: integer
                        format: int64
                        description: Counter for reports
                      GENUNIID:
                        type: string
                        maxLength: 25
                        description: UUID in compressed form
              required:
              - I_FILESIZE
              - I_LANGUAGES
              - I_MASTERLANGU
              - I_OBJUID
              - I_SYSID
              - I_URLPATTERN
              - I_VERSION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_ERROR:
                    type: integer
                    format: int32
                  E_LASTERROR:
                    type: string
                    maxLength: 255
                  E_RPTID:
                    type: string
                    maxLength: 25
                  E_VERSION:
                    type: integer
                    format: int32
                  I_T_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: Line for binary document contents, length for upload
                  I_T_RPTTEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        RPTID:
                          type: string
                          maxLength: 25
                          description: CR Report ID
                        OBJVERS:
                          type: string
                          maxLength: 1
                          description: 'Object version  enumValues: N=New,A=Active,M=Revised,D=Content,H=Historic,T=Transport'
                          enum:
                          - N
                          - A
                          - M
                          - D
                          - H
                          - T
                        SUBREPORT:
                          type: string
                          maxLength: 120
                          description: char120
                        OBJECT_TYPE:
                          type: string
                          maxLength: 2
                          description: Version Number Component
                        TEXT_TYPE:
                          type: string
                          maxLength: 2
                          description: CR Text Type
                        OBJECT_NAME:
                          type: string
                          maxLength: 64
                          description: Character field, length 64
                        TEXT_ORDNUMC:
                          type: integer
                          format: int64
                          description: CR Textord
                        MAX_LEN:
                          type: integer
                          format: int64
                          description: CR maximum length of a string
                        CRLF:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        TEXT:
                          type: string
                          maxLength: 255
                          description: CR Text
                  I_T_USED_QUERIES:
                    type: array
                    items:
                      type: object
                      properties:
                        SUBNR:
                          type: integer
                          format: int64
                          description: Counter for reports
                        GENUNIID:
                          type: string
                          maxLength: 25
                          description: UUID in compressed form
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
