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'
I_STRUCTURE_NAME = t_dd03l-tabname (this will have the actual database table name)
CT_FIELDCAT = FCAT1.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
IT_FIELDCATALOG = FCAT1
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
The types of operands "dbtab" and "itab" cannot be converted into one another.
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
In this case, this condition has not been met.
can any one help on this.
thanks in advance.