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

Error During Creating Class Methods

Former Member
0 Likes
562

Dear All,

I hav already create paramatres wa_vbak in paramater tab of class and

in one of the method DISPLAY_METHOD,i want to display selected record.

method DISPLAY_METHOD.

write : / wa_vbak-vbeln,

wa_vbak-erdat.

endmethod.

But While Checking Its Generating Following Error.

*Field "WA_VBAK-VBELN" is unknown. It is neither in one of the specified *

*tables nor defined by a "DATA" statement . . . . . . . . . . *

Kindly Suggest .

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
527

Moderator warning

I have reviewed the questions that you have posed and have had answered, and I've noticed that you have not awarded any points to those that have helped. Please note that not awarding points is against the rules, and, in common with the other rules, repeated violation may result in your account being deleted.

These forums are a community. You should aim to give as well as take.

Also - ABAP Object questions belong in the ABAP Object forums! I have already moved your threads more than once.

matt

3 REPLIES 3
Read only

Former Member
0 Likes
527

Hi Amit,

I am assuming you are creating a global class (using se24).

Please check the variables you have declared in class attribute.

regards

vivek

Read only

Former Member
0 Likes
527

Can you tell us how you have defined the parameter wa_vbak in the method's parameters?

Br,

Advait

Read only

matt
Active Contributor
0 Likes
528

Moderator warning

I have reviewed the questions that you have posed and have had answered, and I've noticed that you have not awarded any points to those that have helped. Please note that not awarding points is against the rules, and, in common with the other rules, repeated violation may result in your account being deleted.

These forums are a community. You should aim to give as well as take.

Also - ABAP Object questions belong in the ABAP Object forums! I have already moved your threads more than once.

matt