cancel
Showing results for 
Search instead for 
Did you mean: 

Closing date validation

Former Member
0 Kudos

Hi All,

I am looking for badi which is used to validate the closing date in CRM opportunity.ie

If closing date is greater than the current date by one month then the message is to be displayed .

If anyone have any idea please share .

Thanks .

Adnan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Use Badi "ORDER_SAVE" with interface method "CHECK_BEFORE_SAVE"

Regards,

Dipesh

Former Member
0 Kudos

Thanks Dipesh, I checked Badi "ORDER_SAVE" with interface method "CHECK_BEFORE_SAVE"

but when i kept a break point at "CHECK_BEFORE_SAVE" and change the closing date and pressed save, it is not coming at the break point (break point is at CHECK_BEFORE_SAVE). i need some more help.

Thanks

Adnan

Former Member
0 Kudos

Hi,

Please ensure that u have activated u r Badi as well as interface method, set break point in user (BREAK USER) now create order(transaction) with same user.

Regards,

Dipesh.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Adnan,

You can use events(txn CRMV_EVENTS) for this purpose.

Add a new entry for business object BUS2000111, Time : immediately, object: Appointment and event:AFTER_CREATE_ALL_APPT

While changing the status, this function can be called.

Or you can find the list of events triggered while closing the opportunity by doing a event trace.

Hope this helps.

Regards,

Surendar