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 interface

Former Member
0 Likes
556

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

2 REPLIES 2
Read only

Former Member
0 Likes
422

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

Read only

0 Likes
422

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