Creating Custom Menus and inserting to base tables through API
Step1: Create custom menus in source instance. Use the below API’s to move the menus and menu entries to the target instance. Step2: The custom menus can be passed to the below API’s to insert data to Oracle standard tables fnd_menus,fnd_menus_tl and fnd_menu_entries Ø fnd_menus_pkg.insert_row Ø fnd_menu_entries_pkg.insert_row Step3: Sample script with description to upload the Menus and menu entries are explained below Menus ———– DECLARE l_new_menu_id NUMBER; l_exist_menu_flag NUMBER; v_rowid VARCHAR2 (20); BEGIN SELECT MAX (menu_id) INTO l_new_menu_id FROM apps.fnd_menus_vl WHERE menu_name = ‘XX_TEST_MENU’; DBMS_OUTPUT.put_line (‘Before IF ‘); IF (l_new_menu_id IS NOT NULL) THEN l_exist_menu_flag := 1; — menu already exists DBMS_OUTPUT.put_line (‘Menu already FOUND, Duplicates not allowed’); ELSE –create a new menu l_new_menu_id := apps.fnd_menus_s.NEXTVAL; DBMS_OUTPUT.put_line (‘Before calling Standard API ‘); apps.fnd_menus_pkg.insert_row (x_rowid => v_rowid, x_menu_id => l_new_menu_id, x_menu_name => ‘XX_TEST_MENU’,…
Read More