on 08-04-2008 2:56 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.