2010 Mar 29 12:36 PM
Hi,
I have code
"TRANSLATE BBKF-SGTXT FROM CODE PAGE '0100' TO '0120'" Now During Unicode i need to Use the Conversion classes
Can any one help to proceede further on this
Actually I am using CL_ABAP_CONV_OUT_CE and I am getting the Data in Binary Format But I want that to be in Character format can any one suggest me
Thanks & Regards,
Prasad
2010 Mar 29 11:01 PM
Do you have an EBCDIC system with code page 0100? (check it using SNLS transaction)
In that case, CL_ABAP_CONV_OUT_CE is okay.
After having converted to code page 0120 (into xstring), here is how to cast xstring variable to character.
DATA x TYPE x LENGTH 800. " so that to compile, x length
" must be a multiple of 4 (don't ask why)
FIELD-SYMBOLS <c> TYPE c.
x = xstring. "make sure x is long enough
ASSIGN x TO <c> CASTING.
BBKF-SGTXT = <c>.
Hi,
I have code
"TRANSLATE BBKF-SGTXT FROM CODE PAGE '0100' TO '0120'" Now During Unicode i need to Use the Conversion classes
Can any one help to proceede further on this
Actually I am using CL_ABAP_CONV_OUT_CE and I am getting the Data in Binary Format But I want that to be in Character format can any one suggest me
Thanks & Regards,
Prasad
2010 Mar 29 11:01 PM
Do you have an EBCDIC system with code page 0100? (check it using SNLS transaction)
In that case, CL_ABAP_CONV_OUT_CE is okay.
After having converted to code page 0120 (into xstring), here is how to cast xstring variable to character.
DATA x TYPE x LENGTH 800. " so that to compile, x length
" must be a multiple of 4 (don't ask why)
FIELD-SYMBOLS <c> TYPE c.
x = xstring. "make sure x is long enough
ASSIGN x TO <c> CASTING.
BBKF-SGTXT = <c>.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |