Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

TRANSLATE TEXTFELD TO CODE PAGE code_ex.

Former Member
0 Likes
479

Hi,

In Unicode, the statement <b>TRANSLATE TEXTFELD TO CODE PAGE</b> code_ex. raises a syntax error. Can anyone please let me know how to handle this.

Where

TEXTFELD is a structure like below

BEGIN OF D_BREINF,
      B1_NAZ(12) TYPE C,
      B2_DAT(8) TYPE C,
      B3_NROZ(2) TYPE C,
      B4_NRK(6) TYPE N,
      B5_LICZ(4) TYPE N,
      B6_SUMN(19) TYPE C,
      B7_PUS(36) TYPE C,
      B8_NAZWL(40) TYPE C,
      B9_KODML(40) TYPE C,
      B10_ADKL(40) TYPE C,
      END OF D_BREINF,
Parameter : 
   code_ex like tcp00-cpcodepage DEFAULT '1404',

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
441

Hi,

This is not advise form, as TRANSLATE TO CODE PAGE is Obsolete

Instrad use the class CL_ABAP_CONV_IN_CE's method

CONVERT_STRUC.

Regards,

Sesh

.

3 REPLIES 3
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
442

Hi,

This is not advise form, as TRANSLATE TO CODE PAGE is Obsolete

Instrad use the class CL_ABAP_CONV_IN_CE's method

CONVERT_STRUC.

Regards,

Sesh

.

Read only

0 Likes
441

Hi,

I had checked up in the class - CL_ABAP_CONV_IN_CE, but i dint find any method CONVERT_STRUC.

Read only

Former Member
0 Likes
441

Thanks