openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RHPK_STATIONS_READ:
    post:
      tags:
      - RHPK
      operationId: /rfc/RHPK_STATIONS_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ENDDA:
                  type: string
                  format: date
                GDATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Start date
                OBJID:
                  type: integer
                  format: int64
                  description: Object ID
                OTYPE:
                  type: string
                  maxLength: 2
                  description: Plan Version
                PLVAR:
                  type: string
                  maxLength: 2
                  description: Plan Version
                WITH_TEXT:
                  type: string
                  default: X
                  maxLength: 1
                STATION_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      RANG:
                        type: integer
                        format: int64
                        description: Determine Sequence
                      DAUER:
                        type: string
                        format: date
                        description: Duration (numeric value) (years, months, days)
                      PFLICHT_N:
                        type: integer
                        format: int64
                        description: Number of mandatory items
                      PFLICHT_X:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Mandatory item'
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      SOBID:
                        type: string
                        maxLength: 45
                        description: ID of Related Object
                      STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      VBEGDA:
                        type: string
                        format: date
                        description: Start Date
                      VENDDA:
                        type: string
                        format: date
                        description: End Date
              required:
              - OBJID
              - OTYPE
              - PLVAR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  STATION_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        RANG:
                          type: integer
                          format: int64
                          description: Determine Sequence
                        DAUER:
                          type: string
                          format: date
                          description: Duration (numeric value) (years, months, days)
                        PFLICHT_N:
                          type: integer
                          format: int64
                          description: Number of mandatory items
                        PFLICHT_X:
                          type: string
                          maxLength: 1
                          description: 'Indicator: Mandatory item'
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        SOBID:
                          type: string
                          maxLength: 45
                          description: ID of Related Object
                        STEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        VBEGDA:
                          type: string
                          format: date
                          description: Start Date
                        VENDDA:
                          type: string
                          format: date
                          description: End Date
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
