BGM Beginning of message

To indicate the type and function of a message and to transmit the identifying number.

Position
Element
Name
Type
Requirement
Min
Max
Repeat
010
Document/message name
Composite (composite)
Conditional
1
010
Document name code
String (AN)
Conditional
1
3
-
Code specifying the document name.
020
Code list identification code
String (AN)
Conditional
1
17
-
Code identifying a code list.
030
Code list responsible agency code
String (AN)
Conditional
1
3
-
Code specifying the agency responsible for a code list.
040
Document name
String (AN)
Conditional
1
35
-
Name of a document.
020
Document/message identification
Composite (composite)
Conditional
1
010
Document identifier
String (AN)
Conditional
1
35
-
To identify a document.
020
Version identifier
String (AN)
Conditional
1
9
-
To identify a version.
030
Revision identifier
String (AN)
Conditional
1
6
-
To identify a revision.
030
Message function code
String (AN)
Conditional
1
3
1
Code indicating the function of the message.
040
Response type code
String (AN)
Conditional
1
3
1
Code specifying the type of acknowledgment required or transmitted.

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.