Iconet Services Ltd - SAP ABAP / SAPScript Consultant

Home Page
Company Profile
Search Internet for SAP Information
Subscribe to SAP R3 Mailing list
Sample ABAP Programs
ABAP How to
General Purpose layout set

Convert Internal Table to CSV format

CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'

EXPORTING

i_field_seperator = ','

TABLES

i_tab_sap_data = itab_file

CHANGING

i_tab_converted_data = text_ln.

CLEAR txt_line.

sort text_ln.

LOOP AT text_ln INTO txt_line.

wa_csv-text = txt_line.

APPEND wa_csv to itab_csv.

ENDLOOP.

Back to How To list