Journal Entry - Post (Synchronous): An entry is required in House bank field for account 11001000

3 months ago 21

如下圖,想使用API: Journal Entry - Post (Synchronous)

(AccountingDocumentType=DZ)達成如同頁面上的「過帳收款 -> 帳戶過帳」:

viclin_0-1722329894406.png

viclin_0-1722330358372.png

API回傳錯誤訊息: An introduction is required successful House slope tract for relationship 11001000

viclin_2-1722330035889.png

即便於<Item>中加入<HouseBank>也是一樣的錯誤訊息:

viclin_4-1722330140349.png

以下附上完整payload:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN"> <soapenv:Header/> <soapenv:Body> <sfin:JournalEntryBulkCreateRequest> <MessageHeader> <CreationDateTime>2024-07-24T11:00:00.1234567Z</CreationDateTime> </MessageHeader> <JournalEntryCreateRequest> <MessageHeader> <CreationDateTime>2024-07-15T11:00:00.1234567Z</CreationDateTime> </MessageHeader> <JournalEntry> <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType> <BusinessTransactionType>RFBU</BusinessTransactionType> <AccountingDocumentType>DZ</AccountingDocumentType> <DocumentHeaderText>楠梓店07/24營收</DocumentHeaderText> <CreatedByUser>5STAR API</CreatedByUser> <CompanyCode>FIVE</CompanyCode> <DocumentDate>2024-07-15</DocumentDate> <PostingDate>2024-07-15</PostingDate> <Item> <HouseBank>63505</HouseBank> <GLAccount>11030002</GLAccount> <AmountInTransactionCurrency currencyCode="TWD">55535</AmountInTransactionCurrency> </Item> <DebtorItem> <ReferenceDocumentItem>1</ReferenceDocumentItem> <Debtor>1000000</Debtor> <AmountInTransactionCurrency currencyCode="TWD">-55535</AmountInTransactionCurrency> <DebitCreditCode>H</DebitCreditCode> </DebtorItem> </JournalEntry> </JournalEntryCreateRequest> </sfin:JournalEntryBulkCreateRequest> </soapenv:Body> </soapenv:Envelope>
Read Entire Article