Get GS data
Using the code below as an example I can extract the BEM data from a TS850.
Using this I looked for the GS data in the object and also in the XML, when converted, and didn't find the GS envelope data. "Possible to extract"?
THX
using (var ediReader = new X12Reader(ediStream, LoadFactory, new X12ReaderSettings() { ContinueOnError = true }))
{
while (ediReader.Read())
{
var _st = ediReader.Item as TS850;
if (_st != null)
{
BEG.Add("TSPC",_st.BEG.TransactionSetPurposeCode_01);
BEG.Add("POTC",_st.BEG.PurchaseOrderTypeCode_02);
BEG.Add("PON",_st.BEG.PurchaseOrderNumber_03);
BEG.Add("RN",_st.BEG.ReleaseNumber_04);
BEG.Add("DATE",_st.BEG.Date_05);
BEG.Add("CN",_st.BEG.ContractNumber_06);
BEG.Add("AT",_st.BEG.AcknowledgmentType_07);
}
}
}
Comments
2 comments
THX
Please sign in to leave a comment.