Louisville Gas & Electric
Kentucky Utilities
997  Implementation Guide

VERSION: 4010

(Draft)

 997	Invoice	
	Functional Group=FA	

This Draft Standard for Trial Use contains the format and establishes the data contents of the Functional Acknowledgment Transaction Set (997) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to define the control structures for a set of acknowledgments to indicate the results of the syntactical analysis of the electronically encoded documents. The encoded documents are the transaction sets, which are grouped in functional groups, used in defining transactions for business data interchange. This standard does not cover the semantic meaning of the information encoded in the transaction sets.

Segments:	
	Pos	Id	Segment Name	Req	Max Use	Repeat	Notes	Usage											
		ISA	Interchange Control Header	M	1			Used											
		GS	Functional Group Header	M	1			Used											
Heading:	
	Pos	Id	Segment Name	Req	Max Use	Repeat	Notes	Usage											
	010	ST	Transaction Set Header	M	1			Must use											
	020	AK1	Functional Group Response Header	M	1			Must use											
 LOOP ID – AK2			999999													
	030	AK2	Transaction Set Response Header	O	1			Used											
 LOOP ID – AK3			999999													
	040	AK3	Data Segment Note	O	1			Used											
	050	AK4	Data Element Note	O	99														
																			
	060	AK5	Transaction Set Response Trailer	M	1			Used											
	070	AK9	Address Information	O	2			Used											
Summary:	
	Pos	Id	Segment Name	Req	Max Use	Repeat	Notes	Usage											
	080	SE	Transaction Set Trailer	M	1			Must use											
Segments:	
	Pos	Id	Segment Name	Req	Max Use	Repeat	Notes	Usage											
		GE	Functional Group Trailer	M	1			Must Use											
		IEA	Interchange Control Trailer	M	1			Must Use											

ISA	Interchange Control Header	Pos: 	Max: 1
 - Mandatory
Loop: N/A	Elements: 16	

To start and identify an interchange of zero or more functional groups and interchange-related control segments
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	ISA01	I01	Authorization Information Qualifier
Description: Code to identify the type of information in the Authorization Information
All valid standard codes are used.	M	ID	2/2	Must use		
	ISA02	I02	Authorization Information
Description: Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)
	M	AN	10/10	Must use		
	ISA03	I03	Security Information Qualifier
Description: Code to identify the type of information in the Security Information
All valid standard codes are used.	M	ID	2/2	Must use		
	ISA04	I04	Security Information
Description: This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)
	M	AN	10/10	Must use		
	ISA05	I05	Interchange ID Qualifier
Description: Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified
12	M	ID	2/2	Must use		
	ISA06	I06	Interchange Sender ID
Description: Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element
5026274096FCD	M	AN	15/15	Must use		
	ISA07	I05	Interchange ID Qualifier
Description: Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified
Recipient’s EDI Id qualifier	M	ID	2/2	Must use		
	ISA08	I07	Interchange Receiver ID
Description: Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them
Recipient’s EDI Id 	M	AN	15/15	Must use		
	ISA09	I08	Interchange Date
Description: Date of the interchange
	M	DT	6/6	Must use		
	ISA10	I09	Interchange Time
Description: Time of the interchange
	M	TM	4/4	Must use		
	ISA11	I10	Interchange Control Standards Identifier
Description: Code to identify the agency responsible for the control standard used by the message that is enclosed by the interchange header and trailer
U	M	ID	1/1	Must use		
	ISA12	I11	Interchange Control Version Number
Description: This version number covers the interchange control segments
00401	M	ID	5/5	Must use		
	ISA13	I12	Interchange Control Number
Description: A control number assigned by the interchange sender
	M	N0	9/9	Must use		
	ISA14	I13	Acknowledgment Requested
Description: Code sent by the sender to request an interchange acknowledgment (TA1)
All valid standard codes are used.	M	ID	1/1	Must use		
	ISA15	I14	Usage Indicator
