Problem in substitute

Hi all,
I am facing one problem in my workflow. Please help me.
If user substitute another user  (user on the higher hierarchy) document is sending to substituted user twice for approval. ( 1 for user substitue him, another is at his level). That case user dont want twice. He needs once only.
If the user is defferent (substitute and next approve person) client wants to send two persons (one by one - normal procedure).
This case what i have to do. Give some sol
Regards,
Naresh

This is more of a question at business process level.
Short answer, don't susbstitute your manager if he/she doesn't want to approve things twice.
Another solution could be to check in your workflow if the person who previously executed the workitem is the same as the next step for approval, you can assume that it was the manager and therefor automatically approver the workitem and go to the next level.
But before you do this ask the business how many times this situation occurs, only if it s on a regular basis you should change the workflow.
Kind regards, Rob Dielemans

Similar Messages

  • Facing  a Problem in Substitute a User in PRD system

    Dear All,
    I am facing a problem in User substitution in Business Workplace(SBWP), the following problem is occurring for four different user and they are falling under Three different categories in the same system.
    Problem:
         User_1 is taken leave for two days from 05-May to 06-May, then substitute for User_1 is assigned to User_2 for these two days, but the problem is after two days also the User_2 receiving the emails. I cross verified the table 'HRUS_D2' also, the date matches 05-May to 06-May for user 'USER_1'.
    Category 1:
      In PA000-STAT2 Field for the User 'USER_1', It is showing as Inactive.
    Category 2:
      In PA000-STAT2 Field for the User 'USER_1', It is showing that the User is currently active but after 31-May, the User Withdrawn the Job.
    Category 3:
      In PA000-STAT2 Field for the User 'USER_1', It is showing that the user is currently active.
    All the above problem is occurring in Production system.

    Hi Satheesh,
    Please find the Screenshot for HRUS_D2 for the User assigned. User is active and also substitution too is in active stage.
    HRUS_D2
    Regards
    Rajkumar Narasimman

  • CRMXIF_PARTNER_SAVE problems

    Hi all,
    i have a problem with BP creation using bapi CRMXIF_PARTNER_SAVE: in a custom bapi, i use CRMXIF_PARTNER_SAVE bapi to create a BP and everything goes well !
    but, in following scenario i have a problem:
    1. substitute old BP's BUT000-BPEXT value with a costantvalue (DEL_(BUT000-BPEXT)_'n') by bapi 'BAPI_BUPA_CENTRAL_CHANGE';
    2. delete all bp's addresses by bapi 'BUPA_ADDRESS_REMOVE';
    3. make a logical deletion of old BP
    BP using 'BAPI_BUPA_CENTRAL_CHANGE';
    4. try to create a new BP with bapi CRMXIF_PARTNER_SAVE  where BPEXT value is old BP's BPEXT value: bapi's return table returns an error messages:
    bpext value is just used for another BP !
    and BP value is my old BP value !
    This happens also if i make a commit by bapi 'BAPI_TRANSACTION_COMMIT' after deletion of old BP !
    May U help me ?
    It's urgent !!!
    Kind regards,
    Francesco.

    Hi, 
    - If you change the fields in online, other fields are determined in the background as well which trigger the send to R/3: you can verify this by checking the generated bdocs to see whether they contain additional changes.
    - What happens when you enter additional changes in the XIF-function (like BP general data)? Is this data sent to R/3 ? And if it is, is the sales organization data send along with it or not?
    Michael.

  • Preview shows some text incorrectly in pdfs

    I have recently had problems viewing pdfs in Preview. This applies to new pdfs that I have downloaded as well as old ones that were already on my computer. I am a graduate student in biology, so I download and read many scientific articles as pdfs on my 2.4 GHz MacBook.
    I think the problem may have started when I did the 10.5.6 system update.
    Here's the problem:
    Preview substitutes incorrect letters or symbols for some letter combinations. It seems to have particular trouble with the letter 'f' with other letters. For example in one pdf...
    "field" becomes "Weld"
    "difficulties" becomes "diYiculties"
    "configuration" becomes "conWguration"
    "flightless" becomes "Xightless"
    "flat" becomes "Xat"
    "effective" becomes "eVective"
    In another pdf...
    "flow" becomes "£ow"
    "floral" becomes "£oral"
    "field" becomes " ¢eld"
    These errors were also present when it printed.
    And finally in another...
    "field" becomes "Æeld"
    "influence" becomes "inØuence"
    "fig" becomes "Æg"
    This happens if I view the pdf in Safari using Preview or in Preview itself (Version 4.1 (469.4)). Suggestions?

    sounds like a font problem. open Font Book and validate all fonts and resolve duplicates. also, clear Font caches using a3rd party app like Font Finagler or Onyx.

  • Workflow applet in approval preview (shopping cart) changed in SRM 5.0

    Hi,
    we have upgrade from EBP 3.0 to SRM 5.0.
    The approval preview in the shopping cart transactions (f.e. BBPSC03) now shows only the approval state (in grahpic mode), not the step description from the workflow definition.
    In EBP 3.0 was showed the step description.
    How can we change the applet output ?
    B.Rauer

    Hi
    Please specify the SRM version(Support packs) details in next reply.
    <u>Meanwhile, please go through the following SAP OSS Notes, which will definitely help -></u>
    Note 798295 BADI workflow: SRM 3.0 upgrade to 4.0 approver list -> main
    Note 748655 SC APPROVAL GRAPHIC PREVIEW NOT CORRECT FOR BADI APPROVERS
    Note 843636 PO BADI WORKFLOW does not assign correct approvers
    Note 861147 BAdI workflow: Adjusting step name to runtime
    Note 883207 BBP_WFL_DIN_APPR_BY_RULE_GET: if BAdI not implemented
    Note 713567 SRM-EBP-WFL: Limit is ignored in WS14000109
    Note 923463 BAdI n-step approval - Container inconsistent for 1st step
    Note 901068 BAdI Workflows: Enhancement of Note 896556
    Note 898768 BADI Workflow: Determining current approvers
    Note 861147 BAdI workflow: Adjusting step name to runtime
    Note 688724 BADI workflow: Problems with substitute
    Note 788584 BADI Workflow: empty WI_ID in approver table
    Note 780021 BADI Workflow: subsequent approvers after rejection
    Do let me know.
    Regards
    - Atul

  • Tomcat4: Illegal to flush within a custom tag

    I tried to deploy to Tomcat4.1.18 a jsp-struts application developed with JDeveloper 9.0.3.1, simply obtained using the "Complete Struts-Based JSP Application" Wizard.
    When I access to a page containing the
    "jbo:DataRecord" tag or the "jbo:DataTable" I get this exception in the error log file (I do not know if other tags give this same error, but for example "jbo:DataScroller" does not):
    2003-04-15 09:28:35 ApplicationModule release mode is: Stateful
    2003-04-15 09:28:36 jsp: init
    2003-04-15 09:28:37 jsp: init
    2003-04-15 09:28:37 IO Error
    java.io.IOException: Illegal to flush within a custom tag
         at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:115)
         at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:69)
         at org.apache.jsp.PazientiDateEventiViewLink1_0005fDateEventiEventiViewLink1$jsp._jspService(PazientiDateEventiViewLink1_0005fDateEventiEventiViewLink1$jsp.java:157)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1014)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:417)
         at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:390)
         at oracle.jbo.html.struts11.BC4JRequestProcessor.processActionForward(BC4JRequestProcessor.java:98)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
         at java.lang.Thread.run(Thread.java:484)
    2003-04-15 09:28:46 jsp: init
    2003-04-15 09:28:46 ApplicationModule release mode is: Stateful
    Deploying on a standalone OC4J everything works.
    Is there some configuration to add to the web.xml file or somewhere else? I tried also on Tomcat 4.0.3 with same results.
    I added this lines in web.xml to avoid the problems descripted in thread BC4J entity objects vs EJB2.0 entity beans
    <init-param>
    <param-name>enablePooling</param-name>
    <param-value>false</param-value>
    </init-param>
    Other non-struts-based webapps developed with JDev 9.0.2 and 9.0.3 were deployed correctly on Tomcat 4.1.18.
    Thanks,
    Marco.

    Hi Steve,
    I looked better at my page and it has been modified from that produced by the wizard. In fact, the problem arises substituting a DataTable tag with a RowsetIterate in which I put a DataRecord.
    Here there is a simple page which produces this error (I see the error only in the error log of Tomcat localhost_log.txt, not on the page):
    <%@ page language="java" import="oracle.jbo.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <TITLE><bean:message key="browse.title"/></TITLE>
    </head>
    <body>
    <jbo:DataTransaction appid="Test3Module" />
    <h3><bean:message key="browse.header" arg0="CategoryView1"/></h3>
    <table border="0">
    <tr>
    <td ALIGN="right"><jbo:DataScroller datasource="Test3Module.CategoryView1"/></td>
    </tr>
    <tr>
    <%-- REPLACED DataTable WITH a RowsetIterate in which I put a DataRecord --%>
    <jbo:RowsetIterate datasource="Test3Module.CategoryView1" userange="true" >
    <td>
    <jbo:DataRecord datasource="Test3Module.CategoryView1" />
    </td>
    </jbo:RowsetIterate>
    <%--
    <td><jbo:DataTable datasource="Test3Module.CategoryView1" edittarget="/edit_CategoryView1.do"/></td>
    --%>
    </tr>
    </table>
    </body>
    </html>
    In this case, it is not so hard to avoid to put in the pages such a code.
    Thanks,
    Marco.

  • Where can I download the working jdbc for JDev-10.1.2?

    Hi! I've read a lot on this forum about the bug in JDev-10.1.2 - there are errors ora-00604 and ora-12705 in establishing connection with Oracle DB by using own jdbc. The solution of this problem is substituting jdbc from previous release JDev, for example, JDev-9.0.4. Does anybody know where I can get ONLY correct jdbc-drivers from JDev-9.0.4 without downloading ALL release? This driver is not very big (I think about 4-5 MB) while the whole release is about 130 MB.

    Sanja: Hello!
    I've got a sad news - the latest jdbc (from Oracle DB 10.2.0.1.0) didn' fit, the error remained. Moreover, the earlier established connection (in 'Connection navigator') was broken - it failed 'Test' with the sooner errors. I have Oracle 9iR2 DB for Linux FC3, the kernel is 2.6.9, I don't use kde and don't remember the version of gnome, it's from the distributive. Having replaced JDev's jdbc driver by Oracle's one from DB I obtained the passing test connection between JDev and Oracle DB with success. But in ADF-applications there were the well-known errors - ora-00604 and ora-12705. My applications on OS Windows which are written with C# are working with Oracle 9iR2 on Linux without any problem. So the matter is in JDev.
    Thanks for your suggestion about user.language, country and variant. I'll try it this evening and I hope (but not very much) that it'll work.
    Any way I've got a decision - to download previous release JDev and take jdbc from there. :-/

  • Regex Expresiion for FIND

    Hi All,
    I am working on 'Regex'.
    I have a value in one variable.
    Ex: l_name = 'swapna'.
    Now i want to find this l_name in another wa value using Find of regular expressions.
    I have to use only regular expressions.
    I dont have any idea regarding regular expressions using REGEX.
    Can you please give me how to write the code for this.
    Thanks,

    Isn't it the same as the first problem - just substitute the values?  I still think you should just use "CS", per the 2nd example below.
    data:
      l_name(80)      type c value '740',
      l_wa(80)        type c value '25740678',
      l_regex(80)     type c value '(740)',
      l_match(80)     type c .
    find FIRST OCCURRENCE OF REGEX l_regex in l_name SUBMATCHES l_match IGNORING CASE.
    if sy-subrc = 0.
      write:/ l_wa,'contains ',l_match.
    endif.
    * or
    if l_wa cs l_name.
      write 'CS works!'.
    ENDIF.

  • N Step Approval BADI - BBP_WFL_APPROV_BADI

    We have implemented this BADI and are having problems with the agent determination.
    When creating and ordering the cart the approval preview shows the correct approval agents.
    When clicking the 'Agents' button within the workflow log via SWI1, the message 'No selected agents' (Message no. WL795) is shown.
    The buffers have been refreshed via SWU_OBUF and the indexes and organisational environment have been refreshed.
    Has anyone had this problem before, and if so what steps did you have to undertake to cure it ?
    Thanks
    Keith

    Hi
    <b>Please specify the SRM version(Support packs) details in next reply.</b>
    <u>Meanwhile, please go through the following SAP OSS Notes, which will definitely help -></u>
    Note 798295 BADI workflow: SRM 3.0 upgrade to 4.0 approver list -> main
    Note 748655 SC APPROVAL GRAPHIC PREVIEW NOT CORRECT FOR BADI APPROVERS
    Note 843636 PO BADI WORKFLOW does not assign correct approvers
    Note 861147 BAdI workflow: Adjusting step name to runtime
    Note 883207 BBP_WFL_DIN_APPR_BY_RULE_GET: if BAdI not implemented
    Note 713567 SRM-EBP-WFL: Limit is ignored in WS14000109
    Note 923463 BAdI n-step approval - Container inconsistent for 1st step
    Note 901068 BAdI Workflows: Enhancement of Note 896556
    Note 898768 BADI Workflow: Determining current approvers
    Note 861147 BAdI workflow: Adjusting step name to runtime
    Note 688724 BADI workflow: Problems with substitute
    Note 788584 BADI Workflow: empty WI_ID in approver table
    Note 780021 BADI Workflow: subsequent approvers after rejection
    Do let me know.
    Regards
    - Atul

  • Removing before/after spacing on h tags

    I have had h1 and h2 tags working fine (that is, with space removed before and after the tags), using this code:
    h2 {color: #000000; padding:0px; margin:0px; font-family: century gothic; font-weight:normal; font-size: 17px;}
    h1 {color: #FF0000; padding:0px; margin:0px; font-family: century gothic; font-weight:normal; font-size: 20px;}
    But when I added an h3 tag using the same code:
    h3 {color: #FF0000; padding:0px; margin:0px; font-family: century gothic; font-weight:normal; font-size: 14px;}
    normal H tag spacing re-appeared after the h3 tag.
    Code for the table following the h3 tag is as follows (in case this is somehow throwing things off):
    <table class="special" width="804" cellpadding="0" cellspacing="0" style="background-image:url(images/flag-exta.jpg )"
    Only other change I made to coding since the h1 and 2 tags were working without spacing between them was to add css coding to address a border issue, now resolved:
    table.special {border: 3px solid #999; }
    table.special td {border: none; }
    Can't see how the code in the table following the h tags or the css coding addition effects the h3 spac issue (if I delete both codes I still have the h3 space problem).
    Substituting 'display:inline;' coding for 'padding:0px; margin:0px;' doesn't make any difference either.
    Much appreciate any guidance. Thanks.

    DAVID,
    I changed the code for all the font names which included spaces as you advised (see below). This includes the "Times New Roman", font which is included as you see with other fonts in a given span class. This multi-font nomenclature was set by someone who initially developed our site many years ago. Is this multi-font span declaration legit and executed correctly: {font-family: Georgia, "Times New Roman", Times, serif; ...} ?
    Thanks again for you input.
    Bill
    span.c26
    span.c25
    span.c24
    span.c23
    span.c22
    span.c21
    span.c20
    span.c19
    span.c18
    span.c17
    span.c16
    span.c15
    span.c14
    span.c13
    span.c12
    span.c11
    span.c10 {font-family: Georgia, "Times New Roman", Times, serif}
    span.c9
    span.c8
    span.c7
    span.c6 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 90%}
    span.c5 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 50%}
    span.c4 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 60%}
    span.c3 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 80%}
    span.c2 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 70%}
    span.c1 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 80%}
    div.c17
    div.c16 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 70%}
    div.c15
    div.c14 {text-align: center}
    div.c13 {text-align: center}
    div.c12 {text-align: center}
    div.c11 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 80%; text-align: left}
    div.c10 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 80%; text-align: center}
    div.c9 {font-family: Georgia, "Times New Roman", Times, serif; font-size: 60%; text-align: center}
    div.c8
    div.c7
    div.c6
    div.c5
    div.c4
    div.c3
    div.c2
    div.c1 {text-align: center}
    table.c7 {background-color: #FFFFFF}
    table.c5 {background-color: #FFFFFF}
    table.c4 {background-color: #EEFFFF}
    h4.c3
    h4.c2
    h4.c1
    h3
    h2
    h1
    tr.c7 {background-color: #FF0000}
    tr.c6 {background-color: #FF0000}
    p.c14 {text-align: center}
    p.c3 {text-align: center}
    p.c2 {text-align: center}

  • Fetching mail from a mail server

    Hai,
    I've tried to fetch the mail from my inbox which belongs to the MODOMAIL server. I've write code for that.But iam not able to dwnload.Whenever i tried that program The following exceptions are occured.
    NORoute to host Exception : Operation timed out no Further Information
    my program is
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.mail.search.*;
    import javax.activation.*;
    //import javax.pop3.*;
    public class ReceiveMail{
    public static void main(String[] args) {
    // SUBSTITUTE YOUR ISP's POP3 SERVER HERE!!!
    String host = "www.modomail.com";
    // SUBSTITUTE YOUR USERNAME AND PASSWORD TO ACCESS E-MAIL HERE!!!
    String user = "pranavakumar";
    String password = "karuppiah";
    // SUBSTITUTE YOUR SUBJECT SUBSTRING TO SEARCH HERE!!!
    String subjectSubstringToSearch = "Test E-Mail through Java";
    // Get a session. Use a blank Properties object.
    Session session = Session.getInstance(new Properties(),null);
    try {
    // Get a Store object
    Store store = session.getStore("pop3");
    store.connect(host, user, password);
    // Get "INBOX"
    Folder fldr = store.getFolder("INBOX");
    fldr.open(Folder.READ_WRITE);
    int count = fldr.getMessageCount();
    System.out.println(count + " total messages");
    // Message numebers start at 1
    for(int i = 1; i <= count; i++) {
                                            // Get a message by its sequence number
    Message m = fldr.getMessage(i);
    // Get some headers
    Date date = m.getSentDate();
    Address [] from = m.getFrom();
    String subj = m.getSubject();
    String mimeType = m.getContentType();
    System.out.println(date + "\t" + from[0] + "\t" +
    subj + "\t" + mimeType);
    // Search for e-mails by some subject substring
    String pattern = subjectSubstringToSearch;
    SubjectTerm st = new SubjectTerm(pattern);
    // Get some message references
    Message [] found = fldr.search(st);
    System.out.println(found.length +
    " messages matched Subject pattern \"" +
    pattern + "\"");
    for (int i = 0; i < found.length; i++) {
    Message m = found;
    // Get some headers
    Date date = m.getSentDate();
    Address [] from = m.getFrom();
    String subj = m.getSubject();
    String mimeType = m.getContentType();
    System.out.println(date + "\t" + from[0] + "\t" +
    subj + "\t" + mimeType);
    Object o = m.getContent();
    if (o instanceof String) {
    System.out.println("**This is a String Message**");
    System.out.println((String)o);
    else if (o instanceof Multipart) {
    System.out.print("**This is a Multipart Message. ");
    Multipart mp = (Multipart)o;
    int count3 = mp.getCount();
    System.out.println("It has " + count3 +
    " BodyParts in it**");
    for (int j = 0; j < count3; j++) {
    // Part are numbered starting at 0
    BodyPart b = mp.getBodyPart(j);
    String mimeType2 = b.getContentType();
    System.out.println( "BodyPart " + (j + 1) +
    " is of MimeType " + mimeType);
    Object o2 = b.getContent();
    if (o2 instanceof String) {
    System.out.println("**This is a String BodyPart**");
    System.out.println((String)o2);
    else if (o2 instanceof Multipart) {
    System.out.print(
    "**This BodyPart is a nested Multipart. ");
    Multipart mp2 = (Multipart)o2;
    int count2 = mp2.getCount();
    System.out.println("It has " + count2 +
    "further BodyParts in it**");
    else if (o2 instanceof InputStream) {
    System.out.println(
    "**This is an InputStream BodyPart**");
    } //End of for
    else if (o instanceof InputStream) {
    System.out.println("**This is an InputStream message**");
    InputStream is = (InputStream)o;
    // Assumes character content (not binary images)
    int c;
    while ((c = is.read()) != -1) {
    System.out.write(c);
    // Uncomment to set "delete" flag on the message
    //m.setFlag(Flags.Flag.DELETED,true);
    } //End of for
    // "true" actually deletes flagged messages from folder
    fldr.close(true);
    store.close();
    catch (MessagingException mex) {
    // Prints all nested (chained) exceptions as well
    mex.printStackTrace();
    catch (IOException ioex) {
    ioex.printStackTrace();
    } //End of class

    NORoute to host Exception : Operation timed out no Further InformationThis means that there is no path in the network between your computer and the one you want to connect to. Sometimes this is because you misspelled the name of the server. Sometimes it is because there is no such server. Sometimes it is because there is a firewall or a proxy server blocking the path. It is never a programming problem.
    // SUBSTITUTE YOUR ISP's POP3 SERVER HERE!!!
    String host = "www.modomail.com";That is a very unlikely name for a POP3 server. First step is to confirm it is actually the name of the server you want to connect to. (Ask the administrator of the server.) If it is, next step is to fix your network configuration problem. (Ask the network administrator.)

  • If numbers are null

    Hi Friends,
    We are migrating our forms application from 6i to 10g and we have some issues here.The one is ,if numbers are null we have handled that as mentioned below
    IF NVL(l_numb1,' ') = NVL(l_numb2,' ')
    THEN
    ELSE
    END IF;
    This works fine in 6i , when migrated to 10g it shows error.
    But when both the values are VARCHAR2 then no problem.
    So I need to handle this in the entire application.I think the only problem
    is substituting space(' ') for NUMBER variables.
    Do I have any other alternative for this.
    Note : It should work for both VARHCAR2 and NUMBER variables.
    Regards
    Marlon

    I use for this case selfwritten Equal- and NotEqual-Functions.
    IF pkg.Equal (Value1, Value2) THEN
    END IF;
    IF pkg.NotEqual (Value1, Value2) THEN
    END IF;
    here is the code :
    FUNCTION Equal (P_Wert1  IN VARCHAR2,
                     P_Wert2  IN VARCHAR2) RETURN BOOLEAN IS
    BEGIN
      IF P_Wert1 = P_Wert2
      OR (P_Wert1 IS NULL AND P_Wert2 IS NULL) THEN
        RETURN (TRUE);
      ELSE
        RETURN (FALSE);
      END IF;
    END;or read the full article in my blog:
    http://talk2gerd.blogspot.com/2006/12/equal-and-notequal.html

  • MB Serial Slave Demon & Box dialog

    Hi,
    I didn't get an answer on the french forum. I try here.
    I have a problem with the "MB Serial Slave Demon vi" (NI MODBUS). In fact, when I open a dialog box (file or message) in a loop parallel to "MB Serial Slave Demon.vi", the "MB Serial Slave Demon.vi"stop communication with the Master (read / write registers). The problem is that the ExecVI method (sorry i have french version) in "MB Serial Call Wait on Query.vi" (see picture below) does not give the hand until the dialog box is displayed. Why?:
    Attached  "MB Serial Example Slave.vi" example modified, i added in the event structure an Add button to see the problem. This example can be tested with "MB Serial Exemple Master.vi".
    Any idea?
    Thank you
    Reg
    Solved!
    Go to Solution.
    Attachments:
    MB Serial Example Slave 2.vi ‏51 KB

    I don't understand why the method does not give the hand. But, to solve the problem, I substituted "MB Serial Call Wait on Query.vi" by  "MB Serial Wait on Query.vi".
    Reg

  • Which Mac Mini Configuration Recommended for Leopard??

    I'm about to purchase a new Mini to replace my (beautiful!) G4 Cubes, and would appreciate any comments/recommendations on which configuration to order. I'm planning to get the upgraded 2GB of memory (more is always better!, and my guess would be that the 2.0 GHz processor with a 120 GB HD + SuperDrive should be a nice ticket - or would you recommend a bigger HD? (I don't do intensive graphics or any gaming, but I want to be able to run OS X and MS Windows simultaneously (with Parallels?).
    Also... I currently have 2 G4 Cubes networked to run on a single DSL service using a FriendlyNet Ethernet Hub and 2Wire modem. Any problems simply substituting the Mac Mini for one of the Cubes in this network?
    Final question, please: With Leopard plus Parallels on the new Mini, what is the minimum Microsoft package I would need to buy in order to open and work with basic Excel, PPS, and Word documents?
    With your comments/recommendations, I'm ready to add my contribution to Apple's gross and net income for the current quarter!!..... Thanks!... CaptDenny

    Welcome to Apple Discussions!
    The requirements for Leopard are sufficiently low that even an old Mac mini should run it well, let alone one of the new Core 2 Duo models. As such, the 2.0 model with 2Gb RAM should be more than adequate. Leopard's only notably heavier demand is drive space, now requiring close to 10Gb. Clearly the 120Gb drive standard in the 2.0 model would be adequate to that task, plus allow for use of Windows also. As such, a larger internal drive wouldn't really be recommended, though you may wish to consider adding a good sized external, preferably a firewire connected drive, for extra storage and backup.
    Where running Windows is concerned, Leopard comes with BootCamp, so you could use that as opposed to Parallels. The downside is that while BootCamp is free, it doesn't permit the running of MacOS and Windows side by side. At boot, you have to select one or the other. If that meets your needs, then it's a better bet in many ways, since it allows the entire system, memory and processor to be dedicated to whichever OS you need at any given time, rather than shared.
    On the other hand, if you need or want to run both MacOS and Windows simultaneously, and switch between them, Parallels is the option that would allow that, though both MacOS and Windows will suffer in terms of absolute performance since RAM and CPU are shared between them.
    You should have no problem substituting a new mini into your home network using the same setup as you presently have on the soon to be retired Cube.
    To run Excel, PowerPoint and Word, you'll need a copy of MS Office. The current version for Mac is still 2004, which is not Intel native. The updated version to closely match MS Office 2007 for Windows will not be out for Mac until 2008. If you buy a copy of MS Office 2004 for Mac however, you'll get an upgrade to the new version when it is released. Upgrading at that point would be advised since while the current version is not Intel native, the new version due is. If you are a student or teacher, you will qualify for the Academic version at around $150, otherwise it's a little expensive $400 list price.

  • I just checked my question & I've been up to long. Can't spell this morning. (Version)

    Any thoughts?

    The message that you received is a sign that you need to delete the backup again. I copied this from a thread that I posted in yesterday and the OP was able to use the instructions to solve the problem.
    Substitute PC anywhere that you see a reference to a Mac.
    +This is copied form another thread. Here is the thread. The instructions in parenthesis are my instructions. The point is that you have to delete your backup.
    https://discussions.apple.com/thread/2692111?start=0&tstart=0
    Launch iTunes with your iPad connected to your Mac. Make sure the iPad is listed under Devices on the left side of the iTunes window.
    From your iTunes menu bar click iTunes / Preferences then select the Devices tab.
    If there is more then one backup available, delete all but one. (If you only have one backup delete it.)
    Restart your iPad. Press and hold the Sleep/Wake button until the red slider appears. Slide your finger across the slider to turn off iPad. To turn iPad back on, press and hold the Sleep/Wake until the Apple logo appears.
    Restart your Mac.
    Try to sync now.
    If that doesn't work, try deleting the iPod Photo Cache Folder. Instructions can be found here.
    http://support.apple.com/kb/ts1314
    Restart iTunes, your Mac and the iPad and try to sync again.+

Maybe you are looking for

  • IWeb not showing all my published Photo Galleries for Widget insertion

    I have published a page created in iWeb to my mobileme account Today I went to edit it and add a Widget - Mobile Me Gallery It only shows 3 of the 4 galleries and of course the one I want to insert is the one not showing All galleries are published w

  • Howto add adiuo track to video in Compressor

    I exported video from Final Cut to Compressor for burning on DVD, after I deleted source files in FCP. Now I have 2 separate files with video and audio, how can I convert them to one file for iPod? If I add both files to Compressor it creates two sep

  • Cant Attach Adobe Reader 8.1.2 PDf to Outlook

    I have installed the latest version with updates of adobe reader. When I try to attach certain PDF I get a Cant create file: (The file I want to attach and then says right click folder and check access writes. I have access As I can attach pdf, word

  • May I know how to prevent my iPhone from using data? [I've tried fake APN]

    Greetings. I'd like to see the help of the community, for this problem has persisted for a month plus. Being unable to use my prepaid credit and having it deducted for no reason can be a little frustrating. So here's what I've done so far. 1. I've up

  • Trying to download premiere elements 12

    I had no trouble downloading photoshop elements 12, It installed correctly, but for premiere elements 12 all I got was 2 zip files:      PremiereElements_12_WWEFDJ_win32  and PremiereElements_12_WWEFDJ_win64 but nothing else happened.   How do I inst