openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RHPA_CALC_VALUE_AVERAGE:
    post:
      tags:
      - RHPA_CALCULATE
      operationId: /rfc/RHPA_CALC_VALUE_AVERAGE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                RANK_BASE:
                  type: integer
                  format: int64
                  description: Ranking of the object for which the calculation is to be performed
                APP_PT1045:
                  type: array
                  items:
                    type: object
                    properties:
                      RANK:
                        type: integer
                        format: int64
                        description: Define sorting
                      SLEVL:
                        type: integer
                        format: int64
                        description: Hierarchy level
                      APP_OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type (Personnel Development)
                      APP_OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      APP_STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      EVALUAT:
                        type: integer
                        format: int64
                        description: Weighting
                      RATING:
                        type: integer
                        format: int64
                        description: Rating of an Appraisal Element
                      RTEXT:
                        type: string
                        maxLength: 40
                        description: Rating text of an appraisal element
                      NOT_RATED:
                        type: string
                        maxLength: 1
                        description: 'Flag: Without Rating  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      PARENT:
                        type: integer
                        format: int64
                        description: Define sorting
                      CHILD:
                        type: integer
                        format: int64
                        description: Define sorting
                      BROTHER:
                        type: integer
                        format: int64
                        description: Define sorting
                      RATING_OPTION:
                        type: string
                        maxLength: 2
                        description: 'ABAP: Selection option (EQ/BT/CP/...)'
                      RATING_NO_INPUT:
                        type: string
                        maxLength: 1
                        description: 'Flag: rating cannot be entered  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      SCALE_ID:
                        type: integer
                        format: int64
                        description: Scale ID
                      FUNCNAME:
                        type: string
                        maxLength: 30
                        description: Function module for calculating (partial) appraisal results
                      OBJECTIVE:
                        type: string
                        maxLength: 1
                        description: 'Flag: Can be used for setting objectives  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      APP_INPUT:
                        type: string
                        maxLength: 1
                        description: 'Flag: Type of input option for appraisal result  enumValues: ""=Optional entry,D=Required entry,M=No entry'
                        enum:
                        - ''
                        - D
                        - M
                      NO_NOTE:
                        type: string
                        maxLength: 1
                        description: 'Flag: Note cannot be stored  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      SCALE_TEXT:
                        type: string
                        maxLength: 40
                        description: Name of Scale
                      APP_STEXT2:
                        type: string
                        maxLength: 80
                        description: Text (80 Characters)
                      NUMBERING:
                        type: string
                        maxLength: 20
                        description: Char 20
                      RATING_TXT:
                        type: string
                        maxLength: 19
                        description: Rating of an Appraisal Element
                      NOTE:
                        type: string
                        maxLength: 1
                        description: 'Flag: Object Has a Note  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      COMP:
                        type: string
                        maxLength: 1
                        description: 'Flag: Hidden  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      CALC_RESULT:
                        type: integer
                        format: int64
                        description: Result Calculated (= Weighting * Rating)
                      MARK_Y:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
              required:
              - RANK_BASE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_CALCULATED:
                    type: string
                    maxLength: 1
                    description: '''X''= the result was recalculated'
                  APP_PT1045:
                    type: array
                    items:
                      type: object
                      properties:
                        RANK:
                          type: integer
                          format: int64
                          description: Define sorting
                        SLEVL:
                          type: integer
                          format: int64
                          description: Hierarchy level
                        APP_OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type (Personnel Development)
                        APP_OBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        APP_STEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        EVALUAT:
                          type: integer
                          format: int64
                          description: Weighting
                        RATING:
                          type: integer
                          format: int64
                          description: Rating of an Appraisal Element
                        RTEXT:
                          type: string
                          maxLength: 40
                          description: Rating text of an appraisal element
                        NOT_RATED:
                          type: string
                          maxLength: 1
                          description: 'Flag: Without Rating  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        PARENT:
                          type: integer
                          format: int64
                          description: Define sorting
                        CHILD:
                          type: integer
                          format: int64
                          description: Define sorting
                        BROTHER:
                          type: integer
                          format: int64
                          description: Define sorting
                        RATING_OPTION:
                          type: string
                          maxLength: 2
                          description: 'ABAP: Selection option (EQ/BT/CP/...)'
                        RATING_NO_INPUT:
                          type: string
                          maxLength: 1
                          description: 'Flag: rating cannot be entered  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        SCALE_ID:
                          type: integer
                          format: int64
                          description: Scale ID
                        FUNCNAME:
                          type: string
                          maxLength: 30
                          description: Function module for calculating (partial) appraisal results
                        OBJECTIVE:
                          type: string
                          maxLength: 1
                          description: 'Flag: Can be used for setting objectives  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        APP_INPUT:
                          type: string
                          maxLength: 1
                          description: 'Flag: Type of input option for appraisal result  enumValues: ""=Optional entry,D=Required entry,M=No entry'
                          enum:
                          - ''
                          - D
                          - M
                        NO_NOTE:
                          type: string
                          maxLength: 1
                          description: 'Flag: Note cannot be stored  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        SCALE_TEXT:
                          type: string
                          maxLength: 40
                          description: Name of Scale
                        APP_STEXT2:
                          type: string
                          maxLength: 80
                          description: Text (80 Characters)
                        NUMBERING:
                          type: string
                          maxLength: 20
                          description: Char 20
                        RATING_TXT:
                          type: string
                          maxLength: 19
                          description: Rating of an Appraisal Element
                        NOTE:
                          type: string
                          maxLength: 1
                          description: 'Flag: Object Has a Note  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        COMP:
                          type: string
                          maxLength: 1
                          description: 'Flag: Hidden  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        CALC_RESULT:
                          type: integer
                          format: int64
                          description: Result Calculated (= Weighting * Rating)
                        MARK_Y:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
