cancel
Showing results for 
Search instead for 
Did you mean: 

error "Url May contain fatal script "

Former Member
0 Kudos

Hi Experts,

I am creating a web dynpro application .

Scenario : The application has two views .. The main view conatins 4 fields "Name", "Street1","Street2",City"". and one button "Locate".
Aftre clicking the "Locate " button, the second view will come, there it should show, "<Name> is looking fopr the place  <street1>, <street2>,,<city>. Click here to locate the place on google map (This one is a link to action)".. If that  "click here to locate the place on google map" is clicked, then it should go the google map page containg the url having the exact location address of the place that person is searching for..

Here in that click action method i am concatinating " hhttp://maps.google.co.in/maps?f=q&source=s_q&hl=en&geocode=&q=ttp://maps.google.co.in/maps?f=q&source=s_q&hl=en&geocode=&q=" lv_street1 lv_street2 lv_city into another variable lv_final_place .

No w i am calling the method "create_external_window" which is there in the class "IF_WD_WINDOW_MANAGER".. i am passing the url got after concatination of the above mentioned strings.. But while executing the application in the browser it is getting terminated throwing the error "URL http://maps.google.co.in/maps?f=q&source=s_q&hl=en&geocode=&q= 1st cross Vinayak Nagar Bangalore may contain fatal script".

Kindly tell me how to resolve this issue.

Regards,
Swarnadeepta

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,
Thanks for the response..

Regards,
Swarnadeepta

I checked the application.. And i found a conclusion, i don't know whether it's correct or not.
But i checked if i pass the texts as without space in the input field, then it's getting connected to the google map and showing the place.
With space it's throwing the same error mentioned above, "Fatal script"..

Former Member
0 Kudos

Hi,

I'm facing the same issue in URL with blanks. If you replace blanks (spaces) for %20 it will work. I've just did it and it works fine.

Regards,

Nelson Bertolino

Former Member
0 Kudos

Hi Nelson,

I too had done the same thing.. It was getting connected to google map page.. Some modifications are still needed in that application. like as a part of bussiness pupose , we should not enter the location as without space.. as because i am removing this space, even though it's getting conncted to the google map page but it's failing to locate the exact place.. and if i give space it's showing that error.

Regards,

Swarnadeepta.

former_member199125
Active Contributor
0 Kudos

Check below links

http://scn.sap.com/thread/1761082

Regards

Srinivas