Skip to Content
author's profile photo Former Member
Former Member

How to Update a UserTable

Hi Masters

I have a Form which was designed in Screen Painter which is also bounded to a UserTable , I am able to Add the details from SBO when my Application Runs But i am unable to UPDATE the same, could you please tell me the entire query to update my Table

This is my Method to Add ,i am able to Add But please provide me the query for UPDATE

Public Sub addPOReq(ByVal objForm As SAPbouiCOM.Form)

Dim strSQL As String

Dim objRS As SAPbobsCOM.Recordset

Dim intCode As Integer

Dim intDocEntry As Integer

intCode = objAddOn.objGenFunc.GetCode("[@ALTPOREQHD]")

intDocEntry = GetNextCode()

strSQL = "INSERT INTO [@ALTPOREQHD](Code, Name, U_DocEntry, U_DocNum, U_Status, U_DeliveryDate, U_DocDate, U_EmpCode, U_EmpName) VALUES(" & _

" " & intCode & _

",'" & intCode & "'" & _

", " & intDocEntry & _

",'" & intDocEntry & "'" & _

",'" & "O" & "'" & _

",'" & objAddOn.objGenFunc.GetDateTimeValue(objForm.Items.Item("13").Specific.String).ToString("yyyy-MM-dd") & "'" & _

",'" & objAddOn.objGenFunc.GetDateTimeValue(objForm.Items.Item("15").Specific.String).ToString("yyyy-MM-dd") & "'" & _

",'" & objForm.Items.Item("4").Specific.String & "'" & _

",'" & objForm.Items.Item("7").Specific.string & "'" & _

")"

objRS = objAddOn.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)

objRS.DoQuery(strSQL)

objAddOn.objApplication.StatusBar.SetText("Added successfully ")

End Sub

Regards

Mohamed

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 12:52 PM

    Hello MOHAMED ZUBAIR

    You will get a faster answer if you post this question to the SDK forum as this is pertaining to SDK.

    Suda

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.