cancel
Showing results for 
Search instead for 
Did you mean: 

Use of additional fields win IC Winclient BP Search

Former Member
0 Kudos

Hi

I’m trying to use the HOUSE_NUM2 field in structure CCMSEARCH_STRUCT to search for a BP in the IC Win Client (CIC0) in CRM.

I can get the HTML page to pass the field back to CCMSEARCH_STRUCT, but after several dynamic function calls the program ends up calling FM BAPI_BUPA_SEARCH which does not have the field HOUSE_NUM2 as an input parameter.

Is it possible to configure the search to call an FM that uses that field as well? (without repairing the SAP code)

I have followed these steps:

1) Copied O_ISU_BPFINDER_BUTTON to ZO_ISU_BPFINDER_BUTTON, changed the HTML and re-imported it.

The changes were to remove some fields (ie IBASE components) and add the new input field HOUSE_NUM2.

Here is the relevant HTML tag:

<TR>

<TH align=left width=28%><!%%STREET_NO%></TH>

<TD width=72%><NOBR>

<INPUT name=HOUSE_NUM1 size=6 maxLength=10 type=TEXT/PLAIN>

<INPUT name=STREET size=25 maxLength=60 type=TEXT/PLAIN>

<INPUT name=HOUSE_NUM2 size=6 maxLength=10 type=TEXT/PLAIN>

</NOBR></TD></TR>

2) I have copied the entries for O_ISU_BPFINDER_BUTTON in transaction CRMC_CIC_SEARCH_CNTR and ensured that the followin entry is there:

ZO_ISU_BPFINDER_BUTTON CCMADDRESSFIELDS HOUSE_NUM2 X

3) I have created a new search profile in transaction CRMC_CIC_SEARCH_RULE with the following setttings:

HTML for BP Search = ZO_ISU_BPFINDER_BUTTON

Under priorities: CCMADDRESSFIELDS CCMCS_ADDR_SEARCH_CONTROL 1

(This is the only relevant entry from what I can tell in Debug mode)

Everything else works, and I can see the relevant data being passed to SAP, but by the time the actual search takes place in BAPI_BUPA_SEARCH HOUSE_NUM2 is not available as a search parameter.

I have searched these forums and come across a couple of threads that seems to imply that it should just work if I follow these steps, but I can only assume that I am using an incorrect search Function Module

Thanks for your help

Regards Esti

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Esti,

As you are saying that this change needs to break SAP Std code, i suggest you to raise an OSS note so that SAP would directly help you find in finding the best solution which may be applying latest patches,etc..

Importantly..

...when i see the BAPI_BUPA_SEARCH i could see the search parameter HOUSE_NO which can suffice ur purpose and one more thing is there is no data element called HOUSE_NUM2 in CRM5.0 system as i could see.

Missing any latest service packs??

Siva

Former Member
0 Kudos

Thanks for your response Siva

The field CCMSEARCH_STRUCT-HOUSE_NUM1 is mapped to HOUSE_NO in the call to BAPI_BUPA_SEARCH (This all happens in SAP standard).

In NZ we use HOUSE_NUM2 quite extensively as the house-supplement (for instance to identify separate apartments in an apartment block). This field already exists in CRM 5.0 in structure CCMSEARCH

As all the Function calls during the search are dynamic calls, I'm wondering whether it is not possible to specify which Function Module is called in config someplace in stead of repairing SAP code.

As far as I can see Function Module BUPA_PARTNER_CONTACT_SEARCH will give me the correct result, if I can configure this someplace.

Cheers

Esti

Former Member
0 Kudos

Hi Esti,

After some investigation i found solution for your problem.

Actually you have to extend the BOL query <b>BuilContactPersonSearch</b>

but not the SAP provided FM..

Also i think its not possible to config the FM BUPA_PARTNER_CONTACT_SEARCH you told.

Currently BOL query <b>BuilContactPersonSearch</b> has only HOUSE_NUM1 search field but not HOUSE_NUM2 field.

Extending BOL query is quite common job and can be done also.

Hope this solves ur problem.

Siva

Former Member
0 Kudos

Hi Siva

What is the transaction to look at this query? I have not seen any evidence that the program accesses this query, but it is worth having a look I guess.

The sequence of Function calls are:

CCMCS_BP_SEARCH_RULES

CCMCS_BP_SEARCH_CONTROL

CCMCS_BP_ADDR_SEARCH2

CCMCS_BP_SEARCH2

(Up to this point it uses structure CCMADDRESSFIELDS, and has accesss to HOUSE_NUM2)

Then it calls BAPI_BUPA_MAIN

It might be that I will have to repair CCMCS_BP_SEARCH2 in the end, but I'd like to be sure that it is my only option, as I do not want to change SAP standard code unnecessarily.

Cheers

Esti

Former Member
0 Kudos

Hi Esti,

Its not that the ABAP stack or Call are not getting triggered correctly.

But shud be some medium to hold the HOUSE_NUM2 from the BOL Business Object Layer Query ..

I have sent you a doc how to proceed..

Have a look

..

Dont forgot to reward points if its helpful

Siva

Former Member
0 Kudos

Thanks Siva

Unfortunately the BOL Browser is only relevant if you use the IC Webclient

We have only implemented the IC Winclient (CIC0) and to not use BOL at all.

Cheers

Esti

Former Member
0 Kudos

Hi Esti,

I am really sorry as i have thought tht you r implementing IC Web client..

and have guided you in tht way...

Siva

Former Member
0 Kudos

No problem Siva, I do appreciate your help

Former Member
0 Kudos

Hi Esti,

Did you get to a solution without repairing code CCMCS_BP_SEARCH2? I am facing the same problem, and I do not want to change code also.

Thanks a lot,

TPT