Wednesday, December 29, 2010
File needs to be uploaded
========================= CGH;6703000002;1 CGH;6707100006;1 =========================
REPORT ztest_notepad. TYPE-POOLS:truxs. DATA: raw_data TYPE truxs_t_text_data. DATA: BEGIN OF it_nfal OCCURS 0, einri TYPE nfal-einri, falnr TYPE nfal-falnr, falar TYPE nfal-falar, END OF it_nfal. START-OF-SELECTION. CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = 'C:\Documents and Settings\Administrator\Desktop\nfal.txt' filetype = 'ASC' TABLES data_tab = raw_data. CALL FUNCTION 'TEXT_CONVERT_CSV_TO_SAP' EXPORTING i_field_seperator = ';' i_tab_raw_data = raw_data TABLES i_tab_converted_data = it_nfal. LOOP AT it_nfal. WRITE:/ it_nfal. ENDLOOP.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Sending email with pdf attachment
- ABAP - Step by step tutorial on Smart Forms - Template Node
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
Thank you! It worked perfectly. Prior to this I tryed the function KCD_CSV_FILE_TO_INTERN_CONVERT but the problem was the field Value with only 32 pos.
ReplyDeleteWith this approach, We have 4096 pos per row to upload.
Regards.