‎2014 Oct 15 10:08 AM
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
‎2014 Oct 15 10:21 AM
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
‎2014 Oct 15 10:31 AM
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
‎2014 Oct 15 10:56 AM
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
‎2014 Oct 15 10:58 AM
Or you can 'Submit' this program in that new FM, then based on this FM to create web service, this should be ok.