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

Module Pool - Field with web-link

marcela_martinez
Participant
0 Likes
591

Hello friends,

I developed a screen which has an output field that contains a web-link (http://xxx.com/yyyyy). The point is thar user wants to "click" on that link and access it.

Do you know if exists any property for doing that?

Thanks and regards!

Marce.

2 REPLIES 2
Read only

Former Member
0 Likes
494

SAPHTML_DEMO1 this is the standard SAP delivered program with which we can browse  web links. May be you can get some idea with this program.

Regards

VEnk@

Read only

Former Member
0 Likes
494

Suppose input field name is  TEST_URL

in PAI you can check for the sy-ucomm or ok-code and then use following FM

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

   URL                          = TEST_URL.

Or

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.