Manual processing through PA30 for 147 records is tedious but safest. However, you can create a correction LSMW. The key is proper configuration addressing all three critical areas.
For PA0001 table validation, your LSMW must include these fields in exact order: PERNR, INFTY (0001), SUBTY (blank for PA0001), BEGDA, ENDDA, and the DELIMIT flag. Set DELIMIT = ‘X’ to automatically close previous records.
For HRPA 326 error handling, add error handling in LSMW step 10. Map the RETURN structure to capture error messages. Configure the batch input to process in background mode with error session creation. This way, any remaining validation failures get logged without stopping the entire batch.
For mass data correction with LSMW, create a new project using transaction code PA30 with recording mode. Critical steps:
1. Record PA30 transaction
2. Enter PERNR and INFTY 0001
3. Click Change (not Create)
4. Set DELIMIT checkbox
5. Enter new BEGDA (one day after old ENDDA)
6. Save and complete recording
In your source file, include: PERNR, new BEGDA (current date), ENDDA (99991231), and all required organizational assignment fields (BUKRS, WERKS, PERSG, PERSK, etc.). The delimiter function will automatically set the old record’s ENDDA to new BEGDA minus one day.
Before running production correction, test with 5-10 records in development. Verify using SE16 that old records get properly delimited (ENDDA changed from 99991231 to specific date) and new records are created without overlaps. Check time attendance sync after test correction.
One additional consideration: if these employees have time entries during the overlap period, you may need to reassign those entries to the correct organizational structure after delimiting. Run report RPTIME00 to identify affected time records and use transaction CAT2 for corrections if needed.
After mass correction, run program RHCHECKV to validate all infotype consistency. This catches any remaining date conflicts across all infotypes, not just PA0001.