Application Development 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: 

field-symbols

Former Member
0 Kudos

Hi,

I have a isue in FS.

I did dynamic assignment to FS. AS

DATA FCAT1 TYPE LVC_T_FCAT.

DATA:DYN_ITAB TYPE REF TO DATA,

W TYPE REF TO DATA.

FIELD-SYMBOLS: <DISP_TABLE> TYPE STANDARD TABLE,

<WA> TYPE ANY.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

I_STRUCTURE_NAME = t_dd03l-tabname (this will have the actual database table name)

CHANGING

CT_FIELDCAT = FCAT1[].

CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE

EXPORTING

IT_FIELDCATALOG = FCAT1[]

IMPORTING

EP_TABLE = DYN_ITAB.

ASSIGN DYN_ITAB->* TO <DISP_TABLE>.

CREATE DATA W LIKE LINE OF <DISP_TABLE>.

ASSIGN W->* TO <WA>.

SELECT * FROM (t_dd03l-tabname) INTO table <DISP_TABLE> where mandt = sy-mandt.

for some of the tables its working but in some cases it is giving dump as follows

Short text

The types of operands "dbtab" and "itab" cannot be converted into one another.

Error analysis

In a Unicode system, the type of the operand "dbtab" must be convertible

into that of the operand "itab" for the statement "SELECT * FROM dbtab INTO

TABLE itab". Regardless of the

length of a Unicode character, both operands must have the same

structure layout.

In this case, this condition has not been met.

can any one help on this.

thanks in advance.

3 REPLIES 3

Former Member
0 Kudos

Can Anybody suggest me on this.

0 Kudos

Have a look at the keyword casting, which is part of the assign statement.

Former Member
0 Kudos

hi

good

check this link on unicode,hope this would give you some idea to solve your problem

http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/content.htm

thanks

mrutyun^