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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.