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: 
Read only

program dump after unicode changes

Former Member
0 Likes
987

we are in the upgrade process from 4.6 to ecc6.

in the program there was a coding like this and it got error when we did uccheck.

  • MOVE INNNN TO DL_IT008.

because of the error, we change the coding to the following.

assign INNNN to <FS>.

move <FS> to DL_IT008.

unassign <FS>.

and when we run, we are getting dump says,

The statement

"MOVE src TO dst"

requires that the operands "dst" and "src" are convertible.

Since this statement is in a Unicode program, the special conversion

rules for Unicode programs apply.

In this case, these rules were violated.

any idea

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
889

Hi,

Please check this:

DATA:
  innn     LIKE prelp,
  dl_it008 LIKE p0008.

FIELD-SYMBOLS: <innn>     TYPE X,
               <dl_it008> TYPE X.

ASSIGN innn     TO <innn> CASTING.
ASSIGN dl_it008 TO <dl_it008>     CASTING.

<innn>     = <dl_it008>.
<dl_it008> = <innn>.

WRITE: sy-subrc.

Regards

Adil

8 REPLIES 8
Read only

Former Member
0 Likes
889

Please try the clause

casting type

in the assign statement

make the

data : <FS> type target type

Read only

Former Member
0 Likes
889

if INNNN and DL_IT008 both are structure... then u mast use fld by fld move.

Amitava

Read only

Former Member
0 Likes
889

hi use this...............

MOVE INNNN TO DL_IT0008

Read only

0 Likes
889

DATA:

DL_IT000 LIKE P0000,

DL_IT001 LIKE P0001,

DL_IT006 LIKE P0006,

DL_IT008 LIKE P0008,

DL_IT009 LIKE P0009.

field-symbols <fs> type any.

  • MOVE INNNN TO DL_IT008.

assign INNNN to <FS>.

move <FS> to DL_IT008.

unassign <FS>.

This is what the coding part.

Move INNNN to DL_IT008 was giving issue that is why we changed to field symbels.

can you please tell me what will be the correct coding

Read only

0 Likes
889

innn like PRELP

Read only

Former Member
Read only

Former Member
0 Likes
890

Hi,

Please check this:

DATA:
  innn     LIKE prelp,
  dl_it008 LIKE p0008.

FIELD-SYMBOLS: <innn>     TYPE X,
               <dl_it008> TYPE X.

ASSIGN innn     TO <innn> CASTING.
ASSIGN dl_it008 TO <dl_it008>     CASTING.

<innn>     = <dl_it008>.
<dl_it008> = <innn>.

WRITE: sy-subrc.

Regards

Adil

Read only

0 Likes
889

looks like this coidng worked. thank you verymuch