openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/UPC_PROFILE_GET:
    post:
      tags:
      - UPC_PROFILE
      operationId: /rfc/UPC_PROFILE_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                I_PROFILE:
                  type: string
                  maxLength: 8
                  description: Planning Profile
                ET_AREA:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                ET_METHOD:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
                      METHOD:
                        type: string
                        maxLength: 8
                        description: Planning function
                ET_PACKAGE:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
                      PACKAGE:
                        type: string
                        maxLength: 8
                        description: Planning Package
                ET_PARAM:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
                      METHOD:
                        type: string
                        maxLength: 8
                        description: Planning function
                      PARAM:
                        type: string
                        maxLength: 8
                        description: Parameter Group
                ET_PLEVEL:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
              required:
              - I_PROFILE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_TEXT:
                    type: string
                    maxLength: 40
                    description: Name of Planning Profile
                  ET_AREA:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                  ET_METHOD:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
                        METHOD:
                          type: string
                          maxLength: 8
                          description: Planning function
                  ET_PACKAGE:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
                        PACKAGE:
                          type: string
                          maxLength: 8
                          description: Planning Package
                  ET_PARAM:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
                        METHOD:
                          type: string
                          maxLength: 8
                          description: Planning function
                        PARAM:
                          type: string
                          maxLength: 8
                          description: Parameter Group
                  ET_PLEVEL:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
