cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Class as Service

sap_cohort
Active Contributor
0 Kudos

Hi, What do I have to do to create a class and have it show up as an available service in VC?

Thanks, Ken Murray

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ken,

i hvnt heard of enabling abap classes as services. but you could write function modules to encapsulate the call to the abap class and its various methods. for eg, tke an input parameter in the fm that identifies which class mthd is to be invoked etc.

prachi

sap_cohort
Active Contributor
0 Kudos

Just seems strange that you would have to use regular ABAP Function Modules to wrap around newer ABAP Classes to make a Class available as a service..

Former Member
0 Kudos

Hi Kenneth,

I also think this is the best way.

Best Regards,

Marcel

sap_cohort
Active Contributor
0 Kudos

You think what is the best way?

Former Member
0 Kudos

I think the best way is to use an ABAP class as a service is to use it in a function module as Prachi has mentioned it.

Or you use it in an ABAP webservice so that every method is available via webservice, but it depends on your requirements, if you only need one method from the class then a function module is the best and quickest solution.

Best Regards,

Marcel

Answers (1)

Answers (1)

sap_cohort
Active Contributor
0 Kudos

No other opinions