Character to Hexa decimal

Hi ,
Is there any CLASS->METHOD which converts character values to Hexa decimal values?
I am getting a syntax error in ECC 6.0.
Please provide some example.
Thanks
Title was edited by:
        Alvaro Tejada Galindo

Hi,
(p_is_ppc_comp_conf-stsor is 10 char field.)
data: lv_stsor_hex(16) type X.
write p_is_ppc_comp_conf-stsor to lv_stsor_hex. "<-- Hex Conversion
In 4.6C the write statement is working and the 10 char value is getting converted to a 16 length hexa field.
But in Upgrade its showing error in EPC saying that cannot write 10 char value into a hexa field.

Similar Messages

  • Very Urgent - Converting Character value to Hexa Decimal value

    Hi
    data: lv_stsor_hex(16) type X.
    p_is_ppc_comp_conf-stsor is a char 10 field ***
    <b>write p_is_ppc_comp_conf-stsor to lv_stsor_hex.</b> "<-- Hex Conversion
    In 4.6C version this write statement is working fine but this is obsolete in ECC 6.0
    and its showing syntax error.
    Can anyone tell me how to convert a 10 char length value to a hexa decimal value
    which is of 16 characters length and of type hexadecimal
    Thanks a lot. Points will be rewarded immediately.

    Hi,
    Use the Function module CHAR_HEX_CONVERSION.
    report zeta_hex.
    data: s type string.
    data: h(1) type x.
    data: c(1) type c.
    data: byte(2) type c.
    data: length type i.
      FIELD-SYMBOLS: <DUMMY>.
    s = 'ThisIsAString'.
    length = strlen( s ).
    do length times.
      byte = ( sy-index - 1 ).
      c = s+byte(1).
    * You can do this
      ASSIGN h TO <DUMMY> TYPE 'X'.
      WRITE c TO <DUMMY>.
    * or you can do this
    *  call function 'CHAR_HEX_CONVERSION'
    *       exporting
    *            input     = c
    *       importing
    *            hexstring = h.
      write:/ h.
    enddo.
    Regards
    Sudheer

  • ASCII Repsentation of hexa decimal to jpeg format

    Hi
    my requirement is to convert a file which contains hexa decimal code , i want to convert into a jpeg file
    can anyone suggest me how i can approach this

    Convert the data to RAW format and then output the RAW (probably via a BLOB datatype) to a file...
    SQL> ed
    Wrote file afiedt.buf
      1  WITH t AS (select '424DB6050000000000003E00000028000000C3000000' as hx from dual)
      2  -- END OF TEST DATA
      3  SELECT hextoraw(hx), dump(hextoraw(hx))
      4* from t
      5  /
    HEXTORAW(HX)                                 DUMP(HEXTORAW(HX))
    424DB6050000000000003E00000028000000C3000000 Typ=23 Len=22: 66,77,182,5,0,0,0,0,0,0,62,0,0,0,40,0,0,0,195,0,0,0
    SQL>Note: HexToRaw has a limit on the input size (4000 character I think) so you'll have to do it in chunks.

  • Character to hex conversion

    Hi,
    How can i convert character into hex string , for example if i have the data as "testing data", how can i get the hex coded output? Ive tried out using first string to number vi and thennumber to hex conversion vi but i get the answer as 0, can u help me in this?
    In short my data is " testing1234okokok" , i want a hex coded output which would be something as  "AD87BA......."
    Please help
    From Subhash

    What coercion dots? There are no coercion dots even without the loop:
    Message Edited by smercurio_fc on 02-13-2008 03:12 PM
    Attachments:
    Example_VI.png ‏1 KB

  • File content conversion : hexa decimal character value for tab

    Experts,
       I am working on a FCC for a tab delimited file. Can any one tell me what is the hexadecimal value of tab. I am using '0x09' but it is not recognizing this.
    Can anyone help me out..
    Thanks
    Veeru

    Hi Veeru,
    >    I am working on a FCC for a tab delimited file. Can any one tell me what is the hexadecimal value of tab. I am using '0x09' but it is not recognizing this.
    Have a look at this bolg /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter . You can try the 2nd method given in that. If that doesn't solve your issue, might be there is some other problem in the FCC configuration.
    Regards,
    Sunil Chandra

  • Non-hex character in hex string after upgrade to Yosemite

    Hi,
    When I try to open some of my files I get an error: "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string". I could open the files before.
    The only thing I've done since I opened the file last was to upgrade to Yosemite. The error occurs on both my Mac Pro (late 2013) and Mac Book Pro with Yosemite. Unfortunately, I have no access to a Mac with Mavericks and CS6 but I will try to fix one to verify that the file works there.
    Affected files  (Created in Illustrator CS6 on Mavericks):
    services.ai
    visual guidelines v.0.4.pdf
    visual guidelines.ai
    Tested steps:
    Open previous versions of the same file from our repository
    Update Illustrator CS6 to latest version
    Download Illustrator CC
    Tried to Place the file into another file (same error)
    Tried to repair file Enable content recovery mode | Illustrator CS2-CS5

    Hi svepdesigncenter,
    How you are accessing those files from your repository?
    There might be chances of getting files corrupted when transferring.
    File may have been sent as ascii when it should have been sent as binary or vice versa.
    In 99% of transfers it's ALWAYS safest to zip an AI or eps file before sending it anywhere.
    Regards,
    Sumit Singh

  • Non-hex character in hex string

    I'm getting this messsage when I try to open an Illustrator file:
    "Acrobat PDF file format is having difficulties. Non-hex character in a string."
    I', using illustrator CS6 and I need my file opened..!

    Nobody can know without seeing the file and having more info about your system. Does the file open in Acroibat/ Adobe Reader for instance?
    Mylenium

  • Retrieve the character from hex code

    I want to write the hex code / ASCII code of the English alphabets ( A - Z and a - z ) in a file and again want to read those codes (either ASCII or Hex code) from the file to retrieve the characters from them. How it is possible?
    For example, ASCII code of 'A' is 65 and hex code is 41.
    ASCII code of 'z' is 122 and hex code is 7A.
    Avijit

    Forgot that you need to convert them back:
            Character c = new Character('A');
            System.out.println("char : "+c);
            int ascii = (int) c.charValue();
            System.out.println("ascii: "+ascii+" => "+(char) ascii);
            String hex = Integer.toHexString(ascii);
            System.out.println("hex  : "+hex +" => "+(char) Integer.parseInt(hex, 16));

  • The hexa decimal to decimal is not working propoerly

    I'am attaching one VI where , read string after the VISA serial which is put to the hexadecimal conversion  . This should give the converted decimal number at the number label. But it's not providing that. So can you send me  a solution for this. 
    Solved!
    Go to Solution.
    Attachments:
    conversion-2.vi ‏28 KB

    Sorry, LabVIEW 7 is ancient. You are already typecasting a number to a string elsewhere, so you simply need to do the reverse: typecast the string to a U8 constant.
    Create a U8 diagram constant bu placing a numeric diagram constant and setting the representation to U8 (right-click...representation). Wire that as type as follows: (read string is set to hex display, but that is just cosmetic)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    castString.png ‏5 KB

  • Hex decimal n.o to integer conversion?

    how to convert 1 byte hex n.o in decimal form to the decimal integer of of 8 bit data .
    Solved!
    Go to Solution.

    Hi,
    You can use the Hexadecimal to Number fucntion. This is available in - Programming>String>String/Number Conversion.
    Alternatively you can search for hexadecimal to number conversion.
    Regards,
    Kanchan Bhakoo
    Applications Engineer | National Instruments

  • Hexa decimal replacement using the class  cl_abap_char_utilities

    Hi,
      While upgrading from 4.7 version to ecc 6.0 i am getting the error < itab > must be a character-type data object (data type C, N, D, T or STRING) .So i am using the class cl_abap_char_utilities . I found the replacement for hexadecimal '09' and '0D'
    cl_abap_char_utilities=>HORIZONTAL_TAB,
    cl_abap_char_utilities=>CR_LF.
    I want the replacement for the following hexadecimals also.
    '80','81','82',
    '83','84','85','86','87','88''89','8A','8B','8C'
    '8D','8E','8F','90','91','92','93','94','95',
    '96','97','98','99','9A','9B','9C''9D',
    '9E','9F'
    Regards,
    Charumathi.B

    Here you go
    DATA:
      BEGIN OF fs,
        fs     TYPE x VALUE 28,
      END OF fs.
    DATA:
      f1(4) TYPE c VALUE 'xxxx',
      f2(4) TYPE c VALUE 'yyyy',
      f3(4) TYPE c VALUE 'zzzz',
      rslt(20) TYPE c.
    START-OF-SELECTION.
      CONCATENATE f1 fs f2 fs f3 fs INTO rslt.
      BREAK-POINT.
    Output in HEX
    787878781C797979791C7A7A7A7A1C2020202020
    Output in Display
    xxxx#yyyy#zzzz#
    Edited by: Paul Chapman on Jun 9, 2008 12:33 PM

  • How to get hexa decimal code of assembly.

    I am creating one assembly through hexadecimal code. I want to know how to convert dll into hexadecimal code using sql query.
    Musakkhir Sayyed.

    Why using a SQL Query? You could use CREATE ASSEMBLY and then script it out using SSMS or extract the dll using
    select name, convert(varchar(max), content, 1)
    from sys.assembly_files
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Group 8 channel (binary) to octal/hexa​decimal

    Hi,
    Let say I have 8 channel of binary data in array and plotted to the graph. If button "Grouping" pressed, then the 9th channel will be plotted, which is in octal value (Sum of binary value at the same sample).
    <Please refer to the picture attach>.
    I m using HSDIO 6552 to generate and acquisite the data, and I need to group some of the acquisited data.
    Problem:
    I don't know how to generate the 9th channel on the graph, as shown in the attached pic. So, I m seeking help on how to "Add" the octal-value channel. Any1.. pls help.. Thanks in advance.  
    Attachments:
    grouping.JPG ‏16 KB

    Hi engwei,
    One way to display it programmatically is to use property nodes. They allow you to change the visibility, data type, transition type, etc. of an active plot. To access the property nodes of a graph, right-click on it and select Create >> Property Node. Attached is a screenshot of a property node I used to change one of my graph plots. Let me know if you have any further questions, thanks!
    Cheers,
    Jonah
    Applications Engineer
    National Instruments
    Jonah Paul
    Marketing Manager, Embedded Software
    Evaluate the LabVIEW RIO Platform! - ni.com/rioeval
    Attachments:
    digital_waveform_octal.JPG ‏11 KB

  • Funtion modules to convert hexa decimal to integer

    Hi,
    Every one
    can any one suggest me  the function modules that can be used to convert the hexadecimal to integer.

    Hi,
        Define a variable of type integer, and move the value of the hexadecimal variable into the declared variable.
    Example.
    DATA : var1 TYPE i,
           var2 TYPE x LENGTH 4 VALUE '00002710'.   " Hexadecimal value equal to 10000 integer
    * directly move the value in hexadecimal type variable into integer type variable
    MOVE var2 TO var1.
    WRITE :/ var1.
    Var1 = 10000   " Integer.
    Regards
    Bala Krishna

  • Replace tab character from string in ABAP

    hi experts,
    I have a string like this "a<tab character>b<tab character>c<tab character>d". for my processing i want the output like "abcd". How can i replace all occurances of this tab character from my string.
    tab character = a hexa decimal character. I dont know the hex value for this.
    regards
    Raghav

    hi you joined SCN in 2007 its a way long time to say.. ur new.. any ways.
    after declaring the lv_tab as I said...
    REPLACE ALL OCCURRENCES OF lv_tab in <string> with space.

