cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable a standard field in MM02 using BADI

Former Member
0 Kudos

Hi,

I want to know how can i disable standard fields in MM02 using Badi, i want to disable some field of MRP1, MRP2, which is all ready created using MM01 transaction. waiting for reply.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Why are you going for a BADI?

It can be done using the transaction code 'OMS9'.

Regards,

Selva K.

Former Member
0 Kudos

Thanks for Reply,

please tell me how can i use that tcode and i need to block near about 18 fields using Enhancement MRP1 and MRP2 contains near about 17 fields.

one field in the menu bar->edit-> MRP Profile->(It will now be assigned) field also want to disable.

Thanks.

Former Member
0 Kudos

Hi ,

In the IMG (Transaction code: SPRO), Logistics (Genaral) ->Material Master ->Field selection ->Assign fields to Fields selection group you can add fields which you want to a selection group.

In the tcode: OMS9, you can set for the tcode mm02 & the selection group as hidden. Please check with your functional team for the IMG settings.

Regards,

Selva K.

Former Member
0 Kudos

Thanks Selva K.

Please tell me using Enhancement how can we do that?, Waiting for reply.

Thanks.

Answers (3)

Answers (3)

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi,

Saw this thread very late and i hope this will solve your problem.

Just implement the badi BADI_MAT_F_SPEC_SEL, use method field_selection.

You can add any required fields where you need to change its property.

Place the code like this.


if ( t130m-tcode = 'MM01' or t130m-tcode = 'MM02' ) and ( aktvstatus ca 'V' ). "Maintenance status and transaction
case fauswtab-fname.
when 'MVKE-PRAT9'.
fauswtab-kzinp = 0.
endcase.
endif.

Former Member
0 Kudos

I am giving the code how to disable standard fields using user-exit.

u can disable fields in MM02 by using user exit MV45AFZB.

inside the user-exit write down this code.

data : p_maktl like mara-maktl.

select maktl from mara into p_maktl

where matnr = <mara-matnr>.

if sy-subrc eq 0.

call transaction MM03 and skip first screen.

leave to screen (screen number of MM03).

endif.

Jelena
Active Contributor
0 Kudos

You cannot do this using BADI or enhancement. Use the already mentioned configuration transaction.

Enhancements are meant to supplement the standard functionality, e.g. to add your own fields or perform additional functionality. The only thing you can do is to force the users to leave the fields blank, not to hide the fields from the screen.

Former Member
0 Kudos

i know that , but there is an enhancement spot for doing this i need to find that one and write code to disable fields i just showing

some code for example

check t130m-aktyp eq aktypz.

loop at screen.

loop at positions

where fname eq screen-name+5(10).

screen-intensified = 1.

modify screen.

endloop.

endloop.