‎2007 Jun 11 8:07 AM
SAP_CONVERT_TO_TEX_FORMAT
When i m using this function module to convert my internal table data in to text format
i m getting a dump :
Short text
The current statement is only defined for character-type data objects.
Please help me out
‎2007 Jun 11 8:10 AM
Hi
See that all your Internal table fields are of <b>CHAR</b> type
if not convert them to CHAR type and then use this fun module
it will work.
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jun 11 8:13 AM
if i m using many fields how will it be posible to change aal the fields to char type
like there can be more than 100 fiels in a table
‎2007 Jun 11 8:10 AM
hi,
we need to pass standard table as input check which table u r passing.
‎2007 Jun 11 8:14 AM
‎2007 Jun 11 8:11 AM
My Code looks some thing like this
TYPE-POOLS : truxs.
DATA : gt_text TYPE truxs_t_text_data.
SELECT * FROM vbak INTO TABLE lt_vbak.
CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
EXPORTING
i_field_seperator = '#'
TABLES
i_tab_sap_data = lt_vbak
CHANGING
i_tab_converted_data = gt_text.
‎2007 Jun 11 8:27 AM
Hi,
try using dataset then,
OPEN DATASET outfile_fcsr FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT lt_vbak into wa_vbak.
TRANSFER wa_vbak TO outfile_fcsr.
ENDLOOP.
CLOSE DATASET outfile_fcsr.
where outfile_fcsr is file path.
Regards,
Sooness.
‎2007 Jun 11 8:31 AM
Hi sooness,
the thing is i do not want to save my file to the application server.
i need to pass this file to the LInux server through FTP.
will be using ftp_connect, ftp_command, ftp_r3_to_server commands after this