cancel
Showing results for 
Search instead for 
Did you mean: 

Unicdoe error need to correct.

Former Member
0 Kudos

Dear All,

Please provide me the solution for the following unicode error.

Here, REC1 is an internal table with header line.

WRITE VBRK-MWSBK TO REC1-MWSBK NO-SIGN CURRENCY '3'.

WRITE VBRK-NETWR TO REC1-NETWR NO-SIGN CURRENCY '3'.

This statemnet is giving warinigs like the following.

"REC1-MWSBK" must be a character-type field (data type C,N,D or T).

But if I replaced REC1-MWSBK as char type the output value is coming differently.

Its not giving expected value what it is giving at actual statement.

Please let me know the solution.

Points will be awarded for responding and solution.

Regards,

PJ

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Myself

Former Member
0 Kudos

make target fields as char and then do this

WRITE VBRK-MWSBK TO REC1-MWSBK.

WRITE VBRK-NETWR TO REC1-NETWR.

This will do it

Regards,

Prashant

former_member194669
Active Contributor
0 Kudos

Check this


report  zaRs.
tables : vbrk.
data : v_mwsbk like vbrk-mwsbk.
move : vbrk-mwsbk to v_mwsbk.
write : v_mwsbk no-sign currency '3'.

Former Member
0 Kudos

Hi,

Thanks for your reply. We tried this logic but it is not giving the output which we got previously. The output before and after unicode modification is different in displaying the value of REC1-MWSBK.

So, please let me know if any alternative.

Thanks,

J.P

former_member203501
Active Contributor
0 Kudos

hi declare the fields in the rec1 as the char type fields with the same lenght of the data element . then it will be solved

Former Member
0 Kudos

hHi Praksh,

Write to statement some times it is giving some errors. Use string as a mediater for move the value from VBRK-MWSBK to REC1-MWS. First move the value from VBRK to string and then string to REC1.

Regards,

Kumar