WHAT IS THE FORWARDREFERENCE IN PL/SQL?
Answers were Sorted based on User's Feedback
Answer / ranjith
If a stored procedure(Function or Procedure) need to be
called inside another stored procedure in the same package
then the called procedure should be declared before the
calling procedure. This declartion is called Forward
Reference.
Example:
CREATE OR REPLACE PACKAGE BODY pkg_FR_Test
.
.
Begin
prc_FR_Procedure(p_P1 NUMBER, p_P2 VARCHAR2);--> FR
.
.
prc_Call_Procedure(p_Param1 NUMBER)
BEGIN
.
.
prc_FR_Procedure(20, 'Account');
.
.
END prc_FR_Procedure;
END
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / raghav
PL/SQL does not allow forward references. You must declare a variable or constant before referencing it in other statements, including other declarative statements.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ranjith
The above answer is for "Forward Declaration" and not
for "Forward Reference".
Sorry for the confusion.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / veera
declaring the procedures or functions in the package
specification before using them in package body.
Is This Answer Correct ? | 0 Yes | 1 No |
List the types of flexfield?
If the valueset if of type –TABLE then how many tables can we attach in the valueset ?
How many parameters we can pass through pl/sql program in Oracle apps
what are the difference between 11.5.7 and 11.5.9 in oracle apps
in one report using two layout models.if yes how to do
in order to run utl_file package we need to give any specific path? if yes what is that?where u will run utl_package?
How does accounting occured in Expense Reporting?
what is latest version in reports
What is invoice?
what u did after ur btech(2009) till now? why did u prefer oracle apps technical?
In a Standard form a DFF is disable?How we can Enable it?
how can develope the po variance and po summary report? with tables mandatory columns and query please?