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: 

ADK_CCMS_GET_OBJECTS Dump

Former Member
0 Kudos

Hello Gurus'',

I am calling ADK_CCMS_GET_OBJECTS function module but it is giving run time error as type conflict.

Please help me to solve this issue.

Thanks in advance,

Paresh

1 REPLY 1

Former Member
0 Kudos

Please check the below documentation on the above FM:

Functionality

This function module gets all archiving objects which use this database table.

You can specify all archiving objects or only those which delete entries in the specified table.

You can also get all tables which use the archiving object. As this function module returns the names of the database tables and not the Data Dictionary table names, the names returned can be different from the names in the archiving object definition.

Example

TYPE-POOLS: ADK.

DATA: OBJECTS TYPE ADK_CCMS_OBJECTS,

O_LINE TYPE ADK_CCMS_OBJECT,

T_LINE TYPE ADK_CCMS_TABLE.

CALL FUNCTION 'ADK_CCMS_GET_OBJECTS'

EXPORTING

TABLE = 'FILENAME'

GET_ALL_TABLES = 'X'

TABLES

OBJECTS = OBJECTS

EXCEPTIONS

TABLE_NOT_FOUND = 1

POOL_OR_CLUSTER_NOT_IN_USE = 2

NO_OBJECT_FOUND = 3

TABLE_IS_NOT_TRANSPARENT = 4

OTHERS = 5.

IF SY-SUBRC EQ 0.

LOOP AT OBJECTS INTO O_LINE.

WRITE: / O_LINE-OBJECT, O_LINE-OBJTEXT.

LOOP AT O_LINE-TABLES INTO T_LINE.

WRITE: /5 T_LINE-TABNAME, T_LINE-TEXT.

ENDLOOP.

SKIP.

ENDLOOP.

ENDIF.

Notes

If this function module can not find an archiving object, this need not mean that this table can not be archived. An archiving object may not have been found for the following reasons:

archiving is not possible

the table contains derived data which are deleted but not written in the archive (ADK does not know this table).

The data in this table are archived via a view or a similar structure (ADK does not know this table).

The data in this table are archived via an archiving class for which ADK has no table information.

Regards,