Help to create log message for the failure of procedure

Hi,
I want to create a log message ,if my stored procedure stops executing or gets hanged due to some reasons.
Can any one guide me how can i include this log message in some external file so as each time my stored procedure fails a message will be logged in the file that the procedure has failed or hanged.
pls help
regds
debashis

I'm afraid I don't understand what you're trying to accomplish here. What is "command is successfully executed" intended to represent in your CREATE statement and in the anonymous PL/SQL block.
What do you mean "it should occur in row by row order" and "success message of execution should be displayed in the log file"?
Why are you trying to log to an external file rather than a table in the database? When you start talking about "row by row" and "success message", that starts to imply that you're going to be logging a lot of stuff. Logging a lot of data to an external file is going to be a substantial performance burden. Are you sure that is what you want to accomplish?
Justin

Similar Messages

  • New to SOAP - How to create SOAP message for the SOAP described

    Hi Friends,
    Im bit new to SOAP-JAVA interactions.
    I have an SOAP describing
    POST /abc/WebSrevices/MyService.asmx HTTP/1.1
    Host: 127.0.0.1
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://tempuri.org/BillingAddressValidation"
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <BillingAddressValidation xmlns="http://tempuri.org/">
    <inXml>string</inXml>
    </BillingAddressValidation>
    </soap:Body>
    </soap:Envelope>
    My question is How can I construct an equivalent JAVA message using SAAJ
    I wrote like the following
    public void performSOAPReadWrite(String transaction){
    try{
    SOAPConnectionFactory scf = SOAPConnectionFactory. newInstance();
    SOAPConnection con = scf.createConnection();
    MessageFactory mf =
    MessageFactory.newInstance();
    SOAPMessage msg = mf.createMessage();
    SOAPPart sp = msg.getSOAPPart();
    SOAPEnvelope envelope = sp.getEnvelope();
    //Adding Content to the Header
    envelope.getHeader().detachNode();
    SOAPBody body = envelope.getBody();
    SOAPElement billingAddressValidation =
    body.addChildElement("BillingAddressValidation","http://tempuri.org/");
    SOAPElement inXml =
    billingAddressValidation.addChildElement("inXml");
    inXml.addTextNode(transaction);
    URL urlEndpoint = new URL(DEFAULT_SERVER);
    // 127.0.0.1/abc/WebSrevices/MyService.asmx
    System.out.println("Sending Message");
    SOAPMessage reply = con.call(msg,
    urlEndpoint);
    System.out.println("Reply is "+reply);
    }catch (Exception e) {
    e.printStackTrace();
    // TODO: handle exception
    Can any one let me know whats wrong in this ?
    Thanx in advance
    Im waiting for ur reply
    Mahesh Raja Vandyala
    Senior Analyst

    Hi,
    When im running the program I am getting a
    javax.xml.soap.SOAPException: Failed to send message:java.io.IOException: The server at http://127.0.0.1/abc/WebSrevices/MyService.asmx returned a 500 error code ( Internal Server Error )
    Please ensure that ur URL is correct and the Web service has deployed
    This is web service is provided by .net team and im required to take the services of that web service to retrieve some information provided by that.
    I can launch the webservice definition thru IE....their they have provide a text box with a Invoke button.
    The same data that im sending thru code if invoked thru IE is working fine.
    I suspect that the way Im construcint the SOP message is wrong.
    Any help in finding out the correctness of the Message in the java code ?
    Thanx
    Mahesh

  • FM to create support message for custom process type other than 'SLFN'

    Hi All
    Is there any function module or BAPI which will create support message for the custom process type other than SLFN.
    BAPI_NOTIFICATION_CREATE is posting only for the process type 'SLFN'
    Thanks in advance
    Regards
    Ravi

    Any ideas?

  • MRP Type V1 - Does it create Exception Message for "Reschedule-in"?

    Hello Experts,
    We are using MRP Type V1 (Which has the Manual Re-Order Planning + External Requirements). However we are facing and issue with the Rescheduling part. Scenario is as following:
    Material ROP is - 5000
    Open Pur Ord is - 5000 (due in 01 June'09) based on the Std Lead time of the Material
    Stok on hand is - 0
    At this point a Sales Order is entered for 1000 pcs
    After MRP Run, we expect an Exception Message for the Purchase Order to have "Reschedule-in". But, instead, system creates a PReq for 1000 pcs and the required date is NOT the Sales Order required Date but based on the Std Lead Time of the Material.
    I have set the Material Lead time - 60 Days
    I have set the Reschedule horizon - 0 Days ( I even tried with different Days but NO use)
    However, when I change the MRP Type to PD, system generates a "Reschedule-in" Exception Message for the Purchase Order.
    How can I get the "Reschedule-in" Exception Message for the Purchase Order with the MRP Type V1?
    Thanks for your help in Advance!

    Anil,
    Reorder point/External MRP performs net requirements calculation (within replenishment lead time).  If the existing firmed supply elements minus the existing requirements bring the projected stock below ROP, it will propose an order that will bring the projected stock back to reorder point.  The proposal will generally come at replenishment lead time.
    In the normal business cycle, your sales order would confirm to lead time, and you now have a confirmed sales requirement at lead time, plus a new purchase req to bring the stock back to the reorder point.  The scenario you have described is working exactly as it is designed.  Consumption based MRP will not normally try to reschedule supply elements to match requirements inside of lead time.
    Rescheduling horizon generally is counted from the end of lead time.  It won't help you here.
    I guess if you insist on having a reschedule message, you could change your lead time to 0 days.  Not a wise move in my opinion.  You then have locked yourself in your choices of types of Sales order availability checks into one that ignores lead time.  You also have to find a way to let your buyers/planners know what the 'real' lead time is when they place their orders on the vendors.
    I don't know why you are using a consumption-based planning type (reorder point).  It sounds like your business requirements are that you actually need to be using a demand-type planning method (eg, your supply elements are driven by your demand, not by a reorder point/desired stock level).  If PD works the way you want, why aren't you using it?
    Regards,
    DB49

  • How to creat business process for the user?

    Hi
    when i use to create message in notif_creat i am getting error message Business partner Neni_SM does not exist
    please help me
    Regards
    Neni

    Problem : when i use to create message in notif_create i am getting error message Business Partner Neni_sm cannot be the reporter
    Admin_sm(Key user)
    Neni_sm(sub user)
    Neni_sm1(sub user)
    Step Followed
    1L.ogon to System Admin_sm go to Code:BP
    2.When I use to select Display in BP role as “Employee”
    3 required Data filled in “address tab”
    4.In Identification tab  I can only c subtab
    Employee data:
             Personnel number
             User Name:neni_sm
    5.When I use to select Display in BP role as “Employee in cfloders”
    Employee data:
             Personnel number
             User Name :neni_sm
    Identification number
              External BP number :<SID>< installation number of the system>only this 2 r possible
    Now problem is  When I  logon to Neni_sm(sub user)system  create message in notif_creat i am getting error message <b>Business Partner Neni_sm cannot be the <u>reporter</u></b>
    <b>Requirement</b>: I have to give access to create message for the following user Neni_sm(sub user)
    Neni_sm1(sub user) 
    Where I have already  created user: neni_sm and also   roles
         SAP_SUPPDESK_ADMIN
         SAP_SUPPDESK_CREATE
         SAP_SUPPDESK_DISPLAY
         SAP_SUPPDESK_PROCESS
    Please help me
    Regards
    Neni

  • Yoga 11 - can not create an account for the App store,

    I can not create an account for the App store, I live outside of the USA and the only address option is in the USA. Can you help me
    Moderator Note: Edited subject to match content.

    Hi
    Welcome To Lenovo Community
    We are really sorry to hear about the issue you are facing,
    I have verified the Microsoft windows 8 app store has different regions listed
    And you can connect app store using an existing Microsoft account like Hotmail, msn etc.
    Please refer below link
    http://windows.microsoft.com/en-US/windows-8/explore-windows-store#1TC=t1
    Also if you can share the link or screen shot of the app store to help you further
    Do give this a try and let us know  
    Hope This Helps
    Cheers!!!
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    How to send a private message? --> Check out this article.
                            English Community   Deutsche Community   Comunidad en Español

  • I need the Log Report for the Data which i am uploading from SAP R/3.

    Hi All,
    I am BI 7.0 Platform with Support Patch 20.
    I need the Log Report for the Data which i am uploading from SAP R/3.
    I extract the DATA from R/3 into BI 7.0 DSO where I am mapping the GL Accounts with the FS Item.   In the Transformation i have return a routine on the FS Item InfObject . I am checking the Gl code into Z table for the FS Item .
    I capture the FS item from the Z table then update this FS item to Infobject FS item.
    Now i  need to stop the Data upload if i do not find the GL code in the Z table, and generate report for all GL code for which the FS item is not maintained in the Z table.
    Please suggest.
    Regards
    nilesh

    Hi.
    Add a field that you will use to identify if the GL account of the record was found in the Z table or not. Fx, create ZFOUND with length 1 and no text.
    In your routine, when you do the lookup, populate ZFOUND with X when you found a match (sy-subrc = 0) and leave it blank if you don't find a match. Now create a report filtering on ZFOUND = <blank> and output the GL accounts. Those will be the ones not existing in the Z table, but coming in from your transactions.
    Regards
    Jacob

  • Need Help to create new screen for RF Sapconsole

    Hi Guru's
    I'm new on RF (but some years in ABAP) since last week.
    I need help to create new screens for RF (SAPLLMOB).
    Can someone explain me the procedure to create screen (with ABAP code after) or perhaps someone have an exemple (simple or not) ?
    I have to develop 2 new screens with really few time.
    And, another subsidiary question :
    how SAP can transfert information between the flash gun and the screen i have developped.
    Is there some code to add to enable this functionality or it is include in SAPLLMOB on standard fields ????
    It's a new strange world for me today...
    Many thanks to everyone who can explain me
    Alain

    hi,
    I am facing this problem as well. Is there any reference to create the new screen?
    Hope someone can help! Thanks!
    Regards,
    Darren

  • Create warning message at the time of order creation

    I am looking for a  solution :- "Create warning message at the time of order creation/save if a cc is assigned in the settlement rule that crosses the company code of the order or where the company code of the plant for the order is different from the company code assigned to the cc"

    The txn code : IW32 (maintenance order) , this warning message for settlement rule creation using Cost center as a settlement receiver.  If the used cost center is belongs to some other company code, said warning message should occure.
    I tried user exit, field exit, also used std message control (KO-458).  Nothing is working.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Error Message for the cancellation of paid billing document

    Hi,
    Can i create and error message for the cancellation of paid billing document? If yes, how can i create such.
    Overview:
    Accounting document is created upon creation of billing document. Upon payment, document cleared is the accounting document created. There are instances wherein accounting document was already cleared but our user is still able to reversed billing document. Now, i want to create an error message or user exist wherein, when a user will not be able to reverse the billing document if the accounting document attached to this billing document is already paid.
    Thank you and best regards.
    Rachelle

    Hi Rachel,
    You can make use of the exit (Include) MV45AFZZ. The corresponding form routine is FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    In this exit, For the given billing document ( which is going to be cancelled ), pick up the accouting document from BSEG tables.
    For this accouting document, Pass this to BSAD Table ( Customer clleared items) 
    If BSEG-BELNR = BSAD-BELNR and
      BSEG-Acc.Year = BSAD-Acc,year )..
    Then throw a error message and EXIT.
    So for all the cleared docments , user can not cancel the invoices.
    Regards,
    Sai

  • How to add log messages in the sever/webui objects?

    Hi,
    I am new to the OA Framework.
    Can any one share any information in how to add log messages in the sever/webui objects?
    What are the beans I need to use to show in the diagnostic page?
    Can I get sample code for this log staments?
    Thanks in advance,
    Padma

    Hello. This forum is for reporting problems with the published Oracle documentation. You have a better change of getting a reply if you post your question on the Database - General forum.
    Regards,
    Diana

  • Creating portal desktop for the user

    Hi All-
    Please help me out...
    1) Could you let me know the detailed procedure ( if possible please provide screen shots) to create "Portal Desktop for the user".
    2)Suppose we developed a webDynpro Application and we need to make it Role Based access....please let me how to achieve this..
    3)Help me out in creation of "Roles" in Portal Content Development and the steps to assign pages to "Roles"
    Regards,
    Cris

    Hi Cris,
    Follow these links for the required info.
    Creating Portal Desktop for specific user
    Portal Branding for specific user
    Creating Roles & worksets
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/bceaffeb8c114ebef8255b63079c7c/frameset.htm
    Integrating webdynpro in portal
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/2fffe990-0201-0010-aab0-e61c3250bcf3
    Hope I am helpful.
    Cheers,
    Santhosh

  • Looking for some help in creating an ItemFilter for a Targeter

    Looking for some help in creating an ItemFilter for a Targeter
    Need a examples for creating itemfilter and TargeterFirst

    Hi David,
    We can integrate Syncfusion with LightSwitch application, if you want to customize column when create a report using syncfusion reportviewer, since I didn't try this third party
    extension before, I think you could consider getting help from
    syncfusion forum, more syncfusion experts can help you on this issue.
    Thanks for your understanding.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can we create two POs for the same 3rd party Sales Order?

    Hi MM experts,
    Issue: Can we create two POs for the same 3rd party Sales Order
    In Third party purchase process, first sales order created with a spl. item category  and it creates the PR automatically with the Sales order material and Qty and this PR converted PO.
    They got a pur.req. for sale order on same item for same delevery date. They did not get any warning msg. saying that a PO was prviously placed against this sale order.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    If anyone face the same issue, please let me know if you have any answer to this questions.
    Thanks in advance.
    Suresh.

    Suresh,
    It is hard for me to give you a definitive answer since you have created a customized solution.
    How it is possible that we were able to place another PO? concern is that second PO was palced against SO which was already used & completed. they were able to place 2 POs for the same customer same delevery date. How it is possible?
    Normally, the system will not do this.  A third party PR or PO will be 'account assigned' to the Sales order.  SAP standard 3rd party will not create additional purchase reqs unless there has been manual intervention.  Try searching for changes in the Sales order and changes in the original purchase order.  They may give you a clue.
    I believe the normal Item category for third party SO is TAS (I am working from memory here, I am not in front of a system).  I don't know what ZTAG does.  I confess I am not an SD expert.  You might also want to post your question in an SD forum.
    You mention two custom applications, ZMMPLAN and ZSTPMP.  These somehow have functionality that is used to help you convert your PRs to POs.  If I were in your position, I believe I would also look at these applications for clues to how they might be contributing to your problem.  And please don't send me details about these apps.  I will not comment on custom code in this forum.
    Sorry I can't be of more help.
    Rgds,
    DB49

