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

UNICODE system Indicator!

Former Member
0 Likes
772

Hi Experts,

I need to identify a particular system whether it is unicode system or not.

Then I need to proceed for processing logic depending on the system if it

is UNICODE or else not.

Do anyone know such indicator or table field which indicates system is UNICODE system?

Thanks,

Yogesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
699

Hi Yogesh,

In the menu System ->Status, You can find it.

If Uncicode System has 'Yes' Under SAP System data tab, then it is Unicode System, otherwise, it is non-unicode system.

Thanks,

Vinay

5 REPLIES 5
Read only

Former Member
0 Likes
700

Hi Yogesh,

In the menu System ->Status, You can find it.

If Uncicode System has 'Yes' Under SAP System data tab, then it is Unicode System, otherwise, it is non-unicode system.

Thanks,

Vinay

Read only

0 Likes
699

Hi Vinay,

Thanks but I need this indication in terms of table or field.

for example SY-SYSID shows name of a particular system,

if system is 'ABC' it the SY-SYSID = 'ABC'.

The logic required is as below

IF SYSTEM = 'UNICODE'.

Process logic X.

ELSEIF SYSTEM NE 'UNICODE'.

Process Logic Y.

ENDIF.

So here I need such indicator as to check SYSTEM = 'UNICODE'.

or SYSTEM NE 'UNICODE' in my program.

Thanks,

Yogesh

Read only

0 Likes
699

Hi Yogesh,

Then You can do as per Rich mention code.There is no field of table which indicates whether it is a unicode or non-unicode system.

<b>if cl_abap_char_utilities=>charsize = 1.</b>

Process logic X.

ELSE

Process Logic Y.

ENDIF.

Thanks,

Vinay

Read only

Former Member
0 Likes
699

hi Yogesh,

Refer to this related thread

Regards,

Santosh

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
699

Well the way that the system does it when you look at the status using the menu option System -> Status.... is like this.



if cl_abap_char_utilities=>charsize = 1.
  unicode_sys = 'nein'(003).    "  No
else.
  unicode_sys = 'ja'(004).     " Yes
endif.

Regards,

RIch Heilman