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: 

table name where special charates have been defined

0 Kudos
723

Hi All,

Please help me to find the table where these character variables are defined.

%_MINCHAR

%_MAXCHAR

%_HORIZONTAL_TAB

%_VERTICAL_TAB

%_NEWLINE

%_CR_LF

%_FORMFEED

%_BACKSPACE

i got these variables from class CL_ABAP_CHAR_UTILITIES. and can be used as.

constants: c_char type c length 2 value %_cr_lf.

and thsi is similer to

constants: c_char type c length 2 value 'P'.

where character p is assigned to c_char.

1 ACCEPTED SOLUTION

0 Kudos
506

very very thanks

Dedeepya

but as per my understanding SAP would have defined these character through program and class etc..

but they must have stored these variable in some table i.e they can know what are all these type of charater defined.

i need to use some special character which cannot be typed from keyword.

i am geting these characters but not useful.

6 REPLIES 6

Former Member
0 Kudos
506

Hi,

I don't think these are maintained in any table. This are just the Initial values given to the attributes of the class CL_ABAP_CHAR_UTILITIES

Former Member
0 Kudos
506

Hi,

These are internal constants and where they are maintained remains a mystery as some say it is a part of abap

programming language.

Refer this link, might lead you somewhere :-

[;

-- Dedeepya

0 Kudos
507

very very thanks

Dedeepya

but as per my understanding SAP would have defined these character through program and class etc..

but they must have stored these variable in some table i.e they can know what are all these type of charater defined.

i need to use some special character which cannot be typed from keyword.

i am geting these characters but not useful.

0 Kudos
506

Your case is to pass a special character which cannot be typed using ur keyboard?

If so, then try passing the hexadecimal value for the same.

One list of such kind where you may get the character you are looking for -

[http://sapdb.net/7.4/htmhelp/07/a16384a57411d2a97100a0c9449261/content.htm]

Also refer the link -

[http://sapdb.net/7.4/htmhelp/64/e90da7a60f11d2a97100a0c9449261/content.htm]

-- Dedeepya

0 Kudos
506

Can you please write a sample program for me where i can see these special character either in for of write statement or in form of flat file using GUI_download.

please because i am unable to use that.

how to convert hex code to char and declaration etc.

0 Kudos
506

If yours is a Unicode system (version ECC6 or greater) then you wouldnt be able to declare variables of type X, in such case resort to the following approach:-

    • DATA : LC_CHAR TYPE X VALUE

CLASS CL_ABAP_CONV_IN_CE DEFINITION LOAD.

DATA LC_CHAR TYPE C.

LC_CHAR = CL_ABAP_CONV_IN_CE=>UCCP('03CB').

WRITE : LC_CHAR.

*-- RESULT :

ϋ

Note:: A simpler and reliable way of getting the hex-codes for a special character is to use Excel.

-- Dedeepya

Edited by: dedeepya reddy on Apr 12, 2010 11:31 AM