DeleteRecordsFromDifferentFiles

Delete records from F07350,F07354 and F07209

Minor Business Rule

Object Name: N0700070

Parent DLL: CPAY

Location: Client/Server

Language: NER

Functional Description

Purpose

The purpose of this NER is delete records from F07350,F07354 and F07209 when user press delete button 

in Payroll Workbench.

Setup Notes and Prerequisites


Special Logic

None



Technical Specification


Parameters

Data Item Data Structure    I/ORequiredTableNotes

PAYDszPayrollIDIYPayroll ID

EV01cPressDeleteIYPress Delete Button ButtonStatus     

Status


Related Tables/Business Views


Table Table Description

F07209Execution Control Parameter

F07354Report Setup File

F07350Pay Cycle Parameters



Processing 

 // 

If BF cPressDeleteButtonStatus is equal to "1" 

// 

// Check there are any records for that Payroll ID or Not in F07350

//F07350.Select
F07350.FetchNext

While SV File_IO_Status is equal to CO SUCCESS And VA evt_c_InterimCheckstatus is not equal to 
 

F07350.Delete
F07350.FetchNext

End While
// 

F07354.Select
F07354.FetchNext

While SV File_IO_Status is equal to CO SUCCESS 

F07354.Delete
F07354.FetchNext

End While
// 

F07209.Select
F07209.FetchNext

While SV File_IO_Status is equal to CO SUCCESS 

F07209.Delete
F07209.FetchNext

End While
// 

End If


Data Structure

D0700070 - DS for Delete Record from F07350,F07354 and F07209

Parameter NameData ItemData TypeReq/OptI/O/Both
szPayrollIDOWPAYDcharOPTNONE

A code that identifies a group of employees for whom you are processing payroll. Use this ID to process each step of the payroll 
cycle. This code is also used to identify the interim ID that you select when you enter interim payments.

cPressDeleteButtonStatusEV01charOPTNONE

An option that specifies the type of processing for an event.

Related Functions

None

Related Tables

None