openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_INFOCUBE_READ_REMOTE_DATA:
    post:
      tags:
      - RSDRI
      summary: BAPI for Reading Data from a Remote InfoCube
      operationId: /rfc/BAPI_INFOCUBE_READ_REMOTE_DATA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INFOCUBE:
                  type: string
                  maxLength: 30
                  description: InfoCube Name
                KEYDATE:
                  type: string
                  format: date
                  description: 'Query: Key Date'
                CHARACTERISTICS:
                  type: array
                  items:
                    type: object
                    properties:
                      INFOOBJECT:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'Data type  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number, accurate to 8 bytes,LRAW=Long
                          byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2 field,CURR=Currency field, stored
                          as DEC,SSTR=Short Character String of Variable Length'
                        enum:
                        - NUMC
                        - INT2
                        - DEC
                        - VARC
                        - INT1
                        - RAW
                        - CUKY
                        - QUAN
                        - FLTP
                        - LRAW
                        - PREC
                        - CHAR
                        - ACCP
                        - INT4
                        - RSTR
                        - STRG
                        - LANG
                        - TIMS
                        - UNIT
                        - CLNT
                        - DATS
                        - LCHR
                        - CURR
                        - SSTR
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      OFFSET:
                        type: integer
                        format: int32
                        description: Offset in work area
                      LENGTH:
                        type: integer
                        format: int32
                        description: 'iSeries: Table field length'
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      CONTINUATION:
                        type: string
                        maxLength: 1
                        description: 'Continuation indicator  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      DATA:
                        type: string
                        maxLength: 250
                        description: Generic structure for transferring data
                KEYFIGURES:
                  type: array
                  items:
                    type: object
                    properties:
                      INFOOBJECT:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'Data type  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number, accurate to 8 bytes,LRAW=Long
                          byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2 field,CURR=Currency field, stored
                          as DEC,SSTR=Short Character String of Variable Length'
                        enum:
                        - NUMC
                        - INT2
                        - DEC
                        - VARC
                        - INT1
                        - RAW
                        - CUKY
                        - QUAN
                        - FLTP
                        - LRAW
                        - PREC
                        - CHAR
                        - ACCP
                        - INT4
                        - RSTR
                        - STRG
                        - LANG
                        - TIMS
                        - UNIT
                        - CLNT
                        - DATS
                        - LCHR
                        - CURR
                        - SSTR
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      OFFSET:
                        type: integer
                        format: int32
                        description: Offset in work area
                      LENGTH:
                        type: integer
                        format: int32
                        description: 'iSeries: Table field length'
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                SELECTION:
                  type: array
                  items:
                    type: object
                    properties:
                      EXPRESSION:
                        type: integer
                        format: int64
                        description: 'BW: General reference field for internal IDs'
                      INFOOBJECT:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      LOW:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: From value'
                      HIGH:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: To value'
              required:
              - INFOCUBE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  CHARACTERISTICS:
                    type: array
                    items:
                      type: object
                      properties:
                        INFOOBJECT:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'Data type  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number, accurate to 8
                            bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2 field,CURR=Currency
                            field, stored as DEC,SSTR=Short Character String of Variable Length'
                          enum:
                          - NUMC
                          - INT2
                          - DEC
                          - VARC
                          - INT1
                          - RAW
                          - CUKY
                          - QUAN
                          - FLTP
                          - LRAW
                          - PREC
                          - CHAR
                          - ACCP
                          - INT4
                          - RSTR
                          - STRG
                          - LANG
                          - TIMS
                          - UNIT
                          - CLNT
                          - DATS
                          - LCHR
                          - CURR
                          - SSTR
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        LOWERCASE:
                          type: string
                          maxLength: 1
                          description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        OFFSET:
                          type: integer
                          format: int32
                          description: Offset in work area
                        LENGTH:
                          type: integer
                          format: int32
                          description: 'iSeries: Table field length'
                        CONVEXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Routine
                  DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        CONTINUATION:
                          type: string
                          maxLength: 1
                          description: 'Continuation indicator  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        DATA:
                          type: string
                          maxLength: 250
                          description: Generic structure for transferring data
                  KEYFIGURES:
                    type: array
                    items:
                      type: object
                      properties:
                        INFOOBJECT:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'Data type  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number, accurate to 8
                            bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2 field,CURR=Currency
                            field, stored as DEC,SSTR=Short Character String of Variable Length'
                          enum:
                          - NUMC
                          - INT2
                          - DEC
                          - VARC
                          - INT1
                          - RAW
                          - CUKY
                          - QUAN
                          - FLTP
                          - LRAW
                          - PREC
                          - CHAR
                          - ACCP
                          - INT4
                          - RSTR
                          - STRG
                          - LANG
                          - TIMS
                          - UNIT
                          - CLNT
                          - DATS
                          - LCHR
                          - CURR
                          - SSTR
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        LOWERCASE:
                          type: string
                          maxLength: 1
                          description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        OFFSET:
                          type: integer
                          format: int32
                          description: Offset in work area
                        LENGTH:
                          type: integer
                          format: int32
                          description: 'iSeries: Table field length'
                        CONVEXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Routine
                  SELECTION:
                    type: array
                    items:
                      type: object
                      properties:
                        EXPRESSION:
                          type: integer
                          format: int64
                          description: 'BW: General reference field for internal IDs'
                        INFOOBJECT:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        LOW:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: From value'
                        HIGH:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: To value'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
