In Oracle EBS, we can use Concurrent Programs to call a procedure within a package. Every PL/SQL procedure of packages which is being called in a concurrent program must have two mandatory OUT parameters – ERRBUFF and RETCODE
ERRBUF : is used to get error messages.
RETCODE: is used to get the status of the concurrent program. It can take any of the following values
RETCODE: is used to get the status of the concurrent program. It can take any of the following values
0 – Concurrent Program is successful.
1 – Concurrent program completed with warning.
2 – Concurrent Program has some Error.
1 – Concurrent program completed with warning.
2 – Concurrent Program has some Error.
Why Do we Have This
Different business have different needs. These two mandatory parameters makes it flexible for the developers to end a concurrent program in error or warning as per their custom needs.
Different business have different needs. These two mandatory parameters makes it flexible for the developers to end a concurrent program in error or warning as per their custom needs.
For eg : Lets say we have a procedure that computes salary of a person. A negative salary is an error scenario for the business but not for oracle. As a result concurrent program will end up in success on completion of request. But using RETCODE we can make the concurrent program to end in error by setting its value to 2 and in the similar way we can add our custom error message to the ERRBUF parameter.
Sample Procedure Declaration
2 comments:
This does not seem to be working when concurrent programs end in warning. The completion text is NULL in those cases.
Raging Bull Casino - DRMCD
The Raging Bull Casino is a gambling operation based on a 전주 출장마사지 horse 제주 출장마사지 race that 원주 출장샵 is run by a racetrack, not 김포 출장마사지 the race track. 경기도 출장안마 The Raging Bull Casino
Post a Comment