Application Development 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: 

Statement "SWC_CALL_METHOD" is not defined.

Former Member
0 Kudos
548

Hi friends,

INCLUDE <CNTN01>.

DATA: obj TYPE SWC_OBJECT.

SWC_CONTAINER CONTAINER.

SWC_CREATE_OBJECT obj 'BUS2080' ''.

SWC_CREATE_CONTAINER CONTAINER.

SWC_SET_ELEMENT CONTAINER 'NotificationType' 'S1'.

SWC_CALL_METHOD obj 'CreatesingleContainerDialog' CONTAINER.

for the above code I am getting the below syntax error.

Statement "SWC_CALL_METHOD" is not defined. Check your spelling . . .

I am working in ECC 5.0 IDES

please help....

1 REPLY 1

uwe_schieferstein
Active Contributor
0 Kudos
80

Hello Madhusudhan

Please note that SAP business objects (transaction SW01) have <b>nothing to do</b> with (ABAP) object instances.

The "methods" of the business object BUS2080 (service notifcation) have <b>nothing to do</b> with class methods.

If you click on the green LED after "method" <i>ServiceNotification.CreateFromData2</i> you will see that this "method" is realized using BAPI <b>BAPI_SERVNOT_CREATE</b>.

Regards

Uwe