EndIDoc Method
Finish creating an IDoc.
Object Oriented Interface
public function doEndIDoc();
Procedural Interface
inerp_idocwriter_do_endidoc($res);
Remarks
EndIDoc terminates writing the current document and flushes it to the output stream/file.
Call EndIDoc once you've written all segments to be included in the IDoc.
Example IDocWriter Code:
idocwriter1.StartIDoc() idocwriter1.WriteControlRecord() idocwriter1.StartSegment("Segment1") idocwriter1.WriteFieldValue("Field1", "Value1") idocwriter1.WriteFieldValue("Field2", "Value2") ... idocwriter1.EndSegment() idocwriter1.StartSegment("Segment2") idocwriter1.WriteFieldValue("Field1", "Value1") ... idocwriter1.EndSegment() ... idocwriter1.EndIDoc()