cancel
Showing results for 
Search instead for 
Did you mean: 

Transformation end routine

Former Member
0 Kudos

Could anyone please help me with the transformation end routine problem? It is necessary to declare a database table within transformation routine (TABLES: some_table.) I do, press the save button, activate the transformation rules, and all of my changes disappears from the subroutine.

What am I doing wrong?

The code I put within class method, seems to work well and doesn't disappears. But declaration of table, disappears immediately..

ENDCLASS.                    "routine DEFINITION

*$*$ begin of 2nd part global - insert your code only below this line  *

TABLES: some_table.

... "insert your code here
*$*$ end of 2nd part global - insert your code only before this line   *

*---------------------------------------------------------------------*
*       CLASS routine IMPLEMENTATION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS lcl_transform IMPLEMENTATION.  

Or am I choose a wrong place for declaration like this?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I am not sure what you planning to do, but the tables statement is obsolete on one hand (already since years) and on the other hand not allowed in the oo-context. And for sure there is really no reason to use that statement. If you need a work area for a table do the following:

data: wa_x type x. "x = name of your table

and your select should look like:

select single * into wa_x from x

where .....

regards

Siggi