Conversion from Char to Packed Number

Hi,
How do we convert a 18 byte char field(Which contains all numerics) in to a 8 byte field ?
Regards,
Hari

Hi.,,
what is your actual requirement ??
if u want to move a character variable which contains all numerics into a P type field u can directly move it !!
<b>data w_char(18) type c value '1234567'.
data w_p type p decimals 2.
move w_char to w_p.
write w_p.</b>
<u>If you want to hold large numbers then increase the size of P type variable..</u>
<u>data w_p<b>(10)</b> type p decimals 2.</u>
reward if it helps u..
sai ramesh.

Similar Messages

  • Field conversion from char .

    Dear member ,
                Is there any way to reduce the prefix zero from sale order 10 digit char .
               EG: if 0053549980 is the so no I want to make it 53549980  . I have transfered  the vale into integer variable but error is coming  data overflow .
    Help me to find out the solution .
    Regards ,
    Joy .

    Hi Joy,
    Try using the PACK keyword to remove the leading zeros.
    PACK <var1> TO <var2>.
    CONDENSE <var2>.
    Here var1 and var2 both are Character Type variables.
    Hope it helps.
    Regards,
    Himanshu

  • Conversion from char to byte

    can anybody to convert char which is unicode in java as one byte. i want to print that byte as ascii.
    i tried below method.
    char temp='s';
    ByteBuffer buff= ByteBuffer.wrap(some byte array of some size);
    buff.putChar(temp);
    out.writeByte(buff.getChar()); // out is my dataoutput stream which
    // stores in some file by using
    // fileoutputstream.
    in some case i got right output like: s
    but in some case i got: sX where X=white space.
    so it's still writing as unicode eventhough i called writeByte.
    i want to change my program little bit by putting char as byte and not as char in bytebuffer and i want to do something like this after i store my chars as byte
    out.writeByte(buff.getByte());
    do you have any method to convert char to byte and store it in buff?
    thanks a lot.

    Try the toBytes() method of the String class.

  • Conversion from char to date

    I have a filename as final_20120928_142334.txt
    I have to get only date value from this as 20120928_142334
    then I have to convert this into date time format as yyyymmdd hh24:mi:ss

    To extract the actual filename into a table, use the code for the 'Retrieve File List' example in this document - on page 8.
    http://s3.amazonaws.com/Ora/ODI_Waiting_for_a_file_and_processing_it.pdf
    Then use the expression posted by 955950 above to format the string.
    Edited by: _Phil on Sep 28, 2012 11:48 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Change column from CHAR(1) to NUMBER(6)

    Hi,
    I have to tables referenced by

    see my reply in this tread
    <a id="jive-thread-3" href="thread.jspa?threadID=432846&tstart=0"
    >Please help me</a>
    <br>
    hope that helps

  • IMessage - "new conversations from" ios 7   iMessage backups

    Hi, So I'm having two issues at the moment but I'll start with the "new conversations" issue. I just upgraded to the 5S and did a iTunes restore on the phone, restored using my backup and then activated iMessage which took a few hours before it actually happened. Any time I try and start a new conversation from my mobile (cell) number, iMessage automatically sends it as a standard SMS message (green) and not as a blue iMessage but when I start the conversation from an email address, iMessage works as normal but from "Messages" on my Macbook, I can send from my mobile number just fine so I'm not sure what's wrong.
    The second issue I'm having is that on my Mac, I have way more messages from one of my contacts, they go back quite a while but on my iphone they only go back as far as start of September. Any way how I can get iMessage on my Mac to force sync to my iphone and reload all my messages?
    Regards,
    Michael

    bump. first issue resolved, second I'm still experiencing issues with.

  • IMessages sent from icloud address/phone number=2 conversations!

    This is a long-standing issue that defies resolution. At times, my iphone or my wife's iphone will send iMessages from our iCloud addresses instead of our phone number. So if my wife sends an iMessage to me, I sometimes get a new message from "[email protected]". Although her name, email addresses and phone number are in my Contacts, this new conversation shows up as her email address. We used to think it was because she travels abroad and uses wi-fi in her hotel that caused the phone to use an email address rather than her number because she was out of the UK. Not so! Here's what happened today: My wife sent me and our 2 children iMessages from London Heathrow to us three at home. My message came through as from her email address, my daughter's also came through from her email address, but my son, a few yards down the hallway got his from her phone number.
    This is a typical scenario which can work the other way round when it's ME sending her the iMessages where she gets my message as though I'd sent it from my email address rather than the phone number.
    I have been through all the hoops I know of to sort this but I just can't fix it. I don't know whether it's the iPhone, iCloud or what that's at fault. But it is driving me mad.
    In this morning's case, I replied to her message by using an older (yesterday's) conversation to send my iMessage to her, and her reply to that came to me via her phone number, as expected, and good as gold. Had I just replied to her iMessage, it would have perpetuated the TWO conversations. I have tried logging out and back in, deleting the accounts and reinstating them, re-entering the settings, making sure that the "Start new conversations from..." is set up correctly and so on. Then after a while, it returns, randomly, to sending texts from the email and starts a new conversation again. And you can't combine the 2 conversations even when you go to Details-Add to existing contact etc.
    I have also just been informed by a supplier that my iMessages to him are showing up as my email address not my phone number, despite my iphone being set to 'Start conversations from +44777...etc"
    Please throw out suggestions as you wish and I'll be grateful, even if it's one I've already tried and failed with.
    This icloud is a nightmare.
    Many thanks in advance.
    Chris
    iphone 6, latest iOS

    Bump.
    So no one knows anything about this, or how to correct this iMessage bug?

  • FM for Material number conversion from R/3 to APO in R/3

    Hi,
       Can anybody tell me conversion exit (function module) for Material number conversion from R/3 to APO in R/3 system. I mean i have 18 digit R/3 material number which i have to convert to 40 digit APO material number in R/3 system.
    Please suggest to win full points.
    Thaniks in Advance,
    Chandan Dubey

    Dear Chandan,
    Conversion Exits:
    CONVERSION_EXIT_MATN1_INPUT ....... If you are storing Material With Zeros
    Then concatenate it with 22 zeros. i.e. '0000000000000000000000000000'.
    For example:
    data : v_matnr type matnr,            "R/3 Material
           v_apo_matnr(40) type c,        "APO Material with 40 length
           v_zeros(22) type c. value '0000000000000000000000000000'.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
           EXPORTING  INPUT          = v_matnr
           IMPORTING  OUTPUT         = v_matnr.
    concatenate e_mantr v_zeros into
                v_apo_matnr.
    Regards,
    Naveen.

  • Can I use my email and phone number to start a new conversation from iMessage?

    Can I use my email and phone number to start a new conversation from iMessage?

    Can I use my email and phone number to start a new conversation from iMessage?

  • Imessage sends messages from email despite selecting phone number for "start new conversations from"

    On both my phone and my computer I have selected to start new conversations from my phone number, but just now I continued a conversation from my macbook and it sent it from my email address instead of my phone number! All the other answers I found for this question were outdated, I couldn't find "Caller ID" in settings for iOS 8 or Yosemite.

    If this is a continuing conversation, I don't believe the device looks at it as a new conversation, which is what that setting is for, from what I understand. If there is a checkmark by the phone number on all devices, then it should start there, but if the conversation was originally started from the email, I believe it will continue until you start a new conversation.

  • IMessage, Start new conversations from number missing?

    I sign in with my Apple-ID. But then apperienlty you can choose which you will start new conversations from, hotmail or number, but that does not appear for me? Settings ---> Messages ---> Send and recieve.       PLEASE HELP ME

    This worked for me.  Turn off iMessage in Settings---> Messages. Then turn off iPhone. Restart iPhone then turn iMessage back on.   The phone number should reappear.

  • TS4268 Missing Phone Number at "Start new conversations from"

    How come there is missing of the phone number at the "Start new conversations from:" inside Settings -> Messages -> Send & Receive" and only have the e-mail address but both of the phone number and e-mail address under "You can be reached by iMessage at:", please advise how to add it back ?

    Yes, I have solved it.  You could try to go from Settings -> Messages, turn the iMessage from ON to OFF, then you switch off your iphone and turn it on; go back to Settings -> Messages, change the iMessage from OFF to ON, then switch off your iphone and turn it back on, go to check whether you could see or add back the phone number assoicated with the iMessage.   Good Luck !

  • Get Pack number (ESLL-PACKNO) from Activity no. (ESLL-SRVPOS)

    Hi all,
    I am creating a custom screen for External service items. The standard process to fetch the data for the task list external services is as below:
    1) Pass the Group(Task List) -PLNNR to PLPO and get the Package No's(PACKNO).
    2) Pass the Package(PACKNO) to ESLL table and fetch the Sub package No's(SUB_PACKNO).
    3) Pass this Sub Package No's as Pack nos to ESLL table again, fetch the Services(SRVPOS).
    I want to fetch the data from Activity Number (ESLL-SRVPOS) and get the Package no. (ESLL-PACKNO). in IA06, if user enter a service number (ESLL-SRVPOS) and then press save. A record will be save in PLPO-PACKNO for the related operation.
    I just want to know, how this Package no. get saved and which fields make this record as unique.
    Thanks,
    Sanket Sethi

    Hi ,
          You have AFKO-AUFNR ,
    You can get the pack number from table AFRU or AFVC .
    After getting Pack Number
    Use this BAPI to get other details .
    MS_READ_SERVICES_FOR_BAPI
    Input would be pack number

  • Packed number conversion

    Hi.
    Net connector returns the string and when I parse it I end up with packed number format in STRING data type.
    Is there some function in connector or external library that simply and quickly transforms BCD string to Decimal and vice versa?
    Or any trick to do that. Tried to retype via net connector, but says string cannot be converted to decimal.
    Am I only one who needs this functionality. Was digging google half day found nothing.
    Thx
    Juraj

    Hi Gaurav,
    I tried a small program and found no problem in moving the data. Just check the length of char field..or try this program
    DATA: pack TYPE p DECIMALS 5,
          char(10) TYPE c.
    pack = '5.00345'.
    MOVE pack TO char.
    WRITE char.
    //Kothand

  • Deprecated conversion from string constant to 'char*'

    Hi all
    I am working with strings and i cant figure out why the following
    warning appears at time of build.
    warning: deprecated conversion from string constant to 'char*'
    It appears for the line
    char *myName = "Apple.txt";
    Is there anyone who can help me?
    Help is welcome.
    Thanks in advance.

    Any reason why you aren't using NSString in place of char?
    char *myName = "Apple.txt";
    NSString *myName = @"Apple.txt";

Maybe you are looking for