openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDL_READ_SESSION_DATA:
    post:
      tags:
      - BDL3
      summary: Read BDLDTOC and BDLDATCOL entries for a given session
      operationId: /rfc/BDL_READ_SESSION_DATA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EXTENSION:
                  type: string
                  maxLength: 3
                  description: extension
                SESSIONNR:
                  type: string
                  maxLength: 10
                  description: session number
                DATCOL:
                  type: array
                  items:
                    type: object
                    properties:
                      RELID:
                        type: string
                        maxLength: 2
                        description: CHAR02 data element for SYST
                      SESSIONNR:
                        type: string
                        maxLength: 10
                        description: Character Field Length = 10
                      MANDANT:
                        type: string
                        maxLength: 3
                        description: 3-Byte field
                      INSTALL_NO:
                        type: integer
                        format: int64
                        description: 10 digit number
                      SID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      CUST_NO:
                        type: integer
                        format: int64
                        description: 10 digit number
                      CONTRACT:
                        type: string
                        maxLength: 8
                        description: Contract type
                      DESCRIPTIO:
                        type: string
                        maxLength: 8
                        description: Session subtype
                      FUNCMOD:
                        type: string
                        maxLength: 6
                        description: Character field of length 6
                      HOST:
                        type: string
                        maxLength: 32
                        description: Character field, length 32
                      INSTANCE:
                        type: string
                        maxLength: 2
                        description: Version Number Component
                      SEQNO:
                        type: integer
                        format: int64
                        description: Sequence number
                      CONTEXT:
                        type: string
                        maxLength: 20
                        description: Context
                      TYPE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      CODEPAGE:
                        type: integer
                        format: int64
                        description: SAP Character Set ID
                      SRTF2:
                        type: integer
                        format: int32
                        description: BIN4 data element for SYST
                      FILLER:
                        type: string
                        maxLength: 2
                        description: CHAR02 data element for SYST
                      CLUSTR:
                        type: integer
                        format: int32
                        description: BIN2 data element for SYST
                      CLUSTD:
                        type: string
                        format: byte
                        description: 'Data cluster MONI: Long raw'
                DTOC:
                  type: array
                  items:
                    type: object
                    properties:
                      SESSIONNR:
                        type: string
                        maxLength: 10
                        description: Character Field Length = 10
                      MANDANT:
                        type: string
                        maxLength: 3
                        description: 3-Byte field
                      INSTALL_NO:
                        type: integer
                        format: int64
                        description: 10 digit number
                      SID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      CUST_NO:
                        type: integer
                        format: int64
                        description: 10 digit number
                      CONTRACT:
                        type: string
                        maxLength: 8
                        description: Contract type
                      DESCRIPTIO:
                        type: string
                        maxLength: 8
                        description: Session subtype
                      FUNCMOD:
                        type: string
                        maxLength: 6
                        description: Character field of length 6
                      HOST:
                        type: string
                        maxLength: 32
                        description: Character field, length 32
                      INSTANCE:
                        type: string
                        maxLength: 2
                        description: Version Number Component
                      SEQNO:
                        type: integer
                        format: int64
                        description: Sequence number
                      CONTEXT:
                        type: string
                        maxLength: 20
                        description: Context
                      TYPE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      CODEPAGE:
                        type: integer
                        format: int64
                        description: SAP Character Set ID
                      DATUM:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      UHRZEIT:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      TRANSFER:
                        type: string
                        maxLength: 1
                        description: Status of data transfer
                      LOGFUNC:
                        type: string
                        maxLength: 30
                        description: Logical name
              required:
              - EXTENSION
              - SESSIONNR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DATCOL:
                    type: array
                    items:
                      type: object
                      properties:
                        RELID:
                          type: string
                          maxLength: 2
                          description: CHAR02 data element for SYST
                        SESSIONNR:
                          type: string
                          maxLength: 10
                          description: Character Field Length = 10
                        MANDANT:
                          type: string
                          maxLength: 3
                          description: 3-Byte field
                        INSTALL_NO:
                          type: integer
                          format: int64
                          description: 10 digit number
                        SID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        CUST_NO:
                          type: integer
                          format: int64
                          description: 10 digit number
                        CONTRACT:
                          type: string
                          maxLength: 8
                          description: Contract type
                        DESCRIPTIO:
                          type: string
                          maxLength: 8
                          description: Session subtype
                        FUNCMOD:
                          type: string
                          maxLength: 6
                          description: Character field of length 6
                        HOST:
                          type: string
                          maxLength: 32
                          description: Character field, length 32
                        INSTANCE:
                          type: string
                          maxLength: 2
                          description: Version Number Component
                        SEQNO:
                          type: integer
                          format: int64
                          description: Sequence number
                        CONTEXT:
                          type: string
                          maxLength: 20
                          description: Context
                        TYPE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        CODEPAGE:
                          type: integer
                          format: int64
                          description: SAP Character Set ID
                        SRTF2:
                          type: integer
                          format: int32
                          description: BIN4 data element for SYST
                        FILLER:
                          type: string
                          maxLength: 2
                          description: CHAR02 data element for SYST
                        CLUSTR:
                          type: integer
                          format: int32
                          description: BIN2 data element for SYST
                        CLUSTD:
                          type: string
                          format: byte
                          description: 'Data cluster MONI: Long raw'
                  DTOC:
                    type: array
                    items:
                      type: object
                      properties:
                        SESSIONNR:
                          type: string
                          maxLength: 10
                          description: Character Field Length = 10
                        MANDANT:
                          type: string
                          maxLength: 3
                          description: 3-Byte field
                        INSTALL_NO:
                          type: integer
                          format: int64
                          description: 10 digit number
                        SID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        CUST_NO:
                          type: integer
                          format: int64
                          description: 10 digit number
                        CONTRACT:
                          type: string
                          maxLength: 8
                          description: Contract type
                        DESCRIPTIO:
                          type: string
                          maxLength: 8
                          description: Session subtype
                        FUNCMOD:
                          type: string
                          maxLength: 6
                          description: Character field of length 6
                        HOST:
                          type: string
                          maxLength: 32
                          description: Character field, length 32
                        INSTANCE:
                          type: string
                          maxLength: 2
                          description: Version Number Component
                        SEQNO:
                          type: integer
                          format: int64
                          description: Sequence number
                        CONTEXT:
                          type: string
                          maxLength: 20
                          description: Context
                        TYPE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        CODEPAGE:
                          type: integer
                          format: int64
                          description: SAP Character Set ID
                        DATUM:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        UHRZEIT:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        TRANSFER:
                          type: string
                          maxLength: 1
                          description: Status of data transfer
                        LOGFUNC:
                          type: string
                          maxLength: 30
                          description: Logical name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
