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

abap objects qustion

Former Member
0 Likes
532

hi

i call to metod from my program i i get <b>ME</b> with error

Field "ME" is unknown. It is neither in one of the specified tables no defined by a "DATA" statement . . . . . . . . . .

how i define <b>me</b>?

Regards

CALL METHOD me->if_wd_context_element~get_attribute

EXPORTING

name = sy-uname

IMPORTING

value = user

.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
516

Hi

The method that you are using should be defined in your program itself.

Regards

Preeti

3 REPLIES 3
Read only

Former Member
0 Likes
517

Hi

The method that you are using should be defined in your program itself.

Regards

Preeti

Read only

Former Member
0 Likes
516

Hi tal,

Hope you have copied this piece of code from some standard code.

"me" signifies the base class. so "me" is used within any subclass to invoke the superclass methods, or as parameters within methods which take in class attributes as parameters.

In your case you could solve ur problem by using the class name itself instead of the term "me".

<b>Reward points if this helps,</b>

Kiran

Read only

Former Member
0 Likes
516

Hi Shnya,

You need to create an instance of the object first in the program before you could call the method.

You need to use,

CREATE OBJECT ME.

<b>Reward if useful</b>

Best Regards,

Ram.