Skip to Content
0

Badi to prevent decimal places in mb1b

Dec 08, 2016 at 11:41 AM

52

avatar image

We need to restrict the entry of decimal units in UOM while doing transfer posting by T code MB1B.

We tried the T code CUNI--Configuration of UOM, but for EA, decimal is blank i.e 0.

I am looking forward for a suitable BADI.

eg system should restrict input as .05 but will allow 1 when UOM is piece or each.

NB : Please don't post the link of any previous discussion i i have already checked hem and they do not suffice my need.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Christian XX Dec 08, 2016 at 11:46 AM
0

Hello

some code snips

Module pool SAPMM07M

Search for "Call"

CALL METHOD L_BADI->WRF_GET_MSEG_GI_GR
EXPORTING
IS_KBEFU = PI_KBEFU
IS_EBEFU = PI_EBEFU
IS_MSEG = LMSEG " 979280
IS_VM07M = PI_VM07M
IS_RM07M = PI_RM07M
IS_WUEB = PI_WUEB
IS_MKPF = PI_MKPF
IMPORTING
E_SOBKZ = L_SOBKZ
E_LIFNR = L_LIFNR
E_RETURN = L_RETURN.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi christian ,

Thanks for the reply i just waned to confirm once that my requirement was that in tcodes such as MB1A and MB1C user will not be able to enter any decimal value in the quantity only whole numbers are allowed for UOM piece / each.

Regarda ,

SSL

0