‎2010 Mar 11 8:16 AM
Dear Friends
I am getting always the error message
.... type of VTAB is not Unicode-covertable
Pls can you guide me how to declare VTAB to
avoid this error message.
DATA: VTAB(350) TYPE C OCCURS 30 WITH HEADER LINE.
SELECT * INTO TABLE VTAB FROM TSP01 UP TO 10 ROWS.
SELECT * INTO TABLE VTAB FROM TSP1T UP TO 11 ROWS.
SELECT * INTO TABLE VTAB FROM TEDE1 UP TO 15 ROWS.
Friendly Regards
Alexander
‎2010 Mar 11 8:32 AM
hey,
The structure of internal table VTAB is not consistenet with the table from whch you are selecting the data.
Solution
1. you can use 3 diff internal tables to extract data from TSP01, TSP1T, TEDE1 and then merge them into a seperate internal table.
2. create a type in your report to include fileds from all 3 tables
and use addition "INTO CORRESPONDING FIELDS OF TABLE <ITAB>" .
Hope this helps,
Raj
‎2010 Mar 11 8:18 AM
//DATA: VTAB(350) TYPE C OCCURS 30 WITH HEADER LINE.
//SELECT * INTO TABLE VTAB FROM TSP01 UP TO 10 ROWS.
DATA : VTAB TYPE STANDARD TABLE OF TSP01 WITH HEADER LINE. "Like this
‎2010 Mar 11 8:26 AM
TSP01 does not have a single column with type c length 350. This weired programming of handling structures like charakcterfields is not possible in unicode cause of unknown length of each character. Declare your select and the into-var more precisely.
‎2010 Mar 11 8:32 AM
hey,
The structure of internal table VTAB is not consistenet with the table from whch you are selecting the data.
Solution
1. you can use 3 diff internal tables to extract data from TSP01, TSP1T, TEDE1 and then merge them into a seperate internal table.
2. create a type in your report to include fileds from all 3 tables
and use addition "INTO CORRESPONDING FIELDS OF TABLE <ITAB>" .
Hope this helps,
Raj