on 08-16-2007 2:42 PM
Hi all,
I can insert data to user defined table with the DI API :
Dim table As SAPbobsCOM.UserTable = oCompany.UserTables.Item("BSS_GNET_LOGS")
table.Code = "1"
table.Name = "1"
table.UserFields.Fields.Item("U_Action").Value = "Test"
lRetCode = table.Add()
If lRetCode <> 0 Then
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(sErrMsg)
End If
How to do that with DI Server ? Which SOAP message do I must send ?
The AddObject message is :
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header>
<SessionID>...</SessionID>
</env:Header>
<env:Body>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
<BOM>
<BO>
<AdmInfo>
<Object>...</Object>
</AdmInfo>
...
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
How to use it with a user defined table ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think that DI API is more adapted than DI Server for develpment. Even if we develop a web application.
With the DI Server, we must use the SQLExecute command
For all selection
For inserting, updating and deleting data in user defined table
Is it dangerous to use the DI API in a web application ?
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope">
<env:Header>
<SessionID>...</SessionID>
</env:Header>
<env:Body>
<dis:ExecuteSQL xmlns:dis="http://www.sap.com/SBO/DIS">
<DoQuery>
INSERT INTO [@BSS_GNET_LOGS](Code, Name)
VALUES ( [%0], [%1] )
</DoQuery>
<QueryParams>
<0>Code</0>
<1>Name</1>
</QueryParams>
</dis:ExecuteSQL>
</env:Body>
</env:Envelope>
How to do with the parameters ?
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.