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

how to call web address in modulepool program

Former Member
0 Likes
509

how to call web address in module pool programm screen, when user press the Customer Loading Profile button in module pool screen 1100, it needs to call this web address : http://intra.spoornet.co.za/newintranet/Departments/gfb_pages/default.htm/

3 REPLIES 3
Read only

anup_deshmukh4
Active Contributor
0 Likes
440

Use the FM CALL_BROWSER and pass your URL in the URL parameter of the FM

Hope it helps.

Thaks and regards,

Anup

Read only

Former Member
0 Likes
440

Hi,

in the PAI of that screen.

Data lv_href(2048) type C value ' Ur Link'.

then use this FM

CALL FUNCTION 'DSVAS_DOC_WS_EXECUTE_50'

EXPORTING

COMMANDLINE = lv_href

PROGRAM = 'iexplore'

EXCEPTIONS

FRONTEND_ERROR = 1

NO_BATCH = 2

PROG_NOT_FOUND = 3

ILLEGAL_OPTION = 4

GUI_REFUSE_EXECUTE = 5

OTHERS = 6

With Regards,

Sumodh.P

Read only

Former Member
0 Likes
440

Hello,

you can try something like

--create a HTML container on your module pool screen

--create a variable and store the web address in this variable say doc_url.

--create custom container variable say my_container type ref to cl_gui_custom_container

--create object my_container

exporting

container_name = 'HTML'.

--create html controller variable say html_control type ref to cl_gui_html_viewer

--create object html_control

exporting

parent = m_container.

--then call the method show_url passing the varaibel holding the web address

-- call method html_control->show_url

exporting

url = doc_url.

Hope this helps

Regards

Sachin