Description: Code to indicate whether data enclosed by this interchange envelope is test, production or information
All valid standard codes are used.	M	ID	1/1	Must use		
	ISA16	I15	Component Element Separator
Description: Type is not applicable; the component element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator
	M		1/1	Must use		

GS	Functional Group Header	Pos: 	Max: 1
 - Mandatory
Loop: N/A	Elements: 8	

To indicate the beginning of a functional group and to provide control information
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	GS01	479	Functional Identifier Code
Description: Code identifying a group of application related transaction sets
All valid standard codes are used.	M	ID	2/2	Must use		
	GS02	142	Application Sender's Code
Description: Code identifying party sending transmission; codes agreed to by trading partners
5026274096FCD	M	AN	2/15	Must use		
	GS03	124	Application Receiver's Code
Description: Code identifying party receiving transmission. Codes agreed to by trading partners
Recipient’s GS Id 	M	AN	2/15	Must use		
	GS04	373	Date
Description: Date expressed as CCYYMMDD
	M	DT	8/8	Must use		
	GS05	337	Time
Description: Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
	M	TM	4/8	Must use		
	GS06	28	Group Control Number
Description: Assigned number originated and maintained by the sender
	M	N0	1/9	Must use		
	GS07	455	Responsible Agency Code
Description: Code used in conjunction with Data Element 480 to identify the issuer of the standard
All valid standard codes are used.	M	ID	1/2	Must use		
	GS08	480	Version / Release / Industry Identifier Code
Description: Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed
004010	M	AN	1/12	Must use		

ST	Transaction Set Header	Pos: 010	Max: 1
Heading - Mandatory
Loop: N/A	Elements: 2	

To indicate the start of a transaction set and to assign a control number
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	ST01	143	Transaction Set Identifier Code
Description: Code uniquely identifying a Transaction Set
All valid standard codes are used.	M	ID	3/3	Must use		
	ST02	329	Transaction Set Control Number
Description: Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set
	M	AN	4/9	Must use		

AK1	Functional Group Response Header	Pos: 020	Max: 1
Heading - Mandatory
Loop: N/A	Elements: 10	

To indicate the beginning of an invoice transaction set and transmit identifying numbers and dates
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	AK101	479	Functional Identifier Code
Description: Code identifying a group of application related transaction sets
This is the control number assigned tothe group being acknowledged. It is thevalue sent in the GS06 for the original transmission 	M	ID	2/2	Must use		
	AK202	28	Group Control Number
Description: Assigned number originated and maintained by the sender
This is the control number assigned tothe group being acknowledged. It is the value sent in the GS06 for the original transmission.	M	N0	1/9	Must use		

AK2	Transaction Set Response Header	Pos: 030	Max: 100
Heading - Optional
Loop: N/A	Elements: 2	

To start acknowledgment of a single transaction set
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	AK201	143	Transaction Set Identifier Code
Description: Code uniquely identifying a Transaction Set
This is the transaction set ID of the transaction set being acknowledged. It is the value sent in the ST01 for the original transmission.	M	ID	3/3	Used		
	AK202	329	Transaction Set Control Number
Description: Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set
This is the transaction set ID of the transaction set being acknowledged. It is the value sent in the ST01 for the original transmission.	M	AN	4/9	Must use		

AK3	Data Segment Note	Pos: 040	Max: 12
Heading - Optional
Loop: N/A	Elements: 3	

To report errors in a data segment and identify the location of the data segment
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	AK301	721	Reference Identification Qualifier
Description: Code qualifying the Reference Identification
All valid standard codes are used.
Code                 Description
11                     Account # - ESP-assigned acct # for the end use customer
12                     Billing Account	M	ID	2/3	Must use		
	AK302	93	Name
Description: Free-form name
	O	AN	1/60	Used		
	AK303	365	Communication Number Qualifier
Description: Code identifying the type of communication number
Code                     Description
TE                          Telephone	C	ID	2/2	Used		
	AK304	364	Communication Number
