on 08-05-2010 12:41 PM
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.
Hi,
Why are you going for a BADI?
It can be done using the transaction code 'OMS9'.
Regards,
Selva K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.