on 05-11-2005 11:55 PM
Hi, I am creating new fields for Lead Management and I did this using the easy enhancement workbench, now I need to make some validations on the data from those fields based on data on other fields from the lead.
Is there a BADI I could use for this? Or is there a better way to do this than using a BADI?
Thanks a lot for your cooperation.
Hi Felipe, regarding your question, when would you like these validations to take place and how would you like the results of these validations be presented? When you want these validation being performed at runtime, e.g. after pressing enter and the results to be displayed in the message subscreen at the top of the screen you should have a look at the following IMG path: CRM -> Basic Functions -> Incompleteness. For 'simple' validations you can define custom procedures and for more complex validations you can use the second option in that path. In the case these validation should occur upon save, have a look at BAPI 'CRM_LEAD_H_BADI ', method 'CRM_LEAD_H_CHECK'. Hope this answers your question, Tiest.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would like both types of validations.
I have already checked CRM_LEAD_H_BADI but I found out that the method CRM_LEAD_H_CHECK is called both when you just press enter and when you are going to save. And even if you haven't changed anything (not changed any value) from the moment you pressed enter until you pressed the save button then the method is not called.
The problem I have now is that I need a way to make some changes (on other data) and send some messages when the Lead is saved.
I programmed the 'simple' validations on CRM_LEAD_H_CHECK and they are working very good, so thank you very much for your help Tiest.
I am sorry, maybe I wasn't clear.
The 'simple' validations are working fine, and I used the BADI you gave me.
The more complicated stuff is that I also need to send a Message with some of the information from the Lead only when the lead is saved, and I don't see any way on that Badi where I can see if the Lead is beign saved or if the method was called because of an Enter pressing, that is the question I still have.
Thanks. Felipe.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.