cancel
Showing results for 
Search instead for 
Did you mean: 

Attaching a URL which does not start with HTTP / HTTPS in SAP TM

12-12-2013 3:37 PM
bharath_k6 Active Participant
627 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Dear Experts,

I am trying to insert a new URL to a Attachments table in FWO / FRB application.

My URL neither start with HTTP  nor HTTPS (Ex: Z3://searchsmartstart...). while I am trying to insert such URL, I am getting an error message 'URL not valid.Check if the URL contains the protocol (HTTP/HTTPS). Message ID - /SCMTMS/UI_MESSAGES and message number 088.

After some analysis, I have understood that WebDynpro ABAP framework does not accept such URL.

Could you please guide, is there any other way of doing it? The URL which I am trying to access is of SMART CLIENT.

Thanks in advance for your reply.

Thanks,

Bharath.K

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Bharath,

Yes, you can achieve the same via URL redirection. Please follow the below steps.

1.Create a service in SICF e.g. sap/bc/redirect_z3 in your SAP TM system and follow following steps.

2. Create a class with interface IF_HTTP_EXTENSION e.g. ZCL_REDIRECT_URL

3. Maintain  class created in step 2 into the Handler List of the service created in step 1.

4. In class ZCL_REDIRECT_URL Method IF_HTTP_EXTENSION~HANDLE_REQUEST write below code

                    Data: lv_target type string.

        

                       lv_target = 'Z3://searchsmartstart.......'

                      server->response->redirect( url = lv_target ).

5. You can also read the parameter from the source URL with below program code

                

CALL METHOD server->request->get_form_data

    EXPORTING

      name = 'PAR1'

    CHANGING

      data = lv_par1.

6. Now attach the URL of your service created in step 1(Which will be http/https URL) to Attachments table in FWO / FRB application with parameter you want.

Now once you click this URL , Mehtod IF_HTTP_EXTENSION~HANDLE_REQUEST in Handler list class will execute here you can read the parameter as mentioned above and form a target URL and redirect to you intended target .

Thanks, Pravin

              

Answers (0)