i have a requirment where i need to transfer my output file from alv/classical into application server path ie 'd:\old\scbbank\auto.txt'
i have used this particular code but its showinf file unable to create..
its not gettinf moved from it_final to wa_final nor from wa_final to my filename for application server..
this is my code please help me out in this..
DATA : LV_DATA TYPE STRING,
GV_FILE TYPE C.
GV_FILE =' D:\OLD\SCBBANK.txt'.
OPEN DATASET gv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
MESSAGE 'Unable to create file' TYPE 'I'.
LOOP AT IT_FINAL INTO WA_FINAL.
SEPARATED BY ','.
TRANSFER LV_DATA TO GV_FILE.
CLOSE DATASET GV_FILE.