Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

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

$
0
0

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

 

 

              


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>