Symptom
When posting journal entries via API, the EU Triang. Deal field is not being transferred to the posted document even though it is set in the payload as <IsEUTriangularDeal>true</IsEUTriangularDeal>.
Environment
SAP S/4HANA Cloud Public Edition.
Reproducing the Issue
- Use the API Journal Entry - Post to post a journal entry with a customer (DebtorItem) line item and set IsEUTriangularDeal to "true".
- Post the journal entry; the service returns no errors or warnings.
- Open the posted accounting document and check the customer line item; the EU Triangular Deal checkbox remains unchecked.
Cause
The EU Triangular Deal flag (XEGDR) depends on the VAT Registration Number (STCEG) being present on the BSEG line item; if VAT registration is not provided/saved for the item, the IsEUTriangularDeal indicator is not persisted.
Resolution
1. In the API Journal Entry - Post payload, include the VAT registration element in the customer (DebtorItem):
<VATRegistration>?</VATRegistration>
<IsEUTriangularDeal>true</IsEUTriangularDeal>
2. Post the journal entry again and verify that the Triangular Deal indicator is selected on the debtor item.
See Also
- SAP Help Portal: Journal Entry - Post (Synchronous)
- SAP Help Portal: Journal Entry - Post (Asynchronous)
Keywords
IsEUTriangularDeal, triangular deal, JournalEntryBulkCreateRequest, API Journal Entry - Post, DebtorItem, customer line item, Op.triang, XEGDR, STCEG, VATRegistration, BSEG, RFASLD20, tax indicator, accounting document, public cloud API , KBA , AC-INT-2CL , Accounting Interface (Public Cloud) , Problem
SAP Knowledge Base Article - Public