CreateMMData

Mail Merge Header Functions

Minor Business Rule

Object Name: B9800175

Parent DLL: CALLBSFN

Location: Client

Language: C

1.Functional Description

1.1Purpose
Create a bar delimited string from the data structure associated with the specified letter. Write the string to a file on the user's hard drive in the 
TEMP directory. The mail merge template requires the data file name when it is first created and must have the correct number of fields. This function will be call 

when you add a new Mail Merge Letter.


1.2Setup Notes and Prerequisites

A record must exist in the Mail Merge Objects - F980014  table for the specified letter.

1.3Special Logic


2.Technical Specifications


2.1Parameters:  

Data Item Data Structure DescriptionI/ORequiredNotes
OBNMNameObjectIYLetter 

name

EV01UseLongNamesI

2.2Related Tables 

Table Table Description


2.3Related Business Functions

Source NameFunction Name
N9800015Get Mail Merge Information


Processing:


• Open a file in write mode in the directory on the users hard drive specified by the TEMP environment variable. 
• The name of the file is the value passed in the NameObject parameter with a .dat extension.
• Call GetMailMergeDSTemplName to get the name of the Data Structure associated with the specified letter.
• Call AllocBuildHDRStrFromDstmplName to parse the specified data structure and create a bar delimited string containing the names of the members of 
the media object.

• Close the file


^

Data Structure

D9800175A - Create Mail Merge Header

Parameter NameData ItemData TypeReq/OptI/O/Both
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

cUseLongNamesEV01charOPTINPUT

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

Related Functions

N9800015 Get MailMerge Information

Related Tables

None
CreateMMHeader

CreateMMHeader

Mail Merge Header Functions

Minor Business Rule

Object Name: B9800175

Parent DLL: CALLBSFN

Location: Client

Language: C

1.Functional Description

1.1Purpose
Create a bar delimited string from the data structure associated with the specified letter. Write the string to a file on the users hard drive in the TEMP 
directory.


1.2Setup Notes and Prerequisites

A record must exist in the Mail Merge Objects - F980014  table for the specified letter.

1.3Special Logic


2.Technical Specifications


2.1Parameters:  

Data Item Data Structure DescriptionI/ORequiredNotes
OBNMNameObjectIYLetter name

EV01UseLongNamesI

2.2Related Tables 

Table Table Description


2.3Related Business Functions

Source NameFunction Name
N9800015Get Mail Merge Information


Processing:


• Open a file in write mode in the directory on the users hard drive specified by the TEMP environment variable. 
• The name of the file is the value passed in the NameObject parameter with a .hdr extension.
• Call GetMailMergeDSTemplName to get the name of the Data Structure associated with the specified letter.
• Call AllocBuildHDRStrFromDstmplName to parse the specified data structure and create a bar delimited string containing the names of the members of 
the media object.

• Close the file

^

Data Structure

D9800175A - Create Mail Merge Header

Parameter NameData ItemData TypeReq/OptI/O/Both
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

cUseLongNamesEV01charOPTINPUT

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

Related Functions

N9800015 Get MailMerge Information

Related Tables

None
GetMMHeader

GetMMHeader

Mail Merge Header Functions

Minor Business Rule

Object Name: B9800175

Parent DLL: CALLBSFN

Location: Client

Language: C

1.Functional Description

1.1Purpose
Retrieve the Mail Merge Header string from the file on the users hard drive.

1.2Setup Notes and Prerequisites


1.3Special Logic


2.Technical Specifications


2.1Parameters:  

Data Item Data Structure DescriptionI/ORequiredNotes
OBNMNameObjectINLetter Name

ISTKEYKeyDataOYBar Delimited String of field names

2.2Related Tables 

Table Table Description


2.3Related Business Functions

Source NameFunction Name


Processing:


• Read the Header file from the users hard drive and return the 


^

Data Structure

D9800175B - Get Mail Merge Header

Parameter NameData ItemData TypeReq/OptI/O/Both
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

szHeaderStringDESC2000charREQOUTPUT

A spaced used to list all the overriding specifications and differences in functionality between the base report specifications and the 
version level report specifications. The information you provide allows version developers to easily see the functional difference between this 
version and the base report. Examples of information you should list include additions such as sections that you have added in your version that 
do not exist in the base report. You should also list changes in your version for areas that function differently from the base report. For 
example, you should list areas where you use different criteria for data sequencing or data selection.

Related Functions

N9800015 Get MailMerge Information

Related Tables

None