openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RHPS_APP_SCHEME_WRITE:
    post:
      tags:
      - RHPS
      summary: 'HR-PD: Create Appraisal Model (Relationships)'
      operationId: /rfc/RHPS_APP_SCHEME_WRITE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OBJID:
                  type: integer
                  format: int64
                  description: Object ID
                OTYPE:
                  type: string
                  maxLength: 2
                  description: Object type
                PLVAR:
                  type: string
                  maxLength: 2
                  description: Plan Version
                VTASK:
                  type: string
                  default: D
                  maxLength: 1
                  description: Update (B=Buffer,D=Online,V=Update,S=Sync)
                ERR_RELATION:
                  type: array
                  items:
                    type: object
                    properties:
                      TTYPE:
                        type: string
                        maxLength: 2
                        description: Type of Related Object
                      TBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      SBEGD:
                        type: string
                        format: date
                        description: Start Date
                      SENDD:
                        type: string
                        format: date
                        description: End Date
                      VBEGD:
                        type: string
                        format: date
                        description: Start Date
                      VENDD:
                        type: string
                        format: date
                        description: End Date
                      ISTAT:
                        type: string
                        maxLength: 1
                        description: Planning Status
                      NOTE:
                        type: string
                        maxLength: 1
                        description: 'Flag: Object Has a Note  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      TSHORT:
                        type: string
                        maxLength: 12
                        description: Object Abbreviation
                      TTEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      RANK:
                        type: integer
                        format: int64
                        description: Define sorting
                      EVAL:
                        type: integer
                        format: int64
                        description: Weighting
                RELATION:
                  type: array
                  items:
                    type: object
                    properties:
                      TTYPE:
                        type: string
                        maxLength: 2
                        description: Type of Related Object
                      TBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      SBEGD:
                        type: string
                        format: date
                        description: Start Date
                      SENDD:
                        type: string
                        format: date
                        description: End Date
                      VBEGD:
                        type: string
                        format: date
                        description: Start Date
                      VENDD:
                        type: string
                        format: date
                        description: End Date
                      ISTAT:
                        type: string
                        maxLength: 1
                        description: Planning Status
                      NOTE:
                        type: string
                        maxLength: 1
                        description: 'Flag: Object Has a Note  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      TSHORT:
                        type: string
                        maxLength: 12
                        description: Object Abbreviation
                      TTEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      RANK:
                        type: integer
                        format: int64
                        description: Define sorting
                      EVAL:
                        type: integer
                        format: int64
                        description: Weighting
              required:
              - OBJID
              - OTYPE
              - PLVAR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERR_RELATION:
                    type: array
                    items:
                      type: object
                      properties:
                        TTYPE:
                          type: string
                          maxLength: 2
                          description: Type of Related Object
                        TBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        SBEGD:
                          type: string
                          format: date
                          description: Start Date
                        SENDD:
                          type: string
                          format: date
                          description: End Date
                        VBEGD:
                          type: string
                          format: date
                          description: Start Date
                        VENDD:
                          type: string
                          format: date
                          description: End Date
                        ISTAT:
                          type: string
                          maxLength: 1
                          description: Planning Status
                        NOTE:
                          type: string
                          maxLength: 1
                          description: 'Flag: Object Has a Note  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        TSHORT:
                          type: string
                          maxLength: 12
                          description: Object Abbreviation
                        TTEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        RANK:
                          type: integer
                          format: int64
                          description: Define sorting
                        EVAL:
                          type: integer
                          format: int64
                          description: Weighting
                  RELATION:
                    type: array
                    items:
                      type: object
                      properties:
                        TTYPE:
                          type: string
                          maxLength: 2
                          description: Type of Related Object
                        TBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        SBEGD:
                          type: string
                          format: date
                          description: Start Date
                        SENDD:
                          type: string
                          format: date
                          description: End Date
                        VBEGD:
                          type: string
                          format: date
                          description: Start Date
                        VENDD:
                          type: string
                          format: date
                          description: End Date
                        ISTAT:
                          type: string
                          maxLength: 1
                          description: Planning Status
                        NOTE:
                          type: string
                          maxLength: 1
                          description: 'Flag: Object Has a Note  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        TSHORT:
                          type: string
                          maxLength: 12
                          description: Object Abbreviation
                        TTEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        RANK:
                          type: integer
                          format: int64
                          description: Define sorting
                        EVAL:
                          type: integer
                          format: int64
                          description: Weighting
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
