openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/HRTM_JF_CREATE:
    post:
      tags:
      - HRTM00_JOB_FAMILY
      operationId: /rfc/HRTM_JF_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BEGDA:
                  type: string
                  format: date
                  default: '19000101'
                ENDDA:
                  type: string
                  format: date
                  default: '99991231'
                JOBFAMILY_NAME:
                  type: string
                  maxLength: 40
                LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                PLVAR:
                  type: string
                  maxLength: 2
                S_HRI_5070:
                  type: object
                  properties:
                    STATUS:
                      type: integer
                      format: int64
                      description: 'Status of Job Family  enumValues: 2=Draft,1=Released'
                      enum:
                      - '2'
                      - '1'
                T_JF_PT1002:
                  type: array
                  items:
                    type: object
                    properties:
                      TLINE:
                        type: string
                        maxLength: 79
                        description: Line With Length 79 for Infotype 1002
                      TFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                T_PT5070:
                  type: array
                  items:
                    type: object
                    properties:
                      PROFICIENCY:
                        type: integer
                        format: int64
                        description: Level of Job Family
                      VALUE:
                        type: integer
                        format: int64
                        description: Traffic Light Value
                T_QUALIFICATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      PLVAR:
                        type: string
                        maxLength: 2
                        description: Plan Version
                      Q_TYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      QUALI_ID:
                        type: string
                        maxLength: 45
                        description: ID of Related Object
                      QUALI_TEXT:
                        type: string
                        maxLength: 40
                        description: Qualification
                      VBEGDA:
                        type: string
                        format: date
                        description: Start Date
                      VENDDA:
                        type: string
                        format: date
                        description: End Date
                      ISTAT:
                        type: string
                        maxLength: 1
                        description: Planning Status
                      OPERATION:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      ADATA:
                        type: string
                        maxLength: 600
                        description: Additional Relationship Data
                VTASK:
                  type: string
                  default: B
                  maxLength: 1
              required:
              - JOBFAMILY_NAME
              - S_HRI_5070
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  JF_OBJID:
                    type: integer
                    format: int64
                  T_MESSAGE_RETURN:
                    type: array
                    items:
                      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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
