Skip to Content

Badi to prevent decimal places in mb1b

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 08, 2016 at 11:46 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded