Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

regarding one FM "text_convert_tex_to_sAP'

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

naveen_inuganti2
Active Contributor
0 Kudos

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|;

Thanks,

Naveen.I

3 REPLIES 3

naveen_inuganti2
Active Contributor
0 Kudos

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|;

Thanks,

Naveen.I

Former Member
0 Kudos

Hi,

i_tab_raw_data will be of type TRUXS_T_TEXT_DATA.

Follow this Thread:

Former Member
0 Kudos

self answered