How to open view accounting window from customized form window
Hello,
I created a customized form window and attached it to AR receivable responsibility
the form display a list of AR transactions already accounted (draft/final)
i added a button to display the accounting generated for the selected transaction as below
*******************************************
DECLARE
l_function_name VARCHAR2(50) := 'XLA_LINESINQ_SUBLEDGER';
l_application_id NUMBER := 222; -- Example: Replace with the actual application_id
l_entity_id NUMBER := :YOUR_BLOCK.YOUR_TRANSACTION_ID; -- Transaction ID from your form
l_ae_header_id NUMBER;
BEGIN
FND_FUNCTION.EXECUTE (
function_name => l_function_name,
open_flag => 'Y',
session_flag => 'Y',
other_params => 'APPLICATION_ID=' || l_application_id || '&ENTITY_ID=' || l_entity_id || '&AE_HEADER_ID=' || l_ae_header_id