cancel
Showing results for 
Search instead for 
Did you mean: 

Badi to prevent decimal places in mb1b

former_member204159
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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.

former_member204159
Participant
0 Kudos

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

Answers (0)