PROTAP Project tasks planning message (D11B)

This is the standard EDIFACT D11B spec, with 25 loops and 77 segment positions, as OpenEDI JSON, an ediFabric C# template and an ediFabric Native model. To change it for a trading partner, customize it in the EDI Spec Builder.

Loading the spec…
The spec as an OpenAPI 3 schema with x-openedi-* extensions, for ediFabric Native, ediFabric Cloud and the EDI Spec Builder. Download OpenEDI (89 KB) Generate classes
The ediFabric .NET template, class TSPROTAP. It needs the common segments, composites and codes of EDIFACT D11B, one download for every transaction in the version. Download C# (1 KB) Common files (68 KB)
The intermediary model ediFabric Native loads with set_map. Native supports X12 today, and EDIFACT is coming. Download Native (1 KB)

Use the PROTAP spec in your code

ediFabric .NET

Add the C# template and its common files to your project, or reference the template NuGet package, and read PROTAP files into TSPROTAP objects. See ediFabric .NET.

ediFabric Native

Native supports X12 today, and EDIFACT is coming. When it's available, map version D11B to this Native model with set_map to parse PROTAP files to JSON from Python, Java, C or C#. See ediFabric Native.

OpenEDI

Select Customize in Spec Builder to copy the spec under your own name, change it for your partner, and parse files against it in EdiNation, ediFabric Native or ediFabric Cloud. Read about OpenEDI.

Generate PROTAP classes in Python, Java, Node.js, Go, Rust or C

The OpenEDI file describes each PROTAP as JSON. To work with PROTAP data as typed objects, generate classes from the OpenEDI file in your language; the root class is TSPROTAP. The classes keep the loops, segments, lengths and code lists, but not the EDI data formats. Read more in Generate a class from OpenEDI.

Python: datamodel-code-generator. Node.js: openapi-typescript. Java, Go, Rust and C: OpenAPI Generator.

PROTAP structure

Loops and segments of the standard PROTAP, with their usage and maximum repeats.

IDNameUsageMax use
UNHUNHMandatory1
BGMBGMMandatory1
GEIGEIMandatory1
DTMDTMMandatory99
Loop RFFRFFOptional99
RFFRFFMandatory1
IMDIMDOptional9
BIIBIIOptional99
Loop GIRGIROptional99
GIRGIRMandatory1
RELRELOptional1
Loop PNAPNAOptional99
PNAPNAMandatory1
ADRADROptional1
BIIBIIOptional1
Loop CTACTAOptional9
CTACTAMandatory1
COMCOMOptional9
Loop CEDCEDOptional9
CEDCEDMandatory1
DTMDTMOptional9
Loop EFIEFIOptional99
EFIEFIMandatory1
CEDCEDOptional1
DTMDTMOptional1
Loop INDINDOptional999
INDINDMandatory1
BIIBIIOptional1
IMDIMDOptional1
RCSRCSOptional1
Loop LINLINOptional9999
LINLINMandatory1
BIIBIIOptional9
RFFRFFOptional9
IMDIMDOptional9
DTMDTMOptional99
Loop QTYQTYOptional99
QTYQTYMandatory1
DTMDTMOptional99
Loop PRIPRIOptional99
PRIPRIMandatory1
DTMDTMOptional99
Loop PCDPCDOptional99
PCDPCDMandatory1
DTMDTMOptional99
Loop RTERTEOptional99
RTERTEMandatory1
DTMDTMOptional99
Loop MOAMOAOptional99
MOAMOAMandatory1
DTMDTMOptional99
UNSUNSMandatory1
Loop RFFRFFOptional99
RFFRFFMandatory1
Loop SCCSCCOptional999
SCCSCCMandatory1
QTYQTYOptional99
DTMDTMOptional999
Loop LINLINOptional9999
LINLINMandatory1
STSSTSOptional1
BIIBIIOptional9
RFFRFFOptional9
IMDIMDOptional9
PNAPNAOptional9
CCICCIOptional9
DTMDTMOptional99
FTXFTXOptional99
Loop CTACTAOptional9
CTACTAMandatory1
COMCOMOptional9
Loop QTYQTYOptional99
QTYQTYMandatory1
DTMDTMOptional99
Loop PCDPCDOptional99
PCDPCDMandatory1
DTMDTMOptional99
Loop MOAMOAOptional99
MOAMOAMandatory1
DTMDTMOptional99
Loop GIRGIROptional9999
GIRGIRMandatory1
RELRELOptional1
RCSRCSOptional1
BIIBIIOptional9
RFFRFFOptional9
IMDIMDOptional9
DTMDTMOptional99
Loop QTYQTYOptional99
QTYQTYMandatory1
DTMDTMOptional99
Loop PCDPCDOptional99
PCDPCDMandatory1
DTMDTMOptional99
Loop MOAMOAOptional99
MOAMOAMandatory1
DTMDTMOptional99
Loop RTERTEOptional99
RTERTEMandatory1
DTMDTMOptional99
CNTCNTOptional99
UNTUNTMandatory1