on 05-03-2010 9:47 AM
Hi All.
I need to convert the URL that comes as a https to http.
This URL is dynamic and so im not able to give the 'To' value when trying to use the substring functionality.
If i have a URL as https://forums.sdn.sap then i need to convert this as http://forums.sdn.sap and process it.
Is there any UDF available for this functionality?
Kindly help....
Thanks in advance.
Sai
Hi,
Try this !!!
public String getHTTP(String a, Container container)
{
return a.replace("https","http");
}
Also you can use standard text function replaceString.
Regards,
Sunil Chandra
Edited by: sunil chandra on May 3, 2010 2:35 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you made some basic mistake creating the udf or you pasted the whole code I provided. You just need to copy the two lines.
a = a.replace("https","http");
return a;
I would suggest you to check out http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm for basic steps to create udf.
Regards,
Sunil Chandra
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.