Skip to Content
0
Former Member
Apr 11, 2014 at 03:00 PM

Can you call one script from another in BeanShell and receive a return value?

64 Views

Hello Experts-

I'm an experienced programmer (mostly C++, C#), but new to SAP Sourcing v 9 scripting...

I have some logic that I need to use in several scripts and, for better maintenance, would like to not repeat the code everywhere.

Is there any way to write a utility function/script which can be shared by many scripts that, ideally, could take parameter(s) and return a result? Perhaps it could be saved it in an "Explicitly Called Script" or somewhere else? Or maybe it could throw a chained exception and I could intercept it somehow in the calling script?

Thanks in advance!

Mike