BGN Beginning Segment

To indicate the beginning of a transaction set.

Position
Element
Name
Type
Requirement
Min
Max
Repeat
BGN01
Transaction Set Purpose Code
Identifier (ID)
Mandatory
2
2
-
Code identifying purpose of transaction set.
If BGN05 is used, BGN04 is required.
BGN02
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.
BGN03
Date
Date (DT)
Mandatory
6
6
-
Date (YYMMDD).
BGN03 is the Transaction Set Date.
BGN04
Time
Time (TM)
Conditional
4
4
-
Time expressed in 24-hour clock time (HHMM, time range: 0000 though 2359).
BGN04 is the Transaction Set Time.
BGN05
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.
BGN05 is the transaction set time qualifier.

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.