openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/UPWB_GET_PARAM_GROUPS:
    post:
      tags:
      - UPWB_BUILDER
      operationId: /rfc/UPWB_GET_PARAM_GROUPS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_AREA:
                  type: string
                  maxLength: 8
                  description: Planning Area
                I_PLEVEL:
                  type: string
                  maxLength: 8
                  description: Planning Level
                I_PROFILE:
                  type: string
                  maxLength: 8
                  description: Planning Profile
                I_SEND_MSG:
                  type: string
                  default: X
                  maxLength: 1
                  description: Boolean Variable (X=true, -=false, space=unknown)
                I_USE_DEFAULT:
                  type: string
                  maxLength: 1
                  description: 'Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ")'
                ETK_FUNCTION:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
                      FUNCTION:
                        type: string
                        maxLength: 8
                        description: Planning function
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Name of Planning Function
                ETK_PARAM:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
                      FUNCTION:
                        type: string
                        maxLength: 8
                        description: Planning function
                      PARAM:
                        type: string
                        maxLength: 8
                        description: Parameter Group
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Name of Parameter Group
              required:
              - I_AREA
              - I_PLEVEL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ETK_FUNCTION:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
                        FUNCTION:
                          type: string
                          maxLength: 8
                          description: Planning function
                        TEXT:
                          type: string
                          maxLength: 40
                          description: Name of Planning Function
                  ETK_PARAM:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
                        FUNCTION:
                          type: string
                          maxLength: 8
                          description: Planning function
                        PARAM:
                          type: string
                          maxLength: 8
                          description: Parameter Group
                        TEXT:
                          type: string
                          maxLength: 40
                          description: Name of Parameter Group
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
