GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle Apps  >  Apps Technical
Go To First  |  Previous Question  |  Next Question 
 Apps Technical  |  Question 99 of 129    Print  
What are the common values passed by a procedure in varialbles ERRBUF, RETCODE?

  
Total Answers and Comments: 3 Last Update: September 12, 2008     Asked by: Atul 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 17, 2007 02:51:44   
t1.venki Member Since: May 2007   Contribution: 5    

RE: What are the common values passed by a procedure i...

They are two mandatory parameters to register pl/sql program ?
--This is used two parameters capture error messages and retcode to capture status throw in log file occured in pl/sql prog


 
Is this answer useful? Yes | No
August 06, 2007 07:33:50   
Senthil        

RE: What are the common values passed by a procedure i...

Errbuf - To pass the String value to the Logfile if we register the Procedure
as a concurrent program. We can pass the String value through this parameter
relevant to the context of the program. For example the Value if you want to
verify in the logfile instead of backend data verification. If you print the
message why the program went into exception by giving apt message and call it in
the using the below example


EXCEPTION

WHEN no_data_found THEN

errbuf : 'Customer info not found';

FND_FILE.PUT_LINE(FND_FILE_LOG errbuf);

END;


Retcode - It's to decide how the program should end if certain condition
fails

If we pass retcode as 0 - Successful

1- The program ends with "Warning" in the front end

Any number more than 1- The program end with "Error" in the front end.


For Example on the below condition the program will end with Warning.

EXCEPTION

WHEN no_data_found THEN

retcode : 1;

errbuf : 'Customer info not found';

FND_FILE.PUT_LINE(FND_FILE_LOG errbuf);

END;



 
Is this answer useful? Yes | No
September 12, 2008 09:32:54   
amit_exl Member Since: September 2008   Contribution: 3    

RE: What are the common values passed by a procedure in varialbles ERRBUF, RETCODE?
Common values passed by procedures in variable (ERRBUFF and RETCODE) are:

ERRBUFF : SQLERRM;

and

RETCODE : ERRCODE;


Thanks & Regards
Amit Gupta

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape