Skip to Content

How can I get value of Document Total of system form in SDK?

Hi all,

How can I get value of textbox (Document Total) of system form (AR/Invoice) in SAP B1 SDK

Actually in VB I can do something like

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim total As Double
        total = TextBox1.Text
    End Sub

How can I do something like that in SAP B1?

Please anyone can help me

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 25, 2017 at 02:02 PM

    Hi,

    It should be done something like this:

    SAPbouiCOM.Form oForm = (SAPbouiCOM.Form)SBO_Application.Forms.GetForm("139", 1);
    SAPbouiCOM.EditText oEditTotal = (SAPbouiCOM.EditText)oForm.Items.Item("29").Specific;
    Double Total = Convert.ToDouble(oEditTotal.Value);
    

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded