openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_TIMESHEET_HR_CHECK:
    post:
      tags:
      - BAPI_CABA_HR
      summary: HR Checks in CATSII
      operationId: /rfc/BAPI_TIMESHEET_HR_CHECK
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CHECK_RECORDS:
                  type: array
                  items:
                    type: object
                    properties:
                      WORKDATE:
                        type: string
                        format: date
                        description: Date
                      PERSON_NO:
                        type: integer
                        format: int64
                        description: Personnel Number
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      MEAS_UNIT:
                        type: string
                        maxLength: 3
                        description: Unit of Measurement
                      MEAS_UNIT_ISO:
                        type: string
                        maxLength: 3
                        description: ISO code for unit of measurement
                      NUMBER:
                        type: integer
                        format: int64
                        description: 'Time Sheet: Number (Unit of Measure)'
                      CURRENCY:
                        type: string
                        maxLength: 5
                        description: Currency Key
                      CURRENCY_ISO:
                        type: string
                        maxLength: 3
                        description: ISO currency code
                      AMOUNT:
                        type: integer
                        format: int64
                        description: CATS Amount
                      NUMBER_OR_AMOUNT:
                        type: string
                        maxLength: 15
                        description: Multi-purpose field for amount or quantity
                      START_TIME:
                        type: string
                        maxLength: 6
                        description: Start Time
                      END_TIME:
                        type: string
                        maxLength: 6
                        description: End Time
                      NO_ADD_UP:
                        type: string
                        maxLength: 1
                        description: Time Not Added Up; Bonus Wage Type
                      ALL_DAY_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Record is for Full Day  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      DAY_ASSIGNMENT:
                        type: string
                        maxLength: 1
                        description: 'Previous or Subsequent Day Indicator  enumValues: ""=Relevant to Work Date,-=Relevant to Previous Day,+=Relevant to Subsequent Day'
                        enum:
                        - ''
                        - '-'
                        - +
                      OBJ_TYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      ABS_ATT_TYPE:
                        type: string
                        maxLength: 4
                        description: Attendance or Absence Type
                      WAGETYPE:
                        type: string
                        maxLength: 4
                        description: Wage Type
                      OT_COMP_TYPE:
                        type: string
                        maxLength: 1
                        description: Overtime Compensation Type
                      WORKTAXAREA:
                        type: string
                        maxLength: 4
                        description: Tax area work center
                      VALUATION_BASIS:
                        type: integer
                        format: int64
                        description: Valuation basis
                      CURRENCY_OF_VALBASIS:
                        type: string
                        maxLength: 5
                        description: Currency Key
                      CURRENCY_OF_VALBASIS_ISO:
                        type: string
                        maxLength: 3
                        description: ISO currency code
                      EXTRA_PAY_INDIC:
                        type: string
                        maxLength: 1
                        description: 'Extra Pay Indicator  enumValues: +=Valuation basis used as amount added,-=Valuation basis used as amount deducted,""=No extra pay: Valuation basis used as is'
                        enum:
                        - +
                        - '-'
                        - ''
                      PAYSCALEGROUP:
                        type: string
                        maxLength: 8
                        description: Pay Scale Group
                      PAYSCALELEVEL:
                        type: string
                        maxLength: 2
                        description: Pay Scale Level
                      BONUSTYPE:
                        type: string
                        maxLength: 2
                        description: Premium Number
                      BONUSVALUE:
                        type: integer
                        format: int64
                        description: Premium Indicator
                      POSITION:
                        type: integer
                        format: int64
                        description: Position
                      COST_ACC_VARIANT:
                        type: string
                        maxLength: 1
                        description: 'Cost Accounting Variants  enumValues: D=Activity Allocation Between Master and Sender Cost Center,E=Acty Alloc. Master and Sender; Acct Assgmt to Activity Type,C=Pers. Cost Assgmt to Sender; Acct Assgmt to Activity Type,""=Assignment of Personnel Costs to Master Cost Center,B=Assignment of Personnel Costs to Sender Cost Center,A=Assignment of Personnel Costs to Receiver Object'
                        enum:
                        - D
                        - E
                        - C
                        - ''
                        - B
                        - A
                      COSTCENTER:
                        type: string
                        maxLength: 10
                        description: Cost Center
                      ACTTYPE:
                        type: string
                        maxLength: 6
                        description: Activity Type
                      COMP_CODE:
                        type: string
                        maxLength: 4
                        description: Company Code
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CHECK_RECORDS:
                    type: array
                    items:
                      type: object
                      properties:
                        WORKDATE:
                          type: string
                          format: date
                          description: Date
                        PERSON_NO:
                          type: integer
                          format: int64
                          description: Personnel Number
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        MEAS_UNIT:
                          type: string
                          maxLength: 3
                          description: Unit of Measurement
                        MEAS_UNIT_ISO:
                          type: string
                          maxLength: 3
                          description: ISO code for unit of measurement
                        NUMBER:
                          type: integer
                          format: int64
                          description: 'Time Sheet: Number (Unit of Measure)'
                        CURRENCY:
                          type: string
                          maxLength: 5
                          description: Currency Key
                        CURRENCY_ISO:
                          type: string
                          maxLength: 3
                          description: ISO currency code
                        AMOUNT:
                          type: integer
                          format: int64
                          description: CATS Amount
                        NUMBER_OR_AMOUNT:
                          type: string
                          maxLength: 15
                          description: Multi-purpose field for amount or quantity
                        START_TIME:
                          type: string
                          maxLength: 6
                          description: Start Time
                        END_TIME:
                          type: string
                          maxLength: 6
                          description: End Time
                        NO_ADD_UP:
                          type: string
                          maxLength: 1
                          description: Time Not Added Up; Bonus Wage Type
                        ALL_DAY_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Record is for Full Day  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        DAY_ASSIGNMENT:
                          type: string
                          maxLength: 1
                          description: 'Previous or Subsequent Day Indicator  enumValues: ""=Relevant to Work Date,-=Relevant to Previous Day,+=Relevant to Subsequent Day'
                          enum:
                          - ''
                          - '-'
                          - +
                        OBJ_TYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        ABS_ATT_TYPE:
                          type: string
                          maxLength: 4
                          description: Attendance or Absence Type
                        WAGETYPE:
                          type: string
                          maxLength: 4
                          description: Wage Type
                        OT_COMP_TYPE:
                          type: string
                          maxLength: 1
                          description: Overtime Compensation Type
                        WORKTAXAREA:
                          type: string
                          maxLength: 4
                          description: Tax area work center
                        VALUATION_BASIS:
                          type: integer
                          format: int64
                          description: Valuation basis
                        CURRENCY_OF_VALBASIS:
                          type: string
                          maxLength: 5
                          description: Currency Key
                        CURRENCY_OF_VALBASIS_ISO:
                          type: string
                          maxLength: 3
                          description: ISO currency code
                        EXTRA_PAY_INDIC:
                          type: string
                          maxLength: 1
                          description: 'Extra Pay Indicator  enumValues: +=Valuation basis used as amount added,-=Valuation basis used as amount deducted,""=No extra pay: Valuation basis used as is'
                          enum:
                          - +
                          - '-'
                          - ''
                        PAYSCALEGROUP:
                          type: string
                          maxLength: 8
                          description: Pay Scale Group
                        PAYSCALELEVEL:
                          type: string
                          maxLength: 2
                          description: Pay Scale Level
                        BONUSTYPE:
                          type: string
                          maxLength: 2
                          description: Premium Number
                        BONUSVALUE:
                          type: integer
                          format: int64
                          description: Premium Indicator
                        POSITION:
                          type: integer
                          format: int64
                          description: Position
                        COST_ACC_VARIANT:
                          type: string
                          maxLength: 1
                          description: 'Cost Accounting Variants  enumValues: D=Activity Allocation Between Master and Sender Cost Center,E=Acty Alloc. Master and Sender; Acct Assgmt to Activity Type,C=Pers. Cost Assgmt to Sender; Acct Assgmt to Activity Type,""=Assignment of Personnel Costs to Master Cost Center,B=Assignment of Personnel Costs to Sender Cost Center,A=Assignment of Personnel Costs to Receiver Object'
                          enum:
                          - D
                          - E
                          - C
                          - ''
                          - B
                          - A
                        COSTCENTER:
                          type: string
                          maxLength: 10
                          description: Cost Center
                        ACTTYPE:
                          type: string
                          maxLength: 6
                          description: Activity Type
                        COMP_CODE:
                          type: string
                          maxLength: 4
                          description: Company Code
                  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.
