ImportSchemaFromSAP Method
Loads the schema for an IDoc type.
Object Oriented Interface
public function doImportSchemaFromSAP($idoctype, $enhancement);
Procedural Interface
inerp_idocreader_do_importschemafromsap($res, $idoctype, $enhancement);
Remarks
Imports the IDoc schema for the IDoc type specified by the parameters IDocType and Enhancement from the SAP system into the class.
Note that the IDocType parameter should be the same as the IDOCTYP in the ControlRecordData of the document you intend to read. Likewise the Enhancement parameter should be the same as the CIMTYP in the ControlRecordData record. If the Enhancement is set and defined as an IDoc type on the SAP system, then the corresponding schema will be returned.