Capture error in procedure

Hi,
I'm running a procedure, i would like that if any error occures there will be a message that an error cccured, don't want to specifiy the error.
tried:
procedure...
EXCEPTION
htp.p('an error occured');
end;doesn't seem to work.
thx
Esther

It looks like
EXCEPTION WHEN OTHERS THEN
htp.p('something');
END;

Similar Messages

  • Capture error messages from stored procedure calls

    Hi there,
    How do I capture a stored procedure calls error messages provided the stored procedures does not have output parameters? This questions applies to Oracle 7.3.4 stored procedures calls.
    TQ
    Neo

    There are two parts.
    The stored proc must 'throw' an exception.
    And java must catch it.
    You probably already have the java part. That is the catch(SQLException).
    As for the stored proc you can use the following search string in the jdbc forum
    raise oracle
    You need to use 'raise' in the stored proc but I am not sure of the exact form, but one of the threads using the above search string is likely to have it.

  • While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    I faced the same issue. This solved it for me: Troubleshooting issues with iTunes for Windows updates
    Hope this helps.

  • Capturing error records and messages in BDC ?

    Hi Experts,
    I am recording a infotype using BDC recording and I got successfull updation in recording.But I  dont want the output message generated by BDC recording which is obtained by perform bdc_transaction using 'pa30' generated by recording.
    I want to capture the success pernr values and its correponding messages in a seperate internal table.Then want to capture error pernr values and its messages in a seperate internal table.
    Give me sample coding to fetch those values. Think that my internal table which contains pernr values for recording is int_0007.from this internal table I am recording values.Give me coding to collect success anf error pernr values and its messges in seperate internal table.
    Thanks,
    Sakthi.C
    *Assure points for valuable answers*
    Message was edited by:
            Sakthi Saravanan C

    DATA : BEGIN OF T_UPLOAD OCCURS 0,
             MATNR LIKE MARA-MATNR,
             MAKTX LIKE MAKT-MAKTX,
             PLANT LIKE RMMG1-WERKS,
           END OF T_UPLOAD.
    DATA : BEGIN OF T_DOWNLOAD OCCURS 0,
             MATNR LIKE MARA-MATNR,
             MAKTX LIKE MAKT-MAKTX,
             PLANT LIKE RMMG1-WERKS,
             MSG(200),
           END OF T_DOWNLOAD.
    DATA :  T_BDCMSGCOLL TYPE TABLE OF BDCMSGCOLL WITH HEADER LINE.
    DATA :  WA_BDCMSGCOLL TYPE BDCMSGCOLL.
    DATA : ERR_LOG TYPE MESSAGE.
    Set the parameters for Call Transaction
      CLEAR WA_CTU_PARAMS.
      WA_CTU_PARAMS-DISMODE = 'N'.
      WA_CTU_PARAMS-UPDMODE = 'S'.
      WA_CTU_PARAMS-NOBINPT = 'X'.
      WA_CTU_PARAMS-NOBIEND = 'X'.
      WA_CTU_PARAMS-DEFSIZE = 'X'.
    Call Transaction MM01
      IF W_FLAG NE 'X'.
        <b>CALL TRANSACTION 'MM01' USING T_BDCDATA OPTIONS FROM WA_CTU_PARAMS
                                                 MESSAGES INTO T_BDCMSGCOLL.
        COMMIT WORK AND WAIT.</b>
        DESCRIBE TABLE T_BDCMSGCOLL LINES N.
        IF N <> 0.
          LOOP AT T_BDCMSGCOLL INTO WA_BDCMSGCOLL.
            CLEAR ERR_LOG.
            W_MSGNO = WA_BDCMSGCOLL-MSGNR.
            CALL FUNCTION <b>'WRITE_MESSAGE'</b>          EXPORTING
                MSGID = WA_BDCMSGCOLL-MSGID
                MSGNO = W_MSGNO
                MSGTY = WA_BDCMSGCOLL-MSGTYP
              IMPORTING
                MESSG = ERR_LOG.
    Error that occurs during transactoon
            IF ERR_LOG-MSGTY = 'E'.
              MOVE-CORRESPONDING T_UPLOAD TO  T_DOWNLOAD.
              MOVE ERR_LOG-MSGTX TO  T_DOWNLOAD-MSG.
              APPEND T_DOWNLOAD.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
    regards
    vinod

  • Was trying to update my ITunes and get this error: The procedure entry point AVCFPlayerItemDurationChangedNotification could not be located in the dynamic link library AVFoundationCF.dll. Just got the new IPhone and am trying to share music files. Can any

    I have Windows Vista computer. I am trying to upgrade my ITunes so can share files with other home computer. (Just got the new IPhone). I get this system error: The procedure entry point AVCFPlayerItemDurationChangedNotification could not be located in the dynamic link library AVFoundationCF.dll. Tries system restore and redownloaded...NOW Itunes will not even open. Can anyone help?

    I uninstalled Apple Application Support, opened iTunesSetup with WinRar, and went down the list of msi's. AppleApplicationSupport was an install, all the others I did Repair.  Did not have to reboot. Works okay now.
    HTH

  • Capture error premiere pro cs3

    I've got an ongoing capture error in premiere pro cs3 (on Mac OSX).
    At around the 9 minute mark of capturing, it stops and says 'Unknown recorder error'. The footage is still captured if I stop it straight away but lost if I leave it for a while. I'm using canon hv30 camera to capture dv footage (not hdv) and can't seem to solve it. Any suggestions?

    Try a different capture utility.  VideoHelp.com will list plenty of free alternatives.  If they stumble as well, there ie likely something wrong with the tape at that spot.

  • Getting Error-- "The procedure entry point _UP_GetActiveTreeCell could not be located in the dynamic link library cvirte.dll" on host machine.

    I am trying to build an executible program that will be portable to machines which do not have CVI installed.  It works fine on my CVI v9.1 system.  However, whether or not I include "Full run-time support" in the build options, I get the error "The procedure entry point _UP_GetActiveTreeCell could not be located in the dynamic link library cvirte.dll" when I try to run it on a machine without CVI.  Please help.

    To run a CVI application on a system were the CVI IDE is not installed you need to have the CVI RunTime Engine installed. According to the error message at the bottom of this page you may have an older RTE installed in the target system.
    To obtain it you can either download the RTE and install in the target system or better let the IDE build a distribution disk that installs all necessary software in it: this guide drives you in creating the appropriate installer for your application: you can find it also in CVI help function.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Can't launch itunes due to the following error; The procedure entry point AVCFPlayerAppliesMediaSelectionCriteriaKey could not be located in the dynamic link library AVFoundationCF.dll.

    Can't launch itunes due to the following error; The procedure entry point AVCFPlayerAppliesMediaSelectionCriteriaKey could not be located in the dynamic link library AVFoundationCF.dll.

    Hey bcolden,
    I would try uninstalling and reinstalling following the directions in here:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    This section in particular contains important information in the uninstall process:
    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
    Let us know if following that article and uninstalling those components in that order helped the situation.
    Welcome to Apple Support Communities!
    Best,
    Delgadoh

  • WEBCENTER CAPTURE - ERROR DURING CHECK-IN

    Hi,
    I’ve configured my commit driver as a “WebCenter Content”.
    When releasing a batch I can see from the log that CHECKIN_UNIVERSAL is invoked but fails later with an exception -
    “[APP: capture] Unable to locate authentication handler for Content Server response: OK
    [2013-10-14T11:25:53.636+02:00] [capture_server1] [ERROR] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture] Error sending check-in request.[[ “
    Anybody encountered such a behavior?
    Thanks, Yan
    The log:
    [2013-10-14T11:23:33.214+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.batchprocessor.BatchProcessorBean] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-0000000000000087,0] [APP: capture]  [SCND_DOC26 (26)] No batch processor specified, batch will be unlocked and placed in a ready state.
    [2013-10-14T11:25:40.417+02:00] [capture_server1] [NOTIFICATION] [] [oracle.oddc.servlet.FileExchange] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a4,0] [APP: capture] [DSID: 0000K6qH3ZnDwW05zzWByW1IMvRE000001] Starting upload
    [2013-10-14T11:25:40.573+02:00] [capture_server1] [NOTIFICATION] [] [oracle.oddc.servlet.FileExchange] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a4,0] [APP: capture] [DSID: 0000K6qH3ZnDwW05zzWByW1IMvRE000001] Upload complete in 516
    [2013-10-14T11:25:40.652+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] Initializing RIDC.
    [2013-10-14T11:25:40.652+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture] [SCND_DOC27 (27)] Loading Capture metadata definitions from workspace ID 1.
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] Creating RIDC binder for check-in.
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] binder.putLocal("IdcService", "CHECKIN_UNIVERSAL")
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] binder.putLocal("dDocTitle", "redinvoice")
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] binder.putLocal("dDocType", "Binary")
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] binder.putLocal("dSecurityGroup", "Public")
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] binder.putLocal("dDocAccount", "")
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] Adding metadata to binder. Name: [xComments]. Value: [red].
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] binder.putLocal("dDocAuthor", "weblogic")
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] primaryFile: C:\Users\ADMINI~1\AppData\Local\Temp\27\redinvoiceYan.PDF
    [2013-10-14T11:25:52.870+02:00] [capture_server1] [NOTIFICATION] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture]  [SCND_DOC27 (27)] Sending check-in request.
    [2013-10-14T11:25:53.480+02:00] [capture_server1] [WARNING] [] [] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture] Unable to locate authentication handler for Content Server response: OK
    [2013-10-14T11:25:53.636+02:00] [capture_server1] [ERROR] [] [oracle.odc.commitprocessor.CommitProcessor] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaa1e3e54fdb4a71:-645755b7:141b64215f9:-8000-00000000000000a6,0] [APP: capture] Error sending check-in request.[[
    oracle.stellent.ridc.protocol.http.HttpProtocolException: Http status: Moved Temporarily
    at oracle.stellent.ridc.protocol.http.IdcHttpProtocol.writeRequest(IdcHttpProtocol.java:271)
    at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:181)
    at oracle.odc.commit.cs.ContentCommitDriver.releaseDocument(ContentCommitDriver.java:479)
    at oracle.odc.commitprocessor.CommitProcessor.processBatch(CommitProcessor.java:407)
    at oracle.odc.batchprocessor.BatchProcessorBean.processMessage(BatchProcessorBean.java:135)
    at oracle.odc.batchprocessor.CommitProcessorBean.onMessage(CommitProcessorBean.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.oracle.pitchfork.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:103)
    at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:113)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:100)
    at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:154)
    at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:113)
    at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.oracle.pitchfork.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:68)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy235.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:389)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3822)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    The only thing I can think of is to check the Capture side - see Monitoring Capture - 11g Release 1 (11.1.1) (and the following chapter). Try to find what's being logged. Focus namely on Commit Batches (4.4.4.)
    I'm afraid that either way (user will be in Capture, but not in UCM, or user won't be in either Capture, or UCM) you will need to search if something like that was not reported.

  • To Simulate PR creation and capture errors in SRM

    Hello Experts,
    We are on SRM 7.0 EHP 1, classic scenario.
    SC is created in SRM, post which, PR and PO gets created in ECC.
    Sometimes, though SC is ordered successfully, it goes into error due to various reasons. (Mostly PR creation at ECC fails due to some data error etc)
    Is it possible that:
    In SRM, once we order SC,
    > it will simulate PR creation in backend, Instead of actually creating a PR
    > capture error if any at the time of PR creation simulation
    > and display the same to user in SRM? So that user knows what the error is and hence can modify data and order SC successfully at one go?
    Will it be possible to do this custom enhancement? Any pointers?
    Is it possible to trigger an email to appropriate requestor based on RZ20 status? (As RZ20 captures error, can we send the SC error reason to requestor? But again this will increase requestors work of re-ordering the SC)
    Are there any other simpler/better options?
    Thanks,
    Dhananjay

    Hello Ankit,
    Thanks for your reply.
    1. We do not have SC approval process in SRM. Once the SC is ordered its get auto-approved. So is there any BADI which I can utilize to simulate PR creation > capture error > and display it to Requestor?
    2. In the case email notifications, will it be possible to send the exact error reason for SC error? Do we have any standard FM to do this? or it will be custom code query on standard tables?
    Pls let me know.
    Thanks,
    Dhananjay

  • Facing problem while capturing error messages in ME51N

    Hi Experts,
    In ME51N transaction, we have included custom fields and tried to capture Error messages by building ex_message.
    Below is the code that we used:
             loop at tb_error into wa_error.
                wa_message-type   = WA_ERROR-TYPE.
                wa_message-id     = c_zpr.
                wa_message-number = '007'.
                 wa_message-message    = wa_error-message.
              wa_message-message_v1 = WA_ERROR-MESSAGE.
                wa_message-message_v2 = wa_eban1-bnfpo.
                APPEND WA_MESSAGE TO EX_MESSAGES.
                CLEAR WA_ERROR.
              endloop.
    In my message class we have not hardcoded the messages because we need to capture dynamic messages(In message class it is 007: & & ). For that we have passed message text in wa_message-message.
    But when Check button is selected, we are not the desired error message.
    But if we pass the same message in Message_v1, we are getting the error message but it is getting truncated as the size is small when compared to Message field.
    Waiting for your response.
    Thanks & Regards,
    Amarnath

    Looks like configuration prob.
    Have you tried jms examples of weblogic ? you may need to re-configure your server setup, to create example server.

  • CcBPM, how to capture error message in the exception branch ?

    Hi,
    Can I capture error message in the exception branch ? how to do that ?
    because i want to raise the alert including with the error message ?
    Cheers
    Fernand

    Hello Fernand,
    I hope at the end of this you may get some knowledge on Alerts.
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step XI:Alerts step-by-step. (fundamental Basic)
    /people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i CCMS Monitoring for XI. (CCMS monitoring for XI is enough later
    we configure to Adapter Engine).
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1 Configuring scenario specific E-mail alerts in XI-CCMS: Part-1
    (This is Important)
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2 Configuring scenario specific E-mail alerts in XI-CCMS: Part-2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3 Configuring scenario specific E-mail alerts in XI-CCMS: Part 3
    /people/federico.babelis2/blog/2006/05/03/solution-manager-cen-and-alerting-configuration-guide-for-dummies Solution Manager CEN and Alerting configuration (Advanced)
    Please reward points if it is useful...
    Thanks,
    Satya Kumar

  • ERROR IN PROCEDURE

    I'm trying to write a procedure that will compute the start and end dates of the weeks within a period, etc. Number of business days in a week is 5; that is, Monday to Friday.
    The first part of the code I have to write is giving me problems please help. The table below was created:
    Wrote file afiedt.buf
    1 CREATE TABLE WEEKS
    2 (WEEKID VARCHAR2(20),
    3 TRANSACTION_YEAR VARCHAR2(20),
    4 START_DATE DATE,
    5 END_DATE DATE,
    6 DAYS VARCHAR2(20),
    7* WEEK_NUMBER VARCHAR2(20))
    SQL> /
    Table created.
    SQL> --- Code To Generate start date, end date weekid, week number, etc in A financial Year
    SQL> Create OR REPLACE PROCEDURE Weeksinyear IS
    2 BEGIN
    3 declare
    4 sdate_v weeks.start_date%type;
    5 edate_v weeks.end_date%type;
    6 ndays_v weeks.days%type;
    7 nweek_v Weeks.week_number%type;
    8 weekid_v weeks.weeksid%type;
    9 transyear_v weeks.weeks.transaction_year%type;
    10 numbweeks_v number;
    11 fyearst_v date;
    12 fyeared_v date;
    13 totaldays_V number;
    14 i number;
    15 d number;
    16 begin
    17 fyearst_v := '05-jan-2004';
    18 fyeared_v := '26-jan-2004';
    19 sdate := fyearst_v;
    20 transyear_v := to_char('05-jan-2004','yyyy');
    21 nweek_v :=1;
    22 ndays_v := 5;
    23 totaldays_v := to_number(to_date(fyeared) - to_date(fyearst));
    24 nweekid_v :=1;
    25 i := 1;
    26 loop
    27 If to_char(fyearst_v,'DAY') ='MONDAY ' then
    28 loop
    29 i := i + 4;
    30 if i < totaldays_v then
    31 d := to_number(totaldays_v - i);
    32 edate_v := (sdate_v + (d - 1));
    33 elseif i = totaldays_v then
    34 edate_v := sdate_v + 4;
    35 elseif i < totaldays then
    36 edate := (sdate + 4);
    37 endif;
    38 weekid_v := (i||'000'||'i');
    39 insert into weeks(weekid, transaction_year, start_date, end_date, days, week_number)
    40 values(weekid_v,transyear, sdate_v, ndays, nweek_v);
    41 if totaldays_V > 7 then
    42 weekid_v := weekid + 1;
    43 sdate_v := sdate_v + 7;
    44 transyear_V := transyear_v;
    45 nweek_v := nweek_v + 1;
    46 ndays_v := ndays_v;
    47 totaldays_v := to_number(totaldays_v - 7);
    48 else exit;
    49 end loop;
    50 else exit;
    51 end loop;
    52 end;
    53 END;
    54 /
    Warning: Procedure created with compilation errors.
    SQL> sho err;
    Errors for PROCEDURE WEEKSINYEAR:
    LINE/COL ERROR
    33/35 PLS-00103: Encountered the symbol "I" when expecting one of the
    following:
    := . ( @ % ;
    35/35 PLS-00103: Encountered the symbol "I" when expecting one of the
    following:
    := . ( @ % ;
    49/23 PLS-00103: Encountered the symbol "LOOP" when expecting one of
    the following:
    if
    LINE/COL ERROR
    51/17 PLS-00103: Encountered the symbol "LOOP" when expecting one of
    the following:
    if
    SQL>

    So many things, I don't really know where to start.
    At line 32
    IF TO_CHAR(fyearst,'DAY') ='MONDAY ' then
    Will never be true it needs to be either
    IF TO_CHAR(fyearst,'DAY') ='MONDAY ' THEN -- A total of 9 characters (padded to the length of WEDNESDAY) or
    IF TRIM(TO_CHAR(fyearst,'DAY')) ='MONDAY' THEN
    Fixing this leads to a second problem in the inner loop. At line 35
    IF i < totaldays THEN
    is logically incorrect. The variable i will take the values 5, 9, 13, 17 and enter the if condition, but will not be equal to totaldays at line 38. On the fifth iteration i = 21 so the conditional at line 35 fails and you have an infinite loop, so the test needs to be:
    IF i <= totaldays THEN
    to even get into any of your processing. Now, on the fifth pass, the conditional on line 38 (IF i = totaldays THEN ) will be true, so edate gets set, but the condition on line 40 (IF i > totaldays THEN) can never be true, so we're back to an infinite loop.
    So change line 40 to
    IF i >= totaldays THEN
    Now, the insert gets done, and the test at line 45 (IF totaldays > 7 THEN) passes and totaldays gets reset, and we go back to the top of the inner loop. Now, i = 21 and totaldays = 14, so the condition at line 35 fails, and again, we're in an infinite loop, so lets reset i as well as totaldays.
    Now i still goes 5, 9, 13, 17, 21 but totaldays = 14, so the test at line 38 is never true, and once more, an infinite loop.
    At this point I gave up and put an explicit exit after the insert statement, just to see what should be inserted, and got another infinite loop in the outer loop because there is no terminating condition on the loop since fyearst never gets changed. Having seen some output, I think what you are looking for is something more like:
    INSERT INTO weeks
    SELECT rownum, TO_CHAR(TO_DATE('05-jan-2004','dd-mon-yyyy'),'YYYY'),
           NEXT_DAY(TO_DATE('05-jan-2004','dd-mon-yyyy') - 7,'MONDAY') + ((rownum - 1) * 7),
           NEXT_DAY(TO_DATE('05-jan-2004','dd-mon-yyyy') + 1,'FRIDAY') + ((rownum - 1) * 7),
           '5', TO_CHAR(rownum)
    FROM all_objects
    WHERE rownum <= 52or, if you really want a procedure:
    CREATE OR REPLACE PROCEDURE weeksinyear (p_start IN DATE, p_end IN DATE) AS
       num_weeks NUMBER;
    BEGIN
       num_weeks := (NEXT_DAY(p_end,'MONDAY') - NEXT_DAY(p_start - 7,'MONDAY')) /7;
       INSERT INTO weeks
       SELECT rownum, TO_CHAR(p_start,'YYYY'),
              NEXT_DAY(p_start - 7,'MONDAY') + ((rownum - 1) * 7),
              NEXT_DAY(p_start + 1,'FRIDAY') + ((rownum - 1) * 7),
              '5', TO_CHAR(rownum)
       FROM all_objects
       WHERE rownum <= num_weeks;
       COMMIT;
    END;If you will always want to do this for an entire year, then the procedure could be simplified to:
    CREATE OR REPLACE PROCEDURE weeksinyear (p_start IN DATE) AS
    BEGIN
       INSERT INTO weeks
       SELECT rownum, TO_CHAR(p_start,'YYYY'),
              NEXT_DAY(p_start - 7,'MONDAY') + ((rownum - 1) * 7),
              NEXT_DAY(p_start + 1,'FRIDAY') + ((rownum - 1) * 7),
              '5', TO_CHAR(rownum)
       FROM all_objects
       WHERE rownum <= 52;
       COMMIT;
    END;TTFN
    John

  • REPLICAT ERROR(The procedure entry point long jmp could not be located )

    Hi,
    I am getting the following error
    The procedure entry point long jmp could not be located in the dynamic link library orauts.dll
    Does anyone know anything about this? please help.
    Thanks
    V

    i googled to the solution before i got to the answer but thanks anyway... you are right i changed my oracle home yesterday...today i had to reset to make this work...
    Thanks
    Venkat

  • How to capture errors when a Function module is called as BACKGROUND TASK

    How to capture errors when a Function module is called as BACKGROUND TASK?.Please advise.
    FUNCTION ZRPM_DELETE_PROJECT_DATA_API.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(IV_EXTERNAL_ID) TYPE  RPM_TV_EXTID OPTIONAL
    *"     VALUE(IV_PROJECT_GUID) TYPE  RPM_TV_GUID OPTIONAL
    *"     VALUE(FLAG) TYPE  BOOLEAN OPTIONAL
    *"  EXPORTING
    *"     VALUE(EV_RC) TYPE  I
    *"     VALUE(EV_MSG) TYPE  STRING
    *"     VALUE(ET_MSG) TYPE  RPM_TT_MESSAGES
      IF flag = cl_rpm_co=>sc_true.
        Call function 'RPM_DELETE_PROJECT_DATA' IN BACKGROUND TASK
          EXPORTING
            IV_EXTERNAL_ID  = IV_EXTERNAL_ID
            IV_PROJECT_GUID = IV_PROJECT_GUID
          IMPORTING
            EV_RC           = EV_RC
            EV_MSG          = EV_RC
            ET_MSG          = ET_MSG.
        COMMIT WORK.
      ELSE.
        CALL FUNCTION 'RPM_DELETE_PROJECT_DATA'
          EXPORTING
            IV_EXTERNAL_ID  = IV_EXTERNAL_ID
            IV_PROJECT_GUID = IV_PROJECT_GUID
          IMPORTING
            EV_RC           = EV_RC
            EV_MSG          = EV_MSG
            ET_MSG          = ET_MSG.
      ENDIF.
    ENDFUNCTION.
    In above code how to capture 'EV_RC' when FM is called as background task.

    Prakash,
    CALL FUNCTION IN BACKGROUND TASK allows no IMPORTING parameters, so that your code will produce a syntax error.
    The calling program can only handle errors of remote function calls (RFC) if these are either
    - synchronous RFC  (that is CALL FUNCTION ... DESTINATION ...) or
    - asynchronous RFC (that is CALL FUNCTION STARTING NEW TASK ... DESTINATION ...).
    Both synchronous and asynchronous RFC allow the capturing of errors by means of exceptions. But that is a different topic.

Maybe you are looking for

  • ITunes library on a flash card?

    Currently, I have my iTunes library on an external hard drive hooked up to my old MacBook which I'm trying to set up as a media server for the house (using Home Sharing).  In the meantime, I have no iTunes on my MacBook Air, and it's frustrating me. 

  • Can I install Oracle XE on a system that has the Instant Client installed?

    Hello, After installing Oracle XE (Oracle Database Express Edition 11g Release 2 for Windows x64) on my Windows 8.1 64-bit system, I can not connect to the "Get started" url (http://127.0.0.1:8080/apex/f?p=4950). The output of "Start database" shows:

  • Trying to connect my PB to a PC

    I have a G5, a Powerbook and a desktop PC. Now networking the G5 to PC is ok and my Powerbook to G5 via airport express is cool BUT the PB to PC isnt working via airport express! Any reasons why? When I connect it via a cable it connects perfectly. h

  • Can you get FCPX on three screens?

    Hello, I have a Mac Pro but it is not the late 2013 model. Is there a way to get fcpx on three screens and not just two like on the new mac pro? Thanks.

  • How do I make email address group?

    How do I make an email group on MacBook Pro?