openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/API_SEMBPS_PLANSTRUCTURE_GET:
    post:
      tags:
      - UPC_API
      summary: Read Plan Structure
      operationId: /rfc/API_SEMBPS_PLANSTRUCTURE_GET
      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_READ_FUNCTION:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read Planning Functions
                I_READ_LAYOUT:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read Layouts
                I_READ_PACKAGE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read Planning Packages
                I_READ_PARAM:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read Parameter Groups
                I_READ_PLEVEL:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read Planning Levels
                I_READ_SEQUENCE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read Planning Sequences
                I_READ_VARIABLE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read Variables
                I_USE_DEFAULT:
                  type: string
                  maxLength: 1
                  description: User's Default Profile
                ETK_AREA:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Name of Planning Area
                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_LAYOUT:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
                      LAYOUT:
                        type: string
                        maxLength: 8
                        description: Parameter Group
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Name of Parameter Group
                ETK_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
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Name of Planning Package
                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
                ETK_PLEVEL:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Name of Planning Level
                ETK_SEQUENCE:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      PLEVEL:
                        type: string
                        maxLength: 8
                        description: Planning level
                      SEQUENCE:
                        type: string
                        maxLength: 8
                        description: Planning Sequence
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Meaning of Planning Sequence
                ETK_VARIABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 8
                        description: Planning Area
                      VARIABLE:
                        type: string
                        maxLength: 8
                        description: Variable
                      TEXT:
                        type: string
                        maxLength: 40
                        description: Description of Variable
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  E_SUBRC:
                    type: integer
                    format: int32
                    description: Return Code
                  ETK_AREA:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        TEXT:
                          type: string
                          maxLength: 40
                          description: Name of Planning Area
                  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_LAYOUT:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
                        LAYOUT:
                          type: string
                          maxLength: 8
                          description: Parameter Group
                        TEXT:
                          type: string
                          maxLength: 40
                          description: Name of Parameter Group
                  ETK_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
                        TEXT:
                          type: string
                          maxLength: 40
                          description: Name of Planning Package
                  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
                  ETK_PLEVEL:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
                        TEXT:
                          type: string
                          maxLength: 40
                          description: Name of Planning Level
                  ETK_SEQUENCE:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        PLEVEL:
                          type: string
                          maxLength: 8
                          description: Planning level
                        SEQUENCE:
                          type: string
                          maxLength: 8
                          description: Planning Sequence
                        TEXT:
                          type: string
                          maxLength: 40
                          description: Meaning of Planning Sequence
                  ETK_VARIABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 8
                          description: Planning Area
                        VARIABLE:
                          type: string
                          maxLength: 8
                          description: Variable
                        TEXT:
                          type: string
                          maxLength: 40
                          description: Description of Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
