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

Hyperlink creation in module pool screen

Former Member
0 Likes
1,870

Hi All,

I want to make a field in the custom screen is to be hyperlink enabled.

If user click on this field then an external website will be opened.

How to achieve this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,011

Hi,

For creating hyperlink in a module pool program ....

u can either create an alv list in that u can make a col or a field of the table a hyperlink

and call FM CALL_BROWSER

for that u need to use structure LVC_S_HYPE like u use for creating field catalog....

where u can pass the component HREF of LVC_S_HYPE to the field...

or check out the following wiki

[https://wiki.sdn.sap.com/wiki/display/ABAP/HYPERLINKinALV]

Hope u got the idea ...

Best of Luck !!!

Regards

Ravi

4 REPLIES 4
Read only

Former Member
0 Likes
1,012

Hi,

For creating hyperlink in a module pool program ....

u can either create an alv list in that u can make a col or a field of the table a hyperlink

and call FM CALL_BROWSER

for that u need to use structure LVC_S_HYPE like u use for creating field catalog....

where u can pass the component HREF of LVC_S_HYPE to the field...

or check out the following wiki

[https://wiki.sdn.sap.com/wiki/display/ABAP/HYPERLINKinALV]

Hope u got the idea ...

Best of Luck !!!

Regards

Ravi

Read only

Former Member
0 Likes
1,011

Hi,

In PBO, Create the Hotspot on the filed on which you wants to create hyperlink. In case if it is a button, you just have to add afunction code to it.

In PAI, check for the sy-ucomm or ok-code and call FM CALL_BROWSER accordingly, for example,

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

URL = 'www.sdn.sap.com '

Regards,

Rajneesh

Read only

0 Likes
1,011

Hi All,

Thanks to both of you.

I am able to create a list box and open URL from my custom screen.

Read only

Former Member
0 Likes
1,011

I am trying to open a website from a subscreen text field . I have set GUI Status with function code 'PICK' for F2 . The function module CALL_BROWSER is called at the PAI of the screen . But it is not working . When I am clicking on the text field with hyperlink,which I have brought by checking the ' Response to double click ' .,the cursor returns back to the first input field of the main screen.Pls advise.