Application Development and Automation 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: 
Read only

not Unicode-covertable

Former Member
0 Likes
528

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
483

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

3 REPLIES 3
Read only

Former Member
0 Likes
483

//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

Read only

rainer_hbenthal
Active Contributor
0 Likes
483

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.

Read only

Former Member
0 Likes
484

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