Skip to Content
0
Former Member
Jan 15, 2006 at 06:17 AM

Unicode - Simple Question (I think)

21 Views

The following code is dynamically generated and executed. I don't know what table I'm going to get until run-time when I gen this code. I keep getting the following run-time error: UC_OBJECTS_NOT_CONVERTIBLE. Please propose code that works in a Unicode system. Note that I need to pass the internal table "G" back through a function module interface so I need to have it reference a DDIC object statically.

REPORT ZDYN1.

DATA : BEGIN OF G OCCURS 0,

DATA(5000),

END OF G.

PERFORM GET_DATA TABLES g .

....

...

....

FORM GET_DATA TABLES PASSED_TAB STRUCTURE g.

TABLES: VBAK.

FIELD-SYMBOLS <TTT> TYPE ANY.

ASSIGN VBAK TO <TTT>.

select distinct * INTO <TTT>

FROM VBAK

WHERE

VBAK~VBELN EQ '0105045404'.

PASSED_TAB = <TTT>.

APPEND PASSED_TAB.

ENDSELECT.

LOOP AT PASSED_TAB.

WRITE:/ PASSED_TAB.

ENDLOOP.

ENDFORM. "GET_DATA