openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/UPC_PLEVEL_GET_RFC:
    post:
      tags:
      - UPC_PLEVEL
      operationId: /rfc/UPC_PLEVEL_GET_RFC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_AREA:
                  type: string
                  maxLength: 8
                  description: Planning Area
                I_ENQMODE:
                  type: string
                  maxLength: 1
                  description: Lock Mode
                I_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language
                I_PLEVEL:
                  type: string
                  maxLength: 8
                  description: Planning Level
                ET_PLEVELC:
                  type: array
                  items:
                    type: object
                    properties:
                      CHANM:
                        type: string
                        maxLength: 30
                        description: Characteristic
                ET_PLEVELCS:
                  type: array
                  items:
                    type: object
                    properties:
                      CHANM:
                        type: string
                        maxLength: 30
                        description: Characteristic
                ET_PLEVELK:
                  type: array
                  items:
                    type: object
                    properties:
                      KYFNM:
                        type: string
                        maxLength: 30
                        description: Key Figure
                ET_PLEVELS:
                  type: array
                  items:
                    type: object
                    properties:
                      CHANM:
                        type: string
                        maxLength: 30
                        description: Characteristic
                      SEQNO:
                        type: integer
                        format: int64
                        description: Sequence Number
                      SIGN:
                        type: string
                        maxLength: 1
                        description: +/- Sign of Selection Criterion
                      OPT:
                        type: string
                        maxLength: 2
                        description: 'Selection Condition: EQ, BT,...'
                      LOW:
                        type: string
                        maxLength: 60
                        description: Lower Limit of the Selection Conditions
                      HIGH:
                        type: string
                        maxLength: 60
                        description: Upper Limit of Selection Conditions
              required:
              - I_AREA
              - I_PLEVEL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_STATINFO:
                    type: object
                    properties:
                      COUNTER:
                        type: integer
                        format: int64
                        description: Change counter
                      UNAME:
                        type: string
                        maxLength: 12
                        description: User Name
                      AEDTM:
                        type: string
                        format: date
                        description: Changed on
                      ATIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                  E_PLEVELT:
                    type: string
                    maxLength: 40
                    description: Name of Planning Level
                  ET_PLEVELC:
                    type: array
                    items:
                      type: object
                      properties:
                        CHANM:
                          type: string
                          maxLength: 30
                          description: Characteristic
                  ET_PLEVELCS:
                    type: array
                    items:
                      type: object
                      properties:
                        CHANM:
                          type: string
                          maxLength: 30
                          description: Characteristic
                  ET_PLEVELK:
                    type: array
                    items:
                      type: object
                      properties:
                        KYFNM:
                          type: string
                          maxLength: 30
                          description: Key Figure
                  ET_PLEVELS:
                    type: array
                    items:
                      type: object
                      properties:
                        CHANM:
                          type: string
                          maxLength: 30
                          description: Characteristic
                        SEQNO:
                          type: integer
                          format: int64
                          description: Sequence Number
                        SIGN:
                          type: string
                          maxLength: 1
                          description: +/- Sign of Selection Criterion
                        OPT:
                          type: string
                          maxLength: 2
                          description: 'Selection Condition: EQ, BT,...'
                        LOW:
                          type: string
                          maxLength: 60
                          description: Lower Limit of the Selection Conditions
                        HIGH:
                          type: string
                          maxLength: 60
                          description: Upper Limit of Selection Conditions
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
