(Note: make this window as wide as possible to view clearly)
N0500170, Create IRS W-4 Form and Worksheets
Data Structure: D0500170, Create IRS W-4 Form - D0500170
Seq.DataItemMember NameRemarks
---- --------- ----------------------------------------------
0AN8mnAddressNumberFirst three parameters are
1DRQJjdDateRequestedJulianthe indices to F053030
2RQTImnTimeRequestedHHMMSS
3OBNMszNameObjectPass the value "W4FORM"
4EV01cProcessFlag='1' to open mail merge file,
'2' to write,
'3' to close, and
' ' to open, write, and close
5MATH06mnW4PAW_APersonal Allowances Wroksheet, line A
6MATH06mnW4PAW_B
7MATH06mnW4PAW_C
8MATH06mnW4PAW_D
9MATH06mnW4PAW_E
10MATH06mnW4PAW_F
11MATH06mnW4PAW_G
12MATH06mnW4PAW_H
13MATH06mnW4DAW_1Deductions and Adjustments Worksheet, line 1
14MATH06mnW4DAW_2
15MATH06mnW4DAW_3
16MATH06mnW4DAW_4
17MATH06mnW4DAW_5
18MATH06mnW4DAW_6
19MATH06mnW4DAW_7
20MATH06mnW4DAW_8
21MATH06mnW4DAW_9
22MATH06mnW4DAW_10
23MATH06mnW4TETJW_1Two-Earner/Two-Job Worksheet, line 1
24MATH06mnW4TETJW_2
25MATH06mnW4TETJW_3
26MATH06mnW4TETJW_4
27MATH06mnW4TETJW_5
28MATH06mnW4TETJW_6
29MATH06mnW4TETJW_7
30MATH06mnW4TETJW_8
31MATH06mnW4TETJW_9
32HLNKszNameOfDocumentFileName of mail merge document file, including path name
This is a string of length 256 characters.
All parameters are input, except szNameOfDocumentFile, which is input/output
First five parameters are required; all others are optional.
If the document file in entered, then it will be used to create the mail merge file; otherwise, it
will be created in C:/Temp/W4FORM.DOC. The header and information files will always be in C:/Temp
Processing
1. Based on indices passed in first three parameters, fetch W-4 information from F053030.
2. Based on AN8, fetch name, SSN, and address through N0100041, Address Book - MBF
3. Call B0500029, Write IRS W-4 Form and Worksheets
4. Call P980013 to display MS Word document
Note: Worksheet information are not saved in F053030, which is why that information is passed through
the data structure of N0500170 to B0500029 through its data structure.
Source
// N0500170, Create IRS W-4 Form and Worksheets
// Copy data structure into local variables
VA evt_mnAddressNumber = BF mnAddressNumber
VA evt_jdDateRequested = BF jdDateRequestedJulian
VA evt_mnTimeRequested = BF mnTimeRequestedHHMMSS
VA evt_szObjectName = BF szNameObject
VA evt_cProcessFlag = BF cProcessFlag
//
// Process flag
// = blank to open, write, close
// = 1 to open
// = 2 to write
// = 3 to close, and display through P980013
//
If VA evt_cProcessFlag is equal to
VA evt_cProcessFlag = " "
End If
//
If VA evt_cProcessFlag is equal to
Open Data File
End If
//
If VA evt_cProcessFlag is equal to
VA evt_cActionCode = "I"
Address Book - MBF
F053030.Fetch Single
Write IRS W-4 Form and Worksheets
Else
End If
//
If VA evt_cProcessFlag is equal to
Close Data File
Call( App:P980013 , Form: W980013C )
Else
End If
//
D0500170 - Create IRS W-4 Form
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnAddressNumber | AN8 | MATH_NUMERIC | REQ | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
jdDateRequestedJulian | DRQJ | JDEDATE | REQ | INPUT |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
mnTimeRequestedHHMMSS | RQTI | MATH_NUMERIC | REQ | INPUT |
This is the time when an item is to arrive or an action is to be completed. | ||||
szNameObject | OBNM | char | REQ | INPUT |
The name that identifies a system object. J.D. Edwards ERP architecture is object-based. Discrete software objects are the building blocks
| ||||
cProcessFlag | EV01 | char | REQ | INPUT |
An option that specifies the type of processing for an event. | ||||
mnW4PAW_A | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4PAW_B | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4PAW_C | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4PAW_D | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4PAW_E | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4PAW_F | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4PAW_G | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4PAW_H | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_1 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_2 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_3 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_4 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_5 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_6 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_7 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_8 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_9 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4DAW_10 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_1 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_2 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_3 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_4 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_5 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_6 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_7 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_8 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
mnW4TETJW_9 | MATH06 | MATH_NUMERIC | OPT | INPUT |
Event point for Math Numeric. | ||||
szNameOfDocumentFile | HLNK | char | OPT | BOTH |
This field contains a hyperlink address to an Internet web site. | ||||
mnWebMailMergeUniqueID | MMUID | MATH_NUMERIC | OPT | NONE |
A unique value that links a record in the Web Mail Merge Letters table (F05WEBMM) to one or many records in the Mail Merge Runtime
|
None |
None |