cancel
Showing results for 
Search instead for 
Did you mean: 

To call instance independent method of one object type(BUS2081)in another.

Former Member
0 Kudos

HI,

I want to call an instance independent method "PARK" of object type 'BUS2081' in another object type .please let me know if any body is aware of this.

I am able to call instance dependent methods by using the macro SWC_CALL_METHOD but am unable to call instance -independent methods using this macro.

Are these methods called in some other way.

Regards,

Jagwant

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Use

DATA: ls_oref_static   TYPE SWOTOBJID.
ls_oref_static-objtype = 'BUS2081'.

CALL FUNCTION 'SWO_INVOKE_PERSISTENT'
   EXPORTING
      OBJECT      = ls_oref_static
      VERB        = 'PARK'.

Best wishes,

Florin

Former Member
0 Kudos

Florin,

Thanks a lot !!

it worked