openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IDOC_RECORD_READ:
    post:
      tags:
      - EDIMEXT
      summary: Read IDoc record types (RFC-compatible)
      operationId: /rfc/IDOC_RECORD_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PI_VERSION:
                  type: string
                  default: '3'
                  maxLength: 1
                  description: Version of IDoc record types
                DC_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      RECORD:
                        type: string
                        maxLength: 30
                        description: Name of internal structure
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      EXTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      FIELD_POS:
                        type: integer
                        format: int64
                        description: Position number of field
                      BYTE_FIRST:
                        type: integer
                        format: int64
                        description: Position of first byte
                      BYTE_LAST:
                        type: integer
                        format: int64
                        description: Position of last byte
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter  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
                      DESCRP:
                        type: string
                        maxLength: 60
                        description: Short description of object
                      VALUETAB:
                        type: string
                        maxLength: 30
                        description: Value table for IDoc segm. field
                DD_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      RECORD:
                        type: string
                        maxLength: 30
                        description: Name of internal structure
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      EXTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      FIELD_POS:
                        type: integer
                        format: int64
                        description: Position number of field
                      BYTE_FIRST:
                        type: integer
                        format: int64
                        description: Position of first byte
                      BYTE_LAST:
                        type: integer
                        format: int64
                        description: Position of last byte
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter  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
                      DESCRP:
                        type: string
                        maxLength: 60
                        description: Short description of object
                      VALUETAB:
                        type: string
                        maxLength: 30
                        description: Value table for IDoc segm. field
                DS_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      RECORD:
                        type: string
                        maxLength: 30
                        description: Name of internal structure
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      EXTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      FIELD_POS:
                        type: integer
                        format: int64
                        description: Position number of field
                      BYTE_FIRST:
                        type: integer
                        format: int64
                        description: Position of first byte
                      BYTE_LAST:
                        type: integer
                        format: int64
                        description: Position of last byte
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter  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
                      DESCRP:
                        type: string
                        maxLength: 60
                        description: Short description of object
                      VALUETAB:
                        type: string
                        maxLength: 30
                        description: Value table for IDoc segm. field
                PT_FVALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      STRNAME:
                        type: string
                        maxLength: 30
                        description: Name of internal structure
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      FLDVALUE_L:
                        type: string
                        maxLength: 10
                        description: Lower value/single value
                      FLDVALUE_H:
                        type: string
                        maxLength: 10
                        description: Upper value
                      DESCRP:
                        type: string
                        maxLength: 60
                        description: Explanatory short text
                PT_HEADER:
                  type: array
                  items:
                    type: object
                    properties:
                      DDIC_NAME:
                        type: string
                        maxLength: 30
                        description: Name of internal structure
                      DESCRP:
                        type: string
                        maxLength: 60
                        description: Explanatory short text
                      VERSION:
                        type: string
                        maxLength: 1
                        description: 'Version of IDoc record types  enumValues: 2=IDoc record types SAP Release 3.0/3.1,1=IDoc record types SAP Release 2.0/2.1,3=IDoc record types for SAP Release 4.0'
                        enum:
                        - '2'
                        - '1'
                        - '3'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DC_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        RECORD:
                          type: string
                          maxLength: 30
                          description: Name of internal structure
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        EXTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        FIELD_POS:
                          type: integer
                          format: int64
                          description: Position number of field
                        BYTE_FIRST:
                          type: integer
                          format: int64
                          description: Position of first byte
                        BYTE_LAST:
                          type: integer
                          format: int64
                          description: Position of last byte
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter  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
                        DESCRP:
                          type: string
                          maxLength: 60
                          description: Short description of object
                        VALUETAB:
                          type: string
                          maxLength: 30
                          description: Value table for IDoc segm. field
                  DD_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        RECORD:
                          type: string
                          maxLength: 30
                          description: Name of internal structure
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        EXTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        FIELD_POS:
                          type: integer
                          format: int64
                          description: Position number of field
                        BYTE_FIRST:
                          type: integer
                          format: int64
                          description: Position of first byte
                        BYTE_LAST:
                          type: integer
                          format: int64
                          description: Position of last byte
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter  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
                        DESCRP:
                          type: string
                          maxLength: 60
                          description: Short description of object
                        VALUETAB:
                          type: string
                          maxLength: 30
                          description: Value table for IDoc segm. field
                  DS_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        RECORD:
                          type: string
                          maxLength: 30
                          description: Name of internal structure
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        EXTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        FIELD_POS:
                          type: integer
                          format: int64
                          description: Position number of field
                        BYTE_FIRST:
                          type: integer
                          format: int64
                          description: Position of first byte
                        BYTE_LAST:
                          type: integer
                          format: int64
                          description: Position of last byte
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter  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
                        DESCRP:
                          type: string
                          maxLength: 60
                          description: Short description of object
                        VALUETAB:
                          type: string
                          maxLength: 30
                          description: Value table for IDoc segm. field
                  PT_FVALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        STRNAME:
                          type: string
                          maxLength: 30
                          description: Name of internal structure
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        FLDVALUE_L:
                          type: string
                          maxLength: 10
                          description: Lower value/single value
                        FLDVALUE_H:
                          type: string
                          maxLength: 10
                          description: Upper value
                        DESCRP:
                          type: string
                          maxLength: 60
                          description: Explanatory short text
                  PT_HEADER:
                    type: array
                    items:
                      type: object
                      properties:
                        DDIC_NAME:
                          type: string
                          maxLength: 30
                          description: Name of internal structure
                        DESCRP:
                          type: string
                          maxLength: 60
                          description: Explanatory short text
                        VERSION:
                          type: string
                          maxLength: 1
                          description: 'Version of IDoc record types  enumValues: 2=IDoc record types SAP Release 3.0/3.1,1=IDoc record types SAP Release 2.0/2.1,3=IDoc record types for SAP Release 4.0'
                          enum:
                          - '2'
                          - '1'
                          - '3'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
