public virtual void Bapi_Project_Getinfo( [RfcParameter(AbapName = "PROJECT_DEFINITION", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 24, Length2 = 48)] [XmlElement("PROJECT_DEFINITION", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string Project_Definition, [RfcParameter(AbapName = "WITH_ACTIVITIES", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("WITH_ACTIVITIES", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string With_Activities, [RfcParameter(AbapName = "WITH_MILESTONES", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("WITH_MILESTONES", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string With_Milestones, [RfcParameter(AbapName = "WITH_SUBTREE", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("WITH_SUBTREE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string With_Subtree, [RfcParameter(AbapName = "E_PROJECT_DEFINITION", RfcType = RFCTYPE.RFCTYPE_STRUCTURE, Optional = true, Direction = RFCINOUT.OUT)] [XmlElement("E_PROJECT_DEFINITION", IsNullable = false, Form = XmlSchemaForm.Unqualified)] out BAPI_PROJECT_DEFINITION_EX E_Project_Definition, [RfcParameter(AbapName = "RETURN", RfcType = RFCTYPE.RFCTYPE_STRUCTURE, Optional = true, Direction = RFCINOUT.OUT)] [XmlElement("RETURN", IsNullable = false, Form = XmlSchemaForm.Unqualified)] out BAPIRETURN1 Return0, [RfcParameter(AbapName = "E_ACTIVITY_TABLE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_ACTIVITY_TABLE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_ACTIVITY_EXPTable E_Activity_Table, [RfcParameter(AbapName = "E_MESSAGE_TABLE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_MESSAGE_TABLE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_METH_MESSAGETable E_Message_Table, [RfcParameter(AbapName = "E_WBS_ELEMENT_TABLE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_WBS_ELEMENT_TABLE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_WBS_ELEMENT_EXPTable E_Wbs_Element_Table, [RfcParameter(AbapName = "E_WBS_HIERARCHIE_TABLE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_WBS_HIERARCHIE_TABLE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_WBS_HIERARCHIETable E_Wbs_Hierarchie_Table, [RfcParameter(AbapName = "E_WBS_MILESTONE_TABLE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_WBS_MILESTONE_TABLE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_WBS_MILESTONE_EXPTable E_Wbs_Milestone_Table, [RfcParameter(AbapName = "I_WBS_ELEMENT_TABLE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_WBS_ELEMENT_TABLE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_WBS_ELEMENTSTable I_Wbs_Element_Table) { object[] results = null; results = this.SAPInvoke("Bapi_Project_Getinfo", new object[] { Project_Definition, With_Activities, With_Milestones, With_Subtree, E_Activity_Table, E_Message_Table, E_Wbs_Element_Table, E_Wbs_Hierarchie_Table, E_Wbs_Milestone_Table, I_Wbs_Element_Table }); E_Project_Definition = (BAPI_PROJECT_DEFINITION_EX)results[0]; Return0 = (BAPIRETURN1)results[1]; E_Activity_Table = (BAPI_NETWORK_ACTIVITY_EXPTable)results[2]; E_Message_Table = (BAPI_METH_MESSAGETable)results[3]; E_Wbs_Element_Table = (BAPI_WBS_ELEMENT_EXPTable)results[4]; E_Wbs_Hierarchie_Table = (BAPI_WBS_HIERARCHIETable)results[5]; E_Wbs_Milestone_Table = (BAPI_WBS_MILESTONE_EXPTable)results[6]; I_Wbs_Element_Table = (BAPI_WBS_ELEMENTSTable)results[7]; }
public Boolean MaintainNetworkActivities( out BAPIRETURN1 stBAPIReturn1, ref BAPI_METH_MESSAGETable arMsgs, ref BAPI_NETWORK_ACTIVITYTable arNtwkActivities, ref BAPI_ACT_ELEMENTTable arActyElements, ref BAPI_ACT_ELEMENT_UPDTable arActyElementsUpDate, ref BAPI_ACT_MILESTONETable arActyMilestones, ref BAPI_ACT_MILESTONE_UPDTable arActyMilestonesUpDate, ref BAPI_NETWORK_ACTIVITY_UPTable arNtwkActivitiesUpDate, ref BAPI_METHOD_PROJECTTable arPrjDef, ref BAPI_NETWORKTable arNtwks, ref BAPI_NETWORK_UPDATETable arNtwksUpDate, ref BAPI_NETWORK_RELATIONTable arRltns, ref BAPI_NETWORK_RELATION_UPTable arRltnsUpDate) { try { oSAPProxy.Bapi_Network_Maintain(out stBAPIReturn1, ref arMsgs, ref arNtwkActivities, ref arActyElements, ref arActyElementsUpDate, ref arActyMilestones, ref arActyMilestonesUpDate, ref arNtwkActivitiesUpDate, ref arPrjDef, ref arNtwks, ref arNtwksUpDate, ref arRltns, ref arRltnsUpDate); } catch (Exception ex) { stBAPIReturn1 = new BAPIRETURN1(); stBAPIReturn1.Type = "E"; stBAPIReturn1.Message = "MaintainNetworkActivities call failed."; stBAPIReturn1.Message_V1 = ex.Message; return(false); } if (stBAPIReturn1.Type == "E") //Error { return(false); } else { return(true); } }
public virtual void Bapi_Network_Existencecheck( [RfcParameter(AbapName = "NUMBER", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = false, Direction = RFCINOUT.IN, Length = 12, Length2 = 24)] [XmlElement("NUMBER", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string Number, [RfcParameter(AbapName = "RETURN", RfcType = RFCTYPE.RFCTYPE_STRUCTURE, Optional = true, Direction = RFCINOUT.OUT)] [XmlElement("RETURN", IsNullable = false, Form = XmlSchemaForm.Unqualified)] out BAPIRETURN1 Return0) { object[] results = null; results = this.SAPInvoke("Bapi_Network_Existencecheck", new object[] { Number }); Return0 = (BAPIRETURN1)results[0]; }
public Boolean GetPrjWBSData(string sProjName, String sWithActivities, String sWithMilestones, String sWithSubtree, out BAPI_PROJECT_DEFINITION_EX stPrjDef, out BAPIRETURN1 stBAPIReturn1, ref BAPI_NETWORK_ACTIVITY_EXPTable arNtwkActy, ref BAPI_METH_MESSAGETable arMsgs, ref BAPI_WBS_ELEMENT_EXPTable arWBSELEMEXP, ref BAPI_WBS_HIERARCHIETable arWBSHRCY, ref BAPI_WBS_MILESTONE_EXPTable arWBSMLST, ref BAPI_WBS_ELEMENTSTable arWBSELEMSELECT) { try { oSAPProxy.Bapi_Project_Getinfo(sProjName, sWithActivities, sWithMilestones, sWithSubtree, out stPrjDef, out stBAPIReturn1, ref arNtwkActy, ref arMsgs, ref arWBSELEMEXP, ref arWBSHRCY, ref arWBSMLST, ref arWBSELEMSELECT); } catch (Exception ex) { MessageBox.Show(ex.Message, "CSAPPrj:GetPrjWBSData."); stPrjDef = null; stBAPIReturn1 = null; return(false); } return(true); }
public virtual void Bapi_Network_Maintain( [RfcParameter(AbapName = "RETURN", RfcType = RFCTYPE.RFCTYPE_STRUCTURE, Optional = true, Direction = RFCINOUT.OUT)] [XmlElement("RETURN", IsNullable = false, Form = XmlSchemaForm.Unqualified)] out BAPIRETURN1 Return0, [RfcParameter(AbapName = "E_MESSAGE_TABLE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_MESSAGE_TABLE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_METH_MESSAGETable E_Message_Table, [RfcParameter(AbapName = "I_ACTIVITY", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_ACTIVITY", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_ACTIVITYTable I_Activity, [RfcParameter(AbapName = "I_ACTIVITY_ELEMENT", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_ACTIVITY_ELEMENT", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_ACT_ELEMENTTable I_Activity_Element, [RfcParameter(AbapName = "I_ACTIVITY_ELEMENT_UPDATE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_ACTIVITY_ELEMENT_UPDATE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_ACT_ELEMENT_UPDTable I_Activity_Element_Update, [RfcParameter(AbapName = "I_ACTIVITY_MILESTONE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_ACTIVITY_MILESTONE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_ACT_MILESTONETable I_Activity_Milestone, [RfcParameter(AbapName = "I_ACTIVITY_MILESTONE_UPDATE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_ACTIVITY_MILESTONE_UPDATE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_ACT_MILESTONE_UPDTable I_Activity_Milestone_Update, [RfcParameter(AbapName = "I_ACTIVITY_UPDATE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_ACTIVITY_UPDATE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_ACTIVITY_UPTable I_Activity_Update, [RfcParameter(AbapName = "I_METHOD_PROJECT", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)] [XmlArray("I_METHOD_PROJECT", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_METHOD_PROJECTTable I_Method_Project, [RfcParameter(AbapName = "I_NETWORK", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_NETWORK", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORKTable I_Network, [RfcParameter(AbapName = "I_NETWORK_UPDATE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_NETWORK_UPDATE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_UPDATETable I_Network_Update, [RfcParameter(AbapName = "I_RELATION", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_RELATION", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_RELATIONTable I_Relation, [RfcParameter(AbapName = "I_RELATION_UPDATE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("I_RELATION_UPDATE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_RELATION_UPTable I_Relation_Update) { object[] results = null; results = this.SAPInvoke("Bapi_Network_Maintain", new object[] { E_Message_Table, I_Activity, I_Activity_Element, I_Activity_Element_Update, I_Activity_Milestone, I_Activity_Milestone_Update, I_Activity_Update, I_Method_Project, I_Network, I_Network_Update, I_Relation, I_Relation_Update }); Return0 = (BAPIRETURN1)results[0]; E_Message_Table = (BAPI_METH_MESSAGETable)results[1]; I_Activity = (BAPI_NETWORK_ACTIVITYTable)results[2]; I_Activity_Element = (BAPI_ACT_ELEMENTTable)results[3]; I_Activity_Element_Update = (BAPI_ACT_ELEMENT_UPDTable)results[4]; I_Activity_Milestone = (BAPI_ACT_MILESTONETable)results[5]; I_Activity_Milestone_Update = (BAPI_ACT_MILESTONE_UPDTable)results[6]; I_Activity_Update = (BAPI_NETWORK_ACTIVITY_UPTable)results[7]; I_Method_Project = (BAPI_METHOD_PROJECTTable)results[8]; I_Network = (BAPI_NETWORKTable)results[9]; I_Network_Update = (BAPI_NETWORK_UPDATETable)results[10]; I_Relation = (BAPI_NETWORK_RELATIONTable)results[11]; I_Relation_Update = (BAPI_NETWORK_RELATION_UPTable)results[12]; }
public virtual void Bapi_Network_Getdetail( [RfcParameter(AbapName = "I_WITHOUT_ACTIVITY_ELEMENT", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("I_WITHOUT_ACTIVITY_ELEMENT", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string I_Without_Activity_Element, [RfcParameter(AbapName = "I_WITHOUT_ACTIVITY_MILESTONE", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("I_WITHOUT_ACTIVITY_MILESTONE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string I_Without_Activity_Milestone, [RfcParameter(AbapName = "I_WITHOUT_COMPONENT", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("I_WITHOUT_COMPONENT", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string I_Without_Component, [RfcParameter(AbapName = "I_WITHOUT_NETWORK", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("I_WITHOUT_NETWORK", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string I_Without_Network, [RfcParameter(AbapName = "I_WITHOUT_NETWORK_ACTIVITY", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("I_WITHOUT_NETWORK_ACTIVITY", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string I_Without_Network_Activity, [RfcParameter(AbapName = "I_WITHOUT_RELATION", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = true, Direction = RFCINOUT.IN, Length = 1, Length2 = 2)] [XmlElement("I_WITHOUT_RELATION", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string I_Without_Relation, [RfcParameter(AbapName = "NUMBER", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = false, Direction = RFCINOUT.IN, Length = 12, Length2 = 24)] [XmlElement("NUMBER", IsNullable = false, Form = XmlSchemaForm.Unqualified)] string Number, [RfcParameter(AbapName = "RETURN", RfcType = RFCTYPE.RFCTYPE_STRUCTURE, Optional = true, Direction = RFCINOUT.OUT)] [XmlElement("RETURN", IsNullable = false, Form = XmlSchemaForm.Unqualified)] out BAPIRETURN1 Return0, [RfcParameter(AbapName = "E_ACTIVITY", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_ACTIVITY", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_ACTIVITY_EXPTable E_Activity, [RfcParameter(AbapName = "E_ACTIVITY_ELEMENT", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_ACTIVITY_ELEMENT", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_ACT_ELEMENT_EXPTable E_Activity_Element, [RfcParameter(AbapName = "E_ACTIVITY_MILESTONE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_ACTIVITY_MILESTONE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_ACT_MILESTONE_EXPTable E_Activity_Milestone, [RfcParameter(AbapName = "E_COMPONENT", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_COMPONENT", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_COMPONENT_EXPTable E_Component, [RfcParameter(AbapName = "E_MESSAGE_TABLE", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_MESSAGE_TABLE", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_METH_MESSAGETable E_Message_Table, [RfcParameter(AbapName = "E_NETWORK", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_NETWORK", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_EXPTable E_Network, [RfcParameter(AbapName = "E_RELATION", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = true, Direction = RFCINOUT.INOUT)] [XmlArray("E_RELATION", IsNullable = false, Form = XmlSchemaForm.Unqualified)] [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)] ref BAPI_NETWORK_RELATION_EXPTable E_Relation) { object[] results = null; results = this.SAPInvoke("Bapi_Network_Getdetail", new object[] { I_Without_Activity_Element, I_Without_Activity_Milestone, I_Without_Component, I_Without_Network, I_Without_Network_Activity, I_Without_Relation, Number, E_Activity, E_Activity_Element, E_Activity_Milestone, E_Component, E_Message_Table, E_Network, E_Relation }); Return0 = (BAPIRETURN1)results[0]; E_Activity = (BAPI_NETWORK_ACTIVITY_EXPTable)results[1]; E_Activity_Element = (BAPI_ACT_ELEMENT_EXPTable)results[2]; E_Activity_Milestone = (BAPI_ACT_MILESTONE_EXPTable)results[3]; E_Component = (BAPI_COMPONENT_EXPTable)results[4]; E_Message_Table = (BAPI_METH_MESSAGETable)results[5]; E_Network = (BAPI_NETWORK_EXPTable)results[6]; E_Relation = (BAPI_NETWORK_RELATION_EXPTable)results[7]; }