Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Alternate of 'Translate Codepage' in ECC 6.0

Hi Guys,

I am having problem with the syntax of the below statement

TRANSLATE itab TO CODE PAGE P_PCODE

*----


where

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

EXPORTING

DATA =

VIEW =

  • IMPORTING

  • BUFFER =

  • TRUNCATION_FLAG =

This is signature of this method ( I am avoiding the try n catch part)

If you have any alternate solution please suggests.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question