Application Development 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: 

wa in ABAP Objects

Former Member
0 Kudos

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

KalC
Active Participant
0 Kudos

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

Former Member
0 Kudos

CLASS money DEFINITION.

PUBLIC SECTION.

CLASS-DATA: wa TYPE zaa_sflight,

wa1 LIKE TABLE OF wa.

CLASS-METHODS zmoney.

ENDCLASS.

KalC
Active Participant
0 Kudos

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.