How to Delete Concurrent Program and Program Executable
When there is a need to delete/purge a concurrent program, we can do it from the back end.
Check first to see if the program exists by using
Begin
declare
v_exists Boolean;
v_exists := fnd_program.program_exists(program => 'XX_SN',
application =>'XXCUST');
if v_exists is true then
BEGIN
fnd_program.delete_program (program_short_name =>'XX_SN',
application =>'XXCUST');
COMMIT;
END;
BEGIN
fnd_program.delete_executable (executable_short_name =>'XX_SN',
application =>'XXCUST');
COMMIT;
END;
End if;
End;
Commit is the key here.
You can use fnd_program.executable to register an executable from the back end.
Provide the parameters:
executable IN VARCHAR2,
application IN VARCHAR2,
short_name IN VARCHAR2,
description IN VARCHAR2 DEFAULT NULL,
execution_method IN VARCHAR2,
execution_file_name IN VARCHAR2 DEFAULT NULL,
You can use fnd_program.register to register an executable from the back end.
Provide the parameters:
program IN VARCHAR2,
application IN VARCHAR2,
enabled IN VARCHAR2,
short_name IN VARCHAR2,
description IN VARCHAR2 DEFAULT NULL,
executable_short_name IN VARCHAR2,
executable_application IN VARCHAR2
the rest of the parameters are Default Null.
Explore fnd_program API for more options
Check first to see if the program exists by using
Begin
declare
v_exists Boolean;
v_exists := fnd_program.program_exists(program => 'XX_SN',
application =>'XXCUST');
if v_exists is true then
BEGIN
fnd_program.delete_program (program_short_name =>'XX_SN',
application =>'XXCUST');
COMMIT;
END;
BEGIN
fnd_program.delete_executable (executable_short_name =>'XX_SN',
application =>'XXCUST');
COMMIT;
END;
End if;
End;
Commit is the key here.
You can use fnd_program.executable to register an executable from the back end.
Provide the parameters:
executable IN VARCHAR2,
application IN VARCHAR2,
short_name IN VARCHAR2,
description IN VARCHAR2 DEFAULT NULL,
execution_method IN VARCHAR2,
execution_file_name IN VARCHAR2 DEFAULT NULL,
You can use fnd_program.register to register an executable from the back end.
Provide the parameters:
program IN VARCHAR2,
application IN VARCHAR2,
enabled IN VARCHAR2,
short_name IN VARCHAR2,
description IN VARCHAR2 DEFAULT NULL,
executable_short_name IN VARCHAR2,
executable_application IN VARCHAR2
the rest of the parameters are Default Null.
Explore fnd_program API for more options
Comments
Post a Comment