예제 #1
0
        public DataTable ZPISD_ENVIO_ACT_PED_VENTA_DEVO(String PedidoSAP)
        {
            DataTable _DATA   = new DataTable();
            ResultRFC _result = new ResultRFC();
            ZPISD_ENVIO_ACT_PED_VENTA_DEVO_ _PROXY = null;

            try
            {
                String _STATUS = String.Empty;
                String F_PED_D = String.Empty;
                String F_PED_V = PedidoSAP.Trim();
                ZSPI_DETALLE_DEVTable  ET_DETALLE_DEV  = new ZSPI_DETALLE_DEVTable();
                ZSPI_DETALLE_VENTable  ET_DETALLE_VEN  = new ZSPI_DETALLE_VENTable();
                ZSPI_CABECERA_VENTable ET_CABECERA_VEN = new ZSPI_CABECERA_VENTable();
                ZSPI_CABECERA_DEVTable ET_CABECERA_DEV = new ZSPI_CABECERA_DEVTable();

                _PROXY = new ZPISD_ENVIO_ACT_PED_VENTA_DEVO_(_CONFIG.STRING_CONNECT);
                _PROXY.ZPISD_ENVIO_ACT_PED_VENTA_DEVO(F_PED_D, F_PED_V, ref ET_CABECERA_DEV, ref ET_CABECERA_VEN, ref ET_DETALLE_DEV, ref ET_DETALLE_VEN);
                SET_RESULT(ref _result, _PROXY.Connection, _STATUS);
                _DATA = ET_DETALLE_VEN.ToADODataTable();
            }
            catch (Exception ex) { Extra.RunError(ex, "ZPISD_ENVIO_ACT_PED_VENTA_DEVO"); }
            finally
            {
                _PROXY.Connection.Close();
                _PROXY.Dispose();
            }

            return(_DATA);
        }
        public virtual void ZPISD_ENVIO_ACT_PED_VENTA_DEVO(

            [RfcParameter(AbapName = "F_PED_D", RfcType = RFCTYPE.RFCTYPE_STRING, Optional = false, Direction = RFCINOUT.IN, Length = 0, Length2 = 0)]
            [XmlElement("F_PED_D", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            String F_PED_D,
            [RfcParameter(AbapName = "F_PED_V", RfcType = RFCTYPE.RFCTYPE_CHAR, Optional = false, Direction = RFCINOUT.IN, Length = 10, Length2 = 20)]
            [XmlElement("F_PED_V", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            String F_PED_V,
            [RfcParameter(AbapName = "ET_CABECERA_DEV", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
            [XmlArray("ET_CABECERA_DEV", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            ref ZSPI_CABECERA_DEVTable ET_CABECERA_DEV,
            [RfcParameter(AbapName = "ET_CABECERA_VEN", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
            [XmlArray("ET_CABECERA_VEN", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            ref ZSPI_CABECERA_VENTable ET_CABECERA_VEN,
            [RfcParameter(AbapName = "ET_DETALLE_DEV", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
            [XmlArray("ET_DETALLE_DEV", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            ref ZSPI_DETALLE_DEVTable ET_DETALLE_DEV,
            [RfcParameter(AbapName = "ET_DETALLE_VEN", RfcType = RFCTYPE.RFCTYPE_ITAB, Optional = false, Direction = RFCINOUT.INOUT)]
            [XmlArray("ET_DETALLE_VEN", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            [XmlArrayItem("item", IsNullable = false, Form = XmlSchemaForm.Unqualified)]
            ref ZSPI_DETALLE_VENTable ET_DETALLE_VEN
            )
        {
            object[] results = null;
            results = this.SAPInvoke("ZPISD_ENVIO_ACT_PED_VENTA_DEVO", new object[] {
                F_PED_D,
                F_PED_V,
                ET_CABECERA_DEV,
                ET_CABECERA_VEN,
                ET_DETALLE_DEV,
                ET_DETALLE_VEN
            });
            ET_CABECERA_DEV = (ZSPI_CABECERA_DEVTable)results[0];
            ET_CABECERA_VEN = (ZSPI_CABECERA_VENTable)results[1];
            ET_DETALLE_DEV  = (ZSPI_DETALLE_DEVTable)results[2];
            ET_DETALLE_VEN  = (ZSPI_DETALLE_VENTable)results[3];
        }