Maybe you are looking for

  • Upgrade from 4.6C to ERP ECC 6.0

    Hi, Help!!! I'm running the prepare the first time and encountered this problem during the Kernel extract.  I received this message from '/usr/sap/put/EXTRKRN.LOG' 1 ETQ201XEntering upgrade-phase "EXTRACTKRN_PRE" ("20061016131342")        2 ETQ367 Co

  • Can I keep more than just 5 entries in the podcast page?

    I noticed that any post in iWeb's podcast page that gets moved to the archive is no longer indexed by iTunes or other aggregators. I was wondering if there is a way to keep more than just 5 entries in the podcast page so that they continue to remain

  • Unable to install Flash Player Version 17.0.0.134 in Windows 7 64-bit

    "Unable to install Flash Player Version 17.0.0.134 in Windows 7 64-bit" All I get is a Black box "Installing" and nothing happens for hours & hours. I have tried downloading from the archives, an older, working version of Flash Player.  Works on many

  • 6 JVM on my PC !

    I just runned a search on all my hard drives and realized that there is no fewer than 6 JVM installed on my system. -2 JVM from JDK installation I did myself. (One from JDK and one from JRE) -1 in C:\windows\win32 -1 In the dreamweaver directory -1 i

  • Display Minimum and Average values

    Hi Guys, In my scenario, I have a department and sub departments. I need to display the min, max and avg of a particular keyfigure for each of the departments. The keyfigure has a value for each of the sub-depts and I need to take the min of all the