‎2009 Nov 30 6:55 PM
Hi ExpertsAll,
I am extracting data from sap and writing in to two different files at a time.After writing data to the fiile contents are viewed only once.Next time while trying to open it is showing message"file can't be opened.Can't we view application server file contents many times?
Regards
SRI
‎2009 Nov 30 7:03 PM
Hi,
You need to call the below statement twice for two files....
* Opening DataSet to output file in application Server.
OPEN DATASET w_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
LOOP AT t_mail_data.
TRANSFER : t_mail_data-text TO w_file.
ENDLOOP.
CLOSE DATASET w_file.
ELSE.
* File Not Created in Application Server
EXIT.
ENDIF.
regards,
Prabhudas
‎2009 Dec 01 2:36 AM
Hi,
File is created at application server.Once I have opened and seen.But next time when i try to open to see the contents it is saying that "Unable to open the file".WHat would be the reason?
Regards
SRI