Skip to Content
avatar image
Former Member

regarding one FM "text_convert_tex_to_sAP'

hi friends

data: begin of itab occurs 0,

itab(255) type c,

end of itab.

data: var1 type TRUXS_T_TEXT_DATA.

constants: file type RLGRAP-FILENAME value 'C:\DOCUMENTS AND SETTINGS\JANAGAR_S\DESKTOP\IDOCSTATUS.TXT' .

CALL FUNCTION 'TEXT_CONVERT_TEX_TO_SAP'

EXPORTING

  • I_FIELD_SEPERATOR =

  • I_LINE_HEADER =

i_tab_raw_data = var1

I_FILENAME = file

tables

i_tab_converted_data = itab

  • EXCEPTIONS

  • CONVERSION_FAILED = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

in this function module what is the use of *itab_raw_data* _ parameter

can any one give me the exact purpose of that

because documentation is not available

i am going to use this function module for uploading the contents of file

to internal table at background because my requirement is to upload a file from shared folder . and the information of the file is available is idoc

and doing program for that as it not possible to use front end services this case i am using this

pls help me in this issue

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 21, 2008 at 08:47 AM

    Hi..,

    RAWDATA is the mandatory parameter of that function module, where you have to pass the variable with character type 4096 length.

    For this define this variable in your program:

    data: variable(4096).

    But why, we are passing this parameter?

    Hope this is for some where internal arrangement of data.

    [Find discussion on this rawdata in this thread|Upload file from excel sheet;

    Thanks,

    Naveen.I

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2008 at 08:48 AM

    Hi,

    i_tab_raw_data will be of type TRUXS_T_TEXT_DATA.

    Follow this Thread:

    csv-to-internal-table

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2008 at 08:52 AM

    self answered

    Add comment
    10|10000 characters needed characters exceeded