cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Make product entry mandatory when creating an Opportunity

chrigu1
Participant
0 Likes
836

Hi experts,

I am facing a business requirement for SAP Sales Cloud where I am looking for the recommended approach.

Business would like to have the product entry in the opportunity creation window a mandatory field so that it is not possible to create/save an opportunity without assigning at least one product.

I already enabled the product entry according to the following blog: https://answers.sap.com/questions/187643/how-do-i-make-visible-adding-products-during-oppor.html

Would be glad if someone could give me a hint on what's the best way to approach this requirement.

Regards Christopher.

View Entire Topic
former_member422907
Contributor
0 Likes

Hi,

here are this lines of code:

if (!this.Item.GetFirst().IsSet()){
raise MsgOpportunitytMessage.Create("E", "There are no products in the opportunity, Please enter at least on product!");
}

locate them in Opportunity-Before Save event

br,

Zoran

chrigu1
Participant
0 Likes

Hi Zoran,

thanks a lot for your detailed solution proposal. Now I will have to get familiar with PDI and put your answer into practice.

Regards,

Christopher.