‎2008 Dec 09 4:02 PM
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!?
‎2008 Dec 09 4:05 PM
Put that INCLUDE statement under the LOCAL types section, if you are working in SE24.
Regards,
Naimesh Patel
‎2008 Dec 09 4:10 PM
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.
‎2008 Dec 09 4:21 PM
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