Status report from Procedure/functions

All,
I have procedures /functions in my database. I need to return a status value back to the call procedures/functions to report the sub_procedure/function executed successfully.
What is the status value if a procedure/function executed successfully? And what is the value for un_successful execution? Where I can get it from?
Thanks a lot!

This is really a design choice that you have to make in your application. PL/SQL stored procedures / functions do not return any implicit status codes on there own. In your PL/SQL code, you can check the SQLCODE built-in function for the status of the last SQL statement executed, but this is hardly the same thing (and really designed for use in exception handlers).
You may choose to design you applications such that every call must return a status value. In this case, the values used to represent success or failure are up to you (I might suggest 0 for success and the error code - which will be non-zero - for failure). You can either use functions which always return a number (probably not a good idea to place this limitation on your application); you might design all stored procedures to return an output parameter which indicates success or failure.
But, in general, your client code should be designed to correctly handle all Oracle exceptions - if no exception is raised, then success, else failure. And your PL/SQL should avoid bad practices like exception handlers which trap WHEN OTHERS and don't re-raise the exception.

Similar Messages

  • How to Use Solution Manager to collect Status Reports from Consultants

    Hi,
          I am planning to use Solution Manager for collecting the weekly status reports from my consultants and maintain it as a repository . Please let me know the best way of doing this in SOLMAN. There should be mailing options too.
    BR,
    Raj

    Hi Rajasan,
    to be able to meet this requirement, you need to set up plan working load in admin tab for your resource,  they need to update actual data based on the work completion, you will get status of work,
    if you require email, you need to set-up scot, then develop a program with execution scheduling
    please check and revert
    Anil

  • Required to take periodic backup status report from SQL server

    Dear All,
    I need to take periodic database backup status of all sql server instance in different domain. But, i am doing it by logging into all sql server manually.
    We can do it through option called ' Managed server' in sql server by connecting required server.
    But, I want to know the script and any other option in sql server to connect all sql instance in different domain group to take backup status report in single run.
    I need your help here and share the experience if you implemented ever in your environment.

    see
    http://www.mssqltips.com/sqlservertip/1601/script-to-retrieve-sql-server-database-backup-history-and-no-backups/
    You can use above scripts to capture the information
    For automated execution wrap it in a procedure with INSERT statement to dump the results onto a table and call the procedure from sql agent job to execute  it based on a predefined schedule.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Problem with calling a report from a function module. Please help! URGENT!

    Hi Experts,
       I have a scenarion like this:
      XI -
    > Function Module -
    > ABAP Report
      From XI I am callingf a function module in another R/3 system. This function module inturn calls a ABAP report using SUBMIT statement. The function module and the report reside in the same R/3 system.
      I am calling the report like this:
    SUBMIT yseg_save_bp_data WITH SELECTION-TABLE rspar
                                 AND RETURN.
    The problem is when I run the function module directly in the R/3 system then it calls the report without any problem.
    On the other hand, when I call the function module from XI then the report is not called. On debug mode I found that the program exits just at the Submit statement. Why is this strange problem?
    What mistake am I doing? Is there any limitations or restrictions with SUBMIT statement.
    What is the correct way of using submit statement in this scenario?
    Kindly help me!
    Thanks
    Gopal

    Hi Rao,
       I have created the FM as remote RFC. Infact XI is able to call the FM. Only problem is when it reaches the point where the report is called via SUBMIT it exits.
    Help me please!
    Thanks
    Gopal

  • How can I call a Report From database function

    Hi all,
    I want to call a Report from a database function. Could you hel
    me???
    Rgds

    Hello there!
    There is a solution for executing an executable like RWRUN60
    from PL/SQL on http://asktom.oracle.com/pls/ask/f?
    p=4950:8:227101::NO::F4950_P8_DISPLAYID,F4950_P8_B:150612348067,Y
    Or you can invoke the CGI from the Reports-Server through
    UTL_HTTP
    Hope this helps
    Dannys

  • Call report from procedure

    Hi,
    Is it possible to call report or url of report from a pl/sql procedure?
    Regards

    Is it possible to call report or url of report from a pl/sql procedure? I presume you mean "report" as in Oracle Reports. My Developer Suite experience is very rusty but I should think the sticking point is that Reports are not pure PL/SQL - they are executables run by Reports Server. So I think it is unlikely that the answer to your question is "Yes".
    Depending on what particular business need lies behind your question there may be workarounds available to you. The best thing to do would be to ask your question (with more contextual detail) in Reports.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Java runtime plugin 14.9 is installed on my Mac 10.8, but the plugin status report from Mozilla says I need to update it. How do I resolve this?

    Mozilla's plugin status report says that I need to update Java Runtime Environment, and that I am running version 14.9.0. But when I download the update, all I get is "Java 8 Update 40", which my computer says is an older version. I can't find any info on a later version than 14.9. Nor can I find this plugin in my computer -- it does not appear in the System Preferences window, or in the Applications Folder (including in Utilities). How do I clear this up? (Note: I disabled Firewall).

    Hmm, Java 8 Update 40 should be the current version for both Windows and Mac. Do you recall where you got a version 14.9 -- was it part of an Apple update instead of coming from Oracle (which now operates java.com)?
    I see similar threads on Apple's discussion forums but can't personally confirm whether the solutions work. For example:
    * https://discussions.apple.com/thread/6857925#27894419
    * https://discussions.apple.com/thread/6861354#27780165

  • Mail status-reports from daemon fails

    Hi all,
    I'm using a daily backup-script «Backup-Bisang.sh» controlled by launchd:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>com.bisang.backup-daily</string>
    <key>Program</key>
    <string>/opt/local/sbin/Backup-Bisang.sh</string>
    <key>ProgramArguments</key>
    <array>
    <string>/opt/local/sbin/Backup-Bisang.sh</string>
    </array>
    <key>ServiceDescription</key>
    <string>Daily backup from server</string>
    <key>StartCalendarInterval</key>
    <dict>
    <key>Hour</key>
    <integer>16</integer>
    <key>Minute</key>
    <integer>25</integer>
    </dict>
    <key>UserName</key>
    <string>ruedibis</string>
    </dict>
    </plist>
    The script itself should email me a status-report:
    rsync $MY_OPTIONS >> /tmp/backupscripttmpfile
    Mailx -s "Backup Report `date "+%d.%m.%y %H:%M:%S"`" $MAILADDR </tmp/backupscripttmpfile
    This works fine, if I test the script via terminal (all report data in the message body). If the script executes via launchd (as daemon), an email is sent, but with an empty body! Although the backupscripttmpfile is correct. What may cause this strange behavior?

    If I pipe my tmp_file like this:
    cat /tmp/backupscripttmpfile | Mailx -s "Backup Report `date "+%d.%m.%y %H:%M:%S"`" $MAILADDR
    then it works fine. Why?

  • Crystal reports from SAP function module

    Hi,
    How to create report based on SAP function module...
    I tried it and succeeded for one function module... but i need single report for 3 function modules.
    Please let me know i can get them,,, please....!!
    When i select all 3, it showing links, what about Links??
    Thank You!

    No one answered it so far...!!

  • Executing Reports via Procedure/Function

    Is it possible to execute a pre-define report created in report builder from a procedure or function outside of the report? I understand SRW.RUN_REPORT is used within a report, but I want to request a report to be executed and passed paramters via a batch proc or func?
    Thanks.

    I think you should be able to do it by executing 'RWCLI' command from the procedure. You can pass all the arguments for running a report with this command.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Brian White ([email protected]):
    Is it possible to execute a pre-define report created in report builder from a procedure or function outside of the report? I understand SRW.RUN_REPORT is used within a report, but I want to request a report to be executed and passed paramters via a batch proc or func?
    Thanks.<HR></BLOCKQUOTE>
    null

  • Unable to open messages in Hotmail. Why are there no status reports from Firefoxs response to this problem?

    When I log on to my Hotmail account, unable to get any folders messages to open? Been going on for two weeks or more.

    Hi,
    Thanks for your reply.
    I am not able to see the SOFM Object in the container itself. Also there are no values in AttachObjects.
    Does this have anything to do in the workflow end? The attachments are coming from the portal. Does anything have to be set in the WF to set this.
    Does any code have to be written in the WF to get the attachment from the portal...kindly let me know.
    Thanks in advance for all the help.

  • Task status  report in cProject 3.1

    Hi,
    I want to extract task status report from cProject 3.1.
    Report should contain task name, status, start date,end date , effort etc.
    Thanks in advance
    Shiv

    Hi,
    Activate the form DPR_TASK_HIER for a particular Project type in SPRO screen. Now keep the cursor on any task in cProjects & click on Print pushbutton, this will generate a PDF Report which will contain Task name, Constraint dates, actual dates, administration details etc. In order to add more data to the Report, goto transaction SAMRTFORMS & edit the form DPR_TASK_HIER.
    Hope this will help you.
    Regards,
    Sujay G

  • CG02 Report from Template error when starting the display application

    System info: SAP GUI 720 (patch 10007878), ECC 6.0, SAP_APPL/EA-APPL 605, WWI 2.7 (patch 20000084)
    Hi, folks.
    I was able to execute CG02 'Report from Template' function. My local MS Word 2003 would open successfully to display the report as expected. Suddenly, I couldn't do that anymore. I'm now getting msg "An error occurred when starting the display application" (C$772). And I didn't change anything.
    Any clue to what has happened or why it is happening? In my Word, I have 'C:\Program Files\SAP\FrontEnd\SAPgui\wwi' set as the file location for User templates. What else should I check?
    Thanks in advance.

    Hi, Caroline.
    Thanks for pointing me (back) to it! (I've encountered a similar issue with the same param back in 2010...)
    I'm positive that the problem started after I tried to run the transaction code (of my custom report program that does the CG02 'Report from Template' function) from the web gui ('You Can Also' menu function). Somehow, the standard SAP fms within It changed the param ESWWI_INST value from 'EXISTFRONT' to 'WWISERVER'. So when I ran CG02 and the WWI server is not available yet, I received the error msg.

  • How to create crystal reports from ecc abap program?

    Hi all,
    I am new to sap ecc to bo report!!
    I heard that abap program cannot be directly connected to crystal reports,
    So created a function module which is equivalent to the abap program!!
    And happened to connect the same in crystal !!
    Can anyone let me know how to proceed !!
    will be there any performance issue ?
    can anyone guide me how to do reporting from ecc function module to crystal reports directly?
    Thanks

    Hi Pooja,
    From what I know, not all ABAP programs can be accessed in Crystal Reports. The program should return rows and columns, otherwise, CR would not be able to report off it.
    I'm not sure if there are any performance issues if we follow your path. Do you experience any?
    And, do you need help in creating a report on the function module, I mean do you also have any design related queries?
    -Abhilash

  • CProjects Project status report not generated

    Hi
    I am facing problem of getting Project status report for a project in cProjects 4.0
    I am at client side and accessing the IDES ECC6.Her I am trying for getting Project status report for the project created.
    The error I am getting is :
    "WebDynpro Exception: ADS: Request start time: Thu Aug 21 16:53:27 GMT+03:00 2008(200,101). "
    In customizing for cProjects I have used the std. form available for the same, activated the same for the project type and when tried to get the report I got the above mentioned error.
    Then in se38 I executed the programme FP_TEST_IA_01 the result was :
    ADS: Request start time: Thu Aug 21 17:23:42 GMT+03:00 2008(200,101)
    Also I have activated the following services
    SICF->Services->default_host->sap->bc->fp and fpads, both are active.
    But still I am not getting project status report from cProjects.
    Please guide me what else should I do to get the project status report?
    Thanks and Regards,
    Niraj Sikligar

    Hi Reema,
    Its great to hear from you.
    I have run the report : FP_PDF_TEST_00
    Out put is :
    Version Information:                705.20060620101936.310918
    What does that mean ?
    Secondly,
    I have checked RFC destination for ADS the results were as shown below:
    On Technical Settings tab page :
    target host: ides
    Path prefix: /AdobeDocumentServices/Config?style=rpc
    Is this OK?
    Is there anything else to be done?
    Regards,
    Niraj Sikligar

Maybe you are looking for

  • Upgrade IDSM2 from 4.1(5)S225 to 5,1 using application partition

    can i upgrade an IDSM2 (WS-SVC-IDSM2-BUN)in a 6513 from 4.1(5)S225 to 5.1 by copying the 5.1 application partition to the sensor [from the cisco userguide] Chapter 10 Configuring the Sensor Using the CLI Reimaging Appliances and Modules Reimaging the

  • How to install WEBm Plug-in Manually (unable to figure this out)

    I need to export a WEBm file.  (A prior thread is still unanswered) There is a 3rd party plug-in that allows this, but I don't seem to be able to figure out how to manually install it.  fnordware/AdobeWebM · GitHub (this is a thread posted by Adobe l

  • How to check if my IMP parfile is okey without executing.please help.

    Hi guyz, please tell me how can i check my IMP parfile without executing it. one of my colleagues told that it can be done but he did,nt tell how :-( please help. Thnxxxxx in advance, Navneet Kaur

  • "DYNPRO_MSG_IN_HELP"

    Hello! I am getting a dump  "DYNPRO_MSG_IN_HELP" while trying to display and error message MESSAGE e834(zv) during the process of deleting a Sales Order. The code is a part of include ZMV45AFZORIG. When I checked forums I got one post regarding the s

  • Adobe 11 Add-in and Excel 2013

    I can't get the Adobe 11 Add-in to show up in the Excel 2013 tool bar.