08-19-2009 4:30 PM
Hi,
I am getting the error like A line of "ZSCRMATNR-COLS" and "S_TABCONTROL" are not mutually convertible. In a Unicode program, "ZSCR_MATNR-COLS" must have the same structure layout as "S_TABCONTROL", irrespective of the length of a Unicode character. Unicode characte._
.Data Declarations
DATA: BEGIN OF S_TABCONTROL,
SCREEN LIKE SCREEN,
INDEX TYPE I,
SELECTED TYPE C,
VISLENGTH TYPE I,
END OF S_TABCONTROL.
CONTROLS: ZSCR_MATNR TYPE TABLEVIEW USING SCREEN 9003.
At the below point it showing the error
*LOOP AT ZSCR_MATNR-COLS INTO S_TABCONTROL.*
IF NOT S_TABCONTROL-SELECTED IS INITIAL.
CLEAR S_TABCONTROL-SELECTED.
*MODIFY ZSCR_MATNR-COLS FROM S_TABCONTROL.*
MOVE S_TABCONTROL-SCREEN-NAME+14(10) TO L_SORT.
SORT ITAB_MATERIAL BY (L_SORT).
ENDIF.
ENDLOOP.
.
Please give me some inputs.
Thanks
Kiran
08-19-2009 4:35 PM
Hi,
Declare S_TABCONTROL Following Way.
Data: S_TABCONTROL like line of ZSCR_MATNR-COLS.
Hope will solve out..
Please Reply if any Issue,
Best Regards,
Faisal
08-19-2009 4:35 PM
Hi,
Declare S_TABCONTROL Following Way.
Data: S_TABCONTROL like line of ZSCR_MATNR-COLS.
Hope will solve out..
Please Reply if any Issue,
Best Regards,
Faisal
08-19-2009 4:35 PM
In unicode programs you cannot longer move data from structure that are not mutually convertible.
Try to declare a work area LIKE ZSCR_MATNR-COLS and then move manually the field you need from the work area to S_TABCONTROL.
Regards,
IVan