clsImportERPProjectCode Class |
Please make sure, that SAP Business One DI-API in 32 or 64 bit is installed according to the usage of this interface. The logon user in MARIProject has to have a corresponding user linked to the selected company database.
Namespace: MARIInterface
The clsImportERPProjectCode type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportERPProjectCode | Initializes a new instance of the clsImportERPProjectCode class |
| Name | Description | |
|---|---|---|
| ProjectCode |
NVARCHAR(8) Unique ProjectCode ID Example "P10002"
| |
| ProjectName |
NVARCHAR(30) Project Code Name
|
public bool CreateProjectCode(string sPrjCode, string sPrjName) { clsImportERPProjectCode NewProjectCode = new clsImportERPProjectCode(); NewProjectCode.CompanyID = 1; // First company linked to MARIProject NewProjectCode.ProjectCode = sPrjCode; NewProjectCode.ProjectName = sPrjName; if (oMPInterface.bImportERPProjectCode(NewProjectCode, clsImportBase.eImportMode.ValidateAndImport)) { return true; } else { LogFail(oMPInterface.oErrors.PrintErrors()); return false; } }