EDI TO FLAT
Pre requisites:
a) Wm EDI samples . sample services . XI 2 values service
b) Sef parse
c) Edi dictionary (empty)
d) Edi schema DT (path)
e) Edi schema (generated through sef parse)
f) Flat file dictionary
g) Flat file schema
h) Flat file schema DT
1) Take a flat file dictionary ,for each and every ST/SE segment create an dictionary with record as the ST/SE segment and create fields as the fields of the ST/SE segments.
Ex: BEG segment
Record BEG:
Fields n BEG:
Transaction set purpose code
Po type code
Po No
Data
- Create a flat file schema by setting ref flat file dictionary.
- Through the flat file schema generate schema DT .
- Create an empty EDI dictionary
- Call sef parse service by giving EDI schema path , then EDI dictionary will be populated and EDI schema will be generated through which generate EDI schema DT
- Open WM EDI samples .sample services . XI 2 to values service .
- Copy the flow steps in it
- Create a own new flow service and paste the flow steps in it
- Loop over â/values/ISA/GS/STâ (After this step edit)
Edit MAP
Wm . b2b .Edi . Util .get EDI string
ST â values
Wm . b2b .Edi . convert to values
EDI Flat file schema : copy and paste Edi schema
Pipe out â ref of Edi schema DT
Map Edi values â Edi schema DT
2) Then add these flow steps.
MAP
Edi schema DT - flat file schema DT
Map each and every segment to field
EX: ISA
GS
BEG 01 â Transaction purpose code
BEG 02 â PO type code
: PO no.
: :
: :
3) Use Pub . flat file .convert to string
Flat file schema DT - flat file values
Flat file schema â path
- Sample .Io . test . write to file
