cancel
Showing results for 
Search instead for 
Did you mean: 

OPEN Opportunities in PCUI

Former Member
0 Kudos
75

HI ,

I have a question regarding the PCUI.

<b>The Requirement:</b>

I need to display only the OPEN opportunities for the selected Business partner in the Search option.Currently it is displaying all the opportunities for the selected BP .This is when the user selects the partner option in the search option in the Opportunities and then enters the BP and hit the GO button in the portal.

Now I am very new to the PCUI but I have good experience in the CRM .

Could some tell me how do I find out step by step which ABAP code is it calling or are therere any system events raised in this case so that I can enter my code for only selecting the open Opportunities.

Or if you have nay other solution for this please let me know

Or is there any BADI available to get the modification done .

Thanks and Kind Regards,

Ankur

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I don't know about BADI'S, but one solution is, create Z model access class and give the original model access class as super class and overide the read method in the z model access class. In the read method of z model access, check for the corresponding structure name(iv_screen_structure_name), delete data from et_screen_structure if status is other than Open(here we have to move et_screen_structure_data into internal table, then modify data in the internal table and then update et_screen_structure ).

Former Member
0 Kudos

HI Arun,

Thank a lot for the input .

I have more question here .

I can understand on the upperlevel what you mean .

But It would be really nice if you could please descibe in step how do I do this , I mean how do I create the Zmodel access class and and overrinding the method .

Since I ahve not worked with developning the Classes.

I the mean time I will find out which model access class is being called.

Thanks you once againg.

Kind Regards,

Ankur

Former Member
0 Kudos

Hello Ankur,

Just to add to the post from Arun:

After you have reimplemented the required method in your newly created class, you'll also need to change the blueprint table.

CRMC_BLUEPRINT -> Application Elements -> Application set -> Select your application set (ex CRMD_BUS2000111) -> Model Access

Here you'll have to replace the Model access class name of the corresponding structure to your newly implemented class.

This should be it.

Regards, Debasish

Former Member
0 Kudos

Ankur, if you only need to show opportunities with status 'open' you can also create an iView-view where the you define that the opportunity status should be open by default. Will this help you? Reason for asking is that this can be achieved without creating any custom classes. If so, let me know and I will explain to you how to do that. Tiest.

Former Member
0 Kudos

HI ,

Thanks a lot for all you for your reply.

Tiest,

You are absolutely right I would like to show only the opportunities with status open while searching with the business parther .

It would be really nice of you if you could give me the steps to create the Iview and necessary steps.

Arun and Debasish,

I have already tried all the stps described by you.

I am able to call my class method but the problem is that the method <b>IF_CRM_BSP_MODEL_ACCESS_IL~READ</b> of super class <b>CL_CRM_BSP_AM_HEADFM_1O</b> has an attribute as <b>gr_intlay_1o->gv_focus_changed</b>

which in one case has value X and in the second case has value space while doing the same search for the same business partner twice on the same screen.

I am not able to understand this when I debugged I found that this is dependent on the intialization of the class.

Due to this I am not able to get the correct search results .Do you have some solution for this .

Please let me know if I did not explain properly.

Thanks and Regards,

Ankur

Former Member
0 Kudos

Ankur, in order to do that, identify the correct field group(!) Here you can assign a defaul value for all fields (including the status field). If this does not work let me know, Tiest.

Former Member
0 Kudos

Hi Tiest,

I think I am not able to get this properly.

I have looked into the BAB but I did not find this field being grouped .

It is actaully on the standard when you load the opportunity screen there you get the option with the dropdown box for selection of BP or Transaction number or Product then in the next input field you can enter the BP number or Product number . then you hit the button GO.

and it displayes all the search values.

So the status field is not displayed and not grouped .

Could you please correct me if I am not following you.

thanks and Regards,

Ankur

Former Member
0 Kudos

Hi Tiest,

I have now tried to assign the default value to the field status 'STATUS_AREA'of the field group OPP_ADVANCED_SEARCH.

and then I tried to regenerate this layout

But still I am not able to solve this issue.

hoping I am going in the rigth direction.

Please let me know ?

Thanks and Regards,

Ankur

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Go to transaction SE24, create the z model access class, after creating then go to properties of the class,select the super class and give the actual class name as a super class, go to methods tab and select the redine icon for the method read and do the required changes after calling the read method of super class.

Former Member
0 Kudos

Hello Ankur,

Please use this weblog by Tiest

/people/tiest.vangool/blog/2005/09/04/pc-ui-and-debugging-its-applications

This should help you find the exact class/method that is being executed.

Now after you have determined the Model access class, you could probably build a wrapper class as suggested by Arun and maintain it in the blueprint tables to call your class and method instead of the standard ones.

Hope it helps, Debasish