Alert Message Error

Dear Experts,
I have created a query based alert for the cash payment where invoice amount and payment not tallied then from system alert message should generate.
This is my Query:
SELECT T1.[Series],T1.[DocNum], T1.[DocDate], T1.[CardCode], T1.[CardName],T1.[CashAcct], T1.[CashSum], T1.[NoDocSum] as "BalanceDue", (T1.[CashSum] - T1.[NoDocSum]) as "InvoiceAmount"
FROM [dbo].[OVPM]  T1 WHERE isnull(T1.[CashAcct],'')<>'' and T1.[NoDocSum]<>0 and T1.[CashAcct]='ACH0000001' and (T1.[CashSum] - T1.[NoDocSum])<> 0
Please check and suggest your opinion in case of correction required
Thanks in advance...
Regards,
Agranshu

Hi Agranshu
Try below query...............
SELECT T1.Series,T1.DocNum, T1.DocDate, T1.CardCode, T1.CardName,T1.CashAcct,
T1.CashSum,
T1.NoDocSum as "BalanceDue", (T1.CashSum - T1.NoDocSum) as "InvoiceAmount"
FROM dbo.OVPM T1 WHERE  T1.CashAcct='ACH0000001' and (T1.CashSum - T1.NoDocSum)= 0
Reagrds
Kamlesh Naware

