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.