I am doing import of time records into PR.DATAENT file. Each record has header and details in it. There are about 10 time fields besides employee ID. It is a .txt file with comma (,) as a separator. I have built a series of VI jobs cascading into each other. Each job is hardcoded for Earning code based on the position in the record. Last job is for regular hours worked. Only during the last job, we elect to do Auto Deduction. The problem is, when an employee has no regular hours the field is null. The field PR.DATENT:HOURS.. does not get set and no AMT is calculated and a record of earning E (not E01) is created for that employee. During tax calculations, there is an error. If I modify that employee's record in input file and put in 0.00 then there is no problem. There are many records in input file and we would like to automate this process, meaning no intervention of modifying input file. How can I read the field and if it is null then force 0.00 as hours value? I tried many different ways, like reading in temp and testing for null but no success. Am I missing something? Any help will be appreciated
↧