I want implement functionality like Field Exit using BADI in SAP ECC5.0.
I have to disable DMBTR field where ever it is used and should assign default value to that field. i.e. user can't enter a value into that field.
Thanks in advance
You have to code in User exit. Ex: There is a user exit userexit_field_modification in VA01 (main program sapmv45a) which is meant to modify the screen display for that perticular screen there you will check the field name and put the logic like follow:
IF lp_vbak_vbtyp EQ lc_c.
screen-input = 3.
Have u found out which badi u r going to work in..
To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
double click on method get_instance, get a break point on case statement.
execute and start the required transaction in new session.
look for variable <b>exit_name.</b> It would show the available badi's.
When u hav found one, navigate to the appropriate method and apply the logic
Please do reward if useful