问题描述
代码如下privatevoidPage_Load(objectsender,System.EventArgse){//在此处放置用户代码以初始化页面//Binddatabackthis.destination1.Username="zbecky";this.destination1.Password="stephanie";//addthis.destination1.AppServerHost="10.152.2.26";this.destination1.SystemNumber=00;this.destination1.Client=120;this.destination1.Language="en";}#regionWeb窗体设计器生成的代码overrideprotectedvoidOnInit(EventArgse){////CODEGEN:该调用是ASP.NETWeb窗体设计器所必需的。//InitializeComponent();base.OnInit(e);}///<summary>///设计器支持所需的方法-不要使用代码编辑器修改///此方法的内容。///</summary>privatevoidInitializeComponent(){this.components=newSystem.ComponentModel.Container();this.destination1=newSAP.Connector.Destination(this.components);this.Button1.Click+=newSystem.EventHandler(this.Button1_Click);this.Load+=newSystem.EventHandler(this.Page_Load);}#endregionprivatevoidButton1_Click(objectsender,System.EventArgse){SAPProxy1proxy=newSAPProxy1();proxy.Connection=newSAP.Connector.SAPConnection(this.destination1);//KNA1是表的数据结构类KNA1objkna=newKNA1();//textbox1为传入参数,后者为传出参数proxy.Z_Get_Customer(this.TextBox1.Text.Trim(),outobjkna);//显示名称字段this.Label2.Text=objkna.Name1;}为题是返回的objkna老师没有数据??????急,求助
解决方案
解决方案二:
SAP还没接触过
解决方案三:
关注一下,顶
解决方案四:
proxy先OPEN