Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BADI Like Field Exit

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

in which tcode ?

regards

Peram

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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