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

Expose Program as webservice

Former Member
0 Likes
708

Hi all,

I have a program that I have written in ABAP that is currently executable in SE38. Ideally I would like to get to a stage where I could expose this program as a webservice that I can consume in C#.

I know BAPI's can be exposed, but is there anything I can do with a program?

Many thanks

4 REPLIES 4
Read only

Former Member
0 Likes
655

Hi Iain

What`s scenario you need run web service with a program?

In my mind the same abap code can write in a FM to achieve what you wanted.

Regards,

Archer

Read only

Former Member
0 Likes
655

Hi Dengyong,

My program is a very simple program that has a few parameters that will output PDF's to a network drive.

Ideally, I would like to call the program as a webservice, passing through the parameters. The ABAP would run and then give me a success or failure response back to my c#.

From what you are saying, do I need to port my code across to a FM instead?

thanks

Read only

0 Likes
655

As far as i know, it`s impossible to create web service with a program, you just need take your input parameter of program as import parameter of FM, the abap code inside of this FM should be same.

Regards,

Archer

Read only

0 Likes
655

Or you can 'Submit' this program in that new FM, then based on this FM to create web service, this should be ok.