‎2006 Nov 07 8:33 PM
Hello all,
We will be changing our system to a Unicode system next year. As we are modifying existing programs, we are setting the Unicode flag and correcting any errors. In this one particular program I have run across a situation for which I have not been able to find a solution. Any thoughts would be greatly appreciated.
This error occurs when the following code is checked.
HEX must be a character-type data object
data hex type x. "Binary zeros
data: begin of i_apqd occurs 0.
include structure apqd.
data: end of i_apqd.
data: begin of itab occurs 0,
field(150),
end of itab.
split i_apqd-vardata+20 at hex into table itab.
This is what i_apqd-vardata+20 looks like in the debugger.
##SAPMF05A0100##BKPF-BLDAT#11072006#BKPF-BLART#KR#BKPF-BUKRS#100#BKPF-budat#11072006
This program is a custom developed utility program to display the contents of a BDC session.
Thanks
Bruce
‎2006 Nov 07 11:35 PM
try this:
data hex type x value '00'.
field-symbols: <hex> type x,<char> type c.
data: begin of i_apqd occurs 0.
include structure apqd.
data: end of i_apqd.
data: begin of itab occurs 0,
field(150),
end of itab.
assign hex to <hex>.
assign <hex> to <char> casting.
split i_apqd-vardata+20 at <char> into table itab.
‎2006 Nov 07 11:35 PM
try this:
data hex type x value '00'.
field-symbols: <hex> type x,<char> type c.
data: begin of i_apqd occurs 0.
include structure apqd.
data: end of i_apqd.
data: begin of itab occurs 0,
field(150),
end of itab.
assign hex to <hex>.
assign <hex> to <char> casting.
split i_apqd-vardata+20 at <char> into table itab.
‎2006 Nov 08 12:19 AM