cancel
Showing results for 
Search instead for 
Did you mean: 

Refreshing folder in SAP MII

Former Member
0 Kudos

Hi Expert,

I m trying to write .txt file using write file action block in transaction in SAP MII and m opening that file in browser.

But problem is coming when i m updating txt file, m unable to get updated content in browser.If i m manually

refreshing folder which containing .txt file,that time it's working fine.

Is there any action block or any dyanamic way is available for refreshing folder?

Thank you for any help in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I've never had refresh problems downloading .txt files using "web://" prefix using "Write File". But once I had refresh problems downloading .zip files generated by "Create Zip Archive", even using "web://" prefix. Actually, the browser was caching files.

That was solved by adding a timestap parameter to the created file url. The parameter forces the browser to ignore its cache. Example:

Original URL

HTTP://MII:50000/XMII/CM/MY_PROJECT/MY_FILE.ZIP

Timestamped URL

HTTP://MII:50000/XMII/CM/MY_PROJECT/MY_FILE.ZIP?timestamp=2011-10-18T:14:16:10

This technique is used in other contexts too, like force refreshing css and js files.

Regards

Former Member
0 Kudos

Hi davidflam,

I have tried solution which you suggested and it's helped me for saving file with timestamp,which is one my requirement.

Thank you for help.

regards,

Neha

jcgood25
Active Contributor
0 Kudos

What path are you using to save the txt file? If you are using the db prefix instead of web it will not auto publish the file to the WebAS file path (it will only go into the database).

Former Member
0 Kudos

Hi Jeremy ,

I have tried solution which you suggested and it's working fine.

Thank you for help.

regards,

Neha