This sample program is only a demonstration to show how one can easily acknowledge a UN/EDIFACT file and create a CONTRL message with the Framework EDI component.
Acknowledging a UN/EDIFACT D01B ORDERS message
UNA:+.? 'UNB+UNOC:3+SENDER ID:ZZZ:A1B2C3D4E5+RECEIVER ID:ZZZ:A1B2C3D4E5+20151128:1037+1++++1++1'UNH+1+ORDERS:D:01B:UN:EAN010'BGM+220+PO357893+9'DTM+2:20150813:102'DTM+137:201511281130:203'DTM+235:201509071025:203'FTX+DEL+1++INCLUDE TIME IN DATE OF DELIVERY'RFF+AAN:APPTNO123445'NAD+BY+BUYEREANID12345::9'LOC+7+BUYERPLACE::92'CTA+PD+A1B2C3D4E5:A1B2C3D4E5'COM+EMAIL@DOMAIN:EM'COM+9055557766:FX'NAD+ST+SHIPTOEANID3457::9'LOC+7+SHIPTOLOCATION::92'CTA+PD+A1B2C3D4E5:A1B2C3D4E5'COM+8185556789:FX'COM+2135559898:TE'NAD+SU+SUPPLIEREANID9876::9'LOC+7+SUPPLIERLOCATION::92'CTA+PD+A1B2C3D4E5:A1B2C3D4E5'COM+SALES@DOMAIN:EM'COM+3105553344:TE'LIN+1+1+GTIN1233456:SRV'PIA+5+VDKF9T:IN+ERG34T2233:IN'IMD+F++:::PRODUCT 1'MEA+PD+ULY+NAR:24'QTY+21:45:KGM'DTM+364:20151217:102'PRI+1E:190.45'LIN+2+1+GTIN8734652:SRV'PIA+5+LKKSDFK56324:SA+K3IF5N58FN4:SA'IMD+F++:::THIS IS PRODUCT2'MEA+PD+LAY+NAR:6'QTY+59:3:KGM'DTM+364:20090716:102'PRI+1E:123456.50'UNS+S'MOA+86:37535.34'CNT+2:2'UNT+40+1'UNZ+1+1'
CONTRL message
[View Source Code]
[Download Program]