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 on module pool screen

Former Member
0 Likes
3,518

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,420

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.

2 REPLIES 2
Read only

Former Member
0 Likes
1,421

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.

Read only

Former Member
0 Likes
1,420

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