openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDL_GENERATE_REPORTS:
    post:
      tags:
      - BDL3
      summary: Check and generate reports for collecting data
      operationId: /rfc/BDL_GENERATE_REPORTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SERVICETYPE:
                  type: string
                  maxLength: 1
                SESSION:
                  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
                    DATUM:
                      type: string
                      format: date
                      description: Current Date of Application Server
                    UHRZEIT:
                      type: string
                      maxLength: 6
                      description: Current Time of Application Server
                    CODEPAGE:
                      type: integer
                      format: int64
                      description: SAP Character Set ID
                SY_DATUM:
                  type: string
                  format: date
                  description: Date and time, current (application server) date
                ADDON:
                  type: array
                  items:
                    type: object
                    properties:
                      ADDONKEY:
                        type: string
                        maxLength: 128
                        description: Generic key for add-on data collection
                TO_DO_FUGROUPS:
                  type: array
                  items:
                    type: object
                    properties:
                      GROUPID:
                        type: integer
                        format: int64
                        description: Group ID
                      SUCCESSOR:
                        type: integer
                        format: int64
                        description: Group ID
                      GROUPNAME:
                        type: string
                        maxLength: 20
                        description: Group name
                      LEAFLEVEL:
                        type: string
                        maxLength: 1
                        description: Flag showing the leaf level
                      SEQUENCE:
                        type: integer
                        format: int64
                        description: Sequence number
                      CONTEXT:
                        type: string
                        maxLength: 20
                        description: Context
                      CHGSTAMP:
                        type: string
                        maxLength: 14
                        description: ABAP Time Stamp
                      DOCU:
                        type: string
                        maxLength: 80
                        description: Character string containing documentation
                      STATUS:
                        type: string
                        maxLength: 1
                        description: Status of object
              required:
              - SERVICETYPE
              - SESSION
              - SY_DATUM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ADDON:
                    type: array
                    items:
                      type: object
                      properties:
                        ADDONKEY:
                          type: string
                          maxLength: 128
                          description: Generic key for add-on data collection
                  TO_DO_FUGROUPS:
                    type: array
                    items:
                      type: object
                      properties:
                        GROUPID:
                          type: integer
                          format: int64
                          description: Group ID
                        SUCCESSOR:
                          type: integer
                          format: int64
                          description: Group ID
                        GROUPNAME:
                          type: string
                          maxLength: 20
                          description: Group name
                        LEAFLEVEL:
                          type: string
                          maxLength: 1
                          description: Flag showing the leaf level
                        SEQUENCE:
                          type: integer
                          format: int64
                          description: Sequence number
                        CONTEXT:
                          type: string
                          maxLength: 20
                          description: Context
                        CHGSTAMP:
                          type: string
                          maxLength: 14
                          description: ABAP Time Stamp
                        DOCU:
                          type: string
                          maxLength: 80
                          description: Character string containing documentation
                        STATUS:
                          type: string
                          maxLength: 1
                          description: Status of object
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
