on 08-30-2007 6:24 PM
Hello All,
I've created an aspnet application using SAP connector and I'm calling BAPI_PO_GETDetail but I'm not sure to use it correctly because I have not all of fields in my datagrid (for example I cannot see the vendor name or code)...
I think that I don't understand something !
Thanks for your help (and sorry for my English) !
here is my code :
' create proxy variable
Dim proxy2 As New SapConnectPO.POSAPProxy
' get a connection
Dim conn = SAP.Connector.SAPConnection.GetConnection(ConfigurationManager.AppSettings("connSAP"))
conn.Open()
proxy2.Connection = conn
' create structure variables
Dim t1 As New SapConnectPO.BAPIADDRESS
Dim t2 As New SapConnectPO.BAPIEKBE
Dim t3 As New SapConnectPO.BAPIEKBES
Dim t4 As New SapConnectPO.BAPIEKBESTable
Dim t5 As New SapConnectPO.BAPIEKBETable
Dim t6 As New SapConnectPO.BAPIEKBETable
Dim t7 As New SapConnectPO.BAPIEKES
Dim t8 As New SapConnectPO.BAPIEKESTable
Dim t9 As New SapConnectPO.BAPIEKET
Dim t10 As New SapConnectPO.BAPIEKETTable
Dim t11 As New SapConnectPO.BAPIEKKN
Dim t12 As New SapConnectPO.BAPIEKKNTable
Dim t13 As New SapConnectPO.BAPIEKKOL
Dim t14 As New SapConnectPO.BAPIEKKOTX
Dim t15 As New SapConnectPO.BAPIEKKOTXTable
Dim t16 As New SapConnectPO.BAPIEKPO
Dim t17 As New SapConnectPO.BAPIEKPOTable
Dim t18 As New SapConnectPO.BAPIEKPOTX
Dim t19 As New SapConnectPO.BAPIEKPOTXTable
Dim t20 As New SapConnectPO.BAPIESKL
Dim t25 As New SapConnectPO.BAPIESKLTable
Dim t26 As New SapConnectPO.BAPIESLL
Dim t27 As New SapConnectPO.BAPIESLLTable
Dim t28 As New SapConnectPO.BAPIESLLTX
Dim t29 As New SapConnectPO.BAPIESLLTXTable
Dim t30 As New SapConnectPO.BAPIESUC
Dim t31 As New SapConnectPO.BAPIESUCTable
Dim t32 As New SapConnectPO.BAPIESUH
Dim t33 As New SapConnectPO.BAPIESUHTable
Dim t34 As New SapConnectPO.BAPIPAREX
Dim t35 As New SapConnectPO.BAPIPAREXTable
Dim t36 As New SapConnectPO.BAPIRETURN
Dim t37 As New SapConnectPO.BAPIRETURNTable
' Call method
Try
proxy2.Bapi_Po_Getdetail(Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, "X", TextBox1.Text, Nothing, Nothing, Nothing, t1, t13, t35, t15, t12, t8, t31, t5, t4, t33, t10, t27, t25, t19, t17, t29, t37)
Catch ex As Exception
Response.Write(ex)
End Try
' result is bound to datagrid1
GridView1.DataSource = t17
GridView1.DataBind()
conn.close()
I think that it's not the good forums ... So I will close this one and post on another.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christine:
Actually this is the correct forum...But don't expect to recieve an answer too soon...We all have works besides SDN...Also, at least talking about myself...I don't know the solution to your problem -:( But I'm sure that there other members that can help you out -;)
Greetings,
Blag.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.