WriteControlRecord Method
Writ IDoc control record data to the file or stream.
Object Oriented Interface
public function doWriteControlRecord();
Procedural Interface
inerp_idocwriter_do_writecontrolrecord($res);
Remarks
This will read the fields in ControlRecordData and write it to the file or stream.
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()