📚 SAP Business One SDK Help

Update Method
See Also  Example
pIISDDocument

The key of the ISD document to be updated.

Description

Updates an existing ISD document.

Syntax

Visual Basic
Public Sub Update( _
   ByVal pIISDDocument As ISDDocument _
) 

Parameters

pIISDDocument

The key of the ISD document to be updated.

Example

C#Copy Code
            CompanyService oCompanyService = oCompany.GetCompanyService(); 
            ISDDocumentsService oDocService = oCompanyService.GetBusinessService(ServiceTypes.ISDDocumentsService); 
            ISDParams oDocParams = oDocService.GetDataInterface(ISDDocumentsServiceDataInterfaces.isd_ISDParams); 
            oDocParams.DocumentEntry = 1; 
            ISDDocument oDoc = oDocService.Get(oDocParams); 
         
            if (oDoc != null) 
            { 
                     oDoc.Remarks = "This has been changed via DI 200"; 
            } 
            oDocService.Update(oDoc); 
            if (string.IsNullOrEmpty(oCompany.GetLastErrorDescription())) 
            { 
                MessageBox.Show("ISD Document#" + oDoc.DocumentNumber + " updated successfully.", "Message"); 
            }

See Also