Convertion from char to raw

HI all,
I have to convert a char255 to raw255. Is there any methods/function module that can do this.
Regards
Ravish

Hi,
try this FM
Unicode - Konvertierung SOLI in SOLIX
CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
EXPORTING
ip_solitab = gt_compressed_list[]
IMPORTING
ep_solixtab = gt_pdf_hex[].
Regards

Similar Messages

  • Convert from char* to unsigned char*

    Hi, I try compile example from: http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14294/relational.htm#i1000940
    in Visual C++ and I have problem with:
    const string userName = "SCOTT";
    because string is defined as unsigned char* and "SCOTT" is char*, is any function to convert from type char* to type unsigned char* ?

    I'm apologize for this stupid question, answer is very easy:
    const string userName = (const unsigned char*) "SCOTT";

  • Converting from VARCHAR to RAW

    Hi,
    is there a function or a way to convert let's say a string '123' into hexadecimal data type?
    the hex equivalent for this would be '313233'.
    Thanks.

    UTL_RAW
    The UTL_RAW package provides SQL functions for manipulating RAW datatypes. This package is necessary because normal SQL functions do not operate on RAWs, and PL/SQL does not allow overloading between a RAW and a CHAR datatype. UTL_RAW also includes subprograms that convert various COBOL number formats to, and from, RAWs.
    UTL_RAW is not specific to the database environment, and it may actually be used in other environments as it exists here. For this reason, the prefix UTL has been given to the package, instead of DBMS.
    This chapter discusses the following topics:
    Usage Notes
    Summary of UTL_RAW Subprograms
    Usage Notes
    UTL_RAW allows a RAW "record" to be composed of many elements. By using the RAW datatype, character set conversion will not be performed, keeping the RAW in its original format when being transferred through remote procedure calls.
    With the RAW functions, you can manipulate binary data that was previously limited to the hextoraw and rawtohex functions.
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_raw.htm#998101
    Joel Pérez

  • Convertion from Char to Hex

    Hi Experts,
    I have a requirement to convert char type to Hex type.
    I have two structures. one is Character type and other is hex type like below.
    data: v_hex(300) type h,
            v_char(300) type c.
    When we move v_char(300) to v_char(300), it is working fine in 4.6 system.
    But it is giving unicode error in ECC 6.0. So i have changed the statement to v_hex = v_char.
    There is no syntax error but it is not converting the same.
    Please post your replies. Thanks in advance.

    REPORT  ZSRK_039                                .
    DATA: V_HEX(300) TYPE X,
          V_CHAR(300) TYPE C.
    V_CHAR = 'Test'.
    PERFORM CHAR_TO_HEX_CONV USING V_CHAR
                             CHANGING V_HEX.
    WRITE : / V_HEX.
    *&      Form  CHAR_TO_HEX_CONV
          text
         -->P_V_CHAR  text
         <--P_V_HEX  text
    FORM CHAR_TO_HEX_CONV  USING    CH TYPE C
                           CHANGING CH1 TYPE X.
      FIELD-SYMBOLS : <FS_TR> TYPE X.
      ASSIGN CH TO <FS_TR> CASTING TYPE X .
      CH1 = <FS_TR>.
    ENDFORM.                    " CHAR_TO_HEX_CONV

  • Check a convertion from CHAR TO NUMC

    Hi,
    I import a flatfile into a structure that contains only CHAR-fields. Then I make a TRY-CATCH construct for every field in P,I,F,N..-datatypes to check if the data is correct.
    P,I,F raise a CONVERT-Exception that i can handle.
    A move to N-field raise no exception but put a wrong values to the N-field.
    Example:
    Charfield contains ' 1  1 0000', N-field is '110000'.
    A compare in the program like
    IF C-Field <> N-Field raise a exception that can't be catched by TRY-Catch.
    How can i check if the field is correct?
    Anybody understand me and have an idea?
    Regards,
    Stefan

    Hi Christian and Rich,
    thank you for your fast reply.
    I've written one TRY method that has a import-parameter with TYPE ANY and a import-parameter for the target field.
    The target field can be everything like P,I,F,N,C,D.
    The method checks if the value can be converted into the target field and avoid a shortdump, when the flatfile contains bad data.
    So I have to get the type by
    cl_abap_typedescr=>describe_by_data
    and then make your suggested Conatins-only-check if it is a
    cl_abap_typedescr=>typekind_num
    Thanks,
    Stefan

  • Convert from CHAR to HEXA

    Hi Experts ,
    i am working  in Upgradation project. In one of the program i  came   across  Moving  Char  value to Hexa value. More over , the char(  CHAR(1)  )   value is passing dynamically to Hex.
    Is there any function module to solve this issue. i got  CHAR_HEX_CONVERSION  but it is not working.
    Thank you.
    Regards,
    Kiran.

    Hello,
    Does the method CONVERT of class CL_ABAP_CONV_IN_CE help ?
    A few links which might interest you :
    [Conversion xstring to string|Conversion xstring to string]
    [http://help.sap.com/saphelp_nw70/helpdata/en/ba/78d3c747b24546ab1c1499a054d8a5/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/ba/78d3c747b24546ab1c1499a054d8a5/content.htm]
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 21, 2010 5:41 PM

  • Convert from char to int

    hey
    I've an input string ("1234")
    What i need to do is to fill a matrix 2*2 with the input string.
    I thought about running over the string, and by str.charAt(ind) to get a needed charters, but the question is ho do i convert charAt result to int?
    tanx

    igalep132 wrote:
    hey
    I've an input string ("1234")
    What i need to do is to fill a matrix 2*2 with the input string.
    I thought about running over the string, and by str.charAt(ind) to get a needed charters, but the question is ho do i convert charAt result to int?
    tanxThat's kinda vague. Do you mean convert '1' into the integer value 1 or convert '1' into the ASCII integer value of 49?
    Here's how to do the first:
    String one = "8";
    String two = "3";
    String numbers = "0123456789";
    int oneInt = numbers.indexOf(one);
    int twoInt = numbers.indexOf(two);
    System.out.println("oneInt = " + oneInt);
    System.out.println("twoInt = " + twoInt);If you meant the latter then ...
    char c = 'c';
    int cInt = (int)c;

  • Need you help !!! -- Convertion from Char to Date

    Dear experts:
    I am new to abap and here is one thing need your help:
    Currently I have a char type field defined in the source table, after I retrive this field into my work area, I need to convert it to Date type and then calculate the last day of this date.
    for example: WA_TEST-CHAR = '20100801'. This value in orignal ECC table is char type.
    Then How can I convert this value to a date type, and calculate its last day?
    My expected result is "20100731".
    BTW, does anybody know how to convert a date type field to a number type field like To_number() or something?. If I need to get the period between 2 different date, how can I get this?
    Any post will be appreciate and thank you all in advance!
    Best Regards
    Tim
    Moderator message: sorry, date conversion and date calculation are very basic and FAQs, please search for available answers, also read ABAP online documentation.
    locked by: Thomas Zloch on Aug 23, 2010 9:56 AM

    Hi,
    For your question:
    BTW, does anybody know how to convert a date type field to a number type field like To_number() or something?. If I need to get the period between 2 different date, how can I get this?
    use this FM FIMA_DAYS_AND_MONTHS_AND_YEARS.
    regards,

  • Convert from char to ASCII code

    anyone can advice me on this program why the conversion cannot be done? Thank in advance.
    String charInput = JOptionPane.showInputDialog (null, "Enter a character", "Finding ASCII code", JOptionPane.QUESTION_MESSAGE) ;
    answer = Integer.parseInt (charInput) ;

    Try this code out:
    import javax.swing.JOptionPane;
    public class Crap {
        public static void main (String[] args) {
            String charInput =
                    JOptionPane.showInputDialog (null,
                    "Enter a character", "Finding ASCII code",
                    JOptionPane.QUESTION_MESSAGE) ;
            JOptionPane.showMessageDialog (null, charInput, "Collected Data",
                    JOptionPane.INFORMATION_MESSAGE );
    //        answer = Integer.parseInt (charInput) ; //<-- What datatype?
            String answer = "You never declare the data type for you answer.\n" +
                    "JOptionPane returns a string of what the user enters.\n" +
                    "The first?  The last? Some other position?\n" +
                    "A String != a character.\n" +
                    "Which character of the string do you want to convert?\n" +
                    "You need to do a lot more work on this problem.";
            JOptionPane.showMessageDialog (null, answer,
                    "The Java Compiler hates your code because...",
                    JOptionPane.OK_OPTION, null);
    }http://leepoint.net/notes-java/GUI/containers/20dialogs/10joptionpane.html
    Cheers !
    JJ

  • Convertion from CHAR to ASCII

    Hello,
    Please tell me how we can change a character to ASCII foormat.
    Points will definitltely be given to the useful answers.
    thanks.

    Hi,
    Check following link:
    [http://www.sap-img.com/abap/how-can-i-get-ascii-value-of-any-letter.htm]
    or
    Check function module:
    SCP_TRANSLATE_CHARS
    Regards,
    Harsh.

  • Why will CS4 not open DNG files converted from Olympus E-M1 raw files?

    For several years I have been able to use the DNG Converter to convert .ORF raw files from my Olympus E-M1 and then open them for processing in CS4. Suddenly CS4 quit recognizing these DNG files saying "Photoshop could not complete your request because Photoshop does not recognize this type of file"
    I have not changed any preferences. I'm using E-M1 v3.0, DNG Converter v8.3.0.141 on a Mac. I have deleted DNG converter several times, even reinstalled an earlier version but nothing changes.
    However, CS4 will open DNG files converted from Pentax raw .PEF files from my K-5. Weird. It's the Olympus raw DNG conversions that won't open.
    I can view the DNG converted files in question in Mac's Preview just fine but not CS4. Any ideas will be appreciated.

    Be sure the DNG Converter's compatibility is set to provide support for your version of ACR:
    Benjamin

  • How can I convert from Modbus raw data to engineering units using a formula?

    Within Lookout, I have several Modbus numerical input types that do not have a linear corespondence to the Engineering values they represent.  How can I display these values accurately using a formula to convert from the raw data to an engineering value?

    I don't quite understand your reply.  I'm using Lookout 6.0.2, logged in as Administrator, in Edit Mode.  The Modbus object is named RTU06_SAV.  The Active member is 30002 with an alias of SAVfmSMT_RSL.
    Following your instructions, I opened Object Explorer and right-clicked on RTU06_SAV. 
    This opened a menu containing:  Refresh, Cut, Copy, Rename, Delete, Edit connections..., Edit Data Member Configuration, Configure Network Security and Properties.
    I assumed that I should select Edit Data Member Configuration, but maybe I'm wrong. 
    Within Data Member Configuration I can set up Linear Scaling between Raw data and Engineering data.  I know how to do that, but what I need to know is how to convert Raw data to Engineering data using a formula representing a non-linear transformation (such as a converion to a logarithmic value or perhaps a formula derived by fitting the formula to a curve on a calibration chart).
    Once I have this my Engineering data can be represented on a control panel as both a numeric value AND as a correctly reading Gauge.  It can also be properly represented on a HyperTrend graph.
    What do you suggest?

  • Convert from jchar to char

    Does any one know how to convert from jchar to char?
    Thank you,

    does it have to be a jchar or can you get a jstring? is it possible to convert your jchar into a jstring before you pick it up in jni? if you can get a jstring you can use the function
    const char* GetStringUTFChars(jstring str, jboolean *isCopy)
    you would get back a character pointer that points to a single char plus the null terminator

  • Convert from int to char

    Hi,
    How can I convert from an int to char?

    The challange is to convert from int to String without using any API or automatic conversionWoah, what a challenge ! Why ?
    Anyway, what about a recursive call and switch statement. Something likepublic String intToString(int n) {
        if(n<0) {
            return "-"+intToString(-n);
        if(n<10) {
            return getStringDigit(n);
        else {
            return intToString(n/10) + getStringDigit(n%10);
    private String getStringDigit(int n) {
        switch(n) {
            case 0:
                return "0";
            // etc.
    }

  • Reg: convertion of char format to RAW.

    hii all,
              I am trying to convert the char data of length 22 to RAW16(output length 32) in the below manner.
      data : ip type char22,
             op type RAW16.
      field-symbols: <ptr_y> type RAW16.
      assign ip to <ptr_y> casting.
      move <ptr_y> to op.
      write : op.
    am i doing the correct way,for converting? bcos i am not getting the output that is requried.
    help me in this regards.
    with regards,
    sandeep akella.

    Hi,
    Uninterpreted byte stringis RAW. Fields of type RAW may have only a maximum length of 255 in tables.
    Declare as String variable and move in to this variable.
    Regards
    Md.MahaboobKhan

Maybe you are looking for

  • Auto detect missing java plugin with Netscape

    How do I get Netscape to automatically detect that it is missing the Java Plugin, and go to Sun's download page? I have IE 5.5 and Netscape 7 installed. My html looks like this: <OBJECT classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase

  • Oracle Text iwth Oracle TimesTen

    Hi! I'm trying to use Oracle Text with Oracle TimesTen In-Memory. In this customer, we are using Oracle Text to index the names of the company clients. There are about 13 million names to index. We're trying to speed up even more the search using Ora

  • Flash wont work

    Flash doesn't work. Says I need to update to current version. I am. Addons shows three versions of flash. Internet Explorer works better than firefox now (the shame!) Help me right this wrong.

  • Where is the top banner picture of the "default " server homepage stored?

    Hey! I have set up a Mac Mini Server Snow Leopard and it's running fine. I'm hosting my own page and I kind of like the "look" of the "server hompage"/update where the three boxes to choose from appear. The only thing I would like to do is to change

  • Will appleworks function if I upgrade to os 10.6 or higher?

    I am currently using an Imac with OS 10.5.8. I use appleworks quite a bit and have thousands of files created with this program. I have heard that if I upgrade to 10.6 or higher that appleworks will not be supported. I can not afford to lose these fi