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: 

I Need To Implemet a Badi

Former Member
0 Kudos

Hi.

I need to implement the a badi or an user exit to validate a field in the VA22 transaction at the moment that i push save botton, if the field contain an specific information, i don't want to save the data. how can i do it??, any one know a user exit or badi to do this??

Thanks & Regards

Luis.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi first you have to implement the badi

using t-code Se19.

in the method you have to write the condition what ever the condition you need

Hi

i guess this BADI is for internal SAP use only.

you can not implement this BADI. first can you try this.

thanks

Sekhar

Message was edited by:

Lakshmi Sekhar Reddy

6 REPLIES 6

Former Member
0 Kudos

in the BADI u will have export/import parameters...So, check whether the field is blank or not...If the field is not blank issue an error message...

Former Member
0 Kudos

hi first you have to implement the badi

using t-code Se19.

in the method you have to write the condition what ever the condition you need

Hi

i guess this BADI is for internal SAP use only.

you can not implement this BADI. first can you try this.

thanks

Sekhar

Message was edited by:

Lakshmi Sekhar Reddy

0 Kudos

Yes You're right this badi (WB2_ADD_DATA_INT) is only for internal use, any one know a user exit or badi for validate and not save if the field not exist when i push the save button?

thanks & regards

Luis

Former Member
0 Kudos

Hi Jose,

1. You have to create Badi Implementation in SE19 and define the method which get called when you are saving the data on VA22.

2. You can use the method CHECK_BEFORE_UPDATE for your requirements.

Add your validation check between METHOD........ENDMETHOD and stop saving data as per your requirements.

3. You have to check Import Parameters for that method. Fields on which you want to do validation that should be present in Import parameter.

Please do reply for further assistance.

Regards,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

Former Member
0 Kudos

You should be using good old USER EXITS for this purpose.

EXIT: MV45AFZZ.

Perform Routine: userexit_save_document_prepare.

But a break point here and you can find out that it is getting triggerred.

Former Member
0 Kudos

I resolved the problem with the user exit FV45K001 making the validation and when the field don't exist exportin a char value in da_kkber, with this the transaction dont save