07-30-2007 2:46 PM
Hi Gurus,
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
Gupta
07-30-2007 3:23 PM
07-31-2007 6:08 AM
Hi Peram
Thanks for given reply.
Where ever DMBTR field occur that field has to disable should assign default value to that field. i.e. user can't enter a value into that field.
not only particular TCODE
07-31-2007 6:35 AM
Hi,
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:
FORM userexit_field_modification.
CASE screen-name.
WHEN 'VBKD-ZTERM'.
IF lp_vbak_vbtyp EQ lc_c.
screen-input = 3.
ENDIF.
ENDCASE.
ENDFORM. "USEREXIT_FIELD_MODIFICATION
Regards
07-31-2007 8:09 AM
Hi suri,
Thanks for reply
I Want implement through BADI not using USER EXIT.
could pls help me how to implement functionality like FIELD EXIT using BADI.
Regards
Gupta
07-31-2007 10:20 AM
Hi
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
Regards
Asha