2010 Aug 24 12:38 PM
Hi All,
We want a hyperlink on a module pool screen. We tried putting a button and then callign the url through an FM. But we dont want a button. We want a typical hyperlink to be displayed on the screen.
Please provide your solutions.
Thanks,
Tirth
2010 Aug 24 1:24 PM
Hi,
Try to create a "Text field" on your screen(Say TEXT) . Check the "Responds to double click" on Display Tab.
In the element list , for the field you just now created (TEXT) , click on properties , and for Hyperlink click the Attributes
Push button. Give the URL here , say "WWW.SDN.SAP.COM" in value direct radio button.
Now write the coding in PAI ...
case sy-ucomm.
when 'TEXT'.
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
URL = 'WWW.SDN.SAP.COM'
WINDOW_NAME = ' '
NEW_WINDOW = ' '
BROWSER_TYPE = BROWSER_TYPE
CONTEXTSTRING = CONTEXTSTRING
EXCEPTIONS
FRONTEND_NOT_SUPPORTED = 1
FRONTEND_ERROR = 2
PROG_NOT_FOUND = 3
NO_BATCH = 4
UNSPECIFIED_ERROR = 5
OTHERS = 6
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
when OTHERS.
endcase.
Regards,
Srini.
Hi Srini, was checking your post on hyper link in module pool and trying to achieve the same but in spite of following the same steps i am unable to achieve the correct result.
I have done exactly the same as mentioned above.
Can you let me know if i am missing something.
Thanks
2010 Aug 24 1:24 PM
Hi,
Try to create a "Text field" on your screen(Say TEXT) . Check the "Responds to double click" on Display Tab.
In the element list , for the field you just now created (TEXT) , click on properties , and for Hyperlink click the Attributes
Push button. Give the URL here , say "WWW.SDN.SAP.COM" in value direct radio button.
Now write the coding in PAI ...
case sy-ucomm.
when 'TEXT'.
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
URL = 'WWW.SDN.SAP.COM'
WINDOW_NAME = ' '
NEW_WINDOW = ' '
BROWSER_TYPE = BROWSER_TYPE
CONTEXTSTRING = CONTEXTSTRING
EXCEPTIONS
FRONTEND_NOT_SUPPORTED = 1
FRONTEND_ERROR = 2
PROG_NOT_FOUND = 3
NO_BATCH = 4
UNSPECIFIED_ERROR = 5
OTHERS = 6
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
when OTHERS.
endcase.
Regards,
Srini.
2019 Sep 20 1:58 PM
Hi Srini, was checking your post on hyper link in module pool and trying to achieve the same but in spite of following the same steps i am unable to achieve the correct result.
I have done exactly the same as mentioned above.
Can you let me know if i am missing something.
Thanks
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |