2010 Apr 12 8:11 AM
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.
2010 Apr 12 8:54 AM
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.
2010 Apr 12 8:32 AM
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
2010 Apr 12 8:36 AM
2010 Apr 12 8:54 AM
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.
2010 Apr 12 9:58 AM
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
2010 Apr 12 10:16 AM
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.
2010 Apr 12 10:30 AM
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