Need help in Conversion

Hi,
Iam doing a report on enhancement,
when i use teh code below for the conversion its giving an error
To convert GUID in the unicode format
            <b>DEFINE move_casting.
              assign &1 to <unicode_x1> casting.
              assign &2 to <unicode_x2> casting.
              move <unicode_x1> to <unicode_x2>.
            END-OF-DEFINITION.</b>
            move_casting gt_guid gt_guid_new.
fetch the roleid with respect to the guid
           <b> select objkey roleid
            from srrelroles
            into corresponding fields of table gt_roleid
            for all entries in gt_guid_new
            where objkey = gt_guid_new-guid
            and objtype  = c_objtype.</b>
Its giving an error saying that
<b>" gt_guid_new-guid and OBJKEY is not mutually convertible in a unicode program.... "</b>
and one more question is whether the move casting is possible with the internal tables because previously i  used the same casting for work area but now its showing an error when i used it for internal tables.

Hi
Try FM <b>SCMS_BINARY_TO_STRING</b>
Refer this thread Convert RAW 1022 to CHAR 255
Also, check this class  CL_ABAP_CHAR_UTILITIES
Refer:
Can nyone describe attributes of class CL_ABAP_CHAR_UTILITIES
Regards
Raj
Message was edited by:
        Rajasekhar Dinavahi

Similar Messages

  • Need help for Conversion Function in Oracle

    Hi, Can Any One help me Please.
    I need a Oracle conversion script for converting from decimal to hex. and decimal to datetime.
    Thanks In Advance.

    Hi,
    for the Hex-Number-conversion see:
    [url http://psoug.org/snippet/Convert-Hex-to-Decimal-Decimal-to-Hex_78.htm] self-defined Conversion-Functions
    What number format do you have? YYYMMDD
    Or is there a Date corresponding to 1 and a number n represent the date n-1 days after day 1?
    Please describe further.
    Bye
    stratmo

  • Need help on conversion

    hi friends
    Ive a sqlserver query to be converted into pl/sql, I cant understand it . Can any one please convert this query
    = STUFF(securityname, (CHARINDEX(',',s_name,1)), 1, ' ')
    FROM Report Where (CHARINDEX(',',s_name,1)) > 0
    this is an update statement
    thanks
    :)

    need help on conversion

  • Need help with conversion progrma for MTS video files.  Can't download videos from Sony TX-10 camera

    Have new macbook pro 13".  Can't download videos from our Sony TX-10 camera.  I understand I need some kind of conversion program for MTS video files.  Need recommendation for a good conversion program to convert the video files.
    Thanks, chieftd

    Well, sigh, that's not going to work.
    I love how I can do months of research to choose the best camera for my needs and budget, which is NO easy task these days, but surprisingly find it on the unsupported list when it's a very popular camera.  So, while it seems to support a whole bunch of other AVCHD options from Sony, not the NEX cameras.
    The NEX cameras are the latest generation of mirrorless cameras (which, ironically, are great b/c they give dSLR quality still images while actually producing HD video that always records silently and stays in focus b/c it's mirrorless).  The NEX 7 was just reviewed as Camera of the Year.
    Bleh. Oh well. Maybe someday.
    And, for anyone reading, Roxio Toast Titanium did convert it just fine but it took about 20 min or my time to set up a handful of clips and then a couple hours to complete converting them for the quality I was looking for.  One was about 10 minutes of a kids' performance on Christmas and it took a long time. It's just not feasible given how many video clips I do with the camera a week - well, feasible when you consider all the cameras where this would be seamless.
    Thanks for posting your reply - I appreciate it.

  • Need help in conversion of pdf file to itab and d details abt SMARTFORMS

    hello all
    how can i retrieve data from  pdf  file (instead of a txt format) to an internal table for an BDC application .
    anyone of you please help me in SMARTFORMS .

    Hi,
    If you want to conver report data in pdf format then you have to made some changes in programe and some setting done by abaper in the programe.
    Regards,
    Anil

  • Need help in Conversion of Distance using the FM 'UNIT_CONVERSION_SIMPLE'

    Hi Group,
    I have a requirement to convert a value of type (NUMC - length 4) which has the value for Distance.
    Now I am using the FM 'UNIT_CONVERSION_SIMPLE' to convert the value of the above from 'Meter' to 'KM' as under:
      CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
        EXPORTING
          input                    = value_in(value of the above mentioned field)
          unit_in                 = 'M'
          unit_out              = 'KM'
        IMPORTING
          output               = value_out(this value should have the calculated value of the Distance in KM).
    and now, I will pass this(value_out) to the field of (NUMC - lenght 4).
    I was facing issues while executing the Function Module as :
    'Please use a number field for the input value'.
    please let me know how to overcome this error or else let me know any other alternative solution is available to overcome this.
    thanks for your help in advance.
    Regards
    Vishnu.

    Hello
    Try to use FM 'MATERIAL_UNIT_CONVERSION'
    And read this: UNIT_CONVERSION_SIMPLE

  • Need help with conversion of TDMS to Excel VIs

    Would somebody bother to convert these VIs to LabView Version 8.6, please?
    Signalmessung_Export_Excel_final.vi
    and the one attached. (Both are from this forum. I found them when searching for TDMS and Excel)
    Very clever having set up such a conversion board!
    Thank you !
    Attachments:
    tdms.vi ‏5 KB

    In the future, please indicate the version of the source VIs. Thanks.
    Attached is the "Signal..." VI. The other VI was just a blank VI. Did you upload the right one?
    Attachments:
    Signalmessung_Export_Excel_final.vi ‏217 KB

  • Need help in conversion(its urgent)

    hi,
    have any one tried the BPEL for the conversion process? if so pls let me know immediately.

    hi,
    thanks Marcelo, the information provided will be in the form of flat file. we do use file adapter, db Adapte,OA adapter.
    can you pls tell me what are the ways you hae used for the instances.
    the validations are done thru pl/sql procedures. we do call those procedures for pushing it into interface table and also call the concurrent procedures.
    the information means- the data given or the business rules?
    after this the info will be saved in a oracle database.
    what we want is to handle the errors which are thrown when the process been deployed. its hard to find the error like,(ORA-01401-Insert value to large for column..) and even we cant handle oracle thrown errors. frankly speaking pls tell me about handling all possible exceptions(oracle, apps,bpel-both compilation and deployment).
    if possible could you pls give me your contact information.sorry for asking so, since the timeline for us is very short, we have only a week time more.
    lots of thanks for your immediate reply.
    thanks,
    sneha

  • Need Help with conversion of .ondd to PDF

    Do you have in design?

    I've branched your question to a new thread and retitled it so that someone might be able to help you.
    What can you tell us about the .indd file, and what type of PDF -- Interactive or Print? Do you have the entire Indeagin Package foler with the links and font, or just the .indd file itself?

  • Need help in Conversion routines

    Hi,
    In table crmd_order_index <b>there is a field GUID of data type CRMD_OBJECT_GUID and domain SYSUUID which is RAW 16.</b>
    <b>and in the another table a thr is a field OBJKEY of data type char 70.</b>
    When i execute the code
        <b>SELECT guid
        FROM CGPL_PROJECT
        INTO gs_guid
        WHERE external_id = p_caid.</b>
    **get the ROLEID with respect to the object key and type ‘BUS2010020’
      <b>SELECT roleid
        FROM SRRELROLES
        INTO gs_roleid
        WHERE objkey = gs_guid
        AND objtype = ‘BUS2010020’.</b>
    When i
    avtivate it is it is throwin an error sayin dat
    "<b> GS_GUID and OBJKEY is not mutually convertible in a unicode program.... "
    and the guid is coming from CGPL_PROJECT.</b>
    Please Could anybody reply me ASAP.
    regards,
    Shiva shekar k

    Change the code like this
    SELECT guid
    FROM CGPL_PROJECT
    INTO gs_guid
    WHERE external_id = p_caid.
    data objkey type SRRELROLES-objkey.
    objkey = gs_guid.
    SELECT roleid
    FROM SRRELROLES
    INTO gs_roleid
    WHERE objkey = objkey
    AND objtype = ‘BUS2010020’.
    Reward points if useful

  • Setting Up New FCP5 HD Bay -- Need Help

    I'm setting up an HD edit bay for a friend, and I have a number of questions. Any help would be a godsend.
    Basically, he's got a G5 with Final Cut Studio installed, a Motu audio interface, a Mackie Mixer, a Decklink Pro HD dual link, M-audio LX4 5.1 speakers, and a DVD/VHS recorder. He has one 250G internal capture drive, and one external 1TB firewire G-Raid. He's running a 23" and 20" Cinema Displays, and a Panasonic 32" HD LCD Flatscreen.
    He wants to rent decks per project for capture and output.
    My questions is this, how do we output to SD VHS/DVD or other formats for clients? Do we need a Switcher? Is it possible to do format conversion in Final Cut and output via Firewire instead of decklink to SD devices?
    Also, is SDI (serial digital interface) cross-platform from SD to HD? Kramer Electonics has an interesting format converter that supports SDI, but will that change HD to SD? Here is a model number and link. FC-7402
    http://www.kramerelectronics.com/indexes/item.asp?pic=71
    Kramer also has a firewire format converter that looks interesting. FC-20
    http://www.kramerelectronics.com/indexes/item.asp?pic=430
    One of the Mac Vendors suggested the Blackmagic Multibridge Extreme, which sounds perfect, but costs $2000 - 3000.
    I'm looking for a low cost alternative, if possible.
    I really need help from someone experienced with this. I'm a freelance editor who cuts offline mostly on Avid for episodic TV, but my friend master HD out of his Mac edit suite. This is new territory for me.
    Thanks in advance.

    You should setup your local DNS to resolve only for the 'film.lab.' domain. Any requests that your local DNS will not be authoritative for should be forwarded to your district's DNS server. You should also set your local DNS to allow recursion only for clients on the 10.x.x.x subnet. The failure of clients configured to use your DNS for name resolution could be due to rules that have bee setup on your district's edge router to block outbound and inbound port 53 requests for all internal clients.
    If you set your server and clients to use your district's DNS server as the secondary for your zone, you must make certain that any hostnames within your local zone are defined on your district's DNS to resolve to the private, 10.x.x.x, subnet that you will be running your systems on. If you don't -and your DNS goes down and there is no secondary defined on the clients that contains the zone info for your subnet- your clients won't be able to find any hosts. If you wish to run services that will be accessible from the Internet on your local server, this may require your network admins to make changes to routing to allow those request to be pass from the public network to the private one.
    Also, if your district runs a central DHCP server you will need your district network admins to setup their DHCP server to return the correct client settings for your DNS and search domains for the clients within your subnet. If they do run a central DHCP server, do not attempt to set up a local one for your subnet. If you do, the probability that you will receive a very angry phone call from a not so happy fellow at your district is very high.

  • Need help on which router to buy for my BB 8320

    Now i know 8320 is dated but at this point i am not planning to change anytime soon .
    So I have a router which is kinda old, it didnt really occur to me since it worked. When i got my bb 8320 i was in a hotel and i could connect through their wireless without any hassle. I could surf, use youtube, name it.
    When i got home i couldnt do anything, i spent countless nights trying to figure out waht was wrong then i realized its my router. If only BB said somethign it wont support old routers then i wouldve saved myself hours of self-loathing.
    Anyways I also have gone to my friends house, and i could connect to her linksys router without any hassle. i was the one who set her router up and we bought it this year. i didnt do anything special, configuration-wise or w/e.
    So NOW i am just going to buy a new router. I really need help!!!!
    I was wondering if this one is good:
    W311R Wireless-N Broadband Router
    W311R integrates the wireless AP, router, four-port switch and firewall in one, and increases over 4 times transmission range of ordinary 802.11g products. Compatible with IEEE802.11n (Draft 2.0) and IEEE802.11g/b standards, it can provide up to 150Mbps stable transmission rate. It is dedicated to SOHOs and students’ dormitory. In addition, URL and MAC address filtering can take it easy for parents and network administrator to manage network life, and QoS bandwidth control over specific computer’s downloading speed is supported as well. Moreover, UPnP and WMM support can smooth your MSN voice better, and the included Setup Wizard on CD-ROM will be easy and fast for non-savvy users to install the device and access to the Internet.
    Overview:
    * Includes router, wireless access point, four-port switch and firewall in one
    * Provides up to 150Mbps uploading and downloading speed
    * Supports two WPS (Wi-Fi Protected Setup) encryption methods: PBC and PIN
    * Compliant to IEEE802.11n, IEEE802.11g, IEEE802.11b, IEEE802.3 and IEEE802.3u standards
    * Supports far-distance transmission, 100 meters indoor, 400 meters outdoor (depends on the environments around)
    * Supports 64/128-bit WEP encryption, WPA and the latest WPA2 encryption security authentication
    * Supports RTS/CTS protocol and data partitioning function
    * Provides one 10/100Mbps Auto-Negotiation Ethernet WAN ports for WAN connection
    * Provides four 10/100Mbps Auto-Negotiation Ethernet LAN ports for LAN connections
    * Supports xDSL/Cable MODEM, static and dynamic IP in community networking
    * Supports remote/local Web management
    * Supports WMM to better smooth your voice and video
    * Supports SSID stealth mode and access control based over MAC address (up to 30 entries)
    * Supports Auto MDI/MDIX
    * Supports wireless Roaming technology and ensures high-efficient wireless connections
    * Supports auto negotiation/manual mode for 802.11b/802.11g/802.11n
    * Supports UPnP and DDNS
    * Supports Firefox 1.0, IE5.5 or above
    * Supports SNTP
    * Supports virtual server, DMZ host
    * Built-in firewall for hacker’s attack prevention
    * Supports DHCP server/client
    * Supports auto wireless channel selection
    * Supports the control over LAN access to Internet
    * Provides syslog to record the status of the router
    * Supports WDS wireless network extension
    * Supports QoS function
    Input Voltage Range
    AC 110~240V
    Output Voltage Range
    9V~1000mA
    Consumption
    20dbm
    Operating Temperature
    0? ~ 40?
    Storage Temperature
    -40? ~ 70?
    Operating Humidity
    10% ~ 90% RH non-condensing
    Storage Humidity
    5% ~ 90% RH non-condensing
    Antenna
    One Non-detachable external antenna (5dBi)
    Frequency Range
    2.4GHz-2.5GHz
    EVM
    -30dB
    Sensitivity
    54M:-74dBm@10% PER; 11M:-85dBm@8% PER; 6M:-88dBm@10% PER; 1M:-90dBm@8% PER
    Outdoor
    400m
    Indoor
    100m
    WLAN?LAN
    93Mbps
    WLAN?WLAN
    93Mbps
    Frequency Range
    2.4GHz
    Gain
    5dBi
    Nominal Impedance
    50
    Polarization
    Linear; Vertical
    Maximum Power
    1W
    * Vertical Beamwidth 360º

    Flip UltraHD.
    Shoots mp4 H264 format files. Fits in a shirt pocket and records 2 hrs worth of material to an internal card. Charges from your USB port as you download. If you are just trimming clips, you can use QT Pro without conversion. If you need to edit, convert to ProRes 720p30. Works like a dream.
    Just make sure you have it solidly placed when you pull the trigger as there is no image stabilization.
    Oh, and it is only $199 US.
    x

  • Need help with calculator project for an assignment...

    Hi all, I please need help with my calculator project that I have to do for an assignment.
    Here is the project's specifications that I need to do"
    """Create a console calculator applicaion that:
    * Takes one command line argument: your name and surname. When the
    program starts, display the date and time with a welcome message for the
    user.
    * Display all the available options to the user. Your calculator must include
    the arithmetic operations as well as at least five scientific operations of the
    Math class.
    -Your program must also have the ability to round a number and
    truncate it.
    -When you multiply by 2, you should not use the '*' operator to perform the
    operation.
    -Your program must also be able to reverse the sign of a number.
    * Include sufficient error checking in your program to ensure that the user
    only enters valid input. Make use of the String; Character, and other
    wrapper classes to help you.
    * Your program must be able to do conversions between decimal, octal and
    hex numbers.
    * Make use of a menu. You should give the user the option to end the
    program when entering a certain option.
    * When the program exits, display a message for the user, stating the
    current time, and calculate and display how long the user used your
    program.
    * Make use of helper classes where possible.
    * Use the SDK to run your program."""
    When the program starts, it asks the user for his/her name and surname. I got the program to ask the user again and again for his/her name and surname
    when he/she doesn't insert anything or just press 'enter', but if the user enters a number for the name and surname part, the program continues.
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??
    Here is the programs code that I've written so far:
    {code}
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Project {
         private static String nameSurname = "";     
         private static String num1 = null;
         private static String num2 = null;
         private static String choice1 = null;
         private static double answer = 0;
         private static String more;
         public double Add() {
              answer = (Double.parseDouble(num1) + Double.parseDouble(num2));
              return answer;
         public double Subtract() {
              answer = (Double.parseDouble(num1) - Double.parseDouble(num2));
              return answer;
         public double Multiply() {
              answer = (Double.parseDouble(num1) * Double.parseDouble(num2));
              return answer;
         public double Divide() {
              answer = (Double.parseDouble(num1) / Double.parseDouble(num2));
              return answer;
         public double Modulus() {
              answer = (Double.parseDouble(num1) % Double.parseDouble(num2));
              return answer;
         public double maximumValue() {
              answer = (Math.max(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double minimumValue() {
              answer = (Math.min(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double absoluteNumber1() {
              answer = (Math.abs(Double.parseDouble(num1)));
              return answer;
         public double absoluteNumber2() {
              answer = (Math.abs(Double.parseDouble(num2)));
              return answer;
         public double Squareroot1() {
              answer = (Math.sqrt(Double.parseDouble(num1)));
              return answer;
         public double Squareroot2() {
              answer = (Math.sqrt(Double.parseDouble(num2)));
              return answer;
         public static String octalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
    String octal1 = Integer.toOctalString(iNum1);
    return octal1;
         public static String octalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String octal2 = Integer.toOctalString(iNum2);
              return octal2;
         public static String hexadecimalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
              String hex1 = Integer.toHexString(iNum1);
              return hex1;
         public static String hexadecimalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String hex2 = Integer.toHexString(iNum2);
              return hex2;
         public double Round1() {
              answer = Math.round(Double.parseDouble(num1));
              return answer;
         public double Round2() {
              answer = Math.round(Double.parseDouble(num2));
              return answer;
              SimpleDateFormat format1 = new SimpleDateFormat("EEEE, dd MMMM yyyy");
         Date now = new Date();
         SimpleDateFormat format2 = new SimpleDateFormat("hh:mm a");
         static Date timeIn = new Date();
         public static long programRuntime() {
              Date timeInD = timeIn;
              long timeOutD = System.currentTimeMillis();
              long msec = timeOutD - timeInD.getTime();
              float timeHours = msec / 1000;
                   return (long) timeHours;
         DecimalFormat decimals = new DecimalFormat("#0.00");
         public String insertNameAndSurname() throws IOException{
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        while (nameSurname == null || nameSurname.length() == 0) {
                             for (int i = 0; i < nameSurname.length(); i++) {
                             if ((nameSurname.charAt(i) > 'a') && (nameSurname.charAt(i) < 'Z')){
                                       inputCorrect = true;
                        else{
                        inputCorrect = false;
                        break;
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your name and surname: ");
                             nameSurname = inStream.readLine();
                             inputCorrect = true;
                        }catch (IOException ex) {
                             System.out.println("You did not enter your name and surname, " + nameSurname + " is not a name, please enter your name and surname :");
                             inputCorrect = false;
                        System.out.println("\nA warm welcome " + nameSurname + " ,todays date is: " + format1.format(now));
                        System.out.println("and the time is now exactly " + format2.format(timeIn) + ".");
                        return nameSurname;
              public String inputNumber1() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter a number you want to do a calculation with and hit <ENTER>: ");
                             num1 = br.readLine();
                             double number1 = Double.parseDouble(num1);
                             System.out.println("\nThe number you have entered is: " + number1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("\nYou did not enter a valid number: " + "\""+ num1 + "\" is not a number!!");
                             inputCorrect = false;
                        return num1;
         public String calculatorChoice() throws IOException {
              System.out.println("Please select an option of what you would like to do with this number from the menu below and hit <ENTER>: ");
              System.out.println("\n*********************************************");
              System.out.println("---------------------------------------------");
              System.out.println("Please select an option from the list below: ");
              System.out.println("---------------------------------------------");
              System.out.println("1 - Add");
              System.out.println("2 - Subtract");
              System.out.println("3 - Multiply");
              System.out.println("4 - Divide (remainder included)");
              System.out.println("5 - Maximum and minimum value of two numbers");
              System.out.println("6 - Squareroot");
              System.out.println("7 - Absolute value of numbers");
              System.out.println("8 - Octal and Hexadecimal equivalent of numbers");
              System.out.println("9 - Round numbers");
              System.out.println("0 - Exit program");
              System.out.println("**********************************************");
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your option and hit <ENTER>: ");
                             choice1 = inStream.readLine();
                             int c1 = Integer.parseInt(choice1);
                             System.out.println("\nYou have entered choice number: " + c1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid choice number: " + "\""+ choice1 + "\" is not in the list!!");
                             inputCorrect = false;
                        return choice1;
         public String inputNumber2() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br2 = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter another number you want to do the calculation with and hit <ENTER>: ");
                             num2 = br2.readLine();
                             double n2 = Double.parseDouble(num2);
                             System.out.println("\nThe second number you have entered is: " + n2);
                             System.out.println("\nYour numbers are: " + num1 + " and " + num2);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid number: " + "\""+ num2 + "\" is not a number!!");
                             inputCorrect = false;
                        return num2;
         public int Calculator() {
              int choice2 = (int) Double.parseDouble(choice1);
              switch (choice2) {
                        case 1 :
                             Add();
                             System.out.print("The answer of " + num1 + " + " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 2 :
                             Subtract();
                             System.out.print("The answer of " + num1 + " - " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 3 :
                             Multiply();
                             System.out.print("The answer of " + num1 + " * " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 4 :
                             Divide();
                             System.out.print("The answer of " + num1 + " / " + num2 + " is: " + decimals.format(answer));
                             Modulus();
                             System.out.print(" and the remainder is " + decimals.format(answer));
                             break;
                        case 5 :
                             maximumValue();
                             System.out.println("The maximum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             minimumValue();
                             System.out.println("The minimum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 6 :
                             Squareroot1();
                             System.out.println("The squareroot of value " + num1 + " is: " + decimals.format(answer));
                             Squareroot2();
                             System.out.println("The squareroot of value " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 7 :
                             absoluteNumber1();
                             System.out.println("The absolute number of " + num1 + " is: " + decimals.format(answer));
                             absoluteNumber2();
                             System.out.println("The absolute number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 8 :
                             octalEquivalent1();
                             System.out.println("The octal equivalent of " + num1 + " is: " + octalEquivalent1());
                             octalEquivalent2();
                             System.out.println("The octal equivalent of " + num2 + " is: " + octalEquivalent2());
                             hexadecimalEquivalent1();
                             System.out.println("\nThe hexadecimal equivalent of " + num1 + " is: " + hexadecimalEquivalent1());
                             hexadecimalEquivalent2();
                             System.out.println("The hexadecimal equivalent of " + num2 + " is: " + hexadecimalEquivalent2());
                             break;
                        case 9 :
                             Round1();
                             System.out.println("The rounded number of " + num1 + " is: " + decimals.format(answer));
                             Round2();
                             System.out.println("The rounded number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 0 :
                             if (choice2 == 0) {
                                  System.exit(1);
                             break;
                   return choice2;
              public String anotherCalculation() throws IOException {
                   boolean inputCorrect = false;
                   while (inputCorrect == false) {
                             try {                              
                                  BufferedReader br3 = new BufferedReader (new InputStreamReader(System.in));
                                  System.out.print("\nWould you like to do another calculation? Y/N ");
                                  more = br3.readLine();
                                  String s1 = "y";
                                  String s2 = "Y";
                                  if (more.equals(s1) || more.equals(s2)) {
                                       inputCorrect = true;
                                       while (inputCorrect = true){
                                            inputNumber1();
                                            System.out.println("");
                                            calculatorChoice();
                                            System.out.println("");
                                            inputNumber2();
                                            System.out.println("");
                                            Calculator();
                                            System.out.println("");
                                            anotherCalculation();
                                            System.out.println("");
                                            inputCorrect = true;
                                  } else {
                                       System.out.println("\n" + nameSurname + " thank you for using this program, you have used this program for: " + decimals.format(programRuntime()) + " seconds");
                                       System.out.println("the program will now exit, Goodbye.");
                                       System.exit(0);
                             } catch (IOException ex){
                                  System.out.println("You did not enter a valid answer: " + "\""+ more + "\" is not in the list!!");
                                  inputCorrect = false;
              return more;
         public static void main(String[] args) throws IOException {
              Project p1 = new Project();
              p1.insertNameAndSurname();
              System.out.println("");
              p1.inputNumber1();
              System.out.println("");
              p1.calculatorChoice();
              System.out.println("");
              p1.inputNumber2();
              System.out.println("");
              p1.Calculator();
                   System.out.println("");
                   p1.anotherCalculation();
                   System.out.println("");
    {code}
    *Can you please run my code for yourself and have a look at how this program is constructed*
    *and give me ANY feedback on how I can better this code(program) or if I've done anything wrong from your point of view.*
    Your help will be much appreciated.
    Thanks in advance

    Smirre wrote:
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??You cannot restrict the user. It is a sad fact in programming that the worst bug always sits in front of the Computer.
    What you could do is checking the input string for numbers. If it contains numbers, just reprompt for the Name.
    AND you might want to ask yourself why the heck a calculator needs to know the users Name.

  • I need help with a migration from Exchange 2010 to 2007

    Hi All,
    I need help migrating mailboxes from a separate forest / domain using exchange 2010 to our Exchange 2007 SP3 servers..  I am following this procedure:
    1. On source server, create a mailbox user, test01.
    2. On target server, run the following command to move the AD account:
    Prepare-MoveRequest.Ps1 -Identity [email protected] -RemoteForestDomainController FQDN.source.com -RemoteForestCredential $Remote -LocalForestDomainController FQDN.target.com -LocalForestCredential $Local -UseLocalObject -Verbose"
    3. Run the ADMT to migrate the password and SID history.
    4. Run the following command to move the mailbox:
    New-MoveRequest -Identity '[email protected]' -RemoteLegacy -RemoteTargetDatabase DB03 -RemoteGlobalCatalog 'GC01.humongousinsurance.com' -RemoteCredential $Cred -TargetDeliveryDomain 'mail.contoso.com'
    (Changed all the details obviously)
    It gets to 95% and shows this error
    01/12/2014 12:47:24 [EX2K10] Fatal error UpdateMovedMailboxPermanentException has occurred.
    Error details: An error occurred while updating a user object after the move operation. --> Active Directory operation failed on DC.DC.COM . This error is not retriable. Additional information: The parameter is incorrect.
    Active directory response: 00000057: LdapErr: DSID-0C090A85, comment: Error in attribute conversion operation, data 0, vece --> The requested attribute does not exist.
       at Microsoft.Exchange.MailboxReplicationService.LocalMailbox.Microsoft.Exchange.MailboxReplicationService.IMailbox.UpdateMovedMailbox(UpdateMovedMailboxOperation op, ADUser remoteRecipientData, String domainController, ReportEntry[]& entries,
    Guid newDatabaseGuid, Guid newArchiveDatabaseGuid, String archiveDomain, ArchiveStatusFlags archiveStatus)
       at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.<>c__DisplayClass3c.<Microsoft.Exchange.MailboxReplicationService.IMailbox.UpdateMovedMailbox>b__3b()
       at Microsoft.Exchange.MailboxReplicationService.ExecutionContext.Execute(GenericCallDelegate operation)
       at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.Microsoft.Exchange.MailboxReplicationService.IMailbox.UpdateMovedMailbox(UpdateMovedMailboxOperation op, ADUser remoteRecipientData, String domainController, ReportEntry[]& entries,
    Guid newDatabaseGuid, Guid newArchiveDatabaseGuid, String archiveDomain, ArchiveStatusFlags archiveStatus)
       at Microsoft.Exchange.MailboxReplicationService.RemoteMoveJob.UpdateMovedMailbox()
       at Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.UpdateAD(Object[] wiParams)
       at Microsoft.Exchange.MailboxReplicationService.CommonUtils.CatchKnownExceptions(GenericCallDelegate del, FailureDelegate failureDelegate)
    Error context: --------
    Operation: IMailbox.UpdateMovedMailbox
    OperationSide: Target
    Primary (b5373e49-6a06-41f4-990e-27807c7a57f3)
    01/12/2014 12:47:24 [EX2K10] Relinquishing job.
    Any ideas what i can do about this? 

    Hi,
    From your description, I recommend you follow the steps below for troubleshooting:
    Open the problematic user in AD and check the Email Address. Verify if you can open or edit the x400 address. If no, remove the x400 address and recreate it. If yes, ensure that the name is spelt correctly. After that, continue to move the mailbox and check
    the result.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • How to estimate the time needed for unicode conversion

    Experts:
    I am going to perform an upgrade from 46C (non-unicode) to ECC6/EHP4.
    In the action plan , it's hard to estimate the time needed for unicode conversion.
    We do not have a sandbox to benchmark that time.
    Could you please help share your experience here?
    Thanks!!

    Hi,
    usually it is very hard to estimate a proper time.
    There are some hints to get a rough feeling (SAP note 857081 and [SMP link|http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000380759&_OBJECT=011000358700001279022010E] ).
    However please note that SAP highly recommends to do a Sandbox conversion - otherwise there is a high risk that the PRD conversion will take (much) longer than expected.
    Best regards,
    Nils Buerckel

Maybe you are looking for

  • Why cant I enter access contacts or mail settings on my ipod touch

    Just got a new ipod touch and after the initial connection and loading itunes and iOS 5.0.1 I cannot access or add contacts or mail settings. What do I do to fix this?

  • Supplier catalogs integration with Purchase Requisiton (ME51N) transaction

    Hi MM Gurus, I was looking to integrate supplier catalogs (punch out) to ME51N transaction in ECC-EHP4. I see config node in SPRO under MM->Purchasing->Environment Data->Web Services: ID and Description. - I created catalog ID but Catalog button is n

  • FCP freezes - won't play clips or timeline

    I tried importing files to a new event and setting up a new project. FCPX simply freezes. I cannot play a clip (audio or video).  The computer is an iMac (IMAC 11,1 27" 2.8GHz Core i7,ATI Radeon 4850 512MB, 8GB Ram)  The problem shows up with ALL pro

  • Printer icon (queue) in Dock After Every Print.... WHY??

    Anyone else experiencing this? After every single print job, on both my MacBook Pro and my iMac, I have to click on my printer icon (print queue box) and QUIT manually. This never happened before my 10.5 Leopard upgrade. Same printer as before, same

  • Global Order Promising query

    Hi All, Just want to know if GOP check for multiple calendar in a shipset . For ex if my Ship set has two lines line 1 and line 2 , calendar code A for line 1 and calendar code B for line 2 If for a day Calendar day has holiday and same day is workin