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

Call ABAP OO method from SAP script

Kevin_Holtkamp
Participant
0 Likes
1,159

In a SAP script form I want to add a bold text saying "TEST" if we are in a test system.

To check this, in our smartforms we use `CL_SOAP_UTIL_DB=>CHECK_PRODUCTIVE_SYSTEM( )` to check this, but I couldn't find how to call ABAP OO methods from SAP script.

The print program is SAP standard so I cannot do it in ABAP itself

3 REPLIES 3
Read only

abo
Active Contributor
1,057

in Sapscript you only have "PERFORM", so you'll have to write a wrapper "FORM" in a program of your choice, it does not have to be the print program.

Read only

fprokopiuk
Active Participant
0 Likes
1,057

Hi Kevin,

You can call subroutine as described here. In the code you can simply call the method.