How to catch messages?

hi
i have requirement in which i have to perform mass updation of user status.during this process the sytem messages will come for user status which can't be changed.
how can i catch these messages in a table as this updation will occur in bacground and need not be stopped due to errors.
second how can i display these messages .
any pointers will be appreciated.
regards
vijay

Hi,
I think you are using bdc for updating then
CALL TRANSACTION 'XK01' USING IT_BDCDATA
                        MODE  'A'
                       UPDATE 'S'
                     MESSAGES INTO IT_BDCMSGCOLL.
Here IT_BDCMSGCOLL contains all messages during the updation process
aRs

Similar Messages

  • How to catch SAP application errors in BPM.

    Hi,
    I have a IDOC to Soap Sync Scenario where I send the message to a Webservice. I have used a BPM since we need to catch the resposne of this message and map it to a RFC. For ex if I get a success resposne I need to map success if not than I need to catch the error and map it to the RFC. Now here in some cases like if the target system (webservice) is down than XI raises a sap application error:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <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>com.sap.aii.af.ra.ms.api.DeliveryException: Connection refused (errno:239)</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Normally XI stops the process in these cases and does not proceed to the next step but I need to catch this message and map the content in the AdditionalText to the target RFC. Can anyone let me know how to catch this SAP Application Error in BPM and map it to the RFC.
    Thanks,
    Bhargav

    Hi Gaurav,
    As I have mentioned I need to catch the application error in the BPM. If you see the discussion that is mentioned after the blog you have mentioned it is stated that the fault messages or the application error cannot be caught in BPM.
    In the blog that you stated we can catch the fault message and map it to a message structure but only to that extent after that it would stop the BPM process at that step but would not proceed further as shown in the screenshot given in the blog it would fail as "application error restart not possible".
    I need to proceed further and capture this error to an RFC Structure and call a proxy.
    Here after the error it does not proceed to the next step.
    Thanks,
    Bhargav

  • How to catch and display a link content in another portlet page?

    Can you tell me how to display a URL content into next page after an user click s on this link? I am developing a JSR 168 portlet under a Portal. I have 3 pages so far in my portlet. view.jsp, view2.jsp and IpByHourPage.jsp. view2.jsp displays a lis of IP address. When an user clicks on an IP in view2.jsp, it goes to IpByHourPage.jsp. How to catch the IP address such as 123.23.89.21 that an user just click displayed in IpByHourPage.jsp. I don't know why I got null value returned.
    Also, I don't know how to do a "go back to previous page". I want to go back to view2.jsp from IpbyHourPage.jsp
    Here is my code
    in view2.jsp
    <portlet:renderURL var="aURL">
    <portlet:param name="goto" value="IpByHourPage"/>
    </portlet:renderURL>
    <a href="<%=aURL.toString() %> "><%=MyIP%></a>
    in IpByHourPage.jsp
    <%
    String MyIPHour = request.getParameter("goto");
    %>
    <h1>IP Report by Hour ( <%=MyIPHour%> )</h1>
    <portlet:renderURL var="Ret_IPByHour">
    <portlet:param name="Ret_IPHourPage" value="Ret_IPByHourPage"/>
    </portlet:renderURL>
    <center> <a href="<%=Ret_IPByHour.toString() %> "><b>Choose Another IP</b></a></center>
    in my .java file
    protected void doView(RenderRequest request, RenderResponse response)
    throws PortletException, IOException, UnavailableException {
    response.setContentType("text/html");
    String MyBegDate = request.getParameter("BegDate");
    String MyEndDate = request.getParameter("EndDate");
    String MyNetworks = request.getParameter("networks");
    String MyYourName = request.getParameter("yourname");
    PortletURL renderURL = response.createRenderURL();
    renderURL.setPortletMode(PortletMode.VIEW);
    request.setAttribute("renderURL", renderURL.toString() )
    String GotoRenderAction = request.getParameter("goto");
    String MyIPHourAction = request.getParameter("Ret_IPHourPage");
    if ( (MyIPHourAction!=null) && MyIPHourAction.equals("Ret_IPByHourPage") )
    PortletRequestDispatcher kk = getPortletContext().getRequestDispatcher("/view2.jsp");
    kk.include(request, response);
    if (MyIPHourAction != null && MyIPHourAction.equals("Ret_IPByHourPage"))
    PortletRequestDispatcher mm = getPortletContext().getRequestDispatcher("/view2.jsp");
    mm.include(request, response);
    if (GotoRenderAction != null && GotoRenderAction.equals("IpByHourPage"))
    request.setAttribute("BegDate", "MyBegDate");
    request.setAttribute("EndDate", "MyEndDate");
    System.out.println("BegDate" + MyBegDate);
    System.out.println("Endate" + MyEndDate);
    PortletRequestDispatcher mm = getPortletContext().getRequestDispatcher("/IpByHourPage.jsp");
    mm.include(request, response);
    if(MyEndDate!= null )
    PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/view2.jsp");
    prd.include(request, response);
    else if (MyEndDate==null && GotoRenderAction == null)
    PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/view.jsp");
    prd.include(request, response);
    The problem for above code is the clicked single IP can not be displayed in IpByHourPage.jsp. and I cannot go back to view2.jsp from IpByHourPage.jsp. when I click "Choose Another IP"
    I find out that the MyBegDate and MyEndDate values are all null when I click Choose Another IP link. I got the following error message
    Caused by: javax.servlet.ServletException: Unparseable date: "null null"
         at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
         at org.apache.jsp.view2_jsp._jspService(view2_jsp.java:651)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    How to fix above problems. Thanks

    I think the problems are related to portletsession. But I don't know how to use it. How to put portletsession into doview method or my jsp pages. Can anyone tell me in my code? Thanks a lot.

  • How to catch exception throw bc4j

    Dear Forum
    I am user of JDeveloper Swing application.
    while exception throw from bc4j some particular
    type error such as (oracle.jbo.DMLException) JBO-26041
    message display.
    i want to catch error no 26041 inorder to display own
    messageBox.
    There is two methods
    1-:
    i used messageBundle class i overite message string but unable to change dialogBox,i want to use own dialog.
    2-:
    And i fund ,DML exception message return from JUErrorHandlerDlg class.So using this subclass how
    to catch and throw own message.
    Plase send me some code to write sub class of JUErrorHandlerDlg.

    You want this method System to throw an exception if the String[] is empty?
    public void system( ObjectOutputStream output, String cmd []  ) {
       if (cmd.length == 0)
          throw new IllegalArgumentException("Hey! This is an empty array!");
    //...rest of your method
    }You can choose for yourself which exception type is most appropriate. You can in theory always use the base Exception but is not very specific nor recommended. In this case, I think an existing unchecked exception such as IllegalArgumentException would be the most appropriate.

  • How to catch the error occurred in Integration Process, and then save it?

    1. how to catch the error occurred in Integration Process, and then save the detailed error message to the file?
    2. there are fault message type for inbound message interface, how to use the fault message type in IR?
    Thanks,
    Michael
    Message was edited by: Spring Tang
    inital
    Message was edited by: Spring Tang
    detailed message output
    Message was edited by: Spring Tang
    fault message type

    Hi Spring,
    If u give an exception step along with your Transformation Step, whenever some error occurs in your message mapping, this exception block wil be triggered.
    You can configure your exception block to do all exception processing that you want. This exception handling is like any other java Exceptio n Handler. You can do anything that you want in your exception handler block on the basis of your requirements.
    <i>If an exception is triggered at runtime, the system first searches for the relevant exception handler in surrounding blocks. If it does not find the correct exception handler, it continues the search in the next block in the block hierarchy.
    When the system finds the correct system handler, it stops all active steps in the block in which the exception handler is defined and then continues processing in the exception handler branch. Once the exception handler has finished processing, the process is continued after the block.
    If the system fails to find an exception handler, it terminates the integration process with an error.</i>
    Regards,
    Bhavesh

  • How to catch following error ---- JBO-25013: -----plz reply

    can any one plz tell me how to catch and display this error.....
    as an arror message box?
    please reply as early as possible....
    thanx
    detail error page---
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[06927 ].     at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:796)     at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5585)     at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:4712)     at oracle.jbo.server.EntityImpl.merge(EntityImpl.java:5058)     at oracle.jbo.server.EntityCache.add(EntityCache.java:565)     at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1762)     at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2151)     at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1070)     at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2943)     at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2842)     at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2203)     at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)     at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)     at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)     at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2818)     at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2687)     at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2634)     at oracle.jbo.server.ViewRowSetIteratorImpl.getRowAtRangeIndex(ViewRowSetIteratorImpl.java:722)     at oracle.jbo.server.ViewRowSetImpl.getRowAtRangeIndex(ViewRowSetImpl.java:3672)     at oracle.jbo.server.ViewObjectImpl.getRowAtRangeIndex(ViewObjectImpl.java:6263)     at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel._bringInToRange(FacesCtrlRangeBinding.java:541)     at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel.setRowIndex(FacesCtrlRangeBinding.java:504)     at oracle.adf.view.faces.component.UIXCollection.setRowIndex(UIXCollection.java:378)     at oracle.adf.view.faces.component.UIXTable._processStamps(UIXTable.java:496)     at oracle.adf.view.faces.component.UIXTable.processFacetsAndChildren(UIXTable.java:377)     at oracle.adf.view.faces.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:141)     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)     at oracle.adf.view.faces.component.UIXCollection.processDecodes(UIXCollection.java:136)     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)     at javax.faces.component.UIForm.processDecodes(UIForm.java:144)     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)     at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)     at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)     at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)     at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)

    Hi,
    have a look at SRDemo that you can download through JDeveloper (help--> check for updates) and see
    SRDemoADFPhaseListener.java
    and
    SRDemoPageLifecycle.java
    in the oracle.srdemo.view.frameworkExt package
    Frank

  • How to catch filenotfoundexception when user enters a bogus page

    How to catch when user enters a bogus jsp page. I have login.jsp. If someon enter log.jsp i get javax.servlet.ServletException: java.io.FileNotFoundException and then the whole path is shown. This onlyhappens with 9ias. When i was using http server that came with 9i database, i was able to catch this with send_error=true in zone.properties. It doesnt work with 9ias. How is everyone catching these errors? I cant seem to find out how to do it.
    Thanks

    Hi Adam,
    I am also facing the same problem of the java.io.FIleNotFOundException in the browser display when i am giving a wrong file path in the Url. you have mentioned that you have solved it when you were using Orcale 8i Http Server, can you please guide me for that( as we are also using Oracle 8i) I checked with putting send_error=true in zone.properties file but that is not working. What exctly you have done to get rid of that error message. I am using Windows Nt platform.
    Thanks and Regards.
    Arnab

  • How to catch java.io.FileNotFoundException when user enters a.jsp which is not a vali

    How to catch java.io.FileNotFoundException when a user enters a bogus jsp page. For example. I have a page called login.jsp. If a user enters log.jsp, the entire path is show and i get java.io.FileNotFoundException. This should not happen. This only happened since I upgraded to 9iAS. I tried send_error=true in zone.properties like i did when i was just using oracle http that came with database and it doesnt work. How are all you guys catching this?? I cant find any documentation. They say send_error=true will work, but IT DOESNT.
    Thanks for your time

    Hi Adam,
    I am also facing the same problem of the java.io.FIleNotFOundException in the browser display when i am giving a wrong file path in the Url. you have mentioned that you have solved it when you were using Orcale 8i Http Server, can you please guide me for that( as we are also using Oracle 8i) I checked with putting send_error=true in zone.properties file but that is not working. What exctly you have done to get rid of that error message. I am using Windows Nt platform.
    Thanks and Regards.
    Arnab

  • How to catch dump in background spool

    Hi Experts,
      I am a fresher and in background I want to execute a program, which is creating dump in production server and which I am not able to see the screenshots. The dump occurs, as I raise error message in start of selection. Can I see the dump output in spool or anything in testing server, forwhich I am authorised in my company. Could you say how to catch the dump. Should I eliminate the error messages or could I catch the error message also. Please help for this.
    Thanks and regards,
    Venkat, IBM.

    Hi Venkat,
    You will have to get the necessary authzn to production server for ST22 transaction.
    There is no way to access the dump of production server from Unit testing client.
    Other alternative could be to simulate the same program in background in Unit testing server & check whether it dumps.
    Schedule a job in SM36 for the same program in Quality/Unit testing client & check the output.
    Best regards,
    Prashant

  • How to catch/read mal-formed xml at Error Handler.

    I have added Error Handler at starting node of Message Flow in a Proxy Service and its(Proxy Service) listenning to a JMS queue.
    So when i am putting a mal-formed XML into the JMS queue, getting "Failure while unmarshalling message: Failed to parse XML text" error at ALSB server log.
    But i am not able to capture the mal-formed xml inside Error Handler node.
    Can any one help me how to capture input mal-formed xml in Message Folw.
    Thanks in Advance.
    Regards.
    Deba

    Re: How to catch malformed xml using error handling mechanism in from a proxy? Had a solution for similar issue. It appears that in-case of malformed XML, $body will not be populated with faulty xml snippet. One way out of this solution is, design your service as Text service and create another service isXML as explained in my above reply.
    Thanks
    Manoj

  • How to fetch messages using IMAPFolder ?

    Dear Friends,
    Anybody knows how to show messages with IMAPFolder ?
    Thank u.
    Chirag Patel

    I have never seen the class IMAPFolder. Here is a class I wrote that returns a table row that has message information from a folder.
    Use the messagelist method and pass in the folder you want along with the connection url to your server.
    =======================================================================
    =======================================================================
    import java.util.*;
    import java.util.Properties;
    import java.net.*;
    import java.io.*;
    import java.lang.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class EmailListMessages {
         static String outputString = "";
         public String timeoutVal = "5000";
         public String messagelist(String mbox, String url, int timeout) throws Exception {
              timeoutVal = timeout + "";
              return messagelist(mbox,url);
         public String messagelist(String mbox, String url) throws Exception{
              int optind;
         int port = -1;
         boolean verbose = false;
         boolean debug = false;
         boolean showStructure = false;
              Store store = null;
              outputString = "";
              try {
              // Get a Properties object
              Properties props = System.getProperties();
                   props.put("mail.imap.connectiontimeout",timeoutVal);
                   props.put("mail.imap.timeout",timeoutVal);
              // Get a Session object
              Session session = Session.getDefaultInstance(props, null);
              session.setDebug(debug);
              // Get a Store object
                   URLName urln = new URLName(url);
                   store = session.getStore(urln);
                   store.connect();
         } catch (Exception e) {outputString = "Error:Host Connection";}
              // Open the Folder
              Folder folder = store.getDefaultFolder();
              if (folder == null) {
         outputString = "No default folder error";
                   return outputString;
         folder = folder.getFolder(mbox);
         if (folder == null) {
         outputString = "Invalid folder error";
                   return outputString;
         // try to open read/write and if that fails try read-only
         try {
                   folder.open(Folder.READ_WRITE);
         } catch (MessagingException ex) {folder.open(Folder.READ_ONLY);}
         int totalMessages = folder.getMessageCount();
         if (totalMessages == 0) {
                   outputString = "(No Messages)";
                   folder.close(true);
                   store.close();
                   return outputString;
              // Attributes & Flags for all messages ..
              Message[] msgs = folder.getMessages();
              // Use a suitable FetchProfile
              FetchProfile fp = new FetchProfile();
              fp.add(FetchProfile.Item.ENVELOPE);
              fp.add(FetchProfile.Item.FLAGS);
              fp.add("X-Mailer");
              folder.fetch(msgs, fp);
              for (int i = 0; i < msgs.length; i++) {
              dumpEnvelope(msgs,mbox);
              folder.close(false);
              store.close();
              return outputString;
         public static void dumpEnvelope(Message m, String mbox) throws Exception {
              String fromString = "";
              String subjectString = "";
              String dtString = "";
              String flagString = "";
              Address[] a;
              int msgNumber = m.getMessageNumber();
              if (mbox.equals("Sent"))
                   // TO
                   if ((a = m.getRecipients(Message.RecipientType.TO)) != null) {
                   for (int j = 0; j < a.length; j++)
                        fromString = a[j].toString();
                   fromString = ("<td><a href='EmailViewMessage.jsp?messageNumber=" + msgNumber + "&folderName=" + mbox + "'>" + fromString + "</a></td>");     
              else
                   // FROM
                   if ((a = m.getFrom()) != null) {
                   for (int j = 0; j < a.length; j++)
                        fromString = a[j].toString();
                   fromString = ("<td><a href='EmailViewMessage.jsp?messageNumber=" + msgNumber + "&folderName=" + mbox + "'>" + fromString + "</a></td>");     
              // SUBJECT
              subjectString = m.getSubject();
              subjectString = ("<td>" + subjectString + "</td>");
              // DATE
              Date d = m.getSentDate();
              dtString = "UNKNOWN";
              if (d != null) dtString = d.toString();
              dtString = ("<td>" + dtString + "</td>");
              // FLAGS
              Flags flags = m.getFlags();
              StringBuffer sb = new StringBuffer();
              Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
              boolean first = true;
              for (int i = 0; i < sf.length; i++) {
              String s;
              Flags.Flag f = sf[i];
              if (f == Flags.Flag.ANSWERED)
                   s = "\\Answered";
              else if (f == Flags.Flag.DELETED)
                   s = "\\Deleted";
              else if (f == Flags.Flag.DRAFT)
                   s = "\\Draft";
              else if (f == Flags.Flag.FLAGGED)
                   s = "\\Flagged";
              else if (f == Flags.Flag.RECENT)
                   s = "\\Recent";
              else if (f == Flags.Flag.SEEN)
                   s = "\\Seen";
              else
                   continue;     // skip it
              if (first)
                   first = false;
              else
                   sb.append(' ');
              sb.append(s);
              String[] uf = flags.getUserFlags(); // get the user flag strings
              for (int i = 0; i < uf.length; i++) {
              if (first)
                   first = false;
              else
                   sb.append(' ');
              sb.append(uf[i]);
              flagString = sb.toString();
              String testString = "\\Seen";
              if (!flagString.equals(testString))
                   flagString = ("<td>New</td>");
              else
                   flagString = ("<td> </td>");
              outputString = (outputString + "<tr bgcolor='#a9a9a9'>" + fromString + subjectString + dtString + flagString + "</tr>");

  • How to catch errors in calling program when using SUBMIT ... AND RETURN ?

    Hi ,
    I am calling a report using submit and return statement from a function module. The report has select-options field for a date field. If user enters a date in low, which is greater than high, getting error message "Lower limit is greater than upper limit".
    How to catch this error without endup stoping on selection screen of the report?
    In the documentation, I read :
    Programs called with SUBMIT ... AND RETURN or CALL TRANSACTION cannot propagate exceptions to the caller, because exception objects are bound to the internal mode of a program.
    Is there any way to overcome this?
    Also my aim is to write a validation on the date selection-option to have the date range not more than 20 days.
    I am not sure of how to achieve this. 
    Is there a way to do validation of select-options data before submiting to the report ?
    Is there any standard FM to achieve this task?
    Thank you,
    Surya.
    Edited by: Surya on May 24, 2009 6:08 PM

    Hi Surya ,
    In your function module's code validate the date .
    If the low value of the date less than high and date period is not more than 20 then
    call transaction and in else condition raise exception.
    In your FM write like that - -
    IF   date-low LT date-high AND
                           date_difference LE '20' .
    CALL  TRANSACTION   'transaction'.
    ELSE.
    RAISE  ...........  " Raise the invalid date exception
    ENDIF.
    Regards
    Pinaki

  • How to catch Jbo-DML exception

    Dear Forum
    while exception throw from bc4j some particular
    type error such as (oracle.jbo.DMLException) JBO-26041
    message display.
    i want to catch error no 26041 inorder to display own
    messageBox.
    There is two methods
    1-:
    i used messageBundle class i overite message string but unable to customize size of dialogbox.
    2-:
    And i fund ,DML exception message return from JUErrorHandlerDlg class.So using this subclass how
    to catch and throw own message.
    Plase send me some code to write sub class of JUErrorHandlerDlg.

    Hello
    I also want to catch Exception if u r now able then plz send me the procedure
    [email protected]
    Thanks and Regards
    Prashant

  • How to catch List box value

    Hi gurus
    I have set list box value through vrm_set_value and in the screen level it's working fine
    In the custom  program I need to fetch data from table using that selected list box value , but  its always coming blank  .
    please help me how to catch that list box value in the program .
    Thanks

    This is the code
    *************SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS    :  P_bukrs  TYPE bukrs    OBLIGATORY  ,                        " Company Code
                     p_psc    TYPE psc_name OBLIGATORY ,
                     p_monat  TYPE MONAT    AS LISTBOX VISIBLE LENGTH 5 OBLIGATORY ,  " Quarter
                     p_gjahr  TYPE gjahr    DEFAULT sy-datum+0(4) OBLIGATORY .                        " Year
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS    : P_KIND      AS CHECKBOX USER-COMMAND abc ,                          " Check Box
                    P_prcent(6) TYPE P DECIMALS c_val_three  ,                    " Take in kind percentage
                    p_prod      TYPE PSA_PRODUCT  AS LISTBOX VISIBLE LENGTH 10  .   " Take in kind product
    SELECTION-SCREEN END   OF BLOCK b2.
         A T   S E L E C T I O N    S C R E E N                          *
    AT SELECTION-SCREEN on BLOCK b1 .
    Validate Company Codes.
      PERFORM sub_validate_com_code.
    Validate PSC
    AT SELECTION-SCREEN on VALUE-REQUEST FOR p_psc .
      PERFORM sub_validate_psc.
    Validate Quarter
      PERFORM sub_validate_quarter .
    AT SELECTION-SCREEN on BLOCK b2 .
    Validate Take in kind percentage
      PERFORM sub_validate_percnt .
    Validate Take in kind Percentage
      PERFORM sub_prod_disp .
    form sub_prod_disp .
    populated internal table lt_prod_val .
    LOOP AT SCREEN.
            CALL FUNCTION 'VRM_SET_VALUES'
              EXPORTING
                id              = 'p_prod'
                values          = lt_prod_val
              EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
            IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
          ENDLOOP.
    in start of selection the p_prod is always coming initial .

  • How to catch OutOfMemoryError?

    Hi all.
    I don't know how to catch OutOfMemoryError.
    Can anyone help me with this, please?
    Many thanks in advance.
    Miso

    In some extreme cases my application throws
    OutOfMemoryError. I want to inform the user that
    his/her RAM is not big enough to handle such big
    amount of data.
    Is this possible to do?
    thanksProbably not no.
    Because when the VM throws an OutOfMemoryError then
    it is a hurtin real bad. So creating new objects
    isn't going to help much. Well, that's a little too gloomy... Yes, you can catch the error and do something about it, as long as you keep your goals VERY modest.
    1) Catch it with "catch (Throwable)" or something more specific like "catch (Error)" or "catch (OutOfMemoryError)".
    2) If (AND ONLY IF) you catch this error high up in the application (say in main() or a Servlet method processing method (doGet(), doPost(), etc.), to of a thread or other such location, you should then might enough memory available to produce and display an error message. You might try to recover and continue (good luck, lots of issues there). You might try issuing the following in the catch clause to try and cleanup the heap before you do anything else, but there are no guarantees this will do anything:   System.gc();
       System.runFinalization();
       System.gc();Most experience Java developers avoid any such effort and instead ensure that their JVM's are configured appropriately and failing that allow the JVM to puke and die.

Maybe you are looking for

  • Warning message while posting Credit Memo.

    Hi Guru, Currently the Invoice shows a soft warning message if a same number in Reference field (XBLNR) is used to post two different inovices. the client wants the same kind of Soft message to be appeared in case of a same number is used in the Refe

  • Can't get movie to loop

    Hi. I made a slideshow in iPhoto, then shared it into iDVD. I want the slideshow to start automatically when the disk is inserted in the DVD player, and also to loop continuously, so I dropped the movie into the autoplay square in the DVD map. Somewh

  • Obligatory node 'ZMAT_SPO' missing in the structure IDOC

    Hello, Scenario is : File - IDOC I am trying to post the contents of the file into Matmas The file gets picked and shows up a red color flag with the error : :Obligatory node 'ZMAT_SPO' missing in the structure Matmas04 Matmas04 " I tried by disablin

  • Pending and refused payments

    Please help! i have been trying to buy a skype number and the payment status says pending since a week now.. and if i try to make another payment it says refused. How do i get through this? can someone please gimme a customer care direct number to ca

  • Dynamic Text Not Showing Up

    I placed the SCROLLABLE text in a Dynamic Text box, labeled the text, and set that same name as the Parameter on the UI Scrollbar. When the timeline reaches that point in the Timeline, the Scroll Bar appears, but not the text. Click on the INTRO link