cancel
Showing results for 
Search instead for 
Did you mean: 

Lead Management Validations - PCUI

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Felipe, does your reply mean we have all your questions answered or is there one remaining? Tiest.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Oke, how about BADi 'CRM_ORDERADM_H_BADI', does that one meat your needs? Tiest.