cancel
Showing results for 
Search instead for 
Did you mean: 

opportunity create or change field condition

Former Member
0 Kudos

Hi All

a simple query...a functionality has to be added only when the opportunity is created or sales prospect field value is changed. That means create / change in prospect field value are the conditions to be checked before proceeding further.

How to achieve this in the simplest manner?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vidushi,

Exactly which functionalty u want to add, if u r thinking about any triggers then better use Action Profile(Txn: CRMC_ACTION_DEF), here u can create Actions/Triggers which will be processed when certain condition will be met.

Hope it'll help u.

Thanks,

Dipesh.

Former Member
0 Kudos

Hi Dipesh

thanks for the reply

actually parties involved tab has to be populated.

I am using crm_ordar_maintain in order_save badi.

now the value to be populated depends on the sales prospect of opportunity. so in case sales prospect is changed the corresponding value to be populated should also change.

but since order_save gets triggered every time we save opportunity, I want to restrict it to create/ change in prospect field only.

hope m clear.

thanks

Former Member
0 Kudos

Hi Vidushi,

Means u want to check u r condition before saving the order in this case u can use Header Badi, which will check immidiately after entering the value in the Prospect field.

Let me know if it works.

Thanks,

Dipesh.

Former Member
0 Kudos

hi

which is the Header Badi?

I am using order_save badi.

Thanks

Former Member
0 Kudos

Hi,

Use CRM_ORDERADM_H_BADI in same use method CRM_ORDERADM_H_CHECK.

Regards,

Dipesh.

Former Member
0 Kudos

I am using ORDER_SAVE badi and that is where i have to add this functionality. i cant use a different badi.

which way does order_save determine what fields were changed before save.

any hints will be of great help.

Former Member
0 Kudos

U can try Method CHECK_BEFORE_SAVE in ORDER_SAVE Badi.

Regards,

Dipesh.

Former Member
0 Kudos

how to check using this method?

Former Member
0 Kudos

U can take help from Abapers as they know how to read the order.

Regards,

Dipesh.

Former Member
0 Kudos

My query is still not solved.

Please provide pointers.

thanks

Former Member
0 Kudos

solved using table CRMD_ORDERADM_H for presence of guid.