BGN Beginning Segment

To indicate the beginning of a transaction set.

Position
Element
Name
Type
Requirement
Min
Max
Repeat
BGN-01
Transaction Set Purpose Code
Identifier (ID)
Mandatory
2
2
-
Code identifying purpose of transaction set.
BGN-02
Reference Number
String (AN)
Mandatory
1
30
-
Reference number or identification number as defined for a particular Transaction Set, or as specified by the Reference Number Qualifier.
BGN02 is the transaction set reference number.
BGN-03
Date
Date (DT)
Mandatory
6
6
-
Date (YYMMDD).
BGN03 is the transaction set date.
BGN-04
Time
Time (TM)
Conditional
4
8
-
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)
BGN04 is the transaction set time.
BGN-05
Time Code
Identifier (ID)
Optional
2
2
-
Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time. Since + is a restricted character, + and - are substituted by P and M in the codes that follow.
C0504: If BGN-05 is present, then BGN-04 is required
BGN05 is the transaction set time qualifier.
BGN-06
Reference Number
String (AN)
Optional
1
30
-
Reference number or identification number as defined for a particular Transaction Set, or as specified by the Reference Number Qualifier.
BGN06 is the transaction set reference number of a previously sent transaction affected by the current transaction.
BGN-07
Transaction Type Code
Identifier (ID)
Optional
2
2
-
Code specifying the type of transaction.
BGN-08
Action Code
Identifier (ID)
Optional
1
2
-
Code indicating type of action.

Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference is provided for marketing purposes and is free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.