{"audience":"Time management specialists, payroll teams and shift planners.","authorization_objects":[{"note":"Write authorization for personnel data, infotypes 2001 and 2002","object":"P_ORGIN"},{"note":"Check that prevents users from posting to their own personnel number","object":"P_PERNR"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"The template is a fixed-column XLSX or CSV. The file layout of another device or shift tool is mapped to the template with a mapping layer during installation; each new layout adds a small effort.","q":"Which external systems are supported?"},{"a":"By default, the overlapping row is skipped and listed with a message. Optionally, an option to delimit or replace the existing record according to the collision class can be added.","q":"What happens if there is an overlapping absence?"},{"a":"Not by default; PT60 is run separately for the employees in the result list. If needed, the program can schedule time evaluation as a background job for those employees at the end.","q":"Does time evaluation run automatically after the upload?"}],"features":[{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"error_file","label":"Download failed lines as a separate file","note":"Corrected rows can be uploaded again with the same template."},{"code":"excel","label":"Export to Excel","note":"An empty upload template can be downloaded as Excel."},{"code":"background","label":"Runs as a background job","note":"Files dropped by an external system can be read by a periodic job."}],"functions":[{"name":"BAPI_EMPLOYEE_ENQUEUE","role":"Locks the employee before posting"},{"name":"BAPI_ABSENCE_CREATE","role":"Creates the infotype 2001 absence record"},{"name":"HR_INFOTYPE_OPERATION","role":"Creates the infotype 2002 attendance record"},{"name":"BAPI_EMPLOYEE_DEQUEUE","role":"Releases the lock after posting"}],"gap":"PA30 and PA61 enter absences and attendances per employee; PA71 fast entry works on screen. The CATS transfer only moves data recorded in time sheets and does not cover the file layout of every external device or shift tool. Keying hundreds of records manually at month-end delays time evaluation and payroll.","id":"hcm-absence-attendance-upload","industries":[],"input_columns":[{"derived":true,"label":"Record type","required":false,"rule":"2001 = absence, 2002 = attendance","target_field":null,"target_table":null},{"derived":false,"label":"Pers. no.","required":true,"rule":"","target_field":"PERNR","target_table":"PA2001"},{"derived":false,"label":"Abs./att. type","required":true,"rule":"","target_field":"AWART","target_table":"PA2001"},{"derived":false,"label":"Start date","required":true,"rule":"","target_field":"BEGDA","target_table":"PA2001"},{"derived":false,"label":"End date","required":true,"rule":"","target_field":"ENDDA","target_table":"PA2001"},{"derived":false,"label":"Start time","required":false,"rule":"","target_field":"BEGUZ","target_table":"PA2002"},{"derived":false,"label":"End time","required":false,"rule":"","target_field":"ENDUZ","target_table":"PA2002"},{"derived":false,"label":"Hours","required":false,"rule":"","target_field":"STDAZ","target_table":"PA2002"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file (XLSX or CSV) is read; each row holds the record type (2001 absence or 2002 attendance), employee, absence/attendance type, date and an optional time range.\n2. Checks: is the employee active on the record date (PA0001), is the absence/attendance type defined for the employee's personnel subarea grouping (T554S), is there an overlapping record on the same date (PA2001/PA2002).\n3. With \"Quota check\" selected, for absence types that deduct a quota, it is checked whether the remaining entitlement in PA2006 (ANZHL − KVERB) covers the requested duration.\n4. The employee is locked with BAPI_EMPLOYEE_ENQUEUE; absences are created with BAPI_ABSENCE_CREATE, attendances with HR_INFOTYPE_OPERATION; the lock is released with BAPI_EMPLOYEE_DEQUEUE. In test mode nothing is posted; only the check and simulation results are shown.\n5. Results are listed per row; failed rows are downloaded as a separate file. After a successful upload, time evaluation (PT60) can be run for the employees concerned.","module":"HCM","object_type":"upload","output_columns":[{"calculated":true,"formula":"Row number in the file","label":"Row","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Pers. no.","source_field":"PERNR","source_table":"PA2001"},{"calculated":false,"formula":"","label":"Abs./att. type","source_field":"AWART","source_table":"PA2001"},{"calculated":true,"formula":"From the checks and posting: posted, test OK or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"Check error or BAPI return message","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"C:\\temp\\kasim_izinleri.csv","kind":"parameter","label":"Upload file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Test mode (check without posting)","name":"P_TEST","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Check quota sufficiency","name":"P_QUOTA","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Skip overlapping records (do not replace)","name":"P_SKIPOV","ref_field":"","required":false}],"part_of":["hcm-pre-payroll-pack"],"performance":"Sort records by employee and date and process the rows of one employee under a single lock. Schedule month-end files as a background job before time evaluation; do not upload while time evaluation or payroll is running.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=hcm-absence-attendance-upload","related":["hcm-additional-payment-upload","hcm-leave-quota-balance"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Maintains time data per employee; does not post in bulk from a file.","tcode":"PA61"},{"note":"Enters infotypes 2001 and 2002 for one employee.","tcode":"PA30"}],"summary":"A custom program that posts absence (infotype 2001) and attendance (infotype 2002) records coming from time clocks, shift planning tools or Excel into SAP in bulk before time evaluation. It checks the absence type, overlaps and quota sufficiency, and runs in test mode first.","tables":[{"access":"write","join_on":"","role":"Absence records: absence type, date, time, duration","table":"PA2001","variant":"both"},{"access":"write","join_on":"","role":"Attendance records: attendance type, date, time, duration","table":"PA2002","variant":"both"},{"access":"read","join_on":"PA2006-PERNR = PA2001-PERNR","role":"Remaining entitlement for the quota check","table":"PA2006","variant":"both"},{"access":"read","join_on":"T554S-SUBTY = PA2001-AWART","role":"Validity of absence and attendance types","table":"T554S","variant":"both"},{"access":"read","join_on":"PA0001-PERNR = PA2001-PERNR","role":"Check of the active assignment on the record date","table":"PA0001","variant":"both"}],"title":"Mass Absence and Attendance Upload Program","url":"https://nekuhub.com/en/programs/mass-absence-and-attendance-upload-program/","vendor_id":"nekudos"}