Professional Documents
Culture Documents
DFF For DM and Invoice Link
DFF For DM and Invoice Link
Use Case Description: In ZATCA Integration, its required to reference the original invoice if you are
creating a debit note (in Fusion, there is no direct link between these two transactions) so, as
workaround we created a DFF in the debit note page to include the original invoice
To minimize the error entry and false linking, we made the selection as LOV and applied 2
conditions on the Value Set.
1. Frist, we have Created the Flexfield (DFF) that will contain 2 Segments under name
(transaction)
2. We created 2 fields inside the "Related ST Invoice" with display type as Text Box
3. Added the two fields "AR Transaction Number" and "Reason of DM"
5. Click on View Value set > to add the condition SQL statement
6. Write down the SQL Statement (from clause):
(SELECT
T.TRX_NUMBER, T.BILL_TO_CUSTOMER_ID
FROM
RA_CUSTOMER_TRX_ALL T, RA_CUST_TRX_TYPES_ALL Y, HZ_CUST_ACCOUNTS C
WHERE
C.CUST_ACCOUNT_ID = T.BILL_TO_CUSTOMER_ID
AND Y.CUST_TRX_TYPE_SEQ_ID = T.CUST_TRX_TYPE_SEQ_ID
AND Y.TYPE ='INV' )
o Where Clause:
BILL_TO_CUSTOMER_ID =:{PARAMETER.BillToCustomerId}
o Order by Clause:
trx_number DESC
To check the available binding parameters that are allowed to be used within the SQL
statement for DM page
To minimize the number of data entry errors further, we used the page composer tool to make
the following changes in the DFF properties:
Rendered: the DFF will only appear if the transaction type is equal to Debit Memo
Required: the DFF will only be required if the transaction type is equal to Debit Memo