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

Former Member
0 Likes
727

Hi all ,

pls tell me what is unicode? pls give me example ?

Regards

Nagendra.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

Hi Nagendra,

Unicode is a character coding system which supports multiple languages, in simle words it supports internationalization. With out ASCII character system, it can support upto 255 different characters which can not hold the characters of all languages whereas Unicode, each character will have 2 bytes and it supports upto 65535 characters and it will include all different characters in all languages.

To make your reports unicode enabeled, just check the attribute Unicode checks active.

Check these links on Unicode

http://www.sapdb.org/7.4/htmhelp/db/74d038d35e11d5994400508b6b8b11/content.htm

http://dev.mysql.com/doc/maxdb/en/df/cf469457b4d941a1d2e8c4f04199c5/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/content.htm

Thanks,

Vinay

5 REPLIES 5
Read only

Former Member
0 Likes
680

Hi Nagendra,

Unicode is a character coding system which supports multiple languages, in simle words it supports internationalization. With out ASCII character system, it can support upto 255 different characters which can not hold the characters of all languages whereas Unicode, each character will have 2 bytes and it supports upto 65535 characters and it will include all different characters in all languages.

To make your reports unicode enabeled, just check the attribute Unicode checks active.

Check these links on Unicode

http://www.sapdb.org/7.4/htmhelp/db/74d038d35e11d5994400508b6b8b11/content.htm

http://dev.mysql.com/doc/maxdb/en/df/cf469457b4d941a1d2e8c4f04199c5/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/content.htm

Thanks,

Vinay

Read only

Former Member
0 Likes
679

Hi Mr. Nagendra,

I Have good Document on Unicode if u want plz give me ur mail ID so that i can send u.

Regards,

Sheethal.

Read only

0 Likes
679

Hi Sheethal,

Can you please send me Unicode Material...

My mail id is rk.nasaka@gmail.com

Thanks in advance

RK

Read only

Former Member
0 Likes
679

Hi


ABAP and Unicode



From Release 6.10, ABAP supports multi-byte coding for characters in Unicode. Prior to Release 6.10, ABAP used only character sets that were based on single-byte codes – such as ASCII and EBCDIC – or double-byte codes, such as SJIS and BIG5.

This switch to Unicode affects all statements where an explicit or implicit assumption is made about the internal length of a character. If you use these statements in a program that is designed to exploit the Unicode capabilities of the runtime environment, they must be checked and changed if necessary. Once a Unicode-enabled program has been changed accordingly, it behaves in the same way in both Unicode and non-Unicode systems. You can develop programs in a non-Unicode system (NUS) and then import them into a Unicode system (US). The following sections describe the conversions that are necessary:

ABAP Development Under Unicode



A Unicode-enabled ABAP program (UP) is a program in which all Unicode checks are effective. Such a program returns the same results in a non-Unicode system (NUS) as in a Unicode system (US). In order to perform the relevant syntax checks, you must activate the Unicode flag in the screens of the program and class attributes.

In a US, you can only execute programs for which the Unicode flag is set. In future, the Unicode flag must be set for all SAP programs to enable them to run on a US. If the Unicode flag is set for a program, the syntax is checked and the program executed according to the rules described in this document, regardless of whether the system is a US or an NUS. From now on, the Unicode flag must be set for all new programs and classes that are created.

If the Unicode flag is not set, a program can only be executed in an NUS. The syntactical and semantic changes described below do not apply to such programs. However, you can use all language extensions that have been introduced in the process of the conversion to Unicode.

As a result of the modifications and restrictions associated with the Unicode flag, programs are executed in both Unicode and non-Unicode systems with the same semantics to a large degree. In rare cases, however, differences may occur. Programs that are designed to run on both systems therefore need to be tested on both platforms.

You are recommended to follow the procedure below to make your programs US-compliant:

The UNICODE task in transaction SAMT performs first an NUS and then a US syntax check for a selected program set. For an overview of the syntax errors by systems, programs and authors, consult the following document in SAPNet: Alternatively, you can start the ABAP program RSUNISCAN_FINAL to determine the Unicode-relevant syntax errors for a single program.
Before you can set the Unicode flag in the NUS in the attributes of the program concerned, all syntax errors must be removed.
Having enabled the Unicode flag in the NUS, you can run the syntax check for this program. To display a maximum of 50 syntax errors simultaneously, choose Utilities -> Settings -> Editor in the ABAP Editor and select the corresponding checkbox.
Once all syntactical requirements are met in the NUS, you must test the program both in the NUS and US. The purpose of this test is to recognize any runtime errors and make sure that the results are correct in both systems. To rule out runtime errors in advance, you should always type field symbols and parameters so that any potential problems can be detected during the syntax check.


Assignment Between Structures I




In this example, includes are handled with group names.

Before Unicode conversion

types:

begin of T_STRUC,

F1 type c,

F2 type c,

F3 type i,

F4 type p,

end of T_STRUC.

data: begin of STRUC1.

include type T_STRUC.

data: F5 type x.

data: end of STRUC1.



data: begin of STRUC2.

include type T_STRUC.

data: F6 type p.

data: end of STRUC2.



STRUC1 = STRUC2. ß Unicode error



In this case, only the contents of the include, that is the components F1 to F4, were to be assigned. The system accepted that the component was overwritten with an invalid value.



After Unicode conversion





The introduction of group names for the includes and the use of these group names for assignment allows you to simply change this part of the program.



types:

begin of T_STRUC,

F1 type c,

F2 type c,

F3 type i,

F4 type p,

end of T_STRUC.


data: begin of STRUC1.

include type T_STRUC as PART1.

data: F5 type x.

data: end of STRUC1.



data: begin of STRUC2.

include type T_STRUC as PART1.

data: F6 type p.

data: end of STRUC2.

STRUC1-PART1 = STRUC2-PART1. ß ok



complete information about UNICODE and examples



http://help.sap.com/saphelp_erp2004/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

http://help.sap.com/saphelp_erp2004/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

Reward if usefull