Code: Alles auswählen.
types:
begin of typ_kosten_ausw,
objekt type ps_posid,
objnr type j_objnr,
stufe type ps_stufe,
pspnr type ps_posnr,
summe type zco_summ_element,
plan type zco_plan,
ist type zco_ist,
obligo type zco_obligo,
verfgt type zco_verfgt,
verfgb type zco_verfgb,
end of typ_kosten_ausw,
typ_tab_kosten_ausw type standard table of typ_kosten_ausw.
data:
gt_kosten_ausw type typ_tab_kosten_ausw.
open dataset lv_file_name_final for output in text mode encoding NON-UNICODE message mess.
loop at gt_kosten_ausw assigning field-symbol(<fs_csv>).
transfer <fs_csv> to lv_file_name_final.
endloop.
* Schließe Text-Datei
close dataset lv_file_name_final.
Code: Alles auswählen.
transfer <fs_csv> to lv_file_name_final
Code: Alles auswählen.
transfer: <fs_csv>-objekt to lv_file_name_final,
<fs_csv>-objnr to lv_file_name_final,
...
<fs_csv>-verfgbto lv_file_name_final.
Code: Alles auswählen.
data(stringfeld) = <fs_csv>-objekt && <fs_csv>-objnr && ...
transfer stringfeld to lv_file_name_final.