User I/O Problems

Hello! I'm new to Java, but I've been usign C++ for a good long while now. Anyway. I'm writing a program for a professor that Asks the user for a letter and outputs the corresponding number on the telephone. This is to be nested inside a while-loop that allows the user to quit anytime they'd like. My problem is that when I run the program it accepts the letter from the user for translation into the telephone number, but with I try to get the user to enter 'y' or 'n' to quit the loop the program doesn't stop to query the user! My code is as follows:
import java.io.*;
public class Hwk1
     public static int translate(char c)
          int x;
          switch(c)
     case 'a': case 'b': case 'c': case 'A': case 'B': case 'C': x=2;
                    break;
     case 'd': case 'e': case 'f': case 'D': case 'E': case 'F': x=3;
                    break;
     case 'g': case 'h': case 'i': case 'G': case 'H': case 'I': x=4;
                    break;
     case 'j': case 'k': case 'l': case 'J': case 'K': case 'L': x=5;
                    break;
     case 'm': case 'n': case 'o': case 'M': case 'N': case 'O': x=6;
                    break;
     case 'p': case 'r': case 's': case 'P': case 'R': case 'S': x=7;
                    break;
     case 't': case 'u': case 'v': case 'T': case 'U': case 'V': x=8;
                    break;
     case 'w': case 'x': case 'y': case 'W': case 'X': case 'Y': x=9;
                    break;
               default: x=-1;
                    break;
          return x;
     public static void main(String[] args) throws IOException
          int c,d;
          char run='y';
          while(run=='y'||run=='Y')
               System.out.println("Enter a single letter:");
               c=System.in.read();
               d=translate((char)c);
          if(d!=-1)
