Sync Proxy alerting in SAP

Hi,
I have a scenario as follows:
SAP sender sync proxy -> PI -> JDBC (action = update_insert)
The JDBC receiver adapter will send back the number of records updated or inserted. My question is how to raise an alert in SAP based on the response from the JDBC adapter? For example if the result says no records were updated or inserted I would like to raise an alert in SAP/PI.
Do I simply define the Sender Interface to include a response and standard fault? then use a suitable method to raise a fault exception in SAP? Can the fault on a sync proxy be used in this way?
I know there is a blog that shows how to raise an alert for an async proxy scenario: Fault Message Types - A Demo (Part 1).
Thanks
Che

Hi Che,
The blog gives the details for fault response from receiver. In your case you will receive the response from JDBC in one format for successful and no update message.
For your requirement, you can raise alert in UDF. But do you want to stop the message and raise alert? Or pass the message.
Please check the below blog
Hacking: To get error from the PI Mapping Mapping realtime.
I think the response should go to sender (proxy) and alert or further action should handle in proxy.
regards,
Harish

Similar Messages

  • CcBpm Sync - Proxy

    Hi Guys,
    I've been trying to get this working since last week monday but I get the same error everytime I try some other approach.
    Its a simple Soap -> ECC (sync) -> Proxy interface. If this works I'll add a 2nd interface to the bpm.. Error I get: "The process does not support the given synchronous interface or does not support synchronous messages"
    in my bpm I've got 2 container parameters (outbound req & resp). I've got 3 steps in my process,
    receive (async) -> send (sync) -> send (async)     - gave me this error so I tried
    receiver S/A bridge open -> send (sync) -> send S/A bridge close       - still gave me this error.
    My opperation mapping has my outbound sync SI & my inbound sync SI.
    Config: soap sender to proxy receiver.
    Receiver Detr from soap -> bpm
    Receiver Detr from bpm -> ECC
    Receiver Detr from bpm -> soap
    Any idea where I the issue could be?
    Thanks,
    Jan

    https://service.sap.com/sap/support/notes/856597
    Q: To which URL can I send my SOAP message?
               A: The URL for your SOAP sender channel is
               http://host:port /XISOAPAdapter/MessageServlet?channel=p:s:c
               where host is the host name, port is the port number, p is the optional party name, s the service name, and c is the channel name, respectively.The URL given above is valid for 3.0/7.0/7.1.
               A new URL syntax is also valid and is recommended to be used. The URL for the SOAP sender channel is
               http://host:port /XISOAPAdapter/MessageServlet?senderParty=FP& senderService=FS& interface=IF&receiverParty=TP&receiverService=TS&interfaceNamespace=IFNamespace

  • How to configure alerts in SAP R/3 System.

    Hi,
       We have R/3 system installed in our system.Now i want configure alerts to display for users.How can i configure alerts in that R/3 System.Send me the realted information and links.
    Regards,
    Kiran.

    Hi Bhogi,
    The Alerts in SAP XI can be raised for error happening in:
    1. Adapter Engine
    2. Integration Engine.
    1. These Alerts are system generated in case anything happens in either of the component.
    For this you need to:
    1. Create ALert Category in the Trnasaction ALRTCATDEF
    2. Create Alert rules in Runtime Workbench--> ALert Configuration and associating these rules to Alert category.
    If you want you can do it without a BPM
    and throw an exception in case any of the values is missing:
    have a look at this weblog on how to throw exceptions
    in a nice way:
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    Also just go through Raising Exceptions in SAP XI Mapping and see if it helps you solve the problem.
    Also go through these links:
    Forwarding Alerts to Alert Management (ALM)
    Alert Management
    XI: Alerts - Step by step
    XI: Alerts - Troubleshooting guide
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f2243d711d1893e0000e8323c4f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbc8142c11d3b93a0000e8353423/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/2166e6a91d11d188de0000e8216438/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/05/bb223905b61b0ae10000000a11402f/content.htm
    For a Simple case with BPM refer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/33/4a773f12f14a18e10000000a114084/frameset.htm
    To send an EMAIL, assign an EMAIL ID to the corresponding user in the transaction SU01 and then set up SCOT and you can send emails when the ALERT is triggered..
    Once you have configure Alerts, you will get the Alerts into ALERT INBOX in RWB of the user. To also get the email, the following needs to be done,
    1. In SU01 -- Assign the Email ID for the Recipient of the ALERT.
    2. In , RWB>ALERT INBOX> PERSONALIZATION--> Time Independent Delivery and Email are selected.
    3. Finally, SCOT needs to be set up to send Emails. Check this for the same. You can ask your BASIS team to do this step.
    http://help.sap.com/saphelp_nw04/helpdata/en/23/1edf098ea211d2b47300609419ed29/frameset.htm
    Also, In ALRTCATDEF, go to SETTINGS--> CONFIGURATION. By default, the option selected is INTERNAL PROCESSING. Select the option SMTP FORWARDING AS XML and give the email id. This will enable you to send an email alert whenever an error occurs in XI.
    I hope it helps.....
    Reward points if this helps
    Regards
    Vani.

  • How to customize alert in sap PI 7.0

    Iam able to generate alerts using standard Alert configuration.
    In our environment , we have different namespaces for different scenarios.
    Now based on the error message, we need to categorize the mail to specific receipients.
    As I browsed through forums, I have got SALERT_CREATE rfc.
    But I didnot understand How to use that.
    Could any one helpout of it.

    Hi
    Check these documents. I think those will be help for you
    Customize E-Mail Body and Subject in Alerts in SAP PI 7.31 – Java Stack Only – Part 1 – ESR
    Customize E-Mail Body and Subject in Alerts in SAP PI 7.31 – Java Stack Only – Part 2 – ID
    Michal's PI tips: Component-Based Message Alerting

  • C# Proxy Classes from SAP WSDL files

    We are trying to generate proxy classes for SAP eSOA web services using C# and Visual Studio 2005.
    When we try to run Microsoft's proxy class generation utility, WSDL.exe, errors are generated that attribute incorrect syntax to the SAP WSDL file:
    > Microsoft (R) Web Services Description Language Utility [Microsoft (R)
    > .NET Framework, Version 2.0.50727.42] Copyright (C) Microsoft
    > Corporation. All rights reserved.
    > Warning: This web reference does not conform to WS-I Basic Profile v1.1.
    > R2028, R2029: A DESCRIPTION using the WSDL namespace and the WSDL SOAP
    > binding n amespace MUST be valid according to the XML Schemas found at
    > http://schemas.xmls oap.org/wsdl/2003-02-11.xsd and http://schemas.xmlsoap.org/wsdl/soap/2003-02-11.
    > xsd.
    >   -  Warning: The element 'definitions' in namespace
    > 'http://schemas.xmlsoap.org /wsdl/' has invalid child element 'properties' in namespace 'urn:com-sap:ifr:v2:
    > wsdl'. List of possible elements expected: 'import, types, message,
    > portType, bi nding, service' in namespace
    > 'http://schemas.xmlsoap.org/wsdl/'. Line 1748, posi tion 4.
    >
    > SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of
    > implementat ion guidelines that recommend how a set of core Web
    > services specifications shou ld be used together to develop
    > interoperable Web services. For the 1.1 Profile, those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema.
    >
    > For more details on the WS-I Basic Profile v1.1, see the specification
    > at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.
      The WSDL file is obtained from the SAP ES Workplace, from the following URL:
    http://erp.esworkplace.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/render.asp?&id=4FFC1A97663611DA36BB000F20DAC9EF&fragID=&packageid=DBBB6D8AA3B382F191E0000F20F64781&iv=
      We have already tried both SAP files available from this location; neither works.
      Any insight you can offer to help us generate these proxy classes is welcome. Note that the SAP PDF file, "ESOA-Roadmap-Workshop.PDF" talks about one syntactic incompatibility with Microsoft WSDL (on page 70), but this solution does not work, and indeed the token 'parameters' does not appear anywhere in either SAP WSDL file for Create Maintenance Request eSOA.
      Thanks for any help you can offer!
    -- Julian Mensch

    I have the same problem after renaming "parameters" to "parameter" and I'm using the same example ES that's in the document:
    http://erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ECC_EMPLOYEEBASICDBYEMPLOYEEQR/version3?sap-client=800&wsdl=1.1
    wsdl.exe from .NET Framework 2.0.50727.42 gives me
    Microsoft (R) Web Services Description Language Utility
    [Microsoft (R) .NET Framework, Version 2.0.50727.42]
    Copyright (C) Microsoft Corporation. All rights reserved.
    Warning: This web reference does not conform to WS-I Basic Profile v1.1.
    SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementat
    ion guidelines that recommend how a set of core Web services specifications shou
    ld be used together to develop interoperable Web services. For the 1.1 Profile,
    those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema.
    For more details on the WS-I Basic Profile v1.1, see the specification
    at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.
    Warning: no classes were generated.
    Warnings were encountered. Review generated source comments for more details.
    I'm sure it's something really stupid since this example worked at some point for whoever wrote the doc...
    It's sad that there is basically no .NET support from the SAP side and apart from a few documents there is basically no developer documentation or samples...

  • Soap to Sync Proxy

    Hello,
    I have a scenario wherein, am trying to go for Sync Soap and Sync Proxy.
    1. So it would be like Sync soap  <-> XI <-> Sync Abap proxy. Firstly, is this possible?
    2. Advisable to go in for BPM?
    3. Better to make, soap sender async -> BPM -> sync proxy -> soap receiver async?
    Which among the above would be a better approach and why?
    also, am not able to locate the sync proxy blog.,
    thanks,
    Vishal

    Hi,
    1. So it would be like Sync soap <-> XI <-> Sync Abap proxy. Firstly, is this possible? - Yes
    Which among the above would be a better approach and why? - The above first option is the best approach because it does not need the use of BPM and it can be designed and configured easily in XI.........Moreover since BPM is having performance issues because of the way BPM works, it is advisable to avoid BPM as much as possible.
    Regards,
    Rajeev Gupta

  • Sync Proxy to SOAP Scenario

    HI All,
    Scenario: Sync Proxy to SOAP Scenario.
    just wanted to know below
    1) is it possible to Test the sync Scenario using SOAP UI or any other tools when SOAP is target?
    2)Is it possible to Trigger a Proxy Message  from ABAP system and Get the response back to ABAP when only proxy setting are done with out any coding in the ABAP? (Jus wanted to test whether scenario is working fine)
    Regards,
    Mani

    In a synch scenario, you only need to configure it like it is an asynch scenario. The only exception is that the service interfaces are synchronous. Each synch service interface requires at least two messages (request and response), fault message is optional. So for your scenario, at least four messages are required
    1.) 1st message (Outbound request) -> Proxy message type request that will be entering PI
    2.) 2nd message (Inbound request) -> Soap request message type going to the webservice
    3.) 3rd message (Inbound response) -> Soap response message type from webservice going to PI
    4.) 4th message (Outbound response) -> contains the message type that has the values that you want
    So the flow could be like this (fault messages not shown)
    Outbound SI (1) -> PI -> Inbound SI (2)     (4) <- PI <-            (3)
    Since you use abap proxy as client you dont need sender agreeement and sender communication channel. You need the receiver soap communication channel and receiver agreement.
    ID objects configuration
    1 Rec Determination,  1 Interface Determination, 1rec comm channel and 1receiver agreement.
    Map proxy request to soap request  first mapping
    Map soap response to proxy respones second mapping
    Operation mapping use outbound interface (proxy) on the source side and inbound interface (soap) on the target side. That's it. You will see both request and response mapping together.

  • Sync Proxy to JMS (MQSeries)

    Hi All,
    I have a scenario of Sync proxy to MQSeries.
    Now suppose my MQ Series takes a long time to respond with the reply, then how do i handle such a situation as i dont want my proxy to be waiting for the reply (say for more than 2 min).
    I dont want it to timeout but instead i need a reply sent back to my proxy informing MQ series took more time to respond back.
    Suggestion wud be appreciated !!!!
    ShaBZ~~~

    Hi,
    use sync bridge
    <b>receive step</b> - sync receive
    <b>send step</b> - sync to jms
    wrap it in a timeout branch (in block) and in the exception
    branch of this you can create a mapping
    with text "it took more time then expected"
    after the timeout time the message will
    go to the exception branch and
    map the outbput message with the text
    <b>send step</b> to close the sync brigde
    one way to do it:)
    Regards,
    michal

  • Doubt about difference between "Send to sap" and "Send EWA Alerts to SAP"

    Hello All
    I hope that you can help me is juts a doubt about 2 check boxes
    I'm on setup of a EWA but when i´m on the configuration (dates, transfers ewa to sap, archiving of EWA etc) i see 2 check boxes
    that i don't know what is the difference
    The path is the following
    Tcode = DSWP --> Select the solution --> (the left column) Operations Setup --> Solution Monitoring --> EarlyWatch Alert  --> Setup EarlyWatch Alert
    Could you tell me what is the difference between "Send to SAP" and "Send EWA alerts to SAP" boxes?
    Thanks and have a nice day

    Hello Cherios,
    The "Send to SAP" check box is used when you want to sent a Production or Test (Quality) systems EWA data to SAP for analysis.
    Currently the "Send EWA Alerts to SAP" is not used at this time, and actually cannot be selected, and saved.
    There should now be no doubt about the two check box fields .
    Hope this information is helpful.
    Regards,
    Paul

  • SYNC- PROXY  TO SAP ABAP WEBSERVICE

    Dear Collegues,
                   My scenario is synchronous to abap web service.
    <b>i have picked up the wsdl file from IJA-R/3 system as mentioned by book.</b>
    <b>the url mentioned for target saop adapter is :</b>
    http://Q4INPUSY006.in-pune.t-systems.com:8002/sap/bc/soap/rfc/sap/ZSYNCCONNECTIONDET?sap-client=300
    when i execute the proxy , i get this error
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><b>com.sap.aii.af.ra.ms.api.DeliveryException: java.io.IOException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText></b>   <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    can any one throw some pointers reg this,
    Regards
    chandra

    Hi
    Your web service doesn't return SOAP xml. It returns HTML. I think this page contains error information. May be error in authentication. 
    Check url
    http://Q4INPUSY006.in-pune.t-systems.com:8002/sap/bc/soap/rfc/sap/ZSYNCCONNECTIONDET?sap-client=300

  • Sync Web Service - BPM with 2 sync proxy calls error.

    Hi.
    Have a sync web service going into a BPM.
    In the BPM there ar 2 sync calls towards a system making a credit check.
    The answer is responded to the web service.
    In our QA system the solution works perfect.
    I transported the solution to production and when I test the web service call towards I get the following error.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">PL_TIMEOUT</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Timeout condition of pipeline reached</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Does anybody have an idea why I get the error.
    When I check my config everything looks the same.
    Looks like we never send the first sync call to the proxy when I check in SXMB_MONI and the BPM gets terminated.
    We have just migrated the solution from XI 3.0 to PI 7.11.
    BR
    Kalle

    Hi.
    How will that help if we do not send the message.
    When I check the graphics in SXMB_MONI the error occours befor we send the first message with proxy.
    Also extend ASYNC timeout?
    We are using sync communication.
    BR
    Kalle

  • PI 7.31-ABAP Proxy Alert

    Hi All,
    Configured the steps mentioned in the below blog to trigger alert for ABAP Proxies.
    SAP PI 7.31 : ABAP proxy monitoring and Alerting using CBMA
    Tested by stopping the Sender SOAP channel and processed one message from ECC, it ends in error in ECC SXMB_MONI but alert is not getting generated.
    Alert Job is running successfully and log is showing "0 alerts had been consumed and aggregated successfully."
    Please share your inputs to resolve this issue.
    Thanks & Regards
    Prakash

    Hi Hareesh,
      I am also making use of existing connection XI_IDOC_DEFAULT_DESTINATION which is pointing to ECC system
      Also alerts are generating for message or communication channel failure in PI.
      RFC destination of type 'T' created in ECC and it works fine.
      Any other configurations required?

  • Sending email alert from SAP Application System

    Hi,
       we have one scenario like we need to send one email alert from application system, if ther is some error in  proxy or any error is ther in SXI_MONITOR of application sytem. Is ther any way to achieve this.
    Regards
    Pradeep P N

    >
    Pradeep P N wrote:
    > Hi,
    >
    >    we have one scenario like we need to send one email alert from application system, if ther is some error in  proxy or any error is ther in SXI_MONITOR of application sytem. Is ther any way to achieve this.
    >
    >
    >
    > Regards
    > Pradeep P N
    for sending mails from application system you can use various FMs -
    http://sapr3.tripod.com/abap011.htm
    http://www.sap-basis-abap.com/abap021.htm
    for XI related you can always utilize alerts

  • Cannot send alert from SAP by Outlook integration

    Dear All,
    We are on SAP8.8. When we create an Alert for a user query, we want to send the report by e mail as well.
    We can receive the report by message in SAP. We have no error message in SAP to say send out failed.
    But we didn't receive anything from SAP for the report.
    I tried to sent out email from SAP. I click the icon then sent out e mail. It can send out for me. So the outlook integration add-on should be fine. Is there anywhere we should check to see if the e mail has been sent out?
    Thanks in advance.
    Regards,
    Yuka

    hi,
    In Meassges/Alert overview,under sent messages tab,you can see messages which is sent from your system or if you are not able to send email,Goto administration->addons->Outlook integration->Default settings...you check the check box thats it.

  • SAP EarlyWatch Alert in SAP ECC and SAP PI

    Hi Experts,
    Every week in SAP EarlyWatch Alert report in PI as well as SAP ECC, shows PI consuming highest resource in SAP ECC by the SAPMHTTP.
    Example as below:
    Initial System
    Initial Action
    Total Resp. Time in s
    % of RFC Load
    Avg. Response Time
    Avg. CPU Time
    Avg. DB Time
    Avg. Roll Wait Time
    PI
    SAPMHTTP
    200.261
    15,00
    600,3
    70,4
    165,4
    1,5
    The total response time in SAP ECC by PI system is 200261 secs.
    I have checked the interfaces which connects SAP ECC with RFC and calculated the processing time for all messages in PI. But that time is much less than the above total response time.
    Can you please help me understand how to validate this with the messages that are getting processed through PI using RFC?
    Thanks in Advance.

    Hello Pascal,
    No There is no possibility to get the Diaglog response time and the number of users as similar to a ABAP EWA report in a JAVA EWA report.
    This is because of the fact that the checks for both these system types are different.
    Regards
    Amit

Maybe you are looking for

  • Opening link in a new tab disables back navigation to the first page

    If I am on page A (for an example, let's say it is www.yahoo.com) and I chose a link on that page and by right-clicking open pop-up menu and choose '''Open Link in New Tab''', the page B (let's say finance.yahoo.com) opens in a new tab. Now, if I cli

  • Recovery and support drives

    HP laptops come with a couple of extra drives for recovery and support purposes.  I'm wondering if these drives actually need a drive letter assigned to them or if the drive letter can be changed. All and any comments greatly appreciated. WD This que

  • String replacement

    Hi, anyone knows how to replace a particular string in a file with another string? For example, in the file hello.tmp, I want to replace the word :Smile: with the string <img src="smile.gif"> I tried to use String.replace() but this is only for chara

  • Attachment sent thru mail in PL/SQL code.

    Hi. I have a requirement.. I have to send bunch of an error description thru mail along with attachment says xls.All error should be club in xls and should be sent these attachement thru EMAIL. Please provide a sample code for the same. I have a code

  • Query in reg the use of ResourceBundle and Properties in my webapplicatiom.

    I have property file which have some values. I use ResourceBundle to get values by passing the key to getString method. But the problem for me is that my webapplication is running in tomcat server. When i add a new value in property file i could not