openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RHPD_INSERT_COMPETENCY:
    post:
      tags:
      - RHPD_EXTERNAL_CALLS
      summary: Create Qualification
      operationId: /rfc/RHPD_INSERT_COMPETENCY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BEGIN_DATE:
                  type: string
                  format: date
                  default: '19000101'
                END_DATE:
                  type: string
                  format: date
                  default: '99991231'
                GUID:
                  type: string
                  maxLength: 32
                PARENT:
                  type: string
                  maxLength: 32
                VALIDATE_DEPRECIATE:
                  type: object
                  properties:
                    YEARS:
                      type: integer
                      format: int64
                      description: Number of years
                    MONTHS:
                      type: integer
                      format: int64
                      description: Number of Months
                    TYPE:
                      type: string
                      maxLength: 1
                      description: 'Flag: ''Depreciation Meter/Validity'' Infotype  enumValues: X=Validity,""=Depreciation Meter'
                      enum:
                      - X
                      - ''
                ALTERNATIVES:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPTENCY_ID:
                        type: string
                        maxLength: 32
                        description: UUID in character form
                      PERCENTAGE:
                        type: integer
                        format: int64
                        description: Replacement percentage rate for alternative qualifications
                DESCRIPTION:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      TEXT:
                        type: string
                        maxLength: 79
                        description: Text (79 characters)
                NAME:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      NAME:
                        type: string
                        maxLength: 40
                        description: Object Name
                      ABBREVIATION:
                        type: string
                        maxLength: 12
                        description: Object Abbreviation
                PROFICIENCY_DESCRIPTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      RATING:
                        type: integer
                        format: int64
                        description: Proficiency of a Quality Scale
                      TEXT:
                        type: string
                        maxLength: 79
                        description: Text (79 characters)
              required:
              - PARENT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SAP_KEY:
                    type: object
                    properties:
                      PLVAR:
                        type: string
                        maxLength: 2
                        description: Plan Version
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                  ALTERNATIVES:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPTENCY_ID:
                          type: string
                          maxLength: 32
                          description: UUID in character form
                        PERCENTAGE:
                          type: integer
                          format: int64
                          description: Replacement percentage rate for alternative qualifications
                  DESCRIPTION:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        TEXT:
                          type: string
                          maxLength: 79
                          description: Text (79 characters)
                  NAME:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        NAME:
                          type: string
                          maxLength: 40
                          description: Object Name
                        ABBREVIATION:
                          type: string
                          maxLength: 12
                          description: Object Abbreviation
                  PROFICIENCY_DESCRIPTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        RATING:
                          type: integer
                          format: int64
                          description: Proficiency of a Quality Scale
                        TEXT:
                          type: string
                          maxLength: 79
                          description: Text (79 characters)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
