‎2009 Jun 01 10:39 AM
I have data in a string ( very large volume ) i need to write this data into file in application server.
Could you suggest me a FM ..??
‎2009 Jun 01 10:41 AM
Hi,
Refer following code
*--Local Variables
DATA : lv_file TYPE string. "File name
*--Clear file
CLEAR : lv_file.
*--Concatanate filename and path fort application server
CONCATENATE p_path gc_slash p_file gc_txt INTO lv_file.
*--Open dataset for output mode to transfer the data
OPEN DATASET lv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
IF NOT gt_file[] IS INITIAL.
LOOP AT gt_file INTO gs_file.
*--Transfer data into file to downlaod
TRANSFER gs_file TO lv_file.
*--Clear work area
CLEAR : gs_file.
ENDLOOP.
*--File is downloaded successfully to Application Server
MESSAGE s081.
ENDIF.
ENDIF.
Regards,
prashant