‎2007 Aug 14 9:55 AM
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
.
‎2007 Aug 14 9:58 AM
Hi
The method that you are using should be defined in your program itself.
Regards
Preeti
‎2007 Aug 14 9:58 AM
Hi
The method that you are using should be defined in your program itself.
Regards
Preeti
‎2007 Aug 14 10:00 AM
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
‎2007 Aug 14 10:00 AM
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.