Skip to Content
0
Aug 31, 2023 at 04:15 AM

How to use function modules that take data by tables with headers in OO context?

164 Views

Hello everyone,

I need to use some function modules related to the assessment cycles within the OO context. e.g. KGAL_CHANGE_CYCLE, KGAL_APPEND_SEGMENT...

These function modules take data by tables with a header, i.e. DATA: itab TYPE t811c OCCURS 0 WITH HEADER LINE. So if I feed them with such a table, it works fine. Here you can see that the "IT811C" has data on its header.

image.png


Here is the code for the above scenario:

image.png

And if I feed the function module with internal tables without a header, the data will not be reachable inside the function module.

image.png

Code for the above scenario:

image.png

but the problem is that tables with headers are not allowed to be used in classes.

image.png

Now my question is "How to use these function modules in OO context?".

Thanks in advance,

Mohammad Mansoor Ghawsi

Attachments

image.png (7.4 kB)
image.png (55.2 kB)
image.png (21.7 kB)
image.png (57.4 kB)
image.png (19.6 kB)