📚 SAP Business One SDK Help

CartaPorteID Property
See Also  Example

Description

"Complemento Carta Porte" ID is used for the identification of folios for the Mexico authorities in CFDi.

Field name: CartaPorte.

Length: 50 characters.

Property type

Read-only property

Syntax

Visual Basic
Public Property CartaPorteID() As String

Remarks

Mexico localization only.

Example

Load document and try to update property cartaPorteId (C#)Copy Code
string objKey = vComp.GetNewObjectKey(); 
SAPbobsCOM.Documents doc = vComp.GetBusinessObject(BoObjectTypes.oInvoices); 
if (doc.GetByKey(Int32.Parse(objKey))) 

    int protCount = doc.ElectronicProtocols.Count; 
    for (int i = 0; i < protCount; i++) 
    { 
        doc.ElectronicProtocols.SetCurrentLine(i); 
        if (doc.ElectronicProtocols.ProtocolCode == SAPbobsCOM.ElectronicDocProtocolCodeEnum.edpc_CFDI) 
        { 
            doc.ElectronicProtocols.ClearCartaPorteID(); 
            break; 
        } 
    } 
}

See Also