DATA: it_file_content TYPE rsanm_file_table. DATA: lv_file TYPE string VALUE '/usr/sap/Test.txt'. TRY. cl_rsan_ut_appserv_file_reader=>appserver_file_read( EXPORTING i_filename = lv_file CHANGING c_data_tab = it_file_content ). LOOP AT it_file_content ASSIGNING FIELD-SYMBOL(<fs_line>). WRITE: / <fs_line>. ENDLOOP. CATCH cx_root INTO DATA(e_text). WRITE: / e_text->get_text( ). ENDTRY.
Kategorien
-
Neueste Beiträge
- [SAP Fiori] OK-Code Feld in Fiori-Apps anzeigen
- [ABAP] Auswahl eines Transportauftrags (mit Anlegen)
- Spanische Vokabeln
- Deutsch
- Englisch
- Spanisch
- [ABAP] Verschieben von Nodes per Drag & Drop innerhalb einer Baumansicht (CL_COLUMN_TREE_MODEL)
- [SAP] Screen Personas
- Weltall / Raumfahrt
- [CDS-Views] Virtuelle Elemente: Aufruf von ABAP-Coding aus CDS-Views heraus