What is FORWARD DECLARATION in Packages?
Answer Posted / palaniraman balasubramanian
Special sub program unit declaration called forward
declaration, Consider below the example
In this pacakage, the first program unit is calling the
calc_rating but calc_rating is defined last in the package;
if we are not declared the fwd declaration then it will
raise the error While compiling this package. Package
compilation always happens top to bottom. For resolving
this compilation issue, you should declare the fwd
declaration.
CREATE OR REPLACE PACKAGE BODY forward_pack
IS
PROCEDURE calc_rating(. . .); -- forward
declaration
PROCEDURE award_bonus(. . .)
IS -- subprograms
defined
BEGIN -- in alphabetical
order
calc_rating(. . .);
. . .
END;
PROCEDURE calc_rating(. . .)
IS
BEGIN
. . .
END;
END forward_pack;
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
What is count(*) from po_vendors(any table)?
tell my any difficult situtation you solved in your experience in your company?
What does appl_top directory contain?
how do you describe O2C along with tables
A program must be written which accepts date parameter. The date parameter will accept data in the format DD/MM/YYYY. This data has to be validated and post validation, the following details have to be displayed for this date parameter 1. Input date must be defaulted to sysdate, It can be overridden by any other date. 2. Financial year should be displayed for this date parameter. Eg: If the input date is 30/11/2010, the financial year must be displayed as 1. From Date : 01-Aprr-2010 To Date: 31-Mar-2011 3. Calendar year and Calendar month must also be displayed. 4. The next payment cycle (say for EB), must be displayed based on this date parameter. 5. The previous payment must also be displayed based on this date.
what is global tempory table?
What is oracle soa suite and what are its different components?
How is choreography different from orchestration?
how can develope the po variance and po summary report? with tables mandatory columns and query please?
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
please send me forms, xml pulisher questions,answers
What is the concept of soa governance?
How can a process be deployed in soa?
What is instead of trigger in where we will use?
Tell me how to find the custom directory in front end?