Similar Messages

  • Alert message error - need help

    I'm very poor in the javascript department when developping PDFs and I would need a little help with this issue.
    On one row, I would need field C to check on exit if Field A is larger than field C. If field A is not larger, then I need an alert message to pop up and say "Field C cannot be larger than field A." and then the cursor would return to field C, and the value of field C would become 0 (zero).
    I've tried a few ways, but I do not seem to be getting it right. Any one have a clue how to do this effectively?
    Thank you!

    It would appear that there isn't. The sample I posted worked for me, which makes me think there are other factors involved such as:
    1. What version of compatibility are you saving the form as? (I saved it as compatible with 8.1 or later)
    2. What program is being used to open the pdf? (I used Acrobat 8.1.6)
    3. Is the user actually clicking the button with the mouse or simply hitting the Enter key to answer the pop-up? (I clicked it)
    4. Machine OS (I'm using 64-bit XP, Service Pack 2)
    Something else is going on that is making the pdf perform differently, maybe something as simple as the form moving outside the environment it was created in. No matter what the reason is, controlling the focus is the issue and it doesn't look to be something we can control reliably.

  • Access Denied error message... I want to give alert message

    I have Manager service in my portal page. But I don't have the content access from the back end system.
    In the portal log viewer it is saying the Access Denied info. So i am getting the below error message in the portal page.
    Instead of giving this error message I want to give a alert message like "You are not authorised to view this page...so please contact your Administrator"...
    I want to know how to do this. can anyone help me on this
    An exception occurred while processing a request for :
    iView : pcd:portal_content/com.XYZ.roles.XYZ_Roles/com.XYZ.roles.Human_Resources/com.XYZ.roles.Manager/com.XYZ.hr.wks.se.
    Manager_Services/com.XYZ.hr.wks.cl.Overview_MSS/com.XYZ.hr.wks.cl.Compensation_Management/com.XYZ.hr.wks.up.Position_Change_Process/com.XYZ.hr.pag.ac.Select_Team_Member_
    and_Form_Pos_Chg/XYZTeamViewerTransfer
    Component Name : com.XYZ.hr.pcr.transfer.XYZTeamViewerTransfer.XYZTeamViewerTransfer
    The exception was logged. Inform your system administrator..
    Exception id: 08:46_17/07/07_0505_24366050
    See the details for the exception ID in the log file
    Portal log**********
    #1.5#000BCD4305DF0043000019C80000290400043574F8F3FA51#1184676416089#com.sap.security.core.util#sap.com/irj#com.sap.security.core.util.
    [cf=com.sap.security.core.util.SecurityAudit][md=log(...)][cl=12778]#Guest#192####cd0d7490346311dc931d000bcd4305df#SAPEngine_Application_Thread[impl:3]
    _24##0#0#Info##Plain###ObjectID handed over is 'null'!#
    #1.5#000BCD4305DF0043000019CA0000290400043574F8F3FC42#1184676416089#com.sap.security.core.util.SecurityAudit#sap.com/irj
    #com.sap.security.core.util.SecurityAudit#Guest#192####cd0d7490346311dc931d000bcd4305df#SAPEngine_Application_Thread[impl:3]
    _24##0#0#Warning#1#/System/Security/Audit#Plain###Guest | LOGIN.ERROR | NONE = null | | Login Method=[default], UserID=[null], IP Address=[168.133.7.3], Reason=[Access Denied.]#
    #1.5#000BCD4305DF0043000019CC0000290400043574F8F4A4CF#1184676416136#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#Guest#192
    ####cd0d7490346311dc931d000bcd4305df#SAPEngine_Application_Thread[impl:3]_24##0#0#Error#1#/System/Server#Java###Exception ID:08:46_17/07/07_0506_24366050
    [EXCEPTION]
    #1#com.sapportals.portal.prt.runtime.PortalRuntimeException: <b>Access is denied:
    com.sap.portal.heartbeats.PortalHeartbeat - user: Guest
    at
    com.sapportals.portal.prt.deployment.DeploymentManager.checkPermissions(DeploymentManager.java:2005)</b>at
    com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:247)
    at
    com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
    at
    com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
    at
    com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:435)
    at
    com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:607)
    at
    com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at
    com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service
    (HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    Caused by: com.sapportals.portal.pcd.gl.PermissionControlException: <b>Access denied</b> (Object:
    com.sap.portal.system/security/sap.com/NetWeaver.Portal/high_safety/com.sap.portal.heartbeats/components/PortalHeartbeat)
    at com.sapportals.portal.pcd.gl.PcdFilterContext.filterLookup(PcdFilterContext.java:416)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1095)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1101)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1101)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1101)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1101)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1101)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1101)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1101)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.proxyLookupLink(PcdProxyContext.java:1197)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.proxyLookup(PcdProxyContext.java:1144)
    at com.sapportals.portal.pcd.gl.PcdProxyContext.lookup(PcdProxyContext.java:918)
    at com.sapportals.portal.pcd.gl.PcdGlContext.lookup(PcdGlContext.java:68)
    at com.sapportals.portal.pcd.gl.PcdURLContext.lookup(PcdURLContext.java:238)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.sapportals.portal.prt.deployment.DeploymentManager.checkPermissions(DeploymentManager.java:2000)

    Kindly post how u did it. It will be helpful for others.
    Thanks in advance.
    Pradeep.

  • SAP PI Message Cancellation Alert - Message does not have restartable error status

    Hello SCNers
    Version: 7.1
    Scenario: File --> PI -->SOAP
    We have a situation where a PI message  in Integration Engine shows error status.We want to cancel the message in IE but are unable to do so.
    On clicking Cancel for this message in SXMB_MONI, we are receiving an alert "Message does not have restartable error status".
    In SXMSPMAST table, value for ITFACTION is DEL.
    We do not want to run report RSXMB_DEL_TO_ARCH, that would change status of all messages with DEL status to ARCH.
    Is there a way to Cancel or Change the Status of this single message?
    Regards
    Sudheer

    Hi Hareesh,
    Tried that too, but to no avail.
    Strangely, the log shows NO_ERROR_STATE for the cancelation of this message thru RSXMB_CANCEL_MESSAGES.
    But in SXMSPMAST table the status of this message is 14 (System Error - Manual Restart Possible).
    Regards
    Sudheer

  • Got error(JS alert message) that "Given key was not present in the dictonary". After clearing history error gone. Not getting answer?

    I have asp dotnet website and when I am log in into it then I got an js alert message i.e.
    "Given key was not present in the dictonary". When I am going to clear clear browser history then it working fine without error. We know it thats why we are clearing history but client don't know and they dont want to clear history. So Is there solution
    of this problem. please suggest me.

    Hi Vishal Shivade,
    Please post in ASP.NET forums, where you could get better help.
    Thanks for your understanding.
    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.

  • PI 7.0 SP15 alerts JMS Duplicate message error

    Hi all,
    We have a scenario where in we  receive BAPI calls to R/3 from web through MQ and XI.
    WEB -> MQ->XI->R/3 (Request / Response send back similarly)
    We have modular configuration in the channel.
    All these BAPI messages are queries needed to build an order for example product information / customer information etc.
    We have PI 7.0 SP15
    Sometimes we receive the error ' Duplicate JMS message with JMS ID##### detected.Duplicate will be ignored' in the sender JMS channel.Because of this error XI is not able to process subsequent messages and the channel keeps on throwing the same error.We need to clear the queue and then restart the channel to make it work.
    Can any one please tell me what is the reason for occurence of this error..?
    Is this ID generated in JMS or in XI?If so how this could be handled without clearing the queue's..?
    When we analyzed the messages in the queue we found out same xml messages been send twice which i would imagine the query been send twice(which is a possiblity from the web) would that have caused this JMS duplcate message error??!!
    Also because of this error XI is throwing multiple alert messages at the rate of 3 per second which is causing the huge performance hit as the alert inbox gets filled up..We did put the suppress multiple alert check..but before somebody reacts to these alerts there are numerous of them created..any suggestions on this is much appreciated..
    Thanks for your help in advance
    Larry

    Larry,
    Is that alert rule is generic or interface specific? If it is generic then please make it interface specific.
    Thanks,
    Sunil

  • Customize email alert messages for Integration Engine Errors

    Hi experts,
    I've configured auto-reaction emails for alerts raised by Integration Engine in CCMS.
    The email content I got is as below:
    Subject: CCMS alerts PI1 20070319 140556
    <i>ALERT for PI1 \ IEngine_PI1_001 Integration Server \ Category MAPPING \ Message alerts by Error Codes at 20070319 060447 ( Time in UTC )
    RED CCMS alert for monitored object Message alerts by Error Codes
    Alert Text:Error code: GENERIC error text: com/sap/xi/tf/_MM_OperationPro cInfo_ODSOperationP~com.sap.ai i.utilxi.misc.api.BaseRuntimeExceptionFatal Error:
    System:PI1
    Segment:SAP_CCMS_ootspdbs02_PI1_01
    MTE:PI1\IEngine_PI1_001 Integration Server\Category MAPPING\Message alerts by Error Codes
    Client:001
    User:PIAFUSER
    Severity:       50</i>
    May I know how I can configure the contents of this message?
    I can't seem to find them in any of the CCMS alerts settings.
    Please help.
    Thanks.
    Ron

    Hi,
    Go through these links..
    /people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i
    http://help.sap.com/saphelp_nw04/helpdata/en/17/550c404a435509e10000000a1550b0/content.htm
    https://websmp102.sap-ag.de/monitoring
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/ae8d4243a5de54e10000000a155106/frameset.htm
    /people/sap.india5/blog/2005/12/06/xi-ccms-alert-monitoring-overview-and-features
    http://help.sap.com/saphelp_nw04/helpdata/en/25/27fb1c56ff3b41a5d6807d3174d5c7/frameset.htm
    regards
    manoj kumar

  • Error Message 006 Failed to send Alert message

    Hi all,
    In IC web client (CRM5.0) , in the browser showing an error message
    'Failed to send alert message to browser (Message Class CRM_IC_ALERT - message number 006).
    Please give me a solution to rectify it.
    Thanks

    Hi, Andrei!
    Seems that it's help! I set security settings to default in both browser and Alerts began to work.
    Thanks!
    Best regards,
    Anton

  • Error message: "Cannot send alert message to browser" on Rule Policy

    Hi Experts.
    Have anybody experience with the error message "Cannot send alert message to browser" on Rule Policies? The condition-check of the rule is working fine. But the error message shown appears in the web UI Similar exception on Complaints Error Message but no answer. Is it possible that the SSL settings are responsible for that error message? Any ideas? Thanks a lot!
    Regards
    Tobias

    Hi Leon,
    thanks for you fast response!
    - The method "send_alert_message" has thrown following exception
    "Exception: An exception (CX_SAM_MESSAGING_EXCEPTION) occurred. Message no. TPDA430."
    on that line of code: line 91: sam_sender->send_to_client( message = sam_message ).
    I looked inside:
    - In the method "_SEND (CL_SAM_SESSION_QUEUE_SENDER)"
    line 101:   http_client->receive(  EXCEPTIONS http_communication_failure = 1 ... )
    The sy-subrc will be set to 1.
    I looked inside:
    - In the method "IF_HTTP_CLIENT~RECEIVE (CL_HTTP_CLIENT)"
    line 885: reason = response->get_header_field( 'sap-icmclnterror' ).
    Here the "reason" will  be set to "Native SSL Error".
    Any ideas how to solve this problem?
    Thanks a lot.
    Regards,
    Tobias

  • How to convert alert message to error message?

    Please tell me.
    Thanks
    samir

    Dear Samir
    You cannot convert all alert messages to error messges. if you are refering to QM then not at all possible. For all other moduled in config in system modification you can maintain messages and you can also convert alert into error. But here also not all messages can be maintained .
    Regards
    Gajesh

  • Filename in an alert message

    Hi Friends,
    I am doing a simple file to idoc scenario.
    if mapping error occurs.
    the requirement is to trigger an alert which says "A mapping error occurred when processing the file XYZ.txt"
    Constraints are:
    1. BPM is not used as it is a simple scenario.
    2.RFC lookup during mapping is to be avoided since if mapping itself fails then it will be of no use.
    Is there a way/work around to get the filename dynamically in the alert message.
    Thank you,

    Seems to be not possible without a BPM.....at least by using a standard alert procdure
    Using a mapping get the FileName .....have both the source and target message as the same.....
    map the FileName to some empty node of the structure.
    In the mapping logic, one for which you want to check for any exception, do not make use of the node containing the FIleName...let the rest mapping remain as is
    Create a Container Variable and Assign the node containing the FileName to it using a Container Operation.
    Then raise the Alert.
    I have used a similar approach in one of my interfaces.
    Regards,
    Abhishek.

  • When I am writing an email, I get an alert message that says "The message could not be copied or moved to the drafts folder. Writing to the folder failed. To ga

    When I am writing an email, I get an alert message that says “The message could not be copied or moved to the drafts folder. Writing to the folder failed. To gain disc space, choose Empty Deleted and choose Compact Folders and try again.”
    If I do that, I get a message saying “There was an error copying to the Sent folder,, retry?”
    If I retry it sends the uncompleted email. All I can do is keep deleting the message and carry on. Then the whole business might repeat itself.
    Help!
    Frank

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • Query to populate an alert message to avoid the duplication of Reference no

    Hi Experts,
    SUB:Query to populate an alert message to avoid the duplication of BP reference no.
    In A/R invoice, BP reference (numAtcard) is used to enter sales Order no as the reference number. As human error, double A/R invoice is created to that particular Sales Order no.
    So,I want a formatted search query in that BP reference field, so that when i type the sales order number and give tab, it should populate the alert message if it already exists.
    Moreover i do not want to block it through store procedure method, only warning is required to my scenario.
    Kindly, help me on this ground.
    Regards,
    Dwarak

    Hi there, i think this could work, maybe you'll only need to configure the Formated search to work with the document total, each time it changes
    declare @numatcard varchar(15)
    declare @count int
    set @numatcard=(select $[oinv.numatcard])
    set @count= (select count(numatcard) from oinv where numatcard=@numatcard)
    if @count>1
    select 'There is a duplicated reference'
    select @numatcard
    hope it works

  • How displaying an alert message called from a database procedure

    Hi,
    How can I display an alert message that is called from a database procedure.
    I've tried the following code:
    l_al_button NUMBER;
    l_al_message VARCHAR2(80);
    l_al_id ALERT;
    Set_Alert_Property(l_al_id, alert_message_text,l_al_message);
    l_al_Button := show_alert(l_al_id);
    When trying I receive an error that says that the word ALERT need to be declared.
    Any suggestions?
    Thanks

    Hi,
    leave the procedure without error handling.
    This is what you can do:
    1.Inside the database procedure-
    BEGIN
    RAISE_APPLICATION_ERROR (-20001, 'The chosen length of the Public Key Exponent ....');
    END;
    2.Into your Form -
    BEGIN
    EXCEPTION
    WHEN OTHERS THEN
    IF sqlcode = '-20001' THEN
    Display Your Messages.
    END IF;
    Monica
    END;

  • Display an alert message through javascript when report column item is null

    Hello,
    I have a report column item which is an select list item and now i want to display an alert message when value is null, I mean no value is selected, this alert message should be fired when update button is clicked.
    Can anyone please help me with this issue.
    Thanks,
    Orton

    You could try something like this:
    declare
      x        INTEGER;
      err_ct  INTEGER   := 0;
    begin
      x  := 5;  -- number of rows displayed
      for i in 1 ... x (
        IF wwv_flow.g_f08(i)) IS NULL THEN err_ct  := err_ct + 1;
        END IF;
      end loop;
      IF err_ct = 0 THEN
         RETURN NULL;
      ELSE
        RETURN 'Nice error message: you must supply a value.';
      END IF;This would be used with a PL/SQL validation: Function Returning Error Text.

Maybe you are looking for

  • App-V sequenced Office applications Doesn't open/recognize Office documents by default

    Clients are using sequenced MS Office and everytime they want to open a save word doc for example they have to open it through opening a MS Word Document.  By default it doesn't show with a word icon neither. if not they shall open it through "open w

  • Handle special character in mapping

    Hi Experts, I have requirement to handle special character in mapping. ö this tiny special charcter comes in I/O file and we cant avoid. Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] FIL

  • EKPO table not getting updated with PR numbers

    Hi All, PR and PO is created in APO and then transferred to R/3 system. For all these POs, we can see the PR number in the PO display(ME23n) but when we see in the EKPO table the PR number is missing. Any pointers as to why this is happenning? whethe

  • Acrobat 9-Want to use single form, not for data collection

    I have created a form that I want to give to my employees using Acrobat 9 Pro. The only options I see are to send the files and let them use them to re-submit. I don't need the information back. This is merely a checklist of information that they can

  • Can I get the V6.3 firmware as a Windows user ?

    I see that there is a airport express firmware upgrade(V6.3), but I can only find it in the OS-X flavor. Anyone seen a V6.3 update for Windows users ?   Windows XP