‎2008 Aug 25 6:44 AM
Hi all,
I have little bit of confusion about file save to the application server using data set. I use this code:
OPEN DATASET gw_file FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE.
IF sy-subrc NE GC_0.
MESSAGE a324(bf00) WITH gw_file.
ENDIF.
LOOP AT gt_tmp_filedata INTO lw_tmp_filedata.
TRANSFER lw_tmp_filedata-data TO gw_file.
ENDLOOP.
CLOSE DATASET gw_file.
is it right to save.
Suggest.
Thanks
Sanket sethi
‎2008 Aug 25 6:50 AM
Its perfectly all right.You can save file at application server.
‎2008 Aug 25 6:49 AM
Hi ,
This the procedure for storing the data on to application server.
OPEN DATASET file_dept FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
loop at itab.
TRANSFER lv_dept TO file_dept.
CLEAR lv_dept.
ENDLOOP.
CLOSE DATASET file_dept.
ENDIF.
‎2008 Aug 25 6:50 AM
Hi
There is no need to write a code. You just go to CG3Z tcode and give the source file on front end and target file on application server and press shift+f2.altenatively use this fm ''C13Z_FRONT_END_TO_APPL''
DATA: file TYPE string VALUE `test.dat`.
OPEN DATASET file FOR OUTPUT IN TEXT MODE
ENCODING DEFAULT
WITH SMART LINEFEED.
TRANSFER `1234567890` TO file.
CLOSE DATASET file.
Regards
Divya
‎2008 Aug 25 6:50 AM
Its perfectly all right.You can save file at application server.