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

include CDO in OO class

Former Member
0 Likes
720

Hi,

i want to include the generated includes from CDO (change document object) in my ABAP OO class.

How can i do that? I don't find a way for "include xxxxx" statement!? Tried it in TYPES, TYPE GROUPS and directly in a method!?

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
632

Put that INCLUDE statement under the LOCAL types section, if you are working in SE24.

Regards,

Naimesh Patel

Read only

0 Likes
632

doesn't work

messages:

You can only define classes and interfaces at the highest level of a "CLASS-POOL".

The INCLUDE statement is not intended for use in the definition includes of global classes

You may only define classes, interfaces, or types in a CLASS-POOL.

Read only

0 Likes
632

You will not able to include those CDO includes in the OO class because:

Top Include contains the DATA statements.

We can only have TYPES statements in the Local Types or Implementation section.

More over, the include contains the Internal tables defined with the OCCURS 0 addition which is not supported by the OO context.

I think you need to define the FM as a wrapper which will hold all this data declartion and call the methods by passing the values by parameters.

Regards,

Naimesh Patel