📚 SAP Business One SDK Help

Document_SpecialLines Object
See Also  Members  Example

Description

This object represents text and subtotal lines in marketing documents.

Source table: INV10 and IN10V (a virtual table for storing calculated values).

Remarks

In text line, you can add remarks.

In subtotal line, you can calculate subtotal of previous lines.

Text and subtotal lines cannot be drawn from the base document.

Example

Adding a Subtotal Special Line (Visual Basic)Copy Code
Sub AddSpecialLine()

        'Adding special line
        'Assume Qut is an existing Quotation Document Object

        'Setting the type of special line to be sub total
        Qut.SpecialLines.LineType = SAPbobsCOM.BoDocSpecialLineType.dslt_Subtotal

        'Setting the after line number
        'A number that says after which line the special line will appear
        Qut.SpecialLines.AfterLineNumber = 2

        'Check for errors
        lRetCode = Qut.Update()

        If lRetCode <> 0 Then
            oCompany.GetLastError(lErrCode, sErrMsg)
            MsgBox(lErrCode & " " & sErrMsg) ' Display error message
        Else
            MsgBox("Special Lines Added")
        End If

End Sub

See Also