Hi Techies -
We've a requirement where customer wants to automate the 'Import payments' functionality.
Details as below -
Standard process to load CAMT054 type file to create payment lines -
This is a standard functionality and it will read the CAMT054 type file and creates the payment lines and settle them.
Proposed design - A new flat table is created and customer will push this file contents in Memo field of the table. We need to create a new batch job that will read the details from fileContent field and trigger a same logic that above dialog executes after browsing the file. After multiple debugging and exploring we've found that it is using the standard ER framework and ER classes to finally uses CustomerPaymentJournalLine entity to create the payment lines.
We're trying to get the entry point of the standard logic that reads this file so that we can try calling the same from our custom code.
Classes checked are -
CustInPaym
ERImportFormatDataSourceContract
ERImportFormatDataSourceContractUIBuilder
CustVendPaymAdditionalParamsHelper
Alternate way if this isn't feasible we've thought to write a custom logic to create payment lines by reading from the file contents from flat table and settle them.
If anyone has managed to trigger above standard logic from custom code, your insights will be very helpful. Thanks in advance!