Maybe you are looking for

  • How do I change contrast on my monitor of iMac 27 inch

    How do you adjust the contrast and color on the iMac 27-inch screen ?

  • House Bank GL and ID

    Hi We have place to specify the  Bank G/L acct. number in the master of House bank and Hose bank ID in the Bank G/L master.  Why do we have option to mention in two places and  when do we need that? thanks Prasad

  • Combination of bar and line in chart(graph) of Crystal Report XI

    Hi, I found the way to combine line and bar in a chart(graph) but I am getting rectangle marker where bar and line are crossed. Our user asked to remove the rectangle marker. Please let me know how to remove the rectangle marker. Thanks and Regards,

  • Is it possible to use a Cisco 2800 IOS H323 voice gateway for video conferencing over ISDN?

    I have seen this page and was wondering if what it says actually is possible and works? I also have got a CUCM 8.6 that I would like to use for call routing via my old 2600XM gatekeeper. http://www.cisco.com/c/en/us/td/docs/ios/12_4t/12_4t11/h320gw.h

  • JAXP class libraries

    I downloaded j2ee, Java2 SDK with Application Server. According to the instructions the JAXP libraries are supposed to be in the directory <J2EE_HOME>/lib/endorsed. Unfortunately, the specified directory is empty. Hence I am unable to run a sample pr