11-29-2006 4:00 PM
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.
11-29-2006 4:05 PM
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
11-29-2006 4:03 PM
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...
11-29-2006 4:05 PM
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
11-30-2006 3:34 PM
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
11-30-2006 6:17 AM
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>
12-01-2006 5:56 AM
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.
12-05-2006 1:14 AM
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