Alternate of 'Translate Codepage' in ECC 6.0
I am having problem with the syntax of the below statement
TRANSLATE itab TO CODE PAGE P_PCODE
P_PCODE containscodepage value for UNIX file system I guess.
and ITAB is
DATA: BEGIN OF ITAB OCCURS 0,
RECTYP(1) TYPE C,
DATA(1000) TYPE C,
END OF ITAB.
I found that it is obsolete in ECC 6.0 and I am supposed to use the class CL_ABAP_CONV_OUT_CE and the method CONVERT_STRUC
But when I import the signature of this method to pass the parameter I can not make out which parameter to pass.Can you suggest on this. Reward points guaranteed.
CALL METHOD me->CONVERT_STRUC
This is signature of this method ( I am avoiding the try n catch part)
If you have any alternate solution please suggests.