Skip to Content
avatar image
Former Member

problem in uploading a file

Hi All,

I did one application on file upload using the tutorial given in the saptechnical.com.

But i am unable to run my application due to the function module 'HR_KR_XSTRING_TO_STRING'

that does not exist.Can anybody plz tell me the name of the function module to convert xstring to string or an idea to solve this problem.

Thanks in Advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 24, 2009 at 11:39 AM

    Use this FM

    Data: 
            mara_string  TYPE string,
            mara_xstring TYPE xstring.
    
      CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text   = mara_string
        IMPORTING
          buffer = mara_xstring.

    Greetings

    Prashant

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 24, 2009 at 12:55 PM

    Hi Srilatha,

    The Function module - HR_KR_XSTRING_TO_STRING u hv mention for converting the xtring to string will be available in ECC 6.0.

    Or you can also use the class - CL_ABAP_CONV_IN_CE.

    DATA: l_convin TYPE REF TO cl_abap_conv_in_ce,

    l_msgstr TYPE string.

    TRY.

    CALL METHOD cl_abap_conv_in_ce=>create

    EXPORTING

    encoding = im_encoding "optional

    input = im_xstring

    RECEIVING

    conv = l_convin.

    CALL METHOD l_convin->read

    IMPORTING

    data = ex_string.

    CATCH cx_root.

    endtry.

    Regard

    Manoj Kumar

    Add comment
    10|10000 characters needed characters exceeded