on 08-06-2012 6:48 AM
Guys,
I need you all ideas on this.
I need to pass file name( generally file name contains spaces, right? ) as parameter in One URL.
I am calling URL using external window concept, but while calling it is throwing error , and it says fata error script ..... it means url contains spaces....
URL is
here lv_file_name is string contains file name say for ex:C:\Users\srinivassana\Documents and Settings.................
So while calling URL it is throwing error due to space in file name.
Thanks and Regards
Srinvias
No only the blanks but also the backslashes must be URL encoded.
blank = %20
\ = %5C
C:\Users\srinivassana\Documents and Settings\test.txt
C%3A%5CUsers%5Csrinivassana%5CDocuments%20and%20Settings%5Ctest.txt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the standard for all URLs, has nothing to do with SAP.
see also http://en.wikipedia.org/wiki/URL-Encoding )
When ever you are passing any URl take care that if there is any space then insert %20 in that space and then it would work.
Thanks
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think when we open any URL in which parameters are separated by space, the browser replaces each space with a specific character string. Something like %20. Just try executing the URL on your own, find this string and in your application replace spaces in file name with this string.
Hope this works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, this thread suggests that it could be browser issue as well.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.