Hiya,
I'm really struggling with somethign that should be quite simple.
Basically I have a field of type EKPO-MENGE (quanity) and this uses code like
data: output_menge type ekpo-menge.
output_menge = wa_ekpo-menge.
And it displays the following:
Image may be NSFW.
Clik here to view.
Lovely so far...
Uh oh - the users are saying they don't want all those pesky decimals becasue they order whole quanitities.
No problem, I think, as SAP has a standard way of handling this via MEINS.
So I look at EKPO-MEINS and all the values are 'CPY' (copies) but how do I link this all up with the quantity?
I tried:
Write wa_ekpo-menge to output_menge unit 'CPY'.
But that just errors?
There must be simple standard way of doing this but I can't find it...
Can anyone help please?