Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Unable to call URL due to space in url parameters

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

  http://xxxxxxxxxxxxxxxxxxxxx/sap/bc/gui/sap/its/webgui?~transaction=*ZPMS_UPLOAD%20P_DOCID=LV_AP_DOC';P_FNAME=LV_FILE_NAME

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

Tags:
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question