Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue While preparing URL in SAP Server

Former Member
0 Likes
862

Dear All,

I am calling an External Servelet by preparing its  URL from SAP server so as to hit another External server.

For this, I am using

CALL METHOD cl_http_client=>create_by_url

For e.g.

CONCATENATE 'http://' crep_http-http_serv ':' crep_http-http_port 'Servlet/servlet/Servlet?AppServerType=' apptype '&AppServerIP=' appip '&AppServerPort=' appport INTO p_host.

However when i check my Logs of Servlet, I have found that Servlet is receving IP as

127%2e0%2e0&2e1 instead of 127.0.0.1

Similarily Document Name as test&2epdf instead of test.pdf

In all, SAP is sending . in Encoded format.

Can anyone tell me what all settings need to be maintained so as to avoid the above issue and dot should go as dot only



7 REPLIES 7
Read only

Former Member
0 Likes
755

Hi,

   Try this method

CL_HTTP_CLIENT=>ESCAPE_URL( p_host )

Regads,

Praveen


Read only

0 Likes
755

Hi Can you tell me Why One SAP Server when prepares URL sends in a correct format i.e.

127.0.0.1 is going as 127.0.0.1

but another SAP Server is not working same way. There I am receiving

127%2e0%2e0&2e1 instead of 127.0.0.1

Similarly with Document Name also

Read only

0 Likes
755

Hi Suruchi,

           we are getting these ip address and port number from constant variables. you can ask your basis people they may know about these settings in ICM.

Regards,

Praveen

Read only

0 Likes
755

Hi Suruchi,

           we are getting these ip address and port number from constant variables. you can ask your basis people they may know about these settings in ICM.

Regards,

Praveen

Read only

0 Likes
755

Hi Suruchi,

           we are getting these ip address and port number from constant variables. you can ask your basis people they may know about these settings in ICM.

Regards,

Praveen

Read only

0 Likes
755

Hi Suruchi,

           we are getting these ip address and port number from constant variables. you can ask your basis people they may know about these settings in ICM.

Regards,

Praveen

Read only

0 Likes
755

Thanks for the update. Any Idea what are those ICM Settings since we dont have BASIS Consultant.