BGM — Beginning of Message / Doc Type

EDIFACT segment
📘

Identifies the document itself: its type (order, invoice, despatch advice...), its number, and the purpose of the message (original, cancellation, change).

Example

BGM+220+PO-2026-0042+9'

Data Elements

Pos.Description
01Document Name Code
02Document Number
03Message Function Code
35Inventory Report (INVRPT)
44Transport Status Report (IFTSTA)
73Sales Data Report (SLSRPT)

Code List

CodeMeaning
220Order
230Order Change (Revision)
231Order Response
240Delivery Instruction
241Delivery Forecast
242JIT Delivery Call-off
340Instruction For Shipment (IFTMIN)
35Inventory Report (INVRPT)
351Despatch Advice / Waybill
380Commercial Invoice
381Credit Note
383Debit Note
389Proforma Invoice
44Transport Status Report (IFTSTA)
481Remittance Advice
610Booking Request
631Receiving Advice
632Return Delivery Note
70Inventory Report
71Sales Report
73Sales Report (SLSRPT)
9Price / Sales Catalogue (PRICAT)
CONTRLTechnical Control Report
FUNC_1Cancellation
FUNC_27Not Accepted
FUNC_29Accepted (Confirmed)
FUNC_31Copy
FUNC_4Accepted with Amendments
FUNC_5Update / Replace
FUNC_9Original (New Document)

Watch out

The third element matters: 9 means original, 1 cancellation, 4 change. A wrong value here can create duplicate orders downstream.

← All segments