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

How to use a method from an interface?

Former Member
0 Likes
746

Hello, i am trying to use a method AGENTS_SET from interface IF_WFD_ADHOC_STEP.

it displays

CALL METHOD me->AGENTS_SET

EXPORTING

AGENTS = gt_agents.

EXCEPTIONS

LOCKED = 1

others = 2

which i control, it gives me FIELD 'ME' unknown.

1 ACCEPTED SOLUTION
Read only

peter_ruiz2
Active Contributor
0 Likes
721

Hi Artish,

you must first declare an object with reference to the class IF_WFD_ADHOC_STEP like this.

DATA: me TYPE REF TO IF_WFD_ADHOC_STEP.

regards,

Peter

Hello, i am trying to use a method AGENTS_SET from interface IF_WFD_ADHOC_STEP.

it displays

CALL METHOD me->AGENTS_SET

EXPORTING

AGENTS = gt_agents.

EXCEPTIONS

LOCKED = 1

others = 2

which i control, it gives me FIELD 'ME' unknown.

5 REPLIES 5
Read only

peter_ruiz2
Active Contributor
0 Likes
722

Hi Artish,

you must first declare an object with reference to the class IF_WFD_ADHOC_STEP like this.

DATA: me TYPE REF TO IF_WFD_ADHOC_STEP.

regards,

Peter

Read only

Former Member
0 Likes
721

hi

try this fm SEO_INTERFACE_MODIFY and SEO_INTERFACE_ADD_COMPONENTS and change c parameter METHODS for adding the methods.

hope this helps

regards

Aakash Banga

Read only

Former Member
0 Likes
721

getting a dump during execution

Read only

0 Likes
721

Hi Antish,

what is the message of the dump?

regards,

Peter

Read only

GrahamRobbo
SAP Mentor
SAP Mentor
0 Likes
721

Hi Antish,

you are miles away from understanding OO concepts.

Take my word for it, you are stumbling around in the dark and need an ABAP OO programmer to perform this task for you.

Cheers

Graham Robbo