‎2008 Dec 09 8:08 AM
Hi Experts ,
I Want to hexa decimal value 0A And 7F
4.7 Production:
c_hash TYPE x VALUE '0A',
c_spl_char TYPE x VALUE '7F',
‎2008 Dec 09 8:28 AM
Hi Kumar,
these are the values
HEX -->>CHAR
0A -->> LF(LINE FEED, NEW LINE)
7F-->> DEL
Regards,
Sivakalyan
‎2008 Dec 09 8:15 AM
Hi Experts ,
I am working on ECC 6.0 version, I Want to use hexa decimal value of 0A And 7F in my program
when I try to declare in the below format
Constants : c_hash TYPE x VALUE '0A',
c_spl_char TYPE x VALUE '7F'.
it was giving an error ' C_HASH should be character object'. But if I declre it as type c I cannot use the internal hexa decimal value of '0A' and '7F'.
Could any one please let me know what is the replacement of data type X in ECC.
‎2008 Dec 09 8:19 AM
hi,
If i understand u right...then u want to convert hexadecimal to char value.
then u can convert in the following way..
Data hex_value type x.
data char_value(10) type c.
char_value = hex_value.
I hope it hepls.
Regards,
Rohit
‎2008 Dec 09 8:23 AM
hi,
check these.
[https://forums.sdn.sap.com/click.jspa?searchID=19684941&messageID=4168086]
[https://forums.sdn.sap.com/click.jspa?searchID=19684941&messageID=4872864]
‎2008 Dec 09 8:28 AM
Hi Kumar,
these are the values
HEX -->>CHAR
0A -->> LF(LINE FEED, NEW LINE)
7F-->> DEL
Regards,
Sivakalyan
‎2008 Dec 10 7:11 AM
Hi ,
Thanks for your reply.
In 4.7 production code like this :
Data char1(10) type value '200FMM 300'.
constants :
c_hash TYPE x VALUE '0A',
c_spl_char TYPE x VALUE '7F.
CONCATENATE c_spl_char char1 c_spl_char INTO w_buffer.
TRANSFER w_buffer TO w_tmpopfil( This is file name )
When i check in AL11 , OUT PUT like : #200FMM 300#
In ECC production code like this :
Data char1(10) type value '200FMM 300'.
constants :
As it is not allowed to define c_spl_char type x so i changed to Char
c_hash TYPE char VALUE '0A',
c_spl_char TYPE char VALUE '7F.
CONCATENATE c_spl_char char1 c_spl_char INTO w_buffer.
TRANSFER w_buffer TO w_tmpopfil( This is file name ).
when i check in AL11 , OUT PUT like : 7F200FMM 3007F.
i need to declare same as 4.7 Like c_spl_char TYPE x in ecc.
Regards ,
Kiran.