コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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];
        }