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

calculation problem?

i have two field grossweight and tare weight, net weight and field type is measure?

SBO_Application.MessageBox("19") is showing no problem in item event...

SBO_Application.MessageBox("20 ") this message box is not showing...

i want to calculate two fields?

previously done same thing but datatype was integer

  Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent

        Dim oForm As SAPbouiCOM.Form
        oForm = SBO_Application.Forms.Item(FormUID)
SBO_Application.MessageBox("19")
        If (pVal.ItemUID = "Ntwegh") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE) And (pVal.ItemChanged = True) Then

            SBO_Application.MessageBox("20 ")

            Dim val9 As Double
            Dim val8 As Double
            val8 = oForm.Items.Item("glwegh").Specific.value
            val9 = val8 - oForm.Items.Item("ltwegh").Specific.value
            oForm.Items.Item("Ntwegh").Specific.value = val9



        End If
end sub

please help me?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2008 at 02:20 PM

    Have you set the filter for et_VALIDATE to include your form type?

    Put a break point in the line

    If (pVal.ItemUID = "Ntwegh") And (pVal.EventType ...

    and check all the values used in your If statement (You can add Pval to the watch window and see the different values)

    Edited by: Rui Pereira on Dec 23, 2008 4:14 PM

    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.