点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
您好,
使用"服务层API reference.html"中的示例,我能够将收款付款过帐到Business One。
过帐https://本地主机:50000/b1s/v1/IncomingPayments
{" CardCode":" c001",
" CashAccount":" _SYS00000000002",
" CashFlowAssignments":[
{
" AmountLC":" 110",
" PaymentMeans":" pmtCash"
}
],
" CashSum":" 110"
}
起作用了。
下一步,我需要将支票过帐到特定发票,但是在任何文档中都找不到此示例。
所以我尝试根据SDK DI-API文档猜测JSON属性。
{" CardCode":" SWD",
" Checks":[
{
" CheckSum":" 2756.68",
" BankCode":" B1"
}
],
"发票":[
{" DocEntry":9 ,
" SumApplied":" 2756.68"
}
],
" TransferSum":" 2756.68"
}
响应返回为"未找到数据检查" "。 我也尝试了" Payments_Checks",它也失败了。
1。 进行此付款申请的正确代码是什么?
2。 是否有比"服务层API reference.html"更好的源于Business One服务层的详细文档资源?
在这种情况下,该文档并不总是包含属性名称的所有详细信息。 特别是在有子表时。
感谢您的帮助。
关于
Mel
回答我自己的问题:
要为任何对象的属性找到正确的服务层拼写,只需执行GET:
E.G。
获取
https://hanab1vm2:50000/b1s/v1/IncomingPayments(9)。
结果显示所有属性:
{
" odata.metadata":" https://hanab1vm2:50000/b1s/v1/$ metadata#IncomingPayments/@ Element",
" DocNum":9,
" DocType" :" rCustomer",
" HandWritten":" tNO",
" Printed":" tNO",
" DocDate":" 2019-03-23",
" CardCode":" CIS",
" CardName":" Complete Information Systems,LLC","地址":" 222 E. Wisconsin Ave. \ rSuite 309 \ rLake Forest,IL 60045-1723 \ rUSA",
" CashAccount":" _SYS00000000002",
" DocCurrency":" $",
" CashSum":0,
" CheckAccount":" _SYS00000000006",
" TransferAccount":空,
" TransferSum":0,
" TransferDate":空,
" TransferReference":空,
" LocalCurrency":" tNO",
" DocRate":0,
" Reference1 ":" 9",
" Reference2":空,
" CounterReference":空,
"备注":空,
" JournalRemarks":"收款-CIS",
" SplitTransaction":" tNO",
" ContactPersonCode":空,
" ApplyVAT":" tNO",
" TaxDate":" 2019-03-23",
"系列": 15,
" BankCode":空,
" BankAccount":空,
" DiscountPercent": 0,
" ProjectCode":空,
" CurrencyIsLocal":" tNO",
" DeductionPercent":0,
" DeductionSum":0,
" CashSumFC":0,< br>" CashSumSys":0,
" BoeAccount":空,
" BillOfExchangeAmount":0,
" BillofExchangeStatus":空,
" BillOfExchangeAmountFC":0,
" BillOfExchangeAmountSC" :0,
" BillOfExchangeAgent":空,
" WTCode":空,
" WTAmount":0,
" WTAmountFC":0,
" WTAmountSC":0,
" WTAccount":空,
" WTTaxableAmount":0,
" Proforma":" tNO",
" PayToBankCode":空,
" PayToBankBranch":空,
" PayToBankAccountNo ":null,
" PayToCode":" CIS",
" PayToBankCountry":null,
" IsPayToBank":" tNO",
" DocEntry":9,
" PaymentPriority" :" bopp_Priority_6",
" TaxGroup":空,
" BankChargeAmount":0,
" BankChargeAmountInFC":0,
" BankChargeAmountInSC":0,
" UnderOverpaymentdifference":0,
" UnderOverpaymentdiffSC":0,
" WtBaseSum":0,
" WtBaseSumFC":0,
" WtBaseSumSC":0,
" VatDate":" 2018-03-23" ,
" T ransactionCode":"",
" PaymentType":" bopt_None",
" TransferRealAmount":0,
" DocObjectCode":" bopot_IncomingPayments",
" DocTypte":" rCustomer",
" DueDate":" 2019-03-23",
" LocationCode":空,
" Cancelled":" tNO",
" ControlAccount":" _SYS00000000010",
" UnderOverpaymentdiffFC" :0,
" AuthorizationStatus":" pasWithout",
" BPLID":空,
" BPLName":空,
" VATRegNum":空,
" BlanketAgreement":空,
" PaymentChecks":[
{
" LineNum":0,
" DueDate":" 2019-03-23",
" CheckNumber":1,
" BankCode ":" B1",
"分支":"",
" AccounttNum":"",
"详细信息":null,
" Trnsfrable":" tYES",
" CheckSum":343,
" Currency":" $",
" CountryCode":" US",
" CheckAbsEntry":9,
" CheckAccount":" _ SYS00000000006",
" ManualCheck":" tNO",
" FiscalID":空,
" OriginallyIssuedBy":空,
" Endorse":" tNO",
" EndorsableCheckNo":空
} < br>],
" PaymentInvoices":[
{
" LineNum":0,
" DocEntry":217,
" SumApplied":100,
" AppliedFC":0,
" AppliedSys":100,
" DocRate":0,
" DocLine":0,
" InvoiceType": " it_Invoice",
" DiscountPercent":0,
" PaidSum":0,
" InstallationId":1,
" WitholdingTaxApplied":0,
" WitholdingTaxAppliedFC":0,< br>" WitholdingTaxAppliedSC":0,
" LinkDate":空,
" DistributionRule":空,
" DistributionRule2":空,
" DistributionRule3":空,
" DistributionRule4" :null,
" DistributionRule5":null,
" TotalDiscount":0,
" TotalDiscountFC":0,
" TotalDiscountSC":0
},
{
" LineNum":1,
" DocEntry":219,
" SumApplied":243,
" AppliedFC":0,
" AppliedSys":243,
" DocRate":0 ,
" DocLine":0,
" InvoiceType":" it_Invoice",
" DiscountPercent":0,
" PaySum":0,
" InstallationId":1,
>" WitholdingTaxAppliedFC":0,
" WitholdingTaxAppliedFC":0,
" WitholdingTaxAppliedSC":0,
" LinkDate":null,
" DistributionRule":null,
" DistributionRule2": null,
"分发 nRule3":空,
" DistributionRule4":空,
" DistributionRule5":空,
" TotalDiscount":0,
" TotalDiscountFC":0,
" TotalDiscountSC":0 < br>}
],
" PaymentCreditCards":[],
" PaymentAccounts":[],
" BillOfExchange":{},
" WithholdingTaxCertificatesCollection":[],
" CashFlowAssignments":[],
" Payments_ApprovalRequests":[],
" WithholdingTaxDataWTXCollection":[]
}
一周热门 更多>