Application Development 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: 

Is it possible to create WEB SERVICE in SAP 4.7??

former_member190312
Active Participant
0 Kudos

Hi folks,

Is it possible to create WEB SERVICE in SAP 4.7??

Thanks

smita

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi sir,

Yes you can.

approach one:

from se80 open any bsp application , double clikc on a page and in the properites tab of the page you can find the server:port details.

approach 2.

use the following FM

CALL FUNCTION 'TH_GET_VIRT_HOST_DATA'

EXPORTING

protocol = 1

virt_idx = 0

LOCAL = 1

IMPORTING

hostname = server

port = port

EXCEPTIONS

not_found = 1

internal_error = 2

OTHERS = 3 .

there are couple of excellent weblogs by Thomas Jung on this subject.

Developing ABAP websevice

/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices

Consuming webservice from ABAP

/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap

and check out the all the other webservice related and other weblog by Thomas

/people/thomas.jung3/blog

here is the documentation of the was 6.20

https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=WebAS_620.htm

Alos try the Developer Areas -> Web Application Server -> Web Services.

With 6.20 every function module that is rfc enabled is exposed automatically as web service. for example if you have a FM named ZTEST you can access the wsdl for that service via http://<hostname>:<portnumber>/sap/bc/soap/wsdl11?services=ZTEST&sap-client=<client>&sap-user=<username>&sap-password=<password>

where hostname = server name, portnumber = 8001 for example (to check from http port parameter), client/username and password from the R3 system

thanq

if found useful please award points.

2 REPLIES 2

Former Member
0 Kudos

hi sir,

Yes you can.

approach one:

from se80 open any bsp application , double clikc on a page and in the properites tab of the page you can find the server:port details.

approach 2.

use the following FM

CALL FUNCTION 'TH_GET_VIRT_HOST_DATA'

EXPORTING

protocol = 1

virt_idx = 0

LOCAL = 1

IMPORTING

hostname = server

port = port

EXCEPTIONS

not_found = 1

internal_error = 2

OTHERS = 3 .

there are couple of excellent weblogs by Thomas Jung on this subject.

Developing ABAP websevice

/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices

Consuming webservice from ABAP

/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap

and check out the all the other webservice related and other weblog by Thomas

/people/thomas.jung3/blog

here is the documentation of the was 6.20

https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=WebAS_620.htm

Alos try the Developer Areas -> Web Application Server -> Web Services.

With 6.20 every function module that is rfc enabled is exposed automatically as web service. for example if you have a FM named ZTEST you can access the wsdl for that service via http://<hostname>:<portnumber>/sap/bc/soap/wsdl11?services=ZTEST&sap-client=<client>&sap-user=<username>&sap-password=<password>

where hostname = server name, portnumber = 8001 for example (to check from http port parameter), client/username and password from the R3 system

thanq

if found useful please award points.

Former Member
0 Kudos

Check this link:

Regards.