openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/UPC_PACKAGE_CREATE_ADHOC:
    post:
      tags:
      - UPC_PACKAGE
      operationId: /rfc/UPC_PACKAGE_CREATE_ADHOC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_AREA:
                  type: string
                  maxLength: 8
                  description: Planning Area
                I_NO_PLEVEL_ERROR:
                  type: string
                  maxLength: 1
                I_PLEVEL:
                  type: string
                  maxLength: 8
                  description: Planning Level
                I_SET_DEFAULT:
                  type: string
                  maxLength: 1
                IT_CHARSEL:
                  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
                IT_HIESEL:
                  type: array
                  items:
                    type: object
                    properties:
                      SEQNO:
                        type: integer
                        format: int64
                        description: Sequence Number
                      CHANM:
                        type: string
                        maxLength: 30
                        description: Characteristic
                      HIENM:
                        type: string
                        maxLength: 30
                        description: Hierarchy
                      HIEVER:
                        type: string
                        maxLength: 3
                        description: Hierarchy Version
                      DATETO:
                        type: string
                        format: date
                        description: Valid To
                      NODENAME:
                        type: string
                        maxLength: 60
                        description: Node name
                      HIECHA:
                        type: string
                        maxLength: 30
                        description: Characteristic
                      DUMMY_LEAF:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Help Nodes'
                IT_HIESEL_CHADEP:
                  type: array
                  items:
                    type: object
                    properties:
                      SEQNO:
                        type: integer
                        format: int64
                        description: Sequence Number
                      CHANM:
                        type: string
                        maxLength: 30
                        description: Characteristic
                      CHAVLINT:
                        type: string
                        maxLength: 60
                        description: Field for Any Characteristic Value
              required:
              - I_AREA
              - I_PLEVEL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_CHARSEL:
                    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
                  IT_HIESEL:
                    type: array
                    items:
                      type: object
                      properties:
                        SEQNO:
                          type: integer
                          format: int64
                          description: Sequence Number
                        CHANM:
                          type: string
                          maxLength: 30
                          description: Characteristic
                        HIENM:
                          type: string
                          maxLength: 30
                          description: Hierarchy
                        HIEVER:
                          type: string
                          maxLength: 3
                          description: Hierarchy Version
                        DATETO:
                          type: string
                          format: date
                          description: Valid To
                        NODENAME:
                          type: string
                          maxLength: 60
                          description: Node name
                        HIECHA:
                          type: string
                          maxLength: 30
                          description: Characteristic
                        DUMMY_LEAF:
                          type: string
                          maxLength: 1
                          description: 'Indicator: Help Nodes'
                  IT_HIESEL_CHADEP:
                    type: array
                    items:
                      type: object
                      properties:
                        SEQNO:
                          type: integer
                          format: int64
                          description: Sequence Number
                        CHANM:
                          type: string
                          maxLength: 30
                          description: Characteristic
                        CHAVLINT:
                          type: string
                          maxLength: 60
                          description: Field for Any Characteristic Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
