Application Development 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: 

MESSAGE i888(sabapdocu)

Former Member
0 Kudos
MESSAGE i888(sabapdocu) DISPLAY LIKE 'E' WITH wa_items-meins text-006.

In debugger the following are the values

wa_items-meins = 'LJ'
text-006 - No such UOM exists

But when the message is displayed it appears as **** No such UOM exists

Any ideas why this is happening?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

The data type MEINS is UNIT. This doesn't assign the content to a character field properly. Create a new variable as shown below and that should work for you.

data lv_text(3) type c.

wa_items-meins = 'LJ'

lv_text = wa_items-meins.

MESSAGE i888(sabapdocu) DISPLAY LIKE 'E' WITH lv_text text-006.

Thanks,

Kyle

2 REPLIES 2

Former Member
0 Kudos

The data type MEINS is UNIT. This doesn't assign the content to a character field properly. Create a new variable as shown below and that should work for you.

data lv_text(3) type c.

wa_items-meins = 'LJ'

lv_text = wa_items-meins.

MESSAGE i888(sabapdocu) DISPLAY LIKE 'E' WITH lv_text text-006.

Thanks,

Kyle

Former Member
0 Kudos

Are you using this command in CONTROL BREAK statements? I feel that in any Control break event (AT NEW), READ statement is not performed so there is no value in WA_ITEMS-MEINS so you are getting ****.