cancel
Showing results for 
Search instead for 
Did you mean: 

Call web URL in ABAP class (eclipse ADT)

User_1443410
Explorer
276

I want to use a web link/ URL  (example link : https://www.sap.com) inside ABAP class in eclipse .But facing issues like call methods, cl_gui_frontend_services  and other function modules are not permitted. Calling Web URL directly into ABAP  class is possible? or any alternative methods are there ? pls provide a solution to this.

 

SAP S/4HANA Cloud ABAP Environment  BW SAP HANA Modeling Tools (Eclipse) 

#ECLIPSE   

Tomas_Buryanek
Active Contributor
What do you mean by "Call web URL" ? You want to display URL website in internet browser? Or do you want to call HTTP method (GET, POST...)?
User_1443410
Explorer
0 Kudos

If i have used https://www.sap.com in class (eclipse ADT) , then the sap page opened in web browser  after execution. I don't want this to be done from SAPUI5 based development. This is the requirement.

gregorw
Active Contributor
0 Kudos
Could you describe your requirement in more detail? Do you want to call the URL to get data that you process in ABAP? Or do you want a UI where Users can click the URL and open it?
User_1443410
Explorer
0 Kudos

Requirement :

 Check the use of URL in ABAP class in eclipse environment. 

steps :

Use any URL ( example :https://www.sap.com) inside  your ABAP class and execute it. After execution, the URL page is opened automatically in web browser. Don't need any data from that. Just open/call URL in web browser with the help of ABAP class. 

After the ABAP class execution, the URL page is opened in web browser (or) it is navigated to URL page . Work on possibilities related this.

Note : we must achieve this requirement in Class only. 

View Entire Topic
gregorw
Active Contributor

The S/4HANA Cloud ABAP Environment only allows you to create Service APIs that can be consumed using SAPUI5 applications or Console Applications that implement the Interface IF_OO_ADT_CLASSRUN. Both can't trigger your users browser directly to open a specific URL. 

Maybe you can not only describe what should be implemented but also why.