Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Outbound file save on application server

Former Member
0 Likes
544

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
501

Its perfectly all right.You can save file at application server.

3 REPLIES 3
Read only

Former Member
0 Likes
501

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.

Read only

Former Member
0 Likes
501

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

Read only

Former Member
0 Likes
502

Its perfectly all right.You can save file at application server.