Technical Articles
User Guide for Journal Entry Post API on S/4 HANA Cloud
Hi Guys
Thank you for reading the blog post.
I wrote another blog post series which focus on the Journal Entry APIs in communication scenario Finance – Posting Integration (SAP_COM_0002). I will only update the blog post series from now on rather than this blog post. If you are interested in Journal Entry APIs, it is recommended to refer this blog post series at Guidelines for API Journal Entry – Post.
Content
2 How to Create Communication User, Communication System and Communication Arrangement 7
2.1 Create Communication System and Communication User 7
2.2 Create Communication Arrangement 9
3 How to Create Extension Field and Enable It for Journal Entry Post API 11
4.2 How to Test Synchronous API with SOAPUI 14
4.3 How to Test Asynchronous API with SOAPUI 17
5 How to Check Response Message. 19
5.1 How to Check Response Message for Synchronous API 19
5.2 How to Check Response Message for Asynchronous API 20
6.2 Extension field is not displayed in Fiori App Manage Journal Entry. 23
6.3 Consulting about Payment Terms. 24
6.4 Consulting if Customer/Vender Payment is supported. 25
6.5 Consulting about Partner Bank Type. 26
6.6 Consulting about Tax Caculation. 26
1 Purpose
Journal Entry Post API provides SOAP APIs which enable remote systems to post journal entries to the S4/HANA tenant.
The API has two types of SOAP inbound interfaces. One is the synchronous SOAP inbound interface “JournalEntryCreateRequestConfirmation_In”. The other is asynchronous SOAP inbound interface “JournalEntryBulkCreationRequest_In”. Starting with CE1811, these 2 SOAP APIs support field extensibility.
This document describes the following topics:
1. How to create communication user, communication system and communication arrangement
2. How to create extension field and enable it for Journal Entry Post API
3. How to test API
4. How to check response message
2 How to Create Communication User, Communication System and Communication Arrangement
2.1 Create Communication System and Communication User
Procedure
- Log on to the SAP Fiori launchpad as Administrator.
- Under Communication Management, choose the Communication Systems tile.
- On the Communication Systems screen, choose New.
- Enter System ID and System Name.
- Click Create.
- Fill the mandatory field Host Name.
- Under User for Inbound Communication, choose + to add a user for inbound communication.
- On the New Inbound Communication User screen, choose New User.
- On the Create Communication User screen, make the following entries:
a. User Name: Enter a user name.
b. Description: Enter a description
c. Password: Enter a password - Choose Create.
- Click OK and SAVE the Communications System.
- Return to the SAP Fiori launchpad.
2.2 Create Communication Arrangement
Procedure
- Under Communication Management, choose the Communication Arrangements tile.
- On the Communications Arrangements screen, click New and select the scenario SAP_COM_0002 (Finance – Posting Integration).
- Click Create.
- On the next screen, select the Communications System from previous step and verify that the user name has been entered automatically.
- Click Save.
Result
You have created a communication arrangement that allows you to access and post journal entries from an ERP or S/4HANA On Premise system to a cloud system remotely via the Cloud Connector (RFC).
3 How to Create Extension Field and Enable It for Journal Entry Post API
Procedure
- Log on to the SAP Fiori launchpad as Administrator.
- Under Extensibility, choose the Custom Fields and Logic tile.
- On the Custom Fields and Logic screen, click Create
- On the New Field screen, make the following entries:a. Business Context: choose the context where the extension field belongs toUp to CE1902, this API supports the extension fields in Business Context Accounting: Coding Block, Accounting: Journal Entry Item and Accounting: Market Segmentb. Label: enter the name for extension fieldc. Type: choose the data type for extension fieldd. Length: enter the length for extension field
- Click Create and Edit
- Switch to tab SOAP APIs, and click Enable Usage for JournalEntryBulkCreationRequest_In and JournalEntryCreateRequestConfirmation_In
- Switch to tab UIs and Reports, and click Enable Usage for Manage Journal Entries
- Click Save and then click Publish
Result
You have created extension fields and enabled them in the structure of Journal Entry Post API and Fiori App Manage Journal Entries.
4 How to Test API
4.1 How to Install SOAPUI
Latest SoapUI Open Source Downloads:
https://www.soapui.org/downloads/latest-release.html
SoapUI Installation Guides:
https://www.soapui.org/getting-started/installing-soapui.html
4.2 How to Test Synchronous API with SOAPUI
Procedure
- Log on to the SAP Fiori launchpad as Administrator.
- Under Communication Management, choose the Communication Arrangements tile.
- Open your communication arrangement, and download the WSDL for Journal Entry – Post (Synchronous) on the Communications Arrangements screen
- Open SOAPUI and click New SOAP Project
- On the New SOAP Project screen, click “Browse” to find your WSDL, then click OK.
- Open Request and input your payload into the request. Here we take ‘create vender invoice’ as an example. The payload is attached here
<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> <ID>MSG_2018-12-06_APITEST</ID> <!--<ReferenceID></ReferenceID>--> <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime> </MessageHeader> <!--1 or more repetitions:--> <JournalEntryCreateRequest> <MessageHeader> <ID>SUB_MSG_2018-06-05_001</ID> <!--<ReferenceID></ReferenceID>--> <CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime> </MessageHeader> <JournalEntry> <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType> <OriginalReferenceDocument>0090000004</OriginalReferenceDocument> <OriginalReferenceDocumentLogicalSystem>0MB85UO</OriginalReferenceDocumentLogicalSystem> <BusinessTransactionType>RFBU</BusinessTransactionType> <AccountingDocumentType>KR</AccountingDocumentType> <DocumentReferenceID>2</DocumentReferenceID> <DocumentHeaderText>Test AR Item Posting</DocumentHeaderText> <CreatedByUser>CC0000000044</CreatedByUser> <CompanyCode>1010</CompanyCode> <DocumentDate>2018-06-05</DocumentDate> <PostingDate>2018-06-05</PostingDate> <Item> <ReferenceDocumentItem>1</ReferenceDocumentItem> <GLAccount>0065301000</GLAccount> <AmountInTransactionCurrency currencyCode="EUR">934.58</AmountInTransactionCurrency> <DebitCreditCode>S</DebitCreditCode> <DocumentItemText>Test Item 2</DocumentItemText> <Tax> <TaxCode>V2</TaxCode> </Tax> <AccountAssignment> <CostCenter>0010101101</CostCenter> <yy1:YY1_CB_EXT_FIELD>?</yy1:YY1_CB_EXT_FIELD> </AccountAssignment> <yy1:YY1_JE_ITEM_EXT_FIELD>JE ITEM</yy1:YY1_JE_ITEM_EXT_FIELD> </Item> <CreditorItem> <ReferenceDocumentItem>2</ReferenceDocumentItem> <Creditor>0010200001</Creditor> <AmountInTransactionCurrency currencyCode="EUR">-1000</AmountInTransactionCurrency> <DebitCreditCode>H</DebitCreditCode> <DocumentItemText>Vender item</DocumentItemText> <yy1:YY1_JE_ITEM_EXT_FIELD>CREDITOR ITEM</yy1:YY1_JE_ITEM_EXT_FIELD> </CreditorItem> <ProductTaxItem> <TaxCode>V2</TaxCode> <TaxItemClassification>VST</TaxItemClassification> <AmountInTransactionCurrency currencyCode="EUR">65.42</AmountInTransactionCurrency> <DebitCreditCode>S</DebitCreditCode> <TaxBaseAmountInTransCrcy currencyCode="EUR">934.58</TaxBaseAmountInTransCrcy> <yy1:YY1_JE_ITEM_EXT_FIELD>TAX ITEM</yy1:YY1_JE_ITEM_EXT_FIELD> </ProductTaxItem> </JournalEntry> </JournalEntryCreateRequest> </sfin:JournalEntryBulkCreateRequest> </soapenv:Body> </soapenv:Envelope>
- Click Auth, and choose Add New Authorization
- On Add Authorization screen, choose Basic then click OK
- Input your communication user and password
- Click to submit request, then response, such as journal entry number or error message, will display in the right window
4.3 How to Test Asynchronous API with SOAPUI
Procedure
- Please follow the procedure 1 to 9 in section 4.1. In Communication Arrangement, you need to download the WSDL for Journal Entry – Post (Asynchronous)
- Click WS-A in SOAPUI request, and check Enable WS-A addressing and Generate MessageID
- Remember the ID in the structure of MessageHeader. It is used to identify your request in Message Dashboard (Message Dashboard is introduced in the subsequent section). You could change this ID as your wish.
- Click to submit request. As it is asynchronous API, response does not display in the right window. It need to be checked in Message Dashboard.
5 How to Check Response Message
5.1 How to Check Response Message for Synchronous API
Procedure
- For synchronous API, it can check response message directly in SOAPUI in most cases. However, because of some typos or missing of substructure or fields in payload, response like
‘Web service processing error; more details in the web service error log on provider side (UTC timestamp 20181206081109; Transaction ID 7317F91553620380E005BF87F1D17D3D) The error log can be accessed by service provider from SAP backend’
is returned. In this case, it is requested to access SAP backend to check the error message.
For cloud customer, they need to ask for assistance from SAP Support to check the error message in SAP backend.
- Log on to the backend system, and enter Transaction SRT_LOG
- On Select Error Log Entries screen, it is suggested to search by Transaction ID stated in response, such as Transaction ID 7317F91553620380E005BF87F1D17D3D or fill User Name to narrow down the result. User Name is the backend user of the communication user
- On Web Service Utilities: Error Log screen, the error entries are listed
5.2 How to Check Response Message for Asynchronous API
Procedure
- For asynchronous API, it can check response message in Fiori App Message Dashboard. Pease follow the subsequent procedure to enable API monitor in Message Dashboard
- Log on to the SAP Fiori launchpad as Administrator. Make sure Administrator is assigned with role SAP_BR_CONF_EXPERT_BUS_NET_INT in advance.
- Under Message Monitoring, choose Assign Recipients to Users tile
- Click to assign AIF Recipient to business user
- Enter the Recipients. It supports to choose them from drop down list.
- Assign business user with the role which includes business catalog SAP_CA_BC_COM_ERR_PC
- Log on to the SAP Fiori launchpad with business user.
- Under Message Monitoring, choose Message Dashboard tile
- Set the period of dates, then click message number
- By means of ID to address the message log
6 Some Common Queries
6.1 Typo in payload
- Some typos in payload structure could be identified by using Validate of SOAPUI. Please use this function to make sure there is no such kind of error in payload.
- Some warnings like those in screenshot below can be ignored
6.2 Extension field is not displayed in Fiori App Manage Journal Entry
- If extension field is totally missing in Fiori App Manage Journal Entry, please make sure the extension field is enabled for Manage Journal Entries when creating it in Fiori App Custom Fields and Logic. Please refer section 3 procedure 7
- If the value of extension field is missing, you need to switch to legal view to see its value in Fiori App Manage Journal Entry
6.3 Consulting about Payment Terms
If substructure DebtorItem-CashDiscountTerms or CreditorItem-CashDiscountTerms are filled with value in payload, cash discount is determined by CashDiscountTerms. Otherwise cash discount is determined by Payment Terms which is derived from Customer or Supplier’s master data.
If you want to fill CashDiscountTerms, you need to fill the following fields in order.
<DueCalculationBaseDate>?</DueCalculationBaseDate>
<CashDiscount1Days>?</CashDiscount1Days>
<CashDiscount1Percent>?</CashDiscount1Percent>
<CashDiscount2Days>?</CashDiscount2Days>
<CashDiscount2Percent>?</CashDiscount2Percent>
<NetPaymentDays>?</NetPaymentDays>
It is not allowed to have a gap in the payment terms. However, it is allowed to only fill NetPaymentDays. In this case, the NetPaymentDays will be shifted to CashDiscountDays1 with CashDiscountPercent1 = 0%. From business perspective this is equivalent.
Correct Example:
<CashDiscountTerms>
<DueCalculationBaseDate>2019-01-24</DueCalculationBaseDate>
<CashDiscount1Days>1</CashDiscount1Days>
<CashDiscount1Percent>5</CashDiscount1Percent>
<CashDiscount2Days>3</CashDiscount2Days>
<CashDiscount2Percent>2</CashDiscount2Percent>
<NetPaymentDays>5</NetPaymentDays>
</CashDiscountTerms>
Or
<CashDiscountTerms>
<DueCalculationBaseDate>2019-01-24</DueCalculationBaseDate>
<NetPaymentDays>5</NetPaymentDays>
</CashDiscountTerms>
Incorrect Example:
This example is incorrect because CashDiscount1Days and CashDiscount1Percent are not filled.
<CashDiscountTerms>
<DueCalculationBaseDate>2019-01-24</DueCalculationBaseDate>
<CashDiscount2Days>3</CashDiscount2Days>
<CashDiscount2Percent>2</CashDiscount2Percent>
<NetPaymentDays>5</NetPaymentDays>
</CashDiscountTerms>
</CreditorItem>
6.4 Consulting if Customer/Vender Payment is supported
The API supports posting document for customer or vender payment, however the API does not support clearing open item.
6.5 Consulting about Partner Bank Type
Partner bank type is not provided in the structure of JE Post API. However, it can be determined by country, vender, bank number and bank account. It means if you provide these fields in Substructure CreditorItem-PaymentDetails- PayeeBankAccount, partner bank type can be determined from vender master data and updated in accounting document.
Example is below.
<CreditorItem>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<Creditor>0010401010</Creditor>
<AmountInTransactionCurrency currencyCode=”EUR”>-100</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<PaymentDetails>
<PayeeBankAccount>
<Country>DE</Country>
<BankNumber>50070010</BankNumber>
<BankAccount>50070010</BankAccount>
<IBAN>DE54500700100113369800</IBAN>
</PayeeBankAccount>
</PaymentDetails>
</CreditorItem>
Partner bank type is proposed in accounting document.
6.6 Consulting about Tax Caculation
JE Post API does not support calculating tax amount automatically based on tax code. Tax amount and other tax information need to be manually filled in substructure ProductTaxItem.
This is part of payload as example:
<Item>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0063009000</GLAccount>
<AmountInTransactionCurrency currencyCode=”IDR”>91</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Test Item</DocumentItemText>
<Tax>
<TaxCode>V2</TaxCode>
</Tax>
<AccountAssignment>
<CostCenter>0051101101</CostCenter>
</AccountAssignment>
</Item>
<CreditorItem>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<Creditor>S5130003</Creditor>
<AmountInTransactionCurrency currencyCode=”IDR”>-100</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Vender item</DocumentItemText>
</CreditorItem>
<ProductTaxItem>
<TaxCode>V2</TaxCode>
<TaxItemClassification>VST</TaxItemClassification>
<AmountInTransactionCurrency currencyCode=”IDR”>9</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<TaxBaseAmountInTransCrcy currencyCode=”IDR”>91</TaxBaseAmountInTransCrcy>
</ProductTaxItem>
7 Important New Features
CE1905
As of CE1905, Journal Entry Post API (Synchronous and Asynchronous) supports over 999 line items posting. But there are some limitations below to be complied.
- If the document line item number is less than or equal 999, no compress will happen. The details are stored in both of Entry View and Ledger View.
- If the document line item number is higher than 999 and the items exclude open item, cross company item and tax item, the items are only stored in the Ledger View without compress.
- If the document line item number is higher than 999 and the items include open item, cross company item or tax item, the items will be compressed in Entry View. This is done by deleting the contents from the account assignment except for the function area. But the details are still stored in the Ledger View.But for the following cases, the items will not be compressed in Entry View:a. CreditorItem or DebtorItem cannot be compressed.
b. The G/L Items with accounts which are open item management cannot be compressed if the G/L items are distinguished by assignment or account assignment or item text or any other value offered in the GL structure (besides amount fields). If there are no difference among G/L items besides amount fields, they will be compressed.
c. If items have unique document item text or assignment, these items cannot be compressed. - In case the document line item number is still higher than 999 after compress, the posting will fail as Entry View does not support over 999 line items.
8 Appendix
1. SAP Help Page
Journal Entry – Post (Synchronized)
Journal Entry – Post (Asynchronized)
2. SAP API Business Hub
Journal Entry – Post (synchronized)
https://api.sap.com/api/JOURNALENTRYCREATEREQUESTCONFI/overview
Journal Entry – Post (asynchronized)
https://api.sap.com/api/JOURNALENTRYBULKCREATIONREQUES/overview
3. Payload Examples
G/L Account Document
<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>
<ID>MSG_2018-10-31</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-10-31T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-10-31</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-10-31T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument/>
<OriginalReferenceDocumentLogicalSystem/>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>SA</AccountingDocumentType>
<DocumentReferenceID>123</DocumentReferenceID>
<DocumentHeaderText>Test JE Posting</DocumentHeaderText>
<CreatedByUser>CC0000000044</CreatedByUser>
<CompanyCode>1010</CompanyCode>
<DocumentDate>2018-12-05</DocumentDate>
<PostingDate>2018-12-05</PostingDate>
<Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>
<Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>
<Item>
<!--Optional:-->
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0066000000</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">1000</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Test Item 1</DocumentItemText>
<AccountAssignment>
<!--Optional:-->
<CostCenter>0010101101</CostCenter>
</AccountAssignment>
</Item>
<Item>
<!--Optional:-->
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<GLAccount>0010010000</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">-1000</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Test Item 2</DocumentItemText>
<AccountAssignment>
<CostCenter>0010101201</CostCenter>
</AccountAssignment>
</Item>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Customer Invoice
<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>
<ID>MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument/>
<OriginalReferenceDocumentLogicalSystem/>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>DR</AccountingDocumentType>
<DocumentReferenceID>123</DocumentReferenceID>
<DocumentHeaderText>Test AR Item Posting</DocumentHeaderText>
<CreatedByUser>CC0000000044</CreatedByUser>
<CompanyCode>1010</CompanyCode>
<DocumentDate>2018-06-05</DocumentDate>
<PostingDate>2018-06-05</PostingDate>
<Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>
<Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>
<Item>
<!--Optional:-->
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0041000000</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">-1000</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Test Item 2</DocumentItemText>
<AssignmentReference>123</AssignmentReference>
<Tax>
<TaxCode>A1</TaxCode>
</Tax>
<AccountAssignment>
<ProfitCenter>YB700</ProfitCenter>
<Segment>1000_C</Segment>
<FunctionalArea>YB30</FunctionalArea>
</AccountAssignment>
<ProfitabilitySupplement>
<Customer>S10100252</Customer>
</ProfitabilitySupplement>
</Item>
<!--Zero or more repetitions:-->
<DebtorItem>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<Debtor>S10100252</Debtor>
<AmountInTransactionCurrency currencyCode="EUR">1190</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Customer item 1</DocumentItemText>
</DebtorItem>
<ProductTaxItem>
<!--<ReferenceDocumentItem></ReferenceDocumentItem>-->
<TaxCode>A1</TaxCode>
<TaxItemClassification>MWS</TaxItemClassification>
<AmountInTransactionCurrency currencyCode="EUR">-190</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<TaxBaseAmountInTransCrcy currencyCode="EUR">-1000</TaxBaseAmountInTransCrcy>
</ProductTaxItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
One-Time Customer Invoice
<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>
<ID>MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument/>
<OriginalReferenceDocumentLogicalSystem/>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>DR</AccountingDocumentType>
<DocumentReferenceID>123</DocumentReferenceID>
<DocumentHeaderText>Test AR Item Posting</DocumentHeaderText>
<CreatedByUser>CC0000000044</CreatedByUser>
<CompanyCode>1010</CompanyCode>
<DocumentDate>2018-06-05</DocumentDate>
<PostingDate>2018-06-05</PostingDate>
<Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>
<Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>
<Item>
<!--Optional:-->
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0041000000</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">-1000</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Test Item 1</DocumentItemText>
<Tax>
<TaxCode>A1</TaxCode>
</Tax>
<AccountAssignment>
<ProfitCenter>YB700</ProfitCenter>
<Segment>1000_C</Segment>
<FunctionalArea>YB30</FunctionalArea>
</AccountAssignment>
<ProfitabilitySupplement>
<Customer>0010100273</Customer>
</ProfitabilitySupplement>
</Item>
<!--Zero or more repetitions:-->
<DebtorItem>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<Debtor>0010100273</Debtor>
<AmountInTransactionCurrency currencyCode="EUR">1190</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Customer item</DocumentItemText>
<CashDiscountTerms>
<DueCalculationBaseDate>2018-07-31</DueCalculationBaseDate>
<CashDiscount1Days>0</CashDiscount1Days>
<CashDiscount1Percent>0</CashDiscount1Percent>
<CashDiscount2Days>0</CashDiscount2Days>
<CashDiscount2Percent>0</CashDiscount2Percent>
<NetPaymentDays>0</NetPaymentDays>
</CashDiscountTerms>
<OneTimeCustomerDetails>
<!--Optional:-->
<Name>ABC</Name>
<!--Optional:-->
<CityName>SH</CityName>
<!--Optional:-->
<Country>CN</Country>
</OneTimeCustomerDetails>
</DebtorItem>
<ProductTaxItem>
<!--<ReferenceDocumentItem></ReferenceDocumentItem>-->
<TaxCode>A1</TaxCode>
<TaxItemClassification>MWS</TaxItemClassification>
<AmountInTransactionCurrency currencyCode="EUR">-190</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<TaxBaseAmountInTransCrcy currencyCode="EUR">-1000</TaxBaseAmountInTransCrcy>
</ProductTaxItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Withholding Tax for Customer Invoice
<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>
<ID>MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument/>
<OriginalReferenceDocumentLogicalSystem/>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>DR</AccountingDocumentType>
<DocumentHeaderText>Test WHTAX Item Posting</DocumentHeaderText>
<CreatedByUser>CC0000000044</CreatedByUser>
<CompanyCode>5110</CompanyCode>
<DocumentDate>2018-11-20</DocumentDate>
<PostingDate>2018-11-20</PostingDate>
<DocumentReferenceID>SCOMP</DocumentReferenceID>
<Item>
<GLAccount>0041000000</GLAccount>
<AmountInTransactionCurrency currencyCode="IDR">-100</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Test Withholding Item</DocumentItemText>
<AccountAssignment>
<ProfitCenter>YB700</ProfitCenter>
<Segment>1000_A</Segment>
<FunctionalArea>YB10</FunctionalArea>
</AccountAssignment>
<ProfitabilitySupplement>
<Customer>0051100010</Customer>
</ProfitabilitySupplement>
</Item>
<DebtorItem>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<Debtor>0051100010</Debtor>
<AmountInTransactionCurrency currencyCode="IDR">100</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Customer Item</DocumentItemText>
<AssignmentReference>1234</AssignmentReference>
</DebtorItem>
<WithholdingTaxItem>
<WithholdingTaxType>A1</WithholdingTaxType>
<WithholdingTaxCode>01</WithholdingTaxCode>
<AmountInTransactionCurrency currencyCode="IDR">0</AmountInTransactionCurrency>
<TaxBaseAmountInTransCrcy currencyCode="IDR">100</TaxBaseAmountInTransCrcy>
</WithholdingTaxItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Customer Payment
It does not support the clearing of open item
<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>
<ID>MSG_2018-10-31</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument/>
<OriginalReferenceDocumentLogicalSystem/>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>DZ</AccountingDocumentType>
<DocumentReferenceID>123</DocumentReferenceID>
<DocumentHeaderText>Test Posting</DocumentHeaderText>
<CreatedByUser>CC0000000044</CreatedByUser>
<CompanyCode>1010</CompanyCode>
<DocumentDate>2018-11-07</DocumentDate>
<PostingDate>2018-11-07</PostingDate>
<Item>
<!--Optional:-->
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0011001080</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">100</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Test Item</DocumentItemText>
<ValueDate>2018-11-07</ValueDate>
</Item>
<!--Zero or more repetitions:-->
<DebtorItem>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<Debtor>0010200001</Debtor>
<AmountInTransactionCurrency currencyCode="EUR">-100</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Customer item 1</DocumentItemText>
</DebtorItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Customer Down Payment
<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>
<ID>MSG_2018-07-31</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-07-18</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument/>
<OriginalReferenceDocumentLogicalSystem/>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>DZ</AccountingDocumentType>
<DocumentHeaderText>Test AP Item Posting</DocumentHeaderText>
<CreatedByUser>_SAPI312578</CreatedByUser>
<CompanyCode>1010</CompanyCode>
<DocumentDate>2018-11-15</DocumentDate>
<PostingDate>2018-11-15</PostingDate>
<DocumentReferenceID>123</DocumentReferenceID>
<Item>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0010010000</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">100.00</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Test Item 1</DocumentItemText>
<AssignmentReference>20180723</AssignmentReference>
</Item>
<Item>
<ReferenceDocumentItem>4</ReferenceDocumentItem>
<GLAccount>0021191500</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">6.54</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Test Item 4</DocumentItemText>
<AssignmentReference>20180723</AssignmentReference>
<Tax>
<TaxCode>A2</TaxCode>
</Tax>
</Item>
<DebtorItem>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<Debtor>S10100252</Debtor>
<AmountInTransactionCurrency currencyCode="EUR">-100.00</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Customer Item</DocumentItemText>
<AssignmentReference>DOWN PAYMENT</AssignmentReference>
<!--Optional:-->
<Reference1IDByBusinessPartner>REF1</Reference1IDByBusinessPartner>
<!--Optional:-->
<Reference2IDByBusinessPartner>REF2</Reference2IDByBusinessPartner>
<!--Optional:-->
<Reference3IDByBusinessPartner>REF3</Reference3IDByBusinessPartner>
<CashDiscountTerms>
<DueCalculationBaseDate>2018-11-20</DueCalculationBaseDate>
<CashDiscount1Days>0</CashDiscount1Days>
<CashDiscount1Percent>0</CashDiscount1Percent>
<CashDiscount2Days>0</CashDiscount2Days>
<CashDiscount2Percent>0</CashDiscount2Percent>
<NetPaymentDays>0</NetPaymentDays>
</CashDiscountTerms>
<DownPaymentTerms>
<SpecialGLCode>A</SpecialGLCode>
<SalesOrder>13674</SalesOrder>
<!--Optional:-->
<SalesOrderItem>10</SalesOrderItem>
<!--Optional:-->
<TaxCode>A2</TaxCode>
</DownPaymentTerms>
</DebtorItem>
<ProductTaxItem>
<ReferenceDocumentItem>3</ReferenceDocumentItem>
<TaxCode>A2</TaxCode>
<TaxItemClassification>MWS</TaxItemClassification>
<AmountInTransactionCurrency currencyCode="EUR">-6.54</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<TaxBaseAmountInTransCrcy currencyCode="EUR">93.46</TaxBaseAmountInTransCrcy>
</ProductTaxItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Vendor Invoice
<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>
<ID>MSG_2018-10-31</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
<!--<TestDataIndicator>true</TestDataIndicator>-->
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-10-31</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-10-31T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument/>
<OriginalReferenceDocumentLogicalSystem/>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>KR</AccountingDocumentType>
<DocumentReferenceID>123</DocumentReferenceID>
<DocumentHeaderText>Test AR Item Posting</DocumentHeaderText>
<CreatedByUser>CC0000000044</CreatedByUser>
<CompanyCode>5110</CompanyCode>
<DocumentDate>2018-11-12</DocumentDate>
<PostingDate>2018-11-12</PostingDate>
<Reference1InDocumentHeader>12345678901234567890</Reference1InDocumentHeader>
<Reference2InDocumentHeader>1234567890</Reference2InDocumentHeader>
<Item>
<!--Optional:-->
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0063009000</GLAccount>
<AmountInTransactionCurrency currencyCode="IDR">91</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Test Item</DocumentItemText>
<Tax>
<TaxCode>V2</TaxCode>
</Tax>
<AccountAssignment>
<CostCenter>0051101101</CostCenter>
</AccountAssignment>
</Item>
<!--Zero or more repetitions:-->
<CreditorItem>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<Creditor>S5130003</Creditor>
<AmountInTransactionCurrency currencyCode="IDR">-100</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Vender item</DocumentItemText>
</CreditorItem>
<ProductTaxItem>
<TaxCode>V2</TaxCode>
<TaxItemClassification>VST</TaxItemClassification>
<AmountInTransactionCurrency currencyCode="IDR">9</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<TaxBaseAmountInTransCrcy currencyCode="IDR">91</TaxBaseAmountInTransCrcy>
</ProductTaxItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Withholding Tax for Vender Invoice
<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>
<ID>MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-06-05</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-06-05T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument></OriginalReferenceDocument>
<OriginalReferenceDocumentLogicalSystem></OriginalReferenceDocumentLogicalSystem>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>KR</AccountingDocumentType>
<DocumentHeaderText>Test WHTAX Item Posting</DocumentHeaderText>
<CreatedByUser>CC0000000044</CreatedByUser>
<CompanyCode>5110</CompanyCode>
<DocumentDate>2018-06-05</DocumentDate>
<PostingDate>2018-06-05</PostingDate>
<DocumentReferenceID>SCOMP</DocumentReferenceID>
<Item>
<GLAccount>0063009000</GLAccount>
<AmountInTransactionCurrency currencyCode="IDR">91</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Test Withholding Item </DocumentItemText>
<Tax>
<TaxCode>V2</TaxCode>
</Tax>
<AccountAssignment>
<CostCenter>0051101101</CostCenter>
</AccountAssignment>
</Item>
<CreditorItem>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<Creditor>S5130003</Creditor>
<AmountInTransactionCurrency currencyCode="IDR">-100</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Vender Item</DocumentItemText>
<AssignmentReference>1234</AssignmentReference>
<CashDiscountTerms>
<DueCalculationBaseDate>2018-06-05</DueCalculationBaseDate>
<NetPaymentDays>2</NetPaymentDays>
</CashDiscountTerms>
</CreditorItem>
<ProductTaxItem>
<TaxCode>V2</TaxCode>
<TaxItemClassification>VST</TaxItemClassification>
<AmountInTransactionCurrency currencyCode="IDR">9</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<TaxBaseAmountInTransCrcy currencyCode="IDR">91</TaxBaseAmountInTransCrcy>
</ProductTaxItem>
<WithholdingTaxItem>
<WithholdingTaxType>I4</WithholdingTaxType>
<WithholdingTaxCode>01</WithholdingTaxCode>
<AmountInTransactionCurrency currencyCode="IDR">0</AmountInTransactionCurrency>
<TaxBaseAmountInTransCrcy currencyCode="IDR">91</TaxBaseAmountInTransCrcy>
</WithholdingTaxItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Vendor Payment
It does not support the clearing of open item
<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>
<ID>MSG_2018-07-31</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-07-18</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument/>
<OriginalReferenceDocumentLogicalSystem/>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>KZ</AccountingDocumentType>
<DocumentHeaderText>Test AP Item Posting</DocumentHeaderText>
<CreatedByUser>_SAPI312578</CreatedByUser>
<CompanyCode>1010</CompanyCode>
<DocumentDate>2018-07-23</DocumentDate>
<PostingDate>2018-07-23</PostingDate>
<DocumentReferenceID>123</DocumentReferenceID>
<Item>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0011001010</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">-1000.00</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Test Item 1</DocumentItemText>
<AssignmentReference>20180723</AssignmentReference>
<ValueDate>2018-07-23</ValueDate>
</Item>
<CreditorItem>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<Creditor>S1030005</Creditor>
<AmountInTransactionCurrency currencyCode="EUR">1000.00</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Vender Item</DocumentItemText>
<AssignmentReference>PAYMENT</AssignmentReference>
</CreditorItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Vendor Down Payment
<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>
<ID>MSG_2018-07-31</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<!--1 or more repetitions:-->
<JournalEntryCreateRequest>
<MessageHeader>
<ID>SUB_MSG_2018-07-18</ID>
<!--<ReferenceID></ReferenceID>-->
<CreationDateTime>2018-07-18T12:00:00.1234567Z</CreationDateTime>
</MessageHeader>
<JournalEntry>
<OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
<OriginalReferenceDocument></OriginalReferenceDocument>
<OriginalReferenceDocumentLogicalSystem></OriginalReferenceDocumentLogicalSystem>
<BusinessTransactionType>RFBU</BusinessTransactionType>
<AccountingDocumentType>KZ</AccountingDocumentType>
<DocumentHeaderText>Test AP Item Posting</DocumentHeaderText>
<CreatedByUser>_SAPI312578</CreatedByUser>
<CompanyCode>1010</CompanyCode>
<DocumentDate>2018-07-23</DocumentDate>
<PostingDate>2018-07-23</PostingDate>
<DocumentReferenceID>123</DocumentReferenceID>
<Item>
<ReferenceDocumentItem>1</ReferenceDocumentItem>
<GLAccount>0010010000</GLAccount>
<AmountInTransactionCurrency currencyCode="EUR">-100.00</AmountInTransactionCurrency>
<DebitCreditCode>H</DebitCreditCode>
<DocumentItemText>Test Item 1</DocumentItemText>
<AssignmentReference>20180723</AssignmentReference>
</Item>
<CreditorItem>
<ReferenceDocumentItem>2</ReferenceDocumentItem>
<Creditor>0010300095</Creditor>
<AmountInTransactionCurrency currencyCode="EUR">100.00</AmountInTransactionCurrency>
<DebitCreditCode>S</DebitCreditCode>
<DocumentItemText>Vender Item</DocumentItemText>
<AssignmentReference>DOWN PAYMENT</AssignmentReference>
<CashDiscountTerms>
<DueCalculationBaseDate>2018-07-31</DueCalculationBaseDate>
<CashDiscount1Days>0</CashDiscount1Days>
<CashDiscount1Percent>0</CashDiscount1Percent>
<CashDiscount2Days>0</CashDiscount2Days>
<CashDiscount2Percent>0</CashDiscount2Percent>
<NetPaymentDays>0</NetPaymentDays>
</CashDiscountTerms>
<DownPaymentTerms>
<SpecialGLCode>A</SpecialGLCode>
</DownPaymentTerms>
</CreditorItem>
</JournalEntry>
</JournalEntryCreateRequest>
</sfin:JournalEntryBulkCreateRequest>
</soapenv:Body>
</soapenv:Envelope>
Hi There - is there a way I can simulate the Journal posting payload before committing it? with S/4 HANA Cloud its difficult to understand how error handling will work.
-Kamal
Hi Kamal,
You can use the validation of SOAPUI to check format error payload.
And with <TestDataIndicator>true</TestDataIndicator> in <MessageHeader>, it support simulating posting without actually creating accounting document.
Best regards,
Wesley
Thanks Wesley Yin,
I have one question i applied all steps but the message dashboard still not display any status and status still undefined how i can solve it ??
Hi Othman,
Do you get any error information in SOAPUI?
Hi Yin,
Thanks for the informative blog.
I have a question on reprocessing AIF message in case of async call
Can we restart the failed message from AIF?
Hi Yin,
I was going through with your blog. It nicely explain but I have few question,
It will be really grateful. If you can guide me in same.
Best Regards,
Utkarsh
Is there a way to BLOCK or PREVENT the same user who created a JE from posting the SAME JE?
Hello Yin,
Thanks for the nice blog.
I have a question on the Journal Entry Post -synchronous API. Why do we have the parameter 'Created By' mandatory in this API? We have defined a communication arrangement and a user in it that authenticates the interface and creation of JE. This user can be picked directly by the API but rather the API is asking to fill it in the call.
Regards
Babu
Babu Lal Limba
End user posts the document via UI apps, the username should be filled in automatically. It is common, but APIs have the different use cases with UI apps. APIs are always called by the custom programs or middleware. Within these programs and tools, the technical user is always used to call these APIs. The technical user is unmeaningful to the posting document. I think it is the reason why the CreatedBy is mandatory field for Posting API.
hi Cora Phelan ,
Is there any API to calculate the tax amount so that when we make actual call we can fill the correct amount in AmountInTransactionCurrency ( under ProductTaxItem) OR does JournalEntryCreateRequest calculate tax on its own and we don't have to send the tax amount.
Kindly help to clarify on this.
Thanks
subba
Hi SUBBA KRISHNA VIJAYA KUMAR
as per help documentation
ProductTaxItem
AmountInTransactionCurrency is Mandatory.
This is the current design.