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

wa in ABAP Objects

Former Member
0 Likes
3,226

Hello!

How can I write wa in ABAP Objects?

CLASS money DEFINITION.

PUBLIC SECTION.

CLASS-DATA: wa TYPE zaa_sflight,

wa1 TYPE TABLE OF wa.

CLASS-METHODS zmoney.

ENDCLASS.

The program says, wa is unknown. How can I write it correct?

Thanks!!

1 ACCEPTED SOLUTION
Read only

KalC
Active Participant
0 Likes
1,322

Hi Andrei Algaier,

This is because wa is not defined as datatype in datadictionary or in program with types statement.

example:

types : wa type c.

data : xyz type wa.

xyz will be of type c.

This might be helpful.

Regards,

Kalyan.

2 REPLIES 2
Read only

Former Member
0 Likes
1,322

CLASS money DEFINITION.

PUBLIC SECTION.

CLASS-DATA: wa TYPE zaa_sflight,

wa1 LIKE TABLE OF wa.

CLASS-METHODS zmoney.

ENDCLASS.

Read only

KalC
Active Participant
0 Likes
1,323

Hi Andrei Algaier,

This is because wa is not defined as datatype in datadictionary or in program with types statement.

example:

types : wa type c.

data : xyz type wa.

xyz will be of type c.

This might be helpful.

Regards,

Kalyan.