cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ByDesign SOAP API Cannot send both G/L Account and Cost Center

x27lu
Explorer
0 Likes
543

Hi, I am getting a really weird problem when trying to populate supplier invoice items using the SOAP API ManageSupplierInvoiceIn call. For some reason, if I populate both the G/L Account using MaintenanceAccountingCodingBlockDistribution.setGeneralLedgerAccountAliasCode and the Cost Center using MaintenanceAccountingCodingBlockDistribution.setAccountingCodingBlockDistribution, the invoice that gets written doesn't have the G/L Account. If I don't send over the Cost Center, then the G/L Account gets populated. I also verified manually that both fields are using values that are compatible with each other. Does anybody know why this happens?

Accepted Solutions (1)

Accepted Solutions (1)

frank_jahnigen
Product and Topic Expert
Product and Topic Expert
Hello, 
 
Usually the convention for specifying the Cost Distribution in supplier invoices broadly would follow the scheme below: 
 
<AccountingCodingBlockDistribution>
                
    <AccountingCodingBlockAssignment>          
                     <CostCentreID>XYZ</CostCentreID>
                     <GeneralLedgerAccountAliasCode>ABC</GeneralLedgerAccountAliasCode>                  
    </AccountingCodingBlockAssignment>
 
</AccountingCodingBlockDistribution>
 
Cost Centre as well as Account Determination would then be reflected in posted invoice. 
 
Hope this helps, 
 
Frank
x27lu
Explorer
0 Likes
Thanks Frank, this worked! I was only setting GeneralLedgerAccountAliasCode in the parent AccountingCodingBlockDistribution. When I also set it in the AccountingCodingBlockAssignment as you have shown, both the G/L Account and Cost Centre ID populated fine.

Answers (0)