CreateIRSFormW4AndWorksheets

Create IRS W-4 Form and Worksheets

Minor Business Rule

Object Name: N0500170

Parent DLL: CFND

Location: Client

Language: NER

(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  Or VA evt_cProcessFlag is equal to "1" 

Open Data File

End If

//  

If VA evt_cProcessFlag is equal to  Or VA evt_cProcessFlag is equal to "2" 

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  Or VA evt_cProcessFlag is equal to "3" 

Close Data File

Call( App:P980013 , Form: W980013C )

Else

End If

//  



Data Structure

D0500170 - Create IRS W-4 Form

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAddressNumberAN8MATH_NUMERICREQINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

jdDateRequestedJulianDRQJJDEDATEREQINPUT

The date that an item is scheduled to arrive or that an action is scheduled for completion.

mnTimeRequestedHHMMSSRQTIMATH_NUMERICREQINPUT

This is the time when an item is to arrive or an action is to be completed.

szNameObjectOBNMcharREQINPUT

The name that identifies a system object. J.D. Edwards ERP architecture is object-based. Discrete software objects are the building blocks 
for all applications, and developers can reuse the objects in multiple applications. The Object Librarian tracks each object. Examples of 
system objects include:   o Batch Applications (such as reports)   o Interactive Applications   o Business Views   o Business Functions   o 
Business Functions Data Structures   o Event Rules   o Media Object Data Structures

cProcessFlagEV01charREQINPUT

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

mnW4PAW_AMATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4PAW_BMATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4PAW_CMATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4PAW_DMATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4PAW_EMATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4PAW_FMATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4PAW_GMATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4PAW_HMATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_1MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_2MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_3MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_4MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_5MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_6MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_7MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_8MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_9MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4DAW_10MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_1MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_2MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_3MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_4MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_5MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_6MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_7MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_8MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

mnW4TETJW_9MATH06MATH_NUMERICOPTINPUT

Event point for Math Numeric.

szNameOfDocumentFileHLNKcharOPTBOTH

This field contains a hyperlink address to an Internet web site.

mnWebMailMergeUniqueIDMMUIDMATH_NUMERICOPTNONE

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 
Web Data table (F980014D). The system generates this value by adding 1 to the MMUID record in the Web Mail Merge Letters table that 
represents the largest value. The resulting value is the primary, unique key for the Web Mail Merge Letters table.

Related Functions

None

Related Tables

None