Programme SAP RPCTXSU0 - Print W-2 forms from TemSe file

Description
The purpose of this program is to sort the W2 forms produced by the taxreporter (transaction PU21). There are two types of W-2 Forms: OneW2-One Page (1-1) and four W2-One Page (4-1). The first one is to besent to the corresponding tax authority, and the second one is for theemployee.
The 1-1 W2 (tax authority) can be sorted as follows:
Tax Authority, Empl. SSN
Tax Authority, Empl. Name
Tax Authority, Empl. Number
It also gives the user the option to introduce certain selectioncriteria based on tax authority. The W2 forms produced are exclusivelyto be sent to state, city, or local authority. No forms are producedfor federal tax authority, nor for the employee.
The 4-1 W2 (employee) can be sorted as follows:
Employee SSN
Employee Number
ZIP Code, Employee SSN
Org. Unit, Employee SSN
P.Area, P.SArea, Emp. SSN
Emp.Grp, Emp.SGrp, Emp. SSN
The program reads a TemSe file produced by Tax Reporter and prints outW2 forms sorted in the indicated order.

Selection Criteria
If you wish to print W2s for local tax authorities, then select the"Output Local Tax Authorities" checkbox. The same requirement holds for"State Tax Authorities". There are two fields for each correspondingtax authority type. These fields will be used to introduce ranges.These fields for ranges are standard in SAP. The left and right fieldsindicate the min. and max. value. You can obtain a list of all thepossible values by executing the "possible entries function (F4)" ineach of the range fields. If the fields are left blank and thecheckboxes are selected, everything will be printed out. The rangefields allow you to use Wild cards such as "*".

Precondition
The first step is to create the TemSe file to be used as input. Tocreate a TemSe file, go to transaction PU21, fill out the informationrequested, and execute either preview or create by pushing thecorresponding button at the toolbar. (Use preview if you are not sureof what you are doing).
IMPORTANT: To obtain the TEMSE FILE NAME go to Generation-> Copy file todisk in transaction PU21. Then the most recently created file should belisted under:
"HR_F_W2 SAPS W2: Wages and Tax statement"

Output
The output of the program are the W2 forms corresponding to theinformation included in the given TemSe file.