System.out.println("The letter "+(char)c+" is
the number "+d+" on the telephone.");
          else
               System.out.println("The letter "+(char)c+" does
not correspond to a number on"+                               "the telephone.");
               System.out.println("Would you like to translate
another letter? (y/n)");
               run=System.in.read();
          System.out.println("Good Bye");
Sorry about the formatting problems, but the line of code I'm having problems with is run=System.in.read(); The second to the last line in the code. Thank you for all your help!!!

Unlike the case of C or C++, you should use the
java.io.InputStreamReader or BufferedReader for
iterating System.in.
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
br.close();
Agreed. Otherwise both the letter you type, and the return key are both considered chars and the program gets confused. This is what your main method should look like:
  public static void main(String[] args) throws IOException {
    String c, run="y";
    int d;
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    while(run.toLowerCase().equals("y")) {
      System.out.print("Enter a single letter:");
      c=br.readLine();
      d=translate(c.charAt(0));
      if(d!=-1) {
        System.out.println("The letter "+c+" is the number "+d+" on the telephone.");
      } else {
        System.out.println("The letter "+c+" does not correspond to a number on"+ "the telephone.");
      System.out.println("Would you like to translate another letter? (y/n)");
      run=br.readLine();
    br.close();
    System.out.println("Good Bye");

Similar Messages

  • No portal roles are assigned for this user.If this problem persists, contac

    I am trying to access portal first time using j2ee_admin user. It is saying "No portal roles are assigned for this user.If this problem persists, contact your system administrator."
    iam using abap+java enginee how config in abap enginne ,iwant which role to assign  j2ee_admin  user
    i already asiigned sap_j2ee_admin,SAP_BC_JSF_COMMUNICATION,SAP_BC_JSF_COMMUNICATION_RO   but it show same problem
    please help me..
    Edited by: Mugala Balu on Aug 7, 2010 5:53 PM
    Edited by: Mugala Balu on Aug 8, 2010 7:48 AM

    Balu,
    Well this issue has been discussed many a times in forums. You would have to point your data source to ABAP system.
    Check this thread in [here|J2EE Failed to start  , after changing UME datasource;.
    Good Luck!
    Sandeep Tudumu

  • User Account Control Problems with Premier Elements 7 32 bit in 64 Bit Windows 7

    I found User Account Control Problems in other forums but didn't see much in Premiere Elements, so I hope this helps others who may be having problems with 32 bit programs in a 64 bit computor. When I first got my 64 bit I didn't have problems.
    Back in February I bought a Quad Core Desktop with Windows 7 64 bit. Haven't been on the forum for 7 months since I wrote in regarding importing video with the Pyro AV Link (Premiere Elements Tips and Tricks). I was having problems importing video which started after March 28 sometime, as that was the last time I didn't have a problem importing VHS. Took me a few months off and on to find out what worked.
    I started uninstalling Windows updates and any programs I had installed back to that point in time. Checked after uninstalling each item. The capture screen would come up on a delayed basis but clicking on capture did nothing. Although no driver is required for IE1394 (so they say) I read where some people using the Legacy driver had fixed some problems, so I switched to the Legacy. Seemed to work great (for a few minutes).
    I had even uninstalled and reinstalled PE7 but no difference. Finally I noticed a shield in the PE7 Desktop icon. Thats weird. Never had that before. Just decided to show up after I had done all of the stuff I mentioned. Turns out at some point in time since I've had the computor Windows 7 decided to flag my 32 bit program as misusing the 64 bit system. User Account Control. I never bothered too much with UAC and just clicked on the yes box wen it popped up asking if I wanted this or that to take control of my computor. I tried using the minimum setting for safety reasons, and then finally turned User Account Control off. Bingo! PE7 capture works again and still working.
    While I am not recommending that people arbitrarily turn UAC off, this appeared to be my problem. I would recommed that they try turning it off before uninstallin a bunch of stuff. Having a restore point may or may not have been a fix for me. I think one of the Windows Updates caused the problem but I am not going to uninstall any more stuff at this point, I have not been back on the internet or installed any more updates in my desktop. I am going to use my laptop for internet and used the desktop for video.
    I am guessing this could be a problem for any 64 bit systems trying to use 32 bit programs. IE: XP,Vista,Windows 7 64 bit. In Vista there is also Data Execution Prevention (DEP) which you can turn on or off, supposedly to prevent misuse of memory (as I understand it), but Win7 either doesn't have it or I haven't found where it's located.
    Maybe this has been covered in the forum somewhere and I missed reading it. Hope I am not too confusing. Anyway, whatever feedback you guys have would be great.  

    John,
        Thanks for your answer, and I did check out the link you suggested. However, I have Windows 7 Home Premium as most people have I think, and the XP program was not available. I started with Vista and now have Win 7. I never could navigate around in XP anyway so am content to just leave User Account Control off.
        Interesting side note to turning UAC off is that my desktop seemed to be using more of the CPUs, where half of them were "Parked" as I wrote in also about 7 months ago when I 1st got my desktop. I am pleased to say that video processing seems to go quicker with UAC off. Have to observe things some more to confirm.
        I just thought if others were having problems after installing Windows Updates and leaving UAC off worked then they could possibly pinpoint a problem.

  • Adobe aftereffects is not working on os x maverics all updates...... is dis soft. will work on the new os x yosemite.??  y apple is nt working on dis problem wen users are facing problems with new os x .....

    Adobe aftereffects is not working on os x maverics all updates...... is dis soft. will work on the new os x yosemite.??  y apple is nt working on dis problem wen users are facing problems with new os x .....

    I suggest you contact Adobe tech support or their Mac forums for assistance.

  • Beta user: The only problem I've ever had is still there. Scanning a page suddenly develops a mind of its own.

    Beta user and only problem I've ever had is still there in 3.6.7. Scanning a page develops a mind of its own. Suddenly shoots to top or bottom. Never happens in Explorer.
    == This happened ==
    Every time Firefox opened
    == Beta

    You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing]: press F7 to toggle
    See http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    Tools > Options > Advanced : General: Accessibility: [[ ] "Always use the cursor keys to navigate within pages"
    In Firefox 3.6 and later versions you can disable the F7 shortcut that toggles caret browsing by setting the pref accessibility.browsewithcaret_shortcut.enabled to false.

  • RE: (forte-users) Debugging 'fixes' problem!!!

    Duncan
    This is often indicative of a race condition, especially when
    multi-threading is involved.
    What can happen is that task A is using something created or initialized by
    task B,
    and task B hasn't gotten around to doing its thing before task A asks for
    it.
    When running in debug mode, you give everything a lot more time to get
    things
    done while it's waiting for you to click the next button. So, when task A
    starts task B,
    you click Run on task B, watch it happen, go back to task A and click,
    watch, click, etc.,
    and by the time you get to the trouble spot, task B has long since done what
    it had to do.
    HTH.
    Ken.
    ==========================
    Ken Gacioch
    Senior Consultant
    Caro Systems, Inc.
    [email protected]
    -----Original Message-----
    From: Duncan Kinnear [SMTP:[email protected]]
    Sent: Sunday, November 21, 1999 11:33 PM
    To: [email protected]
    Subject: (forte-users) Debugging 'fixes' problem!!!
    Hi folks,
    I've got a weird one here.
    I'm trying to find out why my code to highlight a particular outline field
    row does not work.
    However, when I run it in debug, it works perfectly! (The correct row is
    highlighted). Anybody got any idea how I can get debug to behave
    consistently with "The running man"?
    I have tried using "<OutlineField>.UpdateFieldFromData()" as well as
    using the same method on the specific DisplayNode involved.
    I must point out that the outline field is in a window running as a
    separate asynchronous task. Would that make any difference when
    running in debug? When the second debug window appears for this
    task I just click on the "Go" button and there are no breakpoints.
    Any help would be greatly appreciated.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email:
    [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834
    3369

    Duncan
    This is often indicative of a race condition, especially when
    multi-threading is involved.
    What can happen is that task A is using something created or initialized by
    task B,
    and task B hasn't gotten around to doing its thing before task A asks for
    it.
    When running in debug mode, you give everything a lot more time to get
    things
    done while it's waiting for you to click the next button. So, when task A
    starts task B,
    you click Run on task B, watch it happen, go back to task A and click,
    watch, click, etc.,
    and by the time you get to the trouble spot, task B has long since done what
    it had to do.
    HTH.
    Ken.
    ==========================
    Ken Gacioch
    Senior Consultant
    Caro Systems, Inc.
    [email protected]
    -----Original Message-----
    From: Duncan Kinnear [SMTP:[email protected]]
    Sent: Sunday, November 21, 1999 11:33 PM
    To: [email protected]
    Subject: (forte-users) Debugging 'fixes' problem!!!
    Hi folks,
    I've got a weird one here.
    I'm trying to find out why my code to highlight a particular outline field
    row does not work.
    However, when I run it in debug, it works perfectly! (The correct row is
    highlighted). Anybody got any idea how I can get debug to behave
    consistently with "The running man"?
    I have tried using "<OutlineField>.UpdateFieldFromData()" as well as
    using the same method on the specific DisplayNode involved.
    I must point out that the outline field is in a window running as a
    separate asynchronous task. Would that make any difference when
    running in debug? When the second debug window appears for this
    task I just click on the "Go" button and there are no breakpoints.
    Any help would be greatly appreciated.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email:
    [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834
    3369

  • Are there any other left eye dominant (or left handed) iPhone users that experience problems with the touch screen keyboard selecting the letter next to the one you'd intended..?

    Are there any other left eye dominant (or left handed) iPhone users that experience problems with the touch screen keyboard selecting the letter next to the one you'd intended..?

    It's either hand right or left.
    I have the same issue myself.  Not sure if it's b/c my fingers are too big or if I'm really missed the letter on the keyboard.

  • I can't safe reboot if I choose my user account, no problem with the rest or user's accounts

    Hi to all,
    Since I've installed ML and also after 10.8.1 upgrade, my account is behaving very strangely.
    It does seem to work, but every time I restart in my account, it takes ages and starts up app I've already closed (as if it was frozen when restarted), I get Toast 10, Disk Utility, App Store, Safari, Mail and Photoshop. Slowly, very slowly, in this order. I had improved, as I had some reboots with the Mountain Lion installer asking to instal Mac OS X!
    Oddly enought, that first times Finder didn't show when I pressed Cmd-Tab for changing applications, it would show only if I clicked on the Desktop.
    I did a clean install of ML and imported from Time Machine. I also did a "upgrade install", that is, over what I had (already ML).
    I can't restart or close down unless I do it on the cold way, that is, pressing the power butto, as I can get no shutdown dialog, and if I choose from the Apple Menu, no matter what I choose, nothing seems to happen. Same when I choose "About this Mac", nothing happens, I have to manually open System Profiler.
    But, in contrast, I can open from the Apple Menu App Store with no problems, for example.
    Now I reboot and shutdown my Mac thanks to the Terminal!
    Another "minor" inconvenient is that my Mail Rules weren't imported, and I don't know how to pass them to the new Mail, so all my Mail lies there in the "Inbox" unclassificated
    If I go to a different user, then everything works apparently. So it must be something I have added, but it can be something installed many System versions before, so I have no idea on how to track it down, although I've deleted many old applications and preferences, including some problematic Fonts, Perian, etc.
    I tried safe boot, but when I enter in my user, screen turns light gray and it doesn't start anything, so I have to force a cold shutdown again with the power button and restart again.
    Safe boot with a different account has no problem again.
    Sorry for the looong explanation, but, although I can work in my user, I'm worried as my work slows down a lot.
    Thanks in advance to any help you can give me!

    Sorry for the delay...
    I did what you've told me, new account and manually copied my files from Time Machine. I had lots of permissions problems, but at the end, almost everything is in order... It seems it had to be with some of the Apple Preferences, but I can't be sure, as most of them were dumped to the trash can.
    I still don't have my Mail Rules back, unfortunately, although I did goggled some. It is a pity, as I had around 30 or 40 of them, getting my mail in order to each of its mailboxes, but it is a small price as the rest doesn't show the before syntoms.
    Thanks for the help, anyway!!

  • Migrated User Account Keyboard Problem AFTER Login

    I have a brand-new MacBookPro (with multi-touch trackpad) that came with Leopard preinstalled. When I first started up the new computer, I set up a new administrator user account first. Then I used Migration Assistant to migrate my primary user account from my PowerBook G4, which is running the latest version of Tiger. I can log into my old user account with the same password I have always used, and everything looks fine--my old desktop is there, my Mail, iCal and iTunes settings all look great, etc.--but I can't use the keyboard. I can use the mouse to click on menus; the keys for the volume and backlight controls work, and some of the keys on the right side of the keyboard work (which seems particularly weird), but I can't do anything else with the keyboard. When I log out of the account and try to go back to the new admin account, the keyboard no longer works at all until I reboot. If I go directly into the new admin account, the keyboard is fine; it only starts locking up AFTER I log into my old user account. I have not had any keyboard problems with any other user accounts that I have created from scratch on the MacBookPro, nor have I had problems with the other user accounts I migrated from the PowerBook. After consulting with an Apple rep on the phone, I have tried the following things:
    1. deleting my migrated keychain file on the problem user account and letting it make a new login keychain;
    2. deleting the original default keychain on the PowerBook and re-running the Migration Assistant;
    3. deleting the problem user on the MacBookPro using the option of creating a disk image, and then creating an empty file in the Users folder with the same name as the problem user account and then dragging the files from the disk image into the folder, and then creating a new version of the user account with the same name, password, etc.;
    4. running Disk Utility to fix permissions (multiple times);
    5. I have completely erased and reinstalled the system on the MacBookPro using the install DVDs twice. The first time, I ran Migration Assistant immediately after the "Welcome," and the second time I set up a new administrator account first and then ran Migration Assistant.
    6. I have also tried the steps outlined in this article: http://docs.info.apple.com/article.html?artnum=306840.
    7. I have tried moving my user files over by hand but then I have a ton of permission problems and I was having trouble getting my Mail settings/mailboxes to move over properly. I've spent hours and hours on this.
    I have NEVER had so much trouble upgrading to a new computer or a new OS in all the years I've owned Macs! What am I missing???

    Well...I'm not sure which of the following fixed my problem, but once I realized it was something to do with the numeric keypad keys, I went into both the Keyboard & Mouse preferences and the Universal Access preferences and I made sure that I set everything back to the default settings. I suspect that going to Keyboard&Mouse-->Keyboard Shortcuts and clicking on "Restore Defaults" is what did the trick. So far, so good. I hope this helps somebody else; I couldn't find anything else anywhere about this somewhat quirky problem.

  • Multiple Users/Logging In Problem

    Using Multiple Users I added a second user to our iMac DV400 (blueberry, slot loading) running OS9.2.1. The problem: now we can only log on to the second user's desktop and can't access the primary user's desktop. Since the second user is set up with limited user privileges, we can't access the system programs; most importantly, the Multiple Users program so that we can revert this problem by deleting the second user from the system. Can anyone offer some help?
    Thanks

    Welcome to Apple Discussions pd,
    Start from your Mac OS installer CD (insert it and hold the c key, release the key when you see the "Welome To Macintosh" message)
    Open your hard drive and locate the System folder. Open that and locate the Preferences folder. From that folder, delete the three preference files and one folder with "Multi User" in their names.
    Restart as normal and empty the trash. You will have to re-create the user accounts.

  • Me23n user exit dynpro problem

    Hello Everybody,
    I'm developing a user exit for me23n transaction. I have added a tab in which i have some fields i want to fill, but i'm having the next problem.
    when i enter in the me23n transaction,  i push the edit button and those fields appear on editable state, but when i modify the values and push save the fields the fields continue in editable state.
    I have tried to solve this problem in the catching the MESAVE action in the pai of the me22 and calling leaving to the transaction me23 with the vnew values but it's not working. Any ideas?
    Here is the source code ( dynpro 111)
    process after input.
      field ekpo_ci-zzref_alb.
      field ekpo_ci-ZZFECH_DES.
      field ekpo_ci-zzeqveh.
      field ekpo_ci-zzmatricula.
      field ekpo_ci-zzeqtar.
      field ekpo_ci-zztarjeta.
      field ekpo_ci-ZZCENTRO_SER.
      field ekpo_ci-ZZREF_FACT.
      field ekpo_ci-ZZCLIENTE.
      field ekpo_ci-ZZPAIS.
      field ekpo_ci-zzdoc.
    module user_command_0111.
    module USER_COMMAND_0111 input.
    if sy-tcode = 'ME23N' and sy-ucomm = 'METOGG'.
    leave to transaction 'ME22N'.
    endif.
    if sy-tcode = 'ME22N' and sy-ucomm = 'METOGG'.
      leave to transaction 'ME23N'.
    endif.
    if sy-tcode = 'ME22N' and sy-ucomm = 'MESAVE'.
    sy-ucomm = 'METOGG'.
      leave to transaction 'ME23N'.
    endif.
    Thanx

    Hi,
    Check the code below:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    id = '0001'
    language = sy-langu
    name = sname "sales doc is given here
    object = 'VBBK'
    TABLES
    lines = tlines.
    if not tlines is initial.
    LOOP AT tlines.
    CASE sy-tabix.
    WHEN 1.
    ztable-field1 = tlines-tdline.
    WHEN 2.
    ztable-field2 = tlines-tdline.
    WHEN 3.
    ztable-field3 = tlines-tdline.
    ENDLOOP.
    UPDATE ztable SET field1= ztable-field1
    field2= ztable-field2
    field3 = ztable-field3
    WHERE vbeln = vbak-vbeln.
    ENDIF.
    endif.
    Regards
    Kannaiah

  • User  exit  needed (Problem related to duplicate batch entry in Migo(GR))

    Dear all,
                  I need a help from you.we facing problem in Goods receipt in MIGO.
    where we want to apply a check on batch which has already been assigned to a raw material in MIGO  .we are using manual
    batch entry .we don't want to make duplicate entry of same batch
    against any material.
    I tried to find out the user exit for that but i have not succeed .
    what is solution to
    avoid duplicate batch entry.

    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • User Exit related problem

    I have created one user exit for transaction CO02 .We acn navigate on different screens . My user exit works when you click on save button .
    But now problem is when you click on save button of on different screen first time it wont work . But if you go to main screen of CO02 and return back to other screen it works what may be the reason .
    thank you in advance .

    hi ragha,
    it is because the exit u used is allocated for a particular transaction..
    check it in SMOD .. give the exit name to see the documentation..
    thats the reason it doesn't work in the other screens..
    <b>reward if useful..</b>
    Message was edited by: Ashok Kumar Prithiviraj

  • Generating a new table based on user choices - Code Problems

    A while ago someone posted on one of the Adobe forums the following code (sorry I do not remember the name / link). This code is meant to generate a second table (an Object list in this case) according to the user’s choices at another table (in this case a dropdown list):
    form1.TableA.TableTitles.Row1.DropDownList1::change - (JavaScript, client)
    var str_itemtext = xfa.event.newText;
    var olist2 = xfa.resolveNode("form1.TableA.TableTitles.Row2.ListBox2");
    var arrayADVS = new Array("Acad", "Disp", "Advs");
    var arrayCD = new Array("Proj-", "HRS");
    if (str_itemtext == "ADVS") {
    makelist(olist2, arrayADVS);
    olist2.presence = "visible";
    else if (str_itemtext == "CD"){
    makelist(olist2, arrayCD);
    olist2.presence = "visible";
    function makelist(olist, arrayitem) {
    var i = 0;
    olist.clearItems();
    for (i = 0; i < arrayitem.length; i ++){
    olist.addItem(arrayitem[i], arrayitem[i]);
    I made a couple of minor changes but generally preserved the original code and it seemed to work fine. The problem arises after the completed form is saved:- the “object list” (second table) disappears even though I set it as visible. I tried changing the Type (from user entered required to read only) but to no avail.
    Could someone please help me figure out what is wrong with this code? Why does this Object List object disappears after the form is saved?
    Thanks.

    If you could post the form or send a copy to [email protected] I would be happy to take a look, otherwise, it is hard to diagnose.
    Steve

  • Urgen: SRM and BW user data Synchronization problem

    Dear Buddies:
    I'm a BWer in a SRM project. These days I meet a very strange problem in the user data Synchronization configuration between SUS and BW system.
    The symptom is:
    I config the user data Synchronization parameters in SUS system:
    SAP Reference IMG u2192 Supplier Relationship Management u2192 Supplier Self-Services u2192 Master Data u2192 Maintain Systems for Synchronization of User Data
    Here I've maintained the BW logical system and filled the 'FM BPID' field with 'RS_BW_BCT_SRM_SUS_USER_BPID', and filled the 'Function Module for creating user' field with 'BAPI_USER_CREATE'.
    The function of the config above is that:
    When a new user is created in the SAP SUS system, it will automatically be created in SAP BW, too.
    At the same time, an internal table (SRM_USER_SUPBPID) is filled automatically. The table contains the assignment between the automatically created SAP BW user and the corresponding Business Partner ID of the supplier company.
    Then I test the user creation in SUS on web. I found that when the SUS user created , the same user is created automatically in BW system. That means the 'BAPI_USER_CREATE' is work.
    But the content of the user-BPID mapping table 'SRM_USER_SUPBPID' is still empty. That means the  FM 'RS_BW_BCT_SRM_SUS_USER_BPID' is not work at all.
    Anybody met with similar problem? Or any suggestion do you have pls kindly show your solutions, Thanks!!

    No solutions?  I need your support my friends.

  • Urgent....please HELP....Different user Multiple submission problem

    Hi all:
    This is a STRUTS related problem
    I have posted earlier about the usage of saveToken() and check isTokenValid(request) method. Because I wanted to make sure that the user doesn't click the "submit" button twice. I managed to achieve that, However what I want is the following:
    suppose the user press the "submit" button more than once. The thread that executes the first request still runs, but has no means of providing its response to the browser. Hence, the user may be left with the impression that the transaction did not complete, while in reality, it may have successfully completed.
    So I would like to know if there can be a complete solution that prevents duplicate submission and still ensures the display of a response that represents the original request's outcome.
    some of you may suggest me to look at the article on JavaWorld
    http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
    I have indeed, and downloaded their example and I ran it on my local app server, it DOESN"T claim to do what it is supposed to do, I clicke on the "OK" button more than once, and the second request just brings me to an empty page, because the ActionForward object returns NULL.
    So if anyone, has solved this problem before, please do let me know...
    I'd truly appreciate it...
    Again, I would like to thank everyone for their time in advance.
    Many thanks....

    The solution on that site looks pretty good in theory.
    What did you do to implement it?
    Did you return a forward page from your executeSynchro method which you overrode to implement it?

Maybe you are looking for

  • Issues in looking up a ejb deployed on glassfish from tomcat.

    Hi all, I have followed the steps mentioned in the EJB FAQ in the glassfish site and was able to lookup a remote ejb deployed in glassfish from a standalone client. In case of standalone client, i set the appropriate jndi properties in the initial co

  • HT5167 Finder, Mail and other apps crash since updating to Lion 10.7.4. My 2009 Macbook pro now unuseable. Am I alone?

    I obediently clicked okay when Appple software update urged me to upgrade to Lion 10.7.4. No problems with my 2010 mac mini. But every time I boot up my late 2008 macbook pro and proceed to open an app (a Finder window, or Mail, plus others) a messag

  • Curve issues driving me crazy!!

    Ok, so I bought my BB Curve in January, and at first I loved it! A few days ago though it began going crazy.  Everytime I try to open something I get that annoying clock thing, and then once I finally get the program open, it stays.  This happens dur

  • Good for the skid rest their house is good for

    good for the skid rest their house is good for our ears inner hours so you might want to look into I'll Leif you're someone who doesn't want to go to the medical grade skin care line at you Finesse Face Serum with much rather have medium and lime pri

  • No Closed Captioning support in QT 10.3?

    Hi, I'm on Mavericks with a 3 year old iMac. A friend sent me a closed-captioned Quicktime MOV file, which displays the CC text on his Snow Leopard with QT 10. Absolutely no options for that on my Mavericks' QT 10.3. And then the Apple "help" site gi