Skip to Content
0
Jul 13, 2005 at 08:50 PM

Have anyone worked on "EXIT_SAPLRSAP_004"

176 Views

Hi Experts,

Have anyone worked on EXIT_SAPLRSAP_004 in SOURCE SYSTEM.Please see sample code below to delete hierarchy nodes with DATETO NE '99991231'.

It looks like the related tables in EXIT_SAPLRSAP_004 should be deleted for that corresponding Hier Node and index.

**************************************************

DATA : L_HIER_STRUCT LIKE C_T_HIENODE.

DATA : L_TABIX TYPE SY-TABIX.

CASE I_DATASOURCE.

WHEN '0ORGUNIT_HR01_HIER'.

SORT C_T_HIENODE.

LOOP AT C_T_HIENODE INTO L_HIER_STRUCT.

L_TABIX = SY-TABIX.

IF L_HIER_STRUCT-DATETO NE '99991231'.

DELETE C_T_HIENODE INDEX L_TABIX.

ENDIF.

CLEAR L_HIER_STRUCT.

ENDLOOP.

ENDCASE.

**************************************************

I am getting the following error " The structure of the hierarchy contains errors"

Valuable ideas will be rewarded.

Thank you

Arun