cancel
Showing results for 
Search instead for 
Did you mean: 

badi for competitor and status

Former Member
0 Kudos

Hi All,

Can anyone please tell me....In opportunitymanagement which is the badi I need to implement to check for the 'competitor' and the 'status' of the opportunity.

Thanks In Advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

all documents you can read with crm_order_read.

you will have your information if you pass opportunity's guid (IT_HEADER_GUID)

check your data in ET_PARTNER and ET_STATUS_H or ET_STATUS parameters.

regards

Radek

Former Member
0 Kudos

Hi Radek,

Thanks for ur reply.

How do i differentiate the competitor from other business partners. please reply

what is the condition i need to use to get the competitor in a opportunity.

thanks in advance

Navitha

Former Member
0 Kudos

Check ET_PARTNER internal table with the field ref_partner_fct

Former Member
0 Kudos

In table from FM you have to check partner_fct - it is partner function.

Regards

Former Member
0 Kudos

when i create a opportunity i need to check whether a competitor is present or not. what code should i write to achieve this.

And also if the status is lost i should make the 'reason' field editable. how do i do this.

thanks,

Navitha

Former Member
0 Kudos

Pass the oppurtunity guid to this FM : CRM_PPM_GET_OPP_COMPETITORS_UI .

you will get the competitors.

Regards,

Shiva Kumar

Former Member
0 Kudos

Hi shiva kumar,

thanku for u r reply.

i am using the function module CRM_PARTNER_READ_OW instead of CRM_PPM_GET_OPP_COMPETITORS_UI .

Can you tell me how do i make the reason field editable when the status of my opportunity is lost and from where should i get this reason field .

Thanks in Advance,

Navitha.

Former Member
0 Kudos

Implement this BADI CRM_ORDER_FIELDCHECK for editable field reason.

This badi is useful for your scenario. Implement this BADI and keep break-point just to see it is trigerring or not.

If it is trigerring then write code on this .

Regards,

Shiva Kumar

Former Member
0 Kudos

Hi shiva,

Thanks for replies.

I am using the BADI CRM_ORDER_FIELDCHECK.

t is working fine for the status check and competitor check. Now when the status of the opportunity is 'Lost' the reason field should be made editable. But i am not able to find the reason field. can u tell me how do i make the reason field editable.

Thanks in advance,

Navitha

Edited by: Navitha prakash on Oct 16, 2008 6:06 AM

Edited by: Navitha prakash on Oct 16, 2008 9:03 AM

Answers (0)