cancel
Showing results for 
Search instead for 
Did you mean: 

Account Search based on Sales Org .

Former Member
0 Kudos


Hi Experts ,

I have a requirement to search accounts based on Sales Org Id.

For this I created AET field . Componet : BP_HEAD_SEARCH.

please help me to get the logic to get accout results based on Sales Org Id .

Thanks & Regards,

Akhilesh Bhagat

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Experts ,

Need your help !

I found out why ct_partner_keys is getting cleared because the value of importing parameter IS_CATEGORY is XXX , ie IS_CATEGORY-person = 'X' , IS_CATEGORY-organisation = 'X, and IS_CATEGORY-group = 'X' .

Please help why all these three are filling as 'X' ?

Thanks & Regards,

Akhilesh Bhagat.

former_member210661
Active Contributor
0 Kudos

Hi Akhilesh,

I hope you might have checked already, just for my confirmation Did you check in debug mode with out passing value in ls_category  like ls_category = ' ' . if this is fine then after this badi  GET_DYNAMIC_QUERY_RESULT will trigger.. have a look on that..


Thanks & Regards,

Srinivas.

Former Member
0 Kudos

Hi All,

I am getting the desired result in internal table  ct_partner_keys of interface method IF_EX_CRM_BUPA_IL_SEARCH_EXT~SEARCH_PARTNERS of badi BADI_CRM_BUPA_IL_SEARCH_EXT , but in webui i am not getting nay result ,

the result in ct_partner_keys is getting deleted somewhere .

Please help me get solve it.

Thanks & Regards,

Akhilesh Bhagat.

Former Member
0 Kudos

Hi All,

Thanks for your reply..


Just creating a AET in searc & result is not enough in my case because I have to search account id based on sales Area data ( Sales Org id assigned ) . And sales org id in not in BuilHeaderAdvancedSearced and not in BuilHeader.


So I am trying too enhance Badi BADI_CRM_BUPA_IL_SEARCH_EXT .


My question is that is there any function module so taht I can paass sales org id to it and get account no in retuirns. ?


I tried FM  RH_STRUC_GET but it retuirns the BP which are assigned to it in PPOMA_CRM , But I need BP based on Sales Org Id .

Please help ...

Thanks & Regards,

Akhilesh Bhagat.

pallavi_an
Participant
0 Kudos

Hi Akhilesh,

FM  CRM_ORGUNIT_GETBUPA returns BP guid based on sales org ID.

Regards,

Pallavi

deepika_chandrasekar
Active Contributor
0 Kudos

HI,

If the field is Search and Result relevant in AET then no need to put logic for seacrh.

Regards,

Deepika.

former_member210661
Active Contributor
0 Kudos

Hi Akhilesh Bhagat,

you have added aet field as a search/result field in a view so no need to write any fetching logic for that it automatically generate logic for that..if you want to know custom field logic there is lots of links available just go through this links..

SAP CRM Technical Tutorials by Naval Bhatt.: How to enhance Opportunity search for a custom date typ...

let me know if you have any queries.

Thanks & Regards,

Srinivas

Former Member
0 Kudos

Hi Akhilesh,

An AET field which you have created to store Sales Org Id, if it is Search and Result relevant then it will search automatically.

No need to write any custom code.

Regards,

Ankit Gupta