📚 SAP Business One SDK Help

SetDefaultBankChargesAllocationCode Method
See Also  Example
pIBankChargesAllocationCodeParams

The key of the bank charges allocation code.

Description

Sets the default bank charges allocation code.

Syntax

Visual Basic
Public Sub SetDefaultBankChargesAllocationCode( _
   ByVal pIBankChargesAllocationCodeParams As BankChargesAllocationCodeParams _
) 

Parameters

pIBankChargesAllocationCodeParams

The key of the bank charges allocation code.

Example

Setting Default Bank Charges Allocation Code (C#)Copy Code
void SetDefaultCode () 
        { 
            Try 
            { 
                CompanyService oCompSrv = MyCompany.GetCompanyService(); 
                BankChargesAllocationCodesService oBCACodeSrv = (BankChargesAllocationCodesService)(oCompSrv.GetBusinessService(ServiceTypes.BankChargesAllocationCodesService)); 
                BCACodeParams defaultCode; 
                defaultCode = (BCACodeParams)oBCACodeSrv.GetDataInterface(BankChargesAllocationCodesServiceDataInterfaces.bcacsBCACodeParams); 
                defaultCode.Code = "1"; 
                oBCACodeSrv. SetDefaultBankChargesAllocationCode(defaultCode); 
            } 
            Catch (Exception ex) 
            { 
                MessageBox.Show(ex.ToString()); 
            }  
}

See Also