Description: Complete communications number including country or area code when applicable
	C	AN	1/80	Used		
	AK305	365	Communication Number Qualifier
Description: Code identifying the type of communication number
Code                     Description
FX                         Fax #	C	ID	2/2	Used		
	AK306	93	Name
Description: Free-form name
	O	AN	1/60	Used		
	AK307	365	Communication Number Qualifier
Description: Code identifying the type of communication number
Code                     Description
TE                          Telephone	C	ID	2/2	Used		
	AK308	364	Communication Number
Description: Complete communications number including country or area code when applicable
	C	AN	1/80	Used		

AK4	Data Element Note	Pos: 050	Max: 1
Heading - Optional
Loop: N1	Elements: 6	

To report errors in a data element and identify the location of the data element
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	AK401	722	Element Position in Segment
Description: This is used to indicate the relative position of the data element in error in this data segment.  The count starts with 1 for the data element immediately following the segment ID.  This value is 0 for an error in the segment ID.	M	N0	1/2	Must use		
	AK402	725	Data Element Reference Number
Description: Reference number used to locate the Data Element Dictionary	O	N0	1/4	Used		
	AK403	723	Data Element Syntax Error Code
Description: Code indicating the error found after syntax edits of a data element
Code                 Description
1                      Mandatory data element missing
2                      Condition required data element missing
3                      Too many data elements
4                      Data element too short
5                      Data element too long
6                      Invalid character in data element
7                      Invalid code value
8                     Invalid Date
9                     Invalid Time	M	ID	1/3	Used		
	AK404	724	Copy of Bad Data Element
Description: This is a copy of the data element in error	O	AN	1/99	Used		

AK5	Address Information	Pos: 060	Max: 2
Heading - Optional
Loop: N1	Elements: 2	

To specify the location of the named party
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	N301	166	Address Information
Description: Address information
	M	AN	1/55	Must use		
	N302	166	Address Information
Description: Address information
	O	AN	1/55	Used		

AK9	Geographic Location	Pos: 070	Max: 1
Heading - Optional
Loop: N1	Elements: 6	

To specify the geographic place of the named party
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	N401	19	City Name
Description: Free-form text for city name
	O	AN	2/30	Used		
	N402	156	State or Province Code
Description: Code (Standard State/Province) as defined by appropriate government agency
	O	ID	2/2	Used		
	N403	116	Postal Code
Description: Code defining international postal zone code excluding punctuation and blanks (zip code for United States)
	O	ID	3/15	Used		
	N404	26	Country Code
Description: Code identifying the country
	O	ID	2/3	Used		

SE	Transaction Set Trailer	Pos: 320	Max: 1
Summary - Mandatory
Loop: N/A	Elements: 2	

To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	SE01	96	Number of Included Segments
Description: Total number of segments included in a transaction set including ST and SE segments
	M	N0	1/10	Must use		
	SE02	329	Transaction Set Control Number
Description: Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set
	M	AN	4/9	Must use		

GE	Functional Group Trailer	Pos: 	Max: 1
 - Mandatory
Loop: N/A	Elements: 2	

To indicate the end of a functional group and to provide control information
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	GE01	97	Number of Transaction Sets Included
Description: Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element
	M	N0	1/6	Must use		
	GE02	28	Group Control Number
Description: Assigned number originated and maintained by the sender
	M	N0	1/9	Must use		

IEA	Interchange Control Trailer	Pos: 	Max: 1
 - Mandatory
Loop: N/A	Elements: 2	

To define the end of an interchange of zero or more functional groups and interchange-related control segments
Element Summary:

	   Ref  _ 	 Id_ 	                                               Element Name                                            _	Req	Type	Min/Max	 Usage_		
	IEA01	I16	Number of Included Functional Groups
Description: A count of the number of functional groups included in an interchange
	M	N0	1/5	Must use		
	IEA02	I12	Interchange Control Number
Description: A control number assigned by the interchange sender
	M	N0	9